/* Mata-Mata da Vovó — DiLaura. App de campeonato (estilo SofaScore/FotMob). */

@font-face {
  font-family: 'Brown Holmes';
  src: url('../assets/BrownHolmes.otf') format('opentype'),
       url('../assets/BrownHolmes.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  --laranja: #AC5622; --tijolo: #9D3E21; --mostarda: #B59343; --dourado: #C8A759;
  --carvao: #242423; --creme: #F0E9C6; --blush: #EAD0BB; --terracota: #B4784B;
  --sage: #6C7E5F;

  --bg: #161C18; --surf: #1F2823; --surf-2: #263129; --header: #2C3A2F;
  --line: #36453A; --line-soft: #2A352E;
  --text: #F0E9C6; --soft: #AEB7A2; --mute: #7E8A77;
  --accent: #C8A759; --cta: #AC5622; --cta-h: #C2632A; --hot: #9D3E21;

  --r: 12px; --r-lg: 16px; --maxw: 480px; --tabh: 62px;
  --brand: 'Brown Holmes', 'Inter', sans-serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--ui); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }

.app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
@media (min-width: 520px) { .app { box-shadow: 0 0 80px rgba(0,0,0,.55); } }

.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
.screen.has-tabbar.active { padding-bottom: calc(var(--tabh) + 24px); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1, h2, h3, h4, h5, .brand, .num { font-family: var(--brand); text-transform: lowercase; }
.pad { padding: 16px; }
.scr-title { font-family: var(--brand); font-size: 26px; text-transform: lowercase; color: var(--text); margin-bottom: 14px; }
.scr-title.big { font-size: 36px; line-height: .98; margin-bottom: 6px; }
.scr-kicker { display: block; font-family: var(--brand); font-size: 13px; letter-spacing: 2px; text-transform: lowercase; color: var(--terra); }
.scr-lead { color: var(--soft); font-size: 14px; line-height: 1.5; margin: 4px 0 6px; }
.home-banner { position: relative; height: 210px; background: url('../assets/thumb.jpg') center/cover no-repeat; }
.home-banner-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(to top, var(--bg) 6%, rgba(22,28,24,.35) 55%, rgba(22,28,24,.55)); }
.home-banner-ov .scr-title.big { margin-bottom: 0; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.home-card { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0 8px; }
/* banner de foto reaproveitável (cabeçalho com imagem) */
.scr-banner { position: relative; height: 140px; background-size: cover; background-position: center; }
.scr-banner-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; background: linear-gradient(to top, var(--bg) 8%, rgba(22,28,24,.25) 58%, rgba(22,28,24,.5)); }
.scr-banner .scr-title { margin-bottom: 0; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.scr-banner .scr-kicker { text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.home-card .field { margin-top: 0; }
.pizza-row.famosa { border-color: var(--accent); }
.fama { font-family: var(--ui); font-size: 9px; font-weight: 700; color: var(--carvao); background: var(--accent); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.muted { color: var(--mute); font-size: 13px; background: none; border: none; cursor: pointer; font-family: var(--ui); }
.center { text-align: center; }
.hidden { display: none !important; }
.empty { color: var(--mute); text-align: center; padding: 40px 20px; font-size: 14px; }

/* ---------- CABEÇALHO GLOBAL ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px; background: var(--header); border-bottom: 1px solid var(--line); }
.topbar[hidden] { display: none; }
.tb-logo { height: 26px; width: auto; }
.tb-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(240,233,198,.06); border: 1px solid var(--line); border-radius: 50%; color: var(--creme); cursor: pointer; flex: none; }
.tb-btn svg { width: 20px; height: 20px; }
.tb-btn:active { transform: scale(.94); }
.tb-btn.hidden { visibility: hidden; }
.tb-restart { color: var(--accent); }

/* ---------- CONFRONTO: foto sutil + cor de fundo por fase ---------- */
#scr-game { position: relative; }
#scr-game.active { min-height: 100vh; min-height: 100svh; }
#scr-game::before { content: ""; position: absolute; inset: 0; background: url('../assets/foto1.jpg') center/cover fixed; opacity: .06; z-index: 0; pointer-events: none; }
#scr-game::after { content: ""; position: absolute; inset: 0; background: var(--fase-cor, var(--accent)); opacity: .13; z-index: 0; pointer-events: none; transition: background .5s ease; }
#scr-game > * { position: relative; z-index: 1; }

/* ---------- header do jogo ---------- */
.game-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.fase-label { font-family: var(--brand); font-size: 24px; letter-spacing: .5px; color: var(--fase-cor, var(--accent)); text-transform: lowercase; transition: color .4s; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- HERO / APRESENTAÇÃO ---------- */
.screen.intro.active { display: flex; }
.intro { position: relative; min-height: 100vh; min-height: 100svh; flex-direction: column; justify-content: flex-start; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden; }
.intro::after { content: ""; position: absolute; inset: 0; background: url('../assets/foto2.jpg') center/cover; opacity: .18; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); width: 440px; max-width: 120%; aspect-ratio: 1; background: radial-gradient(circle, rgba(108,126,95,.55) 0%, rgba(108,126,95,.12) 42%, transparent 66%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.intro-foot { position: relative; z-index: 1; flex: none; }
.intro-marca-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--mute); font-size: 13px; }
.intro-marca-foot img { height: 22px; opacity: .9; }
.intro-marca { height: 30px; opacity: .95; margin-bottom: 16px; }
.intro-vovo { width: 188px; max-width: 56vw; margin-top: 26px; filter: drop-shadow(0 16px 28px rgba(0,0,0,.5)); }
.intro-tag { margin-top: 16px; font-family: var(--brand); font-size: 13px; letter-spacing: 2px; text-transform: lowercase; color: var(--carvao); background: var(--accent); border-radius: 999px; padding: 5px 16px; }
.intro-title { font-size: 58px; line-height: .88; letter-spacing: .5px; text-transform: lowercase; margin-top: 14px; color: var(--text); }
.intro-sub { color: var(--soft); font-size: 15px; line-height: 1.5; max-width: 340px; margin: 14px auto 0; }
.intro-sub b { color: var(--text); }
.hero-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-steps span { display: inline-flex; align-items: center; gap: 6px; background: var(--surf); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--soft); }
.hero-steps b { font-family: var(--brand); font-size: 15px; color: var(--accent); }
.btn-big { position: relative; z-index: 1; padding: 18px; font-size: 21px; }

/* ---------- BOTÕES ---------- */
.btn { display: block; width: 100%; padding: 15px; font-family: var(--brand); font-size: 17px; letter-spacing: .8px; text-transform: lowercase; border: none; border-radius: var(--r); cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: var(--creme); }
.btn-primary:hover { background: var(--cta-h); }
.btn-ghost { background: var(--surf); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-red { background: var(--hot); color: var(--creme); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.bottom-cta { position: sticky; bottom: var(--tabh); padding: 12px 16px; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- FORM ---------- */
.field { display: block; font-family: var(--brand); font-size: 14px; letter-spacing: .5px; text-transform: lowercase; color: var(--soft); margin: 4px 0 8px; }
input[type="text"] { width: 100%; padding: 15px; font-size: 16px; font-family: var(--ui); background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
input[type="text"]:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--mute); }
.sec-label { font-family: var(--brand); font-size: 13px; letter-spacing: 1px; text-transform: lowercase; color: var(--mute); margin: 22px 0 10px; }

/* ---------- MÉTODOS ---------- */
.method-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; cursor: pointer; transition: background .15s; }
.method-card:hover { background: var(--surf-2); }
.method-card .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--carvao); font-family: var(--brand); font-size: 22px; text-transform: lowercase; display: flex; align-items: center; justify-content: center; }
.method-card .mc-txt { flex: 1; }
.method-card b { display: block; font-family: var(--brand); font-size: 18px; text-transform: lowercase; letter-spacing: .3px; color: var(--text); }
.method-card small { color: var(--soft); font-size: 12px; }
.method-card .chev { color: var(--mute); font-size: 22px; }

/* ---------- SELEÇÃO MANUAL ---------- */
.counter { position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.counter .scr-title { margin: 0; }
.counter .c { font-family: var(--brand); font-size: 26px; color: var(--accent); }
.cap-group { margin-top: 16px; }
.cap-group h4 { font-size: 14px; letter-spacing: 1px; text-transform: lowercase; color: var(--accent); margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); padding-bottom: 5px; }
.pizza-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 7px; cursor: pointer; }
.pizza-row.sel { border-color: var(--accent); background: var(--surf-2); }
.pizza-row .n { flex: 1; font-size: 14px; }
.pizza-row .n small { display: block; color: var(--mute); font-size: 11px; }
.pizza-row .ck { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); }
.pizza-row.sel .ck { background: var(--accent); border-color: var(--accent); }

