/* Yes, It’s Christmas! — estilos. Mobile-first. Paleta da arte aprovada. */
:root {
  --cream: #f6ecd0;
  --cherry: #8b1a22;
  --cherry-dark: #6d1219;
  --green: #2f5d3a;
  --yes-yellow: #f6b800;
  --ink: #2a2626;
  --gray: #5f5a57;
  --line: #e3d9bd;
  --focus: #0b3d91;
  --font-title: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font-text); font-size: 1rem; line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .kicker, .btn, .count-pill { font-family: var(--font-title); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff;
  padding: .6rem .9rem; border-radius: .5rem; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Faixa de prévia ---------- */
.banner {
  background: #fff7dc; border-bottom: 2px solid var(--yes-yellow); color: var(--ink);
  font-size: .8125rem; line-height: 1.35; padding: .5rem .9rem; text-align: center;
}
.banner strong { font-family: var(--font-title); }
.banner:empty { display: none; }

/* ---------- Casa e janelas ---------- */
.stage { padding: .5rem .5rem 0; }
.house {
  position: relative; width: min(100%, 560px); margin: 0 auto;
  aspect-ratio: 1086 / 1448; user-select: none; -webkit-user-select: none;
}
.house-img { display: block; width: 100%; height: auto; }
.windows { position: absolute; inset: 0; }

.win {
  position: absolute; transform: translate(-50%, -50%);
  padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 46% 46% 3% 3% / 32% 32% 3% 3%;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* área de toque mínima de 44px, mesmo quando a janela desenhada é menor */
.win::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
.win:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; z-index: 3; }

.win-fx { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.win-badge {
  position: absolute; pointer-events: none; display: grid; place-items: center;
  left: 50%; top: 3%; transform: translateX(-50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%;
}
.win-badge svg { width: 72%; height: 72%; display: block; }

/* FECHADA / apagada (padrão) — escurece levemente; o número impresso continua legível */
.win.is-locked .win-fx { background: rgba(28, 14, 14, .26); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.win.is-locked .win-badge { background: rgba(42, 38, 38, .92); color: #fff; }

/* DISPONÍVEL — aberta e iluminada: miolo vermelho (número legível) e luz quente nas bordas */
.win.is-available .win-fx {
  background: radial-gradient(ellipse at 50% 55%, rgba(139, 26, 34, 0) 34%, rgba(255, 196, 64, .55) 70%, rgba(255, 232, 140, .95) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 170, .95), 0 0 9px 3px rgba(255, 200, 60, .8);
  animation: glow 2.6s ease-in-out infinite;
}
.win.is-available .win-badge { background: var(--yes-yellow); color: var(--ink); }

/* CONCLUÍDA — aberta, luz suave e presente */
.win.is-done .win-fx {
  background: radial-gradient(ellipse at 50% 55%, rgba(139, 26, 34, 0) 36%, rgba(255, 214, 120, .42) 74%, rgba(255, 238, 170, .85) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 180, .85), 0 0 6px 2px rgba(255, 214, 110, .55);
}
.win.is-done .win-badge { background: var(--green); color: #fff; width: 34%; border-radius: 14%; }

@media (hover: hover) {
  .win.is-available:hover .win-fx, .win.is-done:hover .win-fx { filter: brightness(1.12); }
  .win.is-locked:hover .win-fx { background: rgba(28, 14, 14, .32); }
}
.win.nudge { animation: nudge .35s; }

@keyframes glow { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, -50%); } 30% { transform: translate(calc(-50% - 3px), -50%); } 65% { transform: translate(calc(-50% + 3px), -50%); } }

/* ---------- Resumo ---------- */
.summary { max-width: 560px; margin: .75rem auto 0; padding: 0 1rem calc(2rem + var(--safe-b)); text-align: center; }
.progress-text { margin: 0 0 .4rem; font-family: var(--font-title); font-weight: 700; }
progress { width: 100%; height: .75rem; accent-color: var(--cherry); }
.legend { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: .75rem 0 1rem; font-size: .875rem; color: var(--gray); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend-icon { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.legend-icon svg { width: 70%; height: 70%; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .65rem 1.25rem; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 1rem; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { background: var(--cream); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.btn-primary:hover { background: var(--cherry-dark); }
.btn-primary[disabled]:hover { background: var(--cherry); }
.count-pill { background: #fff; color: var(--cherry); border-radius: 999px; padding: .05rem .6rem; font-size: .875rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1rem + var(--safe-b)); transform: translate(-50%, 140%);
  max-width: min(92vw, 420px); background: var(--ink); color: #fff; padding: .75rem 1.1rem;
  border-radius: .9rem; font-size: .95rem; text-align: center; z-index: 60;
  transition: transform .25s ease; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* ---------- Diálogos (folha) ---------- */
.sheet {
  border: 0; padding: 0; color: var(--ink); background: #fff;
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; inset: 0;
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(42, 38, 38, .55); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .9rem .6rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--cream);
}
.kicker { margin: 0; font-weight: 700; font-size: .9rem; color: var(--cherry); letter-spacing: .02em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.1rem calc(1.5rem + var(--safe-b)); -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) {
  .sheet { width: min(92vw, 600px); height: auto; max-height: 90dvh; margin: auto; inset: 0; border-radius: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
}

.sheet-title { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .6rem; font-weight: 800; }
.sheet-title:focus { outline: none; }
.type-tag {
  display: inline-block; margin: 0 0 .5rem; padding: .15rem .7rem; border-radius: 999px;
  background: var(--yes-yellow); color: var(--ink); font-family: var(--font-title); font-weight: 700; font-size: .8rem;
}
.prompt { font-size: 1.05rem; margin: 0 0 1rem; }
.note { font-size: .85rem; color: var(--gray); margin: .75rem 0 0; }

.starters { margin: 0 0 1rem; padding: .7rem .9rem; background: var(--cream); border-radius: .8rem; border-left: 5px solid var(--yes-yellow); }
.starters p { margin: .15rem 0; font-weight: 600; }

/* áudio pendente */
.audio-box { margin: 0 0 1rem; padding: .8rem .9rem; border: 2px dashed var(--gray); border-radius: .8rem; }
.audio-box .audio-status { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .5rem; font-weight: 600; }
.audio-box .audio-status svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.transcript { margin: .6rem 0 0; padding: .6rem .8rem; background: var(--cream); border-radius: .6rem; }
.transcript .label { display: block; font-size: .8rem; font-weight: 700; color: var(--gray); margin-bottom: .2rem; }
.transcript p { margin: .2rem 0; white-space: pre-line; font-weight: 600; }
.audio-box audio { width: 100%; margin: .3rem 0; }

/* opções (quiz/áudio/descoberta 1) */
fieldset.options { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.options legend { font-weight: 700; margin-bottom: .4rem; }
.option { position: relative; display: block; margin: 0 0 .6rem; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option .opt-box {
  display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .65rem .9rem;
  border: 2px solid var(--line); border-radius: .9rem; background: #fff; font-weight: 600;
}
.option .letter { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--cream); font-family: var(--font-title); font-weight: 700; }
.option input:checked + .opt-box { border-color: var(--cherry); background: #fff3ef; box-shadow: inset 0 0 0 1px var(--cherry); }
.option input:focus-visible + .opt-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.option input:disabled { cursor: default; }
.option.is-right .opt-box { border-color: var(--green); background: #eef6ee; }
.option.is-wrong .opt-box { border-color: var(--cherry); background: #fdeeee; }
.option .mark { margin-left: auto; font-weight: 700; font-size: .85rem; }

/* ordenar */
.order-label { font-weight: 700; margin: 0 0 .35rem; }
.order-line, .order-bank { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 56px; padding: .6rem; border-radius: .9rem; margin: 0 0 .9rem; list-style: none; }
.order-line { border: 2px dashed var(--gray); background: #fffdf5; }
.order-bank { background: var(--cream); }
.order-line li, .order-bank li { display: contents; }
.token { min-height: 48px; min-width: 48px; padding: .5rem 1rem; border-radius: .8rem; border: 2px solid var(--ink); background: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1rem; cursor: pointer; touch-action: manipulation; }
.token:hover { background: var(--cream); }
.order-line .token { background: var(--yes-yellow); }
.order-empty { color: var(--gray); font-size: .9rem; align-self: center; }
.order-preview { margin: -.4rem 0 .9rem; font-weight: 600; color: var(--gray); min-height: 1.5em; }

/* ações, pista, feedback */
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }
.hint-btn { background: none; border: 0; padding: .5rem 0; min-height: 44px; color: var(--cherry); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hint { margin: 0 0 1rem; padding: .6rem .8rem; background: #fff7dc; border-radius: .6rem; }
.feedback { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: .9rem; background: #f4f4f1; }
.feedback.is-right { background: #eef6ee; border-left: 5px solid var(--green); }
.feedback.is-wrong { background: #fdf0ee; border-left: 5px solid var(--cherry); }
.feedback .verdict { margin: 0 0 .3rem; font-family: var(--font-title); font-weight: 800; }
.feedback p { margin: .2rem 0; }
.extra { margin: 0 0 1rem; padding: .8rem 1rem; border: 2px solid var(--yes-yellow); border-radius: .9rem; }
.extra .label { display: block; font-family: var(--font-title); font-weight: 700; font-size: .85rem; margin-bottom: .2rem; }
.done-note { margin: 0 0 1rem; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: .4rem; }
.done-note svg { width: 22px; height: 22px; }

/* recompensa */
.reward { text-align: center; padding: 1rem; border-radius: 1rem; background: var(--cream); margin: 0 0 1rem; position: relative; overflow: hidden; }
.reward .reward-text { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; margin: .4rem 0; }
.sticker-img { width: 168px; max-width: 60%; aspect-ratio: 1; border-radius: 1rem; background: #fff; display: block; margin: 0 auto; }
.sticker-name { margin: 0; font-weight: 700; }
.sticker-tag { display: inline-block; margin: .2rem 0 0; font-size: .75rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--gray); color: var(--gray); }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 10px; height: 10px; background: var(--yes-yellow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.5); opacity: .4; } 50% { transform: scale(1.3); opacity: 1; } }

.revisit { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.revisit .btn { min-height: 44px; padding: .4rem .9rem; font-size: .9rem; }

/* coleção */
.col-summary { margin: 0 0 1rem; font-weight: 600; }
.col-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (min-width: 420px) { .col-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .col-grid { grid-template-columns: repeat(5, 1fr); } }
.slot { text-align: center; font-size: .78rem; line-height: 1.25; }
.slot .slot-art { width: 100%; aspect-ratio: 1; border-radius: .9rem; display: grid; place-items: center; overflow: hidden; background: #fff; border: 2px solid var(--line); }
.slot.have .slot-art { border-color: var(--yes-yellow); }
.slot .slot-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.empty .slot-art { background: var(--cream); color: var(--gray); font-family: var(--font-title); font-weight: 700; border-style: dashed; }
.slot .slot-name { display: block; margin-top: .25rem; font-weight: 700; }
.slot .slot-kind { display: block; color: var(--gray); }

.noscript { padding: 1rem; background: #fff7dc; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sparkles { display: none; }
}

/* Janelas 13, 19 e 25 têm um enfeite impresso (estrela/lampião) no topo central: o selo vai para o canto */
.win[data-day="13"] .win-badge, .win[data-day="19"] .win-badge, .win[data-day="25"] .win-badge { left: 82%; top: 8%; }

/* ================= V3: percursos, exercícios ================= */
.step-h { font-family: var(--font-title); font-size: .95rem; letter-spacing: .03em; text-transform: none; color: var(--cherry); margin: 1.1rem 0 .35rem; font-weight: 800; }
.paths { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 0 0 .5rem; }
@media (min-width: 420px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path-btn { min-height: 52px; padding: .5rem .7rem; border-radius: .9rem; border: 2px solid var(--line); background: #fff; font-family: var(--font-title); font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--ink); touch-action: manipulation; }
.path-btn[aria-pressed="true"] { border-color: var(--cherry); background: #fff3ef; box-shadow: inset 0 0 0 1px var(--cherry); }
.path-btn::after { content: ""; }
.path-btn[aria-pressed="true"]::before { content: "✓ "; }
.item { margin: 0 0 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffdf8; }
.item-n { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--gray); }
.cloze-prompt, .prod-prompt { display: block; font-weight: 600; margin: 0 0 .5rem; }
.cloze-input, .prod-input { display: block; width: 100%; margin-top: .5rem; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: .8rem; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.prod-input { resize: vertical; min-height: 5.5rem; margin-top: 0; }
.cloze-input:focus-visible, .prod-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.chip { min-height: 44px; padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.chip:hover { background: var(--cream); }
.model { margin: .6rem 0 0; padding: .7rem .9rem; border-radius: .8rem; background: var(--cream); border-left: 5px solid var(--yes-yellow); }
.model .label { display: block; font-size: .8rem; font-weight: 700; color: var(--gray); margin-bottom: .2rem; }
.model p { margin: .25rem 0; }
.model-text { font-weight: 700; }
.takeaway { font-weight: 600; padding: .6rem .8rem; background: #eef6ee; border-radius: .7rem; }
.path[hidden] { display: none !important; }

/* ================= V3: stickers e raridades ================= */
.sticker-frame { position: relative; isolation: isolate; width: 200px; max-width: 70%; aspect-ratio: 1; margin: 0 auto; }
.sticker-frame .sticker-pic { width: 100%; height: 100%; object-fit: contain; display: block; }
.slot-art .sticker-frame { width: 100%; max-width: none; }
.slot.have .slot-art { background: #fff; }
.sheen { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: var(--m); mask-image: var(--m); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
/* Rare: holográfico discreto, segue a silhueta do adesivo */
.rarity-rare .sheen {
  background: linear-gradient(115deg, rgba(255, 90, 160, 0) 18%, rgba(255, 90, 160, .32) 30%, rgba(80, 200, 255, .34) 42%, rgba(130, 255, 150, .30) 54%, rgba(255, 225, 90, .32) 66%, rgba(255, 90, 160, 0) 80%);
  background-size: 260% 260%; background-position: 50% 50%; mix-blend-mode: normal;
  animation: holo 7s ease-in-out infinite;
}
/* Legendary: dourado, brilho suave */
.rarity-legendary { filter: drop-shadow(0 0 10px rgba(246, 184, 0, .65)); }
.rarity-legendary .sheen {
  background: linear-gradient(110deg, rgba(255, 240, 170, 0) 30%, rgba(255, 232, 120, .42) 46%, rgba(255, 240, 170, 0) 62%);
  background-size: 250% 100%; background-position: 40% 0; mix-blend-mode: normal;
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes holo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .sheen { animation: none !important; } }

/* Acesso OTP: mesmos tokens visuais do calendário. */
.access-panel { max-width: 560px; margin: 1rem auto; padding: 1rem; text-align: center; }
.access-panel h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.access-panel p { margin: .35rem 0 .75rem; }
.access-panel form { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; align-items:center; }
.access-panel label { width:100%; font-weight:700; }
.access-panel input { width:min(100%, 320px); min-height:44px; padding:.5rem .75rem; font:inherit; font-size:16px; border:1px solid var(--cherry); border-radius:8px; background:#fff; }
.access-panel .btn { margin:.15rem; }

/* R3 — Yes editorial design system, existing illustration preserved. */
:root{--yes-yellow:#F0CA00;--ink:#292727;--cream:#fff5d7;--paper:#faf8f7;--line:#e3ded7;--gray:#65615e;--cherry:#8b1a22;--green:#315d41}
body{background-color:var(--paper);background-image:radial-gradient(#625b4f12 .65px,transparent .85px);background-size:7px 7px}
.brand-header{display:flex;justify-content:center;align-items:center;padding:1.2rem 1rem .15rem}
.brand-header img{display:block;width:80px;height:auto;max-width:25vw}
.access-panel{margin:.25rem auto 1rem;padding:.7rem 1rem}
.stage{position:relative;isolation:isolate;padding:.2rem .65rem 0}
.stage:before,.stage:after{content:"";position:absolute;width:20px;height:20px;background:#d3b22988;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);z-index:-1;top:18%}
.stage:before{left:max(2%,calc(50% - 315px))}.stage:after{right:max(2%,calc(50% - 315px));top:64%;width:13px;height:13px}
.house picture{display:block;mix-blend-mode:multiply}
/* Cover only the obsolete printed logo on the blank margin of the artwork. */
.house:after{content:"";position:absolute;left:77.8%;top:0;width:20.2%;height:10.3%;background:var(--paper);pointer-events:none;z-index:1}
.windows{z-index:2}
.win.is-done .win-fx{background:#544133;box-shadow:0 0 0 2px #fff0b5,0 0 9px #e9c66d}
.win-opened{position:absolute;inset:0;border-radius:inherit;display:block;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#fffcf0 10%,#f8dd88 75%,#ad773a 100%);box-shadow:inset 0 0 0 2px #ad773a,inset 0 0 8px #80511d;pointer-events:none}
.win-opened .window-sticker{position:absolute;width:93%;max-width:none;aspect-ratio:1;left:3.5%;top:3%;height:73%;margin:0;filter:none}
.win-opened .sticker-pic{object-fit:contain}
.win-number{position:absolute;bottom:2%;left:0;width:100%;font-family:var(--font-title);font-size:clamp(9px,3vw,17px);font-weight:800;line-height:1.2;color:#33231b;text-shadow:0 1px #fff8d5}
.win.is-done .win-badge{z-index:3;left:85%;top:0;width:29%;border-radius:50%;box-shadow:0 0 0 1px #fff}
.btn-primary,.btn-primary:hover,.btn-primary[disabled]:hover{background:var(--yes-yellow);border-color:var(--yes-yellow);color:var(--ink)}
.btn-primary:hover{filter:brightness(.97)}
.count-pill{color:var(--ink)}
progress{accent-color:#b49b00}
.sheet{background:var(--paper)}
.sheet-head{background:#f0ca00;border-bottom:0;padding:.7rem 1rem}
.kicker{color:var(--ink);font-size:.78rem;letter-spacing:.11em}
.sheet-body{padding:1.35rem 1.2rem calc(2rem + var(--safe-b))}
.sheet-title{font-size:clamp(1.6rem,5vw,2.1rem);letter-spacing:-.04em}
.objective{font-size:.93rem;color:var(--gray);margin:.2rem 0 1.25rem}
.discover-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--yes-yellow);padding:1rem 1.05rem;border-radius:.9rem;margin:0 0 1.1rem}
.discover-card .step-h{margin:0 0 .55rem;color:var(--ink)}
.discover-card .prompt{margin:0;line-height:1.6}
.context-help{margin:.65rem 0 0;border-top:1px solid var(--line);padding-top:.6rem;color:var(--gray);font-size:.9rem}
.context-help summary{font-weight:700;cursor:pointer;color:var(--cherry)}
.context-help p{margin:.5rem 0 0}
.step-h{font-size:.83rem;text-transform:uppercase;letter-spacing:.09em;color:var(--cherry);margin:1.15rem 0 .6rem}
.paths{gap:.7rem;margin:.8rem 0 1.2rem}
.path-btn{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:.2rem;background:white;border:1px solid var(--line);padding:.85rem 1rem;border-radius:.9rem;min-height:76px}
.path-btn[aria-pressed="true"]{background:#fff9da;border-color:#ac8c00;box-shadow:inset 0 0 0 1px #ac8c00}
.path-btn[aria-pressed="true"]:before{content:none}
.path-btn .level-band{font-size:.72rem;color:#645516;font-weight:800;letter-spacing:.05em;background:#fff3b8;border-radius:4px;padding:.12rem .4rem}
.path-btn strong{font-size:1rem;line-height:1.25}.level-desc{font-family:var(--font-text);font-size:.8rem;line-height:1.35;font-weight:600;color:var(--gray)}
@media(min-width:420px){.paths{grid-template-columns:repeat(3,minmax(0,1fr))}.path-btn{padding:.75rem .6rem}.path-btn strong{font-size:.9rem}}
.journey{background:white;border:1px solid var(--line);border-top:4px solid var(--yes-yellow);border-radius:1.05rem;padding:1rem;margin:1.1rem 0;scroll-margin-top:1rem}
.journey-meter{font-family:var(--font-title);font-size:.7rem;font-weight:700;letter-spacing:.06em;color:var(--gray);margin:0 0 .45rem}
.journey-title{font-size:1.35rem;margin:.2rem 0 .95rem;outline:none}
.understand-card p{margin:0 0 1rem;line-height:1.65}
.journey .item{padding:0;background:transparent;border:none;margin:0}
.journey-nav{display:flex;justify-content:space-between;align-items:center;gap:.6rem;border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}
.journey-nav .btn-primary{margin-left:auto}
.option .opt-box{border-width:1px;border-radius:.75rem;padding:.85rem .75rem}
.option input:checked + .opt-box{border-color:#ac8c00;background:#fff9da;box-shadow:inset 0 0 0 1px #ac8c00}
.option .letter{background:#fff4b5;color:var(--ink)}
.option.is-right .opt-box{border-color:var(--green);background:#edf7ee;box-shadow:none}
.option.is-wrong .opt-box{border-color:var(--cherry);background:#fff3ef;box-shadow:none}
.option .mark{font-size:.72rem;flex:none}
.feedback{padding:1rem;border:1px solid #e3ddd2;border-left:4px solid var(--yes-yellow);background:#fff9df;margin:.75rem 0 0}
.feedback.is-right{background:#eef5ef;border-color:#b7cbb8;border-left-color:var(--green)}
.feedback.is-wrong{background:#fff7df;border-color:#e4d392;border-left-color:#b89a20}
.feedback.is-reveal{background:#f8f6f1;border-color:#ddd5c7;border-left-color:#b69a45}
.feedback .verdict{font-size:1.05rem;margin-bottom:.4rem}
.feedback p{line-height:1.55}.answer-highlight{font-weight:800;background:white;padding:.55rem .7rem;border-radius:.5rem}
.model{padding:1rem;background:#fff9df;border-left:4px solid var(--yes-yellow)}
.model .label{margin:.45rem 0 .3rem;color:var(--ink);text-transform:uppercase;letter-spacing:.055em;font-size:.72rem}
.model-text{line-height:1.55;margin-bottom:.8rem!important}
.reward{background:#fff7d6;border:1px solid #e2c958;border-radius:1.1rem;padding:1.2rem}
.takeaway{background:#fff9df;border-left:4px solid var(--yes-yellow)}
.slot .slot-art img{object-fit:contain}.slot.have .slot-art{background:#fffdf7}.slot.empty .slot-art{background:#f0ede7;border-color:#d6cec1;color:var(--gray)}
.slot .slot-name{font-size:.84rem;line-height:1.3;margin-top:.45rem}
.slot .slot-kind{font-size:.75rem;margin-top:.15rem}
@media(max-width:419px){.sheet-body{padding:1rem .9rem calc(2rem + var(--safe-b))}.journey{padding:.9rem}.paths{grid-template-columns:1fr}.path-btn{min-height:65px}.level-desc{font-size:.81rem}}
/* Blend the approved art into the page; no rectangle behind the separate logo. */
.stage{isolation:auto;background-image:radial-gradient(#625b4f12 .65px,transparent .85px);background-size:7px 7px;background-color:var(--paper)}
.house:after{display:none}
.house picture{clip-path:polygon(0 0,77.8% 0,77.8% 10.3%,100% 10.3%,100% 100%,0 100%);mix-blend-mode:multiply}
.stage:before,.stage:after{z-index:0;pointer-events:none}
.option.is-right input:checked+.opt-box{background:#edf7ee;border-color:var(--green);box-shadow:none}
.option.is-wrong input:checked+.opt-box{background:#fff3ef;border-color:var(--cherry);box-shadow:none}
.journey .feedback{margin:.6rem 0 .9rem}

/* R3 final visual polish — vintage biscuit-tin detail, almost-white paper. */
:root{--paper:#fbfaf6;--cream:#f8f4e9;--ornament-gold:#c39a4c;--ornament-red:#8b1a22}
body{background-color:var(--paper);background-image:radial-gradient(#74614b0d .5px,transparent .85px);background-size:8px 8px}
body:before{content:"";position:fixed;inset:7px;border:1px solid #8b1a2255;border-radius:18px;box-shadow:inset 0 0 0 4px var(--paper),inset 0 0 0 5px #c39a4c55;pointer-events:none;z-index:4}
.brand-header{position:relative;flex-direction:column;gap:.85rem;padding:1.2rem 1.25rem 0;max-width:600px;margin:auto}
.brand-header img{width:72px;max-width:22vw}
.holiday-plaque{position:relative;width:100%;max-width:500px;text-align:center;padding:1rem 1.4rem .9rem;background:linear-gradient(180deg,#fffefa,#f9f6ed);border:1px solid var(--ornament-red);border-radius:22px 22px 18px 18px;box-shadow:0 0 0 3px var(--paper),0 0 0 4px #c39a4c8c,inset 0 0 0 4px #fffefa,inset 0 0 0 5px #c39a4c72}
.holiday-plaque h1{font-size:clamp(1.4rem,5.5vw,2rem);line-height:1.15;margin:0;color:var(--cherry);font-weight:800;letter-spacing:-.035em}
.holiday-plaque p{font-size:clamp(.84rem,3.5vw,1.08rem);font-weight:700;margin:.35rem 0 0;color:var(--ink)}
.holiday-ornament{position:absolute;top:50%;transform:translateY(-50%);color:#b78a36;font-size:.95rem;line-height:1;pointer-events:none}.holiday-ornament:first-child{left:.45rem}.holiday-ornament:last-child{right:.45rem}
.access-panel{max-width:530px;margin:.65rem auto .1rem;padding:.4rem 1.6rem}.access-panel p{font-size:.9rem;margin:.1rem 0 .45rem}.access-panel #sign-out{min-height:38px;padding:.4rem .9rem;font-size:.8rem}
.stage{background:transparent;padding:.25rem 1rem 0}.stage:before,.stage:after{background:#b78a3670}.house-art{position:absolute;inset:0;mix-blend-mode:multiply}.house picture{mix-blend-mode:normal}.house-img{filter:saturate(1.08)}.house-retouch{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.summary{position:relative;padding:1rem 1.1rem calc(1.6rem + var(--safe-b));margin:.5rem auto 1rem;max-width:min(520px,calc(100% - 2rem));border:1px solid #c39a4c99;border-radius:16px;background:#fffefa;box-shadow:inset 0 0 0 3px #fbfaf6,inset 0 0 0 4px #c39a4c44}
.sheet{background:var(--paper);border:1px solid #c39a4c99;box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px #8b1a2233}
.sheet-head{background:#faf7ee;border-bottom:1px solid #c39a4c88;padding:.75rem 1.2rem}.sheet-head .kicker{color:var(--cherry)}.sheet-head .kicker:before{content:"✦ ";color:#b78a36}
.discover-card,.journey,.path-btn,.reward,.model{background:#fffefa;border-color:#cfb57f;border-radius:1rem;box-shadow:inset 0 0 0 3px #fbfaf6,inset 0 0 0 4px #c39a4c33}
.discover-card{border-left:3px solid #c39a4c}.journey{border-top:3px solid #c39a4c}.step-h:before{content:"✦ ";color:#b78a36}.path-btn[aria-pressed=true]{background:#fff8dc}.feedback.is-right{background:#eff5ef}.feedback.is-wrong{background:#fff8e8}.reward{background:#f8f4e9}.slot.empty .slot-art{background:#f5f2eb}.slot.have .slot-art{background:#fffefa}
@media(max-width:419px){.brand-header{padding:1rem 1.2rem 0;gap:.6rem}.holiday-plaque{padding:.8rem 1.2rem .75rem}.stage{padding:.1rem .75rem 0}.sheet-head{padding:.7rem 1rem}.sheet{border-radius:12px}.summary{padding:.8rem .9rem 1.2rem}}
/* The double biscuit-tin frame travels with the page, never over the content. */
body{position:relative;min-height:100vh}
body:before{position:absolute;z-index:1;inset:7px;pointer-events:none}
.brand-header:before,.brand-header:after{content:"";position:absolute;top:.85rem;width:38px;height:30px;background:radial-gradient(circle at 19px 18px,#8b1a22 0 3px,transparent 3.4px),radial-gradient(circle at 25px 15px,#8b1a22 0 3px,transparent 3.4px),radial-gradient(ellipse 11px 4px at 13px 10px,#315d41 98%,transparent),radial-gradient(ellipse 4px 10px at 30px 7px,#315d41 98%,transparent);pointer-events:none;opacity:.85}
.brand-header:before{left:1.25rem;transform:rotate(-18deg)}.brand-header:after{right:1.25rem;transform:scaleX(-1) rotate(-18deg)}

/* R3.2: shared vintage biscuit-tin frame. */
:root{--tin-red:#8b1a22;--tin-gold:#b68d42;--tin-paper:#fcfaf4;--tin-sprig:url('../assets/vintage-sprig.svg');--tin-frame:0 0 0 3px var(--tin-paper),0 0 0 4px #c39a4caa,inset 0 0 0 3px var(--tin-paper),inset 0 0 0 4px #c39a4c70}
.house picture{clip-path:none}.house-img{filter:none}.house-art{mix-blend-mode:multiply}
.brand-header{padding-top:1.5rem;gap:1.2rem}.brand-header img{width:60px}.brand-header:before,.brand-header:after{display:none}
.holiday-plaque{padding:1.6rem 1rem 1.1rem;border-radius:26px 26px 18px 18px;border-color:var(--tin-red);box-shadow:var(--tin-frame);background:linear-gradient(#fffefa,#f8f2e4)}
.holiday-plaque:before,.summary:before{content:"";position:absolute;top:-21px;left:50%;transform:translateX(-50%);width:116px;height:44px;background:var(--tin-sprig) center/contain no-repeat;pointer-events:none}
.holiday-ornament{color:var(--tin-gold)}.access-panel #sign-out{border:1px solid var(--tin-red);border-radius:8px;background:#fcfaf4;color:var(--tin-red)}
body:before{border-color:#8b1a2288;box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px #c39a4c90;inset:6px}
.summary{background:linear-gradient(180deg,#fffefa,#f8f2e4);border:1px solid var(--tin-red);box-shadow:var(--tin-frame);border-radius:23px 23px 18px 18px;margin:1.25rem auto 1.4rem;padding:1.2rem 1.15rem calc(1.4rem + var(--safe-b));max-width:min(520px,calc(100% - 2.4rem))}
.tin-heading{font-family:var(--font-title);font-weight:700;color:var(--tin-red);text-transform:uppercase;letter-spacing:.13em;font-size:.76rem;margin:.4rem 0 .5rem}.tin-heading span{color:var(--tin-gold);margin:0 .35rem}.progress-text{font-size:1.12rem;margin:.35rem 0 .7rem}
progress{appearance:none;-webkit-appearance:none;border:1px solid var(--tin-gold);border-radius:999px;height:12px;overflow:hidden;background:#ede5d4;accent-color:var(--tin-red)}progress::-webkit-progress-bar{background:#ede5d4;border-radius:999px}progress::-webkit-progress-value{background:linear-gradient(90deg,#8b1a22,#b64046);border-radius:999px}progress::-moz-progress-bar{background:linear-gradient(90deg,#8b1a22,#b64046);border-radius:999px}
.legend{padding:.7rem 0;border-top:1px solid #d7bf8a;border-bottom:1px solid #d7bf8a;margin:.8rem 0 1rem;font-size:.79rem;gap:.45rem .75rem}.legend-icon{border:1px solid #bb9755;background:#fcfaf4;color:var(--ink)}.legend li:nth-child(2) .legend-icon{background:#f8df87;color:#775219}.legend li:nth-child(3) .legend-icon{background:#315d41;color:#fff}
#open-collection{border-radius:11px;background:var(--tin-red);color:#fff;border:1px solid var(--tin-red);box-shadow:inset 0 0 0 2px var(--tin-red),inset 0 0 0 3px #e9cc8a;min-height:48px;padding:.65rem 1.35rem}#open-collection .count-pill{background:#fff6dc;color:var(--tin-red)}
.sheet{background-color:var(--tin-paper);background-image:radial-gradient(#a4895b0d .55px,transparent .8px);background-size:7px 7px;border:1px solid var(--tin-red);border-radius:19px;box-shadow:inset 0 0 0 3px var(--tin-paper),inset 0 0 0 4px #c39a4c99}
.sheet-head{position:relative;flex:none;background:linear-gradient(#fffefa,#f5eddb);border-bottom:1px solid var(--tin-red);box-shadow:inset 0 -3px #f8f1e1,inset 0 -4px #c39a4c85;padding:.8rem 1.2rem;min-height:70px}
.sheet-head .kicker{font-size:.77rem;letter-spacing:.13em;text-transform:uppercase;display:inline-flex;align-items:center;gap:.35rem;color:var(--tin-red)}.sheet-head .kicker:before{content:"";width:48px;height:22px;background:var(--tin-sprig) center/contain no-repeat;flex:none}
.sheet-head .icon-btn{background:#fffefa;color:var(--tin-red);border:1px solid var(--tin-red);box-shadow:0 0 0 2px #f5eddb,0 0 0 3px #c39a4c88;width:44px;height:44px;flex:none}.sheet-head .icon-btn svg{width:20px;height:20px}
.sheet-body{margin:0 5px 5px;border-left:1px solid #d5b77977;border-right:1px solid #d5b77977;border-bottom:1px solid #d5b77977;border-radius:0 0 13px 13px;padding:1.15rem 1rem calc(1.8rem + var(--safe-b))}
.sheet-title{color:var(--tin-red);letter-spacing:-.045em;line-height:1.16}.objective{margin-bottom:1.2rem}
.discover-card,.journey,.reward,.model{position:relative;background:#fffefa;border:1px solid #bd9550;border-radius:16px;box-shadow:inset 0 0 0 3px #fffefa,inset 0 0 0 4px #d8bd8655;padding:1rem 1rem}
.discover-card .step-h{color:var(--tin-red);padding-bottom:.5rem;border-bottom:1px solid #d8bd8677}.step-h:before{color:var(--tin-gold)}
.paths{gap:.7rem}.path-btn{position:relative;background:linear-gradient(110deg,#fffefa,#f9f4e7);border:1px solid #c4a46a;border-radius:13px;box-shadow:inset 0 0 0 3px #fffefa,inset 0 0 0 4px #d8bd8655;padding:.85rem 1rem}.path-btn .level-band{background:#f6e8c5;color:#70491d;border:1px solid #dcc18a}.path-btn[aria-pressed=true]{border-color:var(--tin-red);box-shadow:inset 0 0 0 3px #fffefa,inset 0 0 0 4px #8b1a2255;background:#fff7db}.path-btn strong{color:var(--tin-red)}
.journey{border-top:1px solid var(--tin-red)}.journey-meter{color:var(--tin-red);font-weight:700}.journey-title{color:var(--ink)}.journey-nav{border-color:#d8bd86}.journey .btn-primary,.reward .btn-primary{border-radius:9px;box-shadow:inset 0 0 0 2px #fff4c5;border:1px solid #c5a243;background:var(--yes-yellow)}
.feedback{border:1px solid #c4a46a;border-radius:12px;box-shadow:inset 0 0 0 3px #fffefa66;padding:1rem}.feedback .verdict{color:var(--tin-red)}.feedback.is-right .verdict{color:#315d41}.feedback.is-right{background:#eef5e9;border-color:#77936f}.feedback.is-wrong{background:#fff7e1;border-color:#c4a46a}.feedback.is-reveal{background:#f9f2e2;border-color:#c4a46a}
.reward{background:linear-gradient(#fffefa,#f6eedc);padding:1.3rem 1rem}.reward:before{content:"";display:block;height:32px;background:var(--tin-sprig) center/100px auto no-repeat;margin:-.5rem 0 .4rem}.reward .sticker-frame{margin:.1rem auto .5rem}.model{background:#fbf4e1}.takeaway{border:1px solid #c4a46a;border-radius:10px;background:#f9f2e0}
#collection-dialog .sheet-title{text-align:center;margin:.3rem 0 .35rem}#collection-dialog .sheet-title:before{content:"";display:block;height:42px;background:var(--tin-sprig) center/116px auto no-repeat;margin:-.4rem 0 .2rem}#collection-dialog .col-summary{text-align:center;color:var(--gray);padding-bottom:.8rem;border-bottom:1px solid #d8bd86;margin:.15rem 0 1rem}
.col-grid{gap:.85rem .65rem}.slot .slot-art{border-radius:12px}.slot.have .slot-art{background:linear-gradient(#fffefa,#f7eed8);border:1px solid var(--tin-red);box-shadow:0 0 0 2px #fffefa,0 0 0 3px #c39a4c99,inset 0 0 0 3px #fffefa,inset 0 0 0 4px #d8bd8655}.slot.empty .slot-art{background:#f4eddf;border:1px dashed #b9a67f;box-shadow:inset 0 0 0 3px #fbf8f0}.slot .slot-name{color:var(--ink);font-weight:700}.slot .slot-kind{color:var(--gray)}
@media(max-width:419px){.brand-header{padding-top:1.3rem}.brand-header img{width:54px}.holiday-plaque{padding:1.35rem 1rem .85rem}.sheet-head{padding:.65rem 1rem;min-height:62px}.sheet-body{padding:1rem .85rem calc(1.5rem + var(--safe-b))}.summary{padding:1.05rem .75rem 1.2rem}.legend{font-size:.74rem;gap:.35rem .55rem}.sheet-title{font-size:clamp(1.4rem,6vw,1.85rem)}}
@media(min-width:640px){.sheet{box-shadow:0 20px 60px #0004,inset 0 0 0 3px var(--tin-paper),inset 0 0 0 4px #c39a4c99}}

/* R3.3: optional sharing and reminder preference use the approved biscuit-tin frame. */
.share-moment,.reminder-panel{position:relative;background:linear-gradient(#fffefa,#f8f2e4);border:1px solid var(--tin-red);border-radius:16px;box-shadow:var(--tin-frame);padding:1rem;text-align:center;margin:1.3rem .25rem 1rem;color:var(--ink)}
.share-moment:before,.reminder-panel:before{content:"";display:block;height:28px;background:var(--tin-sprig) center/90px auto no-repeat;margin:-.4rem auto .2rem}
.share-moment h4,.reminder-panel h2{font-family:var(--font-title);font-size:1.12rem;color:var(--tin-red);margin:.3rem 0 .5rem}.share-moment p,.reminder-panel p{margin:.35rem 0 .7rem;line-height:1.45}.share-moment .btn{max-width:100%;white-space:normal}.share-copy{width:100%;margin-top:.5rem}.reminder-panel{max-width:min(520px,calc(100% - 2.4rem));margin:1rem auto 1.5rem}.reminder-choice{display:flex;align-items:center;gap:.65rem;text-align:left;font-weight:700;line-height:1.4;min-height:44px}.reminder-choice input{flex:none;appearance:auto;width:21px;height:21px;accent-color:var(--tin-red)}.reminder-panel[hidden],.share-copy[hidden]{display:none!important}

.share-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:.55rem}

/* R3.4: convite social discreto e instrução de produção. */
.production-instruction{font-size:.94rem;line-height:1.55;margin:.5rem 0 .8rem;color:var(--ink)}
.social-note{font-size:.85rem;line-height:1.5;margin:.65rem 0 .55rem;color:var(--ink);font-style:italic}
.social-note strong{color:var(--tin-red)}

/* R4 reward copy: preserve the existing reward frame and rarity art. */
.reward-message{max-width:34rem;margin:.55rem auto .8rem;line-height:1.55;overflow-wrap:break-word}
.reward-translation{max-width:34rem;margin:.7rem auto;text-align:center}
.reward-translation-heading{font-weight:700}
