@font-face {
  font-family: 'Lilita One';
  src: url('assets/fonts/lilita-one-latin-400-normal.woff2?v=d2575d4fa3') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* campos de cor: os mundos do jogo */
  --crimson: #b0143c;
  --crimson-deep: #8f0f30;
  --villain: #5c0a22;
  --sky: #7fd0f7;
  --gold: #f5c542;
  --gold-deep: #e0a82e;
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --emerald: #136b3e;
  --emerald-2: #187a48;
  --emerald-3: #1d8752;
  --wood: #4a2a12;
  --paper: #ffffff;
  --parchment: #f3e2b6;
  --ink: #2b1a0a;
  --ink-navy: #0b2a4a;
  --soft-navy: #1c4f7a;
  --soft-green: #bfe8cf;

  --display: 'Lilita One', 'Trebuchet MS', system-ui, sans-serif;
  --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* altura de uma página = altura da tela (o main.js mantém em px) */
  --page: 100svh;

  --s-hero: clamp(96px, min(15vw, 26vh), 230px);
  --s-h2: clamp(40px, min(5vw, 9vh), 80px);
  --s-sub: clamp(26px, min(2.5vw, 4.4vh), 36px);
  --s-body: 17px;
  --s-lead: 22px;
  --s-small: 15px;

  --m: clamp(16px, 2.8vw, 40px);
  --r: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-land: cubic-bezier(0.34, 1.32, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--gold) var(--navy); overscroll-behavior-y: none; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font: 400 var(--s-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--gold);
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
main { display: contents; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- páginas ---------- */
.ch { position: relative; padding-inline: var(--m); height: var(--page); }
.pg { display: contents; }
/* capítulos empilhados: o próximo desliza por cima do anterior (camadas e posições vêm do main.js) */
.deck .ch { position: sticky; }
.shade { position: absolute; inset: 0; z-index: 40; background: #04101d; opacity: 0; pointer-events: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--gold); color: var(--ink);
  border: 0; border-radius: 999px;
  font: 800 17px/1 var(--text); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #ffd65e; } }
.btn-paper { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn-paper:hover { background: #fff; } }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.soon { display: inline-block; font-size: var(--s-small); font-weight: 800; opacity: 0.9; }

/* ---------- abertura: carmesim ---------- */
.hero {
  background: var(--crimson);
  color: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  padding-bottom: clamp(20px, 4vh, 40px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: var(--s-small); font-weight: 700; position: relative; z-index: 3; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: 0; }
.mark img { width: 36px; height: 36px; border-radius: 10px; }
.bar ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.bar a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bar .wide a:hover { text-decoration: underline; } }
.bar-cta { text-decoration: underline !important; text-decoration-color: var(--gold) !important; text-decoration-thickness: 3px !important; }
/* idioma da página (index.html, en.html, es.html) */
.bar .langs { display: flex; gap: 10px; font-weight: 800; }
.bar .langs a { opacity: 0.75; }
.bar .langs a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; }

.hero-title { align-self: start; margin-top: 7vh; font-size: var(--s-hero); line-height: 0.84; letter-spacing: -0.035em; position: relative; z-index: 2; }
.hero-title .line:first-child [data-line] { color: var(--gold); }
.hero-title .line:last-child [data-line] { color: var(--paper); }
.lines .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

.hero-pile { position: absolute; right: 30%; bottom: 4vh; width: min(34vw, 56vh); max-width: 560px; aspect-ratio: 1.1; z-index: 1; pointer-events: none; }
.hero-pile img { position: absolute; width: 28%; }
.hero-pile .p1 { left: 0; bottom: 6%; width: 34%; rotate: -12deg; }
.hero-pile .p2 { left: 26%; bottom: 0; width: 36%; rotate: 6deg; }
.hero-pile .p3 { left: 58%; bottom: 4%; width: 33%; rotate: 14deg; }
.hero-pile .p4 { left: 38%; bottom: 30%; width: 34%; }
.hero-pile .p5 { left: 10%; bottom: 36%; width: 26%; rotate: -8deg; }
.hero-pile .p6 { left: 68%; bottom: 34%; width: 28%; rotate: 10deg; }
.hero-pile .p7 { left: 30%; bottom: 60%; width: 22%; rotate: -4deg; }

.hero-foot { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 20px; justify-self: end; max-width: 36ch; position: relative; z-index: 2; }
.hero-lede { font-size: var(--s-lead); line-height: 1.4; font-weight: 700; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-btns { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* notebook com tela baixa: sem a linha de idiomas, os dois botões cabem na primeira tela */
@media (min-width: 901px) and (max-height: 720px) { .hero-actions .soon { display: none; } }

/* ---------- vídeo do jogo real: navy ---------- */
.reel { background: var(--navy); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); padding-block: clamp(28px, 6vh, 64px); }
.reel-text { display: grid; gap: 24px; max-width: 34ch; justify-self: end; }
.reel-text h2 { font-size: var(--s-h2); line-height: 0.95; color: var(--gold); }
.reel-text p { font-size: var(--s-lead); line-height: 1.45; font-weight: 700; }
.reel-text .btn { justify-self: start; }
.reel-box { display: contents; }
.reel-frame { height: calc(var(--page) - clamp(56px, 12vh, 128px)); aspect-ratio: 540 / 730; border-radius: 26px; overflow: clip; border: 6px solid #8b5a2b; background: #1a0f2e; justify-self: start; }
.reel-frame video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- jogue aqui: céu ---------- */
.play {
  --disc: var(--crimson);
  background: var(--sky);
  color: var(--ink-navy);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  padding-block: clamp(24px, 7vh, 80px);
}
.play[data-disc="gold"] { --disc: var(--gold); }
.play[data-disc="emerald"] { --disc: var(--emerald-3); }
.play[data-disc="navy"] { --disc: var(--navy); }
.play-stage { grid-column: 4 / 13; grid-row: 1; position: relative; display: grid; grid-template-columns: auto minmax(220px, 300px); justify-content: center; align-items: center; gap: clamp(40px, 6vw, 96px); }
.board-wrap { position: relative; isolation: isolate; width: min(calc(var(--page) * 0.6), 36vw, 520px); }
.disc { position: absolute; left: 50%; top: 47%; z-index: -1; width: 132%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: var(--disc); transition: background-color 300ms ease; }
.board { position: relative; aspect-ratio: 1; background: var(--wood); border: 6px solid #8b5a2b; border-radius: 20px; overflow: clip; touch-action: none; user-select: none; -webkit-user-select: none; }
.board .cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.board .cells i { background: #0d2a52; background-size: cover; }
.board .cells i:nth-child(12n+1), .board .cells i:nth-child(12n+3), .board .cells i:nth-child(12n+5),
.board .cells i:nth-child(12n+8), .board .cells i:nth-child(12n+10), .board .cells i:nth-child(12n+12) { background-color: #113563; }
.board .cells i[data-stone="1"] { background-image: url('assets/art/pedra-1.webp?v=da9e2f0456'); }
.board .cells i[data-stone="2"] { background-image: url('assets/art/pedra-2.webp?v=8fc7433265'); }
.board noscript img { width: 100%; height: 100%; object-fit: cover; }
.piece {
  position: absolute; left: 0; top: 0;
  width: calc(100% / 6); height: calc(100% / 6);
  padding: 0; border: 0; background: none; cursor: grab;
  transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%));
  transition: transform 300ms var(--ease-land);
}
.piece.swap { transition: transform 180ms var(--ease-in-out); }
.piece img { width: 100%; height: 100%; scale: 1.2; pointer-events: none; transition: transform 160ms var(--ease-out), opacity 200ms ease, filter 200ms ease; }
.piece:active img { transform: scale(0.94); }
.piece[aria-pressed="true"] img { transform: scale(1.06); filter: drop-shadow(0 0 8px #ffe28a); } /* taste-skill-ignore: estado selecionado, não repouso */
.piece.pop img { transform: scale(1.15); opacity: 0; transition-duration: 220ms; }
.piece.hint img { animation: hint 1.1s var(--ease-in-out) infinite; }
.piece.nope { animation: nope 260ms ease; }
.piece:focus-visible { outline-offset: -4px; }
.piece img[src*="compass"] { scale: 0.96; }
@keyframes hint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(-6deg); } }
@keyframes nope { 25% { translate: -6% 0; } 75% { translate: 6% 0; } }
.beam { position: absolute; background: #fff7c2; border-radius: 99px; pointer-events: none; opacity: 0; }
.beam.h { left: 0; right: 0; height: 10%; }
.beam.v { top: 0; bottom: 0; width: 10%; }
.burst { position: absolute; width: 50%; aspect-ratio: 1; border-radius: 50%; border: 8px solid #ffd65e; pointer-events: none; }
.chip { position: absolute; width: 4%; aspect-ratio: 1; border-radius: 2px; background: #8d8584; pointer-events: none; z-index: 3; }
.toast { position: absolute; left: 50%; top: 42%; translate: -50% -50%; z-index: 5; font: 400 var(--s-sub)/1 var(--display); color: var(--gold); -webkit-text-stroke: 2px var(--ink); paint-order: stroke; pointer-events: none; white-space: nowrap; }

.board-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 6px 6px 6px 18px; background: var(--parchment); color: var(--ink); border: 4px solid #8b5a2b; border-radius: 999px; font-weight: 700; font-size: var(--s-small); position: relative; }
.board-hud > span { white-space: nowrap; }
.board-hud b { font-family: var(--display); font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; margin-left: 6px; }
.hud-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--navy); color: var(--paper); font-weight: 800; cursor: pointer; transition: transform 160ms var(--ease-out); }
.hud-btn:active { transform: scale(0.97); }

.play-fact { position: relative; display: grid; gap: 14px; font-size: 17px; }
.play-fact #fact-text { font-weight: 800; font-size: var(--s-lead); line-height: 1.35; }
.play-status { min-height: 1.3em; font-family: var(--display); font-size: var(--s-sub); line-height: 1.1; color: var(--crimson-deep); }

.play-list { grid-column: 1 / 4; grid-row: 1; align-self: end; position: relative; }
.play-list h2 { font-size: var(--s-sub); line-height: 1.15; color: var(--soft-navy); }
.picker { list-style: none; margin: 0; padding: 0; }
.pick { display: block; padding: 2px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 400 var(--s-sub)/1.15 var(--display); letter-spacing: -0.02em; color: var(--soft-navy); transition: color 160ms ease, transform 160ms var(--ease-out); }
.pick:active { transform: scale(0.98); }
.pick[aria-pressed="true"] { color: var(--ink-navy); text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 0.18em; text-decoration-color: var(--gold-deep); }
@media (hover: hover) and (pointer: fine) { .pick:hover { color: var(--ink-navy); } }

/* ---------- generoso: ouro ---------- */
.perks { background: var(--gold); color: var(--ink); padding: 10px; }
.mosaic {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 8px;
  grid-template-areas:
    "h h h h h h p p p p p p"
    "h h h h h h p p p p p p"
    "l l l l l l p p p p p p"
    "l l l l l l w w w d d d"
    "c c c c c c w w w d d d"
    "c c c c c c w w w d d d"
    "s s s s s s w w w d d d"
    "s s s s s s w w w d d d";
}
.tile { position: relative; margin: 0; min-height: 0; overflow: clip; border-radius: var(--r); display: flex; flex-direction: column; }
.t-head { grid-area: h; background: var(--navy); color: var(--paper); padding: 28px; justify-content: center; }
.t-head h2 { font-size: var(--s-h2); line-height: 0.95; }
.t-help { grid-area: p; } .t-lives { grid-area: l; } .t-coins { grid-area: c; } .t-ship { grid-area: s; }
.t-win { grid-area: w; } .t-daily { grid-area: d; }
.c-navy { background: var(--navy); color: var(--paper); }
.c-crimson-deep { background: var(--crimson-deep); color: var(--paper); }
.c-crimson { background: var(--crimson); color: var(--paper); }
.c-sky { background: var(--sky); color: var(--ink-navy); }
.c-sky-deep { background: var(--navy-2); color: var(--paper); }
.c-emerald { background: var(--emerald); color: var(--paper); }
/* a imagem aparece sempre inteira: encaixa na área sem cortar e sem ampliar além do tamanho real */
.tile .pic { position: relative; flex: 1; min-height: 0; }
.pic img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-width: none; object-fit: scale-down; object-position: center; }
.tile figcaption { padding: 0 20px 16px; font-size: var(--s-small); line-height: 1.35; max-width: 40ch; }
.tile figcaption b { display: block; font: 400 22px/1.15 var(--display); letter-spacing: -0.01em; margin-bottom: 4px; }
.tile.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.side .pic { grid-column: 2; grid-row: 1; }
.side figcaption { grid-column: 1; grid-row: 1; align-self: end; padding: 20px 0 16px 20px; }

/* ---------- tripulação: painel madeira sobre ouro ---------- */
.crew { background: var(--gold); padding: 10px; }
.panel { position: relative; overflow: clip; height: 100%; border-radius: var(--r); background: var(--wood); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr 360px; grid-template-rows: auto 1fr; padding: clamp(28px, 6vh, 56px); column-gap: 40px; }
.panel h2 { grid-column: 1 / 3; font-size: var(--s-h2); line-height: 0.95; color: var(--parchment); }
/* piratas criados no editor do jogo, de corpo inteiro: sempre inteiros, ajustados pela proporção */
.crew-art { position: absolute; left: clamp(28px, 6vh, 56px); right: calc(360px + 40px + clamp(28px, 6vh, 56px)); bottom: clamp(20px, 4vh, 40px); height: calc(var(--page) * 0.6); pointer-events: none; }
.lineup { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.lineup img { flex: 0 1 auto; min-width: 0; height: 100%; width: auto; margin-inline: -1.5%; object-fit: contain; object-position: bottom; }
.crew-text { grid-column: 3; grid-row: 1 / 3; display: grid; align-content: start; gap: clamp(24px, 5vh, 48px); }
.crew-text h3 { font-size: var(--s-sub); color: var(--gold); margin-bottom: 8px; }
.crew-text p { font-size: 17px; line-height: 1.55; }
.crew-text .btn { justify-self: start; }

/* ---------- chefes: vinho ---------- */
.bosses { background: var(--villain); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(12px, 2.4vh, 24px); padding-block: clamp(24px, 6vh, 64px); }
.boss-head { grid-column: 1; grid-row: 1; display: grid; gap: 12px; }
.boss-head h2 { font-size: var(--s-h2); line-height: 0.95; color: var(--gold); }
.boss-head p { font-size: 17px; max-width: 40ch; }
.boss-stage { grid-column: 1 / 3; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; min-height: 0; }
.boss-art { position: relative; height: 100%; min-height: 0; }
.boss-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: scale-down; transition: opacity 180ms ease, transform 260ms var(--ease-out); }
.boss-art img.swapping { opacity: 0; transform: scale(0.94); }
.boss-info { display: grid; gap: 8px; max-width: 44ch; }
.boss-where { font-size: var(--s-small); font-weight: 800; color: #ffd0d8; }
.boss-info h3 { font-size: var(--s-h2); line-height: 0.95; }
.boss-title { font: 400 var(--s-sub)/1.1 var(--display); color: var(--gold); }
.boss-taunt { margin: 8px 0 0; padding: 16px 20px; background: var(--paper); color: var(--ink); border-radius: 18px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.boss-thumbs { grid-column: 1 / 3; grid-row: 3; justify-self: center; width: min(100%, 560px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.boss-thumb { aspect-ratio: 1; padding: 4px; border: 0; border-radius: 12px; background: #7a1530; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.boss-thumb img { width: 100%; height: 100%; object-fit: contain; }
.boss-thumb:active { transform: scale(0.95); }
.boss-thumb[aria-pressed="true"] { background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .boss-thumb:hover:not([aria-pressed="true"]) { background: #9a1d40; } }

/* ---------- mundos: esmeralda ---------- */
.worlds { background: var(--emerald); color: var(--paper); padding-block: clamp(24px, 7vh, 96px); display: flex; flex-direction: column; }
.worlds-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 5vh, 56px); }
.worlds-head h2 { font-size: var(--s-h2); line-height: 0.92; }
.worlds-head .soft { color: var(--soft-green); }
.worlds-body { display: grid; grid-template-columns: 200px 1fr minmax(240px, 300px); gap: 32px; align-items: start; }
.seas { display: grid; gap: 6px; }
.seas button { display: grid; gap: 2px; text-align: left; min-height: 60px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--emerald-2); color: var(--paper); cursor: pointer; font-weight: 800; font-size: 17px; line-height: 1.2; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.seas button small { font-weight: 700; font-size: 15px; color: var(--paper); }
.seas button:active { transform: scale(0.98); }
.seas button[aria-selected="true"] { background: #0a3d22; }
@media (hover: hover) and (pointer: fine) { .seas button:hover { background: var(--emerald-3); } .seas button[aria-selected="true"]:hover { background: #0a3d22; } }
.sea { display: grid; gap: 4px; }
.sea[hidden] { display: none; }
.band { display: grid; grid-template-columns: 92px 1fr auto 48px; align-items: center; gap: 18px; min-height: 70px; padding: 8px 14px 8px 20px; border: 0; border-radius: 10px; text-align: left; cursor: pointer; background: var(--emerald-2); color: var(--paper); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.band:nth-child(even) { background: #157142; }
.band:active { transform: scale(0.99); }
.band[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.band[aria-pressed="true"] small, .band[aria-pressed="true"] .range { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .band:hover:not([aria-pressed="true"]) { background: var(--emerald-3); } }
.range { font: 400 22px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--paper); }
.title { display: grid; font-weight: 800; font-size: 17px; line-height: 1.3; }
.title small { font-weight: 400; font-size: 15px; color: #e6f6eb; }
.el { font-size: 15px; font-weight: 700; }
.band img { width: 48px; height: 48px; }
.quote { display: grid; gap: 14px; }
.quote img { width: 168px; height: 168px; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.quote img.swapping { transform: scale(0.9) rotate(-8deg); opacity: 0; }
#quote-name { font: 400 var(--s-sub)/1.05 var(--display); color: #ffd75e; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 700; }
.quote-by { font-size: var(--s-small); color: var(--soft-green); }

/* ---------- duelo: quatro campos ---------- */
.duel { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; background: var(--sky); }
.field { position: relative; padding: 28px; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.f1 { background: var(--sky); color: var(--ink-navy); }
.f2 { background: var(--crimson); color: var(--paper); }
.f3 { background: var(--gold); color: var(--ink); }
.f4 { background: var(--wood); color: var(--paper); }
.duel h2 { font-size: var(--s-sub); line-height: 1.05; grid-row: 1; }
.card { grid-row: 2; align-self: center; justify-self: center; width: min(280px, 100%); background: var(--parchment); color: var(--ink); border: 4px solid #8b5a2b; border-radius: 18px; padding: 18px; display: grid; gap: 12px; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .field:hover .card { transform: translateY(-6px); } }
.card-k { font-size: 15px; font-weight: 800; color: #6b4a1e; }
.card-big { font: 400 var(--s-sub)/1 var(--display); color: var(--ink); }
.card-list { margin: 0; padding-left: 18px; font-size: 15px; font-weight: 700; }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font: 400 22px/1 var(--display); }
.who small { font-weight: 800; font-size: 15px; color: #6b4a1e; font-variant-numeric: tabular-nums; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 400 26px/1 var(--display); color: var(--paper); background: var(--crimson); border: 4px solid var(--gold-deep); }
.card-btn { justify-self: start; display: inline-grid; place-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #1a7a43; color: #fff; font-weight: 800; font-size: 15px; }
.vs { height: 22px; border-radius: 999px; background: #e0384f; overflow: clip; border: 3px solid var(--ink); }
.vs-you { display: block; height: 100%; width: var(--p); background: #2f7fe0; }
.vs-names { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.vs-names b { font: 400 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.coins { display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 400 var(--s-sub)/1 var(--display); color: #8a5a00; }
.coins img { width: 34px; height: 34px; }
.clause { grid-row: 3; font: 400 var(--s-sub)/1.1 var(--display); letter-spacing: -0.01em; max-width: 14ch; }

/* ---------- perguntas: navy ---------- */
.faq { background: var(--navy); color: var(--paper); padding-block: clamp(24px, 7vh, 96px); display: grid; grid-template-columns: 4fr 8fr; column-gap: clamp(24px, 4vw, 64px); row-gap: 8px; align-content: center; }
.faq h2 { grid-column: 1; grid-row: 1 / span 8; align-self: start; font-size: var(--s-h2); line-height: 1; }
.faq-more { display: none; }
.faq details { grid-column: 2; border-radius: var(--r); background: var(--navy-2); transition: background-color 200ms ease; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 24px; font-weight: 800; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 16px; height: 16px; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform 200ms var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.faq details[open] { background: var(--gold); color: var(--ink); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 20px; font-size: 17px; max-width: 58ch; }
.faq details a { font-weight: 800; }

/* ---------- jogar: ouro ---------- */
.go { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; overflow: clip; padding-top: 24px; background: var(--gold); color: var(--ink); text-decoration: none; border-radius: 28px 28px 0 0; }
.go:focus-visible { outline-offset: -8px; }
.go-line { grid-column: 1; max-width: 34ch; font-size: 22px; font-weight: 800; line-height: 1.35; }
.go-arrow { grid-column: 2; }
/* a perna do "g" desce abaixo da linha: espaço embaixo para ela não ser cortada pela borda da tela */
.go-word { grid-column: 1 / -1; align-self: end; padding-bottom: 0.2em; font: 400 clamp(110px, min(26vw, 44vh), 420px)/1 var(--display); letter-spacing: -0.045em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .go:hover { background: var(--navy); color: var(--gold); } }
.go:focus-visible { background: var(--navy); color: var(--gold); }
.go:active .go-word { transform: scale(0.99); transform-origin: left bottom; }

/* ---------- rodapé: navy ---------- */
.foot { background: var(--navy); color: var(--paper); padding-block: clamp(24px, 6vh, 64px) 24px; display: flex; flex-direction: column; }
.blocks { display: flex; gap: 4px; align-items: flex-end; flex: 1; min-height: 0; max-height: 46vh; margin: 0; }
.blocks .row { display: contents; }
.blocks b { flex: 1; height: var(--h); background: var(--c); border-radius: 6px; display: grid; place-items: end center; padding-bottom: 6%; font: 400 clamp(36px, 6vw, 100px)/1 var(--display); color: var(--navy); }
.blocks .row:last-child b:first-child { margin-left: clamp(12px, 2vw, 32px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 24px; margin-top: clamp(24px, 5vh, 56px); font-size: var(--s-small); font-weight: 700; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot-cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { text-decoration: underline; } }
.foot address { font-style: normal; display: grid; gap: 10px; align-content: start; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: clamp(20px, 4vh, 48px); font-size: 15px; }
.foot-last small { font-size: 15px; }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(150ms + var(--i) * 110ms); }
  .js .hero-foot { opacity: 0; animation: fade 600ms var(--ease-out) 520ms forwards; }
  .js .hero-pile img { animation: bob 5.5s var(--ease-in-out) infinite alternate; }
  .js .hero-pile .p2 { animation-delay: -1.2s; } .js .hero-pile .p3 { animation-delay: -2.4s; } .js .hero-pile .p4 { animation-delay: -0.6s; animation-duration: 6.5s; }
  .js .hero-pile .p5 { animation-delay: -3s; } .js .hero-pile .p6 { animation-delay: -1.8s; } .js .hero-pile .p7 { animation-delay: -4s; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -14px; } }

/* ---------- desktop estreito / tablet deitado ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .worlds-body { grid-template-columns: 170px 1fr; }
  .quote { display: none; }
  .boss-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr 1fr 300px; }
  .crew-art { right: calc(300px + 40px + clamp(28px, 6vh, 56px)); }
}

/* ---------- celular e tablet em pé: cada página é uma tela inteira ---------- */
@media (max-width: 900px) {
  :root { --s-h2: clamp(34px, min(10vw, 6vh), 64px); --s-sub: clamp(22px, min(6vw, 3.6vh), 30px); --s-lead: 19px; }
  .multi { height: auto; }
  .multi .pg { display: flex; flex-direction: column; position: relative; height: var(--page); }
  .bar .wide { display: none; }

  .hero { padding-bottom: 24px; }
  .hero-title { font-size: min(21vw, 13vh); margin-top: 6vh; }
  .hero-pile { right: var(--m); bottom: auto; top: 38%; width: min(64vw, 34vh); }
  .hero-foot { justify-self: start; align-items: flex-start; text-align: left; max-width: none; gap: 16px; }
  .hero-actions { align-items: flex-start; }
  .hero-btns { align-items: flex-start; }
  .hero-lede { font-size: var(--s-lead); line-height: 1.35; }

  .reel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch; gap: 14px; padding-block: 20px; }
  .reel-box { display: grid; place-items: center; grid-row: 2; min-height: 0; container-type: size; }
  .reel-text { display: contents; }
  .reel-text h2 { grid-row: 1; font-size: var(--s-h2); }
  .reel-text h2 br { display: none; }
  .reel-text p { grid-row: 3; font-size: 15px; font-weight: 700; line-height: 1.4; }
  .reel-text .btn { display: none; }
  /* a moldura fica do maior tamanho que cabe na largura e na altura, na proporção do vídeo */
  .reel-frame { width: min(100cqw, 100cqh * 540 / 730); height: auto; justify-self: center; border-width: 4px; border-radius: 20px; }

  .play { display: flex; flex-direction: column; gap: 14px; padding-block: 20px; }
  .play-list { order: -1; }
  .play-list h2 { display: none; }
  .play-stage { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; justify-content: center; }
  .board-wrap { width: min(86vw, calc(var(--page) * 0.42), 480px); align-self: center; }
  .disc { width: min(132%, 96vw); }
  .board-hud { margin-top: 8px; padding: 4px 4px 4px 14px; }
  .hud-btn { min-height: 40px; }
  .play-fact { gap: 6px; font-size: 15px; }
  .play-fact #fact-text { font-size: 17px; }
  .play-hint { display: none; }
  .play-status { font-size: 22px; min-height: 1.2em; }
  .picker { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .pick { font-size: var(--s-sub); }

  .perks { padding: 0; }
  .mosaic { display: block; height: auto; }
  .perks .pg { gap: 6px; padding: 6px; }
  .perks .tile { flex: 1 1 0; }
  .t-head { flex: 0 0 auto !important; padding: 20px; }
  .t-head h2 { font-size: var(--s-h2); }
  .tile.side { display: flex; }
  .side figcaption { padding: 0 16px 14px; align-self: auto; }
  .tile figcaption { padding: 0 16px 14px; font-size: 14px; }
  .tile figcaption b { font-size: 18px; }

  .crew { padding: 0; background: var(--wood); }
  .panel { display: block; height: auto; border-radius: 0; padding: 0; }
  .crew .pg { padding: 28px 22px 0; gap: 20px; }
  .panel h2 { font-size: var(--s-h2); }
  .crew-art { position: relative; left: auto; right: auto; bottom: auto; height: auto; flex: 1; min-height: 0; margin-bottom: 20px; }
  .lineup { flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px 0; }
  .lineup img { width: 31%; height: auto; max-height: 44%; margin: 0; }
  .lineup img:nth-child(-n + 2) { width: 42%; max-height: 54%; }
  .crew .pg:last-child { justify-content: center; padding-bottom: 28px; }
  .crew-text { gap: 28px; }

  .bosses { display: flex; flex-direction: column; gap: 12px; padding-block: 20px; }
  .boss-head p { display: none; }
  .boss-stage { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; gap: 10px; }
  .boss-art { flex: 1; min-height: 0; height: auto; }
  .boss-info { gap: 4px; }
  .boss-info h3 { font-size: var(--s-sub); }
  .boss-title { font-size: 18px; }
  .boss-taunt { font-size: 15px; padding: 10px 14px; margin-top: 4px; }
  .boss-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .boss-thumb { padding: 2px; border-radius: 8px; }

  .worlds { padding-block: 20px; }
  .worlds-head { margin-bottom: 14px; align-items: center; }
  .worlds-head .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .worlds-body { grid-template-columns: 1fr; gap: 10px; }
  .seas { grid-template-columns: repeat(5, 1fr); }
  .seas button { min-height: 48px; padding: 6px; font-size: 16px; text-align: center; place-items: center; }
  .seas button small, .seas .long { display: none; }
  .quote { display: none; }
  .band { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 10px; min-height: 56px; padding: 8px 12px; }
  .band .range { font-size: 17px; }
  .band .el { display: none; }
  .band img { width: 40px; height: 40px; }
  .title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .duel { display: block; background: none; }
  .duel .pg { display: flex; flex-direction: column; }
  .field { flex: 1 1 0; padding: 20px; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; align-content: start; }
  .duel h2 { grid-row: 1; font-size: var(--s-sub); }
  .clause { grid-row: 2; font-size: 22px; max-width: 22ch; }
  .card { grid-row: 3; justify-self: start; align-self: center; width: min(300px, 100%); padding: 14px; gap: 8px; }

  .faq { display: block; padding: 0; }
  .faq .pg { padding: 24px var(--m); gap: 8px; justify-content: center; }
  .faq h2, .faq-more { display: block; font-size: var(--s-h2); margin-bottom: 12px; }
  .faq-more { font-family: var(--display); font-weight: 400; }
  .faq summary { font-size: 17px; min-height: 58px; padding: 10px 18px; }
  .faq details p { padding: 0 18px 16px; font-size: 16px; }

  .go-line { font-size: 17px; max-width: 24ch; }
  .go-arrow { width: 32px; height: 32px; }
  .go-word { font-size: min(30vw, 34vh); }

  .blocks { flex-direction: column; flex-wrap: nowrap; gap: 4px; max-height: none; flex: 0 0 auto; }
  .blocks .row { display: flex; gap: 4px; align-items: flex-end; width: 100%; height: 12vh; }
  .blocks b { font-size: 8vw; }
  .blocks .row:last-child b:first-child { margin-left: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .foot address { grid-column: 1 / -1; }
  .foot-last { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
}

.soon a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.reel-frame { position: relative; }
.reel-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: rgba(26, 15, 46, 0.45); color: var(--paper); border: 0; cursor: pointer; }
.reel-play[hidden] { display: none; }
.reel-play svg { width: 72px; height: 72px; padding: 16px 12px 16px 20px; border-radius: 50%; background: var(--gold); color: var(--ink); }