/* ---------- INGREDIENTES ---------- */
.ingr-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); cursor: pointer; user-select: none; }
.chip[data-state="1"] { border-color: var(--mostarda); background: rgba(181,147,67,.18); color: var(--dourado); }
.chip[data-state="3"] { border-color: var(--accent); background: var(--accent); color: var(--carvao); font-weight: 700; }
.chip .w { font-size: 10px; opacity: .85; margin-left: 4px; }
.chip.premium { border-color: var(--accent); }
.chip .star { color: var(--accent); margin-right: 5px; font-size: 11px; }
.chip[data-state="3"] .star { color: var(--carvao); }

/* ---------- ESCUDO ---------- */
.crest { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1; flex: none; vertical-align: middle; box-shadow: inset 0 0 0 2px rgba(0,0,0,.14); }

/* tag de capítulo (pílula colorida) */
.cap-tag { display: inline-block; font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: .5px; padding: 4px 13px; border-radius: 999px; margin-top: 4px; }
.vs-card .ingr b { color: var(--accent); font-weight: 400; }

/* ---------- CONFRONTO ---------- */
.stepper { display: flex; gap: 5px; padding: 12px 14px 0; }
.stepper span { flex: 1; text-align: center; font-size: 11px; padding: 7px 0; border-radius: 8px; background: var(--surf); color: var(--mute); text-transform: lowercase; letter-spacing: .3px; }
.stepper span.on { background: var(--fase-cor, var(--accent)); color: var(--carvao); font-weight: 700; transition: background .4s; }
.progress { height: 4px; background: var(--surf); margin: 10px 14px 0; border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--fase-cor, var(--accent)); transition: width .4s ease, background .4s; }
.toque-hint { text-align: center; font-family: var(--brand); text-transform: lowercase; color: var(--text); font-size: 24px; margin: 4px 0 16px; }
.versus { display: grid; gap: 14px; position: relative; }
.versus::before { content: ""; position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 440px; max-width: 130%; aspect-ratio: 1; background: radial-gradient(circle, rgba(108,126,95,.28), transparent 62%); z-index: 0; pointer-events: none; }
.vs-card { position: relative; z-index: 1; background: linear-gradient(165deg, rgba(52,68,56,.72), rgba(31,40,35,.62)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(240,233,198,.12); border-radius: 22px; padding: 24px 18px; text-align: center; cursor: pointer; transition: transform .25s, border-color .15s, opacity .25s, box-shadow .25s; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.vs-card:hover { border-color: rgba(240,233,198,.28); }
.vs-card .crest { width: 88px; height: 88px; font-size: 34px; margin: 0 auto 12px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.14), 0 8px 18px rgba(0,0,0,.35); }
.vs-card .n { font-family: var(--brand); font-size: 28px; letter-spacing: .3px; text-transform: lowercase; }
.vs-card .ingr { font-size: 13px; color: var(--soft); margin-top: 10px; line-height: 1.45; }
.vs-card.winner { border-color: var(--fase-cor, var(--accent)); transform: scale(1.03); box-shadow: 0 0 30px rgba(200,167,89,.4); }
.vs-card.loser { opacity: .3; transform: scale(.95); }
.vs-mid { display: flex; justify-content: center; margin: -16px 0; position: relative; z-index: 3; }
.vs-mid span { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fase-cor, var(--accent)); color: var(--fase-cor, var(--accent)); display: flex; align-items: center; justify-content: center; font-family: var(--brand); font-size: 19px; box-shadow: 0 6px 16px rgba(0,0,0,.45); transition: border-color .4s, color .4s; }

