@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/fonts/figtree-400.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/fonts/figtree-600.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/fonts/figtree-700.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('/fonts/figtree-800.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 900; font-display: swap; src: url('/fonts/figtree-900.woff2') format('woff2'); }

:root {
  --ink: #0B2239; --slate: #4A6175; --muted: #6B7F8E; --line: #E3ECEF; --soft: #F3F7F8;
  --teal: #1FB5AE; --teal-d: #0F6E74; --teal-l: #E3F4F2; --orange: #F78F1E; --orange-d: #D9730B; --hl: #FFC98C;
  --good: #12946B; --good-l: #E2F5EE; --mid: #B7791F; --mid-l: #FFF3DC; --bad: #D93F4C; --bad-l: #FDE8EA; --blue: #2F7BEA; --blue-l: #E6F0FD;
  --card: #FFFFFF; --shadow: 0 12px 32px rgba(10, 37, 64, 0.08), 0 0 0 1px rgba(10, 37, 64, 0.05);
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0; }
body { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #FFFFFF; -webkit-font-smoothing: antialiased; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-d); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.76rem; }
.center { text-align: center; }
.center-msg { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 1.1rem; color: var(--slate); }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 800; background: var(--soft); color: var(--ink); text-decoration: none; transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--orange); color: #FFFFFF; box-shadow: 0 8px 18px rgba(247, 143, 30, 0.3); }
.btn.primary:hover { background: var(--orange-d); }
.btn.ghost { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px #C9D7DD; }
.btn.danger { background: var(--bad); color: #FFFFFF; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn.wide { width: 100%; }
.btn.google { background: #FFFFFF; box-shadow: inset 0 0 0 2px #DADCE0; color: #1F1F1F; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--slate); }
.icon-btn:hover { background: var(--soft); }
.link-btn { border: 0; background: none; color: var(--teal-d); font-weight: 700; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.link-btn.light { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }
.demo-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #FFF1E2; color: #B25400; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- the phone survey */
.survey-body { background: linear-gradient(165deg, #EAF6F5 0%, #FFFFFF 45%, #FFF4E6 100%); min-height: 100vh; }
.phone-app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; gap: 10px; }
.ph-logo { height: 46px; width: auto; }
.ph-right { display: flex; align-items: center; gap: 8px; }
.lang-btn { border: 0; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.85rem; }
.ph-main { flex: 1; padding: 8px 18px 28px; }
/* 'backwards' so the screen stops being a transformed box once it has slid in; fixed sheets then cover the whole screen */
.step { animation: stepIn 0.35s ease backwards; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hello { margin: 14px 0 4px; font-weight: 700; color: var(--teal-d); font-size: 1.05rem; }
.q { font-size: 1.6rem; line-height: 1.18; letter-spacing: -0.015em; margin: 6px 0 14px; font-weight: 800; }
.sub { margin: -6px 0 14px; color: var(--slate); }
.sub.small { margin: -8px 0 10px; }
.label { font-weight: 800; margin: 22px 0 10px; font-size: 1.05rem; }
.label.upper { color: var(--teal-d); font-size: 0.85rem; margin: 18px 0 2px; }
.hint { display: flex; gap: 8px; align-items: flex-start; color: var(--slate); background: #FFFFFF; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); font-weight: 600; margin-top: 22px; }
.hint svg { flex: none; margin-top: 1px; }
.score-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; container-type: inline-size; }
.score-btn { flex: 0 0 calc((100% - 40px) / 6); min-width: 0; aspect-ratio: 1; border: 0; border-radius: 16px; font-size: 1.35rem; font-size: clamp(1rem, 6.5cqw, 1.35rem); font-weight: 900; background: #FFFFFF; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.12s, background 0.15s; padding: 0; }
.score-btn:hover { background: hsl(calc(var(--h) * 1deg + 0deg), 70%, 96%); }
.score-btn.on { background: var(--orange); color: #FFFFFF; transform: scale(1.06); }
.score-ends { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 0.85rem; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 999px; padding: 10px 14px; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; color: var(--ink); transition: background 0.15s, box-shadow 0.15s; }
.chip.on { background: var(--teal-l); box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal-d); }
.chip.big { padding: 14px 18px; flex: 1; }
.yesno { display: flex; gap: 10px; }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.face { border: 0; background: #FFFFFF; border-radius: 18px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.15s; }
.face-img { position: relative; display: block; border-radius: 50%; }
.face-check { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #FFFFFF; display: none; place-items: center; box-shadow: 0 0 0 3px #FFFFFF; }
.face.on { box-shadow: 0 0 0 3px var(--orange), var(--shadow); transform: translateY(-2px); }
.face.on .face-check { display: grid; }
.face-name { font-weight: 800; font-size: 0.9rem; }
.face-role { font-size: 0.72rem; color: var(--muted); }
.comment { width: 100%; margin-top: 18px; border: 0; border-radius: 16px; padding: 12px 14px; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--line); resize: vertical; }
.comment:focus { box-shadow: inset 0 0 0 2px var(--teal); outline: none; }
.sticky-next { position: sticky; bottom: 0; padding: 18px 0 8px; background: linear-gradient(rgba(255, 248, 240, 0), #FFF8F0 40%); margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.choice { border: 0; text-align: left; padding: 16px 18px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow); font-weight: 800; font-size: 1.05rem; }
.choice.on { background: var(--teal-l); box-shadow: inset 0 0 0 2px var(--teal); }
.thanks { text-align: center; padding-top: 10px; }
.thanks .q { margin-top: 4px; }
.thanks-mark { display: grid; place-items: center; }
.callout { background: var(--teal-l); color: var(--teal-d); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.review-card { text-align: left; background: #FFFFFF; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.review-card h2 { margin: 0; font-size: 1.2rem; }
.review-card p { margin: 0; color: var(--slate); }
.review-card blockquote { margin: 4px 0 0; padding: 10px 14px; border-left: 4px solid var(--hl); background: #FFF8EF; border-radius: 0 12px 12px 0; font-style: italic; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--slate); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); flex: none; }

/* kids: the ocean */
.phone-app.kids { background: linear-gradient(180deg, #19B6AE 0%, #0D8FA0 45%, #0B5C7A 100%); color: #FFFFFF; position: relative; overflow: hidden; }
.phone-app.kids::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 18%, rgba(255,255,255,0.18) 0 6px, transparent 7px), radial-gradient(circle at 82% 30%, rgba(255,255,255,0.14) 0 10px, transparent 11px), radial-gradient(circle at 70% 78%, rgba(255,255,255,0.12) 0 8px, transparent 9px), radial-gradient(circle at 22% 66%, rgba(255,255,255,0.12) 0 5px, transparent 6px); pointer-events: none; animation: bubbles 9s linear infinite; }
@keyframes bubbles { from { background-position: 0 0; } to { background-position: 0 -400px; } }
.phone-app.kids .ph-head { position: relative; z-index: 1; }
.phone-app.kids .lang-btn { background: rgba(255,255,255,0.18); box-shadow: none; color: #FFFFFF; }
.phone-app.kids .mute { color: #FFFFFF; }
.phone-app.kids .ph-main { position: relative; z-index: 1; }
.kid-hand { text-align: center; padding-top: 24px; }
.bob { display: grid; place-items: center; width: fit-content; margin: 0 auto; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.kid-q { font-size: 1.9rem; line-height: 1.12; font-weight: 900; margin: 16px 0 8px; text-align: center; letter-spacing: -0.01em; }
.kid-sub { text-align: center; font-weight: 700; opacity: 0.92; margin: 0 0 18px; }
.kid-btn { background: var(--orange); color: #FFFFFF; font-size: 1.35rem; padding: 18px 26px; width: 100%; margin-top: 18px; box-shadow: 0 10px 0 #C96A06, 0 18px 30px rgba(0,0,0,0.2); }
.kid-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #C96A06; }
.kid-opts { display: grid; gap: 12px; margin-top: 20px; }
.kid-opt { border: 0; border-radius: 26px; background: rgba(255,255,255,0.96); color: var(--ink); display: flex; align-items: center; gap: 14px; padding: 10px 18px; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 0 rgba(0,0,0,0.15); transition: transform 0.12s; }
.kid-opt svg { flex: none; }
.kid-opt.on { transform: scale(1.04); box-shadow: 0 0 0 5px var(--hl), 0 8px 0 rgba(0,0,0,0.15); }
.wheel-step { text-align: center; }
.kid-title { font-size: 1.5rem; font-weight: 900; margin: 6px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spins-left { display: inline-block; font-size: 0.95rem; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 999px; }
.wheel-wrap { width: min(88vw, 420px); margin: 6px auto 0; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.3)); }
.spin-btn { background: var(--orange); color: #FFFFFF; font-size: 1.6rem; font-weight: 900; letter-spacing: 0.04em; padding: 16px 48px; margin-top: 14px; box-shadow: 0 10px 0 #C96A06, 0 18px 30px rgba(0,0,0,0.25); }
.spin-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #C96A06; }
.spin-btn:disabled { opacity: 0.6; }
.result-sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(4, 30, 45, 0); transition: background 0.3s; }
.result-sheet.in { background: rgba(4, 30, 45, 0.5); }
.result-card { width: min(100%, 460px); background: #FFFFFF; color: var(--ink); border-radius: 28px; padding: 22px 20px 18px; box-shadow: 0 -10px 40px rgba(0,0,0,0.25); text-align: center; transform: translateY(120%); transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2); }
.result-sheet.in .result-card { transform: none; }
.spin-btn.away { visibility: hidden; }
.result-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: -62px auto 6px; box-shadow: 0 0 0 6px #FFFFFF, 0 10px 20px rgba(0,0,0,0.2); }
.result-kicker { margin: 4px 0 0; font-weight: 800; color: var(--muted); }
.result-name { margin: 2px 0 6px; font-size: 1.8rem; font-weight: 900; }
.result-note { margin: 0 0 14px; color: var(--slate); font-weight: 600; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mini-game { position: fixed; inset: 0; z-index: 50; background: rgba(5, 40, 60, 0.62); display: grid; place-items: center; padding: 14px; opacity: 0; transition: opacity 0.25s; }
.mini-game.in { opacity: 1; }
.mg-card { background: linear-gradient(180deg, #F2FBFA, #FFFFFF); border-radius: 26px; padding: 16px; width: min(100%, 400px); max-height: 100%; overflow: auto; color: var(--ink); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.mg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mg-title { font-size: 1.45rem; font-weight: 900; margin: 0; line-height: 1.1; }
.mg-left { flex: none; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 0.9rem; border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-left.done { background: var(--good); }
.mg-sub { margin: 0; font-weight: 700; color: var(--slate); line-height: 1.35; }
.mg-field { position: relative; width: 100%; aspect-ratio: 340 / 380; border-radius: 20px; overflow: hidden; background: #5B1630; box-shadow: inset 0 0 0 3px rgba(11, 34, 57, 0.08); }
.mg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.mg-canvas.dragging { cursor: grabbing; }
.mg-tip { position: absolute; left: 10px; right: 10px; top: 8px; width: fit-content; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(11, 34, 57, 0.8); color: #FFFFFF; font-weight: 800; font-size: 0.85rem; line-height: 1.2; text-align: center; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: background 0.2s; }
.mg-tip svg { width: 16px; height: 16px; flex: none; }
.mg-tip.nudge { background: var(--orange); animation: tipPulse 0.5s ease 3; }
@keyframes tipPulse { 50% { transform: scale(1.08); } }
.kid-done { text-align: center; }
.prize-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 8px; }
.prize-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.96); color: var(--ink); border-radius: 18px; padding: 10px 14px; text-align: left; }
.prize-row small { display: block; color: var(--slate); font-weight: 600; }
.pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.badge-box { margin: 14px auto 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.badge-img { width: min(76vw, 300px); border-radius: 18px; box-shadow: 0 14px 30px rgba(0,0,0,0.3); background: rgba(255,255,255,0.2); aspect-ratio: 1080 / 1350; }
.btn.ghost-light { background: rgba(255,255,255,0.18); color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------------------------------------------------------------- staff */
.staff-body { background: linear-gradient(165deg, #EAF6F5 0%, #F7FAFB 30%, #FFF7EE 100%); min-height: 100vh; }
.staff { max-width: 1320px; margin: 0 auto; padding: 0 24px 60px; }
.st-head { display: flex; align-items: center; gap: 18px; padding: 16px 0 10px; flex-wrap: wrap; }
.st-logo { height: 56px; width: auto; }
.st-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; }
.st-title h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.015em; }
.conn { font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.conn::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.on { background: var(--good-l); color: var(--good); }
.conn.on::before { animation: pulse 1.6s ease-in-out infinite; }
.conn.off { background: var(--mid-l); color: var(--mid); }
@keyframes pulse { 50% { opacity: 0.35; } }
.st-actions { display: flex; gap: 10px; align-items: center; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: #FFFFFF; border-radius: 16px; box-shadow: 0 18px 40px rgba(10,37,64,0.16), 0 0 0 1px rgba(10,37,64,0.06); padding: 6px; min-width: 300px; z-index: 20; display: flex; flex-direction: column; }
.menu button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.menu button:hover { background: var(--soft); }
.st-tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: none; white-space: nowrap; border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--slate); display: inline-flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.st-tabs button.on { color: var(--ink); border-bottom-color: var(--orange); }
.st-tabs .badge { background: var(--bad); color: #FFFFFF; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.01em; }
.card h3 { margin: 18px 0 8px; font-size: 1rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #FFFFFF; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.kpi b { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; }
.kpi small { color: var(--muted); font-size: 0.78rem; }
.waiting { background: #FFFFFF; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.waiting h3 { margin: 0 8px 0 0; font-size: 0.95rem; }
.wait-chip { background: var(--soft); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.88rem; }
.wait-chip i { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 4px; }
.feed h2 { font-size: 1.15rem; margin: 6px 0 12px; }
.r-card { display: flex; gap: 16px; background: #FFFFFF; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.r-card.fresh { animation: fresh 2.4s ease; }
@keyframes fresh { 0% { box-shadow: 0 0 0 4px var(--orange), var(--shadow); transform: translateY(-6px); } 100% { box-shadow: var(--shadow); transform: none; } }
.r-score { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; }
.r-card.good .r-score { background: var(--good-l); color: var(--good); }
.r-card.mid .r-score { background: var(--mid-l); color: var(--mid); }
.r-card.bad .r-score { background: var(--bad-l); color: var(--bad); }
.r-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.r-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.r-time { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--soft); color: var(--slate); }
.tag.good { background: var(--good-l); color: var(--good); }
.tag.mid { background: var(--mid-l); color: var(--mid); }
.tag.bad { background: var(--bad-l); color: var(--bad); }
.tag.blue { background: var(--blue-l); color: var(--blue); }
.tag.strong { font-weight: 900; }
.tag svg { width: 14px; height: 14px; }
blockquote { margin: 0; padding: 8px 12px; border-left: 4px solid var(--hl); background: #FFF9F1; border-radius: 0 12px 12px 0; color: var(--ink); }
blockquote cite { display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.r-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 0.9rem; }
.r-shouts, .r-won, .kid-ans { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.r-shouts { color: var(--orange-d); }
.r-kids { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.kid-ans { color: var(--teal-d); }
.mini-av { display: inline-flex; margin-right: -8px; border-radius: 50%; box-shadow: 0 0 0 2px #FFFFFF; }
.mini-av:last-of-type { margin-right: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 900; font-size: 0.85rem; }
.pill.good { background: var(--good-l); color: var(--good); }
.pill.mid { background: var(--mid-l); color: var(--mid); }
.pill.bad { background: var(--bad-l); color: var(--bad); }
.pill.big { font-size: 1.05rem; padding: 4px 12px; }
.empty { text-align: center; padding: 36px 16px; color: var(--slate); display: flex; flex-direction: column; align-items: center; }
.empty h3 { margin: 8px 0 4px; color: var(--ink); }
.empty p { margin: 0; max-width: 460px; }

/* prizes and odds */
.prizes-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.plist { display: flex; flex-direction: column; margin-top: 10px; }
.prow { display: grid; grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) auto auto; grid-template-areas: "look name es on del" "look set set set set"; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prow:first-child { padding-top: 4px; }
.prow.off { opacity: 0.5; }
.p-look { grid-area: look; position: relative; width: 46px; height: 46px; align-self: start; }
.p-name { grid-area: name; }
.p-es { grid-area: es; font-size: 0.9rem; }
.p-on { grid-area: on; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--slate); cursor: pointer; }
.prow .del { grid-area: del; }
.p-set { grid-area: set; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.p-set .p-kind { width: 132px; flex: none; }
.p-odds { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; }
.p-odds input[type=range] { flex: 1; width: 100%; min-width: 0; accent-color: var(--teal); }
.p-pick, .p-cost { display: flex; align-items: center; gap: 8px; }
.p-pick select { width: 172px; }
.p-money { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--slate); }
.p-lbl { font-size: 0.78rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.chance { min-width: 54px; text-align: right; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.fld { border: 0; border-radius: 10px; padding: 8px 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); width: 100%; min-width: 0; }
.fld:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); background: #FFFFFF; }
.fld:disabled { opacity: 0.55; }
.fld.name { font-weight: 800; }
.fld.num { width: 72px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.icon-pick { border: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.p-color { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); overflow: hidden; cursor: pointer; }
.p-color input { position: absolute; inset: -4px; width: 30px; height: 30px; opacity: 0; cursor: pointer; }
.toggle { width: 20px; height: 20px; accent-color: var(--teal); }
.ptable-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.total.ok b { color: var(--good); }
.total.warn b { color: var(--bad); }
.wheel-card { text-align: left; position: sticky; top: 14px; }
.pv-wrap { width: 100%; max-width: 330px; margin: 0 auto; aspect-ratio: 1; }
.pv-wheel { width: 100%; height: 100%; display: block; }
.test-spin { display: flex; margin: 10px auto 4px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 14px 110px 1fr 46px; gap: 8px; align-items: center; font-size: 0.88rem; }
.bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.bar { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; display: block; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--teal); min-width: 2px; }
.bar-row b { text-align: right; }
.cost-box { margin-top: 16px; background: var(--soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cost-box label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.cost-line { margin: 4px 0 0; font-size: 1.1rem; }
.cost-line b { font-size: 1.35rem; }

/* winners */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.pill-btn { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--soft); font-weight: 700; }
.pill-btn b { margin-left: 4px; color: var(--muted); }
.pill-btn.on { background: var(--ink); color: #FFFFFF; }
.pill-btn.on b { color: var(--hl); }
.win-list { display: flex; flex-direction: column; }
.win-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 150px 120px minmax(160px, auto); gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.win-row .hand { white-space: nowrap; justify-self: end; }
.win-row .w-done { justify-self: end; white-space: nowrap; }
.w-main small { display: block; color: var(--muted); }
.w-pick { font-weight: 700; color: var(--slate); font-size: 0.9rem; }
.w-done { color: var(--good); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }

/* team */
.team-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.bonus .big-num { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; margin: 6px 0; }
.bonus .big-num small { font-size: 1rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.meter { position: relative; height: 16px; background: var(--soft); border-radius: 10px; margin: 6px 0 12px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--teal), #3CCFA0); }
.meter .goal { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--ink); border-radius: 2px; }
.bonus.warn .meter i { background: linear-gradient(90deg, #F2A93B, var(--orange)); }
.bonus .status { font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; }
.bonus .last-month { margin: 0 0 8px; color: var(--slate); font-weight: 600; }
.star-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(160deg, #FFF8EC, #FFFFFF); }
.star-card h3 { margin: 4px 0 0; font-size: 1.4rem; }
.star-card p { margin: 0; color: var(--slate); font-weight: 700; }
.ribbon { display: inline-flex; gap: 6px; align-items: center; background: var(--orange); color: #FFFFFF; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.staff-board .sb-row { display: grid; grid-template-columns: 44px 220px 1fr 40px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sb-name small { display: block; color: var(--muted); }
.sb-n { font-size: 1.2rem; text-align: right; }
.staff-board .bar { height: 12px; }
.staff-board .bar i { background: linear-gradient(90deg, var(--orange), #FFB866); }
.shout-feed .sf-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }

/* alerts */
.alert-card { border-radius: 18px; box-shadow: inset 0 0 0 2px var(--bad-l); padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; background: #FFFDFD; }
.ac-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.script summary { cursor: pointer; font-weight: 800; color: var(--teal-d); }
.script p { background: var(--teal-l); border-radius: 12px; padding: 10px 14px; margin: 8px 0 0; }
.ac-actions { display: flex; gap: 10px; align-items: flex-start; }
.ac-actions .note { flex: 1; resize: vertical; }
.done-head { margin-top: 26px; }
.done-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.done-row .muted { display: inline-flex; gap: 4px; align-items: center; }
.note-txt { color: var(--slate); font-style: italic; flex-basis: 100%; padding-left: 40px; }

/* settings */
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-grid { display: grid; gap: 10px; margin-top: 8px; }
.form-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 72px 88px; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.frow em { font-style: normal; font-weight: 600; color: var(--muted); }
.frow.wide { grid-template-columns: minmax(0, 1fr) 172px; }
.form-grid label, label.block { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 0.95rem; }
label.block { flex-direction: column; align-items: stretch; margin-bottom: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.two label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.85rem; }
.opt-ed { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; align-items: center; }
.opt-row.kid { grid-template-columns: 36px 1fr 1fr; margin-top: 8px; }
.team-ed { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.tm-row { display: grid; grid-template-columns: 50px 1fr 1fr 36px; gap: 8px; align-items: center; }
.tm-av { border: 0; background: none; padding: 0; border-radius: 50%; }
.save-bar { grid-column: 1 / -1; position: sticky; bottom: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; }

/* summary */
.summary { max-width: 820px; }
.summary .lead { font-size: 1.2rem; }
.summary h3 { margin-top: 20px; color: var(--teal-d); }
.summary p { margin: 0; }
.summary blockquote { margin: 8px 0; }
.sum-actions { display: flex; gap: 8px; }

/* send a survey */
.send { display: grid; grid-template-columns: 1fr 360px; gap: 22px; }
.fam-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.fam { border: 0; text-align: left; background: var(--soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 0 0 2px transparent; }
.fam span { font-weight: 600; font-size: 0.88rem; }
.fam small { color: var(--muted); font-size: 0.78rem; }
.fam.on { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--orange); }
.send-form { display: flex; flex-direction: column; gap: 6px; }
.kid-row { grid-template-columns: 1fr 90px 36px; align-items: end; }
.phone-mock { background: #F2F2F7; border-radius: 30px; box-shadow: inset 0 0 0 8px #1C2631, 0 20px 40px rgba(10,37,64,0.18); padding: 16px 16px 20px; min-height: 300px; }
.pm-top { text-align: center; font-weight: 800; font-size: 0.85rem; color: #6B7280; padding: 6px 0 10px; }
.pm-from { text-align: center; font-size: 0.78rem; color: #6B7280; font-weight: 700; margin-bottom: 8px; }
.pm-empty { text-align: center; padding: 60px 10px; }
.pm-bubble { background: #E5E5EA; border-radius: 18px 18px 18px 6px; padding: 10px 12px; font-size: 0.92rem; line-height: 1.38; max-width: 92%; word-wrap: break-word; }
.pm-stop { display: block; margin-top: 6px; font-size: 0.85em; opacity: 0.75; }
.pm-bubble a { color: #0A64D8; }
.pm-time { font-size: 0.72rem; color: #8E8E93; margin: 6px 0 0 6px; }
.qr-box { display: flex; gap: 14px; align-items: center; margin-top: 16px; background: #FFFFFF; border-radius: 18px; box-shadow: var(--shadow); padding: 12px; }
.qr { width: 120px !important; height: 120px !important; flex: none; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr-box.no-qr { padding: 16px; }
.qr-box.no-qr p { margin: 4px 0 0; max-width: 36ch; }
.send-form .go[data-via=qr] { margin-top: 2px; }
/* the code the front desk shows at checkout */
.checkout-card { background: #FFFFFF; border-radius: 26px; box-shadow: var(--shadow), inset 0 0 0 2px var(--line); padding: 20px 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-logo { height: 40px; width: auto; }
.checkout-card h3 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.checkout-card p { margin: 0; max-width: 32ch; line-height: 1.45; }
.qr.qr-big { width: 220px !important; height: 220px !important; margin: 8px 0 4px; }
.cc-for { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.cc-actions { justify-content: center; margin-top: 12px; }
.cc-hint { text-align: center; margin: 8px auto 0; max-width: 40ch; }
/* open this copy on another screen */
.share-box { margin: 6px 0 10px; }
.share-link { font-weight: 700; word-break: break-all; margin: 0 0 4px; font-size: 0.92rem; }
/* the short guide */
.guide-lead { margin: 4px 0 12px; line-height: 1.5; }
.guide-steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.guide-steps li::marker { color: var(--teal-d); font-weight: 800; }
.guide-note { display: flex; gap: 8px; align-items: flex-start; background: var(--bad-l); color: var(--bad); font-weight: 700; padding: 10px 12px; border-radius: 12px; margin: 0 0 8px; line-height: 1.4; }
.guide-note svg { flex: none; margin-top: 1px; }

/* modal, toasts, phone overlay */
.modal-back { position: fixed; inset: 0; background: rgba(11, 34, 57, 0.4); display: grid; place-items: center; padding: 20px; z-index: 80; opacity: 0; transition: opacity 0.2s; }
.modal-back.in { opacity: 1; }
.modal { background: #FFFFFF; border-radius: 26px; width: min(100%, 520px); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(10,37,64,0.3); transform: translateY(10px); transition: transform 0.2s; }
.modal-back.in .modal { transform: none; }
.modal-wide { width: min(100%, 980px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 1.3rem; }
.modal-body { padding: 10px 22px 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 20px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 90; max-width: 380px; }
.toast { background: #FFFFFF; border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(10,37,64,0.18), 0 0 0 1px rgba(10,37,64,0.06); font-weight: 600; transform: translateX(120%); transition: transform 0.35s cubic-bezier(.2,.9,.3,1.1); display: flex; gap: 8px; align-items: center; }
.toast.in { transform: none; }
.toast-msg { display: block; line-height: 1.4; }
.toast-msg svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.toast-msg .pill { margin-left: 4px; }
.toast-good { box-shadow: inset 4px 0 0 var(--good), 0 18px 40px rgba(10,37,64,0.18); }
.toast-bad { box-shadow: inset 4px 0 0 var(--bad), 0 18px 40px rgba(10,37,64,0.18); color: var(--bad); }
.toast-info { box-shadow: inset 4px 0 0 var(--teal), 0 18px 40px rgba(10,37,64,0.18); }
.phone-overlay { position: fixed; inset: 0; background: rgba(11, 34, 57, 0.55); display: grid; place-items: center; z-index: 85; padding: 16px; }
.po-frame { position: relative; display: flex; height: min(92vh, 860px); max-width: 100%; aspect-ratio: 390 / 820; background: #0B1520; border-radius: 52px; padding: 14px; box-shadow: 0 40px 100px rgba(0,0,0,0.45); }
/* the screen: its transform makes the survey's sheets and games sit on the phone, not the whole page */
.po-screen { position: relative; flex: 1; min-width: 0; border-radius: 40px; overflow: hidden; transform: translateZ(0); container-type: size; background: linear-gradient(165deg, #EAF6F5 0%, #FFFFFF 45%, #FFF4E6 100%); }
.po-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.po-scroll::-webkit-scrollbar { display: none; }
.po-screen .phone-app { min-height: 100cqh; max-width: none; }
.po-screen .ph-head { padding-top: 34px; }
.po-screen .wheel-wrap { width: min(88cqw, 420px); }
.po-screen .badge-img { width: min(76cqw, 300px); }
.po-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #0B1520; border-radius: 0 0 18px 18px; z-index: 2; }
.po-x { position: absolute; top: -14px; right: -48px; background: #FFFFFF; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .prizes-grid, .team-grid, .settings { grid-template-columns: 1fr; }
  .wheel-card { position: static; }
  .win-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .st-tabs button { padding: 10px; gap: 6px; font-size: 0.94rem; }
  .win-row .w-when, .win-row .w-pick { display: none; }
}
@media (max-width: 760px) {
  .staff { padding: 0 16px 40px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .st-logo { height: 44px; }
  .send { grid-template-columns: 1fr; }
  .staff-board .sb-row { grid-template-columns: 40px 1fr 60px 30px; }
  .prow { grid-template-columns: 50px minmax(0, 1fr) auto auto; grid-template-areas: "look name on del" "look es es es" "set set set set"; }
  .p-set { gap: 10px; }
  .p-set .p-kind { flex: 1 1 120px; width: auto; order: 0; }
  .p-cost { order: 1; }
  .p-odds { order: 2; }
  .p-pick { order: 3; }
  .p-odds { flex: 1 1 100%; }
  .p-pick { flex: 1 1 100%; }
  .p-pick select { flex: 1; width: auto; }
  .frow { grid-template-columns: minmax(0, 1fr) 64px 70px; gap: 8px; font-size: 0.9rem; }
  .frow.wide { grid-template-columns: minmax(0, 1fr) 142px; }
  .po-x { right: -6px; top: -48px; }
  .st-head { gap: 10px; }
  .st-title { min-width: 0; flex-wrap: wrap; gap: 4px 8px; }
  .st-title h1 { font-size: 1.15rem; }
  .conn { font-size: 0.72rem; white-space: nowrap; }
  .st-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 0; }
  .st-tabs::-webkit-scrollbar { display: none; }
  .st-tabs button { white-space: nowrap; flex: none; padding: 10px 10px; }
  .st-actions { width: 100%; flex-wrap: wrap; }
  .st-actions .send-btn { flex: 1 1 100%; }
  .st-actions .guide-btn, .st-actions .menu-wrap { flex: 1 1 0; }
  .st-actions .menu-wrap .tools-btn { width: 100%; }
  .menu { min-width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 600px) {
  .phone-overlay { padding: 0; place-items: stretch; }
  .po-frame { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; flex-direction: column; background: var(--ink); box-shadow: none; }
  .po-notch { display: none; }
  .po-screen { border-radius: 0; }
  .po-screen .ph-head { padding-top: 12px; }
  .po-x { position: static; align-self: flex-end; margin: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .st-head, .st-tabs, .sum-actions, #toasts { display: none !important; }
  .staff-body { background: #FFFFFF; }
  .card { box-shadow: none; }
}
