:root {
  font-family: Inter, "Noto Sans Thai", "Thonburi", Arial, sans-serif;
  color: #424242;
  background: #ffffff;
  font-synthesis: none;
  --pink: #fe3c72;
  --coral: #fd5564;
  --rose: #ef4a75;
  --ink: #424242;
  --white: #ffffff;
  --line: rgba(66, 66, 66, 0.12);
  --soft: rgba(254, 60, 114, 0.08);
  --shadow: 0 24px 70px rgba(66, 66, 66, 0.18);
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; min-width: 320px; min-height: 100%; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.gradient-page { background: linear-gradient(125deg, var(--rose) 0%, var(--pink) 47%, var(--coral) 100%); color: var(--white); }
.brand { display: inline-flex; align-items: center; color: var(--white); }
.brand-lockup { display: block; width: auto; height: 34px; object-fit: contain; }
.brand-dark { color: var(--white); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.status-light { color: var(--ink); background: var(--white); }
.status-glass { color: var(--white); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.status-soft { color: var(--pink); background: var(--soft); }
.status-success { color: var(--pink); background: rgba(254,60,114,.12); }
.eyebrow { display: inline-block; color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.button { min-height: 48px; border: 0; border-radius: 999px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { color: var(--white); background: linear-gradient(120deg, var(--pink), var(--coral)); box-shadow: 0 10px 30px rgba(254,60,114,.24); }
.button-light { color: var(--pink); background: var(--white); }
.button-outline-light { color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.75); }
.button-secondary { color: var(--pink); background: var(--white); border: 1px solid rgba(254,60,114,.25); }
.button-ghost { color: var(--ink); background: rgba(66,66,66,.06); }
.button-danger { color: var(--white); background: var(--ink); }
.button-danger-outline { color: var(--ink); background: var(--white); border: 1px solid rgba(66,66,66,.25); }
.button-coin { color: var(--white); background: var(--ink); }
.button-full { width: 100%; }
.button-small { min-height: 36px; padding: 7px 14px; font-size: 13px; }

.home-page { min-height: 100vh; padding: 20px 3.6vw 24px; display: grid; grid-template-rows: auto 1fr auto; }
.home-nav, .participant-header, .projector-header { display: flex; align-items: center; justify-content: space-between; }
.hero { width: min(770px, 90vw); margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 16px 0 14px; font-size: clamp(56px, 6.2vw, 88px); line-height: .95; letter-spacing: -.065em; font-weight: 800; }
.hero p { max-width: 680px; margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: rgba(255,255,255,.82); }
.hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.home-footer { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: rgba(255,255,255,.72); }
.home-footer a { display: flex; gap: 6px; align-items: center; font-weight: 700; }

.participant-page { min-height: 100dvh; padding: 18px max(12px, calc((100vw - 390px)/2)); display: flex; flex-direction: column; }
.participant-header { width: min(100%, 390px); margin: 0 auto 12px; }
.participant-header .brand { font-size: 18px; }
.onboarding-card { flex: 1; width: min(100%, 390px); min-height: 690px; max-height: calc(100dvh - 86px); margin: 0 auto; border-radius: 28px; background: var(--white); color: var(--ink); padding: 16px 16px 14px; display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow); overflow: hidden; }
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; }
.progress-bars { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.progress-bars span { width: 22px; height: 4px; border-radius: 999px; background: rgba(66,66,66,.14); }
.progress-bars span.active { background: var(--pink); }
.onboarding-body { display: flex; align-items: center; overflow-y: auto; padding: 14px 0; }
.step-content { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.step-content h1 { margin: 0; font-size: 29px; line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.step-content p { margin: 0 0 2px; font-size: 13px; line-height: 1.55; color: rgba(66,66,66,.72); }
.step-content input, .step-content textarea, .note-composer textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; background: var(--white); outline: none; resize: none; }
.step-content input:focus, .step-content textarea:focus, .note-composer textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(254,60,114,.1); }
.student-id-input { min-height: 76px; text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: .22em; border-color: rgba(254,60,114,.65) !important; box-shadow: inset 0 0 0 3px rgba(254,60,114,.08); outline: 1px solid rgba(254,60,114,.35) !important; outline-offset: 3px; }
.lookup-hint { margin-top: 4px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lookup-hint strong { font-size: 12px; }
.lookup-hint span { margin-top: 2px; font-size: 10px; color: rgba(66,66,66,.6); }
.photo-picker { width: 220px; height: 220px; margin: 4px auto 0; border-radius: 32px; border: 2px dashed rgba(254,60,114,.4); color: var(--pink); background: var(--soft); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; overflow: hidden; cursor: pointer; }
.photo-picker img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker input { display: none; }
.photo-picker span { font-size: 12px; color: rgba(66,66,66,.6); }
.subtle { font-size: 11px !important; }
.hobbies-step { align-self: flex-start; }
.pill-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; max-height: 270px; overflow-y: auto; padding: 4px 2px; }
.pill-grid button { min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 12px; }
.pill-grid button.selected { color: var(--white); background: var(--pink); border-color: var(--pink); }
.character-count { text-align: right; font-size: 11px; color: rgba(66,66,66,.6); }
.roster-confirm { padding: 11px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; gap: 10px; text-align: left; }
.roster-confirm div { display: flex; flex-direction: column; }
.roster-confirm span { font-size: 12px; color: rgba(66,66,66,.66); }
.success-inline { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--pink); font-size: 13px; font-weight: 700; }
.form-error, .admin-error { color: var(--pink); background: var(--soft); border: 1px solid rgba(254,60,114,.2); border-radius: 12px; padding: 10px 12px; font-size: 12px; text-align: left; }
.onboarding-footer { border-top: 1px solid var(--line); padding-top: 10px; }
.onboarding-footer > p { margin: 0 0 10px; text-align: center; font-size: 10px; color: rgba(66,66,66,.68); }
.footer-actions { display: flex; gap: 8px; }
.footer-actions .button-primary { margin-left: auto; flex: 1; }
.closed-state, .center-state { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.closed-state h1 { margin: 0; }
.closed-state p { margin: 0; color: rgba(66,66,66,.65); }
.center-state { margin: auto; color: var(--white); padding: 40px; }
.error-state { max-width: 440px; background: rgba(255,255,255,.12); border-radius: 24px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.28); border-top-color: var(--white); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.participant-app { width: min(100%, 760px); height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; background: var(--white); overflow: hidden; }
.app-topbar { height: 66px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.app-content { overflow-y: auto; padding: 24px 18px 30px; }
.participant-section { max-width: 620px; margin: 0 auto; }
.participant-section > h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.04em; margin: 5px 0 8px; }
.participant-section > p { margin-top: 0; color: rgba(66,66,66,.66); }
.ticket-card { position: relative; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 16px 44px rgba(66,66,66,.1); text-align: center; overflow: hidden; }
.ticket-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--pink), var(--coral)); }
.ticket-profile { display: flex; gap: 16px; align-items: center; text-align: left; }
.ticket-profile div { display: flex; flex-direction: column; }
.ticket-profile span { color: var(--pink); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.ticket-profile h2 { margin: 2px 0; font-size: 28px; }
.ticket-profile p { margin: 0; color: rgba(66,66,66,.65); }
.ticket-meta { margin: 20px 0; padding: 16px 0; border-block: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.ticket-meta div { display: flex; flex-direction: column; gap: 4px; }
.ticket-meta div + div { border-left: 1px solid var(--line); }
.ticket-meta span { font-size: 12px; color: rgba(66,66,66,.6); }
.ticket-meta strong { font-size: 22px; }
.ticket-qr { width: 150px; margin: 0 auto 4px; }
.ticket-code { margin: 0 0 12px; font-family: monospace; color: rgba(66,66,66,.55); font-size: 11px; }
.danger-zone { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.danger-zone p { margin: 3px 0 0; font-size: 12px; color: rgba(66,66,66,.6); }
.bottom-nav { min-height: 72px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); background: var(--white); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav button { border: 0; background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; font-size: 10px; color: rgba(66,66,66,.52); cursor: pointer; }
.bottom-nav button.active { color: var(--pink); font-weight: 800; }
.search-box { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; margin: 18px 0; background: var(--white); }
.search-box input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: none; }
.friend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.friend-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 14px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; }
.friend-card > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.friend-card strong, .friend-card span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.friend-card span { font-size: 12px; color: rgba(66,66,66,.62); }
.friend-card small { margin-top: 3px; color: var(--pink); }
.friend-tile { min-width: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.8); box-shadow: 0 10px 26px rgba(124,37,73,.1); backdrop-filter: blur(16px); }
.friend-tile-profile { width: 100%; padding: 0; border: 0; background: transparent; display: block; text-align: left; cursor: pointer; }
.friend-tile-photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(145deg, #fe3c72, #ff8758); display: block; }
.friend-tile-photo .avatar { width: 100%; height: 100%; border-radius: 0; object-fit: cover; font-size: 38px; }
.friend-tile-name { min-width: 0; padding: 11px 11px 9px; display: flex; flex-direction: column; }
.friend-tile-name strong, .friend-tile-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.friend-tile-name strong { color: var(--ink); font-size: 16px; }
.friend-tile-name small { margin-top: 2px; color: rgba(66,66,66,.56); font-size: 10px; }
.friend-tile-actions { padding: 0 8px 9px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.friend-tile-actions button { min-width: 0; min-height: 42px; padding: 7px 5px; border: 0; border-radius: 13px; color: #c91f5c; background: rgba(254,60,114,.09); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 800; cursor: pointer; }
.friend-tile-actions button.vote { color: var(--white); background: var(--pink); }
.friend-tile-actions button:disabled { color: rgba(66,66,66,.35); background: rgba(66,66,66,.07); cursor: not-allowed; }
.back-link { border: 0; background: transparent; padding: 0; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.friend-profile { text-align: center; padding-top: 22px; }
.friend-profile h1 { margin: 8px 0 3px; font-size: 36px; }
.friend-profile .occupation { margin: 0; color: rgba(66,66,66,.65); }
.hobby-row { margin: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.hobby-row span { background: var(--soft); color: var(--pink); border-radius: 999px; padding: 7px 11px; font-size: 12px; }
.friend-profile blockquote { margin: 18px 0; padding: 18px; border-radius: 20px; background: rgba(66,66,66,.045); font-size: 16px; line-height: 1.6; }
.friend-actions { display: flex; justify-content: center; }
.note-composer { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.note-composer > label:first-child { font-weight: 800; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.action-message { margin-top: 12px; text-align: center; color: var(--pink); font-weight: 700; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.quiz-card { border-radius: 26px; border: 1px solid var(--line); padding: 22px; box-shadow: 0 12px 32px rgba(66,66,66,.07); }
.quiz-card h1 { font-size: 28px; line-height: 1.25; margin: 9px 0 22px; }
.quiz-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; resize: vertical; }
.choice-list { display: grid; gap: 9px; margin-bottom: 14px; }
.choice-list button { border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 14px; text-align: left; cursor: pointer; }
.choice-list button.selected { color: var(--white); background: var(--pink); border-color: var(--pink); }
.submitted-answer { padding: 20px; border-radius: 18px; background: var(--soft); color: var(--pink); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.submitted-answer p { color: var(--ink); }
.leaderboard-mini { margin-top: 18px; }
.leaderboard-mini h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.leaderboard-mini > div { display: grid; grid-template-columns: 30px 1fr auto; padding: 11px 0; border-bottom: 1px solid var(--line); }
.leaderboard-mini em { color: var(--pink); font-style: normal; font-weight: 800; }
.centered-section { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.centered-section svg { color: var(--pink); }
.notes-list { display: grid; gap: 12px; margin-top: 20px; }
.notes-list article { border: 1px solid var(--line); border-radius: 20px; padding: 17px; }
.notes-list svg { color: var(--pink); }
.notes-list p { font-size: 16px; line-height: 1.55; }
.notes-list span { font-size: 12px; color: rgba(66,66,66,.58); }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(66,66,66,.48); text-align: center; }
.empty-state p { margin: 8px 0 0; }
.avatar { flex: 0 0 auto; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 850; color: var(--white); background: linear-gradient(135deg, var(--pink), var(--coral)); }
.avatar-sm { width: 34px; height: 34px; font-size: 11px; }
.avatar-md { width: 44px; height: 44px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 18px; }
.avatar-xl { width: 100px; height: 100px; font-size: 28px; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 440px); padding: 34px; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 32px; }
.login-icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 22px; color: var(--pink); background: var(--soft); display: grid; place-items: center; }
.login-card h1 { margin: 6px 0; font-size: 34px; letter-spacing: -.04em; }
.login-card > p { color: rgba(66,66,66,.65); line-height: 1.55; }
.login-card form { text-align: left; margin-top: 22px; }
.login-card form > label { font-size: 12px; font-weight: 800; }
.pin-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding-right: 12px; margin: 7px 0 12px; }
.pin-input input { flex: 1; min-width: 0; border: 0; outline: none; padding: 14px; font-size: 24px; letter-spacing: .28em; }
.pin-input button { border: 0; background: transparent; cursor: pointer; }
.login-card > a { display: inline-block; margin-top: 20px; font-size: 13px; color: rgba(66,66,66,.6); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; background: #ffffff; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white); }
.admin-sidebar .brand { margin: 0 10px 30px; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; gap: 11px; padding: 10px 12px; cursor: pointer; text-align: left; font-size: 13px; }
.admin-sidebar nav button.active { color: var(--pink); background: var(--soft); font-weight: 800; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 12px; }
.sidebar-bottom button { color: rgba(66,66,66,.62); }
.admin-main { min-width: 0; padding: 0 34px 50px; background: rgba(66,66,66,.025); }
.admin-statusbar { height: 64px; margin-inline: -34px; padding-inline: 34px; border-bottom: 1px solid var(--line); background: var(--white); display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: 12px; }
.admin-page-header { padding: 30px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.admin-page-header h1 { margin: 4px 0; font-size: 36px; letter-spacing: -.04em; }
.admin-page-header p { margin: 0; color: rgba(66,66,66,.62); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-card { min-width: 0; padding: 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.metric-card div { min-width: 0; display: flex; flex-direction: column; }
.metric-card span { font-size: 11px; color: rgba(66,66,66,.6); }
.metric-card strong { margin: 5px 0 3px; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card em { font-size: 11px; color: var(--pink); font-style: normal; }
.metric-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--pink) !important; display: grid; place-items: center; }
.admin-two-columns, .roulette-console, .quiz-admin-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--white); padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.panel h2, .panel-heading h2 { margin: 3px 0 0; }
.panel blockquote { margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--pink); font-size: 22px; line-height: 1.45; font-weight: 650; }
.toggle-row { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; }
.toggle-row > div { display: flex; flex-direction: column; }
.toggle-row span { font-size: 11px; color: rgba(66,66,66,.58); }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { width: 42px; height: 24px; padding: 3px; border-radius: 999px; background: rgba(66,66,66,.18); transition: .2s; }
.toggle-row i::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: .2s; box-shadow: 0 2px 8px rgba(66,66,66,.18); }
.toggle-row input:checked + i { background: var(--pink); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.admin-search { max-width: 480px; margin-top: 0; }
.participant-table { padding: 0; overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: minmax(260px,2fr) 90px 130px 120px; gap: 12px; align-items: center; padding: 13px 18px; }
.table-head { background: rgba(66,66,66,.045); font-size: 11px; font-weight: 800; color: rgba(66,66,66,.55); }
.table-row { border-top: 1px solid var(--line); }
.table-row > div:first-child { display: flex; align-items: center; gap: 10px; }
.table-row > div:first-child > span { display: flex; flex-direction: column; }
.table-row small { color: rgba(66,66,66,.58); }
.topic-panel, .timer-panel { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.topic-panel blockquote { border: 0; padding: 0; font-size: 28px; }
.big-timer { display: block; margin: 20px 0 8px; font-size: 86px; line-height: 1; letter-spacing: -.06em; }
.timer-actions { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.question-list { display: grid; gap: 8px; align-content: start; }
.question-list > h2 { margin-bottom: 10px; }
.question-list > button { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 12px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.question-list > button > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(66,66,66,.06); }
.question-list > button div { display: flex; flex-direction: column; }
.question-list > button small { color: rgba(66,66,66,.58); }
.question-list > button.active { border-color: var(--pink); background: var(--soft); }
.live-question { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.live-question h2 { font-size: 30px; line-height: 1.3; }
.response-count { display: flex; align-items: baseline; gap: 8px; color: var(--pink); }
.response-count strong { font-size: 54px; }
.quiz-control-actions { margin-top: 28px; display: flex; gap: 8px; }
.results-panel { max-width: 760px; }
.results-panel .panel-heading { align-items: center; border-bottom: 1px solid var(--line); }
.results-panel .toggle-row { min-width: 300px; border: 0; }
.result-row { display: grid; grid-template-columns: 40px 50px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-row > div { display: flex; flex-direction: column; }
.result-row small { color: rgba(66,66,66,.58); }
.result-row em { color: var(--pink); font-weight: 800; font-style: normal; }
.rank { width: 30px; height: 30px; border-radius: 50%; background: rgba(66,66,66,.07); display: grid; place-items: center; font-weight: 800; }
.rank-1 { color: var(--white); background: var(--pink); }
.screen-mode-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.screen-mode-grid button { min-height: 230px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.screen-mode-grid button > span { width: 58px; height: 58px; border-radius: 18px; color: var(--pink); background: var(--soft); display: grid; place-items: center; }
.screen-mode-grid button strong { font-size: 18px; }
.screen-mode-grid button small { color: rgba(66,66,66,.55); }
.screen-mode-grid button.active { color: var(--white); background: linear-gradient(135deg, var(--pink), var(--coral)); border-color: transparent; }
.screen-mode-grid button.active > span { color: var(--white); background: rgba(255,255,255,.18); }
.screen-mode-grid button.active small { color: rgba(255,255,255,.8); }

.projector-page { min-height: 100vh; padding: 22px 3.6vw 18px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.projector-stage { min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.projector-stage .eyebrow { color: rgba(255,255,255,.74); }
.projector-stage .status-success { color: var(--pink); background: var(--white); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 10px 28px rgba(91,17,48,.14); }
.lobby-stage { position: relative; display: block; width: calc(100% + 7.2vw); height: 100%; margin-inline: -3.6vw; overflow: hidden; isolation: isolate; }
.event-lobby-backdrop { position: absolute; z-index: -2; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: center; animation: event-backdrop-breathe 12s ease-in-out infinite alternate; }
.people-orbit { position: absolute; z-index: 2; inset: 0; }
.checked-person-bubble { position: absolute; left: var(--bubble-x); top: var(--bubble-y); width: var(--bubble-size); height: var(--bubble-size); border: 5px solid rgba(255,255,255,.94); border-radius: 50%; background: #fff; box-shadow: 0 16px 34px rgba(76,20,47,.34), 0 0 0 5px rgba(255,195,0,.22); transform: translate(-50%,-50%); animation: checked-person-float var(--bubble-duration) var(--bubble-delay) ease-in-out infinite; }
.checked-person-bubble .avatar { width: 100%; height: 100%; border: 0; box-shadow: none; }
.checked-person-bubble > span { position: absolute; left: 50%; bottom: -8px; max-width: 92%; padding: 5px 12px 6px; overflow: hidden; border: 2px solid rgba(255,255,255,.88); border-radius: 999px; color: #fff; background: rgba(31,20,29,.92); box-shadow: 0 7px 16px rgba(56,19,40,.26); font-size: 12px; font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.checked-in-count { position: absolute; z-index: 5; left: 50%; top: 6.5%; min-height: 58px; padding: 10px 17px; border: 2px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; background: rgba(43,21,35,.56); box-shadow: 0 16px 42px rgba(58,18,40,.22), inset 0 1px 0 rgba(255,255,255,.28); backdrop-filter: blur(18px) saturate(145%); display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.checked-in-count svg { color: #ffd21f; }
.checked-in-count span { font-size: 13px; font-weight: 800; }
.checked-in-count strong { margin-left: 4px; font-size: 30px; line-height: 1; }
.checked-in-count small { color: rgba(255,255,255,.76); font-size: 12px; font-weight: 750; }
@keyframes event-backdrop-breathe { from { transform: scale(1) translate3d(-.5%,0,0); } to { transform: scale(1.045) translate3d(.7%,-.5%,0); } }
@keyframes checked-person-float { 0%,100% { transform: translate(-50%,-50%) translate3d(0,-7px,0) rotate(-2deg); } 50% { transform: translate(-50%,-50%) translate3d(8px,9px,0) rotate(3deg); } }
.roulette-stage blockquote { max-width: 960px; margin: 24px auto; font-size: clamp(42px,5.6vw,86px); line-height: 1.13; font-weight: 750; letter-spacing: -.04em; }
.projector-timer { margin: 4px 0 16px; font-size: clamp(84px,11vw,164px); line-height: 1; letter-spacing: -.08em; }
.roulette-mark { width: 86px; height: 86px; border: 1px solid rgba(255,255,255,.34); border-radius: 28px; background: rgba(255,255,255,.12); box-shadow: 0 20px 45px rgba(111,19,56,.18); display: grid; place-items: center; transform: rotate(-5deg); backdrop-filter: blur(14px); }
.roulette-mark svg { grid-area: 1/1; opacity: .32; }
.roulette-mark span { grid-area: 1/1; font-size: 30px; font-weight: 900; }
.roulette-mark-icon-only svg { opacity: .86; stroke-width: 2.2; }
.roulette-spinning .roulette-mark { animation: roulette-mark-spin .9s cubic-bezier(.36,.07,.19,.97) infinite; }
.roulette-reel { width: min(1100px,88vw); height: min(53vh,500px); margin: 22px auto 16px; padding: 18px; overflow: hidden; display: grid; grid-template-rows: .78fr 1.44fr .78fr; gap: 12px; perspective: 1000px; }
.roulette-reel > div { min-height: 0; padding: 18px 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: rgba(93,20,50,.16); opacity: .42; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: scale(.92); filter: blur(1.2px); }
.roulette-reel > div.active { border-color: rgba(255,255,255,.78); background: rgba(255,255,255,.94); color: var(--ink); opacity: 1; transform: scale(1); filter: none; box-shadow: 0 24px 60px rgba(82,15,44,.25); animation: roulette-card-pop .14s ease-out; }
.roulette-reel small { margin-bottom: 7px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.roulette-reel .active small { color: var(--pink); }
.roulette-reel strong { max-width: 900px; font-size: clamp(21px,3vw,46px); line-height: 1.22; }
.roulette-spin-track { width: min(640px,64vw); height: 7px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.roulette-spin-track i { display: block; height: 100%; border-radius: inherit; background: var(--white); box-shadow: 0 0 24px rgba(255,255,255,.75); transition: width .07s linear; }
.roulette-spinning > p { margin: 12px 0 0; color: rgba(255,255,255,.68); font-size: 13px; font-weight: 700; letter-spacing: .05em; }
@keyframes roulette-mark-spin { 0% { transform: rotate(-8deg) scale(.96); } 50% { transform: rotate(10deg) scale(1.04); } 100% { transform: rotate(-8deg) scale(.96); } }
@keyframes roulette-card-pop { from { transform: translateY(18px) scale(.96); opacity: .7; } to { transform: translateY(0) scale(1); opacity: 1; } }
.quiz-stage { width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4vw; align-items: center; text-align: left; }
.screen-question h1 { font-size: clamp(40px,4.8vw,72px); line-height: 1.15; letter-spacing: -.045em; }
.projector-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.projector-choices span { padding: 18px; border: 1px solid rgba(255,255,255,.34); border-radius: 16px; background: rgba(255,255,255,.12); font-size: 20px; }
.response-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.response-wall blockquote { margin: 0; padding: 16px; border-radius: 18px; background: var(--white); color: var(--ink); font-size: 17px; }
.response-bubble-field { position: relative; min-height: 560px; overflow: hidden; }
.response-bubble-field blockquote { position: absolute; width: max-content; max-width: min(390px,72%); margin: 0; padding: 15px 22px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(92,17,49,.18); font-size: clamp(13px,1.2vw,18px); line-height: 1.35; text-align: left; overflow-wrap: anywhere; animation: response-bubble-float 7s ease-in-out infinite alternate; }
.response-bubble-field blockquote:nth-child(1) { left: 1%; top: 2%; }
.response-bubble-field blockquote:nth-child(2) { right: 1%; top: 12%; animation-delay: -2s; }
.response-bubble-field blockquote:nth-child(3) { left: 7%; top: 27%; animation-delay: -4s; }
.response-bubble-field blockquote:nth-child(4) { right: 7%; top: 39%; animation-delay: -1s; }
.response-bubble-field blockquote:nth-child(5) { left: 0; top: 54%; animation-delay: -5s; }
.response-bubble-field blockquote:nth-child(6) { right: 0; top: 66%; animation-delay: -3s; }
.response-bubble-field blockquote:nth-child(7) { left: 8%; bottom: 1%; animation-delay: -6s; }
.response-bubble-field blockquote:nth-child(8) { right: 8%; bottom: 0; animation-delay: -2.8s; }
.response-bubble-field blockquote:nth-child(9) { left: 33%; top: 18%; animation-delay: -4.8s; }
.response-bubble-field blockquote:nth-child(10) { right: 30%; bottom: 16%; animation-delay: -1.8s; }
@keyframes response-bubble-float { from { transform: translate3d(-8px,8px,0) rotate(-1deg); } to { transform: translate3d(13px,-18px,0) rotate(1deg); } }
.name-cloud-stage { position: relative; width: 100%; min-height: 580px; padding: 36px 46px 92px; overflow: visible; display: grid; place-items: center; }
.name-cloud { width: 100%; min-height: 430px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: clamp(14px,1.7vw,26px); overflow: visible; }
.name-count-bubble { width: min(var(--name-size),28vw); height: min(var(--name-size),28vw); flex: 0 0 auto; padding: 12px; border: 2px solid rgba(255,255,255,.58); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 18px 38px rgba(86,20,48,.19); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: name-bubble-breathe 4.8s ease-in-out infinite; animation-delay: calc(var(--name-index) * -.23s); }
.name-count-bubble strong { max-width: 100%; font-size: var(--name-label-size); line-height: 1.05; overflow-wrap: anywhere; }
.name-count-bubble span { margin-top: 5px; color: var(--pink); font-size: var(--name-count-size); font-weight: 900; }
@keyframes name-bubble-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.035); } }
.name-cloud-empty { color: rgba(255,255,255,.74); text-align: center; }
.introduce-next { position: absolute; right: 0; bottom: 0; min-width: 250px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 16px 36px rgba(86,20,48,.2); display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; }
.introduce-next span { grid-column: 1 / -1; color: var(--pink); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.introduce-next strong { font-size: 25px; }
.introduce-next small { align-self: end; color: rgba(66,66,66,.55); }
.name-cloud-reveal { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.name-cloud-reveal .introduce-next { position: static; }
.reward-winner { min-width: 275px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.52); border-radius: 22px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 16px 36px rgba(86,20,48,.2); display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; }
.reward-winner span { grid-column: 1 / -1; color: #ff6036; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reward-winner strong { font-size: 25px; }
.reward-winner small { align-self: end; color: rgba(66,66,66,.55); }
.quiz-name-input { font-size: 22px; font-weight: 800; text-align: center; }
.submitted-name-list { margin: 14px 0; display: grid; gap: 8px; }
.submitted-name-list > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.submitted-name-list > div { display: flex; flex-wrap: wrap; gap: 6px; }
.submitted-name-list strong { display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 999px; color: #b41755; background: #fff0f5; font-size: 12px; }
.exact-answer-prompt { margin: 14px 0 22px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.32); border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; gap: 8px; }
.screen-leaderboard h2 { display: flex; gap: 9px; align-items: center; }
.screen-leaderboard > div { display: grid; grid-template-columns: 40px 54px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.screen-leaderboard em { font-style: normal; font-weight: 800; }
.popular-stage h1 { font-size: clamp(40px,4.6vw,70px); margin: 12px 0 30px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.podium article { width: min(250px,26vw); min-height: 300px; padding: 24px 16px; border-radius: 28px 28px 0 0; background: var(--white); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.podium .place-1 { order: 2; min-height: 380px; }
.podium .place-2 { order: 1; min-height: 330px; }
.podium .place-3 { order: 3; }
.podium h2 { margin: 10px 0 2px; font-size: 28px; }
.podium p { margin: 0 0 12px; color: rgba(66,66,66,.62); }
.podium > article > strong { color: var(--pink); font-size: 20px; }
.rank-medal { width: 34px; height: 34px; margin-bottom: -15px; transform: translateY(-30px); border-radius: 50%; background: var(--pink); color: var(--white); display: grid; place-items: center; font-weight: 900; }
.waiting-votes { color: rgba(255,255,255,.78); }
.projector-footer { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,.65); }
.projector-footer .brand { font-size: 14px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(66,66,66,.5); display: grid; place-items: center; padding: 20px; }
.confirm-modal { width: min(100%, 440px); padding: 28px; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--soft); color: var(--pink); }
.confirm-modal h2 { margin: 0; font-size: 28px; }
.confirm-modal p { color: rgba(66,66,66,.65); line-height: 1.55; }
.confirm-modal > div { display: flex; gap: 8px; justify-content: center; }
.message-modal-backdrop { z-index: 60; background: rgba(45,20,34,.58); backdrop-filter: blur(8px); }
.message-modal { width: min(100%, 440px); padding: 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; color: var(--ink); background: rgba(255,246,247,.96); box-shadow: 0 28px 80px rgba(58,31,45,.34); }
.message-modal-person { display: flex; align-items: center; gap: 13px; }
.message-modal-person > div { display: flex; flex-direction: column; }
.message-modal-person small { color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.message-modal h2 { margin: 2px 0; font-size: 28px; line-height: 1.1; }
.message-modal > p { margin: 8px 0 14px; color: rgba(66,66,66,.62); text-align: center; }
.message-modal textarea { width: 100%; margin: 16px 0 10px; padding: 14px; border: 1px solid rgba(254,60,114,.16); border-radius: 17px; color: var(--ink); background: var(--white); outline: 0; resize: none; }
.message-modal textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(254,60,114,.1); }
.message-modal .check-row { margin: 2px 0 14px; }
.message-modal .modal-icon { margin-bottom: 12px; }
.message-modal blockquote { margin: 12px 0 18px; padding: 14px; border-radius: 17px; color: rgba(66,66,66,.78); background: rgba(254,60,114,.08); line-height: 1.55; }
.message-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.message-modal-actions .button { width: 100%; padding-inline: 12px; }
.popup-warning { margin: -4px 0 12px; padding: 10px 12px; border-radius: 13px; color: #9b2951; background: rgba(254,60,114,.1); font-size: 11px; }

/* Tinder-led product treatment */
.participant-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.18), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(239,74,117,.5), transparent 38%),
    linear-gradient(145deg, #ef4a75 0%, #fe3c72 48%, #fd5564 100%);
}
.onboarding-card {
  color: var(--white);
  background: linear-gradient(155deg, rgba(255,255,255,.19), rgba(255,255,255,.075));
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 26px 70px rgba(66,66,66,.25), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(22px) saturate(135%);
}
.onboarding-card .eyebrow { color: rgba(255,255,255,.8); }
.onboarding-card .step-content h1 { color: var(--white); font-weight: 760; text-shadow: 0 2px 18px rgba(66,66,66,.12); }
.onboarding-card .step-content p { color: rgba(255,255,255,.78); }
.onboarding-card .progress-bars span { background: rgba(255,255,255,.28); }
.onboarding-card .progress-bars span.active { background: var(--white); }
.onboarding-card .student-id-input,
.onboarding-card .step-content input,
.onboarding-card .step-content textarea {
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.8);
}
.onboarding-card .student-id-input {
  border-color: rgba(255,255,255,.95) !important;
  outline-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 16px 32px rgba(66,66,66,.12), inset 0 0 0 3px rgba(254,60,114,.08);
}
.onboarding-card .lookup-hint,
.onboarding-card .roster-confirm {
  color: var(--white);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
}
.onboarding-card .lookup-hint span,
.onboarding-card .roster-confirm span,
.onboarding-card .character-count,
.onboarding-card .subtle { color: rgba(255,255,255,.7); }
.onboarding-card .pill-grid button {
  color: var(--white);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.26);
}
.onboarding-card .pill-grid button.selected { color: var(--pink); background: var(--white); border-color: var(--white); }
.onboarding-card .photo-picker { color: var(--white); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.onboarding-card .photo-picker span { color: rgba(255,255,255,.68); }
.recognized-participant { position: relative; min-height: 72px; padding: 8px 46px 8px 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 22px; color: var(--white); background: linear-gradient(112deg,rgba(255,255,255,.2),rgba(255,255,255,.09)); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 12px 28px rgba(86,19,50,.13); display: flex; align-items: center; gap: 11px; text-align: left; }
.recognized-participant .avatar { width: 54px; height: 54px; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 7px 18px rgba(74,17,43,.2); }
.recognized-participant > div { min-width: 0; display: flex; flex-direction: column; }
.recognized-participant small { color: #ffd21f; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.recognized-participant strong { margin: 1px 0; overflow: hidden; font-size: 19px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.recognized-participant span { color: rgba(255,255,255,.72); font-size: 9px; line-height: 1.35; }
.recognized-participant > i { position: absolute; right: 12px; top: 50%; width: 27px; height: 27px; border-radius: 50%; color: #9d2051; background: #ffd21f; display: grid; place-items: center; transform: translateY(-50%); }
.onboarding-card .onboarding-footer { border-color: rgba(255,255,255,.2); }
.onboarding-card .onboarding-footer > p { color: rgba(255,255,255,.7); }
.onboarding-card .button-primary { color: var(--pink); background: var(--white); box-shadow: 0 14px 30px rgba(66,66,66,.18); }
.onboarding-card .button-ghost { color: var(--white); background: rgba(255,255,255,.12); }
.onboarding-card .form-error { color: var(--white); background: rgba(66,66,66,.22); border-color: rgba(255,255,255,.25); }

.participant-app {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 4%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(150deg, #ef4a75 0%, #fe3c72 52%, #fd5564 100%);
  box-shadow: 0 0 80px rgba(66,66,66,.18);
}
.participant-app .app-topbar {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}
.participant-app .brand-dark { color: var(--white); }
.participant-app .status-soft { color: var(--white); background: rgba(255,255,255,.16); }
.participant-app .participant-section > .eyebrow,
.participant-app .quiz-card .eyebrow { color: rgba(255,255,255,.78); }
.participant-app .participant-section > p,
.participant-app .centered-section p { color: rgba(255,255,255,.76); }
.participant-app .ticket-card,
.participant-app .friend-card,
.participant-app .quiz-card,
.participant-app .notes-list article,
.participant-app .danger-zone,
.participant-app .friend-profile blockquote,
.participant-app .leaderboard-mini,
.participant-app .note-composer {
  color: var(--white);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 18px 46px rgba(66,66,66,.14), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(18px);
}
.participant-app .ticket-card::before { background: rgba(255,255,255,.72); }
.participant-app .ticket-profile span,
.participant-app .result-row em,
.participant-app .action-message { color: var(--white); }
.participant-app .ticket-profile p,
.participant-app .ticket-meta span,
.participant-app .ticket-code,
.participant-app .danger-zone p,
.participant-app .friend-card span,
.participant-app .friend-card small,
.participant-app .notes-list span { color: rgba(255,255,255,.68); }
.participant-app .ticket-meta,
.participant-app .ticket-meta div + div,
.participant-app .leaderboard-mini > div,
.participant-app .note-composer { border-color: rgba(255,255,255,.2); }
.participant-app .ticket-qr { padding: 8px; border-radius: 14px; background: var(--white); }
.participant-app .status-soft,
.participant-app .status-success { color: var(--white); background: rgba(255,255,255,.15); }
.participant-app .search-box,
.participant-app .quiz-card textarea,
.participant-app .note-composer textarea { color: var(--ink); background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.8); }
.participant-app .friend-card strong { color: var(--white); }
.participant-app .friend-card > svg { color: rgba(255,255,255,.74); }
.participant-app .back-link { color: var(--white); }
.participant-app .hobby-row span { color: var(--white); background: rgba(255,255,255,.14); }
.participant-app .friend-profile .occupation { color: rgba(255,255,255,.72); }
.participant-app .choice-list button { color: var(--white); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); }
.participant-app .choice-list button.selected { color: var(--pink); background: var(--white); border-color: var(--white); }
.participant-app .submitted-answer { color: var(--white); background: rgba(255,255,255,.14); }
.participant-app .submitted-answer p { color: var(--white); }
.participant-app .empty-state { color: rgba(255,255,255,.72); }
.participant-app .bottom-nav {
  color: var(--white);
  background: rgba(66,66,66,.94);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 -12px 30px rgba(66,66,66,.18);
}
.participant-app .bottom-nav button { color: rgba(255,255,255,.58); }
.participant-app .bottom-nav button.active { color: #fd5564; }
.participant-app .button-coin { color: var(--pink); background: var(--white); }
.participant-app .button-danger-outline { color: var(--white); background: rgba(66,66,66,.2); border-color: rgba(255,255,255,.3); }

.admin-main {
  background:
    radial-gradient(circle at 100% 0%, rgba(254,60,114,.18), transparent 30%),
    linear-gradient(145deg, rgba(239,74,117,.09), rgba(253,85,100,.035));
}
.admin-sidebar {
  color: var(--white);
  background: linear-gradient(180deg, #ef4a75 0%, #fe3c72 55%, #fd5564 100%);
  border-color: rgba(255,255,255,.15);
}
.admin-sidebar .brand-dark { color: var(--white); }
.admin-sidebar nav button { color: rgba(255,255,255,.72); }
.admin-sidebar nav button.active { color: var(--white); background: rgba(255,255,255,.18); }
.admin-sidebar .sidebar-bottom { border-color: rgba(255,255,255,.2); }
.admin-sidebar .sidebar-bottom button { color: rgba(255,255,255,.72); }
.admin-statusbar { background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.metric-card,
.panel { box-shadow: 0 14px 36px rgba(239,74,117,.08); }

/* Tactile hobby pins */
.pill-grid { gap: 10px; max-height: 330px; align-content: flex-start; }
.pill-grid button {
  min-height: 52px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 720;
  transform-origin: 50% 80%;
  transition: transform .28s cubic-bezier(.2,.9,.2,1.3), background .2s ease, opacity .2s ease;
}
.pill-grid button > span { font-size: 20px; line-height: 1; }
.pill-grid button:hover:not(:disabled) { animation: hobby-bob .72s cubic-bezier(.2,.7,.3,1); }
.pill-grid button:active:not(:disabled) { transform: translateY(3px) scale(.95); }
.pill-grid button.selected { animation: hobby-settle .55s cubic-bezier(.18,.9,.28,1.3); }
.pill-grid button:disabled { opacity: .35; cursor: not-allowed; }
@keyframes hobby-bob { 0%,100% { transform: translateY(0) rotate(0); } 28% { transform: translateY(-8px) rotate(-2deg); } 58% { transform: translateY(2px) rotate(1deg); } 78% { transform: translateY(-3px) rotate(-.5deg); } }
@keyframes hobby-settle { 0% { transform: translateY(-8px) scale(1.04); } 55% { transform: translateY(2px) scale(.98); } 100% { transform: translateY(0) scale(1); } }
.custom-hobbies { display: grid; gap: 8px; }
.custom-hobby-input { display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
.custom-hobby-input button { border: 0; border-radius: 16px; color: var(--pink); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.custom-hobby-input button:disabled { opacity: .45; }
.custom-hobby-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.custom-hobby-tags button { min-height: 34px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: var(--white); background: rgba(255,255,255,.14); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.custom-hobbies small { color: rgba(255,255,255,.7); }

/* Ticket utilities and pre-event gate */
.ticket-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wallet-button { color: var(--white); background: #121212; border: 1px solid rgba(255,255,255,.2); }
.wallet-message, .event-locked-banner { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; background: rgba(66,66,66,.18); display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 12px; }
.wallet-message svg, .event-locked-banner svg { flex: 0 0 auto; }
.event-locked-banner { margin: 0 auto 16px; max-width: 620px; }
.event-locked-banner div { display: flex; flex-direction: column; }
.event-locked-banner span { color: rgba(255,255,255,.72); }
.thanks-inbox { margin: -6px 0 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(255,255,255,.1); overflow: hidden; }
.thanks-inbox summary { min-height: 48px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.thanks-inbox summary::-webkit-details-marker { display: none; }
.thanks-inbox summary strong { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; color: var(--pink); background: var(--white); display: grid; place-items: center; font-size: 11px; }
.thanks-inbox article { margin: 0 12px 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.12); }
.thanks-inbox article p { margin: 0 0 4px; }
.thanks-inbox article span { font-size: 11px; color: rgba(255,255,255,.7); }
.activity-list { margin-top: 22px; display: grid; gap: 12px; }
.activity-list article { padding: 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; background: rgba(255,255,255,.1); display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; backdrop-filter: blur(14px); }
.activity-list article > span { width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.activity-list article.active { background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.activity-list article div { display: flex; flex-direction: column; }
.activity-list article p { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: 12px; }
.test-data-panel { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.test-data-panel h2 { margin: 4px 0; }
.test-data-panel p { max-width: 680px; margin: 0; color: rgba(66,66,66,.62); }
.test-data-panel > div:last-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Mobile admin remote */
.admin-remote-page {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #3a1f2d;
}
.admin-remote-shell {
  position: relative;
  width: min(100%, 390px);
  height: min(100dvh, 844px);
  display: grid;
  grid-template-rows: 62px 76px minmax(0, 1fr) 76px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.42), transparent 27%),
    linear-gradient(154deg, #ff356c 0%, #ff5c5f 20%, #ff8758 38%, #ffd4dc 68%, #ffe4d7 100%);
  box-shadow: 0 24px 70px rgba(35,12,24,.38);
}
.remote-header {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: linear-gradient(112deg, #fd267a, #ff6036);
  box-shadow: 0 10px 28px rgba(151,25,69,.2);
}
.remote-header .brand-lockup { height: 25px; }
.remote-header .status-pill { min-height: 28px; padding: 5px 10px; display: inline-flex; gap: 5px; }
.remote-header-actions { display: flex; align-items: center; gap: 7px; }
.remote-header-logout {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(87,8,39,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.remote-header-logout:focus-visible { outline: 3px solid #ffd600; outline-offset: 2px; }
.now-playing {
  width: auto;
  margin: 8px 14px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(124,37,73,.1);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.now-playing-icon { width: 42px; height: 42px; border-radius: 14px; color: var(--white); background: var(--pink); display: grid; place-items: center; }
.now-playing > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.now-playing small { color: rgba(66,66,66,.55); font-size: 10px; }
.now-playing strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.live-wave { height: 24px; display: flex; align-items: center; gap: 3px; }
.live-wave i { width: 3px; height: 9px; border-radius: 99px; background: var(--pink); animation: live-wave 1.1s ease-in-out infinite; }
.live-wave i:nth-child(2) { height: 18px; animation-delay: -.3s; }
.live-wave i:nth-child(3) { height: 13px; animation-delay: -.6s; }
@keyframes live-wave { 0%,100% { transform: scaleY(.55); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
.remote-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 26px; scrollbar-width: none; background: linear-gradient(180deg, rgba(255,243,247,.72), rgba(255,226,219,.58)); }
.remote-scroll::-webkit-scrollbar { display: none; }
.remote-view { display: grid; gap: 14px; }
.remote-title { display: flex; flex-direction: column; }
.remote-title .eyebrow { font-size: 10px; }
.remote-title h1 { margin: 3px 0 2px; font-size: 28px; line-height: 1.08; letter-spacing: -.045em; }
.remote-title p { margin: 0; color: rgba(66,66,66,.58); font-size: 12px; line-height: 1.45; }
.remote-title-action { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }
.show-screen-button {
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: 13px;
  color: var(--white);
  background: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.event-master-button {
  width: 100%;
  min-height: 84px;
  padding: 14px;
  border: 0;
  border-radius: 24px;
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 16px 32px rgba(254,60,114,.24);
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
}
.event-master-button.active { background: var(--ink); box-shadow: 0 16px 32px rgba(66,66,66,.2); }
.event-master-button > span { width: 48px; height: 48px; border-radius: 17px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.event-master-button > div { display: flex; flex-direction: column; }
.event-master-button small { color: rgba(255,255,255,.7); font-size: 10px; }
.event-master-button strong { margin-top: 2px; font-size: 20px; }
.remote-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.remote-metric { min-height: 88px; padding: 13px; border: 1px solid rgba(255,255,255,.52); border-radius: 20px; background: rgba(255,255,255,.7); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; box-shadow: 0 8px 22px rgba(124,37,73,.09); backdrop-filter: blur(16px); }
.remote-metric svg { color: var(--pink); grid-column: 2; grid-row: 1 / span 2; }
.remote-metric strong { font-size: 22px; line-height: 1; }
.remote-metric span { color: rgba(66,66,66,.55); font-size: 10px; }
.remote-card { padding: 14px; border: 1px solid rgba(255,255,255,.52); border-radius: 22px; background: rgba(255,255,255,.7); box-shadow: 0 8px 24px rgba(124,37,73,.09); backdrop-filter: blur(16px); }
.remote-card-title { margin-bottom: 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }
.remote-card-title .status-pill { min-height: 24px; padding: 4px 8px; font-size: 8px; }
.remote-toggle { position: relative; min-height: 60px; border-top: 1px solid rgba(66,66,66,.08); display: grid; grid-template-columns: 38px 1fr 42px; gap: 9px; align-items: center; cursor: pointer; }
.remote-toggle-icon { width: 36px; height: 36px; border-radius: 12px; color: var(--pink); background: var(--soft); display: grid; place-items: center; }
.remote-toggle > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.remote-toggle strong { font-size: 13px; }
.remote-toggle small { color: rgba(66,66,66,.54); font-size: 10px; }
.remote-toggle input { position: absolute; opacity: 0; }
.remote-toggle > i { width: 42px; height: 24px; padding: 3px; border-radius: 99px; background: rgba(66,66,66,.16); }
.remote-toggle > i::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 7px rgba(66,66,66,.2); transition: transform .2s ease; }
.remote-toggle input:checked + i { background: var(--pink); }
.remote-toggle input:checked + i::after { transform: translateX(18px); }
.remote-tools { border: 1px solid rgba(66,66,66,.09); border-radius: 18px; background: rgba(255,255,255,.65); overflow: hidden; }
.remote-tools summary { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.remote-tools summary::-webkit-details-marker { display: none; }
.remote-tools > div { padding: 0 12px 12px; display: grid; gap: 7px; }
.remote-tools p { margin: 0 0 3px; color: rgba(66,66,66,.58); font-size: 10px; }
.remote-tools button { min-height: 40px; border: 0; border-radius: 12px; color: var(--ink); background: rgba(66,66,66,.06); display: flex; align-items: center; gap: 8px; padding: 9px 11px; cursor: pointer; }
.remote-tools button:disabled { opacity: .38; cursor: not-allowed; }
.remote-tools .danger-link { color: var(--pink); background: var(--soft); }
.remote-search { min-height: 48px; padding: 0 13px; border: 1px solid rgba(254,60,114,.14); border-radius: 16px; background: var(--white); display: flex; align-items: center; gap: 8px; }
.remote-search svg { color: var(--pink); }
.remote-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.checkin-cards { display: grid; gap: 8px; }
.checkin-card { min-height: 70px; padding: 10px; border: 1px solid rgba(254,60,114,.1); border-radius: 19px; background: var(--white); display: grid; grid-template-columns: 44px 1fr auto; gap: 9px; align-items: center; box-shadow: 0 7px 18px rgba(124,37,73,.05); }
.checkin-card > div { min-width: 0; display: flex; flex-direction: column; }
.checkin-card > div strong, .checkin-card > div small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkin-card > div small { color: rgba(66,66,66,.54); font-size: 9px; }
.checkin-card button { min-width: 52px; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 12px; color: var(--white); background: var(--pink); display: grid; place-items: center; font-size: 10px; font-weight: 800; cursor: pointer; }
.checkin-card button:disabled { color: var(--pink); background: var(--soft); }
.remote-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: rgba(66,66,66,.4); }
.remote-empty strong { margin-top: 9px; color: var(--ink); }
.remote-empty span { margin-top: 3px; max-width: 230px; font-size: 10px; }
.remote-timer-card { min-height: 190px; padding: 20px; border-radius: 28px; color: var(--white); background: var(--pink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 18px 36px rgba(254,60,114,.25); }
.remote-timer-card > span { color: rgba(255,255,255,.72); font-size: 11px; }
.remote-timer-card > strong { margin: 5px 0 10px; font-size: 72px; line-height: 1; letter-spacing: -.065em; }
.remote-timer-card.is-spinning { background: linear-gradient(135deg,#ff385c,#fd267a 52%,#ff6036); }
.remote-timer-card.is-spinning > strong { font-size: 54px; letter-spacing: .04em; animation: remote-spin-pulse .7s ease-in-out infinite alternate; }
@keyframes remote-spin-pulse { from { opacity: .56; transform: scale(.96); } to { opacity: 1; transform: scale(1.03); } }
.remote-topic-card { padding: 16px; border: 1px solid rgba(254,60,114,.1); border-radius: 22px; background: var(--white); box-shadow: 0 8px 22px rgba(124,37,73,.06); }
.remote-topic-card small { color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.remote-topic-card blockquote { margin: 9px 0 14px; font-size: 20px; line-height: 1.35; font-weight: 720; }
.remote-topic-card button { min-height: 42px; padding: 9px 12px; border: 0; border-radius: 13px; color: var(--pink); background: var(--soft); display: inline-flex; align-items: center; gap: 7px; font-weight: 750; cursor: pointer; }
.remote-topic-card .remote-start-timer { width: 100%; min-height: 52px; color: var(--white); background: var(--pink); justify-content: center; font-size: 14px; box-shadow: 0 12px 24px rgba(254,60,114,.2); }
.remote-primary-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.remote-primary-actions button { min-height: 54px; padding: 11px 16px; border: 0; border-radius: 18px; color: var(--ink); background: rgba(66,66,66,.07); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; cursor: pointer; }
.remote-primary-actions button.primary { color: var(--white); background: var(--pink); }
.roulette-progress { padding: 14px 14px 12px; border-radius: 18px; background: rgba(255,255,255,.7); display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; align-items: center; }
.roulette-progress span, .roulette-progress strong { font-size: 11px; }
.roulette-progress strong { color: var(--pink); }
.roulette-progress i { grid-column: 1/-1; height: 6px; border-radius: 99px; background: rgba(254,60,114,.1); overflow: hidden; }
.roulette-progress b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--coral)); transition: width .3s ease; }
.roulette-question-picker { display: grid; gap: 7px; }
.roulette-question-picker > button { min-height: 70px; padding: 11px; border: 1px solid rgba(254,60,114,.11); border-radius: 18px; color: var(--ink); background: var(--white); display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left; box-shadow: 0 7px 18px rgba(124,37,73,.045); cursor: pointer; }
.roulette-question-picker > button > span { width: 34px; height: 34px; border-radius: 12px; color: var(--pink); background: var(--soft); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.roulette-question-picker > button strong { font-size: 12px; line-height: 1.4; }
.roulette-question-picker > button small { color: var(--pink); font-size: 9px; font-weight: 800; }
.roulette-question-picker > button.current { border-color: var(--pink); box-shadow: 0 10px 24px rgba(254,60,114,.12); }
.roulette-question-picker > button.used { opacity: .52; background: rgba(255,255,255,.55); cursor: not-allowed; }
.roulette-question-picker > button.used > span { color: var(--white); background: var(--pink); }
.roulette-question-picker > button:disabled:not(.used) { opacity: .42; cursor: not-allowed; }
.roulette-round-complete { padding: 24px 18px; border-radius: 24px; color: var(--white); background: linear-gradient(135deg,var(--pink),var(--coral)); display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 16px 34px rgba(254,60,114,.23); }
.roulette-round-complete h2 { margin: 9px 0 4px; }
.roulette-round-complete p { margin: 0 0 14px; color: rgba(255,255,255,.74); font-size: 11px; }
.roulette-round-complete button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 14px; color: var(--pink); background: var(--white); display: flex; align-items: center; gap: 7px; font-weight: 850; }
.live-question-remote { padding: 16px; border-radius: 23px; color: var(--white); background: var(--pink); box-shadow: 0 15px 30px rgba(254,60,114,.2); }
.live-question-remote > span { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .08em; }
.live-question-remote h2 { margin: 9px 0 12px; font-size: 20px; line-height: 1.32; }
.live-question-remote > div { display: flex; align-items: baseline; gap: 6px; }
.live-question-remote > div strong { font-size: 36px; }
.live-question-remote > div small { color: rgba(255,255,255,.72); }
.live-question-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
.live-question-stats > span { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.13); }
.live-question-stats > span strong { font-size: 28px; line-height: 1; }
.participant-quiz-timer { display: block; margin-bottom: 8px; color: var(--pink); font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.quiz-projector-timer { display: block; margin: 8px auto 18px; color: #fff; font-size: clamp(58px,7vw,104px); line-height: 1; letter-spacing: -.06em; }
.participant-entry-resume { width: 100%; min-height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; color: #fff; background: rgba(255,255,255,.14); font-weight: 800; cursor: pointer; }
.me-switch-account { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid rgba(254,60,114,.22); border-radius: 14px; color: var(--pink); background: rgba(255,255,255,.68); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; cursor: pointer; }
.account-switch-modal { width: min(92vw,420px); padding: 28px 22px 22px; border-radius: 26px; color: var(--ink); background: #fff8f7; box-shadow: 0 24px 70px rgba(71,13,39,.35); position: relative; text-align: center; }
.account-switch-modal h2 { margin: 12px 0 6px; }
.account-switch-modal p { margin: 0 0 16px; color: var(--muted); }
.account-switch-modal > input { width: 100%; min-height: 54px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; font-size: 20px; text-align: center; letter-spacing: .08em; }
.live-question-remote > button { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 14px; color: var(--pink); background: var(--white); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; cursor: pointer; }
.remote-question-list { display: grid; gap: 7px; }
.remote-question-list h2 { margin: 2px 0 4px; font-size: 15px; }
.remote-question-list > button { min-height: 66px; padding: 10px; border: 1px solid rgba(254,60,114,.1); border-radius: 17px; color: var(--ink); background: var(--white); display: grid; grid-template-columns: 32px 1fr 20px; gap: 9px; align-items: center; text-align: left; cursor: pointer; }
.remote-question-list > button > span { width: 30px; height: 30px; border-radius: 10px; color: var(--pink); background: var(--soft); display: grid; place-items: center; font-weight: 850; }
.remote-question-list > button > div { min-width: 0; display: flex; flex-direction: column; }
.remote-question-list > button strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; line-height: 1.35; }
.remote-question-list > button small { margin-top: 2px; color: rgba(66,66,66,.5); font-size: 9px; }
.remote-question-list > button.active { border-color: var(--pink); background: var(--soft); }
.projector-preview { position: relative; min-height: 126px; padding: 16px; border-radius: 24px; overflow: hidden; color: var(--white); background: url('/assets/projector-flowing-gradient-reference.jpeg') center/cover no-repeat; display: grid; grid-template-columns: 1fr auto; align-items: end; box-shadow: 0 16px 32px rgba(125,24,61,.22); }
.projector-preview::after { content: ""; position: absolute; inset: 0; background: rgba(66,20,37,.26); }
.projector-preview > * { position: relative; z-index: 1; }
.projector-preview-icons { position: absolute; inset: 11px auto auto 12px; display: flex; gap: 8px; opacity: .55; }
.projector-preview-icons svg { width: 20px; }
.projector-preview > div { display: flex; flex-direction: column; }
.projector-preview small { color: rgba(255,255,255,.7); font-size: 9px; }
.projector-preview strong { font-size: 23px; }
.screen-mode-remote { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.screen-mode-remote button { min-height: 118px; padding: 12px; border: 1px solid rgba(254,60,114,.1); border-radius: 21px; color: var(--ink); background: var(--white); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; text-align: left; box-shadow: 0 7px 18px rgba(124,37,73,.05); cursor: pointer; }
.screen-mode-remote button > span { width: 38px; height: 38px; border-radius: 13px; color: var(--pink); background: var(--soft); display: grid; place-items: center; }
.screen-mode-remote button strong { font-size: 13px; }
.screen-mode-remote button small { color: rgba(66,66,66,.5); font-size: 9px; }
.screen-mode-remote button.active { color: var(--white); background: var(--pink); border-color: var(--pink); box-shadow: 0 13px 28px rgba(254,60,114,.22); }
.screen-mode-remote button.active > span { color: var(--white); background: rgba(255,255,255,.18); }
.screen-mode-remote button.active small { color: rgba(255,255,255,.72); }
.vote-remote-card { padding-top: 4px; }
.remote-result { min-height: 48px; border-top: 1px solid rgba(66,66,66,.08); display: grid; grid-template-columns: 24px 36px 1fr auto; gap: 7px; align-items: center; }
.remote-result > span { color: var(--pink); font-weight: 850; }
.remote-result em { color: var(--pink); font-size: 10px; font-style: normal; font-weight: 800; }
.remote-bottom-nav { position: relative; z-index: 20; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.38); background: rgba(255,238,239,.84); box-shadow: 0 -12px 30px rgba(124,37,73,.12); backdrop-filter: blur(18px) saturate(145%); display: grid; grid-template-columns: repeat(4,1fr); }
.remote-bottom-nav button { min-width: 0; min-height: 56px; border: 0; border-radius: 17px; color: rgba(66,66,66,.46); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.remote-bottom-nav button span { font-size: 8px; font-weight: 720; white-space: nowrap; }
.remote-bottom-nav button.active { color: var(--pink); background: var(--soft); }
.remote-bottom-nav.single { grid-template-columns: 1fr; }
.remote-toast { position: absolute; z-index: 40; left: 50%; bottom: 88px; transform: translateX(-50%); min-height: 38px; padding: 8px 13px; border-radius: 99px; color: var(--white); background: var(--ink); display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; box-shadow: 0 10px 26px rgba(66,66,66,.25); }
.remote-login { height: 100dvh; min-height: 0; background: #3a1f2d; }
.remote-login-card { width: min(calc(100% - 28px),390px); color: var(--white); background: var(--pink); border: 1px solid rgba(255,255,255,.2); }
.remote-login-card .brand { justify-content: center; }
.remote-login-card .login-icon { color: var(--white); background: rgba(255,255,255,.14); }
.remote-login-card .eyebrow { color: rgba(255,255,255,.72); }
.remote-login-card > p, .remote-login-card > a { color: rgba(255,255,255,.72); }
.remote-login-card .pin-input { background: var(--white); }
.remote-login-card .button-primary { color: var(--pink); background: var(--white); }

/* Animated projector backdrop from the selected reference */
.projector-page { position: relative; isolation: isolate; background: #df1838; }
.projector-page > :not(.projector-animated-backdrop) { position: relative; z-index: 2; }
.projector-animated-backdrop { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.projector-animated-backdrop::after { content: ""; position: absolute; z-index: 2; inset: 0; background: rgba(76,10,39,.05); }
.gradient-flow-layer { position: absolute; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: saturate(1.08) brightness(1.03); will-change: transform, opacity; }
.gradient-flow-a { left: -12%; top: -12%; animation: projector-flow-a 16s ease-in-out infinite alternate; }
.gradient-flow-b { left: -8%; top: -8%; opacity: .5; mix-blend-mode: soft-light; transform: scaleX(-1) scale(1.12); animation: projector-flow-b 21s ease-in-out infinite alternate; }
@keyframes projector-flow-a { 0% { transform: translate3d(-5%,-3%,0) scale(1.03) rotate(-1deg); } 48% { transform: translate3d(3%,-6%,0) scale(1.12) rotate(1deg); } 100% { transform: translate3d(-2%,4%,0) scale(1.07) rotate(-.4deg); } }
@keyframes projector-flow-b { 0% { transform: translate3d(5%,2%,0) scaleX(-1) scale(1.1) rotate(.8deg); opacity: .3; } 52% { transform: translate3d(-4%,5%,0) scaleX(-1) scale(1.19) rotate(-1.2deg); opacity: .58; } 100% { transform: translate3d(2%,-4%,0) scaleX(-1) scale(1.13) rotate(.3deg); opacity: .4; } }
.floating-projector-icons { position: absolute; z-index: 1; inset: 0; }
.float-icon { position: absolute; color: rgba(255,255,255,.2); animation: projector-float 12s ease-in-out infinite; }
.float-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.float-icon-1 { left: 8%; top: 18%; width: 74px; height: 74px; animation-duration: 15s; }
.float-icon-2 { left: 31%; top: 12%; width: 62px; height: 62px; animation-delay: -6s; }
.float-icon-3 { right: 10%; bottom: 13%; width: 78px; height: 78px; animation-duration: 17s; animation-delay: -3s; }
.float-icon-4 { right: 21%; top: 19%; width: 55px; height: 55px; animation-duration: 11s; animation-delay: -8s; }
.float-icon-5 { left: 14%; bottom: 12%; width: 66px; height: 66px; animation-duration: 18s; animation-delay: -10s; }
.float-icon-6 { right: 42%; bottom: 9%; width: 48px; height: 48px; animation-duration: 13s; animation-delay: -5s; }
@keyframes projector-float { 0%,100% { transform: translate3d(0,0,0) rotate(-3deg); opacity: .14; } 38% { transform: translate3d(14px,-22px,0) rotate(4deg); opacity: .28; } 68% { transform: translate3d(-10px,-8px,0) rotate(-1deg); opacity: .19; } }

/* Liquid Glass navigation: one floating material layer above scrolling content */
.participant-app { position: relative; grid-template-rows: auto 1fr; }
.participant-app .app-topbar { border-bottom: 0; box-shadow: 0 10px 28px rgba(66,66,66,.08); }
.participant-app .app-content { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.participant-app .bottom-nav {
  position: absolute;
  z-index: 20;
  left: 14px;
  right: 14px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  min-height: 70px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.09)),
    radial-gradient(circle at 28% 0%, rgba(255,255,255,.28), transparent 42%);
  box-shadow: 0 16px 42px rgba(86,21,51,.28), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  overflow: hidden;
  isolation: isolate;
}
.participant-app .bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(112deg, rgba(255,255,255,.18), transparent 35%, rgba(255,255,255,.09) 70%, transparent);
  pointer-events: none;
}
.participant-app .bottom-nav button {
  position: relative;
  min-width: 44px;
  min-height: 54px;
  border-radius: 21px;
  color: rgba(255,255,255,.68);
  transition: color .22s ease, transform .22s ease, background .22s ease;
}
.participant-app .bottom-nav button.active {
  color: var(--white);
  background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 18px rgba(100,20,58,.14);
  text-shadow: 0 1px 8px rgba(100,20,58,.25);
}
.participant-app .bottom-nav button:disabled { color: rgba(255,255,255,.3); opacity: 1; }
.participant-app .bottom-nav button:not(:disabled):active { transform: scale(.94); }
.nav-lock { position: absolute; top: 7px; right: calc(50% - 18px); opacity: .8; }

/* Participant palette mirrors the higher-contrast mobile console */
.participant-app {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 7%, rgba(255,255,255,.46), transparent 27%),
    linear-gradient(154deg, #ff356c 0%, #ff5c5f 19%, #ff8758 37%, #ffd4dc 67%, #ffe4d7 100%);
}
.participant-app .app-topbar {
  color: var(--white);
  background: linear-gradient(112deg, #fd267a, #ff6036);
  box-shadow: 0 10px 28px rgba(151,25,69,.2);
}
.participant-app .brand-dark { color: var(--white); }
.participant-app .app-topbar .status-soft { color: var(--white); background: rgba(255,255,255,.17); }
.participant-app .app-content {
  background: linear-gradient(180deg, rgba(255,243,247,.78), rgba(255,226,219,.66));
  scrollbar-width: none;
}
.participant-app .app-content::-webkit-scrollbar { display: none; }
.participant-app .participant-section > .eyebrow,
.participant-app .quiz-card .eyebrow { color: var(--pink); }
.participant-app .participant-section > h1,
.participant-app .participant-section > p,
.participant-app .centered-section h1,
.participant-app .centered-section p { color: var(--ink); }
.participant-app .participant-section > p { color: rgba(66,66,66,.62); }
.participant-app .event-locked-banner {
  color: var(--ink);
  background: rgba(255,255,255,.76);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 8px 22px rgba(124,37,73,.08);
  backdrop-filter: blur(16px);
}
.participant-app .event-locked-banner > svg { color: var(--pink); }
.participant-app .event-locked-banner span { color: rgba(66,66,66,.58); }

.participant-app .ticket-card,
.participant-app .friend-card,
.participant-app .quiz-card,
.participant-app .notes-list article,
.participant-app .danger-zone,
.participant-app .friend-profile blockquote,
.participant-app .leaderboard-mini,
.participant-app .note-composer {
  color: var(--ink);
  background: rgba(255,255,255,.76);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 10px 28px rgba(124,37,73,.1), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(135%);
}
.participant-app .ticket-card { margin-top: 18px; padding: 20px; text-align: left; }
.participant-app .ticket-card::before { height: 5px; background: linear-gradient(90deg, #fd267a, #ff6036); }
.participant-app .ticket-profile { padding: 4px 2px 18px; border-bottom: 1px solid rgba(66,66,66,.08); }
.participant-app .ticket-profile span { color: var(--pink); }
.participant-app .ticket-profile h2 { color: var(--ink); }
.participant-app .ticket-profile p { color: rgba(66,66,66,.58); }
.ticket-profile-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(120px,.72fr) 1.28fr; gap: 10px; }
.ticket-seat {
  min-height: 106px;
  padding: 14px;
  border-radius: 20px;
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 12px 24px rgba(254,60,114,.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticket-seat > span { width: 38px; height: 38px; border-radius: 13px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ticket-seat > div { display: flex; flex-direction: column; }
.ticket-seat small { color: rgba(255,255,255,.72); font-size: 10px; }
.ticket-seat strong { font-size: 32px; line-height: 1; }
.ticket-hobbies { min-height: 106px; padding: 14px; border-radius: 20px; background: rgba(254,60,114,.07); }
.ticket-hobbies > small { color: rgba(66,66,66,.55); font-size: 10px; font-weight: 750; }
.ticket-hobbies > div { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-hobbies span { padding: 7px 9px; border-radius: 999px; color: #c91f5c; background: var(--white); border: 1px solid rgba(254,60,114,.13); font-size: 11px; font-weight: 720; }
.ticket-intro { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--pink); border-radius: 0 14px 14px 0; color: rgba(66,66,66,.7); background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; }
.ticket-pass { margin-top: 14px; padding: 16px; border-radius: 22px; color: var(--white); background: #3a1f2d; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; box-shadow: 0 14px 30px rgba(58,31,45,.18); }
.ticket-pass > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.ticket-pass small { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .08em; }
.ticket-pass strong { margin: 3px 0 10px; font-size: 18px; }
.ticket-pass .status-soft,
.ticket-pass .status-success { color: var(--white); background: rgba(255,255,255,.14); }
.ticket-qr-wrap { min-width: 122px; padding: 8px; border-radius: 16px; background: var(--white); text-align: center; }
.participant-app .ticket-qr { width: 106px; margin: 0 auto; padding: 0; border-radius: 8px; background: var(--white); }
.participant-app .ticket-code { margin: 4px 0 0; color: rgba(66,66,66,.58); font-size: 9px; }
.participant-app .danger-zone { margin-top: 12px; }
.participant-app .danger-zone p { color: rgba(66,66,66,.56); }
.participant-app .button-danger-outline { color: var(--pink); background: var(--soft); border-color: rgba(254,60,114,.16); }

.participant-app .ticket-profile-section { padding-top: 0; }
.participant-app .ticket-profile-section .ticket-card { margin-top: 0; overflow: visible; }
.me-inbox-button { position: absolute; z-index: 3; right: 14px; top: 15px; width: 46px; height: 46px; border: 1px solid rgba(254,60,114,.14); border-radius: 16px; color: var(--pink); background: rgba(255,255,255,.82); box-shadow: 0 10px 24px rgba(128,31,70,.12); display: grid; place-items: center; cursor: pointer; }
.me-inbox-button strong { position: absolute; right: -5px; top: -6px; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #fe3c72; display: grid; place-items: center; font-size: 9px; line-height: 1; }
.participant-app .ticket-profile.me-profile { padding: 8px 52px 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.me-profile-photo { width: min(58vw, 224px); aspect-ratio: 1; margin-bottom: 12px; border: 5px solid #fff; border-radius: 30px; overflow: hidden; background: linear-gradient(145deg,#fe3c72,#ff8758); box-shadow: 0 20px 40px rgba(122,31,68,.2), 0 0 0 1px rgba(254,60,114,.08); }
.me-profile-photo .avatar { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; font-size: 54px; }
.participant-app .ticket-profile.me-profile h2 { margin: 3px 0 0; font-size: 31px; text-align: center; }
.participant-app .ticket-profile.me-profile p { text-align: center; }
.me-action-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 9px; }
.me-qr-button, .vote-balance { min-width: 0; min-height: 76px; padding: 12px; border: 0; border-radius: 20px; display: flex; align-items: center; gap: 10px; text-align: left; }
.me-qr-button { color: #fff; background: linear-gradient(135deg,#fe267a,#ff6036); box-shadow: 0 12px 25px rgba(254,60,114,.22); cursor: pointer; }
.vote-balance { color: #3a2630; background: #ffd21f; box-shadow: 0 12px 25px rgba(215,168,0,.16); }
.me-qr-button > span, .vote-balance > span { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.me-qr-button > div, .vote-balance > div { min-width: 0; display: flex; flex-direction: column; }
.me-qr-button small, .vote-balance small { opacity: .72; font-size: 9px; font-weight: 750; }
.me-qr-button strong, .vote-balance strong { overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.vote-balance.locked { color: rgba(66,66,66,.62); background: rgba(66,66,66,.08); box-shadow: none; }

.app-crash-recovery { min-height: 100dvh; padding: 38px 24px; color: #fff; background: linear-gradient(145deg,#fd267a,#ff6036); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.app-crash-recovery img { width: min(48vw,180px); max-height: 64px; object-fit: contain; filter: brightness(0) invert(1); }
.app-crash-recovery > span { margin-top: 18px; font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.app-crash-recovery h1 { margin: 12px 0 4px; font-size: clamp(28px,9vw,42px); }
.app-crash-recovery p { max-width: 320px; margin: 0 0 24px; color: rgba(255,255,255,.84); line-height: 1.55; }
.app-crash-recovery button { width: min(100%,320px); min-height: 52px; margin-top: 9px; border: 0; border-radius: 999px; color: #d51f61; background: #fff; font-weight: 850; cursor: pointer; }
.app-crash-recovery button.secondary { border: 1px solid rgba(255,255,255,.52); color: #fff; background: rgba(255,255,255,.13); }
.qr-ticket-modal, .me-inbox-modal { position: relative; width: min(92vw, 380px); max-height: min(82dvh, 680px); padding: 27px 22px 22px; border: 1px solid rgba(255,255,255,.75); border-radius: 30px; overflow-y: auto; color: var(--ink); background: linear-gradient(160deg,rgba(255,255,255,.98),rgba(255,235,239,.97)); box-shadow: 0 28px 80px rgba(65,15,42,.3); text-align: center; }
.modal-close { position: absolute; right: 13px; top: 13px; width: 38px; height: 38px; border: 0; border-radius: 13px; color: var(--pink); background: var(--soft); display: grid; place-items: center; cursor: pointer; }
.qr-ticket-modal h2, .me-inbox-modal h2 { margin: 10px 30px 12px; font-size: 23px; }
.qr-ticket-modal .ticket-qr-wrap { width: min(100%, 276px); margin: 18px auto 0; padding: 14px; border: 1px solid rgba(66,66,66,.08); border-radius: 24px; background: #fff; box-shadow: 0 14px 30px rgba(77,26,49,.1); }
.participant-app .qr-ticket-modal .ticket-qr { width: 100%; }
.qr-ticket-modal .ticket-code { font-size: 11px; }
.me-inbox-list { margin-top: 16px; display: grid; gap: 9px; text-align: left; }
.me-inbox-list article { padding: 14px; border: 1px solid rgba(254,60,114,.1); border-radius: 18px; background: rgba(255,255,255,.84); }
.me-inbox-list p { margin: 0 0 7px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.me-inbox-list span { color: var(--pink); font-size: 10px; font-weight: 750; }
.empty-inbox { min-height: 150px; color: rgba(66,66,66,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-inbox svg { color: var(--pink); }
.empty-inbox p { margin: 8px 0 0; }

.friend-tile-hobbies { min-height: 55px; padding: 0 9px 9px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.friend-tile-hobbies em { max-width: 100%; padding: 5px 7px; overflow: hidden; border: 1px solid rgba(254,60,114,.1); border-radius: 999px; color: #bf2158; background: rgba(254,60,114,.07); font-size: 8px; font-style: normal; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }

.participant-app .friend-card strong,
.participant-app .friend-profile h1,
.participant-app .quiz-card h1,
.participant-app .leaderboard-mini h2,
.participant-app .note-composer > label:first-child { color: var(--ink); }
.participant-app .friend-card span,
.participant-app .friend-card small,
.participant-app .friend-profile .occupation,
.participant-app .notes-list span { color: rgba(66,66,66,.58); }
.participant-app .friend-card > svg,
.participant-app .back-link,
.participant-app .centered-section svg { color: var(--pink); }
.participant-app .hobby-row span { color: #c91f5c; background: rgba(254,60,114,.08); }
.participant-app .friend-profile blockquote { color: rgba(66,66,66,.78); }
.participant-app .choice-list button { color: var(--ink); background: var(--white); border-color: rgba(254,60,114,.12); }
.participant-app .choice-list button.selected { color: var(--white); background: var(--pink); border-color: var(--pink); }
.participant-app .submitted-answer { color: var(--pink); background: var(--soft); }
.participant-app .submitted-answer p { color: var(--ink); }
.participant-app .empty-state { color: rgba(66,66,66,.48); }
.participant-app .leaderboard-mini > div,
.participant-app .note-composer { border-color: rgba(66,66,66,.08); }
.participant-app .search-box,
.participant-app .quiz-card textarea,
.participant-app .quiz-exact-input,
.participant-app .note-composer textarea { color: var(--ink); background: var(--white); border-color: rgba(254,60,114,.12); }
.quiz-exact-input { width: 100%; min-height: 56px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; outline: 0; font: inherit; }
.quiz-exact-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(254,60,114,.12); }
.quiz-input-hint { display: block; margin: -4px 2px 14px; color: rgba(66,66,66,.56); font-size: 11px; line-height: 1.45; }
.speed-score-note { margin: -2px 0 14px; padding: 10px 12px; border-radius: 14px; color: #b41c54; background: rgba(254,60,114,.08); display: flex; align-items: flex-start; gap: 7px; font-size: 11px; line-height: 1.4; }
.speed-score-note svg { flex: 0 0 auto; margin-top: 1px; }
.participant-app .status-soft,
.participant-app .status-success { color: var(--pink); background: var(--soft); }

.participant-app .bottom-nav {
  color: var(--ink);
  background: rgba(255,238,239,.86);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 16px 42px rgba(124,37,73,.17), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.participant-app .bottom-nav::before { background: linear-gradient(112deg, rgba(255,255,255,.44), transparent 36%, rgba(255,255,255,.22) 72%, transparent); }
.participant-app .bottom-nav button { color: rgba(66,66,66,.46); text-shadow: none; }
.participant-app .bottom-nav button.active { color: var(--pink); background: rgba(254,60,114,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); text-shadow: none; }
.participant-app .bottom-nav button:disabled { color: rgba(66,66,66,.27); }
.participant-app .bottom-nav .friend-nav-button { padding-inline: 13px; }
.friend-nav-badge { display: block; width: min(100%, 96px); max-height: 30px; object-fit: contain; }
.participant-app .bottom-nav .friend-nav-button.active { background: rgba(255,255,255,.34); }
.participant-app .bottom-nav .friend-nav-button:disabled .friend-nav-badge { filter: grayscale(1); opacity: .38; }
.app-topbar .brand-lockup { height: 29px; }
.projector-header .brand-lockup { height: 36px; }
.projector-footer .brand-lockup { height: 25px; }

/* Selected 1+3 portal direction: campaign entry and secure mobile remote */
.participant-entry-page {
  min-height: 100svh;
  padding: 0;
  color: var(--white);
  background: #f43b6f url("/assets/projector-flowing-gradient-reference.jpeg") center / cover fixed;
  overflow-x: hidden;
}
.participant-entry-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 18px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: rgba(241,40,99,.08);
  box-shadow: 0 0 70px rgba(95,8,43,.16);
  overflow: hidden;
}
.participant-entry-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.participant-entry-header .brand-lockup { height: 31px; }
.participant-entry-kicker {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}
.participant-entry-hero {
  position: relative;
  height: clamp(340px, 55svh, 460px);
  margin: 10px -4px 2px;
}
.participant-entry-hero > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 28px;
  object-fit: cover;
  object-position: 50% 47%;
  filter: saturate(1.04) contrast(1.02);
  box-shadow: 0 18px 38px rgba(86,15,45,.22);
}
.friend-mode-sticker {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 188px;
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 8px 10px rgba(76,17,39,.34));
}
.friend-mode-sticker img {
  position: relative;
  z-index: 1;
  width: 174px;
  height: 50px;
  object-fit: contain;
}
.friend-mode-sticker strong {
  min-width: 126px;
  margin-top: -8px;
  padding: 4px 16px 5px;
  transform: rotate(1.5deg);
  border-radius: 4px;
  color: #161316;
  background: #fff;
  box-shadow: 0 5px 12px rgba(48,11,25,.25);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
}
.participant-entry-content { margin-top: 22px; display: flex; flex-direction: column; text-align: center; }
.participant-entry-content h1 {
  margin: 10px 0 11px;
  font-size: clamp(29px, 8.4vw, 35px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(78,13,39,.22);
}
.participant-entry-form { display: grid; gap: 8px; text-align: left; }
.participant-entry-form label { font-size: 13px; font-weight: 760; }
.participant-entry-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 15px;
  color: #272027;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(80,14,40,.15);
  outline: 0;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: .12em;
}
.participant-entry-form input::placeholder { color: rgba(66,66,66,.42); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.participant-entry-form input:focus { border-color: #ffd400; box-shadow: 0 0 0 4px rgba(255,212,0,.22), 0 10px 24px rgba(80,14,40,.15); }
.participant-entry-error {
  padding: 8px 10px;
  border-radius: 10px;
  color: #7b173b;
  background: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 720;
}
.participant-entry-cta {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  color: #171317;
  background: #ffd000;
  box-shadow: 0 13px 28px rgba(90,33,0,.22), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.participant-entry-cta:disabled { opacity: .52; cursor: not-allowed; }
.participant-entry-privacy {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  line-height: 1.45;
}
.participant-entry-privacy svg { flex: 0 0 auto; }
.participant-entry-closed { margin: auto 0; padding: 30px 18px; color: var(--white); }
.participant-entry-closed h1 { margin: 12px 0 8px; }
.participant-entry-closed p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }

.admin-portal-page {
  min-height: 100svh;
  padding: 0;
  color: var(--white);
  background: #120714;
}
.admin-portal-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(44px, env(safe-area-inset-top)) 26px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #120714 url("/assets/portal/admin-light-trails.jpg") center / cover no-repeat;
  box-shadow: 0 0 80px rgba(0,0,0,.45);
  overflow: hidden;
}
.admin-portal-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.admin-portal-brand .brand-lockup { height: 39px; }
.admin-portal-brand > img { width: 108px; height: 32px; object-fit: contain; }
.admin-portal-eyebrow {
  margin-top: 18px;
  color: #ff586b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .22em;
}
.admin-portal-lock {
  width: 104px;
  height: 104px;
  margin-top: 21px;
  border: 2px solid #ffc400;
  border-radius: 50%;
  color: #ffc400;
  background: rgba(31,10,25,.55);
  box-shadow: 0 0 18px rgba(255,196,0,.72), inset 0 0 24px rgba(255,105,0,.12);
  display: grid;
  place-items: center;
}
.admin-portal-lock svg { stroke-width: 2.5; filter: drop-shadow(0 0 9px rgba(255,196,0,.75)); }
.admin-portal-shell h1 {
  margin: 20px 0 0;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 0 3px 20px rgba(0,0,0,.35);
}
.admin-portal-shell h1 span { color: #ffc400; }
.admin-portal-divider {
  position: relative;
  width: 150px;
  height: 1px;
  margin: 22px 0 25px;
  background: linear-gradient(90deg, transparent, #ff4d31 35%, #ffb000 50%, #ff4d31 65%, transparent);
  box-shadow: 0 0 12px rgba(255,90,20,.55);
}
.admin-portal-form { width: 100%; display: grid; gap: 9px; }
.admin-portal-form label { font-size: 13px; font-weight: 650; }
.admin-portal-pin {
  min-height: 66px;
  padding: 0 12px 0 17px;
  border: 2px solid #ff356b;
  border-radius: 18px;
  background: rgba(35,16,33,.78);
  box-shadow: 0 0 18px rgba(255,37,99,.2), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex;
  align-items: center;
}
.admin-portal-pin:focus-within { border-color: #ffc400; box-shadow: 0 0 0 4px rgba(255,196,0,.12), 0 0 18px rgba(255,37,99,.2); }
.admin-portal-pin input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .35em;
}
.admin-portal-pin input::placeholder { color: rgba(255,255,255,.9); }
.admin-portal-pin button { border: 0; color: rgba(255,255,255,.66); background: transparent; cursor: pointer; }
.admin-portal-error {
  padding: 9px 11px;
  border: 1px solid rgba(255,66,112,.4);
  border-radius: 11px;
  color: #ffd3dd;
  background: rgba(255,40,92,.12);
  font-size: 11px;
}
.admin-portal-cta {
  min-height: 60px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, #ff1f63, #ff5538);
  box-shadow: 0 15px 34px rgba(255,36,86,.24);
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
}
.admin-portal-cta:disabled { opacity: .46; cursor: not-allowed; }
.admin-portal-security {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.74);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.admin-portal-security svg { flex: 0 0 auto; color: #ffc400; }

/* Three-surface live controls */
.control-screen-section { padding: 14px; border: 1px solid rgba(255,255,255,.58); border-radius: 22px; background: rgba(255,255,255,.66); box-shadow: 0 10px 26px rgba(124,37,73,.09); backdrop-filter: blur(18px); }
.control-screen-section .remote-card-title { margin-bottom: 11px; }
.control-screen-section .remote-card-title a { min-height: 32px; padding: 6px 9px; border-radius: 11px; color: var(--pink); background: var(--soft); display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.control-screen-section .screen-mode-remote { grid-template-columns: repeat(2,minmax(0,1fr)); }
.control-screen-section .screen-mode-remote button { min-height: 98px; }
.remote-title-buttons { display: flex; gap: 7px; }
.remote-title-buttons button { width: 42px; height: 42px; border: 0; border-radius: 14px; display: grid; place-items: center; cursor: pointer; }
.icon-screen-button { color: var(--white); background: var(--pink); }
.icon-reset-button { color: var(--pink); background: var(--soft); }
.icon-reset-button:disabled { opacity: .35; cursor: not-allowed; }

.qr-scanner-card { padding: 12px; border: 1px solid rgba(255,255,255,.62); border-radius: 26px; background: rgba(255,255,255,.74); box-shadow: 0 16px 38px rgba(124,37,73,.13); backdrop-filter: blur(18px); }
.qr-camera-frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 21px; color: var(--white); background: linear-gradient(145deg,#37152d,#6f2140); }
.qr-camera-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.qr-camera-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.qr-camera-empty svg { color: #ffc400; filter: drop-shadow(0 0 12px rgba(255,196,0,.38)); }
.qr-camera-empty span { max-width: 220px; color: rgba(255,255,255,.66); font-size: 10px; line-height: 1.45; }
.qr-scan-corners { position: absolute; inset: 17%; pointer-events: none; }
.qr-scan-corners i { position: absolute; width: 30px; height: 30px; border-color: #ffc400; border-style: solid; filter: drop-shadow(0 0 5px rgba(255,196,0,.65)); }
.qr-scan-corners i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-radius: 9px 0 0; }
.qr-scan-corners i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-radius: 0 9px 0 0; }
.qr-scan-corners i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 9px; }
.qr-scan-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 9px; }
.qr-scanner-card.is-scanning .qr-scan-corners::after { content: ""; position: absolute; left: 4px; right: 4px; top: 0; height: 2px; border-radius: 99px; background: #ffc400; box-shadow: 0 0 14px rgba(255,196,0,.9); animation: qr-scan-line 2s ease-in-out infinite alternate; }
@keyframes qr-scan-line { from { transform: translateY(0); } to { transform: translateY(calc(66vw - 42px)); } }
.scanner-toggle, .scanner-next { width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 16px; color: var(--white); background: linear-gradient(110deg,var(--pink),#ff6036); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 850; cursor: pointer; }
.scanner-error { margin-top: 9px; padding: 9px 11px; border-radius: 12px; color: #a31c4c; background: rgba(254,60,114,.09); font-size: 11px; }
.scan-success { min-height: 82px; margin-top: 10px; padding: 9px 11px; border-radius: 18px; color: var(--ink); background: linear-gradient(135deg,#fff,#fff0f2); display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; }
.scan-success > div { min-width: 0; display: flex; flex-direction: column; }
.scan-success small { color: var(--pink); font-size: 9px; font-weight: 800; }
.scan-success strong { font-size: 20px; }
.scan-success span { color: rgba(66,66,66,.54); font-size: 10px; }
.scan-success > svg { color: var(--pink); }
.manual-checkin { border: 1px solid rgba(255,255,255,.52); border-radius: 19px; background: rgba(255,255,255,.64); overflow: hidden; }
.manual-checkin summary { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; gap: 7px; color: var(--pink); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.manual-checkin summary::-webkit-details-marker { display: none; }
.manual-checkin > .remote-search { margin: 0 10px 9px; }
.manual-checkin > .checkin-cards { padding: 0 10px 10px; max-height: 280px; overflow-y: auto; }

.live-question-remote > button:disabled { opacity: .62; cursor: default; }
.quiz-reset-panel { padding: 12px; border: 1px solid rgba(254,60,114,.12); border-radius: 18px; background: rgba(255,255,255,.7); }
.quiz-reset-panel > button { width: 100%; min-height: 42px; border: 0; border-radius: 13px; color: var(--pink); background: var(--soft); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; cursor: pointer; }
.quiz-reset-panel.armed { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quiz-reset-panel.armed > div { grid-column: 1/-1; display: flex; flex-direction: column; }
.quiz-reset-panel.armed small { color: rgba(66,66,66,.56); font-size: 10px; }
.quiz-reset-panel.armed > button { color: var(--ink); background: rgba(66,66,66,.07); }
.quiz-reset-panel.armed > button.confirm { color: var(--white); background: var(--pink); }

/* Projector check-in welcome and faithful roulette presentation */
.welcome-moment { position: absolute; z-index: 8; left: 50%; top: 50%; width: min(570px,48vw); min-height: 570px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: translate(-50%,-50%); pointer-events: none; animation: funny-welcome-arrive 1.15s cubic-bezier(.16,1.18,.26,1); }
.welcome-profile-circle { position: relative; width: min(310px,24vw); height: min(310px,24vw); border: 11px solid #ffca28; border-radius: 50%; background: #fff; box-shadow: 0 34px 90px rgba(62,14,43,.46), 0 0 0 10px rgba(255,255,255,.9); animation: welcome-profile-wobble 2.8s 1.1s ease-in-out infinite; }
.welcome-profile-circle .avatar { width: 100%; height: 100%; border: 0; box-shadow: none; }
.welcome-profile-circle > strong { position: absolute; left: 50%; bottom: 12px; min-width: 58%; max-width: 88%; padding: 10px 24px 12px; overflow: hidden; border: 4px solid #fff; border-radius: 999px; color: #fff; background: #231820; box-shadow: 0 12px 24px rgba(54,18,40,.32); font-size: clamp(24px,2.2vw,38px); font-weight: 950; line-height: 1; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.welcome-punchline { margin-top: 24px; padding: 14px 28px 16px; border: 4px solid rgba(255,255,255,.96); border-radius: 24px; background: #fff; box-shadow: 0 18px 42px rgba(76,20,47,.3); animation: welcome-punchline-pop .65s .72s cubic-bezier(.16,1.35,.3,1) both; }
.welcome-punchline small { display: block; color: var(--pink); font-size: 13px; font-weight: 950; letter-spacing: .15em; }
.welcome-punchline p { margin: 4px 0 0; color: #33232d; font-size: clamp(18px,1.75vw,26px); font-weight: 900; }
.welcome-moment > i { width: 180px; height: 7px; margin-top: 14px; overflow: hidden; border: 2px solid rgba(255,255,255,.68); border-radius: 99px; background: rgba(40,22,34,.25); }
.welcome-moment > i::after { content: ""; display: block; width: var(--welcome-remaining); height: 100%; border-radius: inherit; background: #ffca28; }
.welcome-burst { position: absolute; width: 72px; height: 72px; color: #ffca28; filter: drop-shadow(0 11px 16px rgba(78,17,45,.28)); animation: welcome-burst-flight 1.35s cubic-bezier(.14,.9,.22,1.24) both, welcome-burst-dance 2.2s 1.35s ease-in-out infinite; }
.welcome-burst svg { width: 100%; height: 100%; stroke-width: 2.3; }
.welcome-burst-1 { left: 1%; top: 13%; --burst-x: -34px; --burst-y: -42px; transform: rotate(-20deg); }
.welcome-burst-2 { right: 2%; top: 19%; --burst-x: 44px; --burst-y: -30px; color: #fff; transform: rotate(14deg); }
.welcome-burst-3 { right: 3%; bottom: 20%; --burst-x: 48px; --burst-y: 36px; transform: rotate(24deg); }
.welcome-burst-4 { left: 0; bottom: 22%; --burst-x: -42px; --burst-y: 34px; color: #fff; transform: rotate(-18deg); }
.welcome-burst-5 { left: 44%; top: -1%; --burst-x: 0; --burst-y: -48px; }
@keyframes funny-welcome-arrive { 0% { transform: translate(-50%,-42%) scale(.08) rotate(-720deg); opacity: 0; } 58% { transform: translate(-50%,-53%) scale(1.18) rotate(9deg); opacity: 1; } 76% { transform: translate(-50%,-48%) scale(.9) rotate(-5deg); } 100% { transform: translate(-50%,-50%) scale(1) rotate(0); } }
@keyframes welcome-profile-wobble { 0%,100% { transform: translateY(0) rotate(-2deg) scale(1); } 35% { transform: translateY(-12px) rotate(3deg) scale(1.025); } 70% { transform: translateY(5px) rotate(-1deg) scale(.985); } }
@keyframes welcome-punchline-pop { from { transform: translateY(24px) scale(.6) rotate(4deg); opacity: 0; } to { transform: translateY(0) scale(1) rotate(-1deg); opacity: 1; } }
@keyframes welcome-burst-flight { from { transform: translate(0,0) scale(.08) rotate(-180deg); opacity: 0; } to { transform: translate(var(--burst-x),var(--burst-y)) scale(1) rotate(0); opacity: 1; } }
@keyframes welcome-burst-dance { 0%,100% { margin-top: 0; } 50% { margin-top: -13px; } }
.roulette-presentation { padding-top: 2vh; }
.roulette-presentation.roulette-spinning .roulette-mark { animation: none; }
.roulette-presentation blockquote { min-height: 2.35em; display: grid; place-items: center; text-wrap: balance; }
.roulette-presentation .question-cycling { animation: question-cycle .085s linear; }
@keyframes question-cycle { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.projector-choices span { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.projector-choices span.correct { color: var(--ink); background: var(--white); border-color: var(--white); box-shadow: 0 16px 34px rgba(82,15,44,.2); }
.projector-choices span.correct svg { flex: 0 0 auto; color: var(--pink); }
.exact-answer-prompt.revealed { color: var(--ink); background: var(--white); border-color: var(--white); box-shadow: 0 16px 34px rgba(82,15,44,.2); }
.exact-answer-prompt.revealed strong { margin-left: 5px; color: var(--pink); font-size: 1.12em; }

.leaderboard-stage > svg { margin-bottom: 8px; }
.leaderboard-stage h1 { margin: 7px 0 22px; font-size: clamp(54px,6vw,92px); line-height: .95; letter-spacing: -.06em; }
.leaderboard-board { width: min(980px,78vw); display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.leaderboard-board article { min-height: 72px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.36); border-radius: 22px; background: rgba(255,255,255,.16); display: grid; grid-template-columns: 38px 50px 1fr auto; align-items: center; gap: 11px; text-align: left; backdrop-filter: blur(14px); }
.leaderboard-board article > span { width: 32px; height: 32px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 900; }
.leaderboard-board article strong { font-size: 20px; }
.leaderboard-board article em { font-style: normal; font-weight: 850; }
.leaderboard-board article.top-1 { color: var(--ink); background: var(--white); grid-column: 1/-1; }
.leaderboard-board article.top-1 > span { color: var(--white); background: var(--pink); }
.leaderboard-board article.top-1 em { color: var(--pink); }
.leaderboard-stage > p { color: rgba(255,255,255,.74); }

/* Participant app shell: fixed like a native app, with controlled inner scrolling */
.participant-app { max-width: 430px; height: 100dvh; min-height: 0; overscroll-behavior: none; }
.participant-app .app-content { min-height: 0; overscroll-behavior-y: contain; background:
  radial-gradient(circle at 88% 4%, rgba(255,255,255,.78), transparent 25%),
  linear-gradient(180deg, rgba(255,242,247,.92), rgba(255,219,209,.78)); }
.participant-app .participant-section { padding: 2px 2px 10px; }
.participant-app .ticket-card,
.participant-app .quiz-card,
.participant-app .friend-tile,
.participant-app .danger-zone { box-shadow: 0 16px 38px rgba(109,28,63,.13), inset 0 1px 0 rgba(255,255,255,.92); }

@media (prefers-reduced-motion: reduce) {
  .pill-grid button, .pill-grid button:hover, .pill-grid button.selected, .participant-app .bottom-nav button, .gradient-flow-layer, .float-icon, .live-wave i, .response-bubble-field blockquote, .name-count-bubble, .roulette-spinning .roulette-mark, .roulette-reel > div.active, .remote-timer-card.is-spinning > strong, .welcome-moment, .welcome-profile-circle, .welcome-punchline, .welcome-burst, .event-lobby-backdrop, .checked-person-bubble, .qr-scan-corners::after, .question-cycling { animation: none !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .participant-app .bottom-nav { background: rgba(76,28,54,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .participant-app .bottom-nav button.active { background: rgba(255,255,255,.2); }
}

@media (max-width: 1050px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .screen-mode-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .home-page { padding: 18px; }
  .hero h1 { font-size: 48px; }
  .home-footer { flex-direction: column; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; height: auto; border: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .admin-sidebar .brand { margin: 0 4px 12px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; }
  .admin-sidebar nav button { flex: 0 0 auto; }
  .sidebar-bottom { display: none; }
  .admin-main { padding: 0 14px 40px; }
  .admin-statusbar { margin-inline: -14px; padding-inline: 14px; }
  .admin-page-header { align-items: flex-start; flex-direction: column; }
  .metrics-grid, .admin-two-columns, .roulette-console, .quiz-admin-grid, .screen-mode-grid { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 1fr auto; }
  .table-row > strong { display: none; }
  .results-panel .panel-heading { align-items: flex-start; flex-direction: column; }
  .lobby-stage, .quiz-stage { grid-template-columns: 1fr; }
  .people-orbit { display: none; }
  .test-data-panel { align-items: flex-start; flex-direction: column; }
  .test-data-panel > div:last-child { justify-content: flex-start; }
}

@media (max-width: 430px) {
  html, body, #root { width: 100%; height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  body { touch-action: manipulation; }
  .admin-remote-page { display: block; background: #fff7f8; }
  .admin-remote-shell { width: 100%; height: min(100dvh,844px); border-radius: 0; box-shadow: none; }
  .participant-page { width: 100%; height: 100dvh; min-height: 0; margin-inline: auto; padding-top: max(10px,env(safe-area-inset-top)); overflow: hidden; }
  .onboarding-card { flex: none; min-height: 0; max-height: none; height: calc(100dvh - 68px - env(safe-area-inset-top)); border-radius: 26px; }
  .onboarding-body { min-height: 0; overflow: hidden; }
  .participant-app { width: 100%; height: 100dvh; min-height: 0; }
  .participant-app .app-content { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .step-content h1 { font-size: 27px; }
  .photo-picker { width: 190px; height: 190px; }
  .recognized-participant { min-height: 66px; }
  .app-content { padding-inline: 14px; }
  .participant-section > h1 { font-size: 30px; }
  .ticket-card { padding: 18px; }
  .ticket-profile-grid { grid-template-columns: 1fr; }
  .ticket-pass { grid-template-columns: 1fr auto; }
  .friend-grid { gap: 9px; }
  .friend-tile { border-radius: 19px; }
  .friend-tile-name { padding: 9px 9px 7px; }
  .friend-tile-name strong { font-size: 15px; }
  .friend-tile-actions { padding: 0 6px 7px; gap: 5px; }
  .friend-tile-actions button { min-height: 40px; font-size: 9px; }
  .activity-list article { grid-template-columns: 44px 1fr; }
  .activity-list article .status-pill { grid-column: 2; justify-self: start; }
  .footer-actions .button { padding-inline: 14px; }
  .participant-entry-page, .admin-portal-page { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; }
  .participant-entry-shell, .admin-portal-shell { width: 100%; height: 100dvh; min-height: 0; }
}

@media (max-height: 760px) {
  .participant-entry-shell { padding-top: 14px; }
  .participant-entry-hero { height: 240px; margin-top: 4px; }
  .participant-entry-content h1 { margin-top: 4px; font-size: 28px; }
  .participant-entry-form input, .participant-entry-cta { min-height: 52px; }
  .participant-entry-privacy { margin-top: 8px; }
  .admin-portal-shell { padding-top: 28px; }
  .admin-portal-eyebrow { margin-top: 10px; }
  .admin-portal-lock { width: 88px; height: 88px; margin-top: 14px; }
  .admin-portal-shell h1 { font-size: 38px; }
  .admin-portal-divider { margin: 16px 0 18px; }
  .admin-portal-pin { min-height: 60px; }
  .admin-portal-cta { min-height: 54px; }
}
