/* Higher or Lower: World Stats. Own identity: "night atlas scoreboard".
   Always-dark game zone, Bebas Neue display type, gold numbers, teal for higher, coral for lower.
   Everything is scoped to .hlz / .hl so it leaves site.css alone. */
.hlz {
  --z-bg: #0b1026; --z-bg2: #121a3d; --z-card: #151d42; --z-card2: #1b2552; --z-line: #2c3a74;
  --z-fg: #f6f2e7; --z-muted: #b3b9dc; --z-gold: #ffcb47; --z-up: #2ee6a6; --z-up-ink: #052b1f; --z-down: #ff6b84; --z-down-ink: #3a0610;
  --z-violet: #8b7dff; --z-shadow: 0 18px 40px rgba(0,0,0,.45);
  --z-display: "Bebas Neue", "Impact", "Arial Narrow", system-ui, sans-serif;
  position: relative; color: var(--z-fg); padding: 22px 0 34px; margin-top: 4px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(139,125,255,.28), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(46,230,166,.16), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, var(--z-bg2), var(--z-bg));
  overflow: hidden;
}
.hlz::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 42% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 86%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 30%, #fff 50%, transparent 51%); }
.hlz > .wrap { position: relative; padding-block: 0; }
.hlz a { color: #c9c2ff; }
.hlz button { font-family: inherit; }
.hlz :focus-visible { outline: 3px solid var(--z-gold); outline-offset: 3px; }
.backlink { font-weight: 800; font-size: 14px; text-decoration: none; justify-self: start; }
.backlink:hover { text-decoration: underline; }
.hl { display: grid; gap: 16px; min-width: 0; }

/* Top bar: wordmark + scoreboard */
.hl .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.hl .mark-svg { height: 46px; width: auto; display: block; }
.hl .board { display: flex; gap: 8px; align-items: stretch; position: relative; }
.hl .sbox { min-width: 74px; padding: 6px 12px 5px; border-radius: 10px; background: rgba(8,12,32,.7); border: 1px solid var(--z-line); text-align: center; box-shadow: inset 0 0 18px rgba(255,203,71,.06); }
.hl .sbox span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--z-muted); line-height: 1.2; }
.hl .sbox b { display: block; font-family: var(--z-display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--z-gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 0 14px rgba(255,203,71,.35); }
.hl .menu-btn { margin-left: auto; padding: 6px 14px !important; min-height: 36px !important;
  align-self: center; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 8px 14px; min-height: 40px; border: 1px solid var(--z-line); background: transparent; color: var(--z-fg); cursor: pointer; }
.hl .menu-btn:hover { border-color: var(--z-gold); }
.hl .pts { position: absolute; left: 0; width: 74px; text-align: center; top: -22px; font-family: var(--z-display); font-size: 26px; color: var(--z-up); text-shadow: 0 2px 10px rgba(46,230,166,.6); pointer-events: none; opacity: 0; }
.hl .pts.go { animation: hlPts .9s ease-out both; }
@keyframes hlPts { 0% { opacity: 0; transform: translateY(14px) scale(.7); } 25% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }

/* Start screen: hero photo with a centered card */
.hl .hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 460px; display: grid; place-items: center; padding: 40px 16px 44px; border: 1px solid var(--z-line); box-shadow: var(--z-shadow);
  background: radial-gradient(circle at 50% 120%, #2a5bd7 0, #12205a 38%, #0a0f28 70%); }
.hl .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hl .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,38,.15), rgba(11,16,38,.55)); pointer-events: none; }
.hl .hero .globe { position: absolute; width: min(880px, 125%); left: 50%; top: 52%; transform: translate(-50%, -50%); opacity: .9; }
.hl .hero[data-photo="1"] .globe { display: none; }
.hl .hcard { position: relative; z-index: 2; width: min(460px, 100%); background: rgba(246,242,231,.97); color: #141a3a; border-radius: 18px; padding: 30px 24px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.hl .pill { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--z-gold); color: #2a1d00; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.hl .hcard h2 { font-family: var(--z-display); font-weight: 400; font-size: clamp(40px, 9vw, 58px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; margin: 4px 0 0; color: #141a3a; }
.hl .hcard h2 .u { color: #0f8f66; } .hl .hcard h2 .d { color: #d12e4c; }
.hl .hcard .lede { margin: 0; color: #454c70; font-weight: 700; font-size: 15px; line-height: 1.45; }
.hl .play { width: 100%; min-height: 60px; border: 0; border-radius: 14px; cursor: pointer; font-family: var(--z-display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, #2b3a8f, #141e57); box-shadow: 0 6px 0 #0a0f2f, 0 12px 24px rgba(20,30,87,.35); transition: transform .08s; }
.hl .play:hover { filter: brightness(1.12); }
.hl .play:active { transform: translateY(3px); box-shadow: 0 3px 0 #0a0f2f; }
.hl .metaline { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; font-size: 14px; font-weight: 800; color: #2b3150; }
.hl .opt-toggle { border: 0; background: none; color: #3a3bb0; font-weight: 800; font-size: 14px; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.hl .opts { width: 100%; text-align: left; display: grid; gap: 8px; }
.hl .opts[hidden] { display: none; }
.hl .opts p { margin: 0; font-size: 13px; font-weight: 800; color: #454c70; }
.hl .cats { display: flex; flex-wrap: wrap; gap: 6px; }
.hl .tchip { font-weight: 800; font-size: 13px; line-height: 1.2; padding: 7px 11px; min-height: 36px; border-radius: 8px; border: 1px solid #c9cbe0; background: #fff; color: #141a3a; cursor: pointer; }
.hl .tchip:hover { border-color: #3a3bb0; }
.hl .tchip[aria-pressed="true"] { background: #141e57; border-color: #141e57; color: #fff; }
.hl .credit { position: absolute; left: 12px; bottom: 8px; z-index: 2; margin: 0; font-size: 11px; color: rgba(246,242,231,.85); font-style: italic; text-shadow: 0 1px 2px rgba(0,0,0,.6); max-width: calc(100% - 24px); }
.hl .credit a { color: inherit; }

/* Game screen */
.hl .game[hidden], .hl .startv[hidden] { display: none; }
.hl .game { display: grid; gap: 14px; }
.hl .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 13px; font-weight: 800; color: var(--z-muted); }
.hl .sub i { font-style: normal; color: var(--z-gold); }
.hl kbd { font: inherit; font-weight: 800; font-size: 12px; border: 1px solid var(--z-line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; background: rgba(255,255,255,.06); color: var(--z-fg); }
.hl .stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hl .vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--z-gold); color: #2a1d00; font-family: var(--z-display); font-size: 20px; letter-spacing: .04em; box-shadow: 0 0 0 6px var(--z-bg), 0 0 24px rgba(255,203,71,.5); pointer-events: none; transition: background .2s; }
.hl .vs.ok { background: var(--z-up); color: var(--z-up-ink); }
.hl .vs.bad { background: var(--z-down); color: var(--z-down-ink); }
.hl .card { position: relative; background: linear-gradient(180deg, var(--z-card2), var(--z-card)); border: 1px solid var(--z-line); border-radius: 20px; box-shadow: var(--z-shadow); min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.hl .card.win { border-color: var(--z-up); box-shadow: 0 0 0 2px var(--z-up), var(--z-shadow); }
.hl .card.lose { border-color: var(--z-down); box-shadow: 0 0 0 2px var(--z-down), var(--z-shadow); }
.hl .band { position: relative; height: 112px; background: var(--cat-bg, linear-gradient(135deg, #2a3b8f, #121a45)); }
.hl .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl .band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,38,0) 30%, rgba(21,29,66,.95)); }
.hl .band .ghost { position: absolute; right: 10px; top: -6px; font-size: 96px; opacity: .22; line-height: 1; }
.hl .band[data-photo="1"] .ghost { display: none; }
.hl .band .pc { position: absolute; right: 8px; top: 6px; z-index: 2; font-size: 10px; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.7); max-width: 70%; text-align: right; line-height: 1.3; }
.hl .band .pc a { color: inherit; }
.hl .emo { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); z-index: 2; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: var(--z-bg); border: 3px solid var(--z-gold); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.hl .body { padding: 38px clamp(14px, 3vw, 24px) 16px; display: grid; align-content: start; justify-items: center; text-align: center; gap: 5px; }
.hl .cat { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--z-muted); }
.hl .name { font-family: var(--z-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.05; letter-spacing: .01em; margin: 0; overflow-wrap: anywhere; text-wrap: balance; color: var(--z-fg); }
.hl .where { font-size: 14px; color: var(--z-muted); font-weight: 700; margin: 0; }
.hl .val { font-family: var(--z-display); font-weight: 400; font-size: clamp(36px, 5.4vw, 52px); line-height: 1; color: var(--z-gold); font-variant-numeric: tabular-nums; margin: 8px 0 0; overflow-wrap: anywhere; text-shadow: 0 0 22px rgba(255,203,71,.3); }
.hl .val.hid { color: var(--z-muted); text-shadow: none; }
.hl .alt { font-size: 14px; color: var(--z-muted); font-weight: 700; margin: 0; min-height: 1.3em; }
.hl .src { font-size: 12px; color: var(--z-muted); margin: auto 0 0; padding-top: 10px; line-height: 1.4; }
.hl .q { font-size: 15px; font-weight: 800; margin: 6px 0 2px; color: var(--z-fg); }
.hl .guesses { display: grid; gap: 10px; width: 100%; max-width: 280px; margin-top: 4px; }
.hl .guess { position: relative; font-family: var(--z-display); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; min-height: 56px; border-radius: 12px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .08s, opacity .25s; }
.hl .guess svg { width: 18px; height: 18px; }
.hl .guess.up { background: var(--z-up); color: var(--z-up-ink); box-shadow: 0 5px 0 #13906a; }
.hl .guess.down { background: var(--z-down); color: var(--z-down-ink); box-shadow: 0 5px 0 #b22e47; }
.hl .guess:hover:not(:disabled) { filter: brightness(1.08); }
.hl .guess:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.hl .guess:disabled { cursor: default; }
.hl .guess.fade { opacity: .35; }
.hl .badge { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--z-card); }
.hl .badge svg { width: 14px; height: 14px; }
.hl .badge.ok { background: #19a873; color: #fff; }
.hl .badge.no { background: #e0314f; color: #fff; }

/* Fact line */
.hl .fact { display: flex; gap: 12px; align-items: flex-start; background: rgba(8,12,32,.72); border: 1px solid var(--z-line); border-left: 4px solid var(--z-gold); border-radius: 14px; padding: 12px 16px; min-height: 52px; }
.hl .fact svg { flex: none; width: 24px; height: 24px; color: var(--z-gold); margin-top: 1px; }
.hl .fact p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--z-fg); }
.hl .fact p span { color: var(--z-muted); }

/* Game over */
.hl .over { display: none; background: rgba(246,242,231,.97); color: #141a3a; border-radius: 18px; padding: clamp(16px, 3vw, 24px); box-shadow: var(--z-shadow); text-align: center; gap: 10px; justify-items: center; }
.hl .over.show { display: grid; }
.hl .over h2 { font-family: var(--z-display); font-weight: 400; font-size: 38px; letter-spacing: .02em; text-transform: uppercase; margin: 0; color: #141a3a; }
.hl .over p { margin: 0; color: #454c70; font-weight: 700; }
.hl .over .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hl .over .play { width: auto; min-width: 200px; font-size: 22px; min-height: 52px; }
.hl .over .alt-btn { min-height: 52px; padding: 0 18px; border-radius: 14px; border: 2px solid #141e57; background: transparent; color: #141e57; font-weight: 800; font-size: 15px; cursor: pointer; }
.hl .catnote { font-size: 13px; color: var(--z-muted); margin: 0; line-height: 1.5; }

/* Motion (only for people who have not asked for less) */
@media (prefers-reduced-motion: no-preference) {
  .hl .card.enter { animation: hlIn .38s cubic-bezier(.2,.8,.2,1) both; }
  .hl .stage.pop .card.right { animation: hlPop .32s ease-out; }
  .hl .stage.shake .card.right { animation: hlShake .4s ease-in-out; }
  .hl .badge { animation: hlBadge .3s cubic-bezier(.3,1.6,.5,1) both; }
  .hl .fact.new { animation: hlFact .35s ease-out both; }
  .hl .hcard { animation: hlCard .5s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes hlIn { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes hlInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes hlPop { 50% { transform: scale(1.03); } }
@keyframes hlShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes hlBadge { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hlFact { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hlCard { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .hlz { padding-top: 16px; }
  .hl .mark-svg { height: 38px; }
  .hl .sbox { min-width: 62px; padding: 5px 8px 4px; }
  .hl .sbox b { font-size: 24px; }
  .hl .hero { min-height: 420px; padding: 34px 12px 40px; }
  .hl .hero .globe .nums { display: none; }
  .hl .hero .globe { width: 150%; }
  .hl .hcard { padding: 28px 16px 16px; }
  .hl .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hl .vs { position: relative; left: auto; top: auto; transform: none; justify-self: center; width: 46px; height: 46px; font-size: 17px; margin: -30px 0; }
  .hl .band { height: 78px; }
  .hl .band .ghost { font-size: 70px; }
  .hl .emo { width: 58px; height: 58px; font-size: 30px; bottom: -24px; }
  .hl .body { padding-top: 30px; gap: 3px; }
  .hl .guesses { grid-template-columns: 1fr 1fr; max-width: none; }
  .hl .guess { font-size: 21px; }
  .hl .sub .keys { display: none; }
}
@media (max-width: 680px) and (prefers-reduced-motion: no-preference) { .hl .card.enter { animation-name: hlInUp; } }
@media (hover: none) { .hl .sub .keys { display: none; } }

/* The guide below the game keeps the site look. */
.hlz + .wrap .guide { margin-top: 40px; }
.hl .fact p b { color: var(--z-gold); }
