/* The hall of fame of both games: one hall, two wings of the same weight.
   The quiz wing is gold and velvet (quiz-hof.css). The game wing is night blue and violet. */
.hl-hero { position: relative; isolation: isolate; overflow: clip; text-align: center; padding: calc(var(--header-h, 80px) + clamp(26px, 4vw, 50px)) 0 clamp(30px, 4vw, 56px); background: radial-gradient(90% 80% at 50% 0%, rgba(124, 77, 255, 0.35), transparent 70%); }
.hl-rays { position: absolute; inset: -40% -20% auto; height: 140%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 215, 0, 0.07) 0 6deg, transparent 6deg 14deg); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); animation: hl-turn 60s linear infinite; }
@keyframes hl-turn { to { rotate: 12deg; } }
.hl-eyebrow { margin: 0 0 4px; font-family: var(--font-hand); font-weight: 700; color: var(--gold); }
.hl-hero h1 { margin: 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(3rem, 9vw, 6.4rem); line-height: 1.05; background: linear-gradient(180deg, #fff, #fff3b0 35%, #ffd700 65%, #c98f00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.hl-lead { margin: 8px auto 0; max-width: 46ch; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--text-hero, #efe9ff); }
.hl-doors { position: relative; margin-top: clamp(22px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); text-align: start; }
.hl-door { --c: #ffd700; --c2: #f472b6; --bg1: #5b3a0a; --bg2: #2a0d24; position: relative; display: grid; gap: 4px; align-content: start; padding: clamp(18px, 2.6vw, 30px); border-radius: 30px 30px 30px 8px; text-decoration: none; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--bg1) 86%, transparent), color-mix(in srgb, var(--bg2) 92%, transparent)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent), 0 40px 60px -36px #000; transition: translate 0.4s var(--ease-spring), box-shadow 0.3s; animation: hl-in 0.8s var(--ease-out) both; }
.hl-door.game { --c: #4fa8ff; --c2: #7c4dff; --bg1: #16306e; --bg2: #160b3d; border-radius: 30px 30px 8px 30px; animation-delay: 0.12s; }
@keyframes hl-in { from { opacity: 0; translate: 0 30px; } }
.hl-door:hover, .hl-door:focus-visible { translate: 0 -6px; box-shadow: inset 0 0 0 2px var(--c), 0 0 50px -10px var(--c), 0 40px 60px -36px #000; }
.hl-door:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hl-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; font-size: 1.9rem; background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); margin-bottom: 6px; }
.hl-door small { font-weight: 800; font-size: 0.92rem; color: var(--c); }
.hl-door strong { font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.hl-champ { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.34); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.hl-champ i { font-style: normal; font-size: 1.5rem; filter: drop-shadow(0 0 10px var(--c)); }
.hl-champ b { font-family: var(--font-hand); font-size: clamp(1.2rem, 2vw, 1.6rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-champ em { font-style: normal; font-weight: 800; font-size: 1.15rem; color: var(--c); font-variant-numeric: tabular-nums; }
.hl-door.vacant .hl-champ i { opacity: 0.4; filter: none; } .hl-door.vacant .hl-champ b { color: var(--text-soft); }
.hl-count { margin-top: 8px; color: var(--text-soft); font-size: 0.98rem; } .hl-count b { color: #fff; font-variant-numeric: tabular-nums; }
.hl-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; font-weight: 800; color: var(--c); } .hl-go svg { width: 18px; height: 18px; rotate: -90deg; }
.hl-amp { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: clamp(50px, 6vw, 72px); aspect-ratio: 1; border-radius: 50%; font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #2a1400; background: var(--coin, #ffd700); box-shadow: 0 0 0 6px rgba(14, 6, 41, 0.9), 0 14px 30px -10px #000; pointer-events: none; }

/* the switch */
.hl-switch { position: fixed; z-index: 80; inset-inline: 0; top: calc(var(--header-h, 76px) + 14px + var(--safe-t, 0px)); margin-inline: auto; width: max-content; max-width: calc(100vw - 24px); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(14, 6, 41, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 20px 40px -18px #000; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; translate: 0 -80px; transition: translate 0.5s var(--ease-out), opacity 0.3s; }
.hl-switch.show { opacity: 1; translate: 0 0; } .hl-switch.away { opacity: 0; translate: 0 -80px; pointer-events: none; }
.hl-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--text-soft); white-space: nowrap; transition: background 0.3s, color 0.3s; }
.hl-switch a.on[data-hl-tab="quiz"] { color: #2a1400; background: var(--gold); } .hl-switch a.on[data-hl-tab="game"] { color: #fff; background: linear-gradient(135deg, #4fa8ff, #5b2fd6); }
.hl-switch a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the quiz wing: the same hall, without a second page title */
.qhof.wing { scroll-margin-top: 70px; }
.qhof.wing .qh-hero { padding-top: clamp(40px, 6vw, 80px); }
.qhof.wing .qh-h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.qhof.wing .qh-arch { width: 72px; height: 72px; font-size: 2rem; }

/* the game wing */
.ghall { --c: #4fa8ff; --c2: #7c4dff; position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 7vw, 100px); scroll-margin-top: 70px; background: radial-gradient(80% 50% at 50% 0%, rgba(79, 168, 255, 0.22), transparent 70%), linear-gradient(180deg, rgba(22, 48, 110, 0.5), rgba(14, 6, 41, 0.2) 40%); border-top: 1px solid rgba(79, 168, 255, 0.35); }
.ghall [data-gh-when] { display: none; }
.ghall[data-state="full"] [data-gh-when="full"], .ghall[data-state="loading"] [data-gh-when="loading"], .ghall[data-state="empty"] [data-gh-when="empty"], .ghall[data-state="error"] [data-gh-when="error"] { display: block; }
.ghall[data-state="full"] dl[data-gh-when="full"] { display: grid; }
.ghall [hidden] { display: none !important; }
.gh-head { text-align: center; display: grid; justify-items: center; gap: 6px; }
.gh-eyebrow { margin: 0; font-family: var(--font-hand); font-weight: 700; color: var(--c); }
.gh-head h2 { margin: 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; background: linear-gradient(180deg, #fff, #cfe6ff 40%, #4fa8ff 75%, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.gh-lead { margin: 0; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-hero, #efe9ff); }
.gh-stats { margin: 14px 0 6px; grid-template-columns: repeat(3, minmax(0, auto)); gap: 10px clamp(18px, 4vw, 50px); justify-content: center; }
.gh-stats div { display: grid; } .gh-stats dt { font-size: 0.92rem; color: var(--text-soft); } .gh-stats dd { margin: 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--c); font-variant-numeric: tabular-nums; }
.gh-podium { list-style: none; margin: clamp(22px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: end; }
.gh-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: clamp(16px, 2.2vw, 26px) 12px; border-radius: 26px; text-align: center; background: linear-gradient(170deg, rgba(22, 48, 110, 0.85), rgba(22, 11, 61, 0.92)); box-shadow: inset 0 0 0 2px rgba(79, 168, 255, 0.45), 0 40px 60px -36px #000; animation: hl-in 0.7s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms); }
.gh-card.p1 { order: 2; padding-block: clamp(24px, 3.4vw, 44px); box-shadow: inset 0 0 0 2px var(--gold), 0 0 60px -14px rgba(255, 215, 0, 0.6), 0 40px 60px -36px #000; } .gh-card.p2 { order: 3; } .gh-card.p3 { order: 1; }
.gh-medal { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; } .gh-card.p1 .gh-medal { font-size: clamp(2.6rem, 5vw, 4rem); }
.gh-name { font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.gh-points { font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--c); font-variant-numeric: tabular-nums; } .gh-card.p1 .gh-points { color: var(--gold); }
.gh-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 4px; }
.gh-stat { display: inline-flex; align-items: baseline; gap: 4px; font-size: 0.92rem; color: var(--text-soft); white-space: nowrap; } .gh-stat i { font-style: normal; } .gh-stat b { color: #fff; font-variant-numeric: tabular-nums; } .gh-stat small { font-size: 0.85rem; }
.gh-list { list-style: none; margin: clamp(14px, 2vw, 24px) auto 0; padding: 0; max-width: 900px; display: grid; gap: 6px; }
.gh-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "rank name points" "rank facts facts"; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.gh-row .gh-rank { grid-area: rank; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; color: var(--c); background: rgba(79, 168, 255, 0.14); font-variant-numeric: tabular-nums; }
.gh-row .gh-name { grid-area: name; font-size: 1.15rem; } .gh-row .gh-points { grid-area: points; font-size: 1.3rem; } .gh-row .gh-facts { grid-area: facts; justify-content: flex-start; margin-top: 0; }
.gh-row.skel { min-height: 66px; animation: gh-skel 1.4s ease-in-out infinite alternate; } @keyframes gh-skel { to { background: rgba(255, 255, 255, 0.12); } }
.gh-state { text-align: center; padding-top: 20px; } .gh-state h3 { margin: 0 0 6px; font-family: var(--font-hand); font-size: 1.6rem; } .gh-state p { margin: 0 auto; max-width: 46ch; color: var(--text-soft); }
.gh-how { margin-top: clamp(30px, 5vw, 60px); text-align: center; } .gh-how h3 { margin: 0 0 14px; font-family: var(--font-hand); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.gh-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gh-rules li { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(79, 168, 255, 0.3); }
.gh-rules span { font-size: 1.8rem; } .gh-rules strong { font-family: var(--font-hand); font-size: 1.15rem; } .gh-rules small { color: var(--text-soft); font-size: 0.92rem; line-height: 1.45; }

@media (max-width: 800px) {
  .hl-doors { grid-template-columns: 1fr; gap: 22px; } .hl-amp { top: calc(50% - 0px); }
  .hl-door, .hl-door.game { border-radius: 26px; padding: 16px; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
  .hl-ico { grid-row: span 2; width: 56px; height: 56px; margin: 0; } .hl-door small { align-self: end; } .hl-door strong { font-size: 1.6rem; }
  .hl-champ, .hl-count, .hl-go { grid-column: 1 / -1; } .hl-count { margin-top: 4px; }
  .hl-switch { top: auto; bottom: calc(14px + var(--safe-b, 0px)); translate: 0 90px; max-width: calc(100vw - 160px); } .hl-switch.away { translate: 0 90px; }
  .hl-switch a { padding: 0 12px; font-size: 0.9rem; }
  .gh-podium { grid-template-columns: 1fr; align-items: stretch; } .gh-card.p1, .gh-card.p2, .gh-card.p3 { order: 0; }
  .gh-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "medal name points" "facts facts facts"; justify-items: start; text-align: start; column-gap: 10px; padding: 14px; } .gh-card.p1 { padding-block: 18px; }
  .gh-card .gh-medal { grid-area: medal; } .gh-card .gh-name { grid-area: name; } .gh-card .gh-points { grid-area: points; } .gh-card .gh-facts { grid-area: facts; justify-content: flex-start; }
  .gh-row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 12px; }
  .gh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; } .gh-stats dt { font-size: 0.85rem; }
  .gh-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-head .btn, .gh-state .btn { width: 100%; justify-content: center; min-height: 54px; } .gh-head .btn-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hl-rays, .hl-door, .gh-card, .gh-row.skel { animation: none; } .hl-switch { transition: none; } }
