/* ARCADE WARS portal — design system
   Cores vêm da UI do jogo (azul #2060ff, ciano #40e0ff, amarelo #ffd020, rosa #ff40c0, tinta #101020).
   Tipos: Press Start 2P (HUD/títulos, igual ao jogo), Bangers (HQ), Exo 2 (texto, igual ao site TBT). */
:root {
  --bg: #07081a; --bg2: #0d1030; --ink: #101020; --panel: #121538;
  --blue: #2060ff; --blue2: #102080; --cyan: #40e0ff; --yellow: #ffd020; --pink: #ff40c0; --purple: #8030c0; --steel: #8090c0;
  --text: #e8ecff; --muted: #a0a8d0; --white: #fff;
  --pix: 'Press Start 2P', monospace; --comic: 'Bangers', Impact, sans-serif; --body: 'Exo 2', system-ui, sans-serif;
  --shadow: 4px 4px 0 #000; --glow-c: 0 0 10px #40e0ff, 0 0 30px #40e0ff55; --glow-y: 0 0 10px #ffd020, 0 0 28px #ffd02055;
  --r: 6px; --wrap: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.08) 2px 4px); pointer-events: none; z-index: 9999; }
img { max-width: 100%; height: auto; display: block; }
.pixel, .hero-logo, .stage-poster, .shot img, .hq-cover img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--cyan); }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font: 400 clamp(1rem, 2.2vw, 1.35rem)/1.4 var(--pix); color: var(--yellow); text-shadow: 3px 3px 0 #000; letter-spacing: 1px; text-transform: uppercase; }
h3 { font: 800 1.05rem var(--body); color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
h4 { font: 800 .95rem var(--body); color: var(--yellow); }
p.small, .small { font-size: .85rem; color: var(--muted); }
kbd { display: inline-block; min-width: 1.7em; padding: .1em .45em; margin: 0 .1em; border: 2px solid var(--steel); border-bottom-width: 4px; border-radius: 4px; background: var(--ink); color: var(--white); font: 600 .8em/1.6 var(--body); text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: .5rem 1rem; z-index: 10000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75rem 1.5rem; background: var(--blue); color: var(--white); text-decoration: none; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); font: 400 .72rem/1 var(--pix); text-transform: uppercase; cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s; }
.btn:hover { background: var(--cyan); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn-big { padding: 1.1rem 2.2rem; font-size: .9rem; background: var(--yellow); color: var(--ink); }
.btn-big:hover { background: var(--white); }
.btn-sm { padding: .55rem .9rem; font-size: .6rem; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); box-shadow: none; }
.btn-ghost:hover { background: var(--cyan); color: var(--ink); box-shadow: none; }
.btn-yt { background: #e02020; }
.btn-yt:hover { background: #ff3030; color: var(--white); }
.link { background: none; border: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }

/* top bar */
.top { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 1.5rem; height: 64px; padding: 0 clamp(1rem, 3vw, 2rem); background: rgba(7,8,26,.92); backdrop-filter: blur(10px); border-bottom: 3px solid var(--blue); }
.top-brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(64,224,255,.5)); }
.top-nav { display: flex; gap: 1.2rem; flex: 1; flex-wrap: wrap; }
.top-nav a { color: var(--text); text-decoration: none; font: 400 .6rem var(--pix); text-transform: uppercase; letter-spacing: 1px; padding: .4rem 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--cyan); border-color: var(--cyan); text-shadow: var(--glow-c); }

