/* Talhão — design system do jogo, derivado da identidade visual da Solunar
   (cerebro-solunar/_configuracao/identidade-visual). Creme como papel,
   verde-floresta como tinta, limão só como sol/ganho, barro só como perda,
   magenta só no nitrogênio. Londrina Solid para rótulos; Nunito para ler. */

@font-face { font-family: "Londrina Solid"; font-weight: 400; font-display: swap; src: url("public/fonts/londrina-solid-400.woff2") format("woff2"); }
@font-face { font-family: "Londrina Solid"; font-weight: 900; font-display: swap; src: url("public/fonts/londrina-solid-900.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400 800; font-display: swap; src: url("public/fonts/nunito-latin-wght.woff2") format("woff2"); }

:root {
  --ink: #17290F;
  --mid: #37462F;
  --sage: #5E6855;
  --cream: #ECE7E1;
  --paper: #F4F1EB;
  --n200: #DCD8CF;
  --n300: #C3C1B4;
  --taupe: #626056;
  --lime: #E6F819;
  --magenta: #ED18CE;
  --clay: #C73100;
  --display: "Londrina Solid", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='16' viewBox='0 0 56 16'%3E%3Cpath d='M3 13 C3 4 11 3 12 9 C13 14 19 15 24 10 S 36 3 44 8 S 52 12 54 9' fill='none' stroke='%235E6855' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='3.5' r='1.6' fill='%235E6855'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

#app { height: 100dvh; position: relative; }
.screen { position: absolute; inset: 0; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--display); font-size: 24px; color: var(--sage); }
#app:not([data-screen="loading"]) .loading { display: none; }

.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0; }
.muted { color: var(--taupe); }
.small { font-size: 14px; }

/* botões no padrão do site da Solunar: pílula verde-floresta com texto limão */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--lime);
  font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .02em;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #24391a; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: rgba(23, 41, 15, .06); }
.btn.small { min-height: 46px; padding: 8px 18px; font-size: 18px; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.ready { animation: ready 1.4s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 248, 25, 0); } 50% { box-shadow: 0 0 0 7px rgba(230, 248, 25, .85); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- abertura */
#title { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 32px clamp(16px, 5vw, 72px) 96px; }
#title-art { width: 100%; height: min(66vh, 560px); }
.title-copy h1 { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .9; margin: 8px 0 16px; letter-spacing: -.01em; }
.title-copy .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34ch; color: var(--mid); margin: 0 0 28px; }
.title-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 18px clamp(16px, 5vw, 72px) 20px; font-size: 14px; color: var(--taupe); background: var(--wave) repeat-x top / 56px 16px; }
.title-foot img { width: 120px; height: auto; flex: none; }

