/* NovaS page. A light, rounded console identity (neon red and blue controllers around a dark screen),
   deliberately unlike Nova5's night-and-aurora site. */
:root {
  --paper: #F2F3F5;
  --white: #FFFFFF;
  --ink: #26282E;
  --muted: #62666F;
  --line: #DADCE1;
  --red: #FF4554;
  --red-deep: #E0293A;
  --blue: #00C3E3;
  --blue-deep: #0098B5;
  --screen: #1C1D22;
  --screen-panel: #2A2C33;
  --screen-line: #3B3E47;
  --screen-text: #F3F4F7;
  --screen-dim: #9EA2AE;
  --round: 'M PLUS Rounded 1c', 'Segoe UI', system-ui, sans-serif;
  --gutter: max(16px, calc((100% - 1120px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--round); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue-deep); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.small { font-size: 14px; color: var(--muted); }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  background: rgba(242, 243, 245, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; }
.bar-links { display: flex; gap: 22px; margin-left: auto; }
.bar-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar-links a:hover { color: var(--ink); }

/* Pill buttons: the console's own rounded buttons */
.pill {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.pill.big { padding: 15px 30px; font-size: 18px; }
.pill-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.pill-red:hover { background: #FF5664; }
.pill-red:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep); }
.pill-line { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.pill-line:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }

/* Hero */
.hero { padding: 64px var(--gutter) 40px; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.025em; }
.lede { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.downloads { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.downloads[hidden] { display: none; }
.downloads b { color: var(--red-deep); }

/* The console */
.console {
  --joy-w: clamp(56px, 8vw, 104px);
  margin: 48px auto 0; max-width: 1180px;
  display: grid; grid-template-columns: var(--joy-w) 1fr var(--joy-w);
  filter: drop-shadow(0 30px 40px rgba(38, 40, 46, .22));
}
.screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--screen); color: var(--screen-text);
  border: clamp(8px, 1.2vw, 16px) solid #101115; border-left-width: 0; border-right-width: 0;
  container-type: inline-size; cursor: default;
}
.screen:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--blue); }