/* hero */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem 5rem; overflow: hidden; border-bottom: 4px solid var(--blue); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; filter: saturate(1.1); opacity: .35; image-rendering: pixelated; transform: scale(1.04); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(32,96,255,.25), transparent 60%), linear-gradient(180deg, rgba(7,8,26,.3) 0%, rgba(7,8,26,.1) 40%, var(--bg) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.eyebrow { font: 400 .65rem var(--pix); color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; text-shadow: var(--glow-c); }
.hero-logo { width: min(620px, 92vw); filter: drop-shadow(0 10px 0 rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(32,96,255,.45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.tagline { font: 400 clamp(1.4rem, 3.2vw, 2.2rem)/1.15 var(--comic); color: var(--yellow); letter-spacing: 1px; text-shadow: 3px 3px 0 var(--ink), 0 0 24px rgba(255,208,32,.35); }
.lead { max-width: 640px; color: var(--text); font-size: 1.05rem; }
.lead em { color: var(--cyan); font-style: normal; font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: .5rem; }
.hero-tags { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.tag { font: 400 .5rem var(--pix); color: var(--ink); background: var(--cyan); padding: .4rem .6rem; border: 2px solid var(--ink); box-shadow: 2px 2px 0 #000; }
.hero-marquee { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); border-top: 2px solid var(--blue); color: var(--steel); font: 400 .55rem/2.6 var(--pix); white-space: nowrap; overflow: hidden; }
.hero-marquee span { display: inline-block; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* sections */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.sec-num { font: 400 .7rem var(--pix); color: var(--ink); background: var(--yellow); padding: .5rem .6rem; border: 2px solid var(--ink); box-shadow: 3px 3px 0 #000; }
.sec-head::after { content: ''; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 18px); }
.sec-intro { max-width: 820px; color: var(--muted); margin-bottom: 1.6rem; font-size: 1.02rem; }
.loading-text { color: var(--muted); font: 400 .6rem var(--pix); }

/* about */
.about { display: grid; grid-template-columns: minmax(260px, 1fr) 1.2fr; gap: 2rem; align-items: start; }
.about-art { border: 4px solid var(--ink); box-shadow: var(--shadow), 0 0 0 2px var(--blue); background: #000; }
.about-art img { image-rendering: pixelated; aspect-ratio: 3/2; object-fit: cover; }
.about-art figcaption { font: 400 .55rem/1.5 var(--pix); color: var(--muted); padding: .6rem .8rem; background: var(--ink); }
.about-text { display: flex; flex-direction: column; gap: 1rem; font-size: 1.05rem; }
.about-text strong { color: var(--cyan); }
.feats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.feats li { background: var(--panel); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; border-top: 4px solid var(--blue); }
.feats h3 { margin-bottom: .4rem; }
.feats p { color: var(--muted); font-size: .95rem; }
.cast { margin-top: 2.5rem; background: var(--ink); border: 3px solid var(--blue); padding: 1.3rem 1.5rem; }
.cast-title { font: 400 .65rem var(--pix); color: var(--yellow); margin-bottom: .8rem; }
.cast ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem 1.5rem; color: var(--text); font-size: .95rem; }
.cast b { color: var(--cyan); }

/* play */
.sec-play { max-width: 1180px; }
.cabinet { background: linear-gradient(180deg, #1a1c48, var(--panel)); border: 4px solid var(--ink); box-shadow: 8px 8px 0 #000, 0 0 0 3px var(--blue), 0 0 60px rgba(32,96,255,.25); padding: 1rem; }
.cabinet-top { display: flex; align-items: center; gap: .8rem; padding: .2rem .4rem .9rem; font: 400 .6rem var(--pix); color: var(--yellow); letter-spacing: 1px; }
.cab-title { text-shadow: var(--glow-y); }
.cab-sub { margin-left: auto; color: var(--steel); }
.led { width: 10px; height: 10px; background: #40ff90; border-radius: 50%; box-shadow: 0 0 8px #40ff90; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35 } }
.stage { background: #000; border: 4px solid var(--ink); outline: none; }
.stage-screen { position: relative; aspect-ratio: 10 / 7; background: #000; overflow: hidden; }
.stage-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.stage-overlay, .stage-loading, .stage-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1.5rem; background: radial-gradient(ellipse at center, rgba(7,8,26,.5), rgba(7,8,26,.85)); }
.stage-note { color: var(--muted); font-size: .9rem; max-width: 420px; }
.stage-loading p { font: 400 .7rem var(--pix); color: var(--cyan); }
.loadbar { width: 220px; height: 12px; border: 2px solid var(--cyan); padding: 2px; }
.loadbar span { display: block; height: 100%; width: 40%; background: var(--blue); animation: load 1.2s ease-in-out infinite alternate; }
@keyframes load { from { width: 15% } to { width: 95% } }
.stage-error p:first-child { font: 400 .75rem var(--pix); color: var(--pink); }
.stage-focus { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem; text-align: center; background: rgba(16,16,32,.85); color: var(--yellow); font: 400 .55rem var(--pix); pointer-events: none; animation: blink 1.6s steps(1) infinite; }
[hidden] { display: none !important; }
.cabinet-bar { display: flex; align-items: center; gap: 1rem; padding: .9rem .4rem .2rem; flex-wrap: wrap; }
.cab-status { flex: 1; font: 400 .55rem/1.6 var(--pix); color: var(--steel); }
.cab-actions { display: flex; gap: .6rem; }
.stage:fullscreen { display: grid; place-items: center; background: #000; border: 0; }
.stage:fullscreen .stage-screen { width: min(100vw, calc(100vh * 10 / 7)); height: min(100vh, calc(100vw * 7 / 10)); }
.quick-keys { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: center; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.mobile-note { display: none; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* controls */
.controls { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.ctl { width: 100%; border-collapse: collapse; background: var(--panel); border: 3px solid var(--ink); box-shadow: var(--shadow); font-size: .95rem; }
.ctl th { font: 400 .55rem var(--pix); color: var(--yellow); text-align: left; padding: .9rem .9rem; background: var(--ink); }
.ctl td { padding: .7rem .9rem; border-top: 1px solid rgba(128,144,192,.25); vertical-align: top; }
.ctl td:first-child { font-weight: 600; color: var(--cyan); }
.ctl small { color: var(--muted); font-weight: 400; }
.combos { background: var(--panel); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; }
.combos h3 { margin-bottom: .6rem; }
.levels { margin: .8rem 0 1rem 0; list-style: none; display: grid; gap: .35rem; font-size: .92rem; }
.levels li b:first-child { display: inline-block; width: 1.6em; color: var(--yellow); font-family: var(--pix); font-size: .6rem; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.tips > div { border-left: 4px solid var(--pink); padding: .2rem 1rem; }
.tips p { color: var(--muted); font-size: .92rem; }

/* HQ */
.sec-hq { background: linear-gradient(180deg, transparent, rgba(128,48,192,.08), transparent); }
.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem; }
.hq-card { background: var(--panel); border: 3px solid var(--ink); box-shadow: var(--shadow); text-align: left; color: var(--text); cursor: pointer; display: flex; flex-direction: column; transition: transform .12s; font: inherit; padding: 0; }
.hq-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000, 0 0 0 2px var(--pink); }
.hq-cover { aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; position: relative; }
.hq-cover img { width: 100%; height: 100%; object-fit: cover; }
.hq-num { position: absolute; top: .6rem; left: .6rem; font: 400 .55rem var(--pix); background: var(--yellow); color: var(--ink); padding: .35rem .5rem; border: 2px solid var(--ink); }
.hq-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.hq-title { font: 400 1.25rem var(--comic); color: var(--white); letter-spacing: .5px; }
.hq-syn { font-size: .88rem; color: var(--muted); flex: 1; }
.hq-read { font: 400 .55rem var(--pix); color: var(--cyan); }
.hq-empty { grid-column: 1 / -1; border: 3px dashed var(--purple); padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
.hq-empty h3 { color: var(--pink); margin-bottom: .5rem; font-family: var(--comic); font-size: 1.6rem; letter-spacing: 1px; text-transform: none; }

/* gallery */
.gal-group { margin-bottom: 2.2rem; }
.gal-group h3 { font: 400 .6rem var(--pix); color: var(--cyan); margin-bottom: 1rem; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.shot { background: #000; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 0; cursor: zoom-in; color: var(--text); text-align: left; font: inherit; transition: transform .12s; }
.shot:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000, 0 0 0 2px var(--cyan); }
.shot img { width: 100%; aspect-ratio: 10/7; object-fit: cover; }
.shot figcaption { padding: .5rem .7rem; font-size: .82rem; color: var(--muted); background: var(--panel); }

/* footer */
.foot { margin-top: 2rem; border-top: 4px solid var(--blue); background: linear-gradient(180deg, var(--bg2), #000); padding: 3.5rem clamp(1rem, 3vw, 2rem) 2rem; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
.foot-logo { width: 220px; filter: drop-shadow(0 0 20px rgba(64,224,255,.35)); }
.foot-text h2 { color: var(--white); margin-bottom: .8rem; }
.foot-text p { color: var(--muted); max-width: 560px; margin-bottom: 1.4rem; }
.foot-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.copy { max-width: var(--wrap); margin: 3rem auto 0; text-align: center; font: 400 .5rem/1.8 var(--pix); color: var(--steel); }

/* reader */
.reader { border: 0; padding: 0; background: #000; color: var(--text); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; display: none; flex-direction: column; }
.reader[open] { display: flex; }
.reader::backdrop { background: rgba(0,0,0,.92); }
.reader-top { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; background: var(--ink); border-bottom: 3px solid var(--blue); }
.reader-title { font: 400 1.2rem var(--comic); letter-spacing: .5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-count { font: 400 .55rem var(--pix); color: var(--yellow); }
.rbtn { background: var(--panel); color: var(--white); border: 2px solid var(--steel); width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.rbtn:hover { background: var(--blue); }
.reader-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; user-select: none; }
.reader-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rnav { position: absolute; top: 0; bottom: 0; width: 18%; min-width: 56px; background: transparent; border: 0; color: transparent; font-size: 3rem; cursor: pointer; }
.rnav:hover, .rnav:focus-visible { color: var(--yellow); background: linear-gradient(90deg, rgba(0,0,0,.5), transparent); }
.rnav-prev { left: 0; } .rnav-next { right: 0; background: linear-gradient(270deg, rgba(0,0,0,0), transparent); }
.rnav-next:hover { background: linear-gradient(270deg, rgba(0,0,0,.5), transparent); }
.reader-foot { padding: .6rem 1rem; background: var(--ink); border-top: 2px solid var(--blue2); display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); min-height: 2.6rem; }
.reader-foot .btn { font-size: .55rem; }

@media (max-width: 860px) {
  .about, .controls, .foot-inner { grid-template-columns: 1fr; }
  .foot-inner { text-align: center; justify-items: center; }
  .foot-actions { justify-content: center; }
  .top { gap: .8rem; } .top-nav { gap: .8rem; } .top-nav a { font-size: .5rem; } .top > .btn { display: none; }
  .hero { min-height: 70vh; }
  .mobile-note { display: block; }
  .ctl { font-size: .85rem; } .ctl td, .ctl th { padding: .55rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-marquee span, .led, .stage-focus, .loadbar span { animation: none; }
  html { scroll-behavior: auto; }
}
