:root {
  --bg: #0b1020;
  --bg-2: #121a30;
  --card: #151e36;
  --card-2: #1c2745;
  --line: #2a3658;
  --text: #e8ecf6;
  --muted: #8f9bbd;
  --gold: #d6b25e;
  --gold-2: #f0d48a;
  --good: #3fcf8e;
  --bad: #ef5d6c;
  --common: #8f9bbd;
  --rare: #4aa3ff;
  --epic: #b06cff;
  --legend: #ffb648;
  --mythic: #ff4f8b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, #1d2a55 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}
button { font: inherit; color: inherit; }

.top, main, .foot { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; padding-bottom: 12px;
}
.brand h1 {
  font-family: Cinzel, serif; font-weight: 800; letter-spacing: .5px;
  margin: 0; font-size: 28px;
}
.brand h1 span { color: var(--gold); }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.badge {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--gold); color: var(--gold-2); cursor: help;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); cursor: pointer;
  font-weight: 700;
}
.icon-btn:hover { border-color: var(--gold); }

.score-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px 0 16px;
}
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.big { font-family: Cinzel, serif; font-size: 36px; font-weight: 800; color: var(--gold-2); line-height: 1; }
.progress { display: flex; gap: 6px; }
.progress span {
  width: 28px; height: 8px; border-radius: 4px; background: var(--line);
}
.progress span.done { background: var(--gold); }
.progress span.now { background: var(--gold-2); box-shadow: 0 0 10px var(--gold); }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.q-num { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.q-text { font-size: 22px; font-weight: 700; margin: 6px 0 16px; }

/* Caixa de pesquisa */
.picker { position: relative; }
.picker input {
  width: 100%; padding: 14px 16px; font-size: 17px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.picker input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,178,94,.15); }
.list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  max-height: 300px; overflow-y: auto; padding: 4px; margin: 0; list-style: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.list li {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border-radius: 8px; cursor: pointer;
}
.list li.active, .list li:hover { background: var(--card-2); }
.list li.used { opacity: .4; cursor: not-allowed; }
.list li small { margin-left: auto; color: var(--muted); font-size: 12px; }
.list .empty { color: var(--muted); cursor: default; }
.ava { width: 36px; height: 36px; border-radius: 8px; flex: none; background: var(--line); }
.ava.lg { width: 56px; height: 56px; border-radius: 10px; }

.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Respostas já dadas */
.answered { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  border-left: 4px solid var(--tier, var(--line));
}
.row .info { flex: 1; min-width: 0; }
.row .qq { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm { font-weight: 600; }
.row .pts { text-align: right; }
.row .pts b { font-size: 20px; font-family: Cinzel, serif; }
.row .pts div { font-size: 12px; color: var(--muted); }
.row.wrong { --tier: var(--bad); }
.row.wrong .ava { filter: grayscale(1); }

.tier-common { --tier: var(--common); }
.tier-rare { --tier: var(--rare); }
.tier-epic { --tier: var(--epic); }
.tier-legend { --tier: var(--legend); }
.tier-mythic { --tier: var(--mythic); }
/* Mítica: brilho a pulsar no texto do nível e nos pontos */
.tier-mythic .tier-tag, .tier-mythic .pts-big { text-shadow: 0 0 10px rgba(255, 79, 139, .85), 0 0 22px rgba(255, 79, 139, .45); animation: mythic-glow 1.6s ease-in-out infinite; }
@keyframes mythic-glow { 50% { text-shadow: 0 0 16px rgba(255, 120, 170, 1), 0 0 34px rgba(255, 79, 139, .7); } }
@media (prefers-reduced-motion: reduce) { .tier-mythic .tier-tag, .tier-mythic .pts-big { animation: none; } }
.tier-tag { color: var(--tier); font-weight: 700; }

/* Revelação depois de responder */
.reveal { text-align: center; }
.reveal .champ { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; }
.reveal .champ .ava { border: 2px solid var(--tier, var(--line)); }
.reveal .pct { font-size: 15px; color: var(--muted); }
.reveal .pts-big { font-family: Cinzel, serif; font-size: 44px; font-weight: 800; color: var(--tier); line-height: 1.1; }
.reveal.wrong .pts-big { color: var(--bad); }
.why { color: var(--bad); font-weight: 600; }

.top-answers { text-align: left; margin: 18px 0 6px; }
.top-answers h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px; }
.bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 8px; margin-bottom: 4px; overflow: hidden;
}
.bar .fill { position: absolute; inset: 0 auto 0 0; background: rgba(214,178,94,.14); z-index: 0; }
.bar.mine .fill { background: rgba(214,178,94,.32); }
.bar > *:not(.fill) { position: relative; z-index: 1; }
.bar .ava { width: 26px; height: 26px; border-radius: 6px; }
.bar .p { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.rarest { font-size: 14px; color: var(--muted); margin-top: 8px; }
.rarest b { color: var(--legend); }

.btn {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1404; border: 0; border-radius: 10px; padding: 12px 22px;
  font-weight: 700; cursor: pointer; font-size: 16px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--gold-2); border: 1px solid var(--gold); }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.summary { text-align: center; }
