/* ==========================================================================
   RETRO-FUTURE THEME (loaded after style.css)
   Pixel-art world behind frosted "glass" HUD panels with neon accents.
   Glass tint/blur are tokens below: tweak them to taste.
   ========================================================================== */
:root {
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --glass: rgba(14, 20, 42, 0.66);           /* panel tint */
  --glass-2: rgba(255, 255, 255, 0.07);      /* cards inside panels */
  --glass-line: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(16px) saturate(150%);
  --neon: #ff8a3d;
  --cyan: #7fe0ff;
  --ink: #eef2ff;
  --ink-2: #b4c0dc;
}

/* ---------- retro world ---------- */
/* synthwave: striped pixel sun, glow at the horizon, neon city, grid floor */
.sun {
  left: 18vw; right: auto;
  width: clamp(220px, 30vw, 460px);
  border-radius: 0;
  background: none;
  background-size: 100% 100%;
  image-rendering: pixelated;
  box-shadow: none;
  filter: drop-shadow(0 0 36px rgba(255, 80, 160, 0.65)) drop-shadow(0 0 12px rgba(255, 210, 90, 0.5));
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 35% 78%, rgba(255, 150, 80, 0.35), transparent 70%);
}
.clouds { top: 14vh; opacity: 1; }
.hills-far { height: 44vh; opacity: 0.95; }
.hills-near { height: 22vh; }
.ground { background-color: #12062b; }
.ground canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .sun { left: 50%; top: 30vh; width: 240px; margin-left: -120px; } .hills-far { height: 32vh; } }
.ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}
body.scanlines .world::after {   /* faint CRT scanlines */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(10, 14, 30, 0.07) 0 1px, transparent 1px 3px);
}
.marker-plate { font-family: var(--font-pixel); font-size: 13px; padding: 6px 8px 4px; }
.gate-banner  { font-family: var(--font-pixel); font-size: 15px; padding: 10px 6px 8px; }
@media (max-width: 760px) { .gate-banner { font-size: 10px; padding: 6px 4px 4px; } }

/* ---------- glass panel ---------- */
.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%), var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 138, 61, 0.15),
    0 20px 50px rgba(8, 12, 30, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--ink);
}
/* HUD corner brackets */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 2;
}
.panel::before { top: 8px; left: 8px; border-top: 2px solid var(--neon); border-left: 2px solid var(--neon); border-top-left-radius: 8px; }
.panel::after  { bottom: 8px; right: 8px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); border-bottom-right-radius: 8px; }

.panel-head {
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.16), rgba(127, 224, 255, 0.06) 70%, transparent);
  border-bottom: 1px solid var(--glass-line);
  padding-left: 26px;
}
.panel-head h2 { color: #fff; text-shadow: 0 0 18px rgba(255, 138, 61, 0.55); }
.chip {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.5px;
  padding: 6px 9px 5px;
  background: linear-gradient(180deg, #ffa25c, var(--orange));
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.6);
}
.panel-body { color: var(--ink); }
.panel-body h3 { color: #fff; }
.panel-body a:not(.btn):not(.link-tile) { color: var(--neon); }

.tabs { background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--glass-line); gap: 8px; padding: 10px 16px 0; }
.tab {
  border: 1px solid var(--glass-line);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  margin-bottom: -1px;
}
.tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 2px 0 var(--neon);
}

