:root {
  color-scheme: dark;
  --ink: #08141f; --paper: #f4f8ff; --muted: #b2c8d9; --line: #67e8f938;
  --gold: #67e8f9; --champagne: #b9a2ff; --accent: #f38bda;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Oxanium", "Arial Black", sans-serif;
  --condensed: "Oxanium", Arial, sans-serif;
  --script: "Oxanium", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--sans); }
body.intro-active { overflow: hidden; }
button, a, input, select { font: inherit; }
a { color: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 30; top: -5rem; left: 1rem; padding: .8rem 1rem; background: var(--accent); color: #17140d; }
.skip-link:focus { top: 1rem; }
.eyebrow { font: 600 .72rem var(--condensed); letter-spacing: .21em; text-transform: uppercase; color: var(--gold); }
.section { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.display { text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .85rem 1.1rem; border: 1px solid var(--gold); border-radius: 5px; text-decoration: none; text-transform: uppercase; font: 700 .77rem var(--condensed); letter-spacing: .11em; cursor: pointer; transition: background .2s, color .2s; }
.button--outline { background: #0a2031e8; color: var(--paper); border-color: var(--line); }
.button--solid { background: var(--accent); border-color: var(--accent); color: #08141f; }
.button:hover { background: var(--gold); border-color: var(--gold); color: #08141f; }
.text-link { display: inline-block; color: var(--accent); font: 600 .75rem var(--condensed); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* Circuitos y control independientes de las secciones. */
main { position: relative; z-index: 1; }
body.intro-active main, body.intro-active .float-menu { visibility: hidden; }
.hero { min-height: max(740px, 100svh); padding: 0 1rem; justify-content: space-between; }
.hero__top { padding-top: max(5.3rem, 9svh); width: min(95%, 42rem); }
.hero__eyebrow { margin: 0 0 .6rem; font: 600 .75rem var(--serif); letter-spacing: .19em; color: var(--gold); }
.hero__title { margin: 0; font: 800 clamp(3.8rem, 18vw, 7.8rem)/1.05 var(--serif); text-transform: uppercase; overflow-wrap: anywhere; letter-spacing: -.025em; color: var(--paper); }
.hero__level { display: inline-flex; align-items: center; gap: .5rem; margin: .85rem 0 0; padding: .4rem 1.25rem; border: 1px solid var(--accent); background: #14243b; border-radius: 99px; font: 700 1.2rem var(--serif); color: var(--paper); }
.hero__level-unit { font-size: .65em; color: var(--accent); }
.hero__bottom { width: min(100%, 34rem); margin-top: 300px; padding-bottom: 1rem; }
.hero__tagline { margin: 0 auto 1.2rem; max-width: 29ch; font-size: .86rem; color: var(--paper); }
.hero__event-date { color: var(--paper); font: 700 clamp(1.6rem, 6vw, 2.1rem)/1.2 var(--serif); }
.hero__event-date p { margin: 0; }
.hero__event-date p+p { margin-top: .4rem; font-size: .9rem; color: var(--gold); }
.hero__actions { display: flex; justify-content: center; gap: .6rem; margin: 1.4rem auto .4rem; }
.hero__actions .button { padding: .8rem .9rem; font-size: .72rem; }
.hero__scroll { display: inline-block; padding: .3rem 1rem; text-decoration: none; color: var(--gold); }
/* La entrada enciende el mismo control y revela la invitación. */
.intro { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow: auto; background: radial-gradient(ellipse at 50% 45%, #173b54, var(--ink) 72%); transition: opacity .6s, visibility .6s; }
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__grid { position: absolute; inset: 0; opacity: .2; background: linear-gradient(#67e8f944 1px, transparent 1px) 0 0/60px 60px, linear-gradient(90deg, #67e8f944 1px, transparent 1px) 0 0/60px 60px; mask-image: radial-gradient(ellipse, #000, transparent 75%); }
.game-start { position: relative; display: flex; flex-direction: column; align-items: center; width: min(92%, 44rem); padding: 2rem 0; text-align: center; }
.game-start .eyebrow { margin: 0 0 1rem; color: var(--gold); }
.game-start h2 { margin: 0; color: var(--paper); font: 700 clamp(2rem, 8vw, 3.2rem)/1.2 var(--serif); }
.power-controller { position: relative; width: min(84vw, 450px); padding: 0; margin: 2rem 0 1.2rem; border: 0; background: transparent; cursor: pointer; isolation: isolate; }
.intro__controller { display: block; width: 100%; height: auto; transition: transform .65s ease; }
.power-controller__button { position: absolute; top: 25%; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #103045; background: #defcff; box-shadow: 0 0 16px #67e8f980; font-size: 1.8rem; line-height: 1; }
.power-controller__ring { position: absolute; z-index: -1; inset: 5%; border: 2px solid var(--gold); border-radius: 50%; opacity: 0; }
.game-start__hint { margin: .5rem 0; color: var(--gold); font: 600 .7rem var(--serif); letter-spacing: .14em; }
.game-start__status { margin: .6rem 0 1.1rem; color: var(--muted); font-size: .85rem; }
.intro__skip { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: #081b2d; color: var(--paper); font-size: .75rem; cursor: pointer; }
.intro.is-opening .intro__controller { transform: translateY(-8px) scale(1.04); }
.intro.is-opening .power-controller__ring { animation: powerWave 1s ease-out both; }
.intro.is-opening .power-controller__button { background: var(--gold); }
@keyframes powerWave { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }

/* Menú flotante y selección de apartados estándar. */
.float-menu { position: fixed; z-index: 15; left: max(.75rem, env(safe-area-inset-left)); top: 1rem; }
.float-menu__toggle { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #0a1c2ff5; color: var(--paper); cursor: pointer; font: 600 .75rem var(--condensed); letter-spacing: .15em; text-transform: uppercase; }
.menu-icon { display: grid; gap: 5px; width: 16px; }
.menu-icon i { height: 1px; background: var(--accent); }
.menu-chevron { font-size: 1rem; line-height: 1; transition: transform .2s; }
.float-menu__toggle[aria-expanded=true] .menu-chevron { transform: rotate(180deg); }
.float-menu__panel { position: absolute; top: calc(100% + .6rem); left: 0; width: min(18.5rem, calc(100vw - 1.5rem)); max-height: min(80svh, 42rem); overflow: auto; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #091b2bfc; }
.float-menu__heading { display: flex; justify-content: space-between; margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font: 600 .9rem var(--condensed); letter-spacing: .08em; color: var(--accent); }
.float-menu__hint { margin: 0 0 .65rem; font-size: .69rem; color: var(--muted); }
#menuLinks { display: grid; }
.float-menu__row { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; border-bottom: 1px solid var(--line); }
.float-menu__link { display: flex; align-items: center; gap: .6rem; padding: .72rem .35rem; border-radius: 5px; color: var(--champagne); text-decoration: none; font-size: .77rem; }
.float-menu__link.is-current { background: #67e8f920; }
.float-menu__link.is-cta { background: var(--gold); color: #08141f; font-weight: 600; }
.float-menu__link.is-cta.is-current { outline: 1px solid var(--accent); outline-offset: -1px; }
.float-menu__link[aria-disabled=true] { color: var(--muted); text-decoration: line-through; }
.menu-section-icon { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-cta .menu-section-icon { stroke: #08141f; }
.section-visibility { position: relative; display: grid; place-items: center; width: 44px; height: 36px; }
.section-visibility__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.section-visibility__track { position: relative; width: 36px; height: 21px; border: 1px solid var(--line); border-radius: 99px; background: #213449; pointer-events: none; }
.section-visibility__track span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8aa8bf; transition: transform .2s; }
.section-visibility:has(input:checked) .section-visibility__track { background: var(--gold); border-color: var(--accent); }
.section-visibility:has(input:checked) .section-visibility__track span { transform: translateX(15px); background: #f4f8ff; }
.section-visibility:has(input:disabled) { opacity: .5; }
.section-visibility input:focus-visible + .section-visibility__track { outline: 2px solid var(--accent); outline-offset: 4px; }
.menu-demo-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: .8rem 0 .2rem; font-size: .69rem; color: var(--muted); }
.menu-demo-footer p { margin: 0; }
.menu-demo-footer > button { border: 0; border-bottom: 1px solid var(--gold); padding: .3rem 0; background: none; color: var(--accent); cursor: pointer; font-size: .7rem; }
.menu-demo-footer .button { flex-basis: 100%; font-size: .7rem; }
.float-menu__close { display: flex; justify-content: space-between; width: 100%; margin-top: .5rem; min-height: 40px; padding: .7rem 0; border: 0; background: none; color: var(--muted); font-size: .73rem; cursor: pointer; }
.float-menu__close span { font-size: 1.2rem; line-height: 1; }
.ambience-control { width: 100%; margin-top: .65rem; text-align: left; }
.float-music { position: fixed; top: 1rem; right: max(.75rem, env(safe-area-inset-right)); display: flex; gap: .4rem; align-items: center; min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #091b2bfc; color: var(--accent); font-size: .72rem; cursor: pointer; }
.menu-tip { position: absolute; top: calc(100% + 12px); left: 0; width: min(17rem, calc(100vw - 1.5rem)); padding: .8rem; border: 0; border-radius: 8px; background: var(--accent); color: #08141f; font-size: .72rem; cursor: pointer; }
.oc-hidden, .oc-demo-off { display: none !important; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem max(1.5rem, calc((100vw - 640px)/2)); border-top: 1px solid var(--line); color: var(--muted); font: 600 .75rem var(--condensed); letter-spacing: .08em; }
.footer a { text-decoration: none; font-size: 1.2rem; color: var(--gold); }
@media (max-width: 360px) { .hero__actions { gap: .4rem; } .hero__actions .button { font-size: .65rem; padding: .8rem .65rem; } }
@media (min-width: 800px) { .hero__top { padding-top: 4.5rem; } .hero__title { font-size: 5.5rem; } }
@media (max-height: 560px) and (orientation: landscape) { .hero { min-height: 780px; } .game-start { padding: 1rem 0; } .power-controller { width: 230px; margin: .6rem 0; } .game-start h2 { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
