/* HG_PORTAL_SHELL_V13 — scrollable red/white portal around the playable hero. */
:root {
  --hgp-paper: #f3f0ea;
  --hgp-ink: #07090c;
  --hgp-red: #e3062f;
  --hgp-red-deep: #8f001d;
  --hgp-fog: #b9b8b3;
  --hgp-line: rgba(243, 240, 234, 0.18);
  --hgp-header: 66px;
}

html {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  overflow-x: clip !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  background: var(--hgp-ink);
}

body.hg-portal-page {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: visible !important;
  color: var(--hgp-paper);
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(255,255,255,.028) 50%, transparent 50.1%),
    var(--hgp-ink);
}

body.hg-portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(227, 6, 47, .20), transparent 31%),
    linear-gradient(115deg, transparent 0 64%, rgba(255,255,255,.025) 64.1% 64.3%, transparent 64.4%);
}

body.hg-portal-page *,
body.hg-portal-page *::before,
body.hg-portal-page *::after {
  box-sizing: border-box;
}

.hg-portal {
  width: 100%;
  min-width: 0;
  overflow: clip;
  isolation: isolate;
  color: var(--hgp-paper);
  background: var(--hgp-ink);
  font-family: Inter, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.hg-portal a { color: inherit; }
.hg-portal button { font: inherit; }

.hg-portal-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 49000;
  padding: 10px 14px;
  color: var(--hgp-ink);
  background: var(--hgp-paper);
  transform: translateY(-140%);
  transition: transform .18s ease;
}
.hg-portal-skip:focus { transform: none; }

.hg-portal-header {
  position: sticky;
  top: 0;
  z-index: 47000;
  width: 100%;
  height: var(--hgp-header);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(14px, 3vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.20);
  background: rgba(7, 9, 12, .88);
  backdrop-filter: blur(18px) saturate(125%);
}

