/* HAMBURG.GAMES // DEPTH TUNNEL V15
   HG_MOBILE_DEPTH_TUNNEL_V20: the camera-dolly portal is the default on web
   and mobile. Linear DOM flow remains the reduced-motion/manual escape. */

:root {
  --hg-tunnel-paper: #f7f4ee;
  --hg-tunnel-ink: #071019;
  --hg-tunnel-night: #06131d;
  --hg-tunnel-red: #e2001a;
  --hg-tunnel-water: #53d5df;
  --hg-tunnel-amber: #ffc76a;
  --hg-tunnel-header: var(--hgp-header, 66px);
  --hg-tunnel-dock-clearance: calc(var(--hg-os-dock-height, 74px) + max(18px, env(safe-area-inset-bottom)));
  --hg-tunnel-art-home: url("/assets/visuals/hamburg-depth-tunnel-v15.webp");
  --hg-tunnel-art-today: url("/assets/visuals/hamburg-depth-tunnel-v15.webp");
  --hg-tunnel-art-events: url("/assets/visuals/hamburg-depth-tunnel-v15.webp");
  --hg-tunnel-art-world: url("/assets/visuals/hamburg-depth-tunnel-v15.webp");
  --hg-tunnel-art-project: url("/assets/visuals/hamburg-depth-tunnel-v15.webp");
}

html[data-hg-depth-tunnel="ready-v15"],
html[data-hg-depth-tunnel="ready-v20"] {
  background: #07131c;
  scroll-padding-top: var(--hg-tunnel-header);
}

.hg-portal[data-hg-depth-tunnel="ready"] {
  overflow: visible;
  background:
    radial-gradient(circle at 18% 8%, rgba(83, 213, 223, .14), transparent 31%),
    linear-gradient(180deg, #07131c, #0b202a 72%, #08151e);
}

.hg-portal[data-hg-depth-tunnel="ready"] .hg-portal-main {
  position: relative;
  min-width: 0;
  background: transparent;
}

.hg-depth-tunnel-stage {
  position: sticky;
  z-index: 8;
  top: var(--hg-tunnel-header);
  width: 100%;
  height: calc(100svh - var(--hg-tunnel-header));
  min-height: 560px;
  overflow: hidden;
  color: var(--hg-tunnel-paper);
  background: var(--hg-tunnel-night);
  perspective: 1500px;
  perspective-origin: 50% 46%;
  isolation: isolate;
}

.hg-depth-tunnel-runway {
  width: 1px;
  height: 400svh;
  margin-left: -1px;
  pointer-events: none;
}

.hg-depth-tunnel-art,
.hg-depth-tunnel-geometry,
.hg-depth-tunnel-scene {
  position: absolute;
  inset: 0;
}

.hg-depth-tunnel-art {
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 12, 18, .05), rgba(3, 12, 18, .3)),
    #0a202a;
  transform-style: preserve-3d;
}

.hg-depth-tunnel-art::before,
.hg-depth-tunnel-art::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hg-depth-tunnel-art::before {
  background:
    linear-gradient(90deg, rgba(4, 14, 21, .73) 0 17%, rgba(4, 14, 21, .22) 37%, transparent 61%, rgba(4, 14, 21, .17)),
    linear-gradient(180deg, rgba(3, 12, 18, .12), transparent 45%, rgba(3, 12, 18, .46));
}

.hg-depth-tunnel-art::after {
  background:
    radial-gradient(ellipse at 50% 46%, transparent 0 31%, rgba(4, 14, 21, .08) 46%, rgba(4, 14, 21, .68) 100%),
    repeating-linear-gradient(90deg, transparent 0 11.8vw, rgba(255, 255, 255, .035) 11.85vw 11.95vw);
  mix-blend-mode: normal;
}