/* ---------------------------------------------------------------- jogo */
#play { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px clamp(12px, 3vw, 28px) 4px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 30px; margin: 0; }
.lua { display: flex; align-items: center; gap: 10px; }
#lua-spiral { width: 60px; height: 60px; flex: none; }
.lua-text { display: grid; line-height: 1.1; }
.lua-text strong { font-family: var(--display); font-weight: 900; font-size: 24px; }
.lua-text span { font-size: 13px; color: var(--taupe); }
#lua-sub .short { display: none; }
.score { justify-self: end; display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.score span { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; display: inline-block; transition: transform .18s ease; }
.score span.bump { transform: scale(1.22); }
.score span.down { color: var(--clay); }
.score small { display: grid; line-height: 1.12; }
.score small b { font-family: var(--display); font-weight: 900; font-size: 17px; color: var(--ink); }
.score small em { font-style: normal; font-size: 12.5px; color: var(--taupe); }
#stage-name.pop { animation: stage-pop .9s cubic-bezier(.2, 1.5, .4, 1); display: inline-block; }
@keyframes stage-pop { 30% { transform: scale(1.35); background: var(--lime); border-radius: 999px; } }
.hud { grid-template-columns: auto 1fr auto auto; }
.lua { justify-self: center; }
.tools { display: flex; gap: 6px; }
.icon { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.icon:hover { background: rgba(23, 41, 15, .07); }
.icon svg { width: 26px; height: 26px; }
#btn-sound .cross { display: none; }
#btn-sound.off .cross { display: inline; }
#btn-sound.off .waves { display: none; }
.badge { position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 13px; line-height: 20px; }
.badge.pop { animation: pop .5s ease; }
@keyframes pop { 30% { transform: scale(1.5); background: var(--magenta); color: var(--cream); } }

.stage { position: relative; min-height: 0; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }

.banner { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 16px 22px; border-radius: var(--radius); background: var(--ink); color: var(--cream); box-shadow: 0 18px 40px -20px rgba(23, 41, 15, .6); animation: drop .4s cubic-bezier(.2, 1.4, .4, 1); cursor: pointer; }
.banner strong { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--lime); }
.banner p { margin: 4px 0 0; }
@keyframes drop { from { transform: translate(-50%, -24px); opacity: 0; } }

.toast { position: absolute; right: 12px; top: 12px; display: flex; gap: 12px; width: min(380px, calc(100% - 24px)); padding: 12px 14px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 0 16px 36px -22px rgba(23, 41, 15, .7); animation: slide .45s cubic-bezier(.2, 1.3, .4, 1); }
.toast img { width: 64px; height: 64px; flex: none; }
.toast strong { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.1; }
.toast .eyebrow { color: var(--magenta); font-size: 11px; }
.toast p { margin: 2px 0 0; font-size: 14px; color: var(--mid); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

.final { position: absolute; right: clamp(12px, 3vw, 32px); top: 50%; transform: translateY(-50%); width: min(400px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 22px 24px; border-radius: 28px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 0 24px 50px -24px rgba(23, 41, 15, .7); animation: slide .5s ease; }
.final h2 { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; margin: 6px 0 4px; }
.verdict { margin: 0 0 12px; color: var(--mid); font-size: 15px; }
.stage-result { margin: 2px 0 10px; color: var(--mid); }
.stage-result b { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--ink); }
.stage-result.won b { background: var(--lime); padding: 0 8px; border-radius: 999px; }
.ladder { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 4px; padding: 0; margin: 0 0 12px; }
.ladder li { display: grid; align-content: end; gap: 2px; padding: 6px 5px; border-radius: 10px; background: var(--n200); text-align: center; }
.ladder li:nth-child(1) { min-height: 44px; } .ladder li:nth-child(2) { min-height: 54px; }
.ladder li:nth-child(3) { min-height: 64px; } .ladder li:nth-child(4) { min-height: 74px; }
.ladder li b { font-family: var(--display); font-size: 13px; line-height: 1.05; font-weight: 400; }
.ladder li span { font-size: 11px; color: var(--taupe); }
.ladder li.win { background: #C8CCBC; }
.ladder li.here { background: var(--ink); color: var(--lime); }
.ladder li.here span { color: var(--cream); }
.final-seals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.final-seals .eyebrow { width: 100%; }
.seal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 0; border-radius: 999px; background: var(--n200); color: var(--mid); cursor: pointer; font: inherit; font-size: 13px; text-align: left; line-height: 1.1; }
.seal-chip i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.seal-chip svg { width: 17px; height: 17px; }
.seal-chip small { display: block; font-size: 11px; color: var(--taupe); }
.seal-chip.done { background: var(--lime); color: var(--ink); }
.seal-chip.done i { background: var(--ink); color: var(--lime); }
.conta { margin: 0 0 12px; }
.conta summary { cursor: pointer; font-family: var(--display); font-size: 18px; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.conta summary::-webkit-details-marker { display: none; }
.conta summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 16px; }
.conta[open] summary::before { content: "−"; }
.parts { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 6px 0 0; }
.parts dt { color: var(--mid); }
.parts dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 20px; text-align: right; }
.parts dd.neg { color: var(--clay); }

/* ---------------------------------------------------------------- bandeja */
.tray { position: relative; padding: 18px clamp(12px, 3vw, 28px) max(12px, env(safe-area-inset-bottom)); background: var(--paper) var(--wave) repeat-x top / 56px 16px; }
/* altura fixa: a dica muda a cada casa e não pode empurrar o talhão (o toque erraria a casa) */
.hint { height: 2.9em; margin: 0 0 8px; text-align: center; font-weight: 600; color: var(--mid); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hint b { color: var(--ink); }
.hint .plus { color: var(--ink); background: var(--lime); padding: 0 6px; border-radius: 999px; }
.hint .minus { color: var(--cream); background: var(--clay); padding: 0 6px; border-radius: 999px; }
.tray-row { display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); align-items: end; gap: 16px; max-width: 1180px; margin: 0 auto; }
.meters { display: grid; gap: 8px; align-self: center; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.meter-label { font-family: var(--display); font-size: 16px; }
.meter-bar { position: relative; height: 12px; border-radius: 999px; background: var(--n200); overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--mid); transition: width .45s cubic-bezier(.2, 1.3, .4, 1); }
#meter-cover.done .meter-bar i { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.compost .meter-bar i { background: var(--taupe); }
.meter.flash { animation: flash .7s ease; }
@keyframes flash { 40% { transform: scale(1.06); } }
.meter-value { font-family: var(--display); font-weight: 900; font-size: 17px; min-width: 3.2ch; text-align: right; }
.bio { font-size: 13px; line-height: 1.35; height: calc(2.7em + 12px); overflow: hidden; padding: 6px 10px; border-radius: 14px; background: var(--n200); color: var(--mid); }
.bio b { color: var(--ink); }
.seals { display: flex; align-items: center; gap: 6px; }
.seals .meter-label { margin-right: 4px; }
.seal { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; background: var(--cream); box-shadow: inset 0 0 0 2px var(--n300); color: var(--sage); display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.seal svg { width: 21px; height: 21px; }
.seal:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.seal.done { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.seal.pop { animation: seal-pop .8s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes seal-pop { 35% { transform: scale(1.5) rotate(-8deg); } }

.hand { display: flex; gap: 10px; justify-content: center; }
.card {
  position: relative; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: start;
  width: clamp(78px, 11vw, 124px); padding: 6px 6px 8px; border: 0; border-radius: 20px;
  background: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); cursor: pointer;
  transition: transform .16s cubic-bezier(.2, 1.4, .4, 1), background .15s ease, opacity .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card[aria-pressed="true"] { background: var(--lime); transform: translateY(-10px); box-shadow: inset 0 0 0 3px var(--ink), 0 14px 24px -14px rgba(23, 41, 15, .8); }
.card img { width: 100%; aspect-ratio: 1; height: auto; }
.card .name { font-family: var(--display); font-weight: 900; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.05; text-align: center; }
.card .role { font-size: 11.5px; line-height: 1.2; color: var(--mid); text-align: center; margin-top: 2px; }
.card .key { position: absolute; left: 8px; top: 6px; font-family: var(--display); font-size: 13px; color: var(--sage); }
.card.cover { background: var(--n200); }
.card.cover[aria-pressed="true"] { background: var(--lime); }
.card.used { visibility: hidden; }
.card.deal { animation: deal .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes deal { from { transform: translateY(60px) rotate(-6deg); opacity: 0; } }
.card.shake { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.card.to-compost { transition: transform .6s cubic-bezier(.5, 0, .75, .4), opacity .6s ease; opacity: 0; }

.tray-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; align-self: center; }
/* no fim, a bandeja fica só com a dica: o painel final precisa da altura */
#play.over .tray-actions, #play.over .hand, #play.over .meters { display: none; }
#play.over .hint { margin-bottom: 0; }

/* ---------------------------------------------------------------- diálogos */
dialog { border: 0; border-radius: 28px; padding: 24px 26px; background: var(--paper); color: var(--ink); width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: inset 0 0 0 2px var(--ink), 0 30px 60px -30px rgba(23, 41, 15, .8); }
dialog::backdrop { background: rgba(23, 41, 15, .45); }
dialog h2 { font-family: var(--display); font-weight: 900; font-size: 34px; margin: 0 0 12px; }
.rules p { margin: 0 0 8px; }
.keys { font-size: 14px; }

/* ---------------------------------------------------------------- caderno (livro) */
#caderno.book { width: min(1100px, calc(100vw - 24px)); height: min(780px, calc(100dvh - 24px)); padding: 0; overflow: hidden; }
#caderno.book form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.book-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 18px 24px 12px; border-bottom: 2px solid var(--n200); }
.book-head > div:first-child { flex: 1 1 220px; }
.book-head h2 { font-size: 30px; margin: 2px 0; }
.book-head p { margin: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--n200); }
.tabs button { min-height: 42px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--mid); font-family: var(--display); font-size: 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.book-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 0; }
.book-list { overflow: auto; padding: 6px 10px 16px; border-right: 2px solid var(--n200); background: var(--cream); }
.book-group { margin: 12px 8px 4px; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.book-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 5px 10px 5px 6px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.book-item:hover { background: rgba(23, 41, 15, .07); }
.book-item.on { background: var(--ink); color: var(--cream); }
.book-item.on small { color: var(--n300); }
.book-item img { width: 44px; height: 44px; }
.book-item b { display: block; font-family: var(--display); font-weight: 900; font-size: 17px; line-height: 1.1; }
.book-item small { display: block; font-size: 12px; line-height: 1.2; color: var(--taupe); }
.book-item i { width: 10px; height: 10px; border-radius: 50%; }
.book-item i.open { background: var(--magenta); }
.book-item i.shut { box-shadow: inset 0 0 0 2px var(--n300); }
.book-item .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--n200); color: var(--mid); }
.book-item .glyph svg { width: 24px; height: 24px; }
.book-item.lit .glyph { background: var(--lime); color: var(--ink); }
.book-page { overflow: auto; padding: 20px 28px 28px; }
.page-hero { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; }
.page-hero img { width: 180px; height: 180px; border-radius: 24px; background: var(--cream); }
.page-hero h3 { margin: 4px 0; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; }
.page-hero .sci { margin: 0 0 8px; font-style: italic; color: var(--taupe); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span { padding: 2px 10px; border-radius: 999px; background: var(--n200); font-size: 13px; color: var(--mid); }
.onboard { margin: 10px 0 0; font-size: 14px; color: var(--mid); }
.page-hero.principle { grid-template-columns: 84px 1fr; }
.glyph.big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.glyph.big svg { width: 46px; height: 46px; }
.book-page section { margin-top: 18px; }
.book-page h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.book-page p { margin: 0; max-width: 64ch; }
.rules { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 10px; }
.mark { justify-self: start; padding: 1px 10px; border-radius: 999px; background: var(--n200); color: var(--mid); font-family: var(--display); font-weight: 900; font-size: 15px; }
.mark.pos { background: var(--lime); color: var(--ink); }
.mark.neg { background: var(--clay); color: var(--cream); }
.tip p { padding: 10px 14px; border-left: 5px solid var(--ink); border-radius: 0 12px 12px 0; background: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 3px 12px 3px 4px; border: 0; border-radius: 999px; background: var(--n200); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--n300); }
.chip img { width: 32px; height: 32px; }
.chip .glyph { width: 32px; height: 32px; display: grid; place-items: center; }
.chip .glyph svg { width: 19px; height: 19px; }
.fact p { font-size: 17px; }
.fact.locked p { color: var(--taupe); font-style: italic; }
.seal-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--n200); }
.seal-line .glyph { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.seal-line .glyph svg { width: 24px; height: 24px; }
.seal-line.lit { background: var(--lime); }
.book-foot { margin: 0; padding: 8px 24px 12px; border-top: 2px solid var(--n200); }

/* ---------------------------------------------------------------- introdução */
.intro { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 32px clamp(16px, 5vw, 72px) 48px; background: var(--cream) var(--wave) repeat-x bottom 12px left / 56px 16px; }
#intro-art { width: 100%; height: min(72vh, 620px); }
.intro-copy h2 { margin: 8px 0 14px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 76px); line-height: .95; }
#intro-text { max-width: 36ch; margin: 0 0 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--mid); }
.intro-copy.turn { animation: turn .45s ease; }
@keyframes turn { from { opacity: 0; transform: translateX(18px); } }
.intro-nav { display: grid; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: var(--n300); cursor: pointer; transition: width .25s ease; }
.dots button[aria-current="true"] { width: 30px; background: var(--ink); }
.intro-seals { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px; }
.intro-seals span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mid); }
.intro-seals i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.intro-seals svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- telas estreitas */
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; padding: 12px 16px 36px; }
  #intro-art { height: 100%; min-height: 0; }
  .intro-copy h2 { font-size: 34px; margin: 4px 0 8px; }
  #intro-text { font-size: 16px; margin-bottom: 14px; }
  .intro-seals { margin-bottom: 12px; gap: 6px 10px; }
  .intro-seals span { font-size: 12.5px; }
  .book-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .book-list { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 8px; border-right: 0; border-bottom: 2px solid var(--n200); }
  .book-group, .book-item small, .book-item i { display: none; }
  .book-item { flex: none; width: 78px; grid-template-columns: 1fr; justify-items: center; gap: 2px; padding: 6px 4px; text-align: center; }
  .book-item b { font-size: 13px; }
  .book-page { padding: 14px 16px 20px; }
  .page-hero { grid-template-columns: 112px 1fr; gap: 14px; }
  .page-hero img { width: 112px; height: 112px; }
  .page-hero h3 { font-size: 32px; }
  #caderno.book { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .book-head { padding: 12px 16px 10px; }
  .book-head h2 { font-size: 24px; }
  .tabs button { padding: 6px 12px; font-size: 16px; }
  .rules li { grid-template-columns: 58px 1fr; }
  #title { grid-template-columns: 1fr; align-content: start; gap: 0; padding-top: 12px; overflow: auto; }
  #title-art { height: 36vh; }
  .title-foot { position: static; margin-top: 20px; padding-inline: 0; }
  .tray-row { grid-template-columns: 1fr auto; grid-template-areas: "meters actions" "hand hand"; gap: 10px 12px; }
  .meters { grid-area: meters; }
  .tray-actions { grid-area: actions; flex-direction: row; }
  .hand { grid-area: hand; }
  .final { top: auto; bottom: 12px; transform: none; right: 12px; }
}
@media (max-width: 560px) {
  .brand { display: none; }
  .hud { grid-template-columns: 1fr auto auto; padding-top: max(8px, env(safe-area-inset-top)); }
  .lua { justify-self: start; }
  #lua-spiral { width: 42px; height: 42px; }
  .lua-text strong { font-size: 20px; }
  .score span { font-size: 34px; }
  .score small em { display: none; }
  #lua-sub .long, .bio { display: none; }
  #lua-sub .short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .lua, .lua-text, #lua-sub { min-width: 0; }
  #lua-spiral { width: 38px; height: 38px; }
  .score { margin-right: 0; gap: 6px; }
  .score small b { font-size: 12.5px; max-width: 9ch; line-height: 1.05; }
  .score small b { font-size: 13px; max-width: 8ch; }
  .seals { grid-column: 1 / -1; justify-content: center; }
  .icon { width: 44px; height: 44px; }
  .tools { gap: 0; }
  .tray { padding-top: 14px; }
  .tray-row { grid-template-columns: 1fr; grid-template-areas: "hand" "meters" "actions"; }
  .tray-actions { justify-content: stretch; }
  .tray-actions .btn { flex: 1; }
  .hand { gap: 6px; }
  .card { width: calc((100vw - 24px - 18px) / 4); padding: 4px 3px 6px; border-radius: 16px; }
  .card .role { font-size: 10.5px; }
  .card .key { display: none; }
  .meters { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .meter { grid-template-columns: 1fr auto; }
  .meter-label { grid-column: 1 / -1; font-size: 14px; }
  .bio { grid-column: 1 / -1; }
  .toast { top: 8px; right: 8px; }
  .toast img { width: 48px; height: 48px; }
  .final { left: 12px; width: auto; max-height: 64%; padding: 16px 18px; }
  .final h2 { font-size: 40px; }
  .final .verdict { margin-bottom: 4px; font-size: 15px; }
  .final .btn { min-height: 46px; font-size: 18px; padding-inline: 18px; }
  #play.over .tray { display: none; }
  .toast { padding: 8px 10px; gap: 8px; }
  .toast strong { font-size: 18px; }
  .toast p { font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #play { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); }
  .hud { grid-column: 1 / -1; padding-block: 4px 0; }
  .tray { grid-row: 2; grid-column: 2; overflow: auto; background-position: left top; }
  .tray-row { grid-template-columns: 1fr; grid-template-areas: "hand" "meters" "actions"; }
  .hand { flex-wrap: wrap; }
  .card { width: 64px; }
  .card .role { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
