/* laurinha.net: "Caderno de adesivos"
   Caderno amarelo de bolinhas com adesivos tortinhos (contorno grosso, sombra chapada e fita). */
:root {
  --y: #ffd43b;
  --y-dot: #f5bf0a;
  --ink: #3a2a17;
  --paper: #fffdf5;
  --pink: #ff6f91;
  --sky: #4cc3ff;
  --leaf: #4ccf7a;
  --orange: #ff9f1c;
  --display: "Gluten", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--y);
  background-image: radial-gradient(var(--y-dot) 2.2px, transparent 2.6px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  padding: 28px 16px 56px;
}
img { max-width: 100%; height: auto; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: 1000px; margin: 0 auto; display: grid; gap: 40px; }

/* ---------- topo ---------- */
.top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.sun-sticker {
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-items: center; transform: rotate(-8deg);
}
.sun-sticker svg { width: 84px; height: 84px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
h1 {
  font-family: var(--display); font-weight: 800; margin: 0;
  font-size: clamp(48px, 9vw, 96px); line-height: .95; letter-spacing: -1px;
  text-wrap: balance;
}
h1 .dot { color: var(--pink); }
h1 .net { color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.tagline { margin: 10px 0 0; font-size: 20px; font-weight: 800; }
.tagline mark { color: var(--ink); background: var(--paper); padding: 2px 10px; border-radius: 8px; border: 3px solid var(--ink); }

h2 {
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.2; margin: 0 0 18px;
  display: inline-block; background: var(--ink); color: var(--y);
  padding: 4px 18px 6px; border-radius: 14px; transform: rotate(-1.5deg);
}

/* ---------- adesivos (cards) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.card {
  position: relative; background: var(--paper); border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 7px 7px 0 var(--ink); padding: 18px; display: grid; gap: 12px; align-content: start;
  color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:nth-child(odd) { transform: rotate(-1.6deg); }
.card:nth-child(even) { transform: rotate(1.3deg); }
a.card:hover, a.card:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 10px 12px 0 var(--ink); outline: none; }
a.card:active { transform: rotate(0) translateY(0); box-shadow: 4px 4px 0 var(--ink); }
.tape {
  position: absolute; top: -16px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, .65); border: 2px dashed rgba(58, 42, 23, .25);
}
.art { border-radius: 16px; border: 3px solid var(--ink); aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #fff; }
.art svg { width: 46%; height: auto; }
.art.hp { background: #2c3a7a; }
.art.pig { background: #bfe9ff; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 4px 0 0; line-height: 1.05; }
.card p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.tag.a { background: var(--leaf); }
.tag.b { background: var(--sky); }
.tag.c { background: var(--orange); }
.btn {
  justify-self: start; display: inline-block; font-family: var(--display); font-weight: 800; font-size: 22px;
  background: var(--pink); color: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  padding: 6px 20px 8px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.alt { background: var(--sky); color: var(--ink); }
a.btn:hover, a.btn:focus-visible { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); outline: none; }
a.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.wide { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 22px; }
.wide .art { aspect-ratio: auto; }
.wide .art img { width: 100%; }
.stack { display: grid; gap: 12px; }

footer { text-align: center; font-family: var(--display); font-size: 22px; font-weight: 800; }

/* ---------- botão Início (todas as páginas, menos a inicial) ---------- */
.home-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none;
  background: var(--y); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 16px 6px 10px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.home-link svg { width: 24px; height: 24px; }
.home-link:hover, .home-link:focus-visible { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); outline: none; }

/* ---------- página da Vila Neblina ---------- */
.card b { font-weight: 900; }

/* Tamanhos: número grande + legenda */
.sizes .card { gap: 4px; }
.sizes .num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; }
.sizes .lbl { font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.sizes .card:nth-child(1) .num { color: var(--pink); }
.sizes .card:nth-child(2) .num { color: #e0441b; }
.sizes .card:nth-child(3) .num { color: #1d8fd1; }

/* Passo a passo com bolinhas numeradas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; max-width: 70ch; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
  background: var(--pink); color: var(--paper); border: 3px solid var(--ink);
}
.steps li span { padding-top: 7px; }

/* Animação: as 9 peças A4 caindo e encaixando na cartolina (66 × 50 cm) */
.board-wrap { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 6px 8px; }
.board-wrap .cm { font-weight: 900; font-size: 13px; color: var(--ink); opacity: .8; text-align: center; }
.board-wrap .cm.v { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }
.board-wrap .cm.h { grid-column: 2; }
.board {
  position: relative; aspect-ratio: 66 / 50; border-radius: 6px;
  background: #fff; border: 3px dashed rgba(58, 42, 23, .45);
}
.piece {
  position: absolute; overflow: hidden;
  left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.piece img {
  position: absolute; max-width: none;
  width: calc(100% / var(--w)); height: calc(100% / var(--h));
  left: calc(-100% * var(--x) / var(--w)); top: calc(-100% * var(--y) / var(--h));
}
.car {
  position: absolute; width: 11.36%; height: 6%;   /* 7,5 × 3 cm na escala de 66 × 50 cm */
  left: 18%; top: 58%;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, .35));
}
.car svg { width: 100%; height: 100%; display: block; }
.car-lane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.board.play .piece {
  animation: drop .9s cubic-bezier(.3, 1.4, .5, 1) both;
  animation-delay: calc(var(--i) * .38s);
}
@keyframes drop {
  0%   { opacity: 0; transform: translate(var(--dx), -55%) rotate(var(--r)) scale(1.12); box-shadow: 0 18px 22px rgba(0, 0, 0, .25); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
}
.board.anim .car { opacity: 0; }   /* com animação, o carrinho só aparece quando vai andar */
.board.anim.play .car { opacity: 1; animation: drive 3.2s ease-in-out 4.4s both; }
@keyframes drive {
  0%   { left: -13%; }
  100% { left: 102%; }
}
.board.out .piece, .board.out .car { opacity: 0; transition: opacity .45s ease; }
.caption { font-size: 15px; margin: 0; }
.caption .dot-car { display: inline-block; width: 26px; height: 11px; vertical-align: -1px; }

@media (max-width: 720px) {
  .top { grid-template-columns: 1fr; }
  .wide { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
