:root{
  --bg:#081522;--panel:#10263f;--panel2:#173653;--text:#f8fbff;--muted:#a9bed0;
  --accent:#ffcf33;--accent2:#f59e0b;--good:#30c878;--bad:#ef5d68;--line:#2c4963;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:
radial-gradient(circle at top,#173653 0,#081522 48%);color:var(--text);
font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;min-height:100vh}
button,select{font:inherit}.shell{width:min(100%,720px);margin:auto;padding:18px 16px 36px}
.hero{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.brand{display:flex;align-items:center;gap:12px}.paw{width:54px;height:54px;border-radius:18px;
display:grid;place-items:center;background:var(--accent);color:#10263f;font-weight:1000;font-size:26px;
box-shadow:0 8px 28px #0005}.eyebrow{margin:0 0 3px;color:var(--accent);text-transform:uppercase;
font-size:12px;font-weight:900;letter-spacing:.12em}.hero h1{margin:0;font-size:26px}.subtitle{margin:3px 0 0;color:var(--muted);font-size:14px}
.screen{display:none}.screen.active{display:block}.tape{margin:20px auto 18px;max-width:420px;background:#dce5e9;
border-radius:20px;padding:16px;color:#11263b;box-shadow:0 18px 45px #0006;border:5px solid #edf4f6}
.tape-label{background:#fff4c5;border-radius:10px;text-align:center;padding:10px}.tape-label span{display:block;
font-size:11px;font-weight:900;letter-spacing:.18em}.tape-label strong{font-size:23px}.reels{display:flex;
justify-content:space-around;padding:18px 34px 8px}.reels i{display:block;width:72px;height:72px;border-radius:50%;
background:radial-gradient(circle,#dce5e9 0 16%,#172d43 17% 25%,#eef4f5 26% 45%,#172d43 46% 53%,#dce5e9 54%);
border:5px solid #a9bac2}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.stats article{background:#10263fcc;border:1px solid var(--line);border-radius:16px;padding:14px;text-align:center}
.stats small{color:var(--muted);display:block}.stats strong{font-size:19px}.menu,.result-actions{display:grid;gap:10px}
button{border:0;border-radius:14px;padding:14px 16px;font-weight:900;cursor:pointer}
.primary{background:var(--accent);color:#10263f}.secondary{background:var(--panel2);color:var(--text);border:1px solid var(--line)}
.ghost{background:transparent;color:var(--text);border:1px solid var(--line)}.hidden{display:none!important}
.category-box{margin-top:18px;background:#10263fcc;border:1px solid var(--line);border-radius:16px;padding:16px}
.category-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.category-head strong{display:block}.category-head small{display:block;color:var(--muted);margin-top:4px}.category-tools{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.mini-btn{padding:8px 10px;border-radius:10px;background:#173653;color:#fff;border:1px solid #355671;font-size:12px}.category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.category-check{display:flex!important;align-items:center;gap:9px;margin:0!important;padding:10px 11px;border-radius:12px;background:#081b2b;border:1px solid var(--line);font-weight:700!important;cursor:pointer}.category-check input{width:18px;height:18px;accent-color:var(--accent);flex:0 0 auto}.category-check span{min-width:0}.category-status{color:var(--muted);font-size:13px;margin:2px 0 10px}.category-box .secondary:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:520px){.category-head{display:block}.category-tools{justify-content:flex-start;margin-top:10px}.category-list{grid-template-columns:1fr}}
.legal-note{font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin:18px 8px}
.game-top{display:flex;gap:12px;align-items:center}.icon-btn{width:48px;height:48px;padding:0;background:var(--panel2);color:#fff;font-size:25px}
.progress-wrap{flex:1}.progress-meta{display:flex;justify-content:space-between;color:var(--muted);font-weight:800;font-size:14px}
.progress{height:9px;background:#203b52;border-radius:20px;overflow:hidden;margin-top:7px}.progress i{display:block;height:100%;
width:0;background:var(--accent);transition:.25s}.question-card{margin-top:24px;background:#10263fe8;border:1px solid var(--line);
border-radius:22px;padding:20px;min-height:430px}.badges{display:flex;gap:8px;flex-wrap:wrap}.badge{background:var(--accent);
color:#10263f;border-radius:100px;padding:6px 10px;font-size:12px;font-weight:900}.badge.muted{background:#284861;color:#d9e8f2}
.question-card h2{font-size:24px;line-height:1.3;margin:22px 0}.answers{display:grid;gap:10px}.answer{background:#173653;color:#fff;
border:1px solid #355671;text-align:left;display:flex;gap:12px;align-items:center}.answer b{width:30px;height:30px;border-radius:9px;
display:grid;place-items:center;background:#0a2032;color:var(--accent)}.answer.correct{background:#164c37;border-color:var(--good)}
.answer.wrong{background:#592d35;border-color:var(--bad)}.answer:disabled{cursor:default}.feedback{min-height:24px;text-align:center;font-weight:900}
.result-card{text-align:center;background:#10263fe8;border:1px solid var(--line);border-radius:24px;padding:28px 20px}
.result-emoji{font-size:72px}.result-card h2{font-size:30px;margin:8px 0}.big-score{font-size:27px;font-weight:1000;color:var(--accent)}
.result-card #resultText{color:var(--muted);line-height:1.5}.result-actions{margin-top:24px}
@media(max-width:430px){.hero h1{font-size:22px}.subtitle{font-size:12px}.paw{width:48px;height:48px}.question-card h2{font-size:21px}
.stats article{padding:11px 6px}.stats strong{font-size:16px}}

/* Dica clicável exibida ao fim de cada fase */
.kin-tip{margin-top:22px;padding:18px;text-align:left;background:#081b2b;border:1px solid var(--line);border-radius:18px}
.kin-tip h3{margin:4px 0 8px;font-size:20px}.kin-tip p:not(.eyebrow){margin:0;color:var(--muted);line-height:1.5}
.tip-link{display:block;margin-top:14px;padding:14px 16px;border-radius:14px;background:var(--accent);color:#10263f;text-align:center;text-decoration:none;font-weight:900}
.tip-link:focus-visible{outline:3px solid #fff;outline-offset:3px}

.phase-card{min-height:430px;display:grid;place-content:center;text-align:center;background:#10263fe8;border:1px solid var(--line);border-radius:24px;padding:28px 20px}
.phase-card h2{margin:8px 0;font-size:48px;color:var(--accent);letter-spacing:.05em}.phase-card p:last-child{margin:0;color:var(--muted);font-weight:800}
.progress-meta{gap:10px}.progress-meta #counter{margin-left:auto}

/* V101: símbolo oficial da pata K */
.paw{object-fit:cover;display:block;background:#000;border:1px solid rgba(255,205,45,.35);padding:0;}

/* V129 — grupos expansíveis para celular */
.category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.category-group{background:#081b2b;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.category-group-summary{display:flex;align-items:center;gap:9px;padding:11px;cursor:pointer;font-weight:800;list-style:none}
.category-group-summary::-webkit-details-marker{display:none}
.category-group-summary .group-check{width:18px;height:18px;accent-color:var(--accent);flex:0 0 auto}
.group-name{flex:1}
.group-arrow{color:var(--muted);transition:transform .18s ease}
.category-group[open] .group-arrow{transform:rotate(180deg)}
.category-children{display:grid;gap:7px;padding:0 8px 8px}
.category-children .category-check{background:#10263f}
@media(max-width:520px){
  .category-list{grid-template-columns:1fr}
  .category-group-summary{min-height:46px}
}

/* V129 — seleção compacta com Música e Esportes expansíveis */
.category-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.category-group{
  border:1px solid var(--line);
  border-radius:12px;
  background:#081b2b;
  overflow:hidden;
}
.category-group-head{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
}
.group-check{
  width:18px;
  height:18px;
  accent-color:var(--accent);
  flex:0 0 auto;
}
.group-label{
  flex:1;
  font-weight:800;
  cursor:pointer;
}
.group-toggle{
  width:38px;
  height:34px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#163652;
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}
.category-children{
  display:grid;
  gap:7px;
  padding:0 8px 8px;
}
.category-children.hidden{
  display:none;
}
.category-children .category-check{
  background:#10263f;
}
@media(max-width:520px){
  .category-list{grid-template-columns:1fr}
}

/* V129 — corrige altura dos grupos quando apenas um está aberto */
.category-list{
  align-items:start;
}
.category-group{
  align-self:start;
}

/* V129 — Música > Nacional / Internacional */
.music-subgroup{
  display:grid;
  gap:7px;
}
.music-subgroup + .music-subgroup{
  margin-top:6px;
  padding-top:8px;
  border-top:1px solid var(--line);
}
.music-subgroup-title{
  font-size:.82rem;
  font-weight:900;
  opacity:.88;
  padding:2px 4px;
}

/* V129 — botão de instalação do K-IN sempre visível */
.install-kin-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:10px 18px;
  border:0;
  border-radius:14px;
  background:linear-gradient(180deg,#2f91ff 0%,#1569d6 100%);
  color:#fff;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 4px 10px rgba(0,0,0,.22);
  cursor:pointer;
}
.install-kin-btn:active{
  transform:translateY(1px);
}
.install-kin-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:22px;
  line-height:1;
}
.install-kin-text{
  color:#fff;
}
@media(max-width:520px){
  .install-kin-btn{
    width:100%;
  }
}

/* V129 — botão instalar compacto */
.install-kin-btn-compact{
  width:auto !important;
  min-height:38px !important;
  padding:6px 10px !important;
  gap:7px !important;
  border-radius:10px !important;
  font-size:.88rem !important;
}
.install-kin-btn-compact .install-kin-icon{
  width:26px !important;
  height:26px !important;
  border-radius:8px !important;
  font-size:16px !important;
}
.install-kin-btn-compact .install-kin-text{
  font-weight:800;
}
@media(max-width:520px){
  .install-kin-btn-compact{
    width:auto !important;
  }
}


/* V129 — ajudas da fase */
.lifelines{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.lifeline-btn{
  padding:10px 8px;
  border-radius:11px;
  background:#173653;
  color:var(--text);
  border:1px solid #355671;
  font-size:.86rem;
}
.lifeline-btn:disabled{
  opacity:.38;
  cursor:default;
}
.answer.eliminated{
  opacity:.22;
  text-decoration:line-through;
}
.hint-text{
  min-height:20px;
  margin:9px 2px 0;
  color:var(--accent);
  font-size:.86rem;
  font-weight:800;
  text-align:center;
}

/* V129 — oferta visual após as respostas */
.offer-banner{
  margin-top:12px;
  border:1px solid #355671;
  border-radius:14px;
  overflow:hidden;
  background:#f7f9fc;
}
.offer-banner a{
  display:grid;
  grid-template-columns:112px 1fr;
  align-items:center;
  min-height:92px;
  color:#10263f;
  text-decoration:none;
}
.offer-banner img{
  width:112px;
  height:92px;
  object-fit:contain;
  background:#fff;
}
.offer-copy{
  min-width:0;
  padding:10px 12px;
}
.offer-copy small{
  display:block;
  color:#6b3fa0;
  font-weight:900;
  text-transform:uppercase;
  font-size:.68rem;
}
.offer-copy strong{
  display:block;
  margin:4px 0 5px;
  font-size:.9rem;
  line-height:1.2;
}
.offer-copy span{
  display:inline-block;
  color:#6b3fa0;
  font-size:.78rem;
  font-weight:900;
}
@media(max-width:430px){
  .lifeline-btn{font-size:.78rem;padding:9px 5px}
  .offer-banner a{grid-template-columns:90px 1fr;min-height:78px}
  .offer-banner img{width:90px;height:78px}
  .offer-copy{padding:8px 9px}
  .offer-copy strong{font-size:.8rem}
}

/* V140 — banner arrastável no celular */
.offer-banner{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.offer-banner img{pointer-events:none}


/* V180 — menu nativo corrigido */
.filter-hidden-leaf{display:none!important}
.category-group-no-toggle .category-group-head{padding-right:11px}
.category-group-no-toggle .group-label{cursor:pointer}
.category-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
.category-group{width:100%;min-width:0;box-sizing:border-box}
.category-group-head{min-height:48px;box-sizing:border-box}
.category-children{grid-column:1/-1}
@media(max-width:600px){
  .category-list{grid-template-columns:1fr!important}
}

/* V185 — perfil do jogador e ranking */
.community-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.ranking-invite{margin:14px 0 2px;padding:13px;border:1px solid #355671;border-radius:14px;background:rgba(255,255,255,.045);display:flex;align-items:center;justify-content:space-between;gap:12px}
.ranking-invite div{display:grid;gap:3px;min-width:0}.ranking-invite small{font-size:.7rem;text-transform:uppercase;font-weight:900;color:var(--accent)}.ranking-invite strong{font-size:.96rem}.ranking-invite span{font-size:.78rem;color:var(--muted);line-height:1.35}.ranking-invite button{flex:0 0 auto}
.kin-dialog{width:min(92vw,520px);border:0;padding:0;border-radius:18px;background:transparent;color:var(--text)}
.kin-dialog::backdrop{background:rgba(2,9,16,.78);backdrop-filter:blur(3px)}
.kin-dialog-card{position:relative;margin:0;padding:22px;border:1px solid #355671;border-radius:18px;background:#10263f;color:var(--text);box-shadow:0 22px 70px rgba(0,0,0,.45)}
.kin-dialog-card h2{margin:3px 0 7px}.dialog-copy{margin:0 0 15px;color:var(--muted);font-size:.9rem;line-height:1.45}.dialog-close{position:absolute;right:12px;top:10px;background:transparent;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.kin-dialog-card label{display:grid;gap:6px;margin:12px 0;font-size:.82rem;font-weight:800}.kin-dialog-card label span{font-weight:500;color:var(--muted)}
.kin-dialog-card input[type="text"],.kin-dialog-card input:not([type]){width:100%;box-sizing:border-box;border:1px solid #355671;border-radius:11px;background:#0a1d30;color:#fff;padding:12px;font:inherit;outline:none}.kin-dialog-card input:focus{border-color:var(--accent)}
.consent-line{grid-template-columns:auto 1fr!important;align-items:start;gap:9px!important;font-weight:500!important}.consent-line input{margin-top:2px}
.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.dialog-actions button{flex:1 1 150px}.dialog-status{margin:12px 0 0;color:var(--muted);font-size:.82rem}.ranking-list{list-style:none;padding:0;margin:14px 0;display:grid;gap:8px}.ranking-row{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;padding:10px 11px;border:1px solid #2c4963;border-radius:12px;background:#0c2136}.ranking-pos{font-weight:950;color:var(--accent);text-align:center}.ranking-player{min-width:0}.ranking-player strong,.ranking-player span{display:block}.ranking-player strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-player span{font-size:.72rem;color:var(--muted)}.ranking-points{text-align:right;font-weight:900}.ranking-points small{display:block;color:var(--muted);font-size:.68rem;font-weight:600}
@media(max-width:520px){.community-actions{grid-template-columns:1fr 1fr}.ranking-invite{align-items:stretch;flex-direction:column}.ranking-invite button{width:100%}.kin-dialog-card{padding:19px 16px}.ranking-row{grid-template-columns:30px 1fr auto}}