.hg-depth-tunnel-art-layer {
  position: absolute;
  inset: -5%;
  overflow: hidden;
  opacity: var(--hg-tunnel-opacity, 0);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.17) contrast(1.04) brightness(.96);
  transform: translate3d(0, var(--hg-tunnel-y, 0), var(--hg-tunnel-z, -900px)) scale(var(--hg-tunnel-scale, .55));
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hg-depth-tunnel-art-layer--home { background-image: var(--hg-tunnel-art-home); background-position: center 56%; }
.hg-depth-tunnel-art-layer--today { background-image: var(--hg-tunnel-art-today); background-position: 60% 50%; }
.hg-depth-tunnel-art-layer--events { background-image: var(--hg-tunnel-art-events); background-position: 35% 58%; filter: saturate(1.3) hue-rotate(-8deg) brightness(.93); }
.hg-depth-tunnel-art-layer--world { background-image: var(--hg-tunnel-art-world); background-position: 50% 48%; filter: saturate(1.2) brightness(.9); }
.hg-depth-tunnel-art-layer--project { background-image: var(--hg-tunnel-art-project); background-position: 64% 55%; filter: saturate(.94) contrast(1.13) brightness(.82); }

.hg-depth-tunnel-horizon {
  position: absolute;
  right: -4%;
  bottom: 10%;
  left: -4%;
  height: 18%;
  border-top: 1px solid rgba(109, 225, 233, .48);
  background:
    linear-gradient(180deg, rgba(64, 195, 209, .17), transparent 55%),
    repeating-linear-gradient(98deg, transparent 0 7.8%, rgba(126, 229, 236, .07) 8% 8.15%);
  box-shadow: 0 -22px 70px rgba(58, 189, 204, .11);
  transform: perspective(650px) rotateX(61deg);
  transform-origin: center top;
}

.hg-depth-tunnel-place {
  position: absolute;
  right: 4%;
  bottom: 7%;
  color: rgba(255, 255, 255, .13);
  font: 1000 clamp(82px, 13vw, 224px)/.72 Inter, Arial, sans-serif;
  letter-spacing: -.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hg-depth-tunnel-geometry {
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
}

.hg-depth-tunnel-geometry::before,
.hg-depth-tunnel-geometry::after,
.hg-depth-tunnel-geometry > i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}

.hg-depth-tunnel-geometry::before {
  width: min(84vw, 1250px);
  aspect-ratio: 1;
  top: 50%;
  left: 57%;
  border-width: 2px;
  border-color: rgba(84, 215, 225, .24);
  box-shadow: 0 0 0 8vw rgba(84, 215, 225, .025), 0 0 120px rgba(84, 215, 225, .13);
  transform: translate(-50%, -50%) rotateX(66deg);
}

.hg-depth-tunnel-geometry::after {
  width: min(44vw, 650px);
  aspect-ratio: 1;
  top: 46%;
  left: 60%;
  border-color: rgba(255, 199, 106, .34);
  box-shadow: 0 0 46px rgba(255, 199, 106, .11);
  transform: translate(-50%, -50%);
}

.hg-depth-tunnel-geometry > i {
  top: 50%;
  left: 60%;
  width: 140px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.hg-depth-tunnel-geometry > i:nth-child(1) { border-color: rgba(226, 0, 26, .62); }
.hg-depth-tunnel-geometry > i:nth-child(2) { width: 275px; border-color: rgba(255, 255, 255, .22); }
.hg-depth-tunnel-geometry > i:nth-child(3) { width: 410px; border-color: rgba(84, 215, 225, .24); }
.hg-depth-tunnel-geometry > i:nth-child(4) { width: 545px; border-color: rgba(255, 199, 106, .18); }

.hg-depth-tunnel-scene {
  z-index: 3;
  transform-style: preserve-3d;
}

.hg-depth-tunnel-station {
  position: absolute;
  inset: 0;
  min-width: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  opacity: var(--hg-tunnel-opacity, 0);
  transform: translate3d(0, var(--hg-tunnel-y, 0), var(--hg-tunnel-z, -900px)) scale(var(--hg-tunnel-scale, .55));
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  scrollbar-color: rgba(226, 0, 26, .72) rgba(255, 255, 255, .08);
  scrollbar-width: thin;
  pointer-events: none;
  will-change: transform, opacity;
}

.hg-depth-tunnel-station[data-hg-tunnel-slot="active"] {
  z-index: 12;
  pointer-events: auto;
}

.hg-depth-tunnel-station[data-hg-tunnel-slot="past"] { z-index: 14; }
.hg-depth-tunnel-station[data-hg-tunnel-slot="future"] { z-index: 8; }
.hg-depth-tunnel-station::-webkit-scrollbar { width: 7px; }
.hg-depth-tunnel-station::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(226, 0, 26, .72); }

.hg-portal[data-hg-depth-tunnel="ready"] [data-portal-reveal] {
  opacity: 1;
  transform: none;
}

