:root{--lime:#d9ff00;--black:#080706;--panel:rgba(14,12,10,.92);--white:#f3efe7;--muted:#aaa39a;--line:rgba(255,244,229,.14);--warm:#d9b68d}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#000;color:var(--white);font-family:Inter,Arial,sans-serif}button,a{font:inherit}button{cursor:pointer}#renderCanvas{width:100%;height:100%;display:block;touch-action:none;outline:none}
.loading{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;background:#030303;transition:opacity .5s ease,visibility .5s}.loading.is-hidden{opacity:0;visibility:hidden}.loading img{width:min(290px,70vw);max-height:210px;object-fit:contain;margin-bottom:24px;filter:drop-shadow(0 0 18px rgba(217,255,0,.07))}.loading p{color:#aaa;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase}.loading__bar{width:min(340px,72vw);height:3px;overflow:hidden;background:#1c1c1c}.loading__bar span{display:block;width:45%;height:100%;background:var(--lime);box-shadow:0 0 18px var(--lime);animation:load 1.1s infinite alternate ease-in-out}@keyframes load{to{transform:translateX(125%)}}
.hud-top{position:fixed;top:0;left:0;right:0;z-index:20;height:78px;padding:10px clamp(14px,3vw,42px);display:flex;align-items:center;justify-content:space-between;background:linear-gradient(to bottom,rgba(8,7,6,.86),rgba(8,7,6,.18),transparent)}.hud-top img{width:156px;height:58px;object-fit:contain;object-position:left center;filter:drop-shadow(0 0 10px rgba(217,255,0,.05))}.hud-top__actions{display:flex;gap:8px}.hud-top button,.quick-nav button{border:1px solid var(--line);border-radius:999px;color:#ddd;background:rgba(18,15,12,.62);backdrop-filter:blur(12px);padding:9px 14px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.hud-top button:hover,.quick-nav button:hover{border-color:var(--lime);color:var(--lime)}
.crosshair{position:fixed;left:50%;top:50%;z-index:10;width:32px;height:32px;transform:translate(-50%,-50%);pointer-events:none;transition:transform .16s ease,filter .16s ease}
.crosshair i{position:absolute;width:8px;height:8px;border-color:rgba(255,255,255,.72);border-style:solid;transition:border-color .15s ease,filter .15s ease}
.crosshair i:nth-child(1){left:2px;top:2px;border-width:2px 0 0 2px}
.crosshair i:nth-child(2){right:2px;top:2px;border-width:2px 2px 0 0}
.crosshair i:nth-child(3){left:2px;bottom:2px;border-width:0 0 2px 2px}
.crosshair i:nth-child(4){right:2px;bottom:2px;border-width:0 2px 2px 0}
.crosshair span{position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.82);transform:translate(-50%,-50%);transition:background .15s ease,box-shadow .15s ease}
.crosshair.is-targeting{transform:translate(-50%,-50%) scale(1.12);filter:drop-shadow(0 0 9px rgba(217,255,0,.5))}
.crosshair.is-targeting i{border-color:var(--lime)}
.crosshair.is-targeting span{background:var(--lime);box-shadow:0 0 13px var(--lime)}
.crosshair.is-scanning{animation:scannerShot .22s ease}
@keyframes scannerShot{50%{transform:translate(-50%,-50%) scale(.72);filter:drop-shadow(0 0 18px var(--lime))}}
.interaction-hint{position:fixed;left:50%;bottom:115px;z-index:20;transform:translateX(-50%);min-width:260px;padding:14px 20px;text-align:center;border:1px solid rgba(255,244,229,.14);border-left:3px solid var(--lime);border-radius:16px;background:linear-gradient(145deg,rgba(24,20,17,.92),rgba(9,8,7,.94));backdrop-filter:blur(14px);box-shadow:0 18px 42px rgba(0,0,0,.28)}.interaction-hint b,.interaction-hint span{display:block}.interaction-hint b{color:#f3efe7;font-size:.9rem;letter-spacing:.02em}.interaction-hint span{margin-top:7px;color:var(--lime);font-size:.68rem;letter-spacing:.05em;text-transform:uppercase}
.quick-nav{position:fixed;left:50%;bottom:18px;z-index:20;display:flex;gap:7px;transform:translateX(-50%);opacity:.78;transition:opacity .2s ease}.quick-nav:hover{opacity:1}
.overlay-card{position:fixed;left:50%;top:50%;z-index:100;width:min(680px,calc(100% - 28px));max-height:calc(100svh - 36px);overflow:auto;transform:translate(-50%,-50%);padding:clamp(26px,5vw,48px);border:1px solid rgba(255,244,229,.14);border-radius:24px;background:linear-gradient(145deg,rgba(24,20,17,.97),rgba(7,6,5,.98));box-shadow:0 28px 100px rgba(0,0,0,.72),0 0 42px rgba(217,255,0,.045);backdrop-filter:blur(18px)}.overlay-card[hidden]{display:none}.overlay-card__close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#fff;font-size:2rem}.eyebrow{margin:0 0 14px;color:var(--lime);font-size:.7rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase}.overlay-card h1,.overlay-card h2{margin:0 0 18px;font-family:Arial,sans-serif;font-size:clamp(2rem,6vw,4.2rem);line-height:.95;letter-spacing:-.055em}.overlay-card p{color:var(--muted);line-height:1.7}.control-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}.control-grid div{padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}.control-grid b,.control-grid span{display:block}.control-grid b{font-size:.76rem;color:var(--lime)}.control-grid span{margin-top:5px;color:#aaa;font-size:.72rem}.primary-btn,.modal-actions a{min-height:50px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--lime);color:#050505;font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.07em;font-size:.77rem}.modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}.modal-actions a.secondary{border:1px solid var(--line);background:transparent;color:#fff}.modal-actions a:hover{transform:translateY(-2px)}
.mobile-controls{display:none}.joystick{position:fixed;left:24px;bottom:28px;z-index:25;width:124px;height:124px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(0,0,0,.32);backdrop-filter:blur(8px);touch-action:none}.joystick:before{content:"";position:absolute;inset:34px;border:1px solid rgba(217,255,0,.25);border-radius:50%}.joystick__knob{position:absolute;left:36px;top:36px;width:52px;height:52px;border-radius:50%;background:rgba(217,255,0,.78);box-shadow:0 0 24px rgba(217,255,0,.28)}.mobile-interact{position:fixed;right:24px;bottom:46px;z-index:25;width:74px;height:74px;border:1px solid rgba(217,255,0,.5);border-radius:50%;background:rgba(0,0,0,.65);color:var(--lime);font-weight:800;text-transform:uppercase}
@media(max-width:800px),(pointer:coarse){.hud-top{height:66px}.hud-top img{width:132px;height:48px}.hud-top__actions button:first-child{display:none}.crosshair{opacity:.68}.quick-nav{top:72px;bottom:auto;width:calc(100% - 24px);overflow-x:auto;justify-content:flex-start}.quick-nav button{white-space:nowrap}.mobile-controls{display:block}.interaction-hint{bottom:122px}.control-grid{grid-template-columns:1fr}.welcome-card{top:auto;bottom:12px;transform:translateX(-50%);max-height:78svh}.overlay-card h1,.overlay-card h2{font-size:2.35rem}.modal-actions a{width:100%}}
@media(max-width:430px){.hud-top__actions #helpBtn{display:none}.quick-nav button{padding:8px 12px;font-size:.65rem}.joystick{left:16px;bottom:18px;width:112px;height:112px}.joystick__knob{left:32px;top:32px;width:48px;height:48px}.mobile-interact{right:18px;bottom:34px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.interaction-hint{transition:opacity .14s ease,transform .14s ease}
.interaction-hint.is-ready{transform:translateX(-50%) translateY(-4px);box-shadow:0 20px 48px rgba(0,0,0,.34)}


/* =====================================================
   TEMA CLARO — primera etapa
   Solo UI; los materiales 3D se cambian desde main.js.
   ===================================================== */
body.theme-light{
  --black:#f4f4f0;
  --panel:rgba(250,250,247,.94);
  --white:#151719;
  --muted:#5e6468;
  --line:rgba(17,20,22,.18);
  --warm:#a88b6b;
  --lime-readable:#536800;
  background:#e7ecef;
}
body.theme-light .hud-top{
  background:linear-gradient(to bottom,rgba(248,249,247,.92),rgba(248,249,247,.38),transparent);
}
body.theme-light .hud-top button,
body.theme-light .quick-nav button{
  color:#202427;
  background:rgba(248,249,247,.76);
  border-color:rgba(17,20,22,.18);
}
body.theme-light .interaction-hint{
  background:linear-gradient(145deg,rgba(250,250,247,.96),rgba(229,232,231,.96));
  border-color:rgba(17,20,22,.16);
  color:#16191b;
}
body.theme-light .interaction-hint b{color:#16191b}
body.theme-light .overlay-card{
  background:linear-gradient(145deg,rgba(251,251,248,.98),rgba(226,230,229,.98));
  border-color:rgba(17,20,22,.16);
  box-shadow:0 28px 100px rgba(30,35,38,.22);
}
body.theme-light .overlay-card__close{color:#111}
body.theme-light .control-grid div{background:rgba(0,0,0,.025)}
body.theme-light .modal-actions a.secondary{color:#151719}


/* =====================================================
   AJUSTES MÓVILES DEFINITIVOS
   ===================================================== */
html, body {
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button, a { -webkit-tap-highlight-color: transparent; }

@media (max-width:800px), (pointer:coarse) {
  .hud-top {
    height: calc(64px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    gap: 8px;
    align-items: flex-start;
  }

  .hud-top img {
    width: 92px;
    height: 44px;
    flex: 0 0 auto;
  }

  .hud-top__actions {
    display: flex;
    margin-left: auto;
    gap: 6px;
    max-width: calc(100vw - 116px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hud-top__actions::-webkit-scrollbar,
  .quick-nav::-webkit-scrollbar { display: none; }

  .hud-top__actions button:first-child { display: inline-flex; }

  .hud-top button {
    min-height: 38px;
    padding: 8px 11px;
    white-space: nowrap;
    font-size: .61rem;
    letter-spacing: .055em;
  }

  .quick-nav {
    top: calc(70px + env(safe-area-inset-top));
    bottom: auto;
    width: calc(100% - 20px);
    padding: 2px 0 7px;
    gap: 6px;
    opacity: .92;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .quick-nav button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: .62rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .joystick {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 112px;
    height: 112px;
    background: rgba(0,0,0,.42);
  }

  .joystick__knob {
    left: 32px;
    top: 32px;
    width: 48px;
    height: 48px;
  }

  .mobile-interact {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px));
    width: 72px;
    height: 72px;
  }

  .interaction-hint {
    bottom: max(132px, calc(env(safe-area-inset-bottom) + 126px));
    width: min(300px, calc(100% - 36px));
    min-width: 0;
    padding: 11px 14px;
  }

  .overlay-card {
    width: calc(100% - 20px);
    max-height: calc(100svh - 20px);
    padding: 26px 22px max(26px, env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .welcome-card {
    left: 50%;
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    max-height: 82svh;
  }

  .overlay-card h1,
  .overlay-card h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .overlay-card p { line-height: 1.55; }
  .control-grid { margin: 20px 0; gap: 8px; }

  .modal-actions a,
  .primary-btn {
    width: 100%;
    min-height: 52px;
  }
}

@media (max-width:430px) {
  .hud-top img { width: 76px; }
  .hud-top__actions { max-width: calc(100vw - 96px); }

  .hud-top__actions #qualityBtn,
  .hud-top__actions #helpBtn {
    display: none;
  }

  .hud-top button {
    padding: 8px 10px;
    font-size: .59rem;
  }
}


/* =====================================================
   AJUSTE MÓVIL V2
   Mejor nitidez visual y navegación fuera del degradado.
   ===================================================== */
@media (max-width: 800px), (pointer: coarse) {
  .hud-top {
    z-index: 24;
  }

  .quick-nav {
    z-index: 36;
    top: calc(76px + env(safe-area-inset-top));
    background: rgba(8, 7, 6, .72);
    border: 1px solid rgba(255, 244, 229, .10);
    border-radius: 999px;
    padding: 5px 7px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.theme-light .quick-nav {
    background: rgba(245, 246, 243, .84);
    border-color: rgba(17, 20, 22, .12);
  }

  .quick-nav button {
    background: rgba(18, 15, 12, .82);
  }

  body.theme-light .quick-nav button {
    background: rgba(248, 249, 247, .94);
  }

  .joystick {
    opacity: .88;
  }

  .mobile-interact {
    opacity: .92;
  }
}

/* En horizontal dejamos más aire entre el encabezado y los accesos. */
@media (max-height: 520px) and (orientation: landscape) {
  .quick-nav {
    top: calc(72px + env(safe-area-inset-top));
    max-width: calc(100vw - 190px);
    left: 50%;
  }

  .hud-top {
    height: calc(60px + env(safe-area-inset-top));
  }

  .hud-top img {
    width: 76px;
    height: 38px;
  }
}


/* =====================================================
   INTERFAZ MÓVIL V3
   Más superficie visible, menú plegable y controles compactos.
   ===================================================== */
.nav-toggle {
  display: none;
}

@media (max-width: 800px), (pointer: coarse) {
  .hud-top {
    height: calc(52px + env(safe-area-inset-top));
    padding:
      calc(6px + env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      5px
      max(8px, env(safe-area-inset-left));
    align-items: flex-start;
    background: linear-gradient(
      to bottom,
      rgba(8, 7, 6, .76),
      rgba(8, 7, 6, .12),
      transparent
    );
    pointer-events: none;
  }

  .hud-top img {
    width: 66px;
    height: 34px;
    pointer-events: auto;
  }

  .hud-top__actions {
    gap: 4px;
    max-width: none;
    overflow: visible;
    pointer-events: auto;
  }

  .hud-top button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0;
    background: rgba(9, 9, 9, .66);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  }

  .hud-top button::before {
    content: attr(data-mobile-icon);
    font-size: 1.05rem;
    line-height: 1;
    color: #f1eee7;
  }

  .hud-top button:active {
    transform: scale(.93);
    border-color: var(--lime);
  }

  .hud-top button.is-unavailable {
    opacity: .35;
  }

  body.theme-light .hud-top button {
    background: rgba(248, 249, 247, .86);
    border-color: rgba(17, 20, 22, .15);
  }

  body.theme-light .hud-top button::before {
    color: #181b1d;
  }

  /* Botón único y pequeño para abrir las secciones. */
  .nav-toggle {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 42;
    min-width: 108px;
    height: 44px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(-50%);
    border: 1px solid rgba(217, 255, 0, .38);
    border-radius: 999px;
    color: #f1eee7;
    background: rgba(7, 8, 8, .80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30);
    text-transform: uppercase;
    letter-spacing: .075em;
    font-size: .62rem;
    font-weight: 800;
  }

  .nav-toggle__icon {
    color: var(--lime);
    font-size: 1rem;
    line-height: 1;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: var(--lime);
    background: rgba(14, 15, 12, .94);
  }

  body.theme-light .nav-toggle {
    color: #181b1d;
    background: rgba(246, 247, 244, .90);
    border-color: rgba(17, 20, 22, .18);
  }

  /* El panel de secciones solo aparece al tocar "Secciones". */
  .quick-nav {
    top: auto;
    bottom: max(66px, calc(env(safe-area-inset-bottom) + 62px));
    left: 50%;
    width: min(330px, calc(100% - 24px));
    max-width: none;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    transform: translate(-50%, 12px) scale(.97);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    border-radius: 18px;
    background: rgba(7, 8, 8, .88);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
      opacity .18s ease,
      transform .18s ease,
      visibility .18s ease;
  }

  .quick-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
  }

  .quick-nav button {
    min-height: 43px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 12px;
    font-size: .63rem;
    letter-spacing: .055em;
    background: rgba(255, 255, 255, .045);
  }

  .quick-nav button span {
    width: 22px;
    color: var(--lime);
    font-size: .9rem;
    text-align: center;
  }

  body.theme-light .quick-nav {
    background: rgba(246, 247, 244, .94);
    border-color: rgba(17, 20, 22, .14);
  }

  body.theme-light .quick-nav button {
    background: rgba(0, 0, 0, .035);
  }

  /* El aviso de interacción queda por encima del botón Secciones. */
  .interaction-hint {
    bottom: max(118px, calc(env(safe-area-inset-bottom) + 108px));
  }

  /* Los controles de movimiento conservan los bordes inferiores. */
  .joystick {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .mobile-interact {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 10px));
  }

  body.nav-open .nav-toggle {
    box-shadow: 0 0 0 1px rgba(217, 255, 0, .18),
                0 12px 32px rgba(0, 0, 0, .30);
  }
}

/* Horizontal: una sola fila compacta al abrir el menú. */
@media (max-height: 520px) and (orientation: landscape) {
  .hud-top {
    height: calc(48px + env(safe-area-inset-top));
  }

  .hud-top img {
    width: 60px;
    height: 30px;
  }

  .hud-top button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .nav-toggle {
    bottom: max(8px, env(safe-area-inset-bottom));
    min-width: 96px;
    height: 38px;
  }

  .quick-nav {
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 48px));
    width: min(520px, calc(100% - 210px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-nav button {
    min-height: 38px;
    justify-content: center;
    padding: 6px 8px;
  }

  .interaction-hint {
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 74px));
  }
}

/* En pantalla completa reducimos todavía más la presencia del encabezado. */
@media (max-width: 800px), (pointer: coarse) {
  body.is-fullscreen .hud-top {
    opacity: .72;
  }

  body.is-fullscreen .hud-top:hover,
  body.is-fullscreen .hud-top:focus-within {
    opacity: 1;
  }
}


/* =====================================================
   BIENVENIDA ADAPTATIVA — PC / CELULAR
   ===================================================== */
.welcome-card{
  width:min(820px,calc(100% - 30px));
  padding:clamp(25px,4vw,42px);
}
.welcome-card__header h1{margin-bottom:12px}
.welcome-card__lead{max-width:690px;margin:0;color:#c0bab1!important;font-size:.96rem;line-height:1.6!important}
.welcome-device{
  margin-top:22px;
  padding:18px;
  border:1px solid rgba(217,255,0,.18);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(217,255,0,.055),rgba(255,255,255,.018));
}
.welcome-device__badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(217,255,0,.12);
  color:var(--lime);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.12em;
}
.welcome-device h2{
  margin:10px 0 14px!important;
  font-size:1.2rem!important;
  line-height:1.1!important;
  letter-spacing:-.02em!important;
}
.welcome-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.welcome-steps>div{
  display:flex;
  gap:10px;
  min-height:88px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(0,0,0,.2);
}
.welcome-steps strong{
  flex:0 0 27px;
  width:27px;height:27px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--lime);
  color:#070707;
  font-size:.72rem;
}
.welcome-steps span{color:#aaa;font-size:.72rem;line-height:1.45}
.welcome-steps b{display:block;margin-bottom:4px;color:#f3efe7;font-size:.77rem}
.welcome-steps--mobile{display:none}
.welcome-options{display:grid;grid-template-columns:minmax(220px,.8fr) 1.4fr;gap:12px;margin-top:14px}
.welcome-option{
  display:flex;align-items:center;gap:12px;
  width:100%;padding:14px;
  text-align:left;
  border:1px solid rgba(255,255,255,.11);
  border-radius:15px;
  background:rgba(255,255,255,.025);
  color:#fff;
}
.welcome-option:hover{border-color:var(--lime)}
.welcome-option__icon{
  width:40px;height:40px;display:grid;place-items:center;
  border-radius:50%;
  background:rgba(217,255,0,.12);
  color:var(--lime);
  font-size:1.15rem;
}
.welcome-option b,.welcome-option small{display:block}
.welcome-option b{font-size:.78rem}
.welcome-option small{margin-top:4px;color:#aaa;font-size:.67rem}
.welcome-option[aria-pressed="false"]{opacity:.68}
.welcome-explore{
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(0,0,0,.18);
}
.welcome-explore>b{display:block;margin-bottom:9px;color:#ccc;font-size:.7rem}
.welcome-explore__buttons{display:flex;gap:7px;flex-wrap:wrap}
.welcome-explore__buttons button{
  flex:1;
  min-width:86px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#ddd;
  font-size:.65rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.welcome-explore__buttons button:hover{border-color:var(--lime);color:var(--lime)}
.welcome-card__note{margin:14px 0 16px!important;color:#817b74!important;font-size:.7rem!important;line-height:1.45!important}
.welcome-enter{width:100%}

body.theme-light .welcome-card__lead{color:#555d61!important}
body.theme-light .welcome-device,
body.theme-light .welcome-option,
body.theme-light .welcome-explore{background:rgba(255,255,255,.38);border-color:rgba(20,24,26,.12)}
body.theme-light .welcome-steps>div{background:rgba(0,0,0,.025);border-color:rgba(20,24,26,.1)}
body.theme-light .welcome-steps b,
body.theme-light .welcome-option{color:#171a1c}
body.theme-light .welcome-explore__buttons button{color:#24282b;border-color:rgba(20,24,26,.14)}

@media(max-width:800px),(pointer:coarse){
  .welcome-card{
    top:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
    width:calc(100% - 18px);
    max-height:calc(100svh - 18px);
    padding:22px 18px max(22px,env(safe-area-inset-bottom));
  }
  .welcome-card__header h1{font-size:2.05rem!important}
  .welcome-card__lead{font-size:.82rem}
  .welcome-device{margin-top:15px;padding:14px}
  .welcome-steps--desktop{display:none}
  .welcome-steps--mobile{display:grid}
  .welcome-steps{grid-template-columns:1fr;gap:7px}
  .welcome-steps>div{min-height:0;padding:10px 11px}
  .welcome-options{grid-template-columns:1fr;gap:8px;margin-top:9px}
  .welcome-option{padding:11px 12px}
  .welcome-explore{padding:11px 12px}
  .welcome-card__note{margin:10px 0 12px!important}
  .welcome-enter{min-height:50px}
}
@media(max-width:430px){
  .welcome-card{padding-top:19px}
  .welcome-card__header h1{font-size:1.8rem!important}
  .welcome-card__lead{line-height:1.45!important}
  .welcome-device h2{font-size:1.03rem!important}
  .welcome-steps span{font-size:.68rem}
  .welcome-explore__buttons button{padding:9px 8px;font-size:.6rem}
}
/* =====================================================
   TEMA CLARO — LIMA LEGIBLE
   Oscurece solamente letras, iconos y detalles finos.
   Los botones rellenos conservan el lima brillante.
   ===================================================== */

body.theme-light .eyebrow,
body.theme-light .control-grid b,
body.theme-light .interaction-hint span,
body.theme-light .nav-toggle__icon,
body.theme-light .quick-nav button span,
body.theme-light .welcome-device__badge,
body.theme-light .welcome-option__icon,
body.theme-light .welcome-explore__buttons button:hover {
  color:var(--lime-readable);
}

/* Hover de botones superiores y navegación */
body.theme-light .hud-top button:hover,
body.theme-light .quick-nav button:hover {
  color:var(--lime-readable);
  border-color:var(--lime-readable);
}

/* Aviso de interacción */
body.theme-light .interaction-hint {
  border-left-color:var(--lime-readable);
}

/* Botón Secciones de celular */
body.theme-light .nav-toggle[aria-expanded="true"] {
  border-color:var(--lime-readable);
}

body.theme-light .nav-toggle__icon {
  color:var(--lime-readable);
}

/* Iconos del menú de bienvenida */
body.theme-light .welcome-device__badge,
body.theme-light .welcome-option__icon {
  color:var(--lime-readable);
  background:rgba(83,104,0,.12);
}

/* Bordes interactivos del menú de bienvenida */
body.theme-light .welcome-option:hover,
body.theme-light .welcome-explore__buttons button:hover {
  border-color:var(--lime-readable);
}

/* Cursor central cuando encuentra un elemento */
body.theme-light .crosshair.is-targeting i {
  border-color:var(--lime-readable);
}

body.theme-light .crosshair.is-targeting span {
  background:var(--lime-readable);
  box-shadow:0 0 13px rgba(83,104,0,.72);
}

/* =====================================================
   NAVEGACIÓN DE CINCO SECCIONES
   ===================================================== */

/* En celular vertical, Equipo ocupa la última fila completa. */
@media (max-width:800px) and (min-height:521px),
       (pointer:coarse) and (min-height:521px) {

  .quick-nav button[data-go="team"] {
    grid-column:1 / -1;
    justify-content:center;
  }
}

/* En celular horizontal entran los cinco accesos en una fila. */
@media (max-height:520px) and (orientation:landscape) {

  .quick-nav {
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }

  .quick-nav button[data-go="team"] {
    grid-column:auto;
  }
}

/* =====================================================
   ICONOS SUPERIORES EN CELULAR
   Más grandes y centrados dentro de los círculos.
   ===================================================== */

@media (max-width:800px), (pointer:coarse) {

  .hud-top button {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
  }

  .hud-top button::before {
    position:absolute;
    left:50%;
    top:50%;
    display:block;
    width:24px;
    height:24px;
    margin:0;
    padding:0;
    transform:translate(-50%, -50%);
    text-align:center;
    font-family:Arial, "Segoe UI Symbol", sans-serif;
    font-size:1.35rem;
    font-weight:700;
    line-height:24px;
    letter-spacing:0;
  }
}

/* Correcciones ópticas por icono */
@media (max-width:800px), (pointer:coarse) {

  /* Tema claro / oscuro */
  #themeBtn::before {
    font-size:1.42rem;
    transform:translate(-50%, -51%);
  }

  /* Calidad */
  #qualityBtn::before {
    font-size:1.32rem;
    transform:translate(-50%, -51%);
  }

  /* Pantalla completa */
  #fullscreenBtn::before {
    font-size:1.42rem;
    transform:translate(-50%, -52%);
  }

  /* Controles */
  #helpBtn::before {
    font-size:1.30rem;
    transform:translate(-50%, -52%);
  }

  /* Música */
  #musicBtn::before {
    font-size:1.38rem;
    transform:translate(-50%, -52%);
  }
}

@media (max-height:520px) and (orientation:landscape) {

  .hud-top button::before {
    width:22px;
    height:22px;
    font-size:1.24rem;
    line-height:22px;
  }

  #themeBtn::before,
  #fullscreenBtn::before {
    font-size:1.32rem;
  }

  #musicBtn::before {
    font-size:1.28rem;
  }
}