/* ============================================================================
   hall.css — Hall of Fame: una vitrina de trofeos por comunidad
   ----------------------------------------------------------------------------
   Hazbin: el cielo rojo de Pentagram City con su pentagrama, la silueta de
   la ciudad, y una vitrina de hotel con marquesina de bombillas, cortinas de
   terciopelo, letrero de neón rojo, patitos de goma con cuernos y contratos
   de alma con lacre. Helluva: neón que parpadea, trama de puntos y
   pegatinas.

   Trofeos (js/hall.js): un medallón que flota y gira como una moneda (dos
   caras SVG y un canto de discos apilados) sobre un cojín y un pedestal en
   CSS 3D. La luz de cada cara sale de cos() de --spin, una propiedad
   registrada que gira en sincronía con el transform.

   Clases de js/hall.js: .hall-motion (movimiento permitido), .is-open (la
   página acaba de abrirse), .is-in (la vitrina entró: se abren las puertas si
   hay ganadores) e .is-live (la vitrina está a la vista: solo entonces se
   anima). Sin ellas todo se ve completo y quieto.
   ========================================================================= */

@property --spin { syntax: '<angle>'; inherits: true; initial-value: -24deg; }

.nav__hall-short { display: none; }
html[data-page="hall"] #gl, html[data-page="hall"] #grain, html[data-page="hall"] .veil, html[data-page="hall"] #beam { visibility: hidden; }

