:root {
  --bg: #0f1424;
  --bg2: #171e33;
  --card: #1d2540;
  --line: #2c365a;
  --text: #eef1fa;
  --muted: #9aa3bf;
  --accent: #f2b544;
  --accent2: #5b8cff;
  --ok: #34c77b;
  --ko: #ef5b5b;
  --radius: 14px;
  --on-accent: #1a1400;
  --on-accent2: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #24305a 0%, var(--bg) 60%) fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent2); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 1100px; }
h1 { font-size: 1.7rem; margin: 8px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.mt { margin-top: 16px; }
.mt2 { margin-top: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600; background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
}
.badge.open { color: var(--ok); border-color: #2a6b4a; }
.badge.closed { color: var(--ko); border-color: #6b2a2a; }
.badge.waiting { color: var(--accent); border-color: #6b5527; }

input, select, textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; outline: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent2); }
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; min-height: 320px; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 6px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; font-size: 1rem; font-weight: 600; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text); text-decoration: none;
}
button:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-blue { background: var(--accent2); color: var(--on-accent2); border-color: var(--accent2); }
.btn-danger { background: transparent; color: var(--ko); border-color: #6b2a2a; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 0.82rem; border-radius: 8px; }

.error { color: var(--ko); margin-top: 10px; white-space: pre-line; }
.notice { color: var(--ok); margin-top: 10px; }

/* progress + timer */
.progress { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--accent2); width: 0; transition: width 0.3s; }
.timer { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: 12px 0 4px; }
.timer > div { height: 100%; background: var(--ok); width: 100%; }
.timer.warn > div { background: var(--accent); }
.timer.danger > div { background: var(--ko); }
.seconds { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.3rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; }
.stat span { font-size: 0.75rem; color: var(--muted); }

/* question */
.qtext { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin: 14px 0 18px; }
.choices { display: grid; gap: 10px; }
.choice {
  text-align: left; justify-content: flex-start; padding: 16px; font-weight: 500; font-size: 1.02rem;
  background: var(--bg2); border: 2px solid var(--line); min-height: 58px;
}
.choice .key {
  flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent);
}
.choice.picked { border-color: var(--accent2); }
.multi-hint { margin: 0 0 10px; font-weight: 600; color: var(--accent); }
.choice.good { border-color: var(--ok); background: #143326; }
.choice.bad { border-color: var(--ko); background: #3a1717; }

.result { text-align: center; padding: 10px 0; }
.result .big { font-size: 1.8rem; font-weight: 800; }
.result.ok .big { color: var(--ok); }
.result.ko .big { color: var(--ko); }

/* leaderboard */
.board { list-style: none; padding: 0; margin: 0; }
.board li {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid transparent;
}
.board li:nth-child(odd) { background: rgba(255,255,255,0.025); }
.board li.me { border-color: var(--accent2); background: rgba(91,140,255,0.12); }
.board .rk { width: 38px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.board li.p1 .rk { color: #e7c14e; } .board li.p2 .rk { color: #c3cbd6; } .board li.p3 .rk { color: #d38c52; }
.board .ps { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .sc { font-weight: 700; font-variant-numeric: tabular-nums; }
.board .pz { display: block; font-size: 0.75rem; color: var(--accent); font-weight: 500; }

.prizes { list-style: none; padding: 0; margin: 0; }
.prizes li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; }
.prizes li:last-child { border-bottom: 0; }
.prizes b { color: var(--accent); min-width: 44px; }

.nav { display: flex; gap: 8px; margin-top: 18px; }
.nav button { flex: 1; }

/* review */
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-item ul { margin: 8px 0 0; padding-left: 18px; }
.review-item li.good { color: var(--ok); font-weight: 600; }
.review-item li.bad { color: var(--ko); text-decoration: line-through; }
.review-q { font-size: 1.05em; }
.review-mark { display: inline-block; width: 1.4em; font-weight: 700; }
.review-item.is-ok .review-mark, .txt-ok { color: var(--ok); }
.review-item.is-ko .review-mark, .txt-ko { color: var(--ko); }
.review-line { margin-top: 6px; }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tabs button { padding: 8px 14px; font-size: 0.9rem; }
.tabs button.active { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent2); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr.banned td { opacity: 0.45; }
.flag { color: var(--accent); font-weight: 700; }
.tablewrap { overflow-x: auto; }
.qr { background: #fff; padding: 14px; border-radius: 12px; display: inline-block; }
.qr img { display: block; width: 260px; height: 260px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.qedit { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--bg2); }
.qedit input, .qedit textarea { background: var(--card); }
.qedit textarea { font-family: inherit; font-size: 0.95rem; min-height: 64px; }
.choice-edit { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.choice-edit input[type=radio], .choice-edit input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; }
.multi-toggle { display: flex; align-items: center; gap: 8px; margin-top: 8px; cursor: pointer; }
.multi-toggle input { width: 18px; height: 18px; flex: 0 0 18px; }
.inline-num { display: flex; gap: 10px; }
.inline-num > div { flex: 1; }

.modal-back { position: fixed; inset: 0; background: rgba(5, 8, 18, 0.75); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; }

@media print {
  body { background: #fff; color: #000; }
  #app, .modal-back, .noprint { display: none !important; }
  .print-only { display: block !important; padding-top: 6vh; }
  #poster h1 { font-size: 2.6rem; }
  #poster p { font-size: 1.3rem; }
  .poster-qr { width: 65vw; max-width: 520px; height: auto; margin: 24px auto; display: block; }
}
img[src^="blob:"] { image-rendering: pixelated; }
.print-only { display: none; }


/* ------------------------------------------------------------------ logos */
.logos { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.logo-frame { position: relative; background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; }
.logo-frame img.logo { display: block; max-height: 64px; max-width: 150px; width: auto; height: auto; }
.logo-frame .holly { display: none; }
.emblem { display: none; }
.logo-admin { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.logo-admin .ph { width: 150px; height: 80px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.8rem; background: #fff; }
.logo-admin .ph img { max-width: 140px; max-height: 70px; }
.logo-admin .ph.empty { background: transparent; }
input[type=color] { width: 64px; height: 44px; padding: 4px; }
input[type=file] { padding: 8px; font-size: 0.85rem; }

/* ------------------------------------------------------------------ light (institutionnel) */
body.theme-light {
  --bg: #f3f5f9; --bg2: #eef1f6; --card: #ffffff; --line: #d7dce6;
  --text: #161b2e; --muted: #5b6478; --ok: #18794e; --ko: #c62828;
  background: var(--bg);
}
body.theme-light .board li:nth-child(odd) { background: #f6f8fb; }
body.theme-light .choice .key { background: #f3f5f9; }
body.theme-light .choice.good { background: #e3f5eb; }
body.theme-light .choice.bad { background: #fbe7e7; }
body.theme-light .logo-frame { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
body.theme-light .card { box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
body.theme-light .badge.waiting { color: #8a5a00; }
body.theme-light header h1 { border-left: 4px solid var(--accent2); padding-left: 10px; }

/* ------------------------------------------------------------------ Noël (style de l'affiche : sapin, or, serif) */
body.theme-christmas {
  --bg: #032313; --bg2: #053019; --card: rgba(5, 52, 28, 0.88); --line: rgba(217, 177, 75, 0.32);
  --text: #fbf4e2; --muted: #c9d6c4; --ok: #6fdc98; --ko: #ff7a74;
  --gold: #d9b14b; --gold-soft: rgba(217, 177, 75, 0.55);
  background: radial-gradient(120% 80% at 50% 35%, #0a4425 0%, #053019 45%, #021a0b 100%) fixed;
}
/* fine double gold frame around the page, like the poster */
body.theme-christmas::before {
  content: ''; position: fixed; inset: 8px; z-index: 3; pointer-events: none;
  border: 1px solid var(--gold-soft); outline: 1px solid rgba(217, 177, 75, 0.28); outline-offset: 5px;
}
/* pine branches in the four corners */
body.theme-christmas::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    url('/sapin.png') left bottom / 150px auto no-repeat,
    url('/sapin-d.png') right bottom / 150px auto no-repeat,
    url('/sapin-h.png') left top / 150px auto no-repeat,
    url('/sapin-hd.png') right top / 150px auto no-repeat;
  opacity: 0.95;
}
@media (max-width: 700px) {
  body.theme-christmas::after {
    background: url('/sapin.png') left bottom / 86px auto no-repeat, url('/sapin-d.png') right bottom / 86px auto no-repeat;
    opacity: 0.8;
  }
}
body.theme-christmas .wrap { position: relative; z-index: 2; padding-top: 30px; }
body.theme-christmas .card { background: var(--card); border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); backdrop-filter: blur(2px); }
body.theme-christmas h1, body.theme-christmas h2, body.theme-christmas h3, body.theme-christmas .qtext, body.theme-christmas .big {
  font-family: "Playfair Display", "Libre Baskerville", Georgia, "DejaVu Serif", "Times New Roman", serif; letter-spacing: 0;
}
body.theme-christmas h1 { color: #fbf4e2; font-size: 2.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
body.theme-christmas h2, body.theme-christmas h3 { color: var(--gold); font-weight: 700; }
body.theme-christmas header > p.muted { color: var(--gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 600; text-align: center; }
body.theme-christmas header .title-row { justify-content: center; }
body.theme-christmas header::after {
  content: '◆'; display: block; text-align: center; color: var(--gold); font-size: 0.7rem; margin: 2px auto 14px; width: 60%;
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) left center / 42% 1px no-repeat,
              linear-gradient(var(--gold-soft), var(--gold-soft)) right center / 42% 1px no-repeat;
}
/* logos: shown as is, no white frame (the poster logo already wears its Santa hat) */
body.theme-christmas .logo-frame { background: transparent; padding: 0; border: 0; box-shadow: none; }
body.theme-christmas .logo-frame img.logo { max-height: 110px; max-width: 170px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }
body.theme-christmas .logo-frame .holly { display: none; }
body.theme-christmas .logos + .row + .title-row .emblem { display: none; }
body.theme-christmas .emblem { display: block; width: 46px; height: 54px; flex: 0 0 auto; }
body.theme-christmas .title-row { display: flex; align-items: center; gap: 12px; }
body.theme-christmas .board li.me { background: rgba(217, 177, 75, 0.14); }
body.theme-christmas .choice { background: rgba(3, 35, 19, 0.75); border-color: var(--line); }
body.theme-christmas .choice .key { color: var(--gold); border-color: var(--gold-soft); }
body.theme-christmas .badge { border-color: var(--gold-soft); }
body.theme-christmas .stat { background: rgba(3, 35, 19, 0.7); border-color: var(--line); }
body.theme-christmas .stat b { color: var(--gold); }
.title-row h1 { margin: 8px 0 4px; }
#snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
}

/* ------------------------------------------------------------------ avatars, bonus, séries */
.av { display: inline-block; margin-right: 8px; font-size: 1.15em; line-height: 1; }
.who { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 6px; color: var(--text); font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; }
.who .av { font-size: 1.4rem; margin-right: 6px; }
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 6px 0 4px; }
@media (max-width: 420px) { .avatars { grid-template-columns: repeat(6, 1fr); } }
.avatar-btn { font-size: 1.6rem; padding: 6px 0; border-radius: 12px; background: var(--bg2); border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.avatar-btn.sel { border-color: var(--accent); background: rgba(217, 177, 75, 0.18); transform: scale(1.08); }
.bonus-banner {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 1.1rem;
  color: #2a1a00; background: linear-gradient(90deg, #d9b14b, #f6dc8a, #d9b14b); background-size: 200% 100%;
  animation: shine 2.2s linear infinite; box-shadow: 0 0 18px rgba(217, 177, 75, 0.45);
}
@keyframes shine { to { background-position: -200% 0; } }
.bonus-line { color: var(--accent); font-weight: 700; margin: 6px 0 0; }
.bonus-tag { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.streak-line { font-weight: 800; font-size: 1.1rem; margin: 6px 0 0; color: #ffb347; }
.streak-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; text-align: center; font-weight: 700; background: rgba(255, 140, 40, 0.14); border: 1px solid rgba(255, 140, 40, 0.4); }
.qedit.is-bonus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bonus-banner { animation: none; } }

/* ------------------------------------------------------------------ écran géant (/ecran) */
body.screen { overflow: hidden; }
.screen-app { position: relative; z-index: 2; height: 100vh; display: grid; grid-template-columns: 34fr 66fr; gap: 3vw; padding: 3.2vw 4vw 4vw; }
.scr-left { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; }
.scr-logos { display: flex; gap: 1.5vw; justify-content: center; }
.scr-logos img { max-height: 15vh; max-width: 14vw; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45)); }
.scr-left .badge { margin-top: 1vh; font-size: 1vw; }
.scr-title { font-family: "Playfair Display", Georgia, "DejaVu Serif", serif; font-size: 3.6vw; line-height: 1.05; margin: 1vh 0 0.6vh; color: #fbf4e2; }
.scr-sub { color: var(--accent); text-transform: uppercase; letter-spacing: 0.25em; font-size: 1vw; font-weight: 600; margin: 0; }
.scr-divider { width: 70%; margin: 1.6vh 0; color: var(--accent); font-size: 0.8vw; text-align: center;
  background: linear-gradient(var(--line), var(--line)) left center / 44% 1px no-repeat, linear-gradient(var(--line), var(--line)) right center / 44% 1px no-repeat; }
.scr-join { background: #fff; color: #10301c; border-radius: 1.2vw; padding: 1.2vw 1.4vw 1vw; box-shadow: 0 1vw 3vw rgba(0,0,0,0.35); }
.scr-join-title { font-weight: 800; font-size: 1.4vw; margin-bottom: 0.6vh; }
.scr-qr { display: block; width: 15vw; height: 15vw; max-width: 30vh; max-height: 30vh; image-rendering: pixelated; margin: 0 auto; }
.scr-url { font-weight: 700; font-size: 1.05vw; margin-top: 0.5vh; }
.scr-stats { display: flex; gap: 1vw; margin-top: 2vh; }
.scr-stat { background: var(--card); border: 1px solid var(--line); border-radius: 0.8vw; padding: 0.8vw 1.2vw; min-width: 7vw; }
.scr-stat b { display: block; font-size: 2.2vw; color: var(--accent); font-variant-numeric: tabular-nums; }
.scr-stat span { font-size: 0.85vw; color: var(--muted); }
.scr-right { display: flex; flex-direction: column; min-height: 0; }
.scr-h2 { font-family: "Playfair Display", Georgia, "DejaVu Serif", serif; font-size: 2.4vw; color: var(--accent); margin: 0 0 1.4vh; }
.scr-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9vh; }
.scr-row { display: flex; align-items: center; gap: 1.2vw; background: var(--card); border: 1px solid var(--line); border-radius: 0.9vw; padding: 1vh 1.4vw; font-size: 1.75vw; will-change: transform; }
.scr-row .rk { width: 4vw; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.scr-row .av { font-size: 2.2vw; margin: 0; }
.scr-row .ps { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-row .pz { display: block; font-size: 0.95vw; color: var(--accent); font-weight: 500; }
.scr-row .st { width: 5vw; text-align: right; color: #ffb347; font-weight: 800; }
.scr-row .sc { min-width: 10vw; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.scr-row.p1 { border-color: #e7c14e; background: linear-gradient(90deg, rgba(231, 193, 78, 0.28), var(--card) 60%); font-size: 2.1vw; }
.scr-row.p2 { border-color: #c3cbd6; background: linear-gradient(90deg, rgba(195, 203, 214, 0.18), var(--card) 60%); }
.scr-row.p3 { border-color: #d38c52; background: linear-gradient(90deg, rgba(211, 140, 82, 0.2), var(--card) 60%); }
.scr-empty { font-size: 1.6vw; color: var(--muted); }
.scr-fact { margin-top: auto; padding: 1.2vh 1.4vw; border-radius: 0.9vw; background: rgba(0,0,0,0.25); border: 1px solid var(--line); font-size: 1.35vw; }
.scr-toasts { position: fixed; top: 3vh; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 1vh; align-items: center; pointer-events: none; }
.scr-toast { background: linear-gradient(90deg, #d9b14b, #f3d27a); color: #2a1a00; font-weight: 800; font-size: 1.6vw; padding: 1vh 2vw; border-radius: 999px; box-shadow: 0 1vh 3vh rgba(0,0,0,0.4); animation: toastIn 0.5s cubic-bezier(.2,1.4,.4,1); transition: opacity 0.6s, transform 0.6s; }
.scr-toast.out { opacity: 0; transform: translateY(-2vh); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-3vh) scale(.8); } }
.scr-ctrls { position: fixed; right: 1.6vw; bottom: 1.4vh; z-index: 10; display: flex; gap: 0.6vw; opacity: 0.35; transition: opacity 0.3s; }
.scr-ctrls:hover { opacity: 1; }
.scr-ctrl { font-size: 0.85vw; padding: 0.5vh 0.9vw; }
.scr-login { max-width: 520px; margin: 20vh auto; }
.cer { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: radial-gradient(70% 70% at 50% 45%, #0a4425, #021a0b); }
.cer-card { text-align: center; }
.cer-card h1 { font-family: "Playfair Display", Georgia, "DejaVu Serif", serif; font-size: 6vw; margin: 0; color: var(--accent); }
.cer-card p { font-size: 2vw; margin: 1vh 0; }
.cer-emoji { font-size: 9vw; }
.cer-rank { font-family: "Playfair Display", Georgia, "DejaVu Serif", serif; font-size: 5vw; font-weight: 800; color: var(--muted); }
.cer-av { font-size: 12vw; line-height: 1.1; margin: 1vh 0; }
.cer-name { font-size: 5.2vw; font-weight: 800; color: #fbf4e2; }
.cer-score { font-size: 1.8vw; color: var(--muted); margin-top: 1vh; }
.cer-prize { display: inline-block; margin-top: 2.5vh; font-size: 2.4vw; font-weight: 800; color: #2a1a00; background: linear-gradient(90deg, #d9b14b, #f3d27a); padding: 1vh 2.4vw; border-radius: 999px; }
.cer-hint { margin-top: 4vh; font-size: 1.1vw; color: var(--muted); opacity: 0.8; }
.cer-card.p1 .cer-rank { color: #e7c14e; font-size: 6.5vw; }
.cer-card.p1 .cer-name { font-size: 7vw; color: #f3d27a; text-shadow: 0 0 3vw rgba(231, 193, 78, 0.5); }
.cer-card.p2 .cer-rank { color: #c3cbd6; }
.cer-card.p3 .cer-rank { color: #d38c52; }
@media (max-aspect-ratio: 4/3) {
  body.screen { overflow: auto; }
  .screen-app { grid-template-columns: 1fr; height: auto; }
}