/* cards inside panels */
.stat, .level, .link-tile, .badge, .quest, .quote {
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  box-shadow: none;
  color: var(--ink);
}
.stat dt, .mini-title { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.5px; color: var(--cyan); }
.mini-title { margin: 8px 0 10px; }
.stat dd { color: #fff; }
.about-lead { color: #fff; border-left-color: var(--neon); }
.where, .level .meta, .quest-note, .link-tile small, .foot { color: var(--ink-2); }
.when { color: var(--cyan); }
.tag { background: rgba(127, 224, 255, 0.1); border: 1px solid rgba(127, 224, 255, 0.4); color: #c9f3ff; }
.ph { color: #ffc49c; background: rgba(255, 138, 61, 0.12); }

.timeline::before { background: linear-gradient(var(--neon), var(--cyan)); width: 3px; }
.timeline > li::before { background: var(--neon); border: 2px solid #fff; box-shadow: 0 0 10px var(--neon); width: 14px; height: 14px; left: -20px; }

.profile-photo { border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.5), 0 0 24px rgba(255, 138, 61, 0.45); }
.profile-name { color: #fff; }

.level:hover, .link-tile:hover { border-color: rgba(255, 138, 61, 0.7); box-shadow: 0 0 22px rgba(255, 138, 61, 0.25); background: rgba(255, 255, 255, 0.1); }
.level-thumb { border-bottom: 1px solid var(--glass-line); }
.level-num { font-family: var(--font-pixel); font-size: 8px; padding: 5px 7px 4px; background: rgba(14, 20, 42, 0.8); border: 1px solid var(--glass-line); }
.level-info p { color: var(--ink); }
.link-tile strong { color: #fff; }
.link-icon { background: linear-gradient(160deg, var(--orange), #c4541a); box-shadow: 0 0 14px rgba(255, 138, 61, 0.4); }

.btn, .level-more {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ff9b54, var(--orange));
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.45);
  color: #fff;
}
.btn:hover, .level-more:hover { box-shadow: 0 0 24px rgba(255, 138, 61, 0.7); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 10px rgba(255, 138, 61, 0.5); }
.btn.alt { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: none; }
.btn.alt:hover { background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 16px rgba(127, 224, 255, 0.35); }

.badge-icon { border: 2px solid #fff; box-shadow: 0 0 18px rgba(255, 201, 74, 0.55); }
.badge h3 { color: #fff; }

.quest-box { border: 2px solid rgba(255, 255, 255, 0.6); background: transparent; }
.quest.done .quest-box { background: var(--neon); border-color: var(--neon); }
.quest-name { color: #fff; }
.quest-status { font-family: var(--font-pixel); font-size: 7px; color: var(--neon); }
.bar { border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.bar span { box-shadow: 0 0 10px var(--neon); }

/* ---------- HUD ---------- */
.dots, .hud-sound {
  background: rgba(14, 20, 42, 0.5);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: 0 8px 24px rgba(8, 12, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.dots { transform: none; }
.dots-rail { background: rgba(255, 255, 255, 0.18); height: 4px; }
.dots-fill { box-shadow: 0 0 10px var(--neon); }
.dot { border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(14, 20, 42, 0.6); }
.dot.visited { background: var(--orange-2); border-color: #fff; }
.dot.current { background: var(--neon); border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.3), 0 0 16px var(--neon); }
.dot-label { font-family: var(--font-pixel); font-size: 8px; padding: 6px 8px; background: rgba(14, 20, 42, 0.85); border: 1px solid var(--glass-line); }
.hud-logo { filter: drop-shadow(0 0 10px rgba(255, 138, 61, 0.45)); }

.hud-sound {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.hud-sound svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.hud-sound .ic-off { display: none; }
.hud-sound.off .ic-on { display: none; }
.hud-sound.off .ic-off { display: block; }
.hud-sound.off { color: var(--ink-2); }
.hud-sound.waiting { animation: sound-ping 1.6s ease-out infinite; }
@keyframes sound-ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(255, 138, 61, 0); }
}
@media (max-width: 760px) { .hud-sound { width: 36px; height: 36px; } .hud-sound svg { width: 18px; height: 18px; } }

/* ---------- start screen ---------- */
.title-card .kicker {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 12px 7px;
  background: rgba(14, 20, 42, 0.6);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.title-card h1 { text-shadow: 6px 6px 0 var(--navy), 0 0 40px rgba(255, 138, 61, 0.45); }
.title-card .sub {
  background: rgba(14, 20, 42, 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 30px rgba(8, 12, 30, 0.35);
  color: #fff;
}
.scroll-hint { font-family: var(--font-pixel); font-size: 10px; padding: 12px 16px 10px; box-shadow: 0 0 18px rgba(255, 201, 74, 0.6), 3px 3px 0 var(--navy); }
@media (max-width: 760px) { .scroll-hint { font-size: 9px; } }

/* ---------- pop-up ---------- */
.modal::backdrop { background: rgba(10, 14, 32, 0.45); }
.modal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%), rgba(14, 20, 42, 0.78);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.2), 0 30px 80px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}
.modal-media { border-bottom: 1px solid var(--glass-line); }
.modal-body h2 { color: #fff; text-shadow: 0 0 18px rgba(255, 138, 61, 0.5); }
.modal-body .where { color: var(--ink-2); }

/* browsers without backdrop blur: make glass more solid so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .modal-card, .dots, .hud-sound, .title-card .sub { background-color: rgba(14, 20, 42, 0.92); }
}

/* fixes: pixel labels sizing, indeterminate bars stay full after arrival */
.panel-body .mini-title { font-size: 10px; line-height: 1.6; text-transform: uppercase; }
.stat dt, .quest-status, .chip, .level-num, .dot-label, .title-card .kicker { text-transform: uppercase; }
.stop.is-here .bar.indeterminate span { width: 100%; }

/* ---------- BEYOND CODE: soccer + anime ---------- */
.fan-intro { margin: 0 0 12px; color: var(--ink); }
.fan-soccer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: center; }
.fan-photo { margin: 0; position: relative; border: 1px solid var(--glass-line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.06); }
.fan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan-photo figcaption { position: absolute; right: 0; bottom: 0; padding: 3px 7px; font-size: 10.5px; background: rgba(10, 14, 30, 0.72); border-top-left-radius: 8px; }
.fan-photo figcaption a { color: var(--ink-2); text-decoration: none; }
.fan-photo figcaption a:hover { color: var(--ink); text-decoration: underline; }
.fan-team h3 { margin: 10px 0 0; font-family: var(--font-pixel); font-size: 16px; line-height: 1.5; color: #6fa8ff; text-shadow: 0 0 14px rgba(70, 130, 255, 0.55); }
.fan-team .chip { display: inline-block; }

.anime-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.anime { display: flex; flex-direction: column; gap: 8px; animation: anime-in 0.5s calc(var(--i) * 80ms) both; }
.anime-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--glass-line); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06); transition: transform 0.2s, box-shadow 0.2s; }
.anime-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px); pointer-events: none; }
.anime:hover .anime-cover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(255, 138, 61, 0.35); }
.anime-motif { width: 58%; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.anime-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anime-rank { position: absolute; left: 6px; top: 6px; z-index: 1; font-family: var(--font-pixel); font-size: 9px; padding: 5px 6px 4px; color: #ffd23f; background: rgba(10, 14, 30, 0.8); border: 1px solid var(--glass-line); border-radius: 4px; }
.anime-name { font-weight: 800; font-size: 14px; line-height: 1.25; color: var(--ink); }
@keyframes anime-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .fan-soccer { grid-template-columns: 1fr; gap: 10px; }
  .fan-team h3 { font-size: 13px; }
  .anime-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .anime-name { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .anime { animation: none; } .anime-cover { transition: none; } }

/* ---------- always-visible names under the progress dots ---------- */
:root { --hud-h: 76px; }
.hud { align-items: flex-start; padding-top: 10px; }
.dots { max-width: 660px; padding: 8px 22px 24px; border-radius: 18px; }
.dots-rail { top: 19px; left: 32px; right: 32px; transform: none; }   /* through the dot centres */
.dots-list > li { position: relative; display: flex; justify-content: center; }
.dot-name {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
}
.dot-name:hover { color: #fff; }
.dot-name.current { color: var(--neon); text-shadow: 0 0 8px rgba(255, 138, 61, 0.7); }
.dot-label { display: none; }
@media (max-width: 760px) {
  :root { --hud-h: 70px; }
  .hud { padding-top: 8px; }
  .dots { padding: 7px 14px 21px; border-radius: 16px; }
  .dots-rail { top: 16px; left: 22px; right: 22px; }
  .dot-name { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 10px; letter-spacing: 0.02em; top: calc(100% + 3px); opacity: 0; transition: opacity 0.2s; }
  .dot-name.current { opacity: 1; }   /* no room for all eight names on a phone: show where you are */
}
@media (max-height: 560px) and (min-width: 761px) { :root { --hud-h: 70px; } }

.fan-caption { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.anime-poster { image-rendering: auto; }
.art-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-piece { display: flex; flex-direction: column; gap: 8px; }
.art-open, .art-empty { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--glass-line); overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.art-open { padding: 0; cursor: zoom-in; display: block; width: 100%; }
.art-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.art-open:hover img { transform: scale(1.04); }
.art-empty { display: grid; place-items: center; font-size: 34px; border-style: dashed; opacity: 0.7; }
@media (max-width: 760px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* pop-up shows the whole picture (art, award photos), not a crop */
.modal-media { background: rgba(6, 8, 20, 0.6); }
.modal-media img { object-fit: contain; max-height: 60dvh; display: block; margin: 0 auto; }

/* ==========================================================================
   Futuristic chrome: logo, buttons, tabs, sound button (Orbitron + neon)
   ========================================================================== */
:root { --font-future: "Orbitron", "Segoe UI", system-ui, sans-serif; }
.hud-logo { width: 46px; height: 46px; filter: drop-shadow(0 0 8px rgba(255, 60, 172, 0.6)) drop-shadow(0 0 16px rgba(127, 224, 255, 0.3)); transition: filter 0.2s, transform 0.2s; }
.hud-logo:hover { transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(255, 60, 172, 0.9)) drop-shadow(0 0 22px rgba(127, 224, 255, 0.55)); }

.btn, .level-more {
  font-family: var(--font-future);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  padding: 11px 18px 10px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 50%),
    linear-gradient(90deg, #ff3cac, #ff8a3d);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0 0 8px rgba(255, 60, 172, 0.55));
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover, .level-more:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #fff, inset 0 -3px 0 rgba(0, 0, 0, 0.25); filter: drop-shadow(0 0 14px rgba(255, 60, 172, 0.9)); }
.btn:active { transform: translateY(1px); filter: drop-shadow(0 0 4px rgba(255, 60, 172, 0.6)); }
.btn.alt {
  background: linear-gradient(180deg, rgba(127, 224, 255, 0.18), rgba(127, 224, 255, 0.04));
  color: #dff7ff;
  box-shadow: inset 0 0 0 1.5px rgba(127, 224, 255, 0.75);
  filter: drop-shadow(0 0 6px rgba(127, 224, 255, 0.35));
  text-shadow: 0 0 8px rgba(127, 224, 255, 0.8);
}
.btn.alt:hover { background: linear-gradient(180deg, rgba(127, 224, 255, 0.3), rgba(127, 224, 255, 0.08)); box-shadow: inset 0 0 0 1.5px #7fe0ff; filter: drop-shadow(0 0 12px rgba(127, 224, 255, 0.7)); }
.btn.small, .level-more { font-size: 10px; padding: 8px 13px 7px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.level:hover .level-more, .badge.has-photo:hover .level-more { background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 50%), linear-gradient(90deg, #ff5fbd, #ffa05a); }

.tab { font-family: var(--font-future); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tab[aria-selected="true"] { color: #fff; text-shadow: 0 0 8px rgba(255, 110, 199, 0.9); box-shadow: inset 0 2px 0 #ff3cac; }

.hud-sound {
  border: 0;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(180deg, #2b1260, #0b0420);
  box-shadow: inset 0 0 0 2px #7fe0ff;
  color: #7fe0ff;
  filter: drop-shadow(0 0 8px rgba(127, 224, 255, 0.5));
}
.hud-sound svg { filter: drop-shadow(0 0 4px currentColor); }
.hud-sound:hover { color: #fff; }
.hud-sound.off { color: #ff6ec7; box-shadow: inset 0 0 0 2px #ff6ec7; filter: drop-shadow(0 0 6px rgba(255, 60, 172, 0.45)); }
.hud-sound.waiting { animation: sound-glow 1.6s ease-in-out infinite; }
@keyframes sound-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(127, 224, 255, 0.4)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255, 60, 172, 1)); }
}
@media (max-width: 760px) {
  .hud-logo { width: 38px; height: 38px; }
  .tab { font-size: 10px; letter-spacing: 0.06em; }
}
/* chamfered neon frame drawn as SVG so the border follows the cut corners */
.hud-sound {
  clip-path: none;
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232b1260'/%3E%3Cstop offset='1' stop-color='%230b0420'/%3E%3C/linearGradient%3E%3ClinearGradient id='e' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%237fe0ff'/%3E%3Cstop offset='1' stop-color='%23ff3cac'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 2H54L62 10V54L54 62H10L2 54V10Z' fill='url(%23b)' stroke='url(%23e)' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hud-sound.off { box-shadow: none; opacity: 0.85; }

/* ==========================================================================
   Checkpoint pop-up lock: while open, only the pop-up scrolls
   ========================================================================== */
.journey.locked { overflow-y: hidden; }
.panel-body { overscroll-behavior: contain; }
.panel-close {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 6px;
  border: 0; border-radius: 0;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: linear-gradient(180deg, rgba(255, 110, 199, 0.22), rgba(255, 60, 172, 0.06));
  box-shadow: inset 0 0 0 1.5px rgba(255, 110, 199, 0.8);
  color: #ffd6ef;
  font-family: var(--font-future); font-weight: 800; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 110, 199, 0.9);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.panel-close:hover, .panel-close:focus-visible { background: linear-gradient(180deg, rgba(255, 110, 199, 0.45), rgba(255, 60, 172, 0.15)); color: #fff; }
.panel-close span[aria-hidden] { font-size: 12px; }

.stop.is-here.closed .panel { visibility: visible; pointer-events: none; animation: panel-out 0.25s ease-in forwards; }
.panel-reopen {
  position: absolute;
  top: calc(var(--hud-h) + 24px);
  right: max(4vw, 20px);
  z-index: 3;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s;
}
.stop.is-here.closed .panel-reopen { visibility: visible; opacity: 1; transition-delay: 0.15s; }
@media (max-width: 760px) {
  .panel-close { padding: 6px 9px 5px; }
  .panel-close-txt { display: none; }
  .panel-reopen { right: 16px; top: calc(var(--hud-h) + 12px); }
}
