/* ARCADE WARS portal — universe pages (website evolution). Builds on portal.css (same tokens, buttons, type).
   Each section has its own composition: HQ panels (história), stage select (fases), character select (personagens), trading cards (inimigos),
   command list (combate), RPG inventory (itens), magazine (referências), case files (segredos), trophy wall (conquistas), museum wings (museu),
   high score board (ranking), ID card (perfil), jukebox (trilha), timeline (bastidores). Pixel art always nearest-neighbour. */

/* ---------- header with the full menu ---------- */
.top2 { gap: .8rem; }
.top2 .top-home img { height: 34px; width: auto; }
.top2 .top-nav a[aria-current="page"] { color: var(--yellow); }
.top-tools { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.id-chip { font: .55rem var(--pix); color: var(--cyan); text-decoration: none; border: 2px solid var(--cyan); padding: .45rem .55rem; border-radius: 4px; white-space: nowrap; }
.id-chip:hover { background: var(--cyan); color: var(--ink); }
.menu-btn { font: .6rem var(--pix); background: var(--ink); color: var(--yellow); border: 3px solid var(--yellow); padding: .5rem .7rem; border-radius: 4px; cursor: pointer; }
.aw-menu { position: fixed; inset: 0; z-index: 9000; background: rgba(7, 8, 26, .97); overflow: auto; padding: 5rem 1.2rem 2rem; }
.aw-menu-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.aw-menu h2 { font-size: .7rem; color: var(--pink); margin-bottom: .6rem; }
.aw-menu a { display: block; font: 800 1.15rem var(--body); color: var(--text); text-decoration: none; padding: .35rem 0; border-bottom: 1px dashed #ffffff18; }
.aw-menu a:hover, .aw-menu a:focus-visible { color: var(--yellow); padding-left: .4rem; }
.aw-menu a::before { content: '▸ '; color: var(--cyan); }
.aw-menu .close { position: fixed; top: 1rem; right: 1rem; }
body.menu-open { overflow: hidden; }
@media (max-width: 1340px) { .top2 .top-nav { display: none; } }   /* seven links: below this width they wrap into two rows, the MENU button has them all */

/* ---------- page hero (inner pages) ---------- */
.ph { position: relative; overflow: hidden; padding: 7.5rem 1.2rem 3rem; border-bottom: 4px solid var(--ink); }
.ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; image-rendering: pixelated; opacity: .35; filter: saturate(1.2); }
.ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #07081a55, #07081a 92%); }
.ph-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.ph .kicker { font: .6rem var(--pix); color: var(--pink); letter-spacing: 2px; }
.ph h1 { font: 400 clamp(1.3rem, 4.4vw, 2.6rem)/1.25 var(--pix); color: var(--yellow); text-shadow: 4px 4px 0 #000, 0 0 24px #ffd02055; margin: .7rem 0; }
.ph p.lead { max-width: 62ch; font-size: 1.1rem; color: var(--text); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.2rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; } .crumbs a { color: var(--muted); }
.pill { display: inline-block; font: .5rem var(--pix); padding: .35rem .5rem; border: 2px solid currentColor; border-radius: 3px; color: var(--cyan); margin: .15rem .2rem .15rem 0; }
.pill.y { color: var(--yellow); } .pill.p { color: var(--pink); } .pill.g { color: #50e080; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.6rem; }
.chips button { font: .55rem var(--pix); background: var(--ink); color: var(--muted); border: 2px solid #2a2f6a; padding: .55rem .7rem; border-radius: 4px; cursor: pointer; }
.chips button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.progress { height: 14px; background: var(--ink); border: 2px solid #2a2f6a; border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p, 0); background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, #e0b000 8px 10px); transition: width .6s; }
.statline { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; font: .6rem var(--pix); color: var(--muted); margin: 1rem 0; }
.statline b { color: var(--yellow); font-size: .9rem; }

/* ---------- sprites (CSS steps over the game's own sheets) ---------- */
.spr { display: inline-block; width: var(--w, 0); height: var(--h, 0); background-repeat: no-repeat; background-size: var(--sw) var(--h); image-rendering: pixelated; }
.spr.on { animation: spr var(--t) steps(var(--n)) infinite; }
@keyframes spr { to { background-position: calc(-1 * var(--sw)) 0; } }
.spr.red { filter: hue-rotate(-40deg) saturate(1.8) brightness(1.05); }
@media (prefers-reduced-motion: reduce) { .spr.on { animation: none; } }

/* ---------- história: HQ panels ---------- */
.hq-strip { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.panel { position: relative; background: #000; border: 4px solid #fff; box-shadow: 6px 6px 0 #000; overflow: hidden; margin: 0; }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel figcaption { position: absolute; left: 10px; top: 10px; max-width: 78%; background: #fff7d0; color: #101020; font: 700 .95rem/1.35 var(--body); padding: .5rem .7rem; border: 3px solid #101020; box-shadow: 3px 3px 0 #000; }
.panel.b figcaption { top: auto; bottom: 10px; }
.p6 { grid-column: span 6; aspect-ratio: 21/9; } .p4 { grid-column: span 4; aspect-ratio: 16/10; } .p3 { grid-column: span 3; aspect-ratio: 4/3; } .p2 { grid-column: span 2; aspect-ratio: 3/4; }
@media (max-width: 760px) { .p4, .p3, .p2 { grid-column: span 6; aspect-ratio: 16/10; } }
.story-time { font: .8rem var(--pix); color: var(--yellow); margin: 2.4rem 0 1rem; }
.hq-quote { font: 400 clamp(1.4rem, 3.6vw, 2.2rem)/1.15 var(--comic); color: var(--cyan); letter-spacing: 1px; text-shadow: 3px 3px 0 #000; margin: 2rem 0; }

/* ---------- fases: map + stage select ---------- */
.map-hero { border: 4px solid var(--yellow); box-shadow: 8px 8px 0 #000; border-radius: 4px; overflow: hidden; }
.regions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0 0; }
.chapter { margin: 3rem 0 1rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.chapter h2 small { color: var(--muted); font-size: .6rem; }
.stages { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stage-card { background: var(--panel); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #000; overflow: hidden; transition: transform .15s; }
.stage-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; outline: 3px solid var(--yellow); }
.stage-card .shot { position: relative; aspect-ratio: 320/224; }
.stage-card .shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.stage-card .no { position: absolute; left: 8px; top: 8px; font: .8rem var(--pix); color: var(--ink); background: var(--yellow); padding: .35rem .5rem; box-shadow: 3px 3px 0 #000; }
.stage-card .body { padding: 1rem 1.1rem 1.2rem; }
.stage-card h3 { color: var(--yellow); } .stage-card p { color: var(--text); font-size: .95rem; margin: .4rem 0 .6rem; }
.stage-card .meta { font-size: .8rem; color: var(--muted); }
.stage-card.soon { opacity: .75; } .stage-card.soon .shot { filter: grayscale(1) brightness(.5); }

/* ---------- personagens: character select ---------- */
.cs { display: grid; gap: 1.5rem; grid-template-columns: 300px 1fr; align-items: start; }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; } }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.cs-grid button { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 30%, #2a3080, #0c0e2a); border: 4px solid #2a2f6a; cursor: pointer; padding: 0; overflow: hidden; }
.cs-grid button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-grid button span { position: absolute; left: 0; right: 0; bottom: 0; font: .5rem var(--pix); color: #fff; background: #000c; padding: .4rem .2rem; }
.cs-grid button[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px #000, 0 0 22px #ffd02088; }
.cs-grid .secret-face { display: flex; align-items: center; justify-content: center; font: 2.4rem var(--pix); color: #ff40c0; text-shadow: 0 0 18px #ff40c0; }
.cs-panel { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 1.5rem; background: linear-gradient(135deg, #121538, #0a0b22); border: 4px solid var(--yellow); box-shadow: 8px 8px 0 #000; padding: 1.4rem; }
@media (max-width: 640px) { .cs-panel { grid-template-columns: 1fr; } }
.cs-art { display: flex; align-items: flex-end; justify-content: center; min-height: 300px; background: radial-gradient(ellipse at 50% 90%, #2060ff55, transparent 60%); }
.cs-art img { max-height: 420px; width: auto; }
.cs-panel .role { font: .6rem var(--pix); color: var(--pink); }
.cs-panel h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin: .4rem 0 .8rem; }
.cs-panel ul { list-style: none; margin: 1rem 0; } .cs-panel li { padding: .3rem 0 .3rem 1.2rem; position: relative; } .cs-panel li::before { content: '★'; position: absolute; left: 0; color: var(--yellow); }
.classified { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; background: repeating-linear-gradient(45deg, #15051a 0 14px, #1d0822 14px 28px); border: 3px dashed #ff40c0; }
.classified .sil { width: 150px; height: 220px; background: #000; clip-path: polygon(50% 0, 66% 8%, 70% 24%, 64% 34%, 92% 44%, 100% 100%, 0 100%, 8% 44%, 36% 34%, 30% 24%, 34% 8%); box-shadow: 0 0 40px #ff40c0; filter: drop-shadow(0 0 14px #ff40c0); }
.classified p { font: .6rem var(--pix); color: #ff40c0; letter-spacing: 2px; }

/* ---------- inimigos: trading cards + boss banners ---------- */
.cards { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tcard { background: linear-gradient(180deg, #2a1c70, #120c3a); border: 4px solid #8090c0; border-radius: 10px; box-shadow: 6px 6px 0 #000; padding: .8rem; display: flex; flex-direction: column; }
.tcard .tc-head { display: flex; justify-content: space-between; align-items: baseline; font: .6rem var(--pix); color: var(--yellow); }
.tcard .tc-head small { color: var(--muted); font-size: .5rem; }
.tcard .tc-art { height: 190px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 85%, #ff40c033, #0006 70%), #07081a; border: 3px solid #000; margin: .6rem 0; }
.tcard p { font-size: .92rem; } .tcard .tc-skills { margin: .5rem 0; font-size: .82rem; color: var(--cyan); }
.bars { display: grid; gap: .3rem; margin-top: auto; font: .45rem var(--pix); color: var(--muted); }
.bars span { display: grid; grid-template-columns: 70px 1fr; gap: .4rem; align-items: center; }
.bars i { height: 8px; background: linear-gradient(90deg, var(--pink), var(--yellow)); width: var(--v); box-shadow: inset 0 -2px #0005; }
.boss { position: relative; margin: 2.4rem 0; border: 4px solid #e02040; box-shadow: 10px 10px 0 #000; overflow: hidden; min-height: 380px; display: grid; grid-template-columns: 1.2fr 1fr; background: #000; }
@media (max-width: 760px) { .boss { grid-template-columns: 1fr; } }
.boss-art { background-size: cover; background-position: center; image-rendering: pixelated; min-height: 300px; }
.boss-body { padding: 1.6rem; background: linear-gradient(90deg, #000 0, #1a0410 100%); }
.boss-warn { font: .7rem var(--pix); color: #ff3050; animation: blink 1s steps(2) infinite; }
.boss h3 { font: 400 clamp(1.4rem, 3vw, 2.2rem) var(--pix); color: #fff; text-shadow: 3px 3px 0 #e02040; margin: .6rem 0; text-transform: none; }
.hpbar { height: 16px; border: 2px solid #fff; background: #300; margin: .8rem 0; } .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3050, #ffd020); width: 100%; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- combate: command list ---------- */
.moves { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.move { display: grid; grid-template-columns: 136px 1fr; gap: .9rem; align-items: center; background: var(--panel); border-left: 6px solid var(--blue); padding: .6rem .8rem; box-shadow: 4px 4px 0 #000; }
.move.special { border-left-color: var(--yellow); background: linear-gradient(90deg, #2a2208, var(--panel) 60%); }
.move.air { border-left-color: var(--cyan); }
.move .mv-art { width: 136px; height: 104px; display: flex; align-items: center; justify-content: center; background: #07081a; overflow: hidden; }
.move h3 { font-size: .95rem; } .move .cmd { margin: .35rem 0; }
.move .cmd kbd { font-size: .7rem; }
.move .mv-meta { font-size: .78rem; color: var(--muted); }
.energy { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.2rem 0; }
.energy div { background: var(--ink); border: 3px solid var(--yellow); padding: .7rem; text-align: center; font-size: .85rem; }
.energy b { display: block; font: .6rem var(--pix); color: var(--yellow); margin-bottom: .3rem; }
@media (max-width: 640px) { .energy { grid-template-columns: repeat(2, 1fr); } }

/* ---------- itens: RPG inventory ---------- */
.inv { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.slot { display: grid; grid-template-columns: 84px 1fr; gap: .8rem; align-items: center; background: #0c0e2a; border: 3px solid #2a2f6a; border-radius: 6px; padding: .7rem; }
.slot .ico { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: #000; border: 2px solid #40e0ff55; }
.slot .ico img { max-width: 76px; max-height: 76px; image-rendering: pixelated; }
.slot.rare { border-color: var(--yellow); box-shadow: 0 0 16px #ffd02055, inset 0 0 18px #ffd02022; } .slot.rare .ico { border-color: var(--yellow); }
.slot h3 { font-size: .9rem; color: var(--yellow); } .slot p { font-size: .85rem; } .slot .eff { color: #50e080; font-weight: 800; }

/* ---------- referências: magazine ---------- */
.mag { columns: 3 280px; column-gap: 1.2rem; }
.ref { break-inside: avoid; margin: 0 0 1.2rem; background: #f4efe2; color: #181818; border: 3px solid #000; box-shadow: 5px 5px 0 #000; padding: .9rem; position: relative; }
.ref .ref-src { font: .5rem var(--pix); color: #fff; background: #e02040; padding: .3rem .4rem; display: inline-block; transform: rotate(-2deg); }
.ref h3 { color: #101020; font-size: 1rem; margin: .5rem 0 .3rem; } .ref p { font-size: .92rem; } .ref .ref-act { font-size: .75rem; color: #555; margin-top: .4rem; }
.ref img { margin: .6rem auto 0; max-height: 120px; width: auto; image-rendering: pixelated; }
.ref.osasco .ref-src { background: #2060ff; }

/* ---------- segredos: case files ---------- */
.files { display: grid; gap: 2.2rem 1rem; padding-top: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.file { position: relative; background: #e9d9a8; color: #2a1d08; border-radius: 0 8px 8px 8px; padding: 1rem 1rem 1.1rem; box-shadow: 5px 5px 0 #000; min-height: 170px; }
.file::before { content: attr(data-tab); position: absolute; top: -22px; left: 0; background: #e9d9a8; padding: .25rem .7rem; font: .5rem var(--pix); border-radius: 6px 6px 0 0; }
.file h3 { color: #2a1d08; font-size: .95rem; } .file .hint { font-style: italic; margin: .4rem 0; }
.file .spoiler { display: none; border-top: 2px dashed #2a1d0855; margin-top: .6rem; padding-top: .6rem; font-size: .9rem; }
body.spoilers .file .spoiler, .file.found .spoiler { display: block; }
.file .stamp { position: absolute; right: 10px; bottom: 10px; font: .55rem var(--pix); color: #b01020; border: 3px solid #b01020; padding: .3rem .4rem; transform: rotate(-10deg); opacity: 0; }
.file.found .stamp { opacity: .85; } .file:not(.found) h3 .real { filter: blur(5px); } body.spoilers .file h3 .real { filter: none; }
.file [data-when] { display: block; font-size: .75rem; color: #6a5520; margin-top: .4rem; }
.spoil-toggle { display: inline-flex; gap: .5rem; align-items: center; font: .6rem var(--pix); color: var(--pink); cursor: pointer; }
.spoil-toggle input { width: 22px; height: 22px; accent-color: var(--pink); }

/* ---------- conquistas: trophy wall ---------- */
.trophies { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.trophy { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: center; background: #0c0e2a; border: 3px solid #2a2f6a; padding: .7rem; filter: grayscale(.8); opacity: .75; }
.trophy.found { filter: none; opacity: 1; border-color: var(--yellow); background: linear-gradient(90deg, #2a2208, #0c0e2a); }
.trophy .medal { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 1.4rem var(--pix); background: radial-gradient(circle at 35% 30%, #fff6, #ffd020 40%, #a07000); border: 3px solid #000; color: #101020; }
.trophy h3 { font-size: .85rem; color: var(--yellow); } .trophy p { font-size: .82rem; } .trophy .cat { font: .45rem var(--pix); color: var(--muted); }
.trophy [data-when] { font-size: .72rem; color: #50e080; }

/* ---------- museu: wings and cases ---------- */
.wing { margin: 2.6rem 0 1rem; } .wing h2 { display: flex; gap: .8rem; align-items: center; } .wing h2::after { content: ''; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 16px); }
.cases { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.case { background: linear-gradient(180deg, #1a1d48, #0c0e2a); border: 3px solid #3a3f80; padding: .7rem; text-align: center; position: relative; }
.case .pedestal { height: 120px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 100%, #40e0ff33, transparent 70%); }
.case img { width: 96px; height: 96px; image-rendering: pixelated; filter: brightness(0) drop-shadow(0 0 2px #40e0ff66); }
.case.found img, body.spoilers .case img { filter: none; }
.case h3 { font-size: .78rem; margin-top: .4rem; } .case p { font-size: .8rem; color: var(--muted); display: none; } .case.found p, body.spoilers .case p { display: block; }
.case.found { border-color: var(--yellow); } .case [data-when] { font-size: .7rem; color: #50e080; }

/* ---------- galeria ---------- */
.gal { columns: 3 260px; column-gap: 12px; } .gal a { display: block; margin: 0 0 12px; break-inside: avoid; border: 3px solid var(--ink); box-shadow: 4px 4px 0 #000; }
.gal img { width: 100%; image-rendering: pixelated; } .gal a:hover { outline: 3px solid var(--yellow); }
.lb { position: fixed; inset: 0; z-index: 9500; background: #000e; display: flex; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
.lb[hidden] { display: none; } .lb figure { max-width: 100%; max-height: 100%; text-align: center; } .lb img { max-height: 82vh; width: auto; margin: 0 auto; image-rendering: pixelated; }
.lb figcaption { color: var(--text); margin-top: .6rem; } .lb button { position: absolute; background: var(--ink); color: var(--yellow); border: 3px solid var(--yellow); font: 1.2rem var(--pix); width: 46px; height: 46px; cursor: pointer; }
.lb-x { top: 12px; right: 12px; } .lb-p { left: 8px; top: 50%; } .lb-n { right: 8px; top: 50%; }

/* ---------- ranking ---------- */
.board-wrap { background: #050616; border: 6px solid var(--yellow); box-shadow: 0 0 0 4px #000, 10px 10px 0 #000; padding: 1.2rem; }
.board { width: 100%; border-collapse: collapse; font: .62rem/1.9 var(--pix); color: #e0e0f0; }
.board th { color: var(--cyan); text-align: left; padding: .4rem; border-bottom: 3px solid #2a2f6a; font-weight: 400; } .board td { padding: .35rem .4rem; }
.board tr.top1 td { color: var(--yellow); } .board tr.top2 td { color: #e0e0f0; } .board tr.top3 td { color: #ff9040; }
.board tr.me td { background: #2060ff33; } .board .num { letter-spacing: 2px; } .board a { color: inherit; }
@media (max-width: 640px) { .board .opt { display: none; } .board { font-size: .52rem; } }
.board-empty { font: .65rem/2 var(--pix); color: var(--muted); text-align: center; padding: 2rem 0; }

/* ---------- perfil ---------- */
.idcard { display: grid; grid-template-columns: 170px 1fr; gap: 1.4rem; background: linear-gradient(135deg, #2060ff, #102080 55%, #0a0b22); border: 4px solid #fff; border-radius: 14px; padding: 1.4rem; box-shadow: 8px 8px 0 #000; }
@media (max-width: 600px) { .idcard { grid-template-columns: 1fr; } }
.idcard-face { background: #000; border: 3px solid var(--yellow); border-radius: 8px; overflow: hidden; } .idcard-face img { width: 100%; }
.idcard-kicker { font: .55rem var(--pix); color: var(--yellow); } .idcard h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); color: #fff; } .idcard-pid { font: .6rem var(--pix); color: var(--cyan); }
.idstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-top: 1rem; }
.idstats div { background: #0008; padding: .5rem; border-radius: 6px; } .idstats dt { font: .45rem var(--pix); color: var(--muted); } .idstats dd { font: .75rem var(--pix); color: #fff; margin-top: .3rem; }
.idtools { margin-top: 1.6rem; display: grid; gap: 1rem; } .idform { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.idform label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); } .idform input { font: 1rem var(--body); padding: .6rem; background: var(--ink); color: #fff; border: 2px solid var(--steel); border-radius: 4px; min-width: 240px; }
.idrecover { margin-top: 1rem; background: var(--panel); padding: .8rem 1rem; border: 2px solid #2a2f6a; } .idrecover summary { cursor: pointer; font-weight: 800; color: var(--cyan); }
.idrecover code { display: inline-block; word-break: break-all; background: #000; padding: .4rem .6rem; margin: .4rem 0; color: var(--yellow); }
.idmsg { width: 100%; color: var(--yellow); font-size: .9rem; } .idnote { background: #2a2208; border-left: 4px solid var(--yellow); padding: .7rem 1rem; margin-bottom: 1rem; }

/* ---------- trilha: jukebox ---------- */
.jukebox { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; background: linear-gradient(180deg, #3a1048, #12051c); border: 6px solid #ff40c0; border-radius: 120px 120px 14px 14px; padding: 3rem 1.5rem 1.5rem; box-shadow: 0 0 30px #ff40c055, 10px 10px 0 #000; }
@media (max-width: 760px) { .jukebox { grid-template-columns: 1fr; border-radius: 40px 40px 12px 12px; } }
.jb-screen { background: #000; border: 4px solid #ffd020; padding: .8rem; } .jb-art { width: 100%; aspect-ratio: 320/224; object-fit: cover; image-rendering: pixelated; }
.jb-now { font: .6rem/1.8 var(--pix); color: var(--yellow); margin: .6rem 0 .4rem; min-height: 1.8em; } .jb-bar { height: 8px; background: #222; } .jb-bar i { display: block; height: 100%; width: 0; background: var(--pink); }
.jb-list { list-style: none; display: grid; gap: .45rem; } .jb-list button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: .6rem; align-items: center; text-align: left; background: #0c0414; color: var(--text); border: 2px solid #5a2070; padding: .55rem; cursor: pointer; border-radius: 6px; }
.jb-list button[aria-pressed="true"] { border-color: var(--yellow); background: #2a0a34; } .jb-list b { font: .6rem var(--pix); color: var(--pink); } .jb-list small { display: block; color: var(--muted); font-size: .78rem; }
.jukebox.playing .jb-screen { box-shadow: 0 0 22px #ffd02088; }

/* ---------- bastidores: timeline ---------- */
.tl { position: relative; padding-left: 2rem; } .tl::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(180deg, var(--cyan) 0 12px, transparent 12px 18px); }
.tl-item { position: relative; margin: 0 0 2.4rem; } .tl-item::before { content: ''; position: absolute; left: -2rem; top: .3rem; width: 20px; height: 20px; background: var(--yellow); border: 3px solid #000; }
.tl-item h3 { font-size: 1.05rem; } .tl-pics { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: .8rem; }
.tl-pics figure { margin: 0; background: #000; border: 3px solid var(--ink); } .tl-pics img { width: 100%; image-rendering: pixelated; } .tl-pics figcaption { font-size: .78rem; color: var(--muted); padding: .35rem .5rem; background: var(--panel); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } @media (max-width: 600px) { .vs { grid-template-columns: 1fr; } }

/* ---------- home additions ---------- */
.uni { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.uni a { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border: 3px solid var(--ink); box-shadow: 5px 5px 0 #000; text-decoration: none; }
.uni img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .3s; } .uni a:hover img { transform: scale(1.06); }
.uni span { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem; font: .6rem var(--pix); color: #fff; background: linear-gradient(0deg, #000d, transparent); }
.uni a:hover { outline: 3px solid var(--yellow); }
.home-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.home-cast a { text-decoration: none; color: var(--text); } .home-cast .spr, .home-cast img { margin: 0 auto; } .home-cast b { display: block; font: .55rem var(--pix); color: var(--yellow); margin-top: .4rem; }

/* ---------- CONTINUE? easter egg ---------- */
.cont { position: fixed; inset: 0; z-index: 9800; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.cont-in { max-width: 560px; display: grid; gap: 1rem; justify-items: center; } .cont-t { font: 400 clamp(1.6rem, 6vw, 3rem) var(--pix); color: var(--cyan); text-shadow: 4px 4px 0 #2060ff; }
.cont-t.ok { color: var(--yellow); } .cont-t.go { color: #e02020; text-shadow: 4px 4px 0 #500; }
.cont-n { font: 400 clamp(4rem, 18vw, 8rem) var(--pix); color: var(--yellow); text-shadow: 6px 6px 0 #b04000; } .cont-h { font: .65rem/1.8 var(--pix); color: #fff; } .cont-f { font: 1.05rem/1.6 var(--body); color: var(--text); max-width: 46ch; }
.cont-x { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: .9rem var(--body); }
.coin-slot { background: none; border: 2px solid var(--steel); color: var(--muted); font: .5rem var(--pix); padding: .5rem .7rem; border-radius: 4px; cursor: pointer; }
.coin-slot:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- phones: a header that fits one line, a compact character select ---------- */
.top2 .btn-sm, .menu-btn, .id-chip { white-space: nowrap; }
@media (max-width: 600px) {
  .top2 { gap: .4rem; padding-left: .5rem; padding-right: .5rem; } .top2 .top-home { display: none; }
  .id-chip { font-size: 0; padding: .45rem .5rem; } .id-chip::before { content: 'ID'; font-size: .55rem; }
  .top2 .btn-sm, .menu-btn { font-size: .5rem; padding: .5rem .55rem; }
  .cs-grid { grid-template-columns: repeat(4, 1fr); gap: .4rem; } .cs-grid button span { font-size: .38rem; }
}

/* ---- focused home (trailer, three cards, roadmap), Beta feedback form, press kit ---- */
.trailer { display: block; position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; background: #000; border: 4px solid var(--ink); box-shadow: var(--shadow), 0 0 0 2px var(--blue); }
.trailer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; display: grid; place-items: center; background: #e11d2a; color: #fff; font-size: 1.6rem; border: 3px solid var(--ink); box-shadow: var(--shadow); }
a.trailer:hover .trailer-play, a.trailer:focus-visible .trailer-play { background: #ff3b47; }
.trailer-note { text-align: center; margin: .7rem 0 2.2rem; }
.pitch { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.pitch a { display: block; background: var(--panel); border: 3px solid var(--ink); border-top: 4px solid var(--blue); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.pitch a:hover { outline: 3px solid var(--yellow); }
.pitch img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; image-rendering: pixelated; }
.pitch h3, .pitch p, .pitch span { margin: .8rem 1rem 0; } .pitch p { color: var(--muted); font-size: .95rem; }
.pitch span { display: block; margin-bottom: 1rem; font: .55rem/1.6 var(--pix); color: var(--yellow); }
.play-links { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; justify-content: center; margin-top: 1.2rem; font-size: .95rem; }
.road { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.road li { background: var(--panel); border: 3px solid var(--ink); border-left: 4px solid var(--pink); padding: 1rem 1.2rem; }
.road b { display: block; font: .6rem/1.7 var(--pix); color: var(--yellow); margin-bottom: .4rem; } .road p { color: var(--muted); font-size: .95rem; }
.wrap.narrow { max-width: 720px; }
.fb { display: grid; gap: 1.1rem; margin-top: 1.6rem; } .fb label { display: grid; gap: .35rem; color: var(--muted); font-size: .9rem; }
.fb textarea, .fb input:not([type=radio]) { width: 100%; font: 1rem var(--body); padding: .7rem; background: var(--ink); color: #fff; border: 2px solid var(--steel); border-radius: 4px; }
.fb-kind { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; } .fb-kind legend { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.fb .fb-kind label { display: flex; align-items: center; gap: .4rem; color: var(--text); font-size: 1rem; } .fb .btn { justify-self: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem 1.8rem; margin-top: 1rem; }
.facts div { border-bottom: 1px dashed var(--steel); padding-bottom: .5rem; } .facts dt { font: .5rem var(--pix); color: var(--cyan); margin-bottom: .35rem; } .facts dd { margin: 0; }
.copyable { background: var(--panel); border-left: 4px solid var(--blue); padding: .9rem 1.1rem; user-select: all; }
@media (max-width: 760px) {
  .pitch { grid-template-columns: 1fr; } .pitch a { display: grid; grid-template-columns: 38% 1fr; align-content: start; }
  .pitch img { grid-row: 1 / span 3; height: 100%; aspect-ratio: auto; } .pitch h3 { margin-top: .7rem; } .pitch p { font-size: .88rem; }
}
@media (max-width: 600px) { .uni { grid-template-columns: 1fr 1fr; gap: .6rem; } .uni span { font-size: .48rem; padding: .45rem; } }
/* home: the latest release shows its summary and the first new things; the full notes are one click away (novidades) */
#news-latest .rel-group:not(.g-add), #news-latest .g-add li:nth-child(n+5) { display: none; }

/* one footer for every page: the links line sits right above the copyright line */
.foot .copy + .copy { margin-top: .9rem; }
.foot-links { font-size: .55rem; }
.foot-links a { color: var(--white); }

/* personagens: arte padronizada (busto na grade, corpo inteiro na ficha) */
.cs-grid button img { object-fit: cover; object-position: 50% 12%; }
.cs-art { min-height: 420px; } .cs-art img { max-height: 460px; filter: drop-shadow(0 10px 18px #000a); }
/* museu: link para a imagem em tamanho real, só nas peças já encontradas */
.case .full { display: none; margin-top: .4rem; font-size: .7rem; color: var(--cyan, #40e0ff); }
.case.found .full { display: inline-block; }
.cs-panel .btn { margin-top: .8rem; }

/* EM BREVE (0.22.0): the hooded silhouette and a few pictures of Fases 3-5 */
.soon { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 1.4rem; align-items: start; margin-bottom: 1.6rem; }
.soon-who { margin: 0; background: radial-gradient(ellipse at 50% 60%, #2a1030 0%, var(--panel) 70%); border: 3px solid var(--ink); border-left: 4px solid var(--pink); padding: 1rem; text-align: center; }
.soon-who img { width: 100%; max-width: 200px; height: auto; image-rendering: pixelated; }
.soon-who b { display: block; font: .6rem/1.7 var(--pix); color: var(--yellow); margin: .8rem 0 .4rem; }
.soon-who p { color: var(--muted); font-size: .95rem; text-align: left; margin: .4rem 0 0; }
.soon-shots { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.soon-shots figure { margin: 0; background: var(--panel); border: 3px solid var(--ink); }
.soon-shots img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.soon-shots figcaption { font-size: .8rem; color: var(--muted); padding: .4rem .6rem; }
@media (max-width: 700px) { .soon { grid-template-columns: 1fr; } .soon-who img { max-width: 140px; } }
