/* Tela inicial da Mendigames: uma coluna, cartões de "vaga" para cada jogo. */
@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #120a26;
  --panel: #2a1b55;
  --panel2: #3d2a78;
  --yellow: #ffd23f;
  --pink: #ff3d7f;
  --cyan: #3fe0ff;
  --lime: #8cff5a;
  --muted: #c4bbec;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font: 16px/1.5 var(--text);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px);
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding-block: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro { display: flex; flex-direction: column; gap: 14px; }
.studio { margin: 0; font: 10px/1.6 var(--pixel); color: var(--cyan); letter-spacing: .08em; }
h1 {
  margin: 0;
  font: 22px/1.5 var(--pixel);
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--pink);
  text-wrap: balance;
}
.lead { margin: 0; font-size: 17px; color: #fff; max-width: 60ch; }

.section-title { margin: 0 0 14px; font: 11px/1.7 var(--pixel); color: var(--muted); letter-spacing: .06em; text-wrap: balance; }

.games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.game {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas: 'thumb body' 'play play';
  gap: 12px 14px;
  padding: 14px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--panel2), 6px 6px 0 0 #000;
  transition: transform .12s, box-shadow .12s;
}
.game:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 3px var(--yellow), 8px 8px 0 0 #000; }
.game:active { transform: translate(2px, 2px); box-shadow: 0 0 0 3px var(--yellow), 2px 2px 0 0 #000; }
.thumb { grid-area: thumb; width: 88px; height: 88px; image-rendering: pixelated; box-shadow: 0 0 0 3px var(--ink); }
.body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.title { font: 13px/1.5 var(--pixel); color: var(--yellow); }
.pitch { font-size: 15px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips span { font-size: 12px; padding: 2px 8px; background: var(--ink); color: var(--muted); }
.play {
  grid-area: play;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  background: var(--yellow); color: var(--ink);
  font: 12px/1 var(--pixel);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25);
}
.soon {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  border: 3px dashed var(--panel2);
  color: var(--muted);
}
.soon .title { color: var(--muted); }

.support { display: flex; flex-direction: column; gap: 12px; background: var(--panel); padding: 16px; box-shadow: 0 0 0 3px var(--pink); }
.support[hidden], .cta[hidden] { display: none; }
.support .section-title { margin: 0; color: var(--pink); }
.support p { margin: 0; }
.pix { background: var(--ink); padding: 12px; }
.pix span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pix code { display: block; font: 600 15px/1.35 ui-monospace, Menlo, Consolas, monospace; color: var(--lime); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.copy {
  min-height: 48px; border: 0; cursor: pointer;
  background: var(--pink); color: #fff;
  font: 11px/1 var(--pixel);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25);
}
.status { min-height: 1.5em; font-size: 14px; color: var(--cyan); }

.foot { font-size: 13px; color: var(--muted); }

@media (min-width: 560px) {
  h1 { font-size: 28px; }
  .game { grid-template-columns: 112px 1fr auto; grid-template-areas: 'thumb body play'; align-items: center; }
  .thumb { width: 112px; height: 112px; }
  .play { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .game, .game:hover, .game:active { transition: none; transform: none; }
}

/* ---- apoio ---- */
.back { color: var(--cyan); font-weight: 600; text-underline-offset: 4px; align-self: flex-start; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 16px;
  background: var(--pink); color: #fff; text-decoration: none;
  font: 12px/1.4 var(--pixel); text-align: center;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), 0 0 0 3px var(--ink), 6px 6px 0 0 #000;
}
.cta:active { transform: translate(2px, 2px); }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount, .quick a {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  min-height: 72px; padding: 12px; border: 0; cursor: pointer; text-align: left; text-decoration: none;
  background: var(--panel); color: #fff;
  box-shadow: 0 0 0 3px var(--panel2);
}
.amount b, .quick b { font: 14px/1 var(--pixel); color: var(--yellow); font-weight: 400; }
.amount span, .quick span { font-size: 13px; color: var(--muted); }
.amount[aria-checked='true'] { box-shadow: 0 0 0 3px var(--yellow); background: var(--panel2); }
.other { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.other input {
  min-height: 48px; padding: 0 12px; font: 600 18px var(--text);
  background: var(--panel); color: #fff; border: 0; box-shadow: 0 0 0 3px var(--panel2);
}
.other input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pay { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.pay[hidden] { display: none; }
.copy.big { min-height: 60px; font-size: 13px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.qr-wrap { display: flex; gap: 14px; align-items: center; background: var(--panel); padding: 14px; }
.qr { flex: none; width: 150px; height: 150px; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-wrap p { margin: 0; font-size: 14px; }
.raw summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.raw p { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.raw code { display: block; padding: 10px; background: var(--panel); font: 13px/1.35 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick a { min-height: 64px; }
@media (max-width: 420px) { .qr-wrap { flex-direction: column; text-align: center; } .qr { width: 200px; height: 200px; } }
