@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..800&display=swap");

:root {
  --navy: #14233A; --navy2: #293D52; --navy3: #33465F; --red: #E63232; --blue: #AADCE6;
  --bg: #F3F5F7; --white: #FFFFFF; --ink: #14233A; --body: #3B4A5E; --slate: #5E6B7E;
  --muted: #8792A2; --line: #D5DBE3; --dbody: #C9D3DF;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
.cond { font-stretch: 75%; letter-spacing: -0.01em; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }
.kicker b { color: var(--red); margin-right: 0.8em; }
.icon svg { width: 1em; height: 1em; }

/* ---------- Participant pages (mobile first) ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.top img { width: 74px; height: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--white); }
.lang button { font: 600 13px var(--font); padding: 8px 12px; border: 0; background: none; color: var(--slate); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.hero h1 { font-size: 44px; line-height: 0.95; font-weight: 750; margin: 10px 0 12px; }
.hero p { font-size: 17px; line-height: 1.45; color: var(--body); }
.embed { margin-top: 22px; min-height: 180px; position: relative; }
.embed .loading { position: absolute; left: 0; top: 24px; font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.embed .loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.embed iframe { width: 100%; border: 0; }
.foot { margin-top: 40px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hidden { display: none !important; }

/* result */
.result h1 { font-size: 40px; line-height: 0.95; font-weight: 750; margin: 10px 0 20px; }
.scorecard { background: var(--navy); color: var(--white); padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.scorecard .big { font-size: 76px; line-height: 0.8; font-weight: 300; color: var(--blue); }
.scorecard .big small { font-size: 22px; color: var(--dbody); font-weight: 400; }
.scorecard .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.scorecard .txt { font-size: 15px; line-height: 1.4; color: var(--dbody); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.card { background: var(--white); padding: 16px; }
.card .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); display: flex; gap: 6px; align-items: center; }
.card.grow .lbl { color: var(--red); }
.card .name { font-size: 22px; font-weight: 700; line-height: 1.05; margin: 8px 0 4px; }
.card .val { font-size: 14px; color: var(--body); }
.card .guess { font-size: 12.5px; line-height: 1.35; color: var(--slate); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.bars { background: var(--white); margin-top: 10px; padding: 18px 16px 10px; }
.bars h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; display: flex; justify-content: space-between; }
.bars h2 span { letter-spacing: 0.05em; text-transform: none; font-weight: 500; color: var(--muted); }
.row { display: grid; grid-template-columns: 22px 1fr 34px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.row .icon { font-size: 18px; color: var(--navy); }
.row .nm { font-size: 15px; font-weight: 650; }
.row .track { position: relative; height: 8px; background: var(--bg); margin-top: 6px; }
.row .fill { position: absolute; inset: 0 auto 0 0; background: #B8C2CF; transition: width 0.8s ease; }
.row.strong .fill { background: var(--navy); }
.row.growth .fill { background: var(--red); }
.row .room { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--blue); }
.row .num { font-size: 18px; font-weight: 700; text-align: right; }
.tip { margin-top: 10px; background: var(--white); padding: 18px 16px; }
.tip p { font-size: 16px; line-height: 1.45; color: var(--body); margin-top: 8px; }
.cta { margin-top: 10px; background: var(--red); color: var(--white); padding: 20px 16px; }
.cta strong { display: block; font-size: 22px; line-height: 1.1; }
.cta p { font-size: 15px; line-height: 1.45; margin-top: 8px; }
.cta a { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; background: var(--white); color: var(--red); font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 5px; text-decoration: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.45; }
.again { font-size: 13px; color: var(--slate); background: none; border: 0; text-decoration: underline; cursor: pointer; margin-top: 8px; font-family: var(--font); }

/* step flow */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.steps span.on { color: var(--ink); border-color: var(--red); }
.steps span.past { color: var(--slate); border-color: var(--navy); }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; background: var(--red); color: var(--white); font: 700 16px var(--font); padding: 14px 18px; border: 0; border-radius: 5px; cursor: pointer; }
.btn .icon { font-size: 18px; }
.link { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--slate); background: none; border: 0; text-decoration: underline; cursor: pointer; font-family: var(--font); }
.pick { margin-top: 20px; }
.pick h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.pick.grow h2 { color: var(--red); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { display: flex; gap: 9px; align-items: center; text-align: left; min-height: 50px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; font: 650 15px/1.15 var(--font); color: var(--ink); cursor: pointer; }
.chip .icon { font-size: 18px; flex: none; }
.chip.sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pick.grow .chip.sel { background: var(--red); border-color: var(--red); }
.chip:disabled { opacity: 0.35; cursor: default; }
.btn:disabled { opacity: 0.4; cursor: default; }
.mlist { margin-top: 18px; background: var(--white); padding: 4px 16px 8px; }
.mlist summary { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); padding: 12px 0; cursor: pointer; }
.mlist .m { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.mlist .m .icon { font-size: 18px; color: var(--navy); padding-top: 2px; }
.mlist .m b { display: block; font-size: 15px; }
.mlist .m small { font-size: 13px; line-height: 1.4; color: var(--body); }

/* pulse page */
.done { background: var(--navy); color: var(--white); padding: 26px 20px; margin-top: 22px; }
.done .big { font-size: 96px; line-height: 0.85; font-weight: 300; color: var(--blue); }
.done p { font-size: 17px; line-height: 1.45; color: var(--dbody); margin-top: 12px; }
.done strong { color: var(--white); }

/* ---------- Live pages (projector, 16:9) ---------- */
.stage { position: fixed; inset: 0; display: grid; place-items: center; background: var(--stage-bg, var(--bg)); overflow: hidden; }
/* 1 --u = 1% of the 16:9 frame width; positions mirror the slide grid (0.8" margin = 6 --u) */
.frame { --u: min(1vw, 1.778vh); position: relative; width: min(100vw, 177.78vh); height: min(56.25vw, 100vh); font-size: var(--u); }
.frame .kicker { position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 4.65); font-size: calc(var(--u) * 0.8); }
.frame .logo { position: absolute; right: calc(var(--u) * 6); top: calc(var(--u) * 3.4); width: calc(var(--u) * 7.5); }
.frame h1 { position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 9.4); font-size: calc(var(--u) * 3.45); line-height: 0.92; font-weight: 700; }
.frame .footer { position: absolute; left: calc(var(--u) * 6); bottom: calc(var(--u) * 3.1); font-size: calc(var(--u) * 0.75); color: var(--muted); }
.frame .status { position: absolute; right: calc(var(--u) * 6); bottom: calc(var(--u) * 3.1); font-size: calc(var(--u) * 0.75); color: var(--muted); display: flex; align-items: center; gap: 0.6em; }
.dot { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.status.err .dot { background: var(--muted); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.dark { --stage-bg: var(--navy); color: var(--white); }
.dark .kicker { color: #A9B6C8; }
.dark .footer, .dark .status { color: #8796AB; }
.waiting { font-size: 1.2em; color: var(--muted); }