.joy {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 22% 0 14%; gap: 9%;
}
.joy-left  { background: var(--red);  border-radius: 999px 0 0 999px / 120px 0 0 120px; }
.joy-right { background: var(--blue); border-radius: 0 999px 999px 0 / 0 120px 120px 0; }
.joy-left::after, .joy-right::after {
  content: ''; position: absolute; top: 12%; bottom: 12%; width: 4px; border-radius: 4px;
}
.joy-left::after  { right: 4px; background: rgba(0, 0, 0, .14); }
.joy-right::after { left: 4px;  background: rgba(0, 0, 0, .14); }
.joy button { font-family: var(--round); cursor: pointer; border: 0; padding: 0; }
.stick {
  width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4A4D56, #1F2025 70%);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .25), inset 0 -3px 0 rgba(0, 0, 0, .35);
  transition: transform .1s ease;
}
.stick:active { transform: scale(.92); }
.dpad, .abxy { position: relative; width: 62%; aspect-ratio: 1; }
.dpad button, .abxy button {
  position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: #24262C; color: #E9EAEE; font-weight: 800; font-size: clamp(9px, 1vw, 13px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .45);
  transition: transform .08s ease, background .08s ease;
}
.dpad button:active, .abxy button:active, .dpad button.hit, .abxy button.hit { transform: scale(.88); background: #3A3D45; }
.dpad button:nth-child(1), .abxy button:nth-child(1) { top: 0; left: 32%; }
.dpad button:nth-child(2), .abxy button:nth-child(2) { top: 32%; left: 0; }
.dpad button:nth-child(3), .abxy button:nth-child(3) { top: 32%; right: 0; }
.dpad button:nth-child(4), .abxy button:nth-child(4) { bottom: 0; left: 32%; }
.joy-minus, .joy-plus { position: relative; width: 22%; height: 4px; border-radius: 4px; background: #24262C; }
.joy-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 340%; transform: translate(-50%, -50%); border-radius: 4px; background: #24262C; }
.joy-cap, .joy-home { width: 22%; aspect-ratio: 1; border-radius: 30%; background: #24262C; }
.joy-home { border-radius: 50%; box-shadow: inset 0 0 0 3px #3A3D45; }
.console-help { margin: 20px auto 0; max-width: 1180px; text-align: center; color: var(--muted); font-size: 15px; }
.sound {
  margin-left: 10px; font: 600 14px var(--round); color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
.sound[aria-pressed='true'] { border-color: var(--blue); color: var(--blue-deep); }

/* NovaS home screen inside the console. Sizes in cqw so it scales with the screen. */
.home { position: absolute; inset: 0; padding: 4.4cqw 5cqw 0; display: flex; flex-direction: column; }
.home-top { display: flex; justify-content: space-between; align-items: center; }
.home-user { display: flex; align-items: center; gap: 1.2cqw; font-size: 2.2cqw; font-weight: 800; }
.home-user i { font-style: normal; color: var(--blue); }
.avatar { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: .3cqw solid var(--blue); background: var(--screen-panel) url('assets/novas/novas.svg') center / 62% no-repeat; }
.home-status { display: flex; gap: 2cqw; align-items: baseline; font-size: 1.3cqw; color: var(--screen-dim); }
.home-status time { font-size: 2cqw; font-weight: 700; color: var(--screen-text); }
.home-name { margin-top: 3.4cqw; font-size: 2.7cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-detail { font-size: 1.45cqw; color: var(--screen-dim); min-height: 2.2cqw; }
.home-row-wrap { margin-top: 1.6cqw; overflow: hidden; padding: 1.2cqw 0 1.2cqw 1cqw; margin-left: -1cqw; }
.home-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5cqw; transition: transform .22s cubic-bezier(.2, .8, .3, 1); }
.home-row li { flex: 0 0 auto; }
.tile {
  display: block; width: 16.6cqw; aspect-ratio: 1; border-radius: 1.3cqw; overflow: hidden; padding: 0;
  background: var(--screen-panel); border: .38cqw solid transparent; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.on { border-color: var(--blue); transform: scale(1.05); box-shadow: 0 0 0 .3cqw rgba(0, 195, 227, .25); }
.tile-add { display: grid; place-items: center; color: var(--screen-dim); font-size: 6cqw; font-weight: 400; line-height: 1; }
.home-buttons { list-style: none; margin: auto 0 0; padding: 0 0 2cqw; display: flex; justify-content: center; gap: 2.6cqw; }
.home-buttons li { display: flex; flex-direction: column; align-items: center; gap: .7cqw; font-size: 1.1cqw; color: var(--screen-dim); }
.home-buttons button {
  width: 5.4cqw; height: 5.4cqw; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--screen-panel); border: .28cqw solid var(--screen-line); color: var(--screen-text); padding: 0;
  transition: border-color .14s ease, transform .14s ease;
}
.home-buttons svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-buttons button.on { border-color: var(--blue); transform: scale(1.06); }
.home-buttons li:has(button.on) span { color: var(--screen-text); }
.home-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--screen-line); padding: 1.4cqw 0 1.8cqw; font-size: 1.2cqw; color: var(--screen-dim);
}
.hints { display: flex; gap: 2cqw; color: var(--screen-text); }
kbd {
  display: inline-grid; place-items: center; width: 2cqw; height: 2cqw; margin-right: .5cqw; border-radius: 50%;
  background: var(--screen-text); color: var(--screen); font: 800 1.05cqw var(--round);
}
.boot {
  position: absolute; inset: 0; display: grid; grid-template-columns: 34cqw 1fr; gap: 4cqw; align-items: center;
  padding: 0 7cqw; background: radial-gradient(circle at 20% 50%, #2B2E37, var(--screen) 70%);
}
.boot[hidden] { display: none; }
.boot img { width: 100%; aspect-ratio: 1; border-radius: 2cqw; object-fit: cover; box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, .5); }
.boot-name { font-size: 3cqw; font-weight: 800; line-height: 1.15; }
.boot-state { display: inline-block; margin-top: 1.6cqw; padding: .4cqw 1.4cqw; border-radius: 99px; font-size: 1.5cqw; font-weight: 700; }
.boot-state.probado { background: var(--blue); color: #04232A; }
.boot-state.jugable { background: #4ADE80; color: #062B14; }
.boot-state.medias { background: #FFD23F; color: #2E2400; }
.boot-state.arreglo { background: #8DB2FF; color: #0E2350; }
.boot-state.sin { background: var(--screen-line); color: var(--screen-text); }
.boot-note { margin-top: 1.4cqw; font-size: 1.6cqw; color: var(--screen-dim); max-width: 46ch; }
.boot-back { margin-top: 2.4cqw; font-size: 1.4cqw; }
.toast {
  position: absolute; left: 50%; bottom: 13cqw; transform: translate(-50%, 1cqw); opacity: 0;
  padding: 1cqw 2.4cqw; border-radius: 1.4cqw; background: #2F3139; border: 1px solid var(--screen-line);
  font-size: 1.5cqw; white-space: nowrap; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.screen.booting .home { animation: dim .35s ease forwards; }
@keyframes dim { to { opacity: 0; transform: scale(.98); } }
.boot.show { animation: pop .38s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* Sections */
.section { padding-top: 88px; padding-bottom: 8px; }
.section-lede { margin-top: 12px; color: var(--muted); max-width: 66ch; }
.band { margin-top: 88px; padding: 72px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--screen); color: var(--screen-text); border: 0; }
.band-ink .section-lede { color: var(--screen-dim); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.split-text p { margin-top: 14px; color: var(--muted); }
.split-text p.small { font-size: 14px; }
.tv { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #000; border: 8px solid #101115; box-shadow: 0 20px 40px rgba(38, 40, 46, .2); }
.tv video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; display: grid; place-items: center; padding-left: 5px;
  box-shadow: 0 5px 0 var(--red-deep), 0 10px 30px rgba(0, 0, 0, .35);
}
.play:active { transform: translate(-50%, calc(-50% + 3px)); box-shadow: 0 2px 0 var(--red-deep); }
.tv.playing .play { opacity: 0; pointer-events: none; }

/* Steps: a real sequence, numbered on round console buttons. */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--white); border-radius: 26px; padding: 26px 24px 28px; border: 1px solid var(--line); }
.steps li:nth-child(odd) .step-key { background: var(--red); box-shadow: 0 4px 0 var(--red-deep); }
.steps li:nth-child(even) .step-key { background: var(--blue); box-shadow: 0 4px 0 var(--blue-deep); }
.step-key { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.steps b { color: var(--ink); }

/* Performance tuner */
.tuner { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.tuner fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.tuner legend { font-size: 15px; color: var(--screen-dim); margin-bottom: 10px; padding: 0; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--screen-panel); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--screen-dim); transition: background .15s ease, color .15s ease; }
.seg input:checked + span { background: var(--screen-text); color: var(--screen); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.meters { display: grid; gap: 14px; }
.meter { display: grid; grid-template-columns: 110px 150px 1fr; align-items: center; gap: 18px; }
.meter-place { color: var(--screen-dim); }
.meter b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.meter-bar { height: 14px; border-radius: 99px; background: var(--screen-panel); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: var(--blue); transition: width .45s cubic-bezier(.2, .8, .3, 1), background .2s ease; }
.meters.fg .meter-bar i { background: linear-gradient(90deg, var(--blue), var(--red)); }
.tuner-note { grid-column: 2; margin-top: 4px; font-size: 14px; color: var(--screen-dim); }

/* Games shelf */
.games-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 700 14px var(--round); padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.shelf { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.shelf li[hidden] { display: none; }
.game { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--round); color: var(--ink); }
.game-cover { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: var(--line); border: 4px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game:hover .game-cover, .game:focus-visible .game-cover { border-color: var(--blue); transform: translateY(-3px); }
.game:focus-visible { outline: none; }
.game-name { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.state { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.state.probado { background: #D3F5FB; color: #005F72; }
.state.jugable { background: #D8F5DF; color: #17612F; }
.state.medias { background: #FFF1BF; color: #6B5100; }
.state.arreglo { background: #DDE8FF; color: #23468F; }
.state.sin { background: #E7E8EC; color: #50545D; }
.game-note { display: none; margin-top: 8px; font-size: 14px; color: var(--muted); }
.game[aria-expanded='true'] .game-note { display: block; }

/* Requirements and questions */
.reqs { margin: 30px 0 0; display: grid; gap: 0; background: var(--white); border-radius: 26px; border: 1px solid var(--line); overflow: hidden; }
.reqs div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line); }
.reqs div:first-child { border-top: 0; }
.reqs dt { font-weight: 700; }
.reqs dd { margin: 0; color: var(--muted); }
.faq { margin-top: 26px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--blue-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

.final { margin-top: 96px; padding: 80px 0; background: var(--red); color: #fff; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final .pill-red { background: #fff; color: var(--red-deep); box-shadow: 0 5px 0 rgba(0, 0, 0, .18); }
.final-alt a { color: #fff; }
.foot { padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; gap: 10px; }

/* Smaller screens */
@media (max-width: 960px) {
  .bar-links { display: none; }
  .bar .pill { margin-left: auto; }
  .split, .tuner { grid-template-columns: 1fr; }
  .tuner-note { grid-column: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .console { --joy-w: 34px; margin-top: 32px; }
  .joy > * { display: none; }
  .steps { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 84px 104px 1fr; gap: 10px; }
  .meter b { font-size: 26px; }
  .reqs div { grid-template-columns: 1fr; gap: 4px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-help .sound { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Reviews and comments (giscus) */
.comments { max-width: 900px; }
.comments-lede { color: var(--muted); margin: 8px 0 24px; }
.comments .giscus { min-height: 160px; }

/* Novedades: the newest version open, the older ones folded (changelog.js). */
.changelog { display: grid; gap: 12px; max-width: 860px; margin-top: 28px; }
.changelog .release { padding: 28px 30px; border-radius: 24px; background: var(--white); border: 2px solid var(--red); box-shadow: 0 4px 0 var(--line); }
.changelog .release h3 { font-size: 22px; margin: 6px 0 4px; }
.changelog .ver { color: var(--red-deep); font-size: 14px; font-weight: 800; margin: 0; }
.changelog ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.changelog li + li { margin-top: 6px; }
.changelog details { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 0 24px; }
.changelog summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
.changelog details[open] summary::after { content: '\2212'; }
.changelog details ul { margin: 0 0 20px; }
.changelog summary .muted { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.pill .gh-mark { width: 20px; height: 20px; }
