@font-face { font-family: 'PS2P'; src: url('../fonts/PressStart2P.ttf'); font-display: swap; }
:root {
  --bg: #07050c; --night: #0b0820; --panel: rgba(22, 17, 46, .78); --panel2: rgba(34, 27, 70, .78); --line: rgba(255,255,255,.12); --line2: rgba(224,192,96,.35);
  --gold: #e0c060; --gold2: #ffe9a8; --gold3: #8a6a1c; --violet: #8b6cff; --text: #f1ecff; --muted: #aaa1cc; --red: #ff9aa8; --green: #8fe0a0;
  --px: 'PS2P', ui-monospace, monospace; --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--gold2); }
img, canvas { max-width: 100%; }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
canvas.scene { width: 100%; height: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, 3vw); }
h1, h2, h3 { font-family: var(--px); font-weight: 400; line-height: 1.45; margin: 0 0 .7em; text-wrap: balance; }
h1 { font-size: clamp(22px, 5vw, 46px); color: var(--gold2); text-shadow: 0 4px 0 #5a3d12, 0 0 30px rgba(224,192,96,.45); }
h2 { font-size: clamp(15px, 2.6vw, 22px); color: var(--gold); }
h3 { font-size: 12px; color: var(--gold2); }

/* ---------------------------------------------------------------- céu */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse 90% 60% at 50% -10%, #2a1f6e 0%, #120d36 45%, #07050c 100%); }
.stars { position: absolute; inset: -50% 0 0; background-repeat: repeat; }
.stars.s1 { background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 80px, #cfd8ff, transparent), radial-gradient(1.5px 1.5px at 150px 20px, #ffe9a8, transparent), radial-gradient(1px 1px at 60px 140px, #fff, transparent); background-size: 180px 180px; animation: tw 6s ease-in-out infinite alternate, drift 160s linear infinite; }
.stars.s2 { background-image: radial-gradient(1px 1px at 40px 60px, #fff, transparent), radial-gradient(2px 2px at 120px 110px, #bcd, transparent); background-size: 260px 260px; animation: tw 9s ease-in-out infinite alternate-reverse, drift 240s linear infinite; }
@keyframes tw { from { opacity: .3; } to { opacity: .95; } }
@keyframes drift { to { transform: translateY(50%); } }
.moon { position: absolute; left: 50%; top: 70px; translate: -50% 0; width: clamp(120px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fffbe6, #f0e2a8 55%, #c9b36a); box-shadow: 0 0 120px 40px rgba(255,233,168,.20), 0 0 30px 6px rgba(255,233,168,.35); opacity: .22; animation: glow 7s ease-in-out infinite alternate; }
.moon::after { content: ''; position: absolute; left: 58%; top: 26%; width: 16%; height: 16%; border-radius: 50%; background: rgba(160,140,80,.35); box-shadow: -60px 50px 0 -3px rgba(160,140,80,.25), -20px 90px 0 -6px rgba(160,140,80,.25); }
@keyframes glow { to { opacity: .32; transform: scale(1.03); } }
.mist { position: absolute; left: -10%; right: -10%; bottom: -10%; height: 40%; background: radial-gradient(ellipse at 50% 100%, rgba(139,108,255,.18), transparent 70%); }

/* ---------------------------------------------------------------- topo */
.top { position: sticky; top: 0; z-index: 10; background: rgba(9,6,22,.72); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 10px; line-height: 1.5; color: var(--gold2); text-decoration: none; }
.brand img { image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(224,192,96,.5)); }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
nav a:hover, nav a.on { background: rgba(255,255,255,.08); color: var(--gold2); }
nav a.pill { margin-left: 6px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1030; box-shadow: 0 3px 0 var(--gold3); }
nav a.pill:hover { filter: brightness(1.06); }
nav a[hidden] { display: none; }
/* rolou a página: cabeçalho mais fino e mais opaco */
.top { transition: background .25s, box-shadow .25s; }
.top-in { transition: min-height .25s; }
.top.scrolled { background: rgba(9,6,22,.9); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.top.scrolled .top-in { min-height: 56px; }
/* barra de navegação de baixo: só no celular */
.tabbar { display: none; }
@media (max-width: 720px) {
  .top-in { flex-wrap: nowrap; min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .top.scrolled .top-in { min-height: 52px; }
  .brand img { width: 28px; height: 28px; }
  .top nav a:not(.pill):not(#nav-admin) { display: none; }
  .top nav a { padding: 8px 12px; font-size: 13px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed;   /* os ícones sempre dividem a largura toda, tenha 5 ou 6 */
    left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(9,6,22,.88);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }
  .tabbar a[hidden] { display: none; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 1px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; transition: color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
  .tabbar a.on { color: var(--gold2); background: rgba(224,192,96,.1); }
  .tabbar a.on svg { transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(224,192,96,.5)); }
  .tabbar a:active svg { transform: scale(.9); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .lore { text-align: left; font-size: 16px; }
  .buybox > .btn.ghost { width: 100%; }
}
/* troca de página: entra suave */
.page.enter { animation: page-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .page.enter { animation: none; } .top, .top-in { transition: none; } }

main { flex: 1; width: 100%; outline: none; }
.page { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px max(16px, 3vw) 72px; }
section { margin: 0 0 88px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { display: inline-block; font: 9px var(--px); letter-spacing: .12em; color: var(--violet); text-transform: uppercase; margin-bottom: 14px; }

/* ---------------------------------------------------------------- botões e painéis */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--body); padding: 12px 22px; border-radius: 12px; border: 0; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1030; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--gold3), 0 10px 24px rgba(224,192,96,.18); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold3); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--gold2); box-shadow: inset 0 0 0 2px var(--line2); }
.btn.ghost:hover { background: rgba(224,192,96,.12); }
.btn.big { font-size: 17px; padding: 16px 28px; }
.btn[disabled], .btn.off { opacity: .5; cursor: not-allowed; box-shadow: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.c { justify-content: center; }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr; } }
.tag { display: inline-block; font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(224,192,96,.14); color: var(--gold2); border: 1px solid var(--line2); }
.tag.soon { background: rgba(255,255,255,.06); color: var(--muted); border-color: var(--line); }
.tag.ok { background: rgba(143,224,160,.12); color: var(--green); border-color: rgba(143,224,160,.4); }
.tag.bad { background: rgba(224,90,90,.14); color: #ff8a8a; border-color: rgba(224,90,90,.45); }

/* aparecer ao rolar */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- tela do jogo (moldura das cenas) */
.screen { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(180deg, #3a2e6e, #1a1438); box-shadow: 0 0 0 2px var(--line2), 0 30px 80px rgba(0,0,0,.55), 0 0 80px rgba(139,108,255,.25); }
.screen canvas { width: 100%; height: auto; border-radius: 14px; background: #0b0820; }
.screen img.gp, .screen video.gp, .clip img.gp, .clip video.gp { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 14px; background: #0b0820; image-rendering: pixelated; }
.clips .clip { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 18px; }
.clip .clip-v { position: relative; margin-bottom: 6px; }
.clip .clip-v::after { content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line2), inset 0 0 30px rgba(0,0,0,.35); }
.clip img.gp, .clip video.gp { border-radius: 10px; }
.clip b { color: var(--gold2); font-size: 15px; padding: 0 6px; }
.clip span { color: var(--muted); font-size: 14px; padding: 0 6px; }
.screen::after { content: ''; position: absolute; inset: 10px; border-radius: 14px; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.08) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 40px rgba(0,0,0,.45); }
.screen .cap { position: absolute; left: 22px; top: 20px; z-index: 2; font: 8px var(--px); color: #fff; background: rgba(9,6,22,.7); padding: 6px 9px; border-radius: 6px; letter-spacing: .08em; }
.screen .cap.low { top: auto; bottom: 20px; }
.screen .cap::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff5a70; margin-right: 7px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- início */
.hero { text-align: center; padding: 56px 0 0; margin-bottom: 72px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero h1 { margin-bottom: .35em; }
.hero .sub { font: 11px var(--px); color: var(--violet); letter-spacing: .06em; margin: 0 0 22px; line-height: 1.7; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #e5ddff; max-width: 40em; margin: 0 auto 28px; }
.hero .row { justify-content: center; margin-bottom: 44px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px auto 0; max-width: 820px; }
.stat { text-align: center; padding: 16px 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stat b { display: block; font: 18px var(--px); color: var(--gold2); margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.steps { counter-reset: s; }
.steps .panel { position: relative; padding-top: 40px; text-align: center; }
.steps .panel::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1030; font: 14px var(--px); box-shadow: 0 4px 0 var(--gold3); }
.steps p { margin: 0; }

.game-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; transition: transform .2s, border-color .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-6px); border-color: var(--line2); box-shadow: 0 26px 50px rgba(0,0,0,.4), 0 0 40px rgba(224,192,96,.12); }
.game-card .art { height: 190px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding-bottom: 18px; background: radial-gradient(ellipse at 50% 110%, #3a2e8a, #0e0a26 70%); border-bottom: 1px solid var(--line); }
.game-card .art.cover { height: auto; aspect-ratio: 2 / 1; padding: 0; display: block; overflow: hidden; }
.game-card .art.cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; transition: transform .4s ease; }
.game-card:hover .art.cover img { transform: scale(1.04); }
.game-card .art.soon { background: repeating-linear-gradient(45deg, #14102a 0 14px, #181332 14px 28px); align-items: center; font: 34px var(--px); color: rgba(255,255,255,.2); }
.game-card .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.game-card h3 { margin: 0; }
.game-card .tag { align-self: flex-start; }

/* elenco */
.cast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cast { grid-template-columns: repeat(3, 1fr); } }

.cast-screen::after { display: none; }
.jw-skins, .cast[data-page] { margin-bottom: 14px; }
.cast .char[hidden] { display: none; }
.jw-skins .char .pic { position: relative; height: 96px; margin-bottom: 8px; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 65%); }
.jw-skins .sk { display: block; background: url(/assets/jerry-way/skins-sheet.png?v=454) no-repeat; image-rendering: pixelated; }
.jw-skins .q { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); font: 26px var(--px); color: #ff5a8a; text-shadow: 0 2px 0 #05081e, 0 0 12px rgba(255,90,138,.6); }
.jw-skins .pw { display: block; margin-top: 4px; font-size: 11px; color: #7aff9a; line-height: 1.3; }
.jw-skins em { display: block; font: 8px var(--px); font-style: normal; letter-spacing: .5px; }
.jw-skins .char:hover .sk { animation: hop .5s ease-out; }
.cast-board canvas { background: none; border-radius: 0; height: auto; }
.cast-board { position: relative; border-radius: 14px; padding: 26px 22px 18px; background: linear-gradient(180deg, #0b1240, #141a50); box-shadow: inset 0 0 0 4px #1a2470, inset 0 0 0 6px #7a9aff, inset 0 0 0 10px #2a3aa8, inset 0 0 0 13px #05081e, inset 0 0 40px rgba(0,0,0,.45); }
.cast-board::after { content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.08) 0 2px, transparent 2px 4px); }
.cast-board h3 { margin: 4px 0 18px; text-align: center; font: 20px var(--px); color: #ffcc3a; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 0 #05081e; }
.char { text-align: center; padding: 10px 8px 14px; transition: transform .2s; }
.char:hover { transform: translateY(-4px); }
.char .pic { height: 140px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; border-radius: 12px; background: radial-gradient(ellipse at 50% 70%, rgba(122,154,255,.3), transparent 65%); }
.char:hover canvas { animation: hop .5s ease-out; }
@keyframes hop { 40% { transform: translateY(-10px); } }
.char b { display: block; font: 10px var(--px); color: #e8e0ff; margin-bottom: 6px; line-height: 1.5; }
.char span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 640px) {
  .cast { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .char { padding: 8px 4px 10px; }
  .cast-board { padding: 22px 12px 12px; }
  .cast-board h3 { font-size: 13px; margin-bottom: 10px; }
  .jw-skins .char .pic { height: 80px; }
  .jw-skins .sk { transform: scale(.85); transform-origin: 50% 100%; }
  .char .pic { margin-bottom: 6px; }
  .char .pic canvas { max-width: 70%; height: auto; max-height: 100%; object-fit: contain; object-position: 50% 100%; }
  .char b { font-size: 8px; }
  .char span { font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .char .pic { height: 76px; }
}
.cta { text-align: center; padding: 40px 24px; background: radial-gradient(ellipse at 50% 0%, rgba(224,192,96,.16), transparent 60%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.cta p { max-width: 36em; margin: 0 auto 22px; color: #ddd5f7; }

/* painel de edição */
details.ce { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,.03); }
details.ce[open] { display: grid; gap: 12px; }
details.ce summary { cursor: pointer; font-weight: 700; color: var(--gold2); }
details.ce textarea { font-size: 15px; line-height: 1.5; }

/* avaliações */
.rate { color: var(--gold); letter-spacing: 2px; font-size: 18px; white-space: nowrap; }
.rate i { font-style: normal; color: rgba(255,255,255,.18); }
.rate.sm { font-size: 14px; }
.rating-badge { display: flex; gap: 8px; justify-content: center; align-items: center; margin: -8px 0 18px; }
.rating-badge:empty { display: none; }
.reviews { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.rv-sum { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.rv-avg { display: grid; justify-items: center; gap: 4px; }
.rv-avg > b { font: 34px var(--px); color: var(--gold2); }
.rv-bars { display: grid; gap: 6px; }
.rv-bars div { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.rv-bars i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.rv-bars i b { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.rv-pick { display: flex; gap: 4px; }
.rv-pick button { font-size: 30px; line-height: 1; background: none; border: 0; color: rgba(255,255,255,.2); cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.rv-pick button.on { color: var(--gold); }
.rv-pick button:hover { transform: scale(1.15); }
.rv-list { display: grid; gap: 12px; }
.rv-item p { margin: 8px 0; color: #e5ddff; white-space: pre-line; }
.rv-mod { padding: 4px 10px; font-size: 12px; margin-left: 8px; }
@media (max-width: 520px) { .rv-sum { grid-template-columns: 1fr; } }

/* universo */
.lore { max-width: 760px; margin: 0 auto 28px; font-size: 17px; color: #e5ddff; text-align: center; }
.lore p:last-child { color: var(--gold2); font-weight: 700; }
.places { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.place { display: grid; gap: 6px; border-top: 3px solid var(--violet); }
.place b { font: 11px var(--px); color: var(--gold2); line-height: 1.6; }
.place span { color: var(--muted); font-size: 14px; }
.game-card .more { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 4px; }

/* ---------------------------------------------------------------- página do jogo */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; max-width: 900px; margin: 28px auto 0; }
.facts div { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 4px; }
.facts small { font: 8px var(--px); letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.facts b { font-size: 14px; color: var(--text); }
.banner { text-align: center; margin-bottom: 40px; }
.banner .lead { font-size: 18px; margin: 0 0 6px; }
.banner > .muted { max-width: 40em; margin: 0 auto 26px; }
.buybox { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 0 auto 36px; padding: 18px 22px; max-width: 640px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.buybox small { flex-basis: 100%; }
.price { font: 20px var(--px); color: var(--gold2); }
.pay-methods { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; flex-basis: 100%; }
.pay-methods span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.story { max-width: 760px; margin: 0 auto; font-size: 17px; color: #e5ddff; }
.feat { display: flex; flex-direction: column; gap: 6px; }
.feat b { color: var(--gold2); font-size: 15px; }
.feat span { color: var(--muted); font-size: 14px; }
.plat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.plat b { display: block; }
.plat small { color: var(--muted); }
.plat-list { display: grid; gap: 10px; }
.plat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); max-width: 900px; margin: 0 auto; }

/* ---------------------------------------------------------------- formulários (a caixa de login é a mesma do jogo) */
.narrow { max-width: 560px; margin: 0 auto; }
form.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, textarea, select { font: 16px var(--body); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0b0820; color: var(--text); width: 100%; }
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.msg { min-height: 1.6em; font-size: 14px; color: var(--red); margin: 0; }
.msg.ok { color: var(--green); }
.google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 0; border-radius: 8px; padding: 13px 16px; font: 700 15px var(--body); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.45); width: 100%; }
.google:hover { background: #f1f4ff; }
.google:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }

.login-stage { max-width: 440px; margin: 0 auto; padding-top: 48px; }
.gbox { position: relative; padding: 64px 22px 22px; display: flex; flex-direction: column; gap: 10px; background: rgba(16,12,30,.96); border: 2px solid var(--gold); border-radius: 8px; box-shadow: 0 0 0 4px rgba(0,0,0,.5), 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(224,192,96,.12); font: 10px/1.8 var(--px); color: #e8e2f4; }
.gbox .icon { position: absolute; left: 50%; top: -44px; translate: -50% 0; width: 88px; image-rendering: pixelated; filter: drop-shadow(0 0 16px rgba(224,192,96,.5)); }
.gbox h2 { margin: 0; font-size: 13px; color: #ffe08a; text-align: center; }
.gbox p { margin: 0; }
.gbox .lt { text-align: center; color: #c8c0d8; }
.gbox label { color: #c8c0d8; font: 10px var(--px); gap: 6px; }
.gbox input { font: 16px/1.4 var(--body); border-radius: 4px; padding: 11px; }
.gbox .row { gap: 8px; flex-wrap: nowrap; }
.gbox .row > * { flex: 1; }
.gbox button.gb { font: 10px var(--px); padding: 13px 6px; cursor: pointer; background: #e0c060; color: #1a1030; border: 0; border-radius: 4px; box-shadow: 0 3px 0 var(--gold3); }
.gbox button.gb:hover { background: var(--gold2); }
.gbox button.gb:active { transform: translateY(2px); box-shadow: none; }
.gbox button.link { background: transparent; color: #c8c0d8; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.gbox button.link:hover { background: rgba(255,255,255,.06); }
.gbox button:disabled { opacity: .5; cursor: default; }
.gbox .google { font: 700 13px var(--body); }
.gbox .msg { font: 10px/1.7 var(--px); min-height: 1.7em; }
.gbox [hidden] { display: none !important; }
.gbox .tag { align-self: center; font-family: var(--body); }
.login-scene { margin-top: 26px; border-radius: 10px; }

/* pagamento */
.checkout { display: grid; gap: 16px; }
.pay-sum { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.pay-sum div { flex: 1; display: grid; }
.pay-sum small { font-size: 13px; }
.pay-sum .price { font-size: 14px; white-space: nowrap; }
#mp-brick { min-height: 120px; }
.pix { display: grid; gap: 14px; justify-items: center; }
.pix label, .pix textarea { width: 100%; }
.pix textarea { font: 13px ui-monospace, Consolas, monospace; resize: none; }
.qr { background: #fff; padding: 10px; border-radius: 12px; image-rendering: pixelated; width: 220px; height: 220px; }
.wait { color: var(--gold2); margin: 0; }
.checkout canvas.scene { max-width: 100%; }

details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: rgba(255,255,255,.04); margin-bottom: 12px; transition: border-color .2s, background .2s; }
details.faq[open] { border-color: var(--line2); background: rgba(224,192,96,.05); }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--gold2); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font: 14px var(--px); color: var(--gold); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: 10px 0 0; color: #ddd5f7; }

/* ---------------------------------------------------------------- suporte */
.support-page { max-width: 960px; margin: 0 auto; }
.support-contact { text-align: center; margin-bottom: 24px; }
.support-email { display: inline-block; max-width: 100%; margin: 8px 0 24px; font-size: clamp(16px, 3vw, 24px); overflow-wrap: anywhere; }
.support-contact .msg { min-height: 1.5em; margin-bottom: 0; }
.support-details, .support-topics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.support-details { margin-bottom: 24px; }
.support-hours { margin: 0; }
.support-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.support-hours dt { font-weight: 700; }
.support-hours dd { margin: 0; white-space: nowrap; }
.support-channels { font-style: normal; }
.support-channels p { display: grid; gap: 4px; }
.support-channels a { overflow-wrap: anywhere; }
.support-topics ul { padding-left: 20px; }
.support-topics li { margin: 12px 0; }
#support-copy[hidden] { display: none; }
.support-form { max-width: 720px; margin: 0 auto 24px; scroll-margin-top: 150px; }
.support-form h2 { margin: 0; }
.support-form[hidden] { display: none; }
.support-form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.support-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- rodapé e janela */
footer { position: relative; margin-top: 88px; background: linear-gradient(180deg, transparent, #07050c 45%); }
footer canvas.scene { width: 100%; height: auto; margin-top: -48px; position: relative; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.foot-in { text-align: center; padding-top: 26px; padding-bottom: 34px; display: grid; justify-items: center; gap: 6px; }
.foot-in p { margin: 0; font-size: 14px; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--gold2); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(4,2,12,.78); padding: 16px; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal .box { background: #16112e; border: 2px solid var(--gold); border-radius: 16px; padding: 24px; max-width: 460px; display: grid; gap: 16px; animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal .box p { margin: 0 0 8px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
pre.mono { margin: 10px 0 0; white-space: pre-wrap; user-select: all; font-size: 16px; color: var(--gold2); }
.panel .row label { min-width: 120px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* "reduzir movimento" do sistema (no Windows: efeitos de animação desligados): as cenas do jogo continuam,
   só some o deslizar das seções e a rolagem suave */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* biblioteca */
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lib-card .tags, .lib-hero .tags { gap: 8px; }
.lib-foot { margin-top: 28px; }
.back { display: inline-block; margin-bottom: 16px; font-weight: 700; text-decoration: none; }
.lib-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 0; overflow: hidden; margin-bottom: 18px; }
.lib-cover { align-self: stretch; display: flex; align-items: center; background: #0b0820; border-right: 1px solid var(--line); }
.lib-cover img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; image-rendering: pixelated; display: block; }
.lib-info { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 24px 0; }
.lib-info h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.lib-info .lead { margin: 0; }
.lib-main { margin: 8px 0; }
.lib-cols { display: grid; gap: 18px; }
#lib-downloads.flash { animation: lib-flash 1.4s ease; }
@keyframes lib-flash { 0%, 40% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,192,96,.35), 0 20px 40px rgba(0,0,0,.25); } }
.lib-cols h2 { font-size: 16px; margin-top: 0; }
.lib-warn { margin-top: 14px; }
.lib-warn summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.lib-notes { white-space: pre-line; }
.plat-list .plat > .btn { width: 172px; }
@media (max-width: 720px) {
  .lib-hero { grid-template-columns: 1fr; gap: 0; }
  .lib-cover { border-right: 0; border-bottom: 1px solid var(--line); }
  .lib-info { padding: 20px; }
  .lib-main .btn { width: 100%; }
  /* celular: em toda plataforma o botão fica à direita, na mesma linha (o nome quebra, o botão não) */
  .plat-list .plat { flex-wrap: nowrap; }
  .plat-list .plat > div { flex: 1; }
  .plat-list .plat .tag { margin: 4px 0 0; }
  .plat-list .plat > .btn, .plat-list .plat > .tag.soon { width: 138px; padding: 10px 6px; font-size: 14px; gap: 6px; white-space: nowrap; text-align: center; }
  .plat-list .plat .tag { white-space: nowrap; }
}
.btn small { color: inherit; opacity: .75; font-weight: 600; white-space: nowrap; }
.plat > div { min-width: 0; }
.plat > .btn { flex-shrink: 0; }
.lib-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lib-other { background: none; border: 0; padding: 4px 0; font: 700 15px var(--body); color: var(--gold); text-decoration: underline; cursor: pointer; }
.plat.mine { border-color: var(--line2); background: rgba(224,192,96,.08); }
.plat .tag { margin-left: 6px; vertical-align: middle; }

/* Jerry's Way: ranking na página do jogo e ordem dos jogos no Admin */
.jw-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jw-rank li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.jw-rank .pos { color: var(--gold, #e0c060); min-width: 34px; font-weight: 700; }
.jw-rank .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jw-rank li.me { background: rgba(224,192,96,.16); box-shadow: inset 0 0 0 1px rgba(224,192,96,.5); }
.jw-rank li.me .nm, .jw-rank li.me b { color: var(--gold, #e0c060); }
.order-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.order-list .btn { padding: 4px 12px; min-width: 0; }
/* página inicial: a marca */
.brand-hero .brand-logo { margin: 0 auto .2em; line-height: 0; }
.brand-hero .brand-logo img { width: min(600px, 86vw); height: auto; filter: drop-shadow(0 0 24px rgba(160,180,255,.45)); }
.brand-hero .sub { margin-top: 10px; }
/* propaganda: gameplay em loop dos jogos na página inicial */
.showcase .show-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.showcase .show-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(120,140,255,.28); }
.showcase .tv { position: relative; background: #0b0820; border-bottom: 3px solid #2a3aa8; line-height: 0; }
.showcase .tv img, .showcase .tv video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0820; image-rendering: pixelated; display: block; }
.showcase .live { position: absolute; bottom: 10px; right: 10px; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .06em; color: #fff; background: rgba(200,40,60,.85); padding: 5px 8px; border-radius: 6px; }
.showcase .show-info { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.showcase .show-info .t { font-family: var(--px); font-size: 15px; color: #ffcc3a; }
.showcase .show-info .s { opacity: .85; line-height: 1.5; }
.showcase .show-info .btn { align-self: flex-start; margin-top: 4px; }
/* guia de download (por que aparece o aviso e como permitir) */
.dl-steps { margin: 10px 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; text-align: left; line-height: 1.5; }
.dl-steps code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; font-size: .9em; word-break: break-all; }
/* lugares do Jerry's Way: a última linha (com menos cards) fica centralizada embaixo das outras */
.grid.g3.clips { display: flex; flex-wrap: wrap; justify-content: center; }
.grid.g3.clips > .clip { flex: 0 1 calc((100% - 36px) / 3); min-width: min(100%, 280px); }


/* Loja */
.store-tabs { display: flex; gap: 10px; justify-content: center; margin: 0 0 22px; flex-wrap: wrap; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.offer { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px; overflow: hidden; }
.offer b { font: 11px var(--px); color: var(--gold2); line-height: 1.6; }
.offer { padding-top: 38px !important; }
.offer p { margin: 0; flex: 1; font-size: 14px; }
.offer .offer-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.offer .offer-buy .btn { flex: none; white-space: nowrap; }
.offer .price { font: 14px var(--px); color: #fff; }
.offer-badge { position: absolute; right: 12px; top: 10px; font: 8px var(--px); background: var(--gold); color: #1a1226; padding: 5px 7px; border-radius: 6px; }
.offer.big { grid-column: 1 / -1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px rgba(255,204,58,.18); background: linear-gradient(135deg, rgba(255,204,58,.14), rgba(139,108,255,.12)); }
.offer.big b { font-size: 14px; }
.offer.big p { font-size: 16px; color: #f0e8ff; }
.offer.big .price { font-size: 20px; color: var(--gold2); }

/* pergunta "leve o pacote" ao comprar o jogo sozinho */
.modal.wide .box { max-width: 720px; width: 100%; padding: 26px 24px 24px; }
.upsell { position: relative; text-align: center; }
.upsell h3 { margin: 6px 0 18px; font: 15px/1.5 var(--px); color: var(--gold2); }
.upsell .kicker { font: 9px var(--px); color: var(--violet); letter-spacing: .1em; text-transform: uppercase; }
.up-x { position: absolute; right: -8px; top: -12px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px; }
.up-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; text-align: left; }
.up-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.up-card b { font: 11px/1.5 var(--px); color: #fff; }
.up-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #ddd4ff; flex: 1; }
.up-card .up-price { font: 18px var(--px); color: #fff; }
.up-card.best { border: 2px solid var(--gold); background: linear-gradient(140deg, rgba(255,204,58,.16), rgba(139,108,255,.14)); box-shadow: 0 16px 40px rgba(255,204,58,.15); padding-top: 34px; }
.up-card.best b { color: var(--gold2); }
.up-card.best .up-price { color: var(--gold2); font-size: 22px; }
.up-card .btn { width: 100%; justify-content: center; }
@media (max-width: 600px) { .up-grid { grid-template-columns: 1fr; } .up-card.best { order: -1; } .upsell h3 { font-size: 12px; } }

/* cartões com vídeo: sem desfoque de fundo (o Chrome falhava ao redesenhar ao rolar a página) */
.show-card, .panel.clip, .screen { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.show-card .tv, .clip-v { transform: translateZ(0); }

/* documentos legais */
.legal { max-width: 820px; text-align: left; }
.legal h3 { font: 11px/1.6 var(--px); color: var(--gold2); margin: 22px 0 8px; }
.legal p { margin: 0 0 10px; color: #e0d8ff; font-size: 15px; line-height: 1.65; }
.legal-note { font-size: 12px; opacity: .85; }
.legal-note a { color: var(--gold2); }

/* Admin em abas: cada bloco tem data-tab com a(s) aba(s) onde aparece */
.admin [data-tab] { display: none !important; }
.admin[data-at="numeros"] [data-tab~="numeros"], .admin[data-at="layout"] [data-tab~="layout"], .admin[data-at="jogos"] [data-tab~="jogos"], .admin[data-at="loja"] [data-tab~="loja"], .admin[data-at="chaves"] [data-tab~="chaves"], .admin[data-at="jogadores"] [data-tab~="jogadores"], .admin[data-at="pedidos"] [data-tab~="pedidos"] { display: block !important; }
.admin-tabs { justify-content: flex-start; }
/* Admin › Loja: cartões modernos, fáceis de usar no celular */
.st-item { padding: 0 !important; overflow: hidden; }
.st-item > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.st-item > summary::-webkit-details-marker { display: none; }
.st-item > summary::after { content: '\203A'; margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.st-item[open] > summary::after { transform: rotate(90deg); }
.st-item[open] > summary { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.st-name { font-weight: 800; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-price { font-weight: 800; color: var(--gold2); white-space: nowrap; font-size: 14px; }
.st-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(110,220,140,.15); color: #8ef0a8; white-space: nowrap; }
.st-pill.off { background: rgba(255,255,255,.08); color: var(--muted); }
.st-body { display: grid; gap: 14px; padding: 16px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.st-sec { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 -4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips label { display: inline-flex; cursor: pointer; }
.st-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s; }
.st-chips span::before { content: '+'; font-weight: 800; color: var(--muted); }
.st-chips input:checked + span { background: rgba(224,192,96,.18); border-color: var(--gold); color: var(--gold2); }
.st-chips input:checked + span::before { content: '\2713'; color: var(--gold2); }
.st-chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.st-toggles { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-tog { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.03); color: var(--text); font-size: 15px; cursor: pointer; }
.st-tog small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.st-tog input { appearance: none; -webkit-appearance: none; flex: none; width: 46px !important; height: 28px; padding: 0 !important; border-radius: 99px; background: #2a2440; border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s; }
.st-tog input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfc8e8; transition: transform .2s, background .2s; }
.st-tog input:checked { background: var(--gold); border-color: var(--gold); }
.st-tog input:checked::after { transform: translateX(18px); background: #1a1230; }
.st-del { justify-self: start; color: #ff8a8a !important; border-color: rgba(255,120,120,.4) !important; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.st-actions .btn { flex: 1 1 200px; }
@media (max-width: 700px) {
  .st-body { padding: 14px 12px; }
  .st-grid { grid-template-columns: 1fr 1fr; }
  .st-grid .wide { grid-column: 1 / -1; }
}

/* Admin no celular: nada passa da largura da tela (textos compridos quebram ou viram "…", cartões encolhem) */
.admin, .admin .panel, .admin form, .admin .stack > *, .admin details, .admin details > *, #st-list, .st-item, .st-item > summary, .st-body, .st-body > *, .st-grid > * { min-width: 0; max-width: 100%; }
.admin .panel { overflow-wrap: anywhere; }
.admin .plat > div { min-width: 0; }
.admin .plat small { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .admin .panel { padding: 16px 14px; }
  .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-tabs .btn { width: 100%; padding: 10px 8px; }
  .admin .plat-list .plat { flex-wrap: wrap; }
  .admin .plat-list .plat > .row { width: 100%; justify-content: flex-end; }
  .admin #key-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin #key-form > label:first-child, .admin #key-form > label:nth-child(3), .admin #key-form > button { grid-column: 1 / -1; }
  .admin #key-form input, .admin #key-form select { width: 100% !important; }
  .admin #key-form > label { min-width: 0 !important; }
  .order-list li { flex-wrap: wrap; gap: 8px; }
}

.pr-row { align-items: flex-end; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* aviso de plataformas (sem versão para iPhone, iPad e Mac) */
.plat-note { margin: 10px auto 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.buybox .plat-note.warn { flex-basis: 100%; margin: 0 0 6px; }
.plat-note.warn { color: #ffe0a0; background: rgba(255,170,60,.12); border: 1px solid rgba(255,190,90,.45); border-radius: 12px; padding: 10px 14px; }

/* ================================================================ Visual 2026: manual de jogo à luz da lua
   Azul-noite chapado (sem vidro, brilho ou degradê), texto cor de luar, âmbar da moeda do jogo só nas ações.
   Títulos em Young Serif (livro de lendas), texto em Atkinson Hyperlegible; a fonte pixelada fica para números do jogo.
   Tudo alinhado à esquerda; cada jogo é uma ficha larga com o gameplay de verdade. */
@font-face { font-family: 'Young Serif'; src: url('../fonts/young-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('../fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('../fonts/atkinson-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('../fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --night: #0E1430; --deep: #151C3F; --rim: #2A3566; --moon: #E6E9F5; --haze: #9AA3C7; --coin: #F4B63F; --coin-d: #D99A22; --leaf: #7CCB98;
  /* os nomes antigos apontam para a paleta nova (as outras páginas acompanham sozinhas) */
  --bg: var(--night); --panel: var(--deep); --panel2: var(--deep); --line: var(--rim); --line2: rgba(244,182,63,.45);
  --gold: var(--coin); --gold2: #F7CB72; --gold3: #9C6A12; --violet: var(--haze); --text: var(--moon); --muted: var(--haze); --green: var(--leaf);
  --serif: 'Young Serif', Georgia, serif; --body: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 8px; --wrap: 1180px;
}
body { background: var(--night); font: 17px/1.6 var(--body); }
a { color: var(--gold2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--coin); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; color: var(--moon); text-shadow: none; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: .5em; }
h3 { font-size: 21px; margin-bottom: .35em; }

/* céu: só um punhado de estrelas paradas, sem lua, névoa ou nebulosa */
.sky { background: var(--night); }
.sky .moon, .sky .mist, .sky .s2, .sky::before, .sky::after { display: none; }
.stars.s1 { opacity: .35; animation: none; }

/* topo e barra do celular: chapados */
.top, .top.scrolled { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--rim); border-radius: 0; }
.brand { font: 400 19px/1.1 var(--serif); color: var(--moon); }
.brand img { filter: none; }
nav a { font-weight: 700; font-size: 15px; color: var(--haze); border: 0; border-radius: 0; padding: 8px 10px; background: none; box-shadow: none; }
nav a:hover, nav a.on { background: none; color: var(--moon); box-shadow: inset 0 -2px 0 var(--coin); border: 0; }
nav a.pill, nav a.pill:hover { margin-left: 10px; background: var(--coin); color: #1A1406; border-radius: 6px; box-shadow: none; padding: 8px 14px; }
nav a.pill:hover { background: var(--coin-d); }
.tabbar { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; border-top: 1px solid var(--rim); }
.tabbar a.on { background: none; color: var(--coin); }
.tabbar a.on svg { filter: none; }

/* botões, painéis e etiquetas: sem brilho, sem sombra */
.btn, .btn:not(.ghost) { background: var(--coin); color: #1A1406; border-radius: 6px; box-shadow: none; font: 700 16px var(--body); padding: 12px 20px; transition: background .15s; }
.btn:hover { background: var(--coin-d); filter: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--moon); box-shadow: inset 0 0 0 1px var(--rim); border: 0; }
.btn.ghost:hover { background: var(--deep); box-shadow: inset 0 0 0 1px var(--haze); }
.btn.big { font-size: 17px; padding: 14px 24px; }
.panel, .cta, .buybox, .stat, .facts div, .plat, details.faq, details.ce, .pay-sum, .modal .box {
  background: var(--deep); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tag { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 13px; border-radius: 4px; padding: 2px 8px; }
.kicker { display: none; }
.screen { background: var(--deep); border-radius: var(--r); padding: 6px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--rim); }
.screen::after { display: none; }
.screen canvas, .screen img.gp, .screen video.gp { border-radius: 4px; }

/* títulos de seção e de página: à esquerda, sem etiqueta em cima */
.page { padding-top: 48px; }
section { margin-bottom: 104px; }
.sec-head { text-align: left; margin: 0 0 28px; max-width: 46rem; }
.sec-head p { font-size: 18px; }
/* sem "aparecer ao rolar" em cada bloco: a página já está lá quando a pessoa chega */
[data-reveal], [data-reveal].in { opacity: 1; transform: none; transition: none; }

/* ---------------------------------------------------------------- início */
.h-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: 24px; margin-bottom: 120px; }
.h-logo { margin: 0 0 20px; line-height: 0; }
.h-logo img { width: min(440px, 100%); height: auto; filter: none; }
.h-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--moon); max-width: 30em; margin: 0 0 28px; }
.h-hero .row { gap: 12px; }
.h-screen { line-height: 0; border: 1px solid var(--rim); border-radius: var(--r); background: #000; overflow: hidden; }
.h-screen video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; display: block; }

/* fichas dos jogos */
.g-rows { display: grid; gap: 20px; }
.g-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--rim); border-radius: var(--r); background: var(--deep); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .15s; }
a.g-row:hover { border-color: var(--haze); }
a.g-row:hover .btn { background: var(--coin-d); }
.g-media { line-height: 0; background: #000; min-height: 100%; }
.g-media img, .g-media video { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; display: block; }
.g-row.soon.bare { grid-template-columns: 1fr; }
.g-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.g-body h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 0; }
.g-sub { margin: -4px 0 0; color: var(--haze); font-style: italic; }
.g-text { margin: 0; max-width: 34em; }
.g-meta { margin: 4px 0 6px; font-weight: 700; color: var(--gold2); }
.g-meta.free { color: var(--leaf); }
.g-row.soon { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); background: transparent; border-style: dashed; }
.g-row.soon .g-media { opacity: .75; }
.g-row.soon h3 { font-size: 22px; }
.g-row.soon .g-meta { color: var(--haze); }

/* universo: texto corrido com os fatos numa coluna ao lado */
.h-world { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.w-text p { font-size: 19px; line-height: 1.7; max-width: 36em; margin: 0 0 1em; }
.w-text p:last-child { color: var(--gold2); }
.w-facts { margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rim); }
.w-facts div { padding: 14px 0; border-bottom: 1px solid var(--rim); }
.w-facts dt { color: var(--haze); font-size: 15px; }
.w-facts dd { margin: 2px 0 0; font: 400 22px/1.3 var(--serif); color: var(--moon); }

/* o que move o mundo e os lugares: lista de termos, sem cartões */
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 44px; margin: 0; }
.terms dt { font: 400 21px/1.3 var(--serif); color: var(--moon); margin-bottom: 6px; }
.terms dd { margin: 0; color: var(--haze); font-size: 16px; line-height: 1.55; max-width: 32em; }
.terms.places { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.terms.places dt { color: var(--gold2); }

/* como começar: é uma sequência de verdade, então tem número */
.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.how li { counter-increment: how; display: grid; gap: 8px; align-content: start; }
.how li::before { content: counter(how); font: 16px var(--px); color: var(--coin); margin-bottom: 6px; }
.how b { font: 400 21px/1.3 var(--serif); }
.how span { color: var(--haze); font-size: 16px; }

/* presente */
.h-gift { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 36px 0; border-top: 1px solid var(--rim); border-bottom: 1px solid var(--rim); }
.h-gift h2 { margin-bottom: .3em; }
.h-gift p { margin: 0; color: var(--haze); max-width: 34em; }

/* elenco: o quadro azul é a tela do jogo; só fica sem brilho por fora */
.cast-board { border-radius: var(--r); }
.char:hover { transform: none; }

/* rodapé: à esquerda */
footer { background: var(--night); border-top: 1px solid var(--rim); margin-top: 40px; }
footer canvas.scene { margin-top: 0; }
.foot-in { text-align: left; justify-items: start; gap: 8px; }
.foot-links { justify-content: flex-start; }
.foot-in .brand span { font-size: 19px; }

@media (max-width: 900px) {
  .h-hero, .h-world { grid-template-columns: 1fr; }
  .h-hero { margin-bottom: 88px; }
  .g-row, .g-row.soon { grid-template-columns: 1fr; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { margin-bottom: 80px; }
  .page { padding-top: 28px; }
  .h-hero { padding-top: 8px; }
  .h-hero .row .btn { width: 100%; }
  .w-text p { font-size: 17px; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .h-gift .btn { width: 100%; }
  .brand { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .g-row { transition: none; } }

/* páginas dos jogos, loja e o resto: tudo à esquerda, como a página inicial */
.banner { text-align: left; max-width: 52rem; }
.banner > .muted { margin: 0 0 24px; }
.banner h1 { margin: 12px 0 6px; }
.banner .lead b { font: italic 400 20px var(--body); color: var(--haze); }
.buybox { justify-content: flex-start; margin: 0 0 36px; }
.buybox .price { font: 20px var(--px); }
.lore { text-align: left; margin: 0 0 28px; max-width: 40em; font-size: 18px; color: var(--moon); }
.stats { margin: 20px 0 0; max-width: none; }
.stat { text-align: left; padding: 14px 16px; }
.stat b { font: 22px var(--px); color: var(--coin); }
.facts { margin: 28px 0 0; max-width: none; }
.facts small { font: 700 13px var(--body); letter-spacing: 0; text-transform: none; color: var(--haze); }
.feat b, .clip b { font: 400 19px/1.3 var(--serif); color: var(--moon); }
.offer b, .place b, .legal h3, .up-card b, .upsell h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--moon); }
.offer-badge { font: 700 12px var(--body); border-radius: 4px; }
.cta { text-align: left; background: var(--deep); }
.cta p { margin: 0 0 22px; }
.store-tabs { justify-content: flex-start; }
.sec-head h1 { text-shadow: none; color: var(--moon); }
/* a área principal recebe foco ao trocar de página (leitores de tela): sem contorno nela */
main:focus, main:focus-visible, [tabindex="-1"]:focus-visible { outline: none; }
.story { margin: 0; max-width: 40em; font-size: 18px; color: var(--moon); }
.reviews, .plat-grid { margin: 0; }
.grid.g3.clips { justify-content: flex-start; }
.offer.big, .offer.featured { background: var(--deep); box-shadow: none; border: 1px solid var(--coin); }
.offer.big .price { color: var(--coin); }
.modal .box { border: 1px solid var(--rim); border-radius: var(--r); background: var(--deep); }
footer { margin-top: 0; }
/* caixa de login: mesma moldura do jogo, mas com texto fácil de ler */
.gbox { background: var(--deep); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: none; }
.gbox .icon { filter: none; }
.gbox :is(p, label, button, a, span, input, small, b) { font-family: var(--body); letter-spacing: 0; }
.gbox :is(p, small) { font-size: 15px; line-height: 1.5; }
.gbox label { font-size: 14px; font-weight: 700; color: var(--haze); }
.gbox button:not(.google), .gbox .btn { font: 700 16px var(--body); border-radius: 6px; box-shadow: none; }
input, textarea, select { background: var(--night); border-color: var(--rim); border-radius: 6px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--coin); outline-offset: 1px; }
/* Jerry's Way: rankings do dia, da semana e de sempre lado a lado */
.jw-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.jw-ranks h3 { margin: 0 0 4px; }
.jw-ranks .small { margin: 0 0 12px; }
/* doação: botão no rodapé e os valores na página #/doar */
.foot-donate { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 6px 0 10px; }
.foot-donate p { margin: 0; color: var(--moon); }
.donate-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.donate p { margin: 0; }
/* Admin: números dos jogos */
.nm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.nm-card { border: 1px solid var(--line, rgba(255,255,255,.15)); border-radius: 12px; padding: 14px; }
.nm-card h3 { margin: 0 0 8px; }
.nm-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .nm-big b { font-size: 2rem; }
.nm-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nm-row div { display: flex; flex-direction: column; } .nm-row b { font-size: 1.3rem; } .nm-row span, .nm-big span { opacity: .75; font-size: .85rem; }
/* páginas de convite (amigo e clã) */
.invite { max-width: 560px; margin: 0 auto; padding: 8px 0 24px; }
.invite-card { border: 1px solid rgba(224, 192, 96, .35); border-radius: 16px; overflow: hidden; background: rgba(20, 22, 52, .92); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.invite-hero { position: relative; height: 150px; background-size: cover; background-position: center; image-rendering: pixelated; }
.invite-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 32, 0) 30%, rgba(20, 22, 52, .95) 100%); }
.invite-tag { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 12px; font-weight: 700; color: #1a1226; background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.invite-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.invite-title { font-size: clamp(22px, 6vw, 32px); margin: 0; }
.invite-go { width: 100%; font-size: 17px; padding: 14px; }
.clan-head { display: flex; align-items: center; gap: 14px; }
.clan-badge { flex: none; width: 58px; height: 58px; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #1a1226; border-radius: 14px; background: linear-gradient(160deg, var(--gold2), var(--gold) 55%, var(--gold3)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 4px 0 #2a1d08; clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%); }
.clan-desc { font-style: italic; margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .04); border-radius: 6px; }
.clan-meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; } .clan-meter div { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.clan-mem { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.clan-mem li { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 14px; } .clan-mem small { color: var(--gold); }
.invite-ok { margin: 0; padding: 12px; border-radius: 10px; background: rgba(143, 224, 160, .12); color: var(--green); font-weight: 600; }
.invite-warn { margin: 0; padding: 12px; border-radius: 10px; background: rgba(255, 154, 168, .12); color: var(--red); }
.nm-on { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.nm-on i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
/* vídeos dos lugares: centralizados; no celular cada um ocupa a largura toda */
.grid.g3.clips { justify-content: center; }
@media (max-width: 760px) { .grid.g3.clips > .clip { flex: 1 1 100%; min-width: 0; } }
/* aviso de download: botão centralizado */
#dl-now { display: flex; width: fit-content; margin: 0 auto; justify-content: center; align-items: center; gap: 8px; }
#dl-msg { text-align: center; }

/* Black Friday: preço antigo riscado */
s.was { opacity: .6; font-weight: 400; font-size: .85em; margin-right: 4px; }