/* Home is one composed viewport: story left, playable product right, honest
   status below. Hamburg art remains visible through the transparent shell. */
.hg-depth-tunnel-station--home {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hg-depth-tunnel-station--home .hg-portal-hero {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.hg-depth-tunnel-station--home .hg-portal-hero::before { opacity: .28; }
.hg-depth-tunnel-station--home .hg-depth-world { background: transparent; }
.hg-depth-tunnel-station--home .hg-depth-world-fallback { opacity: .42; filter: saturate(1.2) brightness(1.18); }
.hg-depth-tunnel-station--home .hg-depth-world-wash { opacity: .68; }
.hg-depth-tunnel-station--home .hg-portal-hero-copy { padding-block: clamp(42px, 5vw, 82px); }
.hg-depth-tunnel-station--home .hg-portal-game-column { padding-block: clamp(22px, 3vw, 42px); }
.hg-depth-tunnel-station--home .hg-portal-signal-strip {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(246, 242, 234, .94);
  backdrop-filter: blur(18px);
}

/* Today is an editorial cockpit, not another long page section. */
.hg-depth-tunnel-station--today #today {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(540px, 1.52fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(34px, 5vw, 78px) clamp(38px, 6vw, 108px) calc(var(--hg-tunnel-dock-clearance) + 52px);
  border: 0;
  background: linear-gradient(90deg, rgba(5, 18, 27, .89), rgba(5, 18, 27, .46) 42%, rgba(5, 18, 27, .15));
}

.hg-depth-tunnel-station--today .hg-portal-section-heading { margin: 0; }
.hg-depth-tunnel-station--today .hg-portal-section-heading h2 { font-size: clamp(40px, 4.8vw, 82px); }
.hg-depth-tunnel-station--today .hg-portal-feed { width: 100%; max-width: 1100px; margin: 0; }
.hg-depth-tunnel-station--today .hg-feed-depth-stage { min-height: min(60svh, 570px); }
.hg-depth-tunnel-station--today .hg-portal-feed-note { min-height: 62px; }

/* Events and the curation rules share one station, like two walls of the same
   room. The cards stay real, selectable DOM. */
.hg-depth-tunnel-station--events {
  display: grid;
  grid-template-columns: minmax(560px, 1.34fr) minmax(330px, .66fr);
  align-content: center;
  padding: 28px 0 calc(var(--hg-tunnel-dock-clearance) + 30px);
  background: linear-gradient(112deg, rgba(6, 18, 27, .9), rgba(6, 18, 27, .3) 67%, rgba(226, 0, 26, .18));
}

.hg-depth-tunnel-station--events > .hg-portal-section {
  min-height: 0;
  padding: clamp(26px, 3.2vw, 54px);
  border: 0;
  background: transparent;
}

.hg-depth-tunnel-station--events .hg-portal-section-heading { margin: 0 0 24px; }
.hg-depth-tunnel-station--events .hg-portal-section-heading h2 { font-size: clamp(38px, 4.3vw, 72px); }
.hg-depth-tunnel-station--events .hg-portal-section-heading > p { margin-top: 14px; font-size: 12px; }
.hg-depth-tunnel-station--events .hg-portal-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-depth-tunnel-station--events .hg-portal-channel { min-height: 142px; padding: 20px; gap: 12px; background: rgba(8, 19, 27, .8); backdrop-filter: blur(16px); }
.hg-depth-tunnel-station--events .hg-portal-channel h3 { font-size: clamp(24px, 2.2vw, 36px); }
.hg-depth-tunnel-station--events .hg-portal-culture {
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: var(--hg-tunnel-paper);
  background: rgba(246, 242, 234, .91);
}
.hg-depth-tunnel-station--events .hg-portal-culture .hg-portal-section-heading h2 { color: #0a1118; font-size: clamp(32px, 3.3vw, 55px); }
.hg-depth-tunnel-station--events .hg-portal-culture .hg-portal-section-heading > p { color: rgba(7, 13, 19, .7); }
.hg-depth-tunnel-station--events .hg-portal-rules { grid-template-columns: 1fr; }
.hg-depth-tunnel-station--events .hg-portal-rule { min-height: 104px; padding: 18px 20px; }
.hg-depth-tunnel-station--events .hg-portal-rule b { font-size: clamp(23px, 2.3vw, 36px); }
.hg-depth-tunnel-station--events .hg-portal-rule p { margin-top: 9px; }

.hg-depth-tunnel-station--world #world {
  width: 100%;
  min-height: 100%;
  padding: clamp(30px, 3.8vw, 62px) clamp(38px, 6vw, 106px) calc(var(--hg-tunnel-dock-clearance) + 38px);
  border: 0;
  background: linear-gradient(90deg, rgba(5, 17, 25, .88), rgba(5, 17, 25, .44) 52%, rgba(5, 17, 25, .16));
}
.hg-depth-tunnel-station--world .hg-portal-section-heading { margin-bottom: 24px; }
.hg-depth-tunnel-station--world .hg-portal-section-heading h2 { font-size: clamp(40px, 5vw, 80px); }
.hg-depth-tunnel-station--world .hg-portal-world-card { min-height: 130px; }
.hg-depth-tunnel-station--world .hg-meshy-lab { min-height: 390px; }
.hg-depth-tunnel-station--world .hg-meshy-lab-stage { min-height: 390px; }

.hg-depth-tunnel-station--project {
  display: grid;
  place-items: center;
}
.hg-depth-tunnel-station--project #project {
  width: min(1320px, calc(100% - clamp(34px, 9vw, 170px)));
  min-height: min(690px, calc(100% - var(--hg-tunnel-dock-clearance) - 54px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 94px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(226, 0, 26, .93), rgba(145, 0, 20, .88));
  box-shadow: 0 48px 120px rgba(0, 0, 0, .48);
}

/* Minimal route instrument. It sits above the OS dock and never replaces it. */
.hg-depth-tunnel-hud {
  position: absolute;
  z-index: 100;
  right: 50%;
  bottom: var(--hg-tunnel-dock-clearance);
  width: min(900px, calc(100vw - 34px));
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(140px, .85fr) 46px minmax(220px, 1.3fr) minmax(80px, .55fr) 46px auto;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  color: #fff;
  background: rgba(6, 15, 22, .74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px) saturate(1.24);
  transform: translateX(50%);
}

.hg-depth-tunnel-route { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0 9px; }
.hg-depth-tunnel-route small { grid-column: 1 / -1; color: var(--hg-tunnel-water); font: 850 6px/1.2 Inter, Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.hg-depth-tunnel-route strong { overflow: hidden; color: #fff; font: 950 12px/1.25 Inter, Arial, sans-serif; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.hg-depth-tunnel-route output { color: rgba(255, 255, 255, .54); font: 850 7px/1 Inter, Arial, sans-serif; letter-spacing: .08em; }
.hg-depth-tunnel-arrow,
.hg-depth-tunnel-dots button,
.hg-depth-tunnel-mode {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}
.hg-depth-tunnel-arrow { font-size: 17px; }
.hg-depth-tunnel-arrow:disabled { opacity: .28; cursor: default; }
.hg-depth-tunnel-arrow:not(:disabled):hover,
.hg-depth-tunnel-dots button:hover,
.hg-depth-tunnel-mode:hover { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .13); }
.hg-depth-tunnel-arrow:focus-visible,
.hg-depth-tunnel-dots button:focus-visible,
.hg-depth-tunnel-mode:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hg-depth-tunnel-dots { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hg-depth-tunnel-dots button { min-width: 0; padding: 0; color: rgba(255, 255, 255, .48); font: 900 7px/1 Inter, Arial, sans-serif; }
.hg-depth-tunnel-dots button[aria-current="step"] { border-color: var(--hg-tunnel-red); color: #fff; background: var(--hg-tunnel-red); box-shadow: 0 9px 24px rgba(226, 0, 26, .26); }
.hg-depth-tunnel-progress { height: 1px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.hg-depth-tunnel-progress i { display: block; width: var(--hg-tunnel-progress, 20%); height: 100%; background: linear-gradient(90deg, var(--hg-tunnel-water), #fff, var(--hg-tunnel-red)); box-shadow: 0 0 12px rgba(83, 213, 223, .55); }
.hg-depth-tunnel-mode { width: auto; padding: 0 13px; font: 850 7px/1 Inter, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

body.hg-portal-game-focus .hg-depth-tunnel-hud { opacity: 0; visibility: hidden; pointer-events: none; }
body.hg-portal-game-focus .hg-depth-tunnel-station--home { transform: none !important; }
body.hg-portal-game-focus .hg-depth-tunnel-stage,
body.hg-portal-game-focus .hg-depth-tunnel-scene,
body.hg-portal-game-focus .hg-depth-tunnel-station--home { overflow: visible; }

/* V15 feed controller keeps one selected card and one trustworthy counter.
   The controls are raised above every perspective card so clicks cannot fall
   through to a neighboring slide. */
.hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-controls { z-index: 40; pointer-events: auto; }
.hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-arrow { position: relative; z-index: 42; min-width: 42px; min-height: 42px; pointer-events: auto; touch-action: manipulation; }
.hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-card[aria-hidden="true"] { pointer-events: none; }
.hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-card[data-depth-slot="0"] { pointer-events: auto; }
.hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-counter { min-width: 64px; font-variant-numeric: tabular-nums; }

/* Linear mode is the escape hatch: all genuine sections become normal flow,
   keyboard/tab order is literal DOM order and no camera animation is required. */
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-stage,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  perspective: none;
  isolation: isolate;
}
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-runway,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-runway { display: none; }
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-scene,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-scene { position: relative; inset: auto; }
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-station,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-station {
  position: relative;
  inset: auto;
  min-height: calc(100svh - var(--hg-tunnel-header));
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-art,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-art,
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-geometry,
.hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-geometry {
  position: fixed;
  z-index: -1;
  inset: var(--hg-tunnel-header) 0 0;
  opacity: .45;
}
.hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-hud {
  position: sticky;
  right: auto;
  bottom: calc(var(--hg-tunnel-dock-clearance) + 10px);
  left: 50%;
  margin: 0 auto;
  transform: translateX(-50%);
}

@media (max-width: 1200px) and (min-width: 960px) {
  .hg-depth-tunnel-station--home .hg-portal-hero { grid-template-columns: minmax(310px, .78fr) minmax(540px, 1.22fr); }
  .hg-depth-tunnel-station--today #today { grid-template-columns: minmax(230px, .42fr) minmax(520px, 1.58fr); padding-inline: 34px; }
  .hg-depth-tunnel-station--events { grid-template-columns: minmax(520px, 1.2fr) minmax(300px, .8fr); }
  .hg-depth-tunnel-station--events .hg-portal-section-heading h2 { font-size: 44px; }
  .hg-depth-tunnel-hud { width: min(820px, calc(100vw - 24px)); }
}

@media (max-width: 959px) {
  :root {
    --hg-tunnel-header: var(--hgp-header, 58px);
    --hg-tunnel-art-home: url("/assets/visuals/hamburg-depth-tunnel-mobile-v15.webp");
    --hg-tunnel-art-today: url("/assets/visuals/hamburg-depth-tunnel-mobile-v15.webp");
    --hg-tunnel-art-events: url("/assets/visuals/hamburg-depth-tunnel-mobile-v15.webp");
    --hg-tunnel-art-world: url("/assets/visuals/hamburg-depth-tunnel-mobile-v15.webp");
    --hg-tunnel-art-project: url("/assets/visuals/hamburg-depth-tunnel-mobile-v15.webp");
  }

  .hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-station {
    scroll-margin-top: calc(var(--hg-tunnel-header) + 58px);
  }

  .hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-art,
  .hg-portal[data-hg-tunnel-mode="story"] .hg-depth-tunnel-geometry { opacity: .31; }
  .hg-depth-tunnel-geometry::before { width: 145vw; left: 58%; }
  .hg-depth-tunnel-geometry::after { width: 88vw; }
  .hg-depth-tunnel-place { right: -3%; font-size: clamp(66px, 24vw, 130px); }

  .hg-depth-tunnel-station--home { display: block; }
  .hg-depth-tunnel-station--home .hg-portal-hero { min-height: calc(100svh - var(--hg-tunnel-header)); }
  .hg-depth-tunnel-station--home .hg-portal-signal-strip { margin-top: 0; }

  .hg-depth-tunnel-station--today #today,
  .hg-depth-tunnel-station--events,
  .hg-depth-tunnel-station--world #world {
    display: block;
    min-height: calc(100svh - var(--hg-tunnel-header));
    padding: 88px 18px calc(var(--hg-tunnel-dock-clearance) + 36px);
  }
  .hg-depth-tunnel-station--today .hg-portal-section-heading,
  .hg-depth-tunnel-station--events .hg-portal-section-heading { margin-bottom: 28px; }
  .hg-depth-tunnel-station--today .hg-portal-section-heading h2,
  .hg-depth-tunnel-station--events .hg-portal-section-heading h2,
  .hg-depth-tunnel-station--world .hg-portal-section-heading h2 { font-size: clamp(42px, 12.5vw, 68px); }
  .hg-depth-tunnel-station--today .hg-feed-depth-stage { min-height: min(68svh, 590px); }
  .hg-depth-tunnel-station--today .hg-portal-feed-note { display: none; }

  .hg-depth-tunnel-station--events > .hg-portal-section { padding: 30px 0; }
  .hg-depth-tunnel-station--events .hg-portal-channels { grid-template-columns: 1fr; }
  .hg-depth-tunnel-station--events .hg-portal-channel { min-height: 160px; }
  .hg-depth-tunnel-station--events .hg-portal-culture { margin: 30px -18px 0; padding: 48px 18px calc(var(--hg-tunnel-dock-clearance) + 28px); border: 0; }
  .hg-depth-tunnel-station--world .hg-meshy-lab { min-height: 0; }

  .hg-depth-tunnel-station--project #project {
    width: calc(100% - 24px);
    min-height: calc(100svh - var(--hg-tunnel-header) - var(--hg-tunnel-dock-clearance) - 24px);
    margin: 12px;
    padding: 56px 22px calc(var(--hg-tunnel-dock-clearance) + 30px);
    border-radius: 24px;
  }

  .hg-depth-tunnel-hud,
  .hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-hud {
    position: sticky;
    z-index: 120;
    top: calc(var(--hg-tunnel-header) + 7px);
    right: auto;
    bottom: auto;
    left: 8px;
    width: calc(100% - 16px);
    min-height: 50px;
    grid-template-columns: minmax(88px, .8fr) 44px minmax(150px, 1.25fr) 44px;
    gap: 4px;
    margin: 7px 0 -57px;
    padding: 4px;
    border-radius: 16px;
    transform: none;
  }

  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-stage {
    height: calc(100dvh - var(--hg-tunnel-header));
    min-height: 0;
    perspective: 1050px;
    perspective-origin: 50% 48%;
    touch-action: pan-y;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-runway {
    display: block;
    height: 400dvh;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station {
    overscroll-behavior-y: contain;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today {
    overflow: hidden;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today #today {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 74px 12px calc(var(--hg-tunnel-dock-clearance) + 8px);
    overflow: hidden;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-section-heading {
    flex: 0 0 auto;
    margin: 0;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-section-heading h2 {
    max-width: 330px;
    font-size: clamp(28px, 9vw, 38px);
    line-height: .88;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-section-heading > p {
    display: none;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-feed,
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-feed-list,
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-feed-depth-stage {
    min-height: 0;
    height: 100%;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-station--today .hg-portal-feed {
    flex: 1 1 auto;
    overflow: hidden;
  }
  .hg-portal[data-hg-tunnel-mode="depth"] .hg-depth-tunnel-hud {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    margin: 0;
  }
  .hg-depth-tunnel-route { padding-inline: 7px; }
  .hg-depth-tunnel-route small { display: none; }
  .hg-depth-tunnel-route strong { font-size: 10px; }
  .hg-depth-tunnel-dots button { min-height: 40px; }
  .hg-depth-tunnel-progress,
  .hg-depth-tunnel-mode { display: none; }
}

@media (max-width: 520px) {
  .hg-depth-tunnel-hud,
  .hg-portal[data-hg-tunnel-mode="linear"] .hg-depth-tunnel-hud {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .hg-depth-tunnel-route { display: none; }
  .hg-depth-tunnel-dots { gap: 3px; }
  .hg-depth-tunnel-dots button { font-size: 6.5px; }
  .hg-depth-tunnel-station--today #today,
  .hg-depth-tunnel-station--events,
  .hg-depth-tunnel-station--world #world { padding-top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-depth-tunnel-art-layer,
  .hg-depth-tunnel-station,
  .hg-depth-tunnel-progress i,
  .hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-card,
  .hg-feed-depth-stage[data-hg-feed-v15="ready"] .hg-feed-depth-image {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .hg-depth-tunnel-geometry { display: none; }
}