.hall-page {
  --hall-accent: #d4a548; --hall-bright: #f2e4ce; --hall-muted: #c9a88a; --hall-ink: #0d0809;
  --hall-line: #d4a54840; --hall-display: var(--font-display);
  position: relative; isolation: isolate; overflow: clip; min-height: 100svh; padding: 150px 0 240px; color: var(--hall-bright);
  background: radial-gradient(ellipse 120% 70% at 50% 12%, #b3172a 0%, #6d0f1b 26%, #2a070c 58%, #0d0809 100%);
}
.hall-page[data-hall-world="helluva"] {
  --hall-accent: #c8f27b; --hall-bright: #fff2ec; --hall-muted: #9f90b2; --hall-ink: #0e0b18;
  --hall-line: #b395e135; --hall-display: "Anton", Impact, "Arial Narrow", sans-serif; padding-bottom: 120px;
  background: radial-gradient(ellipse at 50% 0%, #38226770, transparent 62%), radial-gradient(circle, #c1a0f812 1.2px, transparent 1.7px) 0 0 / 16px 16px, var(--hall-ink);
}
.hall-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hall-rays {
  position: absolute; top: -30vmax; left: 50%; width: 120vmax; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #c1a0f822 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 70%); mask-image: radial-gradient(closest-side, #000 18%, transparent 70%);
}
/* El gran pentagrama del cielo del infierno. */
.hall-sky { position: absolute; top: 40px; left: 50%; width: min(1150px, 160vw); aspect-ratio: 1; translate: -50% 0; opacity: .55; }
.hall-sky svg { width: 100%; height: 100%; fill: none; stroke: #ff4d5a; stroke-width: 1.3; filter: drop-shadow(0 0 6px #ff2238); }
.hall-sky circle + circle { stroke-width: .7; stroke-dasharray: 2 5; }
.hall-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; }
.hall-skyline svg { width: 100%; height: 100%; }
.hall-skyline path { fill: #140305; }
.hall-skyline rect { fill: #ff6a4d; opacity: .75; }
.hall-shell { position: relative; width: min(1180px, 90%); margin-inline: auto; }

/* ------------------------------------------------------------------- ENTRADA */
.hall-intro { margin-bottom: 70px; text-align: center; }
.hall-eyebrow { font: 12px var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--hall-accent); }
.hall-title { margin: 18px 0 22px; font: 400 clamp(64px, 10vw, 150px)/.92 var(--hall-display); text-transform: uppercase; color: var(--hall-bright); }
.hall-title__line { display: block; }
.hall-title__line + .hall-title__line { color: var(--hall-accent); }
.hall-title i { display: inline-block; font-style: normal; }
[data-hall-world="hazbin"] .hall-title { text-shadow: 0 0 30px #ff22384d; }
[data-hall-world="hazbin"] .hall-title__line + .hall-title__line { color: transparent; -webkit-text-stroke: 1.5px #ffd27a; text-shadow: 0 0 18px #ff2238aa; }
[data-hall-world="helluva"] .hall-title { rotate: -2deg; text-shadow: 6px 6px 0 #44305c; }
.hall-lede { max-width: 46ch; margin: 0 auto; font-size: 18px; line-height: 1.6; color: #e9d3c5; }
[data-hall-world="hazbin"] .hall-lede { font-family: var(--font-deco); font-size: 20px; }
.hall-back { display: inline-block; margin-top: 22px; color: var(--hall-accent); font-size: 15px; text-underline-offset: 5px; }

/* ------------------------------------------------------------------ EDICIÓN */
.hall-edition { position: relative; margin-top: 60px; }
.hall-edition + .hall-edition { margin-top: 120px; padding-top: 80px; border-top: 1px solid var(--hall-line); }
.hall-edition__head { display: grid; justify-items: center; gap: 12px; margin-bottom: 96px; text-align: center; }
.hall-edition__kicker { font: 12px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--hall-muted); }
.hall-edition h2 { font: 400 clamp(38px, 5vw, 72px)/1 var(--hall-display); text-transform: uppercase; color: var(--hall-bright); }
.hall-edition__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--hall-line); background: #0d080999; font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hall-accent); }
.hall-edition__status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hall-edition.is-final .hall-edition__status { background: var(--hall-accent); color: var(--hall-ink); border-color: var(--hall-accent); }
[data-hall-world="helluva"] .hall-edition__status { rotate: -2deg; background: transparent; }
.hall-empty { max-width: 52ch; margin: 30px auto; text-align: center; color: var(--hall-muted); font-size: 17px; line-height: 1.6; }

/* ------------------------------------------------------------------ VITRINA */
.hall-case {
  --gx: .35; position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 118px 38px 0;
  background: #120709; box-shadow: 0 0 0 2px #d4a548, 0 0 0 16px #2b0b10, 0 0 0 18px #8a6a24, 0 0 60px 10px #ff22382e, 0 50px 90px #000c;
}
.hall-case__back { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #6a1420, #2a070c 58%, #100406); }
.hall-case__back::before { content: ''; position: absolute; inset: 0; opacity: .6; background: repeating-linear-gradient(90deg, #ffffff08 0 2px, transparent 2px 22px); }
.hall-case__back::after {
  content: ''; position: absolute; top: -30%; left: 50%; width: 100%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; opacity: .6;
  background: repeating-conic-gradient(from 180deg, #d4a54816 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 72%); mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
}
/* Cortina de terciopelo: bambalina festoneada y dos paños recogidos. */
.hall-case__curtain {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 62px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, #a3121f 0 20px, #7a0d18 21px, transparent 22px) 0 30px / 44px 34px repeat-x,
    repeating-linear-gradient(90deg, #0000003d 0 2px, transparent 2px 22px) 0 0 / 100% 34px no-repeat,
    linear-gradient(#4a060d, #a3121f) 0 0 / 100% 34px no-repeat;
  filter: drop-shadow(0 8px 10px #000a);
}
.hall-case__curtain::before, .hall-case__curtain::after {
  content: ''; position: absolute; top: 30px; width: 60px; height: 250px;
  background: repeating-linear-gradient(90deg, #5a0810 0, #b3172a 7px, #7a0d18 14px);
}
.hall-case__curtain::before { left: 0; clip-path: polygon(0 0, 100% 0, 30% 62%, 40% 100%, 0 100%); }
.hall-case__curtain::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 70% 62%); }
/* Marquesina de hotel: bombillas en el marco que se encienden alternadas. */
.hall-case__bulbs::before, .hall-case__bulbs::after { content: ''; position: absolute; z-index: 6; pointer-events: none; }
.hall-case__bulbs::before, .hall-case__bulbs::after {
  left: -18px; right: -18px; height: 20px;
  background:
    radial-gradient(circle at 12px 10px, #fff7dc 0 2.6px, #ffcf70 3.4px, #ffcf7000 8px) 0 0 / 48px 20px repeat-x,
    radial-gradient(circle at 12px 10px, #6b4418 0 2.6px, #6b441800 3.6px) 0 0 / 24px 20px repeat-x;
}
.hall-case__bulbs::before { top: -18px; }
.hall-case__bulbs::after { bottom: -18px; }
.hall-case__bulbs--b::before, .hall-case__bulbs--b::after {
  top: 2px; bottom: 2px; left: auto; right: auto; width: 20px; height: auto;
  background:
    radial-gradient(circle at 10px 12px, #fff7dc 0 2.6px, #ffcf70 3.4px, #ffcf7000 8px) 0 0 / 20px 48px repeat-y,
    radial-gradient(circle at 10px 12px, #6b4418 0 2.6px, #6b441800 3.6px) 0 0 / 20px 24px repeat-y;
}
.hall-case__bulbs--b::before { left: -18px; }
.hall-case__bulbs--b::after { right: -18px; }
.hall-case__sign {
  position: absolute; z-index: 7; top: -36px; left: 50%; translate: -50% 0; display: grid; justify-items: center; padding: 8px 30px 10px; white-space: nowrap;
  background: #150607; border: 2px solid #d4a548; box-shadow: 0 0 0 4px #150607, 0 0 0 5px #d4a54888, 0 12px 30px #000c;
  color: #ff5a64; font: 400 30px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 0 4px #ff5a64, 0 0 14px #ff1f33, 0 0 34px #ff1f3399;
}
.hall-case__sign small { font: 600 10px var(--font-mono); letter-spacing: .34em; color: #d4a548; text-shadow: none; margin-bottom: 2px; }
.hall-case__bays { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 22px; margin: 0; padding: 0 0 38px; list-style: none; }
.hall-case__bays::after {
  content: ''; position: absolute; z-index: 1; left: -38px; right: -38px; bottom: 0; height: 38px;
  background: linear-gradient(#ffffff33, #ffffff0a 35%, #0000005c), linear-gradient(90deg, transparent, #d4a54830, transparent); border-top: 1px solid #ffffff66;
}

/* Cada compartimento: metales del medallón (--m1..3), esmalte (--e1..2) y placa. */
.hall-bay {
  --m1: #fff1bf; --m2: #e2b552; --m3: #7a5418; --e1: #e0303f; --e2: #5a0810; --glow: #ffb45066;
  --plate: linear-gradient(180deg, #f7e2a6, #d2a64a 45%, #9a7428); --plate-ink: #2a1810;
  position: relative; display: grid; justify-items: center; align-content: end; min-width: 0; padding-top: 20px;
}
.hall-bay--1 { order: 2; }
.hall-bay--2 { order: 1; --m1: #ffffff; --m2: #c7ced6; --m3: #5f6770; --glow: #dfe8ff55; --plate: linear-gradient(180deg, #f4f7fa, #b9c2cc 45%, #7c8690); --plate-ink: #1d2126; }
.hall-bay--3 { order: 3; --m1: #ffd6a8; --m2: #c47d45; --m3: #5e3314; --glow: #ff8a4a55; --plate: linear-gradient(180deg, #f1c49a, #bb7a45 45%, #7a4622); --plate-ink: #26140a; }
.hall-edition.is-pending .hall-bay { --m1: #6b5a5f; --m2: #3a2d31; --m3: #1a1214; --e1: #4a1a21; --e2: #16080a; --glow: #ff22381f; --plate-ink: #5a3a2c; }
.hall-bay__lamp { position: absolute; z-index: 3; top: -118px; left: 50%; width: 48px; height: 10px; translate: -50% 0; border-radius: 0 0 10px 10px; background: linear-gradient(#8a6a24, #e8c26a); }
.hall-bay__light {
  position: absolute; top: -108px; left: 50%; width: min(290px, 125%); height: calc(100% + 74px); translate: -50% 0; pointer-events: none; opacity: .5;
  background: linear-gradient(#fff4d6b3, #fff4d61c 62%, transparent); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
}
.hall-edition.is-pending .hall-bay__light { opacity: .09; }

/* ------------------------------------------------------------------ TROFEO */
.hall-trophy {
  --s: .84; position: relative; z-index: 2; width: 190px; height: 262px; perspective: 800px;
  transform: scale(var(--s)); transform-origin: 50% 100%;
  -webkit-box-reflect: below -4px linear-gradient(transparent 76%, #ffffff22);
}
.hall-bay--1 .hall-trophy { --s: 1; }
.hall-trophy__glow { position: absolute; left: 50%; bottom: 96px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 66%); }
.hall-trophy__disc {
  position: absolute; left: 50%; bottom: 0; width: 160px; height: 26px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse, #000b 45%, transparent 72%), linear-gradient(90deg, #2b1015, var(--m2), #2b1015); opacity: .85;
}
.hall-trophy__tilt { --spin: -24deg; position: absolute; left: 50%; bottom: 13px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-24deg); }
.hall-pedestal { position: relative; transform-style: preserve-3d; --face: linear-gradient(180deg, #3d2c31, #1b1114 70%, #0c0708); }
.hall-box { position: absolute; left: 0; bottom: var(--y); width: 0; height: 0; transform-style: preserve-3d; }
.hall-box--cushion { --face: radial-gradient(ellipse at 50% 15%, #e0303f, #8a1220 60%, #3a050b); }
.hall-face {
  --shade: .2; position: absolute; bottom: 0; left: calc(var(--w) / -2); width: var(--w); height: var(--h); backface-visibility: hidden;
  background-image: linear-gradient(rgb(12 6 8 / var(--shade)), rgb(12 6 8 / var(--shade))), var(--face);
  box-shadow: inset 0 1px 0 #d4a54899;
}
.hall-face--front { --shade: .04; transform: translateZ(calc(var(--d) / 2)); }
.hall-face--back { --shade: .5; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.hall-face--right { --shade: .32; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.hall-face--left { --shade: .14; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.hall-face--top { --shade: -.1; bottom: var(--h); height: var(--d); transform-origin: 50% 100%; transform: translateZ(calc(var(--d) / 2)) rotateX(90deg); box-shadow: inset 0 0 0 1px #d4a54866; }
.hall-box--cushion .hall-face { box-shadow: none; }

/* El medallón: flota sobre el cojín y gira como una moneda. */
.hall-medal { position: absolute; left: 50%; bottom: 70px; width: 120px; height: 140px; margin-left: -60px; transform-style: preserve-3d; scale: 1.32; transform-origin: 50% 100%; }
.hall-medal__spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-24deg); }
.hall-medal__face { position: absolute; inset: 0; backface-visibility: hidden; transform: translateZ(6px); }
.hall-medal__face--back { transform: rotateY(180deg) translateZ(6px); }
.hall-medal__face svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1px #0009) drop-shadow(0 0 10px var(--glow)); }
.hall-medal__edge { position: absolute; left: 8px; top: 28px; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, var(--m3) 60%, var(--m2)); }
.hall-medal__sheen { position: absolute; left: 8px; top: 28px; width: 104px; height: 104px; border-radius: 50%; transform: translateZ(6.5px); backface-visibility: hidden; pointer-events: none; opacity: 0; }
@supports (width: calc(1px * cos(0deg))) {
  .hall-face:not(.hall-face--top) { --shade: calc(.46 - cos(calc(var(--spin) + var(--fa, 0deg))) * .4); }
  .hall-medal__face--front { filter: brightness(calc(.78 + cos(var(--spin)) * .36)); }
  .hall-medal__face--back { filter: brightness(calc(.78 - cos(var(--spin)) * .36)); }
  .hall-medal__sheen {
    opacity: calc(cos(var(--spin)) * .9); mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 38%, #ffffffaa 50%, transparent 62%) calc(50% - sin(var(--spin)) * 160%) 0 / 260% 100% no-repeat;
  }
}

/* Brasas que suben del cojín. */
.hall-trophy__embers { position: absolute; inset: 0; pointer-events: none; }
.hall-trophy__embers i { position: absolute; bottom: 70px; left: var(--x); width: 4px; height: 4px; border-radius: 50%; background: #ffb04d; box-shadow: 0 0 6px 1px #ff5a2a; opacity: 0; }
.hall-edition.is-pending .hall-trophy__embers { display: none; }

/* Patito de goma con cuernos, en la repisa. */
.hall-duck { position: absolute; z-index: 3; left: -6px; bottom: 4px; width: 46px; height: 40px; transform-origin: 50% 100%; }
.hall-duck svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 3px #0008); }
.hall-bay--2 .hall-duck, .hall-bay--3 .hall-duck { left: auto; right: -2px; transform: scaleX(-1); }
.hall-edition.is-pending .hall-duck { filter: brightness(.45) saturate(.5); }

/* ------------------------------------------------------------------- PLACA */
.hall-plaque {
  position: relative; z-index: 2; width: min(100%, 250px); margin-top: 20px; padding: 13px 14px 14px; text-align: center;
  background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 0 0 1px #fff6, inset 0 0 0 5px #0000001f, 0 10px 20px #000a;
}
.hall-plaque__photo { display: block; width: 58px; height: 58px; margin: -42px auto 8px; border-radius: 50%; object-fit: cover; border: 3px solid var(--m2); background: #111; }
.hall-plaque__rank { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.hall-plaque__names { margin: 6px 0 4px; font: 400 clamp(18px, 1.8vw, 24px)/1.12 var(--hall-display); text-transform: uppercase; overflow-wrap: anywhere; }
.hall-plaque__prize { font-size: 12px; }
.hall-plaque__link { display: inline-block; margin-top: 6px; color: inherit; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
/* Hazbin: la placa es un contrato de alma, con su lacre. */
[data-hall-world="hazbin"] .hall-plaque {
  padding: 12px 16px 18px; color: #3a1f14; border: 1px solid #b89458;
  background: radial-gradient(ellipse at 30% 15%, #fffaf0, transparent 60%), linear-gradient(172deg, #f4e6c8, #e2cc9e 62%, #cfb383);
  box-shadow: inset 0 0 22px #a8844a66, 0 12px 24px #000b;
}
[data-hall-world="hazbin"] .hall-plaque::before {
  content: 'Contrato de alma'; display: block; margin: 0 -4px 8px; padding-bottom: 6px; border-bottom: 1px solid #b89458aa;
  font: 600 9px var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: #8a1622;
}
[data-hall-world="hazbin"] .hall-plaque::after {
  content: ''; position: absolute; right: -14px; bottom: -16px; width: 46px; height: 46px; border-radius: 50%; rotate: -14deg;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%23ffd2d2' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpolygon points='20,8 27.05,29.71 8.59,16.29 31.41,16.29 12.95,29.71' fill='none' stroke='%23ffd2d2' stroke-opacity='.7' stroke-width='1.3'/%3E%3C/svg%3E") center / 100% no-repeat, radial-gradient(circle at 38% 32%, #e0303f, #8a0f1b 60%, #4a060d);
  box-shadow: 0 3px 6px #0009, inset 0 0 0 3px #7a0d1888;
}
[data-hall-world="hazbin"] .hall-plaque__rank { display: inline-block; padding: 3px 9px; background: var(--plate); color: var(--plate-ink); box-shadow: 0 1px 2px #0006; }
[data-hall-world="hazbin"] .hall-edition.is-pending .hall-plaque__rank { background: #cdb68a; color: #5a3a2c; }
[data-hall-world="hazbin"] .hall-plaque__names { color: #2a130c; }
[data-hall-world="hazbin"] .hall-edition.is-pending .hall-plaque { filter: saturate(.55) brightness(.82); }

/* --------------------------------------------------------- CRISTAL Y PUERTAS */
.hall-case__glass {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent calc(var(--gx) * 100% - 26%), #ffffff14 calc(var(--gx) * 100% - 19%), transparent calc(var(--gx) * 100% - 12%), transparent calc(var(--gx) * 100% + 8%), #ffffff0c calc(var(--gx) * 100% + 12%), transparent calc(var(--gx) * 100% + 18%));
}
/* Tres puertas, alineadas con los compartimentos: al abrirse suben una a una. */
.hall-case__doors {
  position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  padding: 12px 30px 0; overflow: hidden; pointer-events: none;
}
.hall-door {
  --d: 0; position: relative; border: 2px solid #d4a548a0; border-bottom: 0;
  background: linear-gradient(115deg, #ffffff12, #ffffff03 40%, #ffffff0b 60%, #ffffff02);
  box-shadow: inset 0 0 0 3px #2b1015aa, inset 0 0 0 4px #d4a54850; transition: transform 1.3s var(--ease-in-out-quint) calc(.25s + var(--d) * .22s);
}
.hall-door--1 { --d: 1; }
.hall-door--3 { --d: 2; }
.hall-door::after { content: ''; position: absolute; top: 44%; right: 10px; width: 5px; height: 46px; border-radius: 3px; background: linear-gradient(#f7e2a6, #8e6a22); }
.hall-edition.is-final .hall-case__doors { display: none; }
.hall-motion .hall-edition.is-final .hall-case__doors { display: grid; }
.hall-motion .hall-edition.is-final .hall-case.is-in .hall-door { transform: translateY(-104%); }
.hall-case__lock {
  position: absolute; z-index: 5; top: 40%; left: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 10px;
  padding: 16px 24px 14px; background: #1a0c10f0; border: 1px solid #d4a548; color: #d4a548; text-align: center;
  font: 12px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 12px 30px #000c; transform-origin: 50% -30px;
}
.hall-case__lock::before {
  content: ''; width: 28px; height: 22px; border-radius: 3px; background: linear-gradient(#f7e2a6, #8e6a22);
  -webkit-mask: radial-gradient(circle at 50% 55%, transparent 3px, #000 3.5px); mask: radial-gradient(circle at 50% 55%, transparent 3px, #000 3.5px);
}
.hall-case__lock::after { content: ''; position: absolute; top: 4px; left: 50%; width: 18px; height: 16px; translate: -50% 0; border: 3px solid #d4a548; border-bottom: 0; border-radius: 10px 10px 0 0; }

/* ---------------------------------------------------------------- PLACAS 4+ */
.hall-plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; max-width: 900px; margin: 56px auto 0; padding: 0; list-style: none; }
.hall-plate { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(180deg, #3a2c30, #231a1d); border: 1px solid var(--hall-line); }
.hall-plate__rank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hall-accent); color: var(--hall-ink); font: 400 16px var(--hall-display); }
.hall-plate__names { font: 400 18px/1.15 var(--hall-display); text-transform: uppercase; color: var(--hall-bright); overflow-wrap: anywhere; }
.hall-plate__prize { font-size: 12px; color: var(--hall-muted); }
.hall-plate .hall-plaque__link { color: var(--hall-accent); }

/* ================================================================ HELLUVA ==
   La misma vitrina, en cómic: neón que parpadea, trama de puntos, medallas
   estrella con cuernos y placas como pegatinas. */
[data-hall-world="helluva"] .hall-case { padding-top: 104px; background: #140f22; box-shadow: 0 0 0 3px #0e0b18, 0 0 0 6px var(--hall-accent), 0 0 34px 4px #c8f27b55, 0 0 0 12px #0e0b18, 0 0 0 15px #f86492, 0 0 40px 10px #f8649233, 0 50px 90px #000c; }
[data-hall-world="helluva"] .hall-case__back { background: radial-gradient(circle, #c1a0f826 1.2px, transparent 1.7px) 0 0 / 12px 12px, radial-gradient(ellipse at 50% 30%, #3a2466, #16102a 60%, #0e0b18); }
[data-hall-world="helluva"] .hall-case__back::before { opacity: .6; background: repeating-linear-gradient(-45deg, #f864920b 0 18px, transparent 18px 36px); }
[data-hall-world="helluva"] .hall-case__back::after { background: repeating-conic-gradient(from 180deg, #c8f27b12 0deg 6deg, transparent 6deg 16deg); }
[data-hall-world="helluva"] :is(.hall-case__curtain, .hall-case__bulbs) { display: none; }
[data-hall-world="helluva"] .hall-case__sign {
  top: -34px; padding: 0 14px; background: #0e0b18; border: 0; box-shadow: none; color: #f86492;
  font: 400 40px/1.2 var(--hall-display); letter-spacing: .1em; text-shadow: 0 0 6px #f86492, 0 0 22px #f86492, 0 0 44px #f8649288;
}
[data-hall-world="helluva"] .hall-case__bays::after { background: linear-gradient(#c8f27b33, #c8f27b08 35%, #00000066); border-top-color: #c8f27b88; }
[data-hall-world="helluva"] .hall-bay { --m1: #efffc8; --m2: #c8f27b; --m3: #6f8c33; --e1: #ff8ab0; --e2: #c2305e; --glow: #c8f27b44; --plate: var(--m2); --plate-ink: #120d1b; }
[data-hall-world="helluva"] .hall-bay--2 { --m1: #e2fffc; --m2: #79e5df; --m3: #2f8f89; --glow: #79e5df44; }
[data-hall-world="helluva"] .hall-bay--3 { --m1: #efe4ff; --m2: #c1a0f8; --m3: #6a4aa6; --glow: #c1a0f844; }
[data-hall-world="helluva"] .hall-edition.is-pending .hall-bay { --m1: #5a4f78; --m2: #3a3152; --m3: #1c1630; --e1: #4a2438; --e2: #1c0c16; --plate: #2c2440; --plate-ink: #b8abcf; --glow: #c1a0f814; }
[data-hall-world="helluva"] .hall-pedestal { --face: radial-gradient(circle, #ffffff14 1px, transparent 1.6px), linear-gradient(#2c2440, #1a1430); }
[data-hall-world="helluva"] .hall-box--cushion { --face: radial-gradient(circle, #0000002e 1px, transparent 1.6px), linear-gradient(#f86492, #f86492); }
[data-hall-world="helluva"] .hall-face { background-size: auto, 6px 6px, auto; box-shadow: inset 0 0 0 2px #120d1b; }
[data-hall-world="helluva"] .hall-medal__edge { left: 26px; top: 46px; width: 68px; height: 68px; background: #120d1b; }
[data-hall-world="helluva"] .hall-medal__sheen { left: 26px; top: 46px; width: 68px; height: 68px; }
[data-hall-world="helluva"] .hall-trophy__embers i { background: var(--m2); box-shadow: 0 0 8px 1px var(--m2); border-radius: 1px; rotate: 45deg; }
[data-hall-world="helluva"] .hall-bay__lamp { background: linear-gradient(#3a2466, var(--m2)); }
[data-hall-world="helluva"] .hall-bay__light { background: linear-gradient(color-mix(in srgb, var(--m2) 70%, transparent), transparent 70%); opacity: .38; }
[data-hall-world="helluva"] .hall-trophy__disc { background: radial-gradient(ellipse, #0009 45%, transparent 72%), linear-gradient(90deg, #0e0b18, var(--m2), #0e0b18); }
[data-hall-world="helluva"] .hall-plaque { rotate: -2deg; border: 2px solid #120d1b; box-shadow: 6px 6px 0 #000a; }
[data-hall-world="helluva"] .hall-bay--2 .hall-plaque { rotate: 2deg; }
[data-hall-world="helluva"] .hall-door { border-color: #c8f27b88; box-shadow: inset 0 0 0 3px #0e0b18cc, inset 0 0 0 4px #f8649266; }
[data-hall-world="helluva"] .hall-door::after { background: #c8f27b; }
/* Cinta de precaución cruzada mientras está por anunciar. */
[data-hall-world="helluva"] .hall-edition.is-pending .hall-case__doors::before,
[data-hall-world="helluva"] .hall-edition.is-pending .hall-case__doors::after {
  content: 'No abrir · Por anunciar · No abrir · Por anunciar · No abrir · Por anunciar · No abrir · Por anunciar'; position: absolute; top: 48%; left: -10%; width: 120%; height: 40px;
  display: grid; place-items: center; overflow: hidden; white-space: nowrap; background: #c8f27b; color: #120d1b; font: 400 18px/1 "Anton", Impact, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 20px #0009; rotate: -9deg;
}
[data-hall-world="helluva"] .hall-edition.is-pending .hall-case__doors::after { rotate: 7deg; background: #f86492; }
[data-hall-world="helluva"] .hall-case__lock { top: 20%; background: #f86492; color: #120d1b; border: 2px solid #120d1b; font-weight: 700; rotate: 3deg; box-shadow: 5px 5px 0 #000a; }
[data-hall-world="helluva"] .hall-case__lock::before, [data-hall-world="helluva"] .hall-case__lock::after { display: none; }
[data-hall-world="helluva"] .hall-plate { background: #16111f; }

/* ---------------------------------------------------------------- MOVIMIENTO */
.hall-motion .hall-rays { animation: hall-spin 60s linear infinite; }
.hall-motion .hall-sky { animation: hall-spin 240s linear infinite, hall-sky-pulse 7s ease-in-out infinite; }
@keyframes hall-spin { to { rotate: 360deg; } }
@keyframes hall-sky-pulse { 50% { opacity: .38; } }
.hall-motion .hall-skyline rect { animation: hall-window 6s steps(1, end) var(--t, 0s) infinite; }
@keyframes hall-window { 0%, 100% { opacity: .75; } 40% { opacity: .15; } 70% { opacity: .9; } }

/* Entrada del título al abrir la página. */
.hall-motion:not(.is-open) .hall-title i, .hall-motion:not(.is-open) :is(.hall-eyebrow, .hall-lede, .hall-back) { opacity: 0; }
[data-hall-world="hazbin"].hall-motion.is-open .hall-title i { animation: ch-rise 1.05s var(--ease-deco) calc(var(--i) * 45ms + 120ms) both; }
[data-hall-world="helluva"].hall-motion.is-open .hall-title i { animation: hb-slam .72s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 50ms + 120ms) both; }
.hall-motion.is-open .hall-eyebrow { animation: hall-rise .8s var(--ease-deco) both; }
.hall-motion.is-open .hall-lede { animation: hall-rise .8s var(--ease-deco) .7s both; }
.hall-motion.is-open .hall-back { animation: hall-rise .8s var(--ease-deco) .85s both; }
@keyframes hall-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* La vitrina a la vista: medallones que giran y flotan, brasas, marquesina,
   letrero con fallos de radio, patitos que se sacuden. */
.hall-motion .hall-medal__spin { animation: hall-coin 7s linear infinite, hall-light 7s linear infinite; }
.hall-bay--2 .hall-medal__spin { animation-delay: -2.3s; }
.hall-bay--3 .hall-medal__spin { animation-delay: -4.6s; }
.hall-motion .hall-medal { animation: hall-bob 3.4s ease-in-out infinite alternate; }
.hall-bay--2 .hall-medal { animation-delay: -1.1s; }
.hall-bay--3 .hall-medal { animation-delay: -2.2s; }
.hall-edition.is-pending .hall-medal__spin { animation-duration: 16s; }
.hall-motion .hall-trophy__glow { animation: hall-glow 3.4s ease-in-out infinite alternate; }
.hall-motion .hall-trophy__embers i { animation: hall-ember var(--d, 7s) linear var(--delay, 0s) infinite; }
.hall-motion .hall-case__bulbs::before, .hall-motion .hall-case__bulbs::after { animation: hall-marquee 1.1s steps(1, end) infinite; }
.hall-motion .hall-case__bulbs--b::before, .hall-motion .hall-case__bulbs--b::after { animation-name: hall-marquee-y; }
[data-hall-world="hazbin"].hall-motion .hall-case__sign { animation: hall-radio 7s steps(1, end) infinite; }
[data-hall-world="helluva"].hall-motion .hall-case__sign { animation: hall-neon 6s steps(1, end) infinite; }
.hall-motion .hall-duck { animation: hall-squeak 6s ease-in-out infinite; }
.hall-bay--2 .hall-duck { animation-delay: -2s; }
.hall-bay--3 .hall-duck { animation-delay: -4s; }
.hall-case:not(.is-live) :is(.hall-medal, .hall-medal__spin, .hall-trophy__glow, .hall-trophy__embers i, .hall-duck, .hall-case__sign),
.hall-case:not(.is-live) .hall-case__bulbs::before, .hall-case:not(.is-live) .hall-case__bulbs::after { animation-play-state: paused; }
/* Ritmo de medallón: se balancea mostrando el frente, da una vuelta rápida
   por el reverso y se detiene. Las dos animaciones comparten fotogramas. */
@keyframes hall-coin {
  0% { transform: rotateY(-22deg); animation-timing-function: ease-in-out; }
  48% { transform: rotateY(22deg); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  74%, 100% { transform: rotateY(338deg); }
}
@keyframes hall-light {
  0% { --spin: -22deg; animation-timing-function: ease-in-out; }
  48% { --spin: 22deg; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  74%, 100% { --spin: 338deg; }
}
@keyframes hall-bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes hall-glow { from { opacity: .7; scale: .92; } to { opacity: 1; scale: 1.06; } }
@keyframes hall-ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 60% { transform: translate(8px, -110px); } 100% { transform: translate(-6px, -190px); opacity: 0; } }
@keyframes hall-marquee { 0%, 100% { background-position: 0 0, 0 0; } 50% { background-position: 24px 0, 0 0; } }
@keyframes hall-marquee-y { 0%, 100% { background-position: 0 0, 0 0; } 50% { background-position: 0 24px, 0 0; } }
@keyframes hall-radio { 0%, 100% { opacity: 1; transform: none; } 62% { opacity: .45; transform: skewX(-8deg); } 63% { opacity: 1; transform: none; } 64% { opacity: .6; transform: translateX(3px); } 65% { opacity: 1; transform: none; } }
@keyframes hall-neon { 0%, 100% { opacity: 1; } 71% { opacity: .35; } 72% { opacity: 1; } 74% { opacity: .5; } 75% { opacity: 1; } }
@keyframes hall-squeak { 0%, 80%, 100% { rotate: 0deg; scale: 1; } 84% { rotate: -10deg; scale: 1.08 .92; } 88% { rotate: 7deg; scale: .96 1.05; } 92% { rotate: -3deg; } }

/* La vitrina entra desde abajo; con ganadores, se encienden los focos uno a
   uno (2.º, 1.º, 3.º) y los trofeos suben a la repisa. */
html.js .hall-motion :is(.hall-edition__head, .hall-case, .hall-plate, .hall-empty):not(.is-in) { opacity: 0; }
.hall-motion .hall-edition__head.is-in, .hall-motion .hall-plate.is-in, .hall-motion .hall-empty.is-in { animation: hall-rise .9s var(--ease-deco) both; }
.hall-motion .hall-case.is-in { animation: hall-case-in 1.1s var(--ease-deco) both; }
@keyframes hall-case-in { from { opacity: 0; transform: translate3d(0, 60px, 0) scale(.97); } to { opacity: 1; transform: none; } }
.hall-motion .hall-edition.is-final .hall-case.is-in .hall-bay__light { animation: hall-lamp 1.4s linear calc(1.2s + var(--i) * .35s) both; }
@keyframes hall-lamp { 0% { opacity: 0; } 18% { opacity: .55; } 24% { opacity: .08; } 36% { opacity: .6; } 42% { opacity: .2; } 100% { opacity: .5; } }
.hall-motion .hall-edition.is-final .hall-case.is-in .hall-trophy { animation: hall-trophy-in 1.1s var(--ease-deco) calc(1.4s + var(--i) * .35s) both; }
@keyframes hall-trophy-in { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(calc(var(--s) * .9)); } to { opacity: 1; transform: scale(var(--s)); } }
.hall-motion .hall-edition.is-final .hall-case.is-in .hall-plaque { animation: hall-rise .9s var(--ease-deco) calc(1.6s + var(--i) * .35s) both; }
.hall-motion .hall-edition.is-pending .hall-case.is-in .hall-case__lock { animation: hall-swing 5s ease-in-out 1.2s infinite; }
@keyframes hall-swing { 0%, 100% { rotate: 0deg; } 8% { rotate: 5deg; } 16% { rotate: -4deg; } 24% { rotate: 2deg; } 32% { rotate: 0deg; } }
[data-hall-world="helluva"].hall-motion .hall-edition.is-pending .hall-case.is-in .hall-case__lock { animation-name: hall-sticker; }
@keyframes hall-sticker { 0%, 100% { rotate: 3deg; } 10% { rotate: -2deg; scale: 1.05; } 20% { rotate: 3deg; scale: 1; } }

/* ------------------------------------------------------------------- MÓVIL
   La vitrina se vuelve alta: una repisa por trofeo, el primero arriba. */
@media (max-width: 760px) {
  .hall-page { padding: 118px 0 170px; }
  .hall-skyline { height: 140px; }
  .hall-title { font-size: clamp(56px, 17vw, 96px); }
  .hall-lede { font-size: 17px; }
  .hall-intro { margin-bottom: 50px; }
  .hall-edition__head { margin-bottom: 76px; }
  .hall-case { padding: 76px 18px 0; }
  .hall-case__sign { font-size: 22px; padding-inline: 18px; }
  [data-hall-world="helluva"] .hall-case__sign { font-size: 32px; }
  .hall-case__curtain::before, .hall-case__curtain::after { width: 30px; }
  .hall-case__bays { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .hall-case__bays::after { display: none; }
  .hall-bay { order: 0 !important; padding: 104px 0 30px; }
  .hall-bay::after {
    content: ''; position: absolute; z-index: 1; left: -18px; right: -18px; bottom: 0; height: 26px;
    background: linear-gradient(#ffffff30, #ffffff0a 35%, #0000005c); border-top: 1px solid #ffffff5c;
  }
  [data-hall-world="helluva"] .hall-bay::after { background: linear-gradient(#c8f27b33, #c8f27b08 35%, #00000066); border-top-color: #c8f27b88; }
  .hall-bay__lamp { top: 8px; }
  .hall-bay__light { top: 18px; height: calc(100% - 40px); }
  .hall-trophy, .hall-bay--1 .hall-trophy { --s: .92; }
  .hall-plaque { margin-bottom: 14px; }
  .hall-case__lock { top: 16%; width: max-content; max-width: 86%; }
  .hall-case__doors { grid-template-columns: 1fr; padding: 10px 12px 0; }
  .hall-door:nth-child(n + 2) { display: none; }
}
@media (max-width: 700px) {
  .nav__hall .nav__hall-long { display: none; }
  .nav__hall .nav__hall-short { display: inline; }
}