.summary h2 { font-family: Cinzel, serif; margin: 0 0 4px; }
.summary .final { font-family: Cinzel, serif; font-size: 56px; font-weight: 800; color: var(--gold-2); line-height: 1.1; }
.emoji { font-size: 26px; letter-spacing: 4px; margin: 8px 0; }
.muted { color: var(--muted); }

.foot { color: var(--muted); font-size: 12px; text-align: center; padding-top: 16px; padding-bottom: 32px; }
.foot p { margin: 4px 0; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.link-btn:hover { color: var(--text); }

dialog {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); max-width: 440px; width: calc(100% - 32px); padding: 24px;
}
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { font-family: Cinzel, serif; margin-top: 0; }
dialog ol { padding-left: 20px; }
dialog li { margin-bottom: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--card-2); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .q-text { font-size: 19px; }
  .progress span { width: 22px; }
  .badge { display: none; }
}

.note { font-size: 13px; color: var(--muted); margin: 12px auto 0; max-width: 460px; }
.progress { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 480px) { .progress span { width: 18px; } }

/* Resposta em texto livre */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-text { margin-bottom: 4px; }
.q-ex { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.answer-form { display: flex; gap: 8px; }
.answer-form input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 17px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.answer-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,178,94,.15); }
.answer-form .btn { flex: none; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--bad); }
.tries { display: flex; gap: 5px; }
.tries span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.tries span.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.guesses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.guesses.center { justify-content: center; margin-bottom: 4px; }
.guesses s { font-size: 13px; color: var(--muted); background: var(--bg-2); padding: 2px 8px; border-radius: 6px; }
.ph {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-2); font-weight: 700; font-size: 12px;
  background: linear-gradient(135deg, var(--card-2), var(--line));
}
.ava.lg.ph { font-size: 18px; }
.bar .ph { font-size: 10px; }
@media (max-width: 480px) { .answer-form .btn { padding: 12px 14px; } }