/* ---------- CHAVEAMENTO ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: 12px; }
.bracket { display: flex; gap: 36px; min-width: 1800px; position: relative; }
.bracket-lines { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
.bracket-lines path { stroke: #4a5e4f; stroke-width: 2; fill: none; }
.bcol { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-around; min-width: 190px; gap: 10px; }
.bcol h5 { font-size: 16px; letter-spacing: 1px; color: var(--accent); text-align: center; margin-bottom: 4px; text-transform: lowercase; }
.bmatch { background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.bmatch.live { border-color: var(--accent); }
.bmatch.final { border-color: var(--accent); background: rgba(200,167,89,.08); }
.bslot { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--soft); }
.bslot .crest { width: 22px; height: 22px; font-size: 9px; }
.bslot.win { color: var(--accent); }
.bslot.lose { color: var(--mute); text-decoration: line-through; }

/* ---------- RESULTADO ---------- */
.champ-banner { position: relative; background: var(--accent); color: var(--carvao); border-radius: var(--r-lg); padding: 26px 20px; text-align: center; margin-top: 12px; overflow: hidden; }
.champ-banner .vovo-badge { position: absolute; top: 8px; right: 8px; width: 60px; opacity: .85; }
.champ-banner .tag { font-size: 11px; letter-spacing: 2px; font-weight: 800; opacity: .6; }
.champ-banner .titulo { font-family: var(--brand); font-size: 24px; letter-spacing: 1.5px; margin: 2px 0 8px; text-transform: lowercase; }
.champ-banner .champ-crest { display: flex; justify-content: center; margin: 6px 0; }
.champ-banner .champ-crest .crest { box-shadow: inset 0 0 0 3px rgba(36,36,35,.2); }
.champ-banner .nome { font-family: var(--brand); font-size: 34px; text-transform: lowercase; line-height: 1.02; }
.champ-banner .cap { font-size: 12px; letter-spacing: 1.5px; text-transform: lowercase; opacity: .6; margin-top: 4px; }
.champ-banner .box { background: rgba(36,36,35,.12); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 14px; }
.coroada { text-align: center; color: var(--soft); font-size: 14px; margin: 14px 0; }
.coroada b { color: var(--accent); }
.row-btns { display: grid; gap: 10px; }
.caminho { margin-top: 24px; }
.caminho h4 { font-size: 19px; letter-spacing: .5px; color: var(--accent); margin-bottom: 8px; text-transform: lowercase; }
.caminho-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.caminho-item .f { font-size: 11px; letter-spacing: .5px; text-transform: lowercase; color: var(--accent); width: 64px; }
.caminho-item .crest { width: 24px; height: 24px; font-size: 9px; }

