:root {
  --pink: #FF66C4;
  --pink-soft: #FF9CC8;
  --yellow: #FFDE59;
  --gold: #F0B30E;
  --ink: #141414;
  --cream: #FFF9EC;
  --paper: #FFFFFF;
  --rule: #EEE3CF;
  --text-2: #4F4840;
  --danger: #C92A6B;
  --pixel: 'Silkscreen', 'Courier New', monospace;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }
/* Keep anchored sections clear of the sticky header. */
main section, #encomenda { scroll-margin-top: 84px; }
body {
  overflow-x: clip;
  margin: 0;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; margin: 0; }
h1 { font-size: clamp(32px, 8vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(24px, 5vw, 34px); line-height: 1.1; }

.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink);
}
.tag-ink { color: var(--yellow); background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 700 16px var(--sans); color: var(--ink); text-decoration: none; text-align: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-pink { background: var(--pink); }
.btn-block { display: flex; width: 100%; }

.card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 20px; }
.card-title { font-size: 20px; line-height: 1.15; }
.note { margin: 0; padding: 14px; color: var(--text-2); background: var(--cream); border: 2px dashed var(--rule); }
.hint { margin: 0; font-size: 13px; color: var(--text-2); }
.alert { margin: 0; padding: 10px 12px; font-size: 14px; color: #fff; background: var(--ink); box-shadow: 3px 3px 0 var(--danger); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 2px solid var(--ink); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--pink); border: 2px solid var(--ink); }
.brand-mark img { width: 40px; height: auto; display: block; }
.brand-name { font: 400 15px/1.1 var(--pixel); }
.order-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.order-pill-count { padding: 2px 8px; font-size: 13px; line-height: 1.2; background: var(--pink); border: 2px solid var(--ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-block: 40px 32px; }
.hero-text { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead { margin: 0; max-width: 46ch; font-size: 18px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-art { flex: 1 1 240px; display: flex; justify-content: center; }
.hero-frame {
  width: 100%; max-width: 340px; aspect-ratio: 376 / 316;
  display: grid; place-items: center;
  background: var(--pink); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--ink);
}
.hero-frame img { display: block; width: 92%; height: auto; }

/* Game section */
.game-section { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 8px 32px; }
.game-intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.game-intro p { margin: 0; max-width: 40ch; }
.game-holder { flex: 999 1 340px; min-width: 0; max-width: 780px; box-shadow: 6px 6px 0 var(--ink); }

/* Shop */
.section-head { margin-bottom: 20px; }
.section-head p { margin: 8px 0 0; }
.section-title { margin-bottom: 20px; }
#fornadas { padding-block: 24px 40px; }
.shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.lots { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.lots > .note { grid-column: 1 / -1; }
.lot { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.lot.picked { box-shadow: 4px 4px 0 var(--pink); }
.lot-head { display: flex; align-items: center; gap: 14px; }
.lot-art { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--ink); }
.lot-art svg { width: 44px; height: auto; display: block; }
.lot-name { font-size: 18px; line-height: 1.15; }
.lot-batch { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.lot-price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.lot-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lot-price { font: 400 28px/1.1 var(--pixel); }
.lot-left { padding: 4px 8px; font-size: 13px; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); }
.lot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px dashed var(--rule); }
.stepper { display: flex; align-items: center; }
.stepper button {
  width: 44px; height: 44px;
  font: 700 22px/1 var(--sans); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
}
.stepper button.plus { background: var(--yellow); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { display: grid; place-items: center; min-width: 52px; height: 44px; font: 400 20px var(--pixel); border-block: 2px solid var(--ink); }
.lot-sub { text-align: right; }
.lot-sub span { display: block; font-size: 12px; color: var(--text-2); }

.order { flex: 1 1 320px; min-width: 0; }
.order > div { display: flex; flex-direction: column; gap: 16px; }
.order form { display: flex; flex-direction: column; gap: 16px; }
.order-lines { margin: 0; padding: 0; list-style: none; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; font-weight: 700; }
.order-total strong { font: 400 24px var(--pixel); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 48px; padding: 0 12px; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
.input:focus { outline: 3px solid var(--yellow); outline-offset: 0; }

.steps-mini { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps-mini li { display: flex; align-items: center; gap: 12px; }
.num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; font: 400 14px var(--pixel); background: var(--paper); border: 2px solid var(--ink); }
.num-ink { color: var(--yellow); background: var(--ink); }
.num-pink { background: var(--pink); }
.num-yellow { background: var(--yellow); }

/* How it works */
#como-funciona { padding-block: 24px 56px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--paper); border: 2px solid var(--ink); }
.steps .num { width: 40px; height: 40px; font-size: 18px; }
.steps .muted { font-size: 15px; }

/* Footer */
.footer { color: #ECE6DC; background: var(--ink); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; padding-block: 32px 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.footer-brand { font: 400 16px var(--pixel); color: var(--yellow); }
.footer-text { margin: 6px 0 0; font-size: 14px; color: #BDB5A8; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #BDB5A8; }
.footer-value { margin: 6px 0 0; font-size: 15px; white-space: pre-line; }
.footer a { color: var(--yellow); }
.privacy { margin: 0; padding: 14px; font-size: 13px; border: 2px dashed #3A3A3A; }

/* ---------- Corrida do Miau ---------- */
.game { width: 100%; font-family: var(--pixel); color: var(--ink); background: var(--cream); user-select: none; -webkit-user-select: none; }
.game-hud { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; color: var(--yellow); background: var(--ink); border: 2px solid var(--ink); }
.game-hud-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.game-score { font-size: 15px; letter-spacing: .04em; }
.game-mult { color: var(--pink); }
.game-lives { display: flex; gap: 4px; }
.game-lives span { display: block; width: 20px; }
.game-buttons { display: flex; gap: 6px; }
.game-buttons button { min-width: 44px; min-height: 36px; padding: 0 8px; font: 400 12px var(--pixel); color: var(--ink); background: var(--yellow); border: 2px solid var(--yellow); border-radius: 0; cursor: pointer; }
.game-buttons button[data-pause] { background: var(--pink); border-color: var(--pink); }
.game-buttons button:disabled { opacity: .5; cursor: not-allowed; }
.game-meter { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.game-bar { position: relative; flex: 1 1 auto; height: 10px; background: #3A3A3A; border: 2px solid #FEF6E3; }
.game-bar span { position: absolute; inset: 0 auto 0 0; background: var(--pink); }
.game-level { color: #FEF6E3; }

.game-stage {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  margin: 0; padding: 0; overflow: hidden; container-type: inline-size;
  font: inherit; color: inherit; text-align: left;
  background: var(--pink); border: 2px solid var(--ink); border-top: 0; border-radius: 0;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.game-stage:focus-visible { outline: 3px solid var(--yellow); outline-offset: -5px; }
.game-stage > *, .game-layer > * { position: absolute; }
.game-layer { position: absolute; inset: 0; pointer-events: none; }
.g-band1 { left: 0; right: 0; top: 52%; height: 36%; background: #FF8FD0; }
.g-band2 { left: 0; right: 0; top: 72%; height: 16%; background: #FFB3DF; }
.g-sun { left: 78%; top: 9%; width: 10%; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.g-ground { left: 0; right: 0; top: 88%; bottom: 0; background: var(--yellow); border-top: 2px solid var(--ink); }
.g-tile { top: 93%; height: 3%; width: 3.75%; background: var(--gold); }
.g-sprite { display: block; }
.g-cat > span { position: absolute; inset: 0 auto auto 0; width: 100%; }
.g-shield { box-sizing: border-box; border: 0.7cqw dashed var(--yellow); outline: 0.35cqw solid var(--ink); }
.g-pop { font-size: 3.8cqw; line-height: 1; white-space: nowrap; text-shadow: 0.4cqw 0.4cqw 0 var(--yellow); }
.g-pop.big { font-size: 4.4cqw; }
.g-pop.heart { width: 3.2%; }
.g-chip { left: 2%; display: flex; flex-direction: column; gap: 0.5cqw; width: 26%; padding: 0.8cqw 1.2cqw; color: var(--yellow); background: var(--ink); font-size: 2.6cqw; line-height: 1; }
.g-chip i { display: block; height: 1cqw; background: #3A3A3A; }
.g-chip i b { display: block; height: 100%; background: var(--yellow); }
.g-banner { left: 50%; top: 30%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1cqw; max-width: 70%; padding: 1.6cqw 3cqw; text-align: center; background: var(--ink); border: 0.5cqw solid var(--yellow); }
.g-banner-name { font-size: 4.8cqw; line-height: 1; color: var(--yellow); }
.g-banner-desc { font: 700 2.8cqw var(--sans); color: #FEF6E3; }
.g-flash { inset: 0; background: #E4409E; opacity: 0; pointer-events: none; }
.g-overlay { left: 0; right: 0; top: 0; bottom: 12%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center; background: rgba(20, 20, 20, .45); }
.g-title { font-size: 8cqw; line-height: 1; color: var(--yellow); text-shadow: 0.6cqw 0.6cqw 0 var(--ink); }
.g-sub { min-height: 4cqw; font-size: 3.6cqw; color: #FEF6E3; text-shadow: 0.4cqw 0.4cqw 0 var(--ink); }
.g-help { max-width: 84%; font: 700 2.9cqw/1.3 var(--sans); color: #FEF6E3; }
.g-best { font-size: 3.2cqw; color: var(--pink-soft); }
.g-new { padding: 0.6cqw 1.4cqw; font-size: 3cqw; background: var(--yellow); }
.g-scan { inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(20, 20, 20, .07) 0, rgba(20, 20, 20, .07) 1px, transparent 1px, transparent 3px); }

.game-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 2px solid var(--ink); border-top: 0; }
.game-tally > div { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 6px; }
.game-tally > div + div { border-left: 2px solid var(--ink); }
.game-tally .icon { flex: none; width: 26px; }
.game-tally strong { display: block; font-weight: 400; font-size: 15px; }
.game-tally small { display: block; font: 12px var(--sans); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.game-legend { color: #FEF6E3; background: var(--ink); border: 2px solid var(--ink); border-top: 0; }
.game-legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.game-legend-grid > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.game-legend .icon { flex: none; width: 30px; }
.game-legend span { font: 12px/1.25 var(--sans); }
.game-legend strong { font: 400 12px var(--pixel); color: var(--yellow); }
.game-legend p { margin: 0; padding: 0 10px 10px; font: 12px var(--sans); color: #BDB5A8; }

@media (max-width: 420px) {
  .game-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tally > div:nth-child(3) { border-left: 0; }
  .game-tally > div:nth-child(n + 3) { border-top: 2px solid var(--ink); }
}

/* ---------- Miaus de universos alternativos brincando nas laterais ---------- */
.side-cats { display: none; }

@media (min-width: 1600px) {
  body { position: relative; }
  main, .footer { position: relative; z-index: 1; }
  .side-cats { --cat-size: clamp(150px, 10vw, 210px); display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  /* site.js draws --cat-x in [-1, 1] on each load so the cats never line up the same way. */
  .side-cat {
    --gutter: calc((100% - 1120px) / 2);
    --room: calc((var(--gutter) - var(--cat-size)) / 2 - 16px);
    position: absolute; width: var(--cat-size); height: auto; margin-top: var(--cat-y, 0px);
  }
  /* Cats on the left are mirrored so every cat faces the content. */
  .side-cat:nth-child(odd) { left: calc(var(--gutter) / 2 - var(--cat-size) / 2 + var(--cat-x, 0) * var(--room)); transform: scaleX(-1); }
  .side-cat:nth-child(even) { right: calc(var(--gutter) / 2 - var(--cat-size) / 2 + var(--cat-x, 0) * var(--room)); }
  .side-cat-1 { top: 9%; }
  .side-cat-2 { top: 26%; }
  .side-cat-3 { top: 44%; }
  .side-cat-4 { top: 61%; }
  .side-cat-5 { top: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