.hg-portal-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  color: var(--hgp-paper);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hg-portal-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--hgp-paper);
  background: var(--hgp-red);
  box-shadow: 8px 8px 0 rgba(227,6,47,.18);
  transform: rotate(-2deg);
}
.hg-portal-mark::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 3px;
  bottom: 5px;
  background: currentColor;
  box-shadow: 0 -7px 0 -1px currentColor;
}
.hg-portal-mark svg { position: relative; z-index: 1; width: 22px; height: 22px; }
.hg-portal-mark--image::after { display: none; }
.hg-portal-mark--image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.hg-portal-brand > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.hg-portal-brand strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hg-portal-brand strong i { color: var(--hgp-red); font-style: normal; }
.hg-portal-brand small {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255,255,255,.55);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .18em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-portal-nav { display: flex; align-items: stretch; align-self: stretch; }
.hg-portal-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 13px;
  color: rgba(255,255,255,.70);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.hg-portal-nav a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 2px;
  background: var(--hgp-red);
  transform: scaleX(0);
  transition: transform .22s ease;
}
.hg-portal-nav a:hover,
.hg-portal-nav a:focus-visible { color: #fff; }
.hg-portal-nav a:hover::after,
.hg-portal-nav a:focus-visible::after { transform: scaleX(1); }

.hg-portal-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.hg-portal-language {
  height: 36px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.hg-portal-language button {
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.58);
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.hg-portal-language button.is-active { color: #fff; background: var(--hgp-red); }

.hg-portal-play,
.hg-portal-menu-button {
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  cursor: pointer;
}
.hg-portal-play { padding: 0 16px; border-color: var(--hgp-red); background: var(--hgp-red); }
.hg-portal-menu-button { width: 38px; display: none; place-items: center; }
.hg-portal-menu-button svg { width: 17px; }

.hg-portal-drawer[hidden] { display: none; }
.hg-portal-drawer {
  position: fixed;
  inset: var(--hgp-header) 0 0;
  z-index: 46990;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 34px 18px max(34px, env(safe-area-inset-bottom));
  background: rgba(7,9,12,.98);
  overflow-y: auto;
}
.hg-portal-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: clamp(22px, 7vw, 42px);
  font-weight: 950;
  letter-spacing: -.05em;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hg-portal-drawer a::after { content: "↘"; color: var(--hgp-red); font-size: .7em; }
.hg-portal-drawer-close {
  justify-self: end;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 16px;
  color: #fff;
  background: transparent;
}

.hg-portal-main { min-width: 0; }
.hg-portal-hero,
.hg-portal-section,
.hg-portal-footer { scroll-margin-top: calc(var(--hgp-header) + 10px); }

.hg-portal-hero {
  position: relative;
  min-height: calc(100svh - var(--hgp-header));
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(540px, 1.28fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(105deg, #07090c 0 36%, rgba(7,9,12,.90) 49%, rgba(7,9,12,.16) 78%),
    url("/assets/visuals/hamburg-digital-world-hero-v13.webp") 82% center / cover no-repeat;
}
.hg-portal-hero::before {
  content: "HH\A DIGITAL\A WORLD";
  white-space: pre;
  position: absolute;
  right: -1vw;
  bottom: -3vw;
  color: rgba(255,255,255,.055);
  font-size: clamp(80px, 16vw, 250px);
  font-weight: 1000;
  letter-spacing: -.09em;
  line-height: .69;
  text-align: right;
  pointer-events: none;
}

.hg-portal-hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 7vw, 112px) clamp(24px, 5vw, 82px);
}
.hg-portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hg-portal-eyebrow::before { content: ""; width: 28px; height: 3px; flex: 0 0 auto; background: var(--hgp-red); }
.hg-portal-hero h1 {
  max-width: 8ch;
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 5.9vw, 112px);
  font-weight: 1000;
  letter-spacing: -.095em;
  line-height: .76;
  text-transform: uppercase;
}
.hg-portal-hero h1 span { display: block; }
.hg-portal-hero h1 span:last-child { color: var(--hgp-red); }
.hg-portal-hero-lead {
  max-width: 550px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.hg-portal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.hg-portal-badges span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.76);
  background: rgba(7,9,12,.48);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.3;
}
.hg-portal-badges span:first-child { border-color: var(--hgp-red); color: #fff; background: var(--hgp-red); }
.hg-portal-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hg-portal-hero-actions button,
.hg-portal-hero-actions a,
.hg-portal-command {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 0 20px;
  color: #fff;
  background: rgba(7,9,12,.66);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}
.hg-portal-hero-actions button:first-child,
.hg-portal-command--red { border-color: var(--hgp-red); background: var(--hgp-red); }
.hg-portal-hero-actions svg { width: 17px; }
.hg-portal-honest-note {
  max-width: 550px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  margin-top: 32px;
  color: rgba(255,255,255,.66);
}
.hg-portal-honest-note i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--hgp-red); box-shadow: 0 0 0 7px rgba(227,6,47,.13); }
.hg-portal-honest-note b { display: block; margin-bottom: 5px; color: #fff; font-size: 9px; letter-spacing: .08em; }
.hg-portal-honest-note p { margin: 0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }

.hg-portal-game-column {
  position: relative;
  z-index: 5;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 64px) clamp(18px, 3vw, 46px) clamp(28px, 4vw, 64px) 0;
}
.hg-portal-game-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  height: min(76svh, 820px);
  min-height: 570px;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  background: #07090c;
  box-shadow: 0 36px 90px rgba(0,0,0,.56), -9px 9px 0 rgba(227,6,47,.80);
}
.hg-portal-game-bar {
  position: relative;
  z-index: 46010;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 9px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: rgba(7,9,12,.96);
}
.hg-portal-game-home {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.hg-portal-game-home i { width: 8px; height: 8px; background: var(--hgp-red); transform: rotate(45deg); }
.hg-portal-game-home strong { overflow: hidden; font-size: 10px; font-weight: 950; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.hg-portal-game-meta { min-width: 0; display: flex; flex-direction: column; }
.hg-portal-game-meta small,
.hg-portal-game-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-portal-game-meta small { color: rgba(255,255,255,.54); font-size: 6px; font-weight: 850; letter-spacing: .10em; }
.hg-portal-game-meta span { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 8px; }
.hg-portal-game-expand {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 0 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.hg-portal-game-expand svg { width: 13px; }
.hg-portal-game-language-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 30px !important;
  gap: 2px !important;
  padding: 2px !important;
  border-color: rgba(255,255,255,.16) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.hg-portal-game-language-slot button {
  min-width: 26px;
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: rgba(255,255,255,.48);
  background: transparent;
  font-size: 7px;
  font-weight: 900;
}
.hg-portal-game-language-slot button[aria-pressed="true"] { color: #fff; background: var(--hgp-red); }
body.hg-portal-page > #hgLocaleToggle { display: none !important; }
.hg-portal-game-canvas { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0a0d12; }
.hg-portal-game-canvas > #app {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #0a0d12;
}
.hg-portal-game-canvas > #app > .game-shell { width: 100% !important; height: 100% !important; min-height: 0 !important; }
.hg-portal-game-canvas .onboarding { overflow-x: hidden !important; }
.hg-portal-game-canvas .entry-character-grid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hg-portal-game-canvas .entry-character-grid::-webkit-scrollbar { display: none; }
.hg-portal-game-canvas .onboarding h1 {
  max-width: 100% !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: .93 !important;
  letter-spacing: -.035em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: nowrap;
}

body.hg-portal-game-focus { overflow: hidden !important; }
body.hg-portal-game-focus .hg-portal-game-frame {
  position: fixed;
  inset: var(--hgp-header) 0 0;
  z-index: 46500;
  width: 100%;
  height: calc(100dvh - var(--hgp-header));
  min-height: 0;
  border: 0;
  box-shadow: none;
}
body.hg-portal-game-focus .hg-portal-game-column { z-index: 46500; }

.hg-portal-signal-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: var(--hgp-paper);
  color: var(--hgp-ink);
}
.hg-portal-signal {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 8px 13px;
  padding: 20px clamp(20px, 4vw, 62px);
  border-right: 1px solid rgba(7,9,12,.16);
}
.hg-portal-signal:last-child { border-right: 0; }
.hg-portal-signal i { grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 3px; background: var(--hgp-red); }
.hg-portal-signal b { min-width: 0; font-size: 9px; font-weight: 950; letter-spacing: .12em; overflow-wrap: anywhere; }
.hg-portal-signal span { min-width: 0; color: rgba(7,9,12,.64); font-size: 10px; overflow-wrap: anywhere; }

.hg-portal-section {
  position: relative;
  min-width: 0;
  padding: clamp(70px, 10vw, 154px) clamp(22px, 6vw, 96px);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hg-portal-section-heading { min-width: 0; max-width: 1160px; margin: 0 auto 44px; }
.hg-portal-section-heading h2 {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 1000;
  letter-spacing: -.075em;
  line-height: .89;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hg-portal-section-heading > p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.66);
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hg-portal-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[data-portal-reveal] { opacity: .38; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
[data-portal-reveal].is-visible { opacity: 1; transform: none; }

.hg-portal-feed {
  position: relative;
  max-width: 1160px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  gap: 1px;
  margin: auto;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.18);
}
.hg-portal-feed-empty,
.hg-portal-feed-note { min-width: 0; background: #0b0e13; }
.hg-portal-feed-empty { min-height: 290px; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 68px); }
.hg-portal-feed-status { display: flex; align-items: center; gap: 9px; color: var(--hgp-red); font-size: 8px; font-weight: 950; letter-spacing: .10em; line-height: 1.4; }
.hg-portal-feed-status::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; }
.hg-portal-feed-empty h3 { max-width: 650px; margin: 20px 0 10px; color: #fff; font-size: clamp(24px, 3.2vw, 46px); font-weight: 950; letter-spacing: -.055em; line-height: .95; overflow-wrap: anywhere; }
.hg-portal-feed-empty p { max-width: 570px; margin: 0; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.hg-portal-feed-note { display: flex; flex-direction: column; justify-content: space-between; padding: 34px; }
.hg-portal-feed-note strong { color: #fff; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.hg-portal-feed-note a { align-self: flex-start; margin-top: 30px; color: #fff; font-size: 8px; font-weight: 950; letter-spacing: .09em; text-underline-offset: 5px; }
.hg-portal-feed-list { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,.16); }
.hg-portal-feed-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(220px, .58fr);
  gap: 0;
  background: #0b0e13;
}
.hg-portal-feed-card > img { width: 100%; height: 100%; min-height: 240px; display: block; object-fit: cover; }
.hg-portal-feed-card-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.hg-portal-feed-card-copy small { color: var(--hgp-red); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.hg-portal-feed-card-copy h3 { margin: 12px 0 8px; color: #fff; font-size: clamp(23px,3vw,42px); line-height: 1; overflow-wrap: anywhere; }
.hg-portal-feed-card-copy p { margin: 0 0 9px; color: rgba(255,255,255,.64); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.hg-portal-feed-card-copy a { align-self: flex-start; margin-top: 16px; color: #fff; font-size: 8px; font-weight: 900; text-underline-offset: 5px; overflow-wrap: anywhere; }

.hg-portal-channels {
  max-width: 1160px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: auto;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
}
.hg-portal-channel {
  position: relative;
  min-width: 0;
  min-height: 260px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: clamp(24px, 4vw, 54px);
  overflow: hidden;
  background: #0b0e13;
}
.hg-portal-channel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background: linear-gradient(135deg, transparent 42%, var(--hgp-red) 42.2% 42.8%, transparent 43%);
  transform: scale(1.4);
  transition: opacity .25s ease, transform .6s ease;
}
.hg-portal-channel:hover::before { opacity: .42; transform: scale(1); }
.hg-portal-channel > * { position: relative; z-index: 1; min-width: 0; }
.hg-portal-channel > span { align-self: start; color: var(--hgp-red); font-size: 11px; font-weight: 900; }
.hg-portal-channel h3 { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 42px); font-weight: 950; letter-spacing: -.055em; line-height: .95; overflow-wrap: anywhere; }
.hg-portal-channel p { max-width: 410px; margin: 13px 0 0; color: rgba(255,255,255,.60); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.hg-portal-channel > i { color: var(--hgp-red); font-size: 25px; font-style: normal; }

.hg-portal-culture { background: var(--hgp-paper); color: var(--hgp-ink); }
.hg-portal-culture .hg-portal-eyebrow,
.hg-portal-culture .hg-portal-section-heading h2 { color: var(--hgp-ink); }
.hg-portal-culture .hg-portal-section-heading > p { color: rgba(7,9,12,.68); }
.hg-portal-rules { max-width: 1160px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin: auto; background: rgba(7,9,12,.22); border: 1px solid rgba(7,9,12,.22); }
.hg-portal-rule { min-width: 0; min-height: 210px; padding: 34px; background: var(--hgp-paper); }
.hg-portal-rule b { display: block; color: var(--hgp-red); font-size: clamp(25px, 3vw, 42px); font-weight: 1000; letter-spacing: -.05em; }
.hg-portal-rule p { margin: 50px 0 0; color: rgba(7,9,12,.67); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }

.hg-portal-world {
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(7,9,12,.98) 0 38%, rgba(7,9,12,.76) 64%, rgba(7,9,12,.22)),
    url("/assets/visuals/sternschanze-world.webp") center / cover no-repeat;
}
.hg-portal-world-grid { max-width: 1160px; min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: auto; }
.hg-portal-world-card {
  min-width: 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(7,9,12,.72);
  backdrop-filter: blur(10px);
}
.hg-portal-world-card small { color: var(--hgp-red); font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.hg-portal-world-card strong { margin-top: 10px; color: #fff; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.hg-portal-world .hg-portal-command { margin-top: 26px; }

.hg-portal-project { overflow: hidden; background: var(--hgp-red); }
.hg-portal-project::after {
  content: "HG";
  position: absolute;
  right: -3vw;
  bottom: -8vw;
  color: rgba(255,255,255,.10);
  font-size: clamp(190px, 36vw, 580px);
  font-weight: 1000;
  letter-spacing: -.12em;
  line-height: .7;
  pointer-events: none;
}
.hg-portal-project .hg-portal-section-heading { position: relative; z-index: 1; margin-bottom: 0; }
.hg-portal-project .hg-portal-eyebrow::before { background: #fff; }
.hg-portal-project .hg-portal-section-heading > p { color: rgba(255,255,255,.78); }
.hg-portal-contact-card {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 45px auto 0;
  padding: clamp(24px, 4vw, 48px);
  color: #fff;
  background: var(--hgp-ink);
}
.hg-portal-contact-card small { display: block; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.hg-portal-contact-card strong { display: block; margin-top: 8px; font-size: clamp(24px,4vw,50px); font-weight: 950; letter-spacing: -.06em; overflow-wrap: anywhere; }
.hg-portal-contact-card a { min-width: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; border: 1px solid rgba(255,255,255,.25); font-size: 9px; font-weight: 950; letter-spacing: .07em; text-decoration: none; overflow-wrap: anywhere; }

.hg-portal-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: start;
  gap: 30px;
  padding: 50px clamp(22px, 6vw, 96px) max(50px, env(safe-area-inset-bottom));
  color: rgba(255,255,255,.58);
  background: #050609;
}
.hg-portal-footer > div { min-width: 0; }
.hg-portal-footer-brand { display: flex; align-items: center; gap: 12px; }
.hg-portal-footer-brand strong { color: #fff; font-size: 16px; letter-spacing: -.04em; }
.hg-portal-footer-brand small { display: block; margin-top: 4px; font-size: 7px; letter-spacing: .09em; }
.hg-portal-footer-signature { text-align: center; font-size: 9px; line-height: 1.7; }
.hg-portal-footer-signature a { color: #fff; font-weight: 900; text-underline-offset: 4px; }
.hg-portal-footer-legal { justify-self: end; max-width: 420px; text-align: right; font-size: 8px; line-height: 1.65; overflow-wrap: anywhere; }
.hg-portal-footer-legal b { display: block; color: #fff; }
.hg-portal-footer-legal nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; margin-top: 12px; }
.hg-portal-footer-legal nav a { color: rgba(255,255,255,.72); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.hg-portal-footer-legal nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1120px) {
  .hg-portal-header { grid-template-columns: minmax(180px,1fr) auto; }
  .hg-portal-nav { display: none; }
  .hg-portal-menu-button { display: grid; }
  .hg-portal-hero { grid-template-columns: minmax(280px,.72fr) minmax(440px,1.28fr); }
  .hg-portal-hero-copy { padding-right: 20px; }
  .hg-portal-game-column { padding-left: 12px; }
}

@media (max-width: 820px) {
  :root { --hgp-header: 58px; }
  .hg-portal-header { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding-inline: 11px; }
  .hg-portal-brand small { display: none; }
  .hg-portal-play { display: none; }
  .hg-portal-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .hg-portal-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    background-image:
      linear-gradient(105deg, #07090c 0 36%, rgba(7,9,12,.90) 49%, rgba(7,9,12,.16) 78%),
      url("/assets/visuals/hamburg-digital-world-hero-mobile-v13.webp");
    background-position: 70% top;
  }
  .hg-portal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,.08), rgba(7,9,12,.94) 48%, #07090c 70%); pointer-events: none; }
  .hg-portal-hero-copy { min-height: min(720px, calc(100svh - var(--hgp-header))); justify-content: flex-end; padding: 180px 20px 46px; }
  .hg-portal-hero h1 { font-size: clamp(61px, 19vw, 100px); }
  .hg-portal-hero-lead { margin-top: 22px; font-size: 13px; }
  .hg-portal-game-column { padding: 0 11px 54px; }
  .hg-portal-game-frame { height: min(70svh, 700px); min-height: 500px; box-shadow: 0 30px 70px rgba(0,0,0,.55), -5px 6px 0 var(--hgp-red); }
  .hg-portal-game-expand span { display: none; }
  .hg-portal-signal-strip { grid-template-columns: 1fr; }
  .hg-portal-signal { min-height: 74px; border-right: 0; border-bottom: 1px solid rgba(7,9,12,.16); }
  .hg-portal-signal:last-child { border-bottom: 0; }
  .hg-portal-feed { grid-template-columns: 1fr; }
  .hg-portal-feed-note { min-height: 170px; }
  .hg-portal-rules,
  .hg-portal-world-grid { grid-template-columns: 1fr; }
  .hg-portal-rule { min-height: 160px; }
  .hg-portal-rule p { margin-top: 24px; }
  .hg-portal-world-card { min-height: 160px; }
  .hg-portal-contact-card { grid-template-columns: 1fr; }
  .hg-portal-contact-card a { justify-self: stretch; }
  .hg-portal-footer { grid-template-columns: 1fr; }
  .hg-portal-footer-signature { text-align: left; }
  .hg-portal-footer-legal { justify-self: start; text-align: left; }
  .hg-portal-footer-legal nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hg-portal-brand strong { font-size: 13px; }
  .hg-portal-tools { gap: 5px; }
  .hg-portal-language { height: 34px; }
  .hg-portal-language button { min-width: 29px; }
  .hg-portal-menu-button { width: 34px; height: 34px; }
  .hg-portal-hero-copy { min-height: calc(100svh - var(--hgp-header)); padding-top: 140px; }
  .hg-portal-hero h1 { font-size: clamp(54px, 17.4vw, 74px); }
  .hg-portal-hero-actions { display: grid; grid-template-columns: 1fr; }
  .hg-portal-hero-actions button,
  .hg-portal-hero-actions a { width: 100%; }
  .hg-portal-game-frame { height: 66svh; min-height: 470px; }
  .hg-portal-game-meta { display: none; }
  .hg-portal-game-bar { grid-template-columns: minmax(0,1fr) auto auto; }
  .hg-portal-game-canvas .onboarding h1 {
    font-size: clamp(25px, 8.1vw, 34px) !important;
    letter-spacing: -.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap;
  }
  .hg-portal-section { padding-inline: 18px; }
  .hg-portal-section-heading h2 { font-size: clamp(39px, 13vw, 65px); }
  .hg-portal-channels { grid-template-columns: 1fr; }
  .hg-portal-channel { min-height: 220px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; }
  .hg-portal-feed-card { grid-template-columns: 1fr; }
  .hg-portal-feed-card > img { min-height: 190px; max-height: 260px; }
  .hg-portal-contact-card { padding: 20px; }
}

@media (max-width: 380px) {
  .hg-portal-brand > span:last-child { max-width: 120px; }
  .hg-portal-language button { min-width: 27px; }
  .hg-portal-hero-copy { padding-inline: 15px; }
  .hg-portal-badges { display: grid; grid-template-columns: 1fr; }
  .hg-portal-game-column { padding-inline: 7px; }
  .hg-portal-game-home strong { max-width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-portal-reveal] { opacity: 1; transform: none; transition: none; }
  .hg-portal-channel::before { transition: none; }
}
