.sync-page {
  --sync-mint:#65efd6;
  --sync-blue:#6a83ff;
  --sync-gold:#ffd166;
  --sync-pink:#ff5c8a;
  --sync-panel:#11182b;
  --sync-panel-2:#172039;
  background:
    radial-gradient(800px 440px at 15% 4%,rgba(255,92,138,.14),transparent 62%),
    radial-gradient(780px 440px at 88% 14%,rgba(101,239,214,.13),transparent 62%),
    linear-gradient(180deg,#090d1a,#111831 72%,#121c36);
}

.sync-page #topbar { background:rgba(9,13,26,.88); }
.sync-top-actions { gap:16px; }
.sync-top-actions .how-to-button { min-height:40px; }
.sync-shell { width:min(1240px,calc(100% - 32px)); margin:0 auto; padding:clamp(28px,4vw,54px) 0 70px; }
.sync-screen { animation:sync-rise .35s cubic-bezier(.2,.8,.2,1) both; }
.sync-panel { border:1px solid #34415f; border-radius:26px; background:linear-gradient(145deg,rgba(25,34,60,.97),rgba(13,19,35,.98)); box-shadow:0 28px 80px #0006; }
.sync-eyebrow,.sync-kicker { margin:0; color:var(--sync-mint); font-size:.74rem; font-weight:1000; letter-spacing:.16em; text-transform:uppercase; }
.sync-kicker { color:var(--sync-gold); }
.sync-hero { max-width:800px; margin:0 auto 30px; text-align:center; }
.sync-hero h1 { margin:5px 0 6px; font-size:clamp(2.25rem,6vw,4.8rem); line-height:.98; letter-spacing:-.035em; }
.sync-hero > p:last-child { max-width:680px; margin:14px auto 0; color:#b9c6e5; font-size:clamp(1rem,1.8vw,1.18rem); }
.sync-setup-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.8fr); gap:20px; align-items:stretch; }
.sync-create-card { display:grid; gap:24px; padding:clamp(24px,4vw,42px); }
.sync-create-card h2 { margin:3px 0 0; font-size:clamp(1.8rem,4vw,2.75rem); }
.sync-create-card p { margin:3px 0 0; }
.sync-step { float:left; display:grid; place-items:center; width:44px; height:44px; margin:3px 14px 0 0; border-radius:14px; background:linear-gradient(135deg,var(--sync-mint),#76a8ff); color:#07131f; font-family:var(--font-display); font-size:1.35rem; font-weight:1000; box-shadow:0 8px 24px #65efd644; }
.sync-round-picker { position:relative; display:grid; grid-template-columns:54px 94px 1fr 54px; gap:12px; align-items:center; margin:0; padding:18px; border:1px solid #3d4b6b; border-radius:20px; background:#0a1020; }
.sync-round-picker output { display:grid; place-items:center; min-height:64px; border-radius:16px; background:linear-gradient(145deg,#ff9f43,#ff4d7d); font-family:var(--font-display); font-size:2.2rem; font-weight:1000; box-shadow:0 10px 30px #ff4d7d44; }
.sync-round-picker input { width:100%; padding:0; accent-color:var(--sync-mint); box-shadow:none; }
.sync-round-control { display:grid; place-items:center; width:54px; height:54px; padding:0; border-color:#52617f; background:#1b2540; font-size:1.8rem; }
.sync-big-button { min-height:58px; font-size:1.15rem; }
.sync-status-copy { min-height:1.4em; margin:0; color:#ff9ab4; font-weight:800; text-align:center; }
.sync-explainer { display:grid; align-content:center; gap:8px; padding:18px; }
.sync-explainer article { display:grid; grid-template-columns:52px 1fr; gap:14px; align-items:start; padding:18px; border-radius:18px; background:#ffffff08; }
.sync-explainer article > span { display:grid; place-items:center; width:52px; height:52px; border:1px solid #465575; border-radius:16px; background:#11192d; font-size:1.45rem; }
.sync-explainer b { display:block; color:#fff; font-family:var(--font-display); font-size:1.08rem; }
.sync-explainer p { margin:4px 0 0; color:#aebbd9; font-size:.88rem; }

/* Lobby */
.sync-lobby-layout { display:grid; grid-template-columns:minmax(310px,.72fr) minmax(0,1.45fr); gap:20px; min-height:620px; }
.sync-join-board { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; text-align:center; }
.sync-join-board h1 { margin:4px 0 12px; font-size:clamp(2rem,4vw,3.2rem); }
.sync-room-code { display:grid; margin:4px 0 18px; }
.sync-room-code span { color:#9eabc9; font-size:.7rem; font-weight:1000; letter-spacing:.15em; }
.sync-room-code strong { color:var(--sync-gold); font-family:var(--font-display); font-size:clamp(3rem,7vw,5.4rem); letter-spacing:.14em; line-height:1; text-shadow:0 10px 28px #ffd16633; }
.sync-qr-frame { width:min(270px,70vw); padding:12px; border-radius:22px; background:#fff; box-shadow:0 16px 50px #0007,0 0 0 5px #65efd622; }
.sync-qr-frame img { display:block; width:100%; border-radius:12px; }
.sync-join-board > p { margin:20px 0 4px; color:#9eabc9; }
.sync-join-address { color:#fff; overflow-wrap:anywhere; }
.sync-lobby-players { display:flex; flex-direction:column; padding:clamp(22px,3vw,36px); }
.sync-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-bottom:18px; border-bottom:1px solid #34415f; }
.sync-panel-heading h2 { margin:3px 0 0; font-size:clamp(1.6rem,3vw,2.35rem); }
.sync-ready-pill { padding:8px 13px; border:1px solid #4a5878; border-radius:999px; background:#121a2d; color:#b8c4e1; font-size:.77rem; font-weight:1000; white-space:nowrap; }
.sync-ready-pill.ready { border-color:#4bd59b; background:#0d382b; color:#7ff3bd; }
.sync-player-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-content:start; flex:1; padding:26px 0; }
.sync-player-chip { position:relative; display:flex; align-items:center; gap:10px; min-height:58px; padding:10px 13px; overflow:hidden; border:1px solid #3e4c6a; border-radius:16px; background:#151e34; font-family:var(--font-display); font-weight:900; animation:sync-chip-in .38s cubic-bezier(.2,.9,.2,1.2) both; }
.sync-player-chip::before { content:attr(data-initial); display:grid; flex:0 0 36px; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--chip-color,#65efd6); color:#09111e; }
.sync-player-chip.disconnected { opacity:.45; filter:grayscale(.7); }
.sync-empty-slot { min-height:58px; border:1px dashed #35415d; border-radius:16px; background:#0a102055; }
.sync-lobby-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:18px; border-top:1px solid #34415f; }
.sync-lobby-actions p { margin:0; color:#aebbd9; }
.sync-lobby-actions button { min-width:240px; }

/* Host stage */
.sync-stage-topline { display:grid; grid-template-columns:140px 1fr 112px; align-items:center; gap:20px; margin-bottom:18px; padding:12px 18px; border:1px solid #34415f; border-radius:18px; background:#11182b; }
.sync-stage-topline > div:first-child { display:flex; align-items:baseline; gap:8px; }
.sync-stage-topline span { color:#9eabc9; font-size:.68rem; font-weight:1000; letter-spacing:.13em; }
.sync-stage-topline strong { font-family:var(--font-display); font-size:1.75rem; line-height:1; }
.sync-stage-topline strong > span { color:inherit; font:inherit; letter-spacing:inherit; }
.sync-stage-progress { display:grid; gap:6px; text-align:center; }
.sync-progress-track,.sync-answer-meter > div,.sync-phone-progress { height:8px; overflow:hidden; border-radius:999px; background:#070b15; box-shadow:inset 0 0 0 1px #27324b; }
.sync-progress-track span,.sync-answer-meter i,.sync-phone-progress span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--sync-mint),var(--sync-gold)); transition:width .28s linear; }
.sync-timer { display:grid; place-items:center; min-height:64px; border:1px solid #4a5878; border-radius:16px; background:#0d1426; }
.sync-timer strong { color:var(--sync-gold); font-size:1.2rem; line-height:1; letter-spacing:.04em; }
.sync-timer span { font-size:.56rem; }
.sync-round-content,.sync-reveal,.sync-leaderboard { position:relative; padding:clamp(20px,3.2vw,38px); border:1px solid #34415f; border-radius:26px; background:linear-gradient(145deg,#141c31,#0d1323); box-shadow:0 28px 80px #0005; }
.sync-prompt-block { max-width:950px; margin:0 auto 26px; text-align:center; }
.sync-prompt-block h1 { margin:7px auto; font-size:clamp(2rem,4.8vw,4rem); line-height:1.02; text-wrap:balance; }
.sync-prompt-block > p:last-child { margin:8px 0 0; color:#aebbd9; }
.sync-host-products { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.sync-host-product { position:relative; min-width:0; padding:10px; border:1px solid #3e4b69; border-radius:20px; background:#182139; transition:transform .35s,opacity .35s,border-color .35s; }
.sync-host-product img { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; padding:7px; border-radius:14px; background:#fff; }
.sync-host-product span,.sync-host-product b { display:block; overflow:hidden; text-overflow:ellipsis; }
.sync-host-product span { margin-top:9px; color:var(--sync-mint); font-size:.61rem; font-weight:1000; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.sync-host-product b { margin-top:2px; font-size:clamp(.72rem,1.25vw,.94rem); line-height:1.18; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.sync-answer-meter { display:grid; grid-template-columns:auto auto minmax(170px,360px); justify-content:center; align-items:center; gap:7px; margin:24px auto 0; color:#aebbd9; }
.sync-answer-meter > strong { color:var(--sync-gold); font-family:var(--font-display); font-size:1.45rem; }
.sync-answer-meter > div { margin-left:8px; }
.sync-host-round-actions { display:grid; justify-items:center; gap:8px; margin:18px auto 0; text-align:center; }
.sync-host-round-actions p { margin:0; color:#9eabc9; font-size:.78rem; }
.sync-reveal-button { min-width:min(100%,320px); }
.sync-reveal-button.ready { box-shadow:0 0 0 4px #65efd626,0 16px 42px #65efd624; animation:sync-ready 1.5s ease-in-out infinite; }
.sync-countdown { position:relative; z-index:1; display:grid; min-height:clamp(420px,68vh,680px); place-items:center; align-content:center; overflow:hidden; border:1px solid #34415f; border-radius:28px; background:radial-gradient(circle at 50% 42%,#263961,#121a30 48%,#0b1020 76%); box-shadow:0 28px 80px #0005; }
.sync-countdown::before { content:""; position:absolute; width:min(40vw,360px); aspect-ratio:1; border:2px solid #65efd633; border-radius:50%; box-shadow:0 0 0 26px #65efd60b,0 0 0 52px #ffd16608; animation:sync-orbit 3s linear infinite; }
.sync-countdown span { position:relative; display:grid; width:clamp(150px,20vw,230px); aspect-ratio:1; place-items:center; border:3px solid #ffe39a; border-radius:50%; background:linear-gradient(145deg,#ffd166,#ffad5c); color:#111827; font-family:var(--font-display); font-size:clamp(6rem,13vw,10rem); font-weight:1000; line-height:1; box-shadow:0 22px 70px #0008,0 0 45px #ffd1663d; animation:sync-count .88s cubic-bezier(.16,.8,.3,1) both; }
.sync-countdown small { position:relative; margin-top:34px; color:#fff; font-family:var(--font-display); font-size:clamp(1.2rem,2vw,1.65rem); font-weight:900; text-transform:uppercase; letter-spacing:.16em; }
.sync-reveal > header,.sync-leaderboard { text-align:center; }
.sync-reveal > header h2,.sync-leaderboard h2 { margin:4px 0 18px; font-size:clamp(1.8rem,4vw,3rem); }
.sync-reveal-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.sync-reveal-card { position:relative; display:grid; grid-template-columns:92px 1fr; gap:13px; min-width:0; padding:13px; border:1px solid #3d4a68; border-radius:20px; background:#171f35; animation:sync-reveal-in .52s cubic-bezier(.18,.85,.23,1.15) both; }
.sync-reveal-card.majority { border-color:var(--sync-gold); background:linear-gradient(145deg,#39301c,#211c20); box-shadow:0 0 0 3px #ffd16622,0 18px 45px #0005; }
.sync-reveal-card img { width:92px; aspect-ratio:1; object-fit:contain; padding:6px; border-radius:14px; background:#fff; }
.sync-reveal-card h3 { margin:0; font-size:1rem; line-height:1.1; }
.sync-reveal-card small { color:#aebbd9; }
.sync-reveal-names { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.sync-reveal-name { padding:4px 7px; border-radius:999px; background:#65efd61a; color:#a9ffef; font-size:.68rem; font-weight:1000; }
.sync-majority-label { display:block; margin-bottom:3px; color:var(--sync-gold); font-size:.62rem; font-weight:1000; letter-spacing:.09em; text-transform:uppercase; }
.sync-reveal-points { position:absolute; top:-9px; right:10px; padding:5px 9px; border-radius:999px; background:var(--sync-gold); color:#111827; font-family:var(--font-display); font-size:.76rem; font-weight:1000; }
.sync-stage-advance { display:block; min-width:min(100%,280px); margin:22px auto 0; }
.sync-leaderboard { max-width:820px; margin:0 auto; }
.sync-leaderboard-rows,.sync-final-board { display:grid; gap:8px; }
.sync-leaderboard-row { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding:10px 14px; border:1px solid #35415e; border-radius:14px; background:#151d32; text-align:left; }
.sync-leaderboard-row:first-child { border-color:var(--sync-gold); background:#33291a; }
.sync-leaderboard-row .rank { color:#96a3c1; font-family:var(--font-display); font-size:1.25rem; }
.sync-leaderboard-row b:last-child { color:var(--sync-gold); font-size:1.12rem; }
.sync-leaderboard #syncAdvance { margin-top:14px; }
.sync-final-card { max-width:900px; margin:0 auto; padding:clamp(26px,5vw,54px); text-align:center; }
.sync-confetti { color:var(--sync-gold); font-size:2rem; letter-spacing:.35em; }
.sync-final-card h1 { margin:5px 0 22px; font-size:clamp(2.2rem,5vw,4.2rem); }
.sync-winner { margin:0 auto 20px; padding:20px; border:1px solid var(--sync-gold); border-radius:22px; background:linear-gradient(135deg,#372d19,#191d31); }
.sync-winner small,.sync-winner strong { display:block; }
.sync-winner small { color:#ffe19a; font-weight:1000; letter-spacing:.12em; }
.sync-winner strong { margin-top:2px; font-family:var(--font-display); font-size:2rem; }
.sync-awards { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.sync-award { padding:14px; border:1px solid #3b4866; border-radius:16px; background:#141c30; }
.sync-award span,.sync-award b { display:block; }
.sync-award span { color:var(--sync-mint); font-size:.68rem; font-weight:1000; letter-spacing:.1em; text-transform:uppercase; }
.sync-final-actions { display:flex; justify-content:center; gap:10px; margin-top:20px; }
.sync-connection-notice { position:fixed; z-index:500; left:50%; bottom:20px; translate:-50% 0; margin:0; padding:11px 16px; border:1px solid #ffcf70; border-radius:999px; background:#272013; color:#ffe19a; box-shadow:0 14px 40px #0008; font-weight:900; }

/* Phone controller */
.sync-player-page { min-height:100svh; background:radial-gradient(500px 280px at 50% -10%,#26355e,#0a0e1b 72%); }
.sync-player-header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; padding:calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom:1px solid #28334c; background:#090d19e8; }
.sync-player-header > span { color:#9dabc9; font-size:.72rem; font-weight:1000; letter-spacing:.12em; text-transform:uppercase; }
.sync-player-shell { width:min(100%,620px); min-width:0; margin:0 auto; padding:22px 14px calc(36px + env(safe-area-inset-bottom)); box-sizing:border-box; }
.sync-player-screen { animation:sync-rise .3s ease both; }
.sync-player-join { padding:28px 14px; text-align:center; }
.sync-player-join h1 { margin:5px 0 7px; font-size:clamp(2.1rem,10vw,3.25rem); line-height:1; }
.sync-player-join > p { color:#aebbd9; }
.sync-player-form { display:grid; width:100%; min-width:0; gap:16px; margin:26px auto 14px; padding:20px; border:1px solid #34415f; border-radius:24px; background:#11182b; text-align:left; box-shadow:0 24px 70px #0006; box-sizing:border-box; }
.sync-player-form label { display:grid; min-width:0; gap:6px; }
.sync-player-form label span { color:#c6d0e7; font-size:.78rem; font-weight:1000; }
.sync-player-form input { width:100%; max-width:100%; min-width:0; min-height:58px; box-sizing:border-box; font-size:1.15rem; text-align:center; text-transform:uppercase; letter-spacing:.08em; }
.sync-player-form #syncJoinCode { font-family:ui-monospace,monospace; font-size:1.65rem; letter-spacing:.22em; }
.sync-privacy-note { color:#7985a4 !important; font-size:.76rem; }
.sync-phone-orbit { display:flex; justify-content:center; align-items:center; gap:14px; min-height:84px; color:var(--sync-mint); font-size:1.8rem; }
.sync-phone-orbit span:nth-child(2) { width:54px; height:54px; border-radius:18px; background:var(--grad-primary); color:#fff0; box-shadow:0 12px 40px #ff4d7d55; }
.sync-player-lobby { text-align:center; }
.sync-player-lobby h1 { margin:4px 0; font-size:2.45rem; }
.sync-player-lobby > p { color:#aebbd9; }
.sync-phone-room { display:grid; width:fit-content; margin:24px auto; padding:14px 28px; border:1px solid #4b5878; border-radius:20px; background:#11182b; }
.sync-phone-room span { color:#8f9bb8; font-size:.65rem; font-weight:1000; letter-spacing:.15em; }
.sync-phone-room strong { color:var(--sync-gold); font-family:ui-monospace,monospace; font-size:2.35rem; letter-spacing:.18em; }
.sync-phone-player-list { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
.sync-phone-player-list span { padding:7px 11px; border:1px solid #394663; border-radius:999px; background:#151d32; font-size:.78rem; font-weight:900; }
.sync-waiting-pulse { display:flex; justify-content:center; align-items:center; gap:9px; margin-top:28px; color:#aebbd9; font-size:.82rem; font-weight:900; }
.sync-waiting-pulse i { width:10px; height:10px; border-radius:50%; background:var(--sync-mint); box-shadow:0 0 0 0 #65efd666; animation:sync-pulse 1.4s infinite; }
.sync-phone-roundbar { display:flex; justify-content:space-between; align-items:center; }
.sync-phone-roundbar > div:first-child { display:flex; align-items:baseline; gap:7px; }
.sync-phone-roundbar span { color:#92a0bf; font-size:.62rem; font-weight:1000; letter-spacing:.13em; }
.sync-phone-roundbar strong { color:#fff; font-family:var(--font-display); font-size:1.65rem; line-height:1; }
.sync-phone-roundbar strong > span { color:inherit; font:inherit; letter-spacing:inherit; }
.sync-phone-timer { display:flex; align-items:baseline; gap:5px; padding:6px 10px; border:1px solid #42506e; border-radius:12px; background:#121a2e; }
.sync-phone-timer strong { color:var(--sync-gold); font-size:.92rem; letter-spacing:.05em; }
.sync-phone-progress { margin:9px 0 18px; }
.sync-phone-prompt { min-height:128px; text-align:center; }
.sync-phone-prompt h1 { margin:4px 0 7px; font-size:clamp(1.45rem,7vw,2rem); line-height:1.08; text-wrap:balance; }
.sync-phone-prompt > p:last-child { margin:0; color:#aebbd9; font-size:.8rem; }
.sync-player-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); gap:9px; }
.sync-player-product { position:relative; display:grid; grid-template-rows:minmax(94px,1fr) auto; min-width:0; min-height:176px; padding:7px; border:2px solid #35415e; border-radius:18px; background:#161f36; color:#fff; text-align:left; box-shadow:none; transition:transform .15s,border-color .15s,box-shadow .15s,background .15s; }
.sync-player-product:hover { transform:none; }
.sync-player-product img { width:100%; height:100%; max-height:122px; object-fit:contain; padding:4px; border-radius:12px; background:#fff; }
.sync-player-product div { min-width:0; padding:7px 4px 2px; }
.sync-player-product span,.sync-player-product b { display:block; overflow:hidden; }
.sync-player-product span { color:var(--sync-mint); font-size:.55rem; font-weight:1000; letter-spacing:.06em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.sync-player-product b { margin-top:1px; font-family:var(--font-body); font-size:.74rem; line-height:1.15; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.sync-player-product[aria-pressed="true"] { z-index:2; border-color:var(--sync-gold); background:#382d1e; box-shadow:0 0 0 3px #ffd16644,0 10px 25px #0006; transform:translateY(-2px); }
.sync-player-product[aria-pressed="true"]::after { content:"✓"; position:absolute; top:11px; right:11px; display:grid; place-items:center; width:30px; height:30px; border:2px solid #fff; border-radius:50%; background:var(--sync-gold); color:#101522; font-size:1rem; font-weight:1000; box-shadow:0 4px 14px #0007; }
.sync-player-product:disabled { opacity:.7; cursor:default; }
.sync-pick-status { min-height:40px; margin:12px 0 0; padding:9px 12px; border:1px solid #35415e; border-radius:13px; background:#11182b; color:#b7c3df; font-size:.8rem; font-weight:900; text-align:center; }
.sync-pick-status.picked { border-color:#d2a940; background:#2e2719; color:#ffe29a; }
.sync-phone-countdown { position:fixed; z-index:300; inset:0; display:grid; place-items:center; align-content:center; background:radial-gradient(circle,#25365fd9,#080c18f5 68%); }
.sync-phone-countdown strong { color:var(--sync-gold); font-family:var(--font-display); font-size:44vw; line-height:.8; animation:sync-count .88s both; }
.sync-phone-countdown span { margin-top:24px; color:#fff; font-family:var(--font-display); font-size:1.25rem; font-weight:1000; letter-spacing:.12em; text-transform:uppercase; }
.sync-player-page .sync-player-screen:not(.sync-player-game) { text-align:center; }
.sync-phone-result-icon { display:grid; place-items:center; width:72px; height:72px; margin:10px auto 16px; border-radius:24px; background:linear-gradient(135deg,#3b537e,#343158); font-size:2.1rem; box-shadow:0 16px 45px #0005; }
.sync-player-reveal h1,.sync-player-final h1 { margin:4px 0 16px; font-size:2.35rem; line-height:1; }
.sync-player-choice-card { display:grid; grid-template-columns:92px 1fr; gap:13px; align-items:center; padding:12px; border:1px solid #465371; border-radius:19px; background:#151e34; text-align:left; }
.sync-player-choice-card img { width:92px; aspect-ratio:1; object-fit:contain; padding:6px; border-radius:13px; background:#fff; }
.sync-player-choice-card span,.sync-player-choice-card b { display:block; }
.sync-player-choice-card span { color:var(--sync-mint); font-size:.62rem; font-weight:1000; text-transform:uppercase; }
.sync-phone-score { margin:20px 0 0; color:var(--sync-gold); font-family:var(--font-display); font-size:3rem; font-weight:1000; line-height:1; }
.sync-player-reveal > p:not(.sync-eyebrow),.sync-player-final > p { color:#aebbd9; }
.sync-phone-mini-board { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:18px; }
.sync-phone-mini-board span { padding:5px 8px; border-radius:999px; background:#202a44; color:#cbd5eb; font-size:.67rem; font-weight:900; }
.sync-player-final-rank { margin:18px 0; padding:20px; border:1px solid var(--sync-gold); border-radius:20px; background:#2d271a; }
.sync-player-final-rank strong { display:block; color:var(--sync-gold); font-family:var(--font-display); font-size:3rem; line-height:1; }
.sync-phone-awards { display:grid; gap:8px; }
.sync-phone-awards .sync-award { text-align:center; }

@keyframes sync-rise { from { opacity:0; transform:translateY(12px); } }
@keyframes sync-chip-in { from { opacity:0; transform:scale(.75) translateY(8px); } }
@keyframes sync-reveal-in { from { opacity:0; transform:translateY(24px) scale(.9); } }
@keyframes sync-count { 0% { opacity:0; transform:scale(1.7); } 55% { opacity:1; transform:scale(.92); } 100% { transform:scale(1); } }
@keyframes sync-pulse { 70% { box-shadow:0 0 0 10px #65efd600; } 100% { box-shadow:0 0 0 0 #65efd600; } }
@keyframes sync-ready { 50% { transform:translateY(-2px); box-shadow:0 0 0 6px #65efd616,0 20px 48px #65efd632; } }
@keyframes sync-orbit { to { transform:rotate(360deg); } }

@media (max-width:900px) {
  .sync-setup-grid,.sync-lobby-layout { grid-template-columns:1fr; }
  .sync-lobby-layout { min-height:0; }
  .sync-host-products { grid-template-columns:repeat(3,1fr); }
  .sync-reveal-groups { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:680px) {
  .sync-host-page .sync-shell { width:min(100% - 20px,620px); padding-top:20px; }
  .sync-host-page #topbar .top-link,.sync-host-page #topbar .mode-label { display:none; }
  .sync-top-actions { margin-left:auto; }
  .sync-top-actions .how-to-button { min-width:42px; padding:8px 10px; font-size:.72rem; }
  .sync-hero { text-align:left; }
  .sync-hero h1 { font-size:2.55rem; }
  .sync-round-picker { grid-template-columns:50px 74px 1fr 50px; padding:13px; }
  .sync-player-list { grid-template-columns:repeat(2,1fr); }
  .sync-lobby-actions { align-items:stretch; flex-direction:column; }
  .sync-lobby-actions button { width:100%; min-width:0; }
  .sync-stage-topline { grid-template-columns:92px 1fr 76px; gap:10px; padding:9px 10px; }
  .sync-stage-topline strong { font-size:1.45rem; }
  .sync-timer { min-height:52px; }
  .sync-host-products { gap:7px; }
  .sync-host-product { padding:6px; border-radius:14px; }
  .sync-host-product img { border-radius:10px; }
  .sync-reveal-groups { grid-template-columns:1fr; }
  .sync-awards { grid-template-columns:1fr; }
  .sync-final-actions { align-items:stretch; flex-direction:column; }
  .sync-player-shell { padding:12px 10px calc(24px + env(safe-area-inset-bottom)); }
  .sync-player-join { width:100%; min-width:0; padding:22px 0; }
  .sync-player-form { padding:16px; }
  .sync-phone-prompt { min-height:94px; }
  .sync-phone-prompt h1 { font-size:clamp(1.28rem,6.3vw,1.72rem); }
  .sync-player-products { gap:7px; }
  .sync-player-product { grid-template-rows:minmax(76px,1fr) auto; min-height:132px; padding:5px; border-radius:15px; }
  .sync-player-product img { max-height:88px; }
  .sync-player-product div { padding:5px 3px 1px; }
  .sync-player-product b { font-size:.69rem; }
  .sync-pick-status { min-height:36px; margin-top:8px; padding:7px 9px; }
}

@media (max-width:380px) {
  .sync-player-shell { padding-inline:9px; }
  .sync-player-products { gap:6px; }
  .sync-player-product { min-height:126px; }
  .sync-player-product b { font-size:.66rem; }
}

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

@media (forced-colors:active) {
  .sync-player-product[aria-pressed="true"],.sync-reveal-card.majority,.sync-winner { outline:3px solid Highlight; }
  .sync-progress-track span,.sync-answer-meter i,.sync-phone-progress span { background:Highlight; }
}