/* Relógio de 15 segundos */
.timer {
  position: relative; height: 22px; border-radius: 11px; background: var(--bg-2);
  border: 1px solid var(--line); overflow: hidden; margin: 12px 0 14px;
}
.timer-fill {
  position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width .1s linear;
}
.timer-num {
  position: relative; display: block; text-align: center; font-weight: 700; font-size: 13px;
  line-height: 20px; color: #1a1404; mix-blend-mode: normal; text-shadow: 0 0 4px rgba(255,255,255,.4);
}
.timer.urgent .timer-fill { background: linear-gradient(90deg, #c2343f, var(--bad)); }
.timer.urgent { animation: pulse .5s infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 12px rgba(239,93,108,.6); } }

/* Cena da duelista */
.scene {
  position: relative; height: 240px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #0d1330; margin: 4px 0 14px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.5);
}
.scene canvas { display: block; image-rendering: pixelated; }
.scene-tag {
  position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600;
  background: rgba(8,12,28,.7); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.pop-num {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: Fredoka, Inter, sans-serif; font-weight: 700; font-size: 38px; line-height: 1;
  text-align: center; pointer-events: none;
  -webkit-text-stroke: 2px #1a1030; paint-order: stroke fill;
  text-shadow: 0 3px 0 #1a1030, 0 0 18px currentColor;
  animation: pop 1.7s ease-out forwards;
}
.pop-num small { display: block; font-size: 15px; -webkit-text-stroke: 1px #1a1030; margin-top: 2px; }
@keyframes pop {
  0% { transform: translateX(-50%) scale(.2) rotate(-12deg); opacity: 0; }
  15% { transform: translateX(-50%) scale(1.25) rotate(4deg); opacity: 1; }
  28% { transform: translateX(-50%) scale(.95) rotate(-2deg); }
  40% { transform: translateX(-50%) scale(1.05) rotate(0); }
  75% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(-34px) scale(1); opacity: 0; }
}
.stats { display: flex; gap: 28px; }
.big.depth { color: #7fd8ff; }
.dug { color: var(--muted); }
.dug b { color: var(--text); }
@media (max-width: 480px) { .scene { height: 200px; } .stats { gap: 18px; } .big { font-size: 30px; } }

/* ===== Cena em ecrã inteiro (por trás de tudo) ===== */
.scene {
  position: fixed; inset: 0; z-index: 0; height: auto; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: #0b1020;
}
.scene-tag { top: auto; bottom: 14px; left: 14px; font-size: 13px; z-index: 2; }
.top, main, .foot { position: relative; z-index: 1; transition: opacity .35s ease; }
main { padding-top: max(0px, calc(24vh - 40px)); }
body { background: #0b1020; }
.card, .row, .score-bar {
  background: linear-gradient(180deg, rgba(28,39,69,.88), rgba(21,30,54,.92));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.score-bar { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.foot { text-shadow: 0 1px 3px #000; }
.brand h1, .sub { text-shadow: 0 2px 6px rgba(0,0,0,.8); }

/* Durante a escavação só se vê a cena */
body.digging .top, body.digging main, body.digging .foot { opacity: 0; pointer-events: none; }

.pop-num { top: calc(45vh - 150px); font-size: 64px; z-index: 3; }
.pop-num small { font-size: 22px; }

.region-banner {
  position: absolute; left: 0; right: 0; top: 16vh; text-align: center; z-index: 3;
  pointer-events: none; opacity: 0;
}
.region-banner b {
  display: block; font-family: Cinzel, serif; font-weight: 800; font-size: clamp(34px, 7vw, 64px);
  color: var(--rc, var(--gold-2)); letter-spacing: 2px;
  text-shadow: 0 0 24px var(--rc, var(--gold)), 0 4px 0 rgba(0,0,0,.6);
}
.region-banner span { display: block; color: #fff; font-size: 16px; text-shadow: 0 2px 6px #000; margin-top: 4px; }
.region-banner.show { animation: banner 2.4s ease forwards; }
@keyframes banner {
  0% { opacity: 0; transform: scale(.85); letter-spacing: 12px; }
  15% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}
@media (max-width: 480px) {
  .scene { height: auto; }
  .pop-num { font-size: 52px; }
}

/* Botão de idioma */
.lang-btn { font-size: 12px; letter-spacing: .5px; }

/* Ecrã inicial (antes do relógio) */
.intro { text-align: center; }
.intro h2 { font-family: Cinzel, serif; font-size: 30px; margin: 6px 0 14px; color: var(--gold-2); }
.intro-rules { list-style: none; padding: 0; margin: 0 auto 12px; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; font-size: 16px; }
.intro-rules li { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.intro .muted { font-size: 13px; color: var(--muted); }
.btn-start { font-size: 19px; padding: 14px 44px; letter-spacing: .5px; box-shadow: 0 0 22px rgba(214,178,94,.35); }

/* Emblema original do Lollion no cabeçalho */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .emblem { width: 44px; height: 50px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)) drop-shadow(0 0 10px rgba(214,178,94,.35)); }
@media (max-width: 480px) { .brand .emblem { width: 34px; height: 39px; } }
.foot .legal { font-size: 11px; max-width: 640px; margin: 8px auto 0; line-height: 1.45; padding: 8px 12px; border-radius: 8px; background: rgba(11,16,32,.72); color: #c9d1e6; }

/* Acabamento "premium": cartões escuros de vidro com moldura dourada fina */
.card, .row, .score-bar {
  background: linear-gradient(180deg, rgba(18,20,42,.9), rgba(9,10,24,.94));
  border: 1px solid rgba(214,178,94,.32);
  box-shadow: inset 0 1px 0 rgba(255,236,190,.06), 0 12px 34px rgba(0,0,0,.55);
}
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: 4px; border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(214,178,94,.10); pointer-events: none;
}
.q-text, .intro h2 { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.btn { box-shadow: 0 4px 14px rgba(214,178,94,.25), inset 0 1px 0 rgba(255,255,255,.35); }
.scene-tag { background: rgba(9,10,24,.8); border: 1px solid rgba(214,178,94,.3); }

/* ===================================================================
   Estilo "cliente do League of Legends" (hextech): ouro velho, azul-noite,
   molduras com cantos cortados, títulos dourados e botões em ponta.
   =================================================================== */
:root {
  --lol-gold-1: #f0e6d2;  /* ouro claro (texto de títulos) */
  --lol-gold-2: #c8aa6e;  /* ouro */
  --lol-gold-3: #c89b3c;
  --lol-gold-4: #785a28;  /* ouro escuro (molduras) */
  --lol-gold-5: #463714;
  --lol-blue: #0ac8b9;    /* hextech */
  --lol-blue-2: #0397ab;
  --lol-ink: #010a13;     /* fundo dos painéis */
  --lol-grey: #a09b8c;
  --cut: 12px;
}

/* --- Cabeçalho e logótipo --- */
.top { padding-top: 14px; align-items: flex-start; }
.brand { display: block; }
.logo { margin: 0; line-height: 0; }
.logo svg { width: 250px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.75)); }
.brand .sub {
  margin: 2px 0 0 18px; font-family: Cinzel, serif; font-weight: 700; font-size: 13px;
  letter-spacing: 1px; color: var(--lol-gold-2);
}
@media (max-width: 480px) { .logo svg { width: 200px; } .brand .sub { margin-left: 12px; font-size: 12px; } }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1e2328, var(--lol-ink));
  border: 2px solid var(--lol-gold-4); color: var(--lol-gold-1);
  font-family: Cinzel, serif; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), inset 0 0 8px rgba(0,0,0,.8);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.icon-btn:hover { border-color: var(--lol-gold-2); color: #fff; box-shadow: 0 0 0 1px #000, 0 0 12px rgba(200,170,110,.45); }

/* --- Painéis com moldura dourada e cantos cortados --- */
.card, .score-bar, dialog {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--lol-gold-2), var(--lol-gold-4) 45%, var(--lol-gold-5) 70%, var(--lol-gold-3));
  border: 0; border-radius: 0; box-shadow: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.card::before, .score-bar::before, dialog::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; border: 0; border-radius: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(10,200,185,.07), transparent 60%),
    linear-gradient(180deg, rgba(10,20,40,.96), rgba(1,10,19,.97));
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}
.card::after, .score-bar::after { /* filete interior fino */
  content: ""; position: absolute; inset: 6px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(200,170,110,.18);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
main > .card, main > .score-bar { filter: drop-shadow(0 14px 26px rgba(0,0,0,.6)); }
.card { padding: 22px 24px; }
dialog { padding: 26px; color: var(--text); }

/* --- Barra de pontos --- */
.score-bar { --cut: 10px; padding: 12px 22px; margin: 10px 0 16px; }
.stats { gap: 0; align-items: stretch; }
.stat { padding: 0 22px; }
.stat:first-child { padding-left: 0; border-right: 1px solid rgba(200,170,110,.25); }
.label { font-family: Cinzel, serif; font-weight: 700; color: var(--lol-gold-2); font-size: 11px; letter-spacing: 1.5px; }
.val { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.stat-ico { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.big {
  font-family: Cinzel, serif; font-weight: 800; font-size: 32px;
  background: linear-gradient(180deg, #fff6dc, var(--lol-gold-2) 60%, var(--lol-gold-4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big.depth { background: linear-gradient(180deg, #e6fbff, #5fd0ff 60%, #1f7fc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress { gap: 5px; }
.progress span {
  width: 30px; height: 9px; border-radius: 5px;
  background: linear-gradient(180deg, #1c2440, #0c1226); border: 1px solid #2a3350;
}
.progress span.done { background: linear-gradient(180deg, var(--lol-gold-2), var(--lol-gold-4)); border-color: var(--lol-gold-4); }
.progress span.now { background: linear-gradient(180deg, #fff3b0, #f2c84b); border-color: #f2c84b; box-shadow: 0 0 10px rgba(242,200,75,.75); }
@media (max-width: 480px) {
  .score-bar { padding: 10px 14px; } .stat { padding: 0 12px; } .big { font-size: 26px; } .stat-ico { width: 24px; height: 24px; }
  .progress span { width: 18px; }
}

/* --- Títulos --- */
.q-num {
  font-family: Cinzel, serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--lol-gold-3);
}
.intro h2, .summary h2, dialog h2, .q-text {
  font-family: Cinzel, serif; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff8e6 10%, var(--lol-gold-1) 40%, var(--lol-gold-2) 75%, #a8843f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.8));
}
.intro h2 { text-transform: uppercase; font-size: clamp(24px, 6vw, 34px); margin: 6px 0 4px; }
.q-text { font-size: 23px; font-weight: 700; line-height: 1.3; }
.intro-orn, .summary-orn { /* filete com losango, como no cliente */
  display: block; height: 14px; margin: 4px auto 14px; width: min(320px, 80%); position: relative;
  background: linear-gradient(90deg, transparent, var(--lol-gold-4) 25%, var(--lol-gold-2) 46%, transparent 46%, transparent 54%, var(--lol-gold-2) 54%, var(--lol-gold-4) 75%, transparent) center / 100% 1px no-repeat;
}
.intro-orn::after, .summary-orn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--lol-gold-2); background: var(--lol-ink);
}

/* --- Regras com ícones dourados --- */
.intro-rules { display: flex; width: min(480px, 100%); gap: 8px; margin: 0 auto 12px; }
.intro-rules li {
  display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--lol-gold-1);
  background: linear-gradient(180deg, rgba(30,35,40,.75), rgba(1,10,19,.75));
  border: 1px solid rgba(200,170,110,.35); border-radius: 999px; padding: 8px 18px 8px 12px;
}
.intro-rules li::before {
  content: ""; width: 24px; height: 24px; flex: none; background: center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.8));
}
.intro-rules li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1c4'/%3E%3Cstop offset='1' stop-color='%23b07f2e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='9.5' y='1' width='5' height='3' rx='1' fill='url(%23g)'/%3E%3Ccircle cx='12' cy='14' r='8.5' fill='none' stroke='url(%23g)' stroke-width='2.6'/%3E%3Cpath d='M12 9v5l3 2' stroke='url(%23g)' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.intro-rules li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1c4'/%3E%3Cstop offset='1' stop-color='%23b07f2e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 21C5 16 2 12.5 2 8.6 2 5.5 4.4 3 7.4 3c1.9 0 3.6 1 4.6 2.6C13 4 14.7 3 16.6 3 19.6 3 22 5.5 22 8.6c0 3.9-3 7.4-10 12.4z' fill='url(%23g)' stroke='%23523a12' stroke-width='.8'/%3E%3C/svg%3E"); }
.intro-rules li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L21 9 L12 22 L3 9 Z' fill='%231f8fe0'/%3E%3Cpath d='M12 2 L21 9 L12 11 Z' fill='%239fe2ff'/%3E%3Cpath d='M12 2 L3 9 L12 11 Z' fill='%2346b8ff'/%3E%3Cpath d='M3 9 L12 11 L12 22 Z' fill='%231462b8'/%3E%3C/svg%3E"); }
.intro .muted, .muted { color: var(--lol-grey); }

/* --- Botões hextech: dourado com pontas em seta --- */
.btn {
  position: relative; border: 0; border-radius: 0; isolation: isolate;
  font-family: Cinzel, serif; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #2a1b05; padding: 12px 30px; font-size: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #f7e3a8, #d9b462 40%, #a97c32 75%, #e2bf6c);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  box-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.55));
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: drop-shadow(0 0 12px rgba(240,210,130,.6)) brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.ghost { color: var(--lol-gold-1); background: linear-gradient(180deg, var(--lol-gold-2), var(--lol-gold-4)); }
.btn.ghost::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: linear-gradient(180deg, #1e2328, #010a13);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%);
}
.btn-start {
  font-size: 22px; padding: 16px 70px; letter-spacing: 2px; box-shadow: none;
  clip-path: polygon(26px 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 26px 100%, 0 50%);
}
/* moldura escura com seta à volta do botão Começar */
.start-frame {
  display: inline-block; padding: 3px; position: relative;
  background: linear-gradient(180deg, #3a2a0e, #120c03);
  clip-path: polygon(29px 0, calc(100% - 29px) 0, 100% 50%, calc(100% - 29px) 100%, 29px 100%, 0 50%);
  filter: drop-shadow(0 0 16px rgba(240,200,110,.4));
}
.start-frame .btn { filter: none; display: block; }
.intro .actions { margin-top: 18px; }

/* --- Caixa de resposta e relógio --- */
.answer-form input {
  background: rgba(1,10,19,.9); border: 1px solid var(--lol-gold-4); border-radius: 0; color: var(--lol-gold-1);
}
.answer-form input:focus { border-color: var(--lol-gold-2); box-shadow: 0 0 0 1px var(--lol-gold-2), 0 0 14px rgba(200,170,110,.25); }
.answer-form input::placeholder { color: #6b6a66; }
.timer { border-radius: 0; background: #010a13; border: 1px solid var(--lol-gold-4); }
.timer-fill { background: linear-gradient(90deg, var(--lol-blue-2), var(--lol-blue)); box-shadow: 0 0 10px rgba(10,200,185,.5); }
.timer-num { color: #fff; text-shadow: 0 1px 2px #000; }
.tries { gap: 8px; }
.tries span { transform: rotate(45deg); border-radius: 1px; width: 10px; height: 10px; background: #1e2328; border: 1px solid var(--lol-gold-4); }
.tries span.on { background: linear-gradient(135deg, #fff1c4, var(--lol-gold-3)); box-shadow: 0 0 6px rgba(200,155,60,.7); }
.guesses s { background: rgba(1,10,19,.8); border: 1px solid #3c3c41; border-radius: 0; }

/* --- Linhas de respostas, barras e etiquetas --- */
.row {
  background: linear-gradient(180deg, rgba(10,20,40,.94), rgba(1,10,19,.96));
  border: 1px solid rgba(200,170,110,.3); border-left: 4px solid var(--tier, var(--lol-gold-4)); border-radius: 0;
}
.ava, .ava.lg, .bar .ava { border-radius: 2px; }
.reveal .champ .ava { border: 2px solid var(--tier, var(--lol-gold-4)); box-shadow: 0 0 0 1px #000, 0 0 14px var(--tier, transparent); }
.summary .final { background: linear-gradient(180deg, #fff6dc, var(--lol-gold-2) 60%, var(--lol-gold-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-answers h3 { font-family: Cinzel, serif; color: var(--lol-gold-2); }
.bar .fill { background: rgba(200,170,110,.12); }
.bar.mine .fill { background: rgba(10,200,185,.22); }
.scene-tag { font-family: Cinzel, serif; font-weight: 700; color: var(--lol-gold-1); background: rgba(1,10,19,.85); border: 1px solid var(--lol-gold-4); border-radius: 0; }
.foot .legal { background: rgba(1,10,19,.78); border: 1px solid rgba(120,90,40,.4); border-radius: 0; }
.toast { background: #010a13; border: 1px solid var(--lol-gold-2); border-radius: 0; color: var(--lol-gold-1); }
.region-banner b { font-family: Cinzel, serif; font-weight: 900; }

/* Créditos das imagens */
#credits { max-width: 560px; }
.credits-list { max-height: 50vh; overflow-y: auto; padding-left: 18px; font-size: 13px; color: var(--lol-grey); }
.credits-list li { margin-bottom: 6px; }
.credits-list b { color: var(--lol-gold-1); }
.credits-list a { color: var(--lol-blue); }
.ava[src*="img/players/"] { object-fit: cover; object-position: 50% 20%; }

/* ===== Cabeçalho ao estilo do cliente do LoL (v20) ===== */
.gem-glow { animation: gem-pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gem-pulse { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.25); } }
.logo svg { width: 325px; }
.brand .sub {
  margin: 10px 0 0 30px; font-family: Inter, sans-serif; font-weight: 500; font-size: 15px;
  letter-spacing: .3px; text-transform: none; color: #cdbe91;
}
.top-actions { position: relative; z-index: 2; gap: 14px; }
/* botões redondos com aro duplo dourado */
.icon-btn {
  width: 42px; height: 42px; border: 2px solid var(--lol-gold-3);
  background: radial-gradient(circle at 50% 30%, #23282f, #070b10 70%);
  box-shadow: 0 0 0 2px #0a0e13, 0 0 0 3px var(--lol-gold-5), inset 0 0 0 2px rgba(0,0,0,.6), inset 0 0 10px rgba(0,0,0,.9);
  font-size: 17px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--lol-gold-1); box-shadow: 0 0 0 2px #0a0e13, 0 0 0 3px var(--lol-gold-2), 0 0 14px rgba(200,170,110,.55), inset 0 0 10px rgba(0,0,0,.9); }
/* idioma: pílula com globo e seta, como no cliente */
.icon-btn.lang-btn {
  width: auto; border-radius: 999px; padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px; font-family: Inter, sans-serif; font-weight: 700; font-size: 14px;
}
.icon-btn.lang-btn::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8aa6e' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cellipse cx='12' cy='12' rx='4.2' ry='9.5'/%3E%3Cpath d='M2.5 12h19M4.5 7h15M4.5 17h15'/%3E%3C/svg%3E") center/contain no-repeat;
}
.icon-btn.lang-btn::after {
  content: ""; width: 7px; height: 7px; margin: -4px 0 0 2px;
  border-right: 2px solid var(--lol-gold-2); border-bottom: 2px solid var(--lol-gold-2); transform: rotate(45deg);
}

@media (min-width: 900px) {
  .top { max-width: none; padding: 0 0 0 36px; align-items: flex-start; }
  .top::before { /* filete dourado no topo do ecrã */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; pointer-events: none;
    background: linear-gradient(180deg, rgba(1,10,19,.85), rgba(1,10,19,.5));
    border-bottom: 1px solid rgba(200,170,110,.55);
  }
  .brand { padding-top: 18px; }
  /* baía do canto superior direito, com a borda dourada em diagonal */
  .top-actions {
    align-self: flex-start; padding: 16px 34px 18px 92px; isolation: isolate;
    background: linear-gradient(90deg, var(--lol-gold-4), var(--lol-gold-2) 30%, var(--lol-gold-4));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 64px 100%);
  }
  .top-actions::before {
    content: ""; position: absolute; inset: 0 0 2px 0; z-index: -1;
    background: linear-gradient(180deg, rgba(1,10,19,.96), rgba(9,20,40,.9));
    clip-path: polygon(3px 0, 100% 0, 100% 100%, 66px 100%);
  }
  .top-actions::after { /* losango no canto da diagonal */
    content: ""; position: absolute; left: 58px; bottom: -5px; width: 10px; height: 10px; z-index: 1;
    background: var(--lol-gold-2); transform: rotate(45deg); box-shadow: 0 0 6px rgba(240,230,210,.6);
  }
}

/* ===== Barra de pontos: medalhão da moeda e cristal a brilhar (v21) ===== */
img.stat-ico {
  width: 34px; height: 34px; padding: 3px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2416, #0a0c10 72%);
  box-shadow: 0 0 0 2px var(--lol-gold-3), 0 0 0 3px #0a0e13, 0 0 0 4px var(--lol-gold-5), 0 0 10px rgba(240,200,90,.35);
}
svg.stat-ico { width: 30px; height: 30px; animation: crystal-glow 2.6s ease-in-out infinite; }
@keyframes crystal-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(80,190,255,.6)) drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
  50% { filter: drop-shadow(0 0 9px rgba(120,215,255,1)) drop-shadow(0 0 3px #fff); }
}
.stat .label { font-family: Cinzel, serif; letter-spacing: 1.2px; color: #cdbe91; }
.score-bar .stats { position: relative; }
.score-bar .stat + .stat { border-left: 1px solid transparent; border-image: linear-gradient(180deg, transparent, var(--lol-gold-4), transparent) 1; }
.brand .sub::first-letter { text-transform: uppercase; }
@media (min-width: 900px) { .brand { padding-top: 12px; } .brand .sub { margin-top: 4px; } }
@media (max-width: 480px) { .logo svg { width: 205px; } .brand .sub { margin: 6px 0 0 14px; font-size: 13px; } img.stat-ico { width: 28px; height: 28px; } }

/* ---------- v43: cartão inicial mais pequeno e mini caixa de boas-vindas ---------- */
.intro h2 { font-size: clamp(22px, 5vw, 28px); margin: 4px 0 2px; }
.intro .actions { margin-top: 12px; }
.intro .muted { font-size: 12px; margin: 10px 0 0; }
.btn-start { font-size: 17px; padding: 12px 38px; }
.welcome {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; width: min(320px, calc(100vw - 32px));
  background: linear-gradient(180deg, #121a33, #0b1020); color: var(--text, #f0e6d2);
  border: 1.5px solid #c8aa6e; box-shadow: 0 0 0 1px rgba(200,170,110,.25) inset, 0 14px 34px rgba(0,0,0,.6);
  padding: 14px 16px 12px; font-size: 14px; line-height: 1.4;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease;
}
.welcome.show { opacity: 1; transform: none; }
.welcome-title { font-family: Cinzel, serif; font-weight: 700; color: var(--gold-2); font-size: 15px; margin: 0 22px 8px 0; }
.welcome ul { margin: 0 0 10px; padding-left: 18px; color: #cdbe91; }
.welcome li { margin: 3px 0; }
.welcome-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #cdbe91; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.welcome-x:hover { color: #fff; }
.welcome-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.welcome-ok { padding: 7px 18px; font-size: 14px; }
@media (max-width: 600px) { .welcome { left: 12px; right: 12px; bottom: 12px; width: auto; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .welcome { transition: none; } }
