@font-face { font-family: 'Lilita One'; src: url(fonts/lilita-one-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 700; src: url(fonts/nunito-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 900; src: url(fonts/nunito-latin-900-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --yellow: #ffc61a; --yellow-d: #c98e00;
  --red: #e53935; --red-d: #9e1f1c;
  --green: #36b24a; --green-d: #1f7a2d;
  --blue: #2f8ae0; --blue-d: #1a5ea3;
  --panel: rgba(20, 22, 30, 0.86);
  --ink: #fff;
  --hd: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --tx: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #1b1d24; color: var(--ink); font-family: var(--tx); font-weight: 700;
  touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui, #hud, #layer { position: fixed; inset: 0; pointer-events: none; }
#ui > *, #hud > *, #layer > * { pointer-events: auto; }
#hud { z-index: 5; } #ui { z-index: 10; } #layer { z-index: 20; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

/* ------------------------------------------------ Knöpfe */
.btn { font-family: var(--hd); font-size: 22px; letter-spacing: .5px; padding: 12px 22px 13px; border-radius: 16px; color: #3a2600;
  background: linear-gradient(#ffd84d, var(--yellow)); box-shadow: 0 5px 0 var(--yellow-d), 0 8px 14px rgba(0,0,0,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.4); transition: transform .08s; min-height: 52px; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d), 0 3px 6px rgba(0,0,0,.35); }
.btn.green { background: linear-gradient(#5fd06f, var(--green)); box-shadow: 0 5px 0 var(--green-d), 0 8px 14px rgba(0,0,0,.35); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn.green:active { box-shadow: 0 1px 0 var(--green-d); }
.btn.blue { background: linear-gradient(#5aa8ef, var(--blue)); box-shadow: 0 5px 0 var(--blue-d), 0 8px 14px rgba(0,0,0,.35); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn.blue:active { box-shadow: 0 1px 0 var(--blue-d); }
.btn.red { background: linear-gradient(#f2625e, var(--red)); box-shadow: 0 5px 0 var(--red-d), 0 8px 14px rgba(0,0,0,.35); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn.grey { background: linear-gradient(#5b6070, #444856); box-shadow: 0 5px 0 #2a2d36, 0 8px 14px rgba(0,0,0,.35); color: #fff; }
.btn.grey:active { box-shadow: 0 1px 0 #2a2d36; }
.btn.small { font-size: 17px; padding: 8px 14px 9px; min-height: 42px; border-radius: 12px; }
.btn[disabled] { filter: grayscale(.8) brightness(.8); pointer-events: none; }
.btn small { display: block; font-family: var(--tx); font-weight: 700; font-size: 13px; opacity: .8; letter-spacing: 0; margin-top: 1px; }

.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--hd); font-size: 22px; color: #3a2600;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--yellow) 60%, #e0a400); box-shadow: 0 4px 0 var(--yellow-d), 0 6px 12px rgba(0,0,0,.4); }
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-d); }

/* ------------------------------------------------ Bildschirme */
.screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.screen.dim { background: radial-gradient(ellipse at center, rgba(10,12,18,.35), rgba(10,12,18,.75)); }
.panel { background: var(--panel); border-radius: 22px; padding: 18px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08);
  max-height: 100%; overflow: auto; touch-action: pan-y; }
h2 { font-family: var(--hd); font-weight: 400; font-size: 30px; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.35); margin-bottom: 10px; }
h3 { font-family: var(--hd); font-weight: 400; font-size: 19px; color: #ffd84d; margin: 8px 0 6px; letter-spacing: .3px; }
p.note { font-size: 15px; opacity: .8; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.col { display: flex; flex-direction: column; gap: 10px; }

/* Titel */
#s-title { flex-direction: row; gap: 5vw; }
.logo { font-family: var(--hd); line-height: .86; text-align: center; transform: rotate(-6deg); filter: drop-shadow(0 8px 0 rgba(0,0,0,.35)); }
.logo .l1 { display: block; font-size: min(17vh, 13vw); color: #fff; -webkit-text-stroke: 3px #1b1d24; paint-order: stroke fill; letter-spacing: 2px; }
.logo .l2 { display: block; font-size: min(19vh, 14.5vw); color: var(--yellow); -webkit-text-stroke: 3px #1b1d24; paint-order: stroke fill; letter-spacing: 3px; font-style: italic; }
.logo .squiggle { display: block; height: min(4vh, 22px); margin: 6px auto 0; width: 80%; }
.title-btns { display: flex; flex-direction: column; gap: 14px; min-width: 250px; }
.title-btns .btn { text-align: left; display: flex; align-items: center; gap: 12px; }
.title-btns .btn .ico { font-size: 30px; line-height: 1; }
.corner-tl { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
.corner-tr { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.hubbtn { font-family: var(--hd); font-size: 18px; padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }

/* Streckenwahl */
.tracks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.track { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 1.25; background: #333 center / cover; box-shadow: inset 0 0 0 3px rgba(255,255,255,.15), 0 4px 10px rgba(0,0,0,.3); min-width: 0; }
.track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-family: var(--hd); font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.8)); text-align: left; }
.track span i { font-style: normal; font-family: var(--tx); font-size: 11px; opacity: .8; display: block; }
.track.sel { box-shadow: inset 0 0 0 4px var(--yellow), 0 0 0 3px rgba(255,198,26,.35), 0 4px 10px rgba(0,0,0,.3); }
.track.rand { display: grid; place-items: center; background: linear-gradient(135deg, #3b4256, #262a37); font-size: 34px; }
.track.locked { pointer-events: none; }

.count-pick { display: flex; gap: 10px; }
.count-pick button { width: 64px; height: 56px; border-radius: 14px; font-family: var(--hd); font-size: 26px; background: #3a3f50; box-shadow: 0 4px 0 #23262f; }
.count-pick button.sel { background: linear-gradient(#ffd84d, var(--yellow)); color: #3a2600; box-shadow: 0 4px 0 var(--yellow-d); }
.cars { display: flex; gap: 6px; }
.cars img { height: 26px; }

/* Online */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; opacity: .95; }
.field input { background: #fff; color: #222; border: 0; border-radius: 12px; padding: 10px 14px; font-size: 20px; font-weight: 900; width: 230px; user-select: text; -webkit-user-select: text; touch-action: manipulation; }
.field input.code { text-transform: uppercase; letter-spacing: 6px; width: 150px; text-align: center; font-family: var(--hd); }
.codebox { font-family: var(--hd); font-size: 54px; letter-spacing: 8px; color: var(--yellow); text-shadow: 0 4px 0 rgba(0,0,0,.4); line-height: 1; }
.qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.qr svg { width: 130px; height: 130px; }
.qr.big svg { width: 200px; height: 200px; }
.players { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 16px; }
.pchip img { height: 22px; }
.pchip.off { opacity: .45; }
.pchip b { font-weight: 900; }
.pchip .st { font-size: 14px; }
.lobby-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }

/* Übergabe */
.hand { text-align: center; }
.hand .who { font-family: var(--hd); font-size: 46px; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.hand img { height: 64px; margin: 8px 0; filter: drop-shadow(0 6px 4px rgba(0,0,0,.4)); }
.tips { text-align: left; font-size: 16px; line-height: 1.45; margin: 6px auto 14px; max-width: 460px; }
.tips li { margin-left: 20px; }

/* ------------------------------------------------ HUD */
.hud-bar { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.hud-stat { display: flex; align-items: center; gap: 6px; font-family: var(--hd); font-size: 26px; color: #fff; -webkit-text-stroke: 1px rgba(0,0,0,.6); text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.5); white-space: nowrap; }
.hud-stat svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.hud-left { position: absolute; top: max(8px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); display: flex; gap: 14px; align-items: center; }
.pausebtn { width: 50px; height: 44px; border-radius: 12px; background: rgba(0,0,0,.45); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.pausebtn svg { width: 30px; height: 30px; }

.standings { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 64px; display: flex; flex-direction: column; gap: 4px; }
.standings div { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.5); padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 14px; }
.standings b { font-family: var(--hd); font-weight: 400; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.standings .me { box-shadow: inset 0 0 0 2px var(--yellow); }

/* Zeichnen */
.draw-top { position: absolute; top: max(8px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.draw-top > * { pointer-events: auto; }
.who-chip { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.55); padding: 4px 12px 4px 6px; border-radius: 999px; font-family: var(--hd); font-size: 18px; }
.who-chip img { height: 24px; }
.meter { display: flex; flex-direction: column; gap: 2px; background: rgba(0,0,0,.55); padding: 4px 10px 6px; border-radius: 12px; min-width: 120px; }
.meter label { font-family: var(--hd); font-size: 12px; letter-spacing: 1px; opacity: .85; }
.meter .bar { height: 9px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #4cd964, #ffd84d 60%, #ff3b30); transition: width .08s linear; }
.meter.prog .bar i { background: linear-gradient(90deg, #5aa8ef, #9fd0ff); }
.spacer { flex: 1; }
.draw-hint { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(0,0,0,.65); padding: 8px 16px; border-radius: 999px; font-size: 16px; white-space: nowrap; pointer-events: none; }
.done-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }

/* Boost */
.boost { position: absolute; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; touch-action: none; }
.boost .core { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ff8a80, var(--c, #e53935) 55%, #7a1410); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), 0 5px 12px rgba(0,0,0,.45); border: 4px solid rgba(255,255,255,.9); }
.boost .core svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.boost svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.boost.used .core { filter: grayscale(.9) brightness(.7); }
.boost.active .core { box-shadow: 0 0 0 6px rgba(255,200,60,.6), 0 0 30px rgba(255,170,40,.9); }
.boost:active .core { transform: scale(.93); }
.boost .pos { position: absolute; top: -6px; left: -6px; font-family: var(--hd); font-size: 18px; background: #1b1d24; border-radius: 999px; padding: 1px 8px; box-shadow: 0 0 0 2px var(--c); }
.boost.big { width: 128px; height: 128px; }
.boost.big .core { width: 100px; height: 100px; }
.boost.big .core svg { width: 52px; height: 52px; }

.countdown { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.lights { display: flex; gap: 10px; background: #15161b; padding: 10px 14px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 0 0 3px #2e3038; }
.lights i { width: 40px; height: 40px; border-radius: 50%; background: #3a1716; box-shadow: inset 0 3px 6px rgba(0,0,0,.6); }
.lights i.on { background: radial-gradient(circle at 40% 35%, #ff9b8f, #ff2a1a 60%); box-shadow: 0 0 20px #ff3b2f; }
.lights.go i { background: radial-gradient(circle at 40% 35%, #b8ffb0, #2fd04a 60%); box-shadow: 0 0 20px #2fd04a; }
.countdown .go { font-family: var(--hd); font-size: 60px; color: #fff; -webkit-text-stroke: 2px #1b1d24; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(0,0,0,.4); }

/* Ergebnis */
.results { min-width: 340px; }
.res-row { display: grid; grid-template-columns: 40px 46px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: 6px; }
.res-row.p1 { background: linear-gradient(90deg, rgba(255,198,26,.35), rgba(255,198,26,.08)); }
.res-row .place { font-family: var(--hd); font-size: 26px; text-align: center; }
.res-row img { height: 22px; }
.res-row .name { font-size: 18px; }
.res-row .name small { display: block; font-size: 12px; opacity: .7; }
.res-row .time { font-family: var(--hd); font-size: 22px; }

/* Pause */
.menu { min-width: 270px; text-align: center; }
.menu .col .btn { width: 100%; }

#toast { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 30; pointer-events: none; font-family: var(--hd); font-size: 28px; color: #fff; -webkit-text-stroke: 1px rgba(0,0,0,.6); text-shadow: 0 3px 0 rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; white-space: nowrap; }
#toast.show { opacity: 1; }

#rotate { position: fixed; inset: 0; z-index: 50; background: #1b1d24; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-family: var(--hd); font-size: 24px; }
#rotate .phone { font-size: 70px; animation: turn 2s ease-in-out infinite; }
@keyframes turn { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }

.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 25; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.banner { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 40; background: #c62828; padding: 4px 14px; border-radius: 999px; font-size: 14px; pointer-events: none; }

/* kleine Bildschirme (Handy quer) */
@media (max-height: 460px) {
  .btn { font-size: 19px; padding: 9px 18px 10px; min-height: 46px; }
  .btn.small { font-size: 15px; min-height: 38px; padding: 6px 12px 7px; }
  h2 { font-size: 24px; margin-bottom: 6px; }
  h3 { font-size: 16px; margin: 4px 0; }
  .panel { padding: 12px 16px; }
  .title-btns { gap: 10px; }
  .title-btns .btn .ico { font-size: 24px; }
  .tracks { gap: 7px; }
  .track span { font-size: 12px; }
  .codebox { font-size: 40px; }
  .qr svg { width: 104px; height: 104px; }
  .qr.big svg { width: 160px; height: 160px; }
  .hud-stat { font-size: 22px; }
  .hud-stat svg { width: 24px; height: 24px; }
  .boost { width: 82px; height: 82px; }
  .boost .core { width: 64px; height: 64px; }
  .boost .core svg { width: 34px; height: 34px; }
  .boost.big { width: 108px; height: 108px; }
  .boost.big .core { width: 84px; height: 84px; }
  .hand .who { font-size: 36px; }
  .tips { font-size: 14px; margin-bottom: 8px; }
  .res-row { padding: 4px 10px; margin-bottom: 4px; }
  .lights i { width: 32px; height: 32px; }
}

/* Fahrer und Auto */
.drivers { display: flex; flex-direction: column; gap: 8px; }
.driver { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); padding: 6px 10px; border-radius: 14px; }
.driver .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.driver input { background: #fff; color: #222; border: 0; border-radius: 10px; padding: 7px 12px; font-size: 18px; font-weight: 900; width: 170px; user-select: text; -webkit-user-select: text; touch-action: manipulation; }
.cared { display: flex; align-items: center; gap: 6px; }
.cared img { height: 48px; margin-right: 4px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.cared button { font-family: var(--hd); font-size: 14px; padding: 7px 10px; border-radius: 10px; background: #3a3f50; box-shadow: 0 3px 0 #23262f; }
.cared button:active { transform: translateY(2px); box-shadow: 0 1px 0 #23262f; }
#o-car { margin-top: 2px; }
.race-tag { font-family: var(--hd); font-size: 15px; color: #ffd84d; letter-spacing: .5px; margin-bottom: 2px; }
.cup-strip { display: flex; gap: 6px; }
.cup-strip img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }

/* Ergebnis mit Punkten */
.res-row { grid-template-columns: 40px 46px 1fr auto !important; }
.res-row .pts { font-family: var(--hd); font-size: 24px; color: #ffd84d; }
.totals { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin-top: 6px; align-items: center; }
.totals span { display: inline-flex; align-items: center; gap: 5px; }
.totals i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Podest */
.podium-panel { text-align: center; min-width: 360px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.pod { display: flex; flex-direction: column; align-items: center; width: 140px; }
.pod img { height: 40px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.45)); margin-bottom: 4px; animation: hop 1s ease-in-out infinite; }
.pod.p1 img { height: 52px; }
@keyframes hop { 50% { transform: translateY(-6px); } }
.pod .pname { font-family: var(--hd); font-size: 20px; }
.pod .ppts { font-size: 14px; opacity: .85; margin-bottom: 4px; }
.pod .step { width: 100%; display: grid; place-items: center; font-family: var(--hd); font-size: 40px; color: #3a2600; border-radius: 10px 10px 0 0; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.pod.p1 .step { height: 110px; background: linear-gradient(#ffe27a, #ffc61a); }
.pod.p2 .step { height: 78px; background: linear-gradient(#f2f2f2, #c9ccd3); }
.pod.p3 .step { height: 56px; background: linear-gradient(#f2b37c, #cd7f32); }
.pod.empty { width: 140px; }
@media (max-height: 460px) {
  .driver { padding: 4px 8px; }
  .driver input { font-size: 16px; padding: 5px 10px; width: 140px; }
  .cared img { height: 40px; }
  .cared button { font-size: 13px; padding: 5px 8px; }
  .pod.p1 .step { height: 74px; } .pod.p2 .step { height: 52px; } .pod.p3 .step { height: 38px; }
  .pod .step { font-size: 30px; }
  .pod img { height: 32px; } .pod.p1 img { height: 40px; }
  .podium-panel h2 { font-size: 22px; }
}

/* Handy im TV-Modus: grosser Nitro-Knopf */
.remote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-evenly; gap: 20px; padding: 16px; }
.rinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rinfo img { height: 44px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.45)); }
.rinfo b { font-family: var(--hd); font-weight: 400; font-size: 26px; }
.rplace { font-family: var(--hd); font-size: 40px; color: #ffd84d; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.boost.huge { position: relative; width: min(64vh, 300px); height: min(64vh, 300px); }
.boost.huge .core { width: 80%; height: 80%; border-width: 6px; }
.boost.huge .core svg { width: 50%; height: 50%; }
.cup-strip { flex-wrap: wrap; }
.cup-strip img { width: 54px; height: 30px; }

/* kurzer Hinweis in der Mitte */
#pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); z-index: 30; pointer-events: none; max-width: min(560px, 86vw);
  background: rgba(15,16,22,.82); padding: 12px 20px; border-radius: 16px; font-size: 18px; text-align: center; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s, transform .25s; }
#pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
