:root {
  --color-bg: #060b1c;
  --color-bg-soft: #0a122b;
  --color-surface: rgba(17, 27, 58, .78);
  --color-surface-raised: #121d3f;
  --color-surface-light: #1a2850;
  --color-text: #f7f9ff;
  --color-text-muted: #a9b4d0;
  --color-cyan: #4edbff;
  --color-magenta: #fe4dbb;
  --color-purple: #a981ff;
  --color-success: #5ef1b7;
  --color-warning: #ffd36a;
  --color-danger: #ff6a91;
  --line: rgba(169, 180, 208, .18);
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--color-bg); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--color-text); background: radial-gradient(circle at 84% 5%, rgba(77, 219, 255, .12), transparent 23rem), radial-gradient(circle at 15% 18%, rgba(254, 77, 187, .10), transparent 28rem), var(--color-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14; background-image: linear-gradient(115deg, transparent 49%, rgba(255,255,255,.16) 50%, transparent 51%), linear-gradient(24deg, transparent 49%, rgba(255,255,255,.1) 50%, transparent 51%); background-size: 150px 150px, 210px 210px; mix-blend-mode: screen; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 3px; }

.app-shell { width: min(1240px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 32px var(--safe-bottom); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 84px; border-bottom: 1px solid var(--line); }
.brand-lockup, .screen-brand { display: inline-flex; align-items: baseline; gap: 0; letter-spacing: -.13em; font-style: italic; font-weight: 950; }
.brand-mark, .brand-s { font-size: 31px; line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.brand-mark { color: #f6f8ff; }
.brand-s { color: var(--color-cyan); text-shadow: 2px 0 var(--color-purple); }
.top-nav { display: flex; gap: 28px; color: var(--color-text-muted); font-size: 13px; font-weight: 700; }
.top-nav a:hover, .text-link:hover { color: var(--color-cyan); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--color-text); background: rgba(255,255,255,.04); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0 28px; margin-top: 80px; border-top: 1px solid var(--line); color: var(--color-text-muted); font-size: 12px; }
.site-footer a { color: var(--color-text); }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 610px; gap: 60px; }
.hero-copy { position: relative; z-index: 1; max-width: 580px; }
.eyebrow { display: block; color: var(--color-cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(46px, 7vw, 86px); font-weight: 850; letter-spacing: -.08em; line-height: .96; }
h1 em { color: var(--color-magenta); font-style: normal; text-shadow: 0 0 40px rgba(254, 77, 187, .28); }
h2 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.055em; line-height: 1; }
h3 { margin-bottom: 7px; font-size: 18px; letter-spacing: -.025em; }
p { color: var(--color-text-muted); }
.hero-copy > p { max-width: 470px; margin-bottom: 28px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 12px; padding: 0 19px; border: 1px solid transparent; border-radius: 14px; color: var(--color-text); font-weight: 800; font-size: 14px; letter-spacing: -.01em; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #081028; background: linear-gradient(120deg, var(--color-cyan), #a9f2ff 45%, var(--color-cyan)); box-shadow: 0 10px 30px rgba(78, 219, 255, .18); }
.button.primary:hover { box-shadow: 0 15px 40px rgba(78, 219, 255, .28); }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.button.ghost:hover { border-color: rgba(78,219,255,.6); background: rgba(78,219,255,.08); }
.button.small { min-height: 39px; padding: 0 14px; font-size: 12px; }
.button.full { width: 100%; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--color-text-muted); font-size: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-muted); box-shadow: 0 0 0 4px rgba(169,180,208,.12); }
.status-dot.success { background: var(--color-success); box-shadow: 0 0 0 4px rgba(94,241,183,.12); }
.status-dot.warning { background: var(--color-warning); box-shadow: 0 0 0 4px rgba(255,211,106,.12); }
.status-dot.danger { background: var(--color-danger); box-shadow: 0 0 0 4px rgba(255,106,145,.14); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-logo { position: relative; z-index: 2; width: min(100%, 590px); border-radius: 25px; mix-blend-mode: screen; filter: drop-shadow(0 20px 32px rgba(0,0,0,.42)); }
.glow-orb { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(78,219,255,.62), rgba(169,129,255,.34) 35%, rgba(254,77,187,.18) 60%, transparent 73%); filter: blur(22px); }
.hero-orbit { position: absolute; width: 410px; height: 260px; border: 1px solid rgba(78,219,255,.3); border-radius: 50%; transform: rotate(-20deg); }
.orbit-b { width: 310px; height: 400px; border-color: rgba(254,77,187,.26); transform: rotate(40deg); }
.hero-sticker { position: absolute; z-index: 3; right: 4%; bottom: 12%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; color: #081028; background: var(--color-warning); box-shadow: 0 0 0 7px rgba(255,211,106,.12), 0 12px 35px rgba(255,211,106,.18); transform: rotate(11deg); }
.hero-sticker strong { margin-bottom: -8px; font-size: 31px; line-height: 1; letter-spacing: -.1em; }
.hero-sticker span { font-size: 12px; font-weight: 800; }

.section { padding: 82px 0 0; }
.intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card, .pack-card, .glass-card, .stat-card, .cta-panel, .info-sheet { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22,35,74,.85), rgba(10,18,43,.72)); box-shadow: var(--shadow); }
.step-card { min-height: 180px; padding: 24px; }
.step-card > span { display: inline-block; margin-bottom: 43px; color: var(--color-magenta); font-size: 12px; font-weight: 850; }
.step-card p { margin-bottom: 0; font-size: 13px; }
.section-heading, .card-heading, .page-head, .game-meta-bar, .player-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.text-link { color: var(--color-cyan); font-size: 13px; font-weight: 800; }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 27px; }
.pack-card { padding: 15px; overflow: hidden; }
.pack-art { display: flex; align-items: flex-end; min-height: 150px; padding: 16px; border-radius: 17px; color: #081028; font-size: 43px; font-weight: 950; letter-spacing: -.12em; background: linear-gradient(135deg, var(--color-cyan), #dffbff); }
.pack-art span { font-size: 20px; letter-spacing: -.05em; }
.pack-card.pink .pack-art { background: linear-gradient(135deg, var(--color-magenta), #ffd2ef); }
.pack-card.purple .pack-art { color: #fff; background: linear-gradient(135deg, var(--color-purple), #ddd2ff); }
.pack-card.dark .pack-art { color: var(--color-warning); background: linear-gradient(135deg, #1c2b58, #0c1530); }
.pack-card h3 { margin: 16px 0 5px; }
.pack-card p { min-height: 40px; margin-bottom: 15px; font-size: 13px; }
.pack-meta { color: var(--color-text-muted); font-size: 11px; font-weight: 700; }

.page-head { align-items: flex-end; padding: 72px 0 38px; }
.page-head h1 { max-width: 700px; margin: 10px 0 10px; font-size: clamp(40px, 6vw, 68px); }
.page-head p { max-width: 560px; margin-bottom: 0; font-size: 16px; }
.page-actions { flex-shrink: 0; }
.split-layout, .auth-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 20px; align-items: start; }
.glass-card { padding: 28px; }
.form-card { max-width: 620px; }
label { display: block; margin-bottom: 18px; color: var(--color-text); font-size: 13px; font-weight: 750; }
input, select { width: 100%; min-height: 48px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--color-text); background: rgba(0,0,0,.22); }
select option { color: #fff; background: #111b38; }
.check-row { display: flex; align-items: flex-start; gap: 11px; color: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.check-row input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--color-cyan); }
.side-note, .auth-aside { padding: 35px 20px; }
.side-note h3 { margin-top: 26px; font-size: 23px; }
.side-note p { max-width: 310px; font-size: 14px; }
.qr-placeholder { display: grid; place-items: center; gap: 10px; min-height: 235px; padding: 18px; border-radius: 18px; color: var(--color-text); background: #f7f9ff; }
.qr-placeholder.small { width: 125px; min-height: 125px; color: #071126; }
.qr-placeholder > span { font-weight: 950; color: var(--color-magenta); font-size: 22px; }
.qr-grid { display: grid; grid-template-columns: repeat(9, 1fr); width: 145px; height: 145px; padding: 7px; gap: 2px; background: #fff; }
.qr-placeholder.small .qr-grid { width: 88px; height: 88px; padding: 4px; gap: 1px; }
.qr-grid i { background: #fff; }
.qr-grid i.dark { background: #081028; }
.qr-image { display: block; width: 145px; height: 145px; object-fit: contain; border-radius: 8px; background: #fff; }
.qr-image.small { width: 88px; height: 88px; }
.invite-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--color-text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.wizard-progress span.active { color: var(--color-cyan); }
.wizard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.pack-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0 25px; }
.select-card { position: relative; min-height: 107px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(0,0,0,.16); cursor: pointer; }
.select-card.selected { border-color: var(--color-cyan); box-shadow: 0 0 0 2px rgba(78,219,255,.11); background: rgba(78,219,255,.08); }
.select-card input { position: absolute; opacity: 0; pointer-events: none; }
.select-card strong, .select-card small { display: block; }
.select-card strong { margin-bottom: 6px; font-size: 13px; }
.select-card small { color: var(--color-text-muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.prize-editor h2 { margin-top: 8px; font-size: 26px; }
.count-badge, .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; border-radius: 99px; color: var(--color-text-muted); background: rgba(255,255,255,.08); font-size: 10px; font-weight: 800; }
.prize-row { display: grid; grid-template-columns: 35px 1fr; gap: 8px; margin-top: 12px; }
.prize-row input, .prize-row select { min-height: 43px; margin: 0; }
.prize-row select { grid-column: 2; }
.prize-index { display: grid; place-items: center; color: var(--color-magenta); font-size: 11px; font-weight: 850; }
.notice { margin-top: 20px; padding: 13px 15px; border-radius: 13px; font-size: 12px; }
.notice.info { color: #c8d6ff; background: rgba(78,219,255,.08); border: 1px solid rgba(78,219,255,.16); }
.wizard-footer { display: flex; justify-content: flex-end; align-items: center; gap: 25px; padding: 24px 0; }

.game-meta-bar, .player-toolbar { align-items: stretch; margin-bottom: 20px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,23,51,.72); }
.game-meta-bar > div, .player-toolbar > div { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 130px; }
.game-code { color: var(--color-warning); font-size: 24px; letter-spacing: .13em; }
.control-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.player-card { overflow: hidden; border: 1px solid rgba(78,219,255,.22); border-radius: var(--radius); background: linear-gradient(145deg, #15285b, #0d1532); box-shadow: 0 0 70px rgba(78,219,255,.08); }
.player-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px; }
.player-card h2 { margin: 10px 0 4px; font-size: 30px; }
.player-card p { margin-bottom: 0; }
.timer-ring { display: grid; place-items: center; flex-shrink: 0; width: 74px; height: 74px; border: 5px solid var(--color-magenta); border-radius: 50%; box-shadow: inset 0 0 20px rgba(254,77,187,.14), 0 0 25px rgba(254,77,187,.15); }
.timer-ring strong { margin-bottom: -8px; font-size: 25px; line-height: 1; }
.timer-ring span { color: var(--color-text-muted); font-size: 10px; }
.player-frame { min-height: 274px; margin: 0 18px; border-radius: 15px; overflow: hidden; background: #070b19; }
.player-frame iframe { display: block; width: 100%; min-height: 274px; border: 0; }
.player-placeholder { display: grid; place-items: center; align-content: center; min-height: 274px; gap: 8px; color: var(--color-text-muted); text-align: center; }
.play-glyph { display: grid; place-items: center; width: 68px; height: 68px; padding-left: 5px; border: 1px solid var(--color-cyan); border-radius: 50%; color: var(--color-cyan); font-size: 24px; }
.player-placeholder strong { color: var(--color-text); }
.player-placeholder small { font-size: 11px; }
.control-buttons { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px 27px; }
.event-strip { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 14px; color: var(--color-text-muted); font-size: 11px; }
.event-strip strong { color: var(--color-text); }
.push-right { margin-left: auto; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 5px rgba(94,241,183,.1); }
.control-side { display: grid; gap: 20px; }
.qr-card .qr-placeholder { min-height: 192px; }
.qr-card p { margin: 11px 0 15px; font-size: 12px; }
.muted { color: var(--color-text-muted); }
.connection-label { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: 12px; }
.player-list, .latest-winners { margin: 15px 0 0; padding: 0; list-style: none; }
.player-list li { display: flex; align-items: center; gap: 9px; min-height: 45px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.player-list li small { margin-left: auto; color: var(--color-success); font-size: 10px; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #071126; background: var(--color-cyan); font-size: 11px; font-weight: 900; }
.empty-state { color: var(--color-text-muted); }
.prize-mini h3 { margin-top: 10px; }
.prize-mini p { font-size: 13px; }

.bingo-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 0 auto; }
.bingo-board.board-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bingo-cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 145px; padding: 13px; border: 1px solid rgba(169,180,208,.19); border-radius: 15px; color: var(--color-text); text-align: left; background: linear-gradient(145deg, #17265a, #0e1839); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.bingo-cell:hover { transform: translateY(-2px); border-color: rgba(78,219,255,.55); }
.bingo-cell.marked { border-color: var(--color-magenta); background: linear-gradient(145deg, rgba(254,77,187,.35), rgba(120,48,153,.35)); box-shadow: inset 0 0 0 2px rgba(254,77,187,.16), 0 0 25px rgba(254,77,187,.12); animation: cell-pop .27s ease-out; }
.bingo-cell.marked::after { content: "✓"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #081028; background: var(--color-warning); font-size: 14px; font-weight: 900; }
.cell-number { position: absolute; top: 12px; left: 13px; color: rgba(169,180,208,.65); font-size: 10px; font-weight: 800; }
.bingo-cell strong { margin-top: auto; font-size: 14px; line-height: 1.1; }
.bingo-cell small { margin-top: 4px; color: var(--color-text-muted); font-size: 11px; line-height: 1.1; }
.bingo-action { max-width: 760px; margin: 25px auto 0; text-align: center; }
.bingo-button { min-width: min(260px, 100%); min-height: 60px; color: #081028; border: 0; border-radius: 16px; background: linear-gradient(120deg, var(--color-warning), #ffe8a2); box-shadow: 0 12px 30px rgba(255,211,106,.18); font-size: 18px; }
.bingo-action p { margin: 10px 0 0; font-size: 12px; }
.player-footnote { margin: 25px auto; color: var(--color-text-muted); text-align: center; font-size: 11px; }
.winner-banner { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: -12px auto 25px; padding: 18px 22px; border: 1px solid rgba(94,241,183,.4); border-radius: 18px; background: linear-gradient(100deg, rgba(94,241,183,.16), rgba(78,219,255,.08)); }
.winner-banner h2 { margin: 5px 0; font-size: 27px; }
.winner-banner p { margin-bottom: 0; font-size: 13px; }
.winner-spark { color: var(--color-warning); font-size: 32px; }

.screen-view { min-height: calc(100vh - 84px); display: flex; flex-direction: column; padding: 35px 0 15px; }
.screen-top, .screen-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.screen-brand small { margin-left: 14px; color: var(--color-text-muted); font-size: 12px; font-weight: 500; letter-spacing: normal; }
.screen-code { display: block; color: var(--color-warning); font-size: 32px; letter-spacing: .16em; }
.screen-center { display: grid; place-items: center; flex: 1; padding: 50px 0; text-align: center; }
.screen-center h1 { max-width: 800px; margin: 15px 0 10px; font-size: clamp(40px, 8vw, 110px); }
.screen-center p { font-size: clamp(15px, 2vw, 22px); }
.screen-timer { display: grid; place-items: center; width: 130px; height: 130px; border: 7px solid var(--color-magenta); border-radius: 50%; color: var(--color-text); font-size: 50px; font-weight: 900; box-shadow: 0 0 55px rgba(254,77,187,.25); }
.screen-wave { display: flex; align-items: center; justify-content: center; gap: 5px; width: min(650px, 90%); height: 70px; margin-top: 32px; opacity: .8; }
.screen-wave span { width: 5px; height: var(--h); border-radius: 9px; background: linear-gradient(var(--color-cyan), var(--color-magenta)); animation: wave 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -40ms); }
.screen-bottom { align-items: flex-end; padding: 20px 0; border-top: 1px solid var(--line); }
.screen-qr { display: flex; align-items: center; gap: 12px; }
.screen-qr strong, .screen-qr span { display: block; }
.screen-qr span { margin-top: 4px; color: var(--color-warning); font-weight: 850; letter-spacing: .13em; }
.latest-winners ul { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; margin-top: 9px; }
.latest-winners li { display: flex; align-items: center; gap: 7px; color: var(--color-text-muted); font-size: 11px; }
.latest-winners li strong { color: var(--color-text); }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 35px; background: linear-gradient(105deg, rgba(254,77,187,.12), rgba(78,219,255,.08)); }
.cta-panel h2 { margin-top: 10px; }
.cta-panel p { max-width: 510px; margin-bottom: 0; }
.master-login-note { display: flex; justify-content: center; gap: 10px; margin-top: 20px; color: var(--color-text-muted); font-size: 12px; }
.auth-aside { min-height: 240px; padding-top: 40px; }
.auth-aside h2 { max-width: 290px; margin-top: 20px; }
.demo-hint { margin-top: 20px; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.stat-card strong { font-size: 38px; letter-spacing: -.08em; }
.stat-card small { color: var(--color-text-muted); font-size: 11px; }
.admin-columns { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.songs-table { margin-top: 20px; }
.table-head, .table-row { display: grid; grid-template-columns: 1.4fr .7fr .6fr; gap: 15px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; }
.table-head { color: var(--color-text-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.table-row strong, .table-row small { display: block; }
.table-row small { color: var(--color-text-muted); font-size: 11px; }
.pill.success { color: var(--color-success); background: rgba(94,241,183,.11); }
.pill.warning { color: var(--color-warning); background: rgba(255,211,106,.1); }
.category-list { margin: 20px 0 25px; }
.category-row { display: grid; grid-template-columns: 13px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.category-row small { color: var(--color-success); font-size: 10px; }
.category-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 13px var(--swatch); }
.info-sheet { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 30px; padding: 45px; }
.info-sheet p { max-width: 630px; }
.info-mark { display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid var(--color-cyan); border-radius: 35px; color: var(--color-text); font-size: 55px; font-style: italic; font-weight: 950; background: radial-gradient(circle at 30% 35%, rgba(254,77,187,.8), rgba(78,219,255,.18) 45%, transparent 65%), #0d1733; box-shadow: 0 0 45px rgba(78,219,255,.15); }
.info-mark span { color: var(--color-cyan); }
.cast-view { min-height: 100vh; padding: 34px 0 20px; }
.cast-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cast-header .screen-brand small { margin-left: 14px; color: var(--color-text-muted); font-size: 12px; font-weight: 500; letter-spacing: normal; }
.cast-code strong { display: block; color: var(--color-warning); font-size: 30px; letter-spacing: .15em; }
.cast-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; max-width: 980px; margin: 55px auto 30px; }
.cast-scoreboard, .cast-join { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22,35,74,.85), rgba(10,18,43,.72)); box-shadow: var(--shadow); }
.cast-scoreboard { padding: 28px; }
.cast-scoreboard h1 { margin: 12px 0 8px; font-size: clamp(38px, 6vw, 70px); }
.cast-scoreboard > p { margin-bottom: 25px; }
.cast-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: cast-rank; }
.cast-row { display: grid; grid-template-columns: 32px 34px 1fr auto; align-items: center; gap: 11px; min-height: 61px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035); }
.cast-row:first-child { border-color: rgba(255,211,106,.52); background: linear-gradient(90deg, rgba(255,211,106,.15), rgba(254,77,187,.08)); }
.cast-rank { color: var(--color-warning); font-size: 21px; text-align: center; }
.cast-row div strong, .cast-row div small { display: block; }
.cast-row div small, .cast-score small { color: var(--color-text-muted); font-size: 10px; font-weight: 600; }
.cast-score { color: var(--color-cyan); font-size: 18px; text-align: right; }
.cast-join { display: grid; place-items: center; gap: 10px; padding: 22px; text-align: center; }
.cast-join .eyebrow { align-self: start; width: 100%; text-align: left; }
.cast-qr { width: 190px; height: 190px; padding: 12px; margin: 7px 0; border-radius: 15px; background: #fff; }
.cast-join-code { color: var(--color-warning); font-size: 17px; font-weight: 850; letter-spacing: .14em; }
.cast-join p { margin: 6px 0 0; font-size: 12px; }
.cast-footer { display: flex; justify-content: space-between; gap: 25px; max-width: 980px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); }
.cast-footer .latest-winners { display: flex; gap: 14px; flex-wrap: wrap; }
.cast-prize { display: grid; gap: 7px; align-content: start; text-align: right; }
.cast-prize strong { color: var(--color-text); font-size: 18px; }
.error-state { max-width: 620px; padding: 150px 0; }
.skeleton-card { min-height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.offline-overlay { position: fixed; z-index: 20; right: 16px; bottom: 16px; max-width: 320px; padding: 14px; border: 1px solid rgba(255,106,145,.4); border-radius: 16px; background: #0d142c; box-shadow: var(--shadow); }
.offline-card { display: grid; grid-template-columns: auto 1fr; gap: 7px 10px; align-items: center; font-size: 12px; }
.offline-card p { grid-column: 2; margin: 0; font-size: 11px; }
.toast-region { position: fixed; z-index: 30; right: 18px; top: 18px; display: grid; gap: 9px; width: min(350px, calc(100% - 36px)); }
.toast { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--color-text); background: #121d3f; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease-out; }
.toast.success { border-color: rgba(94,241,183,.45); }
.toast.danger { border-color: rgba(255,106,145,.5); }

@keyframes cell-pop { 0% { transform: scale(.96); } 65% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes wave { from { transform: scaleY(.48); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .app-shell { padding: 0 20px var(--safe-bottom); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 0; padding: 60px 0 20px; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-logo { max-width: 540px; }
  .intro-grid, .wizard-grid, .admin-columns { grid-template-columns: 1fr; gap: 22px; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .control-layout { grid-template-columns: 1fr; }
  .control-side { grid-template-columns: repeat(2, 1fr); }
  .prize-mini { grid-column: span 2; }
  .bingo-cell { min-height: 125px; }
  .screen-view { min-height: calc(100vh - 84px); }
}

@media (max-width: 600px) {
  .app-shell { padding: 0 14px var(--safe-bottom); }
  .site-header { min-height: 68px; }
  .top-nav { gap: 12px; font-size: 11px; }
  .top-nav a:nth-child(1) { display: none; }
  .hero { padding-top: 32px; }
  .hero-art { min-height: 250px; }
  .hero-logo { width: 100%; }
  .hero-orbit { width: 280px; height: 180px; }
  .orbit-b { width: 215px; height: 285px; }
  .hero-sticker { width: 68px; height: 68px; right: 0; bottom: 1%; }
  .hero-sticker strong { font-size: 23px; }
  h1 { font-size: clamp(43px, 14vw, 66px); }
  .hero-copy > p { font-size: 15px; }
  .button { min-height: 50px; }
  .section { padding-top: 58px; }
  .intro-grid, .step-grid, .pack-grid, .split-layout, .auth-layout, .control-side { grid-template-columns: 1fr; }
  .step-card { min-height: 145px; }
  .step-card > span { margin-bottom: 27px; }
  .pack-card { padding: 10px; }
  .pack-art { min-height: 108px; font-size: 31px; }
  .pack-card p { min-height: auto; }
  .site-footer, .section-heading, .page-head, .game-meta-bar, .player-toolbar, .screen-bottom, .screen-top, .cta-panel { align-items: flex-start; flex-direction: column; }
  .site-footer { gap: 9px; margin-top: 50px; }
  .page-head { padding: 46px 0 25px; }
  .page-head h1 { font-size: 42px; }
  .glass-card { padding: 20px; }
  .pack-selects { grid-template-columns: 1fr; }
  .select-card { min-height: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .wizard-progress { gap: 9px; grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .wizard-footer { justify-content: space-between; }
  .game-meta-bar, .player-toolbar { gap: 15px; }
  .game-meta-bar > div, .player-toolbar > div { min-width: 0; width: 100%; }
  .control-side { gap: 14px; }
  .prize-mini { grid-column: auto; }
  .player-card-top { padding: 18px; }
  .player-card h2 { font-size: 24px; }
  .player-frame { min-height: 200px; margin: 0 12px; }
  .player-frame iframe, .player-placeholder { min-height: 200px; }
  .control-buttons { padding: 14px 18px 20px; }
  .control-buttons .button { flex: 1 0 calc(50% - 10px); padding: 0 8px; font-size: 12px; }
  .event-strip { flex-wrap: wrap; }
  .push-right { width: 100%; margin-left: 16px; }
  .bingo-board { gap: 6px; }
  .bingo-cell, .bingo-board.board-5 .bingo-cell { min-height: 105px; padding: 9px; border-radius: 10px; }
  .bingo-cell strong { font-size: 11px; }
  .bingo-cell small { font-size: 9px; }
  .cell-number { top: 8px; left: 9px; font-size: 8px; }
  .bingo-cell.marked::after { top: 7px; right: 7px; width: 19px; height: 19px; font-size: 11px; }
  .winner-banner { align-items: flex-start; padding: 15px; }
  .winner-banner h2 { font-size: 21px; }
  .screen-view { padding-top: 24px; }
  .screen-brand small { display: none; }
  .screen-code { font-size: 27px; }
  .screen-center { padding: 45px 0; }
  .screen-timer { width: 100px; height: 100px; font-size: 37px; }
  .screen-center h1 { font-size: 45px; }
  .screen-wave { gap: 3px; }
  .screen-wave span { width: 3px; }
  .screen-bottom { gap: 20px; }
  .latest-winners ul { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 30px; }
  .table-head, .table-row { grid-template-columns: 1.4fr .7fr; }
  .table-head span:last-child, .table-row span:last-child { display: none; }
  .info-sheet { grid-template-columns: 1fr; padding: 24px; }
  .cast-view { padding-top: 24px; }
  .cast-header, .cast-footer { align-items: flex-start; flex-direction: column; }
  .cast-layout { grid-template-columns: 1fr; margin-top: 35px; }
  .cast-join { order: -1; }
  .cast-footer { gap: 18px; }
  .cast-prize { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