/* ---------- RANKING (tabela de liga) ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; font-family: var(--brand); font-size: 14px; letter-spacing: .3px; text-transform: lowercase; padding: 9px 0; border-radius: 10px; background: var(--surf); color: var(--soft); cursor: pointer; }
.tab.active { background: var(--accent); color: var(--carvao); }
table.rank { width: 100%; border-collapse: collapse; }
table.rank td { padding: 11px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; }
table.rank td.pos { font-family: var(--brand); font-size: 18px; width: 30px; color: var(--mute); text-align: center; }
table.rank td.vit { font-family: var(--brand); font-size: 20px; color: var(--accent); text-align: right; width: 48px; }
table.rank tr.top1 td.pos { color: #E7C66A; }
table.rank tr.top2 td.pos { color: #CBD0BE; }
table.rank tr.top3 td.pos { color: var(--terracota); }
.rank-pizza { display: inline-flex; align-items: center; gap: 10px; }
.rank-pizza .crest { width: 36px; height: 36px; font-size: 13px; }
.rank-pizza small { color: var(--mute); font-size: 11px; }
.rank-nome { font-family: var(--brand); text-transform: lowercase; font-size: 18px; line-height: 1.05; color: var(--text); }
.rank-row { cursor: pointer; }
.rank-row:hover td { background: var(--surf); }
.rank-det td { padding: 0 4px 12px; border: none; }
.det-box { background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.det-ingr { font-size: 13px; color: var(--soft); line-height: 1.5; }
.det-ingr b { color: var(--accent); font-weight: 400; }
.det-pedir { margin-top: 10px; padding: 11px; font-size: 15px; }
.mural { margin-top: 24px; }
.mural h4 { font-size: 19px; letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: lowercase; }
.mural .badge { font-family: var(--ui); font-size: 9px; background: var(--accent); color: var(--carvao); padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; font-weight: 700; }
.mural-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--soft); }
.mural-item .crest { width: 26px; height: 26px; font-size: 10px; }
.mural-item b { color: var(--text); }

/* ---------- BARRA DE ABAS ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--maxw); display: flex; background: rgba(22,28,24,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabbar[hidden] { display: none; }

/* ---------- INTERLÚDIO (fim de fase) ---------- */
.interludio { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; animation: fade .3s ease; }
.interludio.hidden { display: none; }
.il-inner { width: 100%; max-width: 360px; }
.il-kicker { font-family: var(--brand); font-size: 14px; letter-spacing: 2px; text-transform: lowercase; color: var(--terra); }
.il-concluida { font-size: 54px; color: var(--accent); line-height: .95; margin: 4px 0 26px; }
.il-stat { background: var(--surf); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
.il-vivas { font-family: var(--brand); font-size: 64px; color: var(--text); line-height: 1; display: block; }
.il-stat small { color: var(--soft); font-size: 13px; }
.il-next { margin-bottom: 14px; }
.il-prox-k { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }
.il-prox { font-size: 42px; color: var(--text); line-height: 1; }
.il-zoeira { color: var(--terra); font-size: 15px; margin-bottom: 24px; }
.il-btn { max-width: 280px; margin: 0 auto; }
.il-bracket { width: 100%; margin: 2px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.ilm { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 14px; }
.ilm .crest { width: 26px; height: 26px; font-size: 15px; }
.ilm-a, .ilm-b { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.ilm-a { justify-content: flex-end; text-align: right; }
.ilm-b { justify-content: flex-start; }
.ilm-x { color: var(--terra); font-family: var(--brand); }
.interludio.final { background: radial-gradient(circle at 50% 28%, #36463B, var(--bg) 72%); }
.interludio.final .il-kicker { color: var(--accent); font-size: 16px; }
.interludio.final .il-concluida { color: var(--terra); font-size: 32px; }
.interludio.final .il-prox { color: var(--accent); font-size: 58px; }
.interludio.final .il-vivas { color: var(--accent); }

/* ---------- TELA FINAL (resultado) ---------- */
.res-hero { text-align: center; padding: 6px 0 2px; }
.res-trophy { width: 66px; height: 66px; border-radius: 50%; background: rgba(200,167,89,.14); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 2px auto 10px; }
.res-trophy svg { width: 34px; height: 34px; }
.res-kicker { display: block; font-family: var(--brand); font-size: 15px; letter-spacing: 2px; text-transform: lowercase; color: var(--terra); }
.res-name-box { background: linear-gradient(160deg, var(--dourado), var(--mostarda)); color: var(--carvao); border-radius: 18px; padding: 26px 18px; font-family: var(--brand); font-size: 48px; line-height: 1; text-transform: lowercase; margin: 10px 0; box-shadow: 0 12px 30px rgba(200,167,89,.25); }
.res-meta { margin-bottom: 10px; }
.res-ingr { font-size: 13px; color: var(--soft); line-height: 1.5; margin: 0 auto; max-width: 340px; }
.res-ingr b { color: var(--accent); font-weight: 400; }
.res-frase { position: relative; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-align: center; color: var(--text); font-size: 16px; line-height: 1.45; margin: 18px 0; }
.res-frase b { color: var(--accent); }
.res-rank { display: block; color: var(--mute); font-size: 12px; margin-top: 6px; }
.res-card { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.res-card h4 { font-size: 18px; color: var(--accent); margin-bottom: 6px; }
.res-card .caminho-item:last-child { border-bottom: none; padding-bottom: 0; }
.res-cupom { background: rgba(200,167,89,.08); border: 1px dashed var(--accent); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 18px; }
.cupom-top { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.cupom-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.cupom-code:active { transform: scale(.99); }
.cupom-val { font-family: var(--brand); text-transform: lowercase; font-size: 26px; letter-spacing: 2px; color: var(--text); }
.cupom-copy { font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--carvao); background: var(--accent); padding: 6px 12px; border-radius: 8px; }
.cupom-note { font-size: 12px; color: var(--soft); margin-top: 8px; }
.tab-btn { flex: 1; background: none; border: none; cursor: pointer; color: var(--mute); padding: 9px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--ui); }
.tab-btn svg { width: 23px; height: 23px; }
.tab-btn span { font-size: 11px; }
.tab-btn.active { color: var(--accent); }

/* ---------- UTIL ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 20px); transform: translateX(-50%); background: var(--surf-2); color: var(--text); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); font-size: 14px; z-index: 100; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
