/* Site do Puxa-Palavras: as mesmas fontes (Fredoka e Outfit, licença OFL, servidas daqui), cores e peças do app.
   Nada de fora: sem fontes, scripts ou rastreadores de terceiros. */
@font-face { font-family: "Fredoka"; src: url("fontes/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fontes/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #E6F7F6; --mint: #D3F2EA; --lilac: #E7E1FC;
  --title: #323232; --ink: #1F2A30; --ink-2: #5E6B72;
  --cream: #FFF8E6; --cream-edge: #E3D7BC;
  --sky: #8FDDE8; --sky-dark: #2C8FA6; --grape: #B9A8FA; --grape-dark: #6E55D8;
  --coral: #FFB39B; --coral-dark: #D9623F; --sun: #FFD45C; --sun-dark: #D99A00;
  --ok: #0F8A7E; --red: #E8473C;
  --depth: 4px;
  --display: "Fredoka", "Avenir Next Rounded", system-ui, sans-serif;
  --text: "Outfit", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--mint) 55%, var(--lilac) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 980px; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-left)) 64px max(18px, env(safe-area-inset-right)); }
a { color: var(--ok); font-weight: 600; }

/* Cabeçalho com o logo de peças */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.topo img { height: 64px; width: auto; display: block; }
.topo nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Títulos em letreiro: branco com borda escura em volta */
h1, h2, h3, .letreiro {
  font-family: var(--display); font-weight: 700; color: #fff; letter-spacing: .005em; text-wrap: balance;
  --b: var(--title);
  text-shadow: 1.3px 0 var(--b), -1.3px 0 var(--b), 0 1.3px var(--b), 0 -1.3px var(--b),
               .95px .95px var(--b), -.95px .95px var(--b), .95px -.95px var(--b), -.95px -.95px var(--b);
}
h1 { font-size: clamp(36px, 7vw, 58px); line-height: 1.05; margin: 10px 0 12px; }
h2 { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.1; margin: 0 0 10px; }
h3 { font-size: 21px; margin: 0 0 4px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 18px; }

/* Laje: superfície com espessura 3D embaixo (o mesmo do app) */
.laje { border-radius: 28px; padding: 22px; background: var(--cream); box-shadow: 0 var(--depth) 0 var(--cream-edge); }
.laje.sky { background: var(--sky); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--sky) 70%, #000); }
.laje.grape { background: var(--grape); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--grape) 70%, #000); }
.laje.coral { background: var(--coral); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--coral) 70%, #000); }
.laje.sun { background: var(--sun); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--sun) 70%, #000); }
.laje.sky h2, .laje.sky h3 { --b: var(--sky-dark); }
.laje.grape h2, .laje.grape h3 { --b: var(--grape-dark); }
.laje.coral h2, .laje.coral h3 { --b: var(--coral-dark); }
.laje.sun h2, .laje.sun h3 { --b: var(--sun-dark); }

/* Botões em pílula que afundam a espessura ao tocar */
.pilula {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600;
  font-size: 16px; color: var(--title); background: var(--cream); border-radius: 99px; padding: 9px 18px;
  box-shadow: 0 var(--depth) 0 var(--cream-edge); transition: transform .08s, box-shadow .08s;
}
.pilula:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 var(--cream-edge); }
.pilula.forte { background: #FFB21F; color: #fff; box-shadow: 0 var(--depth) 0 #C98A00; font-size: 19px; padding: 13px 26px; text-shadow: 0 1.5px #C98A00; }
.pilula:focus-visible { outline: 3px solid var(--grape-dark); outline-offset: 3px; }

/* Abertura: texto e o carrinho no cartão com raios */
.abertura { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; margin: 18px 0 44px; }
.cartao-raios {
  position: relative; border-radius: 40px; aspect-ratio: 1 / .92; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(from 0deg at 50% 62%, #B9A8FA 0 10deg, #C6B7FC 10deg 20deg);
  box-shadow: 0 var(--depth) 0 color-mix(in srgb, #B9A8FA 70%, #000);
}
.cartao-raios img { width: 82%; height: auto; margin-top: 8%; }
@media (prefers-reduced-motion: no-preference) {
  .cartao-raios::before { content: ""; position: absolute; inset: -40%; background: inherit; animation: gira 90s linear infinite; }
  .cartao-raios img { position: relative; }
  @keyframes gira { to { transform: rotate(360deg); } }
}
.loja-nota { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* Exemplo de corrente com as peças do jogo */
.corrente { display: grid; justify-items: center; gap: 6px; margin: 14px 0 4px; }
.fileira { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 20px; background: #fff; box-shadow: 0 var(--depth) 0 #DDD3BE; }
.fileira.inicio { background: var(--sky); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--sky) 70%, #000); }
.fileira.fim { background: var(--coral); box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--coral) 70%, #000); }
.fileira img { width: 34px; height: 34px; object-fit: contain; }
.peca {
  width: 38px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--title);
  box-shadow: 0 var(--depth) 0 var(--cream-edge);
}
.expressao { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ok); background: #fff; border: 2px solid #5FC8B4; border-radius: 99px; padding: 3px 14px; }

/* Grades de cartões */
.secao { margin: 44px 0; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.modo { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.modo img { width: 56px; height: 56px; object-fit: contain; }
.modo p { margin: 0; font-size: 15px; color: var(--ink); opacity: .82; }
.trofeus { display: flex; gap: 14px; justify-content: center; align-items: flex-end; margin: 10px 0 4px; }
.trofeus img { width: 30%; max-width: 120px; height: auto; }
.duas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lista { margin: 8px 0 0; padding-left: 20px; }
.lista li { margin: 4px 0; }

/* Páginas de texto (privacidade, suporte) */
.texto { max-width: 720px; }
.texto h2 { margin-top: 34px; font-size: 26px; }
.texto p { margin: 8px 0 14px; }
.texto .laje { margin: 12px 0; }

footer { margin-top: 56px; padding-top: 18px; border-top: 2px dashed color-mix(in srgb, var(--grape) 60%, #fff); font-size: 14px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-2); }

@media (max-width: 760px) {
  .abertura { grid-template-columns: 1fr; }
  .topo img { height: 52px; }
  .peca { width: 32px; height: 34px; font-size: 18px; }
}
