/* Axo Vault: AXO-VISION on the web. Palette and TV colors from 01-identidad/estilo-visual.md
   and hyperframes/_plantillas/axovision. Fonts: Press Start 2P and VT323 (SIL OFL 1.1). */
@font-face { font-family: "Press Start 2P"; src: url("/assets/fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323-latin-400-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --cream: #F2E6D0; --cream-light: #FBF4E6; --ink: #2B1E16; --orange: #E0572B; --mustard: #E3A81E;
  --olive: #56682E; --brown: #5A3A22; --amber: #FFB547; --crt: #1a120c; --terminal: #21170F;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --shadow: 5px 5px 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--sans); }
body::before { content: ""; display: block; height: 10px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--mustard) 33.3% 66.6%, #6B7F3A 66.6% 100%); }
img.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 28px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- the TV ---------- */
.tv { background: linear-gradient(180deg, #e2cfa8, #cdb48a); border: 3px solid var(--ink); border-radius: 18px; padding-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tv__wood { height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 10px; background: repeating-linear-gradient(90deg, #7a4a2a 0 60px, #6c4024 60px 64px, #83522f 64px 130px, #6c4024 130px 134px); border-bottom: 5px solid #4a2c18; }
.tv__plate { font: 10px/1 var(--pixel); color: var(--cream-light); background: #3b2519; border: 2px solid #c9b08a; border-radius: 4px; padding: 7px 10px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tv__screen { margin: 12px 12px 0; background: var(--crt); border-radius: 28px; padding: 8px; box-shadow: inset 0 0 0 6px #9c8259, 0 0 0 4px #8a6f47; }
.tv__picture { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 22px 18px 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #2d4f57 0%, #4b7a72 30%, #e3a81e 62%, #e0572b 80%, #a8452a 100%); }
.tv__picture::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px); pointer-events: none; z-index: 2; }
.tv__picture--static { background: repeating-linear-gradient(0deg, #3d3d3d 0 2px, #777 2px 3px, #262626 3px 5px, #5a5a5a 5px 7px); }
/* on phones the sun sets on the horizon so it never sits under the text */
.sun { position: absolute; right: -40px; bottom: 22px; width: 150px; height: 150px; border-radius: 50%; background: repeating-linear-gradient(180deg, #ffcf5a 0 20px, #e88a2b 20px 26px); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #6e4528; border-top: 6px solid #3b2519; }
.ground::after { content: ""; position: absolute; inset: 8px 0 0; background: repeating-linear-gradient(90deg, transparent 0 34px, #5a3a22 34px 38px); }
.tv__title { position: relative; z-index: 1; margin: 0; font: 18px/1.5 var(--pixel); color: var(--cream-light); text-shadow: 3px 3px 0 var(--ink); overflow-wrap: anywhere; }
.tv__sub { position: relative; z-index: 1; margin: 10px 0 0; max-width: 30ch; font: 23px/1.1 var(--term); color: var(--cream-light); text-shadow: 2px 2px 0 var(--ink); }
.tv__stage { position: relative; z-index: 1; margin-top: auto; padding-top: 14px; padding-bottom: 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.axo { position: relative; flex: none; width: 128px; }
.axo img { display: block; width: 128px; height: auto; }
.axo .blink { position: absolute; left: 0; bottom: 0; opacity: 0; animation: blink 5s steps(1) infinite; }
@keyframes blink { 0%, 93% { opacity: 0; } 94%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
.stamp { margin-bottom: 20px; padding: 12px; font: 13px/1 var(--pixel); color: var(--ink); background: var(--mustard); border: 4px double var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg); white-space: nowrap; }
.stamp--skip { background: var(--orange); }
.sign { margin-bottom: 18px; padding: 10px 12px; font: 11px/1.4 var(--pixel); color: var(--ink); background: #a8743f; border: 4px solid var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.3); text-align: center; }
.tv__controls { display: flex; align-items: center; gap: 12px; padding: 12px 14px 0; }
.grille { flex: 1; height: 36px; border-radius: 8px; background: repeating-linear-gradient(0deg, #5a3a22 0 4px, #c9b08a 4px 9px); border: 3px solid #8a6f47; }
.knob { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0e2c4, #9c8259); border: 3px solid #5a3a22; }
.knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 12px; margin-left: -1.5px; background: #3b2519; transform-origin: 50% 12px; }
.knob + .knob::after { transform: rotate(60deg); }
.chan { font: 24px/1 var(--term); color: var(--amber); background: var(--crt); border: 3px solid #8a6f47; border-radius: 6px; padding: 5px 10px; text-shadow: 0 0 6px rgba(255,181,71,.8); white-space: nowrap; }

/* ---------- content ---------- */
main section { margin-top: 32px; }
h2 { display: inline-block; margin: 0 0 14px; padding-bottom: 8px; font: 14px/1.6 var(--pixel); border-bottom: 4px solid var(--orange); }
p { margin: 0 0 12px; }
code { font: max(14px, .92em)/1.4 var(--mono); background: rgba(43,30,22,.08); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 18px; font: 13px/1.5 var(--pixel); text-align: center; text-decoration: none; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--main { min-height: 64px; font-size: 14px; background: var(--mustard); color: var(--ink); }
.btn--den { background: var(--ink); color: var(--cream-light); box-shadow: 5px 5px 0 var(--orange); }
.btn--ghost { background: var(--cream-light); color: var(--ink); }
.url { margin: 10px 2px 0; font: 21px/1.2 var(--term); color: var(--brown); overflow-wrap: anywhere; }

.facts { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { padding: 10px 12px; background: var(--cream-light); border: 2px solid var(--ink); border-radius: 10px; }
.facts strong { display: block; font-size: 18px; line-height: 1.35; }
.facts span { display: block; font-size: 14px; color: var(--brown); }
.verified { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 21px/1 var(--term); color: var(--olive); }
.verified::before { content: "\2714"; font: 16px/1 var(--sans); }

.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding-left: 46px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; font: 12px/1 var(--pixel); color: var(--cream-light); background: var(--orange); border: 2px solid var(--ink); border-radius: 6px; }
.steps p { margin: 0; }
.cmd { display: flex; align-items: stretch; margin-top: 8px; background: var(--terminal); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.cmd code { display: block; flex: 1; min-width: 0; padding: 12px; font-size: 15px; color: var(--amber); background: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; min-width: 76px; min-height: 48px; padding: 0 10px; font: 10px/1 var(--pixel); color: var(--ink); background: var(--mustard); border: 0; border-left: 2px solid var(--ink); cursor: pointer; }
.copy.done { color: var(--cream-light); background: var(--olive); }
.note { margin-top: 6px; font-size: 15px; color: var(--brown); }
.note code { white-space: pre-wrap; }

.cheat { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cheat li { position: relative; padding-left: 26px; }
.cheat li::before { content: "\25B8"; position: absolute; left: 4px; top: 0; color: var(--orange); font-weight: 700; }

/* Axo's take = the RPG dialog box from AXO-VISION */
.dialog { display: flex; align-items: flex-end; gap: 12px; }
.dialog__axo { flex: none; width: 64px; }
.dialog__axo img { display: block; width: 64px; height: auto; }
.dialog__box { position: relative; flex: 1; padding: 22px 16px 14px; font: 24px/1.15 var(--term); color: var(--cream-light); background: var(--crt); border: 4px double var(--cream); outline: 3px solid var(--ink); border-radius: 10px; }
.dialog__box p { margin: 0; }
.dialog__name { position: absolute; top: -14px; left: 12px; padding: 6px 8px; font: 10px/1 var(--pixel); color: var(--ink); background: var(--mustard); border: 2px solid var(--ink); border-radius: 4px; }

.join { padding: 20px 16px; background: var(--cream-light); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.join .btns { display: grid; gap: 16px; margin-top: 16px; }

/* ---------- index ---------- */
.cards { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; align-items: center; min-height: 96px; padding: 14px; text-decoration: none; background: var(--cream-light); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
.card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.card__thumb { grid-row: span 3; display: grid; place-items: end center; width: 72px; height: 88px; overflow: hidden; background: linear-gradient(180deg, #4b7a72, #e3a81e 70%, #e0572b); border: 2px solid var(--ink); border-radius: 10px; }
.card__thumb img { display: block; width: 58px; height: auto; }
.card__meta { font: 20px/1 var(--term); color: var(--brown); }
.card__title { font: 13px/1.6 var(--pixel); overflow-wrap: anywhere; }
.card__sum { font-size: 15px; line-height: 1.4; }
.chip { display: inline-block; margin-left: 4px; padding: 5px 6px; font: 10px/1 var(--pixel); background: var(--mustard); border: 2px solid var(--ink); border-radius: 4px; vertical-align: 2px; }
.chip--skip { background: var(--orange); }

footer { display: grid; gap: 6px; margin-top: 36px; padding-top: 14px; font-size: 15px; color: var(--brown); border-top: 3px dashed rgba(43,30,22,.35); }
footer p { margin: 0; }
.back { display: inline-flex; align-items: center; min-height: 48px; font: 12px/1.4 var(--pixel); color: var(--ink); text-decoration: none; }
.fine { font-size: 14px; }

@media (min-width: 720px) {
  .wrap { padding-top: 28px; }
  .tv__picture { min-height: 360px; padding: 28px 28px 0; }
  .tv__title { font-size: 26px; }
  .tv__sub { font-size: 28px; }
  .axo, .axo img { width: 192px; }
  .stamp { font-size: 16px; }
  .sun { right: 40px; top: 64px; bottom: auto; width: 230px; height: 230px; }
  .join .btns { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .axo .blink { animation: none; }
  .btn, .card { transition: none; }
}
