/* ═══════════════════════════════════════════════════════════════════════
   Bithereum007 Player HQ — game home screen (pages/dashboard.html)
   Scoped to body[data-game-home]. Presentation only.
   Layers: #gh-world (environment) → .gh-hud (floating HUD) → overlays.
   ═══════════════════════════════════════════════════════════════════════ */

body[data-game-home] {
  --gh-ink: #07061a;
  --gh-ink-2: #0e0c2c;
  --gh-cyan: #4ed8ff;
  --gh-cyan-2: #9ff0ff;
  --gh-gold: #ffd23f;
  --gh-gold-2: #ff9f1c;
  --gh-magenta: #ff5fd2;
  --gh-violet: #8f6bff;
  --gh-green: #4dffa6;
  --gh-red: #ff4d6d;
  --gh-text: #eef3ff;
  --gh-muted: #a9b4d8;
  --gh-dim: #6f7aa6;
  --gh-glass: linear-gradient(160deg, rgba(24, 20, 70, .62), rgba(8, 8, 30, .48));
  --gh-line: rgba(127, 227, 255, .32);
  --gh-cut: 14px;
  --gh-font-hud: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --gh-font-label: 'Rajdhani', 'Nunito', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  background: var(--gh-ink);
  color: var(--gh-text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body[data-game-home]::before { display: none; }
body[data-game-home] a { color: inherit; }
body[data-game-home] :focus-visible { outline: 2px solid var(--gh-cyan-2); outline-offset: 3px; }
body[data-game-home][data-overlay] { overflow: hidden; }
body[data-game-home] [hidden] { display: none !important; }

/* ── GAME WORLD ─────────────────────────────────────────────────────── */
.gh-world {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* Static cinematic fallback: visible before JS, without JS, and under
     reduced motion while the layers settle. */
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255, 95, 210, .35), transparent 60%),
    radial-gradient(80% 50% at 50% 78%, rgba(255, 159, 28, .28), transparent 70%),
    linear-gradient(180deg, #05041a 0%, #120b3d 38%, #3b1660 66%, #7a2a6b 82%, #1a0b2e 100%);
}
.gh-world-inner { position: absolute; inset: 0; }
/* Environment layers (js/game-home/world/*.js): each is a static canvas +
   an optional animated canvas, moved by the camera in game-world.js. */
.gh-layer { position: absolute; will-change: transform; transform: translate3d(0, 0, 0); }
.gh-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gh-layer { opacity: 0; transition: opacity 1.1s ease; }
.gh-layer[data-built] { opacity: 1; }
.gh-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 46%, transparent 58%, rgba(4, 3, 16, .72) 100%),
    /* soft shading behind the HUD columns keeps text readable without boxes */
    linear-gradient(90deg, rgba(5, 4, 20, .5), rgba(5, 4, 20, .12) 24%, transparent 32%, transparent 68%, rgba(5, 4, 20, .12) 76%, rgba(5, 4, 20, .5)),
    linear-gradient(180deg, rgba(4, 3, 16, .35), transparent 14%);
}
.gh-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.gh-world[data-video="on"] .gh-video { opacity: 1; }
.gh-world[data-video="on"] .gh-layer:not([data-layer="foreground"]) { opacity: 0; transition: opacity 1.6s ease; }

/* ── SHARED HUD PRIMITIVES ─────────────────────────────────────────── */
.gh-panel {
  position: relative; padding: 16px 18px 18px;
  background: var(--gh-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  clip-path: polygon(var(--gh-cut) 0, 100% 0, 100% calc(100% - var(--gh-cut)), calc(100% - var(--gh-cut)) 100%, 0 100%, 0 var(--gh-cut));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  animation: gh-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.gh-panel::before { /* gradient edge */
  content: ''; position: absolute; inset: 0; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(127, 227, 255, .7), rgba(127, 227, 255, .08) 35%, rgba(255, 95, 210, .08) 70%, rgba(255, 95, 210, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.gh-panel::after { /* chamfer accents */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, var(--gh-cyan-2) 0 1.5px, transparent 1.5px) top left / var(--gh-cut) var(--gh-cut) no-repeat,
    linear-gradient(315deg, var(--gh-magenta) 0 1.5px, transparent 1.5px) bottom right / var(--gh-cut) var(--gh-cut) no-repeat;
  opacity: .9;
}
.gh-panel.gh-flash { animation: gh-flash 1.1s ease; }
@keyframes gh-flash { 30% { box-shadow: 0 0 0 2px var(--gh-cyan), 0 0 50px rgba(78, 216, 255, .5); } }
@keyframes gh-rise { from { opacity: 0; transform: translateY(14px); } }
.gh-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gh-panel-head h2 {
  font-family: var(--gh-font-hud); font-weight: 700; font-size: .78rem; letter-spacing: .22em; color: var(--gh-cyan-2);
  text-shadow: 0 0 12px rgba(78, 216, 255, .45); margin: 0;
}
.gh-panel-tag {
  font-family: var(--gh-font-label); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gh-gold); padding: 2px 10px; border: 1px solid rgba(255, 210, 63, .35);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); background: rgba(255, 210, 63, .08);
}
.gh-live { color: var(--gh-green); border-color: rgba(77, 255, 166, .35); background: rgba(77, 255, 166, .07); display: inline-flex; align-items: center; gap: 6px; }
.gh-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gh-green); box-shadow: 0 0 10px var(--gh-green); animation: gh-dot 1.8s ease-in-out infinite; display: inline-block; }
@keyframes gh-dot { 50% { opacity: .35; } }

.gh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  font-family: var(--gh-font-hud); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-decoration: none; cursor: pointer;
  border: 0; color: var(--gh-ink);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: filter .2s, transform .2s;
}
.gh-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.gh-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.gh-btn-gold { background: linear-gradient(135deg, #fff1a8, var(--gh-gold) 40%, var(--gh-gold-2)); }
.gh-btn-cyan { background: linear-gradient(135deg, #d8fbff, var(--gh-cyan) 45%, #2a8cff); }
.gh-btn-ghost { background: rgba(127, 227, 255, .1); color: var(--gh-text); box-shadow: inset 0 0 0 1px rgba(127, 227, 255, .35); }

.gh-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
  font-size: 1.05rem; line-height: 1; color: var(--gh-text); text-decoration: none; cursor: pointer;
  background: rgba(14, 12, 44, .66); border: 1px solid var(--gh-line);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, color .2s, transform .2s;
}
.gh-icon-btn:hover { background: rgba(78, 216, 255, .22); transform: translateY(-1px); }
.gh-badge {
  position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  font: 800 .6rem/16px var(--gh-font-label); color: #fff; background: var(--gh-red); box-shadow: 0 0 10px var(--gh-red);
}

/* ── LAYOUT ─────────────────────────────────────────────────────────── */
.gh-hud {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr) minmax(300px, 370px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "plate  center res"
    "left   center right";
  gap: 18px 28px;
  padding: 20px clamp(16px, 2.2vw, 34px) 112px;
  max-width: 1720px; margin: 0 auto;
  overflow-x: clip; /* portal glow never causes sideways scroll */
}
@supports not (overflow: clip) { .gh-hud { overflow-x: hidden; } } /* Safari < 16, older Android WebViews */
.gh-shell { display: contents; }
.gh-shell.hidden { display: none !important; }
.gh-plate { grid-area: plate; }
.gh-resources { grid-area: res; }
.gh-center { grid-area: center; }
.gh-left { grid-area: left; }
.gh-right { grid-area: right; }
.gh-left, .gh-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gh-right { justify-content: flex-start; }

/* ── TOP BAR (brand + existing world menu) ─────────────────────────── */
.gh-topbar {
  position: absolute; z-index: 30; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
}
body[data-overlay] .gh-topbar { visibility: hidden; }
.gh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.gh-brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(135deg, rgba(255, 210, 63, .35), rgba(78, 216, 255, .25));
}
.gh-brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.gh-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.gh-brand-text strong { font-family: var(--gh-font-hud); font-weight: 900; font-size: .92rem; letter-spacing: .18em; color: var(--gh-text); }
.gh-brand-text strong b { color: var(--gh-gold); }
.gh-brand-text span { font-family: var(--gh-font-label); font-weight: 700; font-size: .62rem; letter-spacing: .32em; color: var(--gh-muted); text-transform: uppercase; }
body[data-game-home] .gh-topbar .nav-menu { width: auto; order: 0; }
body[data-game-home] .nav-trigger {
  min-width: 0; width: auto; border-radius: 0; padding: 8px 16px 8px 10px; gap: 10px;
  background: rgba(14, 12, 44, .62); border: 1px solid var(--gh-line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--gh-font-label); color: var(--gh-text);
}
body[data-game-home] .nav-trigger:hover,
body[data-game-home] .nav-menu.open .nav-trigger { border-color: var(--gh-cyan); background: rgba(78, 216, 255, .16); box-shadow: none; transform: none; }
body[data-game-home] .nav-trigger-icon { background: linear-gradient(135deg, var(--gh-cyan), var(--gh-violet)); color: var(--gh-ink); border-radius: 4px; box-shadow: none; }
body[data-game-home] .nav-trigger-chevron { color: var(--gh-cyan); }
body[data-game-home] .nav-dropdown { left: 50%; transform: translate(-50%, -8px); border-radius: 4px; background: linear-gradient(180deg, rgba(16, 13, 52, .97), rgba(7, 6, 26, .97)); }
body[data-game-home] .nav-menu.open .nav-dropdown { transform: translate(-50%, 0); border-color: var(--gh-line); }
.gh-topbar-actions .btn { min-height: 40px; }

/* ── PLAYER HUD (holographic plate) ────────────────────────────────── */
.gh-plate {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 18px 12px 10px;
  background: linear-gradient(90deg, rgba(20, 18, 64, .72), rgba(20, 18, 64, .35) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  border-left: 3px solid var(--gh-cyan);
  animation: gh-slide-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
.gh-plate::after {
  content: ''; position: absolute; left: 0; right: 22px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--gh-cyan), rgba(255, 95, 210, .6), transparent);
}
@keyframes gh-slide-in { from { opacity: 0; transform: translateX(-24px); } }
.gh-portrait { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.gh-portrait-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; }
.gh-portrait-ring polygon { fill: none; stroke: rgba(127, 227, 255, .35); stroke-width: 2; }
.gh-portrait-ring .gh-portrait-ring-run {
  stroke: var(--gh-cyan-2); stroke-width: 3; stroke-dasharray: 60 280; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--gh-cyan));
  animation: gh-run 4.5s linear infinite;
}
@keyframes gh-run { to { stroke-dashoffset: -340; } }
.gh-portrait-face {
  position: absolute; inset: 4px; display: grid; place-items: center;
  font-size: 3.1rem; line-height: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(160deg, var(--avatar-c1, #5b7a9e), var(--avatar-c2, #2a2368));
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, .35);
  animation: gh-breathe 5s ease-in-out infinite;
}
@keyframes gh-breathe { 50% { filter: brightness(1.12) drop-shadow(0 0 12px var(--avatar-glow, rgba(78, 216, 255, .5))); } }
.gh-level-badge {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 10px;
  background: linear-gradient(135deg, var(--gh-gold), var(--gh-gold-2)); color: var(--gh-ink);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  font-family: var(--gh-font-hud); white-space: nowrap;
}
.gh-level-badge small { font-size: .52rem; font-weight: 700; letter-spacing: .1em; }
.gh-level-badge b { font-size: .86rem; font-weight: 900; }
.gh-plate-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gh-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--gh-font-label); font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gh-cyan-2);
}
.gh-name {
  margin: 0; font-family: var(--gh-font-hud); font-weight: 900; font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; color: #fff;
  text-shadow: 0 0 18px rgba(127, 227, 255, .45);
  overflow-wrap: anywhere;
}
.gh-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  font-family: var(--gh-font-label); font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: var(--gh-text);
  background: rgba(127, 227, 255, .1); border: 1px solid rgba(127, 227, 255, .22);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.gh-chip-dim { color: var(--gh-muted); }
.gh-meta #hero-region, .gh-meta #hero-village {
  padding: 0; background: none; border: 0; clip-path: none;
  font-size: .92rem; letter-spacing: .05em; color: #fff;
}
.gh-meta #hero-village::before { content: '•'; margin-right: 6px; color: var(--gh-cyan); }
.gh-meta-break { flex-basis: 100%; height: 0; }
.gh-chip-xp { color: var(--gh-gold); background: rgba(255, 210, 63, .08); border-color: rgba(255, 210, 63, .3); }
.gh-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gh-plate .role-pills { margin: 0; gap: 5px; }
.gh-plate .role-pill {
  padding: 1px 9px; border-radius: 0; border: 0;
  font-family: var(--gh-font-hud); font-size: .56rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gh-ink); background: var(--gh-cyan);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.gh-plate .role-pill[data-role="admin"] { background: linear-gradient(135deg, #fff1a8, var(--gh-gold)); }
.gh-plate .role-pill[data-role="moderator"] { background: linear-gradient(135deg, #ffd0f2, var(--gh-magenta)); }
.gh-plate .role-pill[data-role="operator"] { background: linear-gradient(135deg, #d8ccff, var(--gh-violet)); }
.gh-role-count { font-family: var(--gh-font-label); font-weight: 700; font-size: .72rem; letter-spacing: .1em; color: var(--gh-dim); text-transform: uppercase; }
.gh-role-count b { color: var(--gh-muted); }
.gh-command-btn {
  font-family: var(--gh-font-label); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 12px; cursor: pointer; color: var(--gh-gold); background: rgba(255, 210, 63, .1);
  border: 1px solid rgba(255, 210, 63, .45); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.gh-command-btn:hover { background: rgba(255, 210, 63, .22); }

/* ── RESOURCE HUD ──────────────────────────────────────────────────── */
.gh-resources {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; align-self: start;
  animation: gh-slide-in-r .8s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes gh-slide-in-r { from { opacity: 0; transform: translateX(24px); } }
.gh-res {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 6px;
  background: rgba(14, 12, 44, .7); border: 1px solid var(--gh-line);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gh-res-icon {
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem;
  background: linear-gradient(135deg, rgba(78, 216, 255, .4), rgba(143, 107, 255, .35));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.gh-res-val { font-family: var(--gh-font-hud); font-weight: 900; font-size: 1.02rem; letter-spacing: .04em; color: #fff; min-width: 2ch; }
.gh-res-label { font-family: var(--gh-font-label); font-weight: 700; font-size: .66rem; letter-spacing: .2em; color: var(--gh-cyan-2); }
.gh-res.gh-bump { animation: gh-bump .7s ease; }
@keyframes gh-bump { 30% { transform: scale(1.08); box-shadow: 0 0 26px rgba(255, 210, 63, .6); } }
.gh-res-hearts { padding: 0 6px; }
.gh-res-hearts:empty::before { content: '❤️ …'; font-family: var(--gh-font-label); font-weight: 700; color: var(--gh-muted); padding: 0 8px; }
body[data-game-home] .gh-res-hearts .bv-hearts-pill {
  background: transparent !important; border: 0 !important; padding: 4px 8px !important;
  font-family: var(--gh-font-hud) !important; font-size: .82rem !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.gh-res-buttons { display: inline-flex; gap: 6px; }

/* ── GAME PORTAL (main action) ─────────────────────────────────────── */
.gh-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-width: 0; padding-top: 48px;
}
.gh-portal {
  --size: clamp(230px, 24vw, 340px);
  position: relative; width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; color: #fff; cursor: pointer;
  isolation: isolate; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  animation: gh-portal-in 1s cubic-bezier(.2, .8, .2, 1) both .15s;
}
@keyframes gh-portal-in { from { opacity: 0; transform: scale(.85); } }
.gh-portal:hover, .gh-portal:focus-visible { transform: scale(1.045); outline: none; }
.gh-portal-glow {
  position: absolute; inset: -30%; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(78, 216, 255, .38), rgba(143, 107, 255, .22) 38%, rgba(255, 95, 210, .1) 55%, transparent 70%);
  filter: blur(8px); transition: opacity .4s; opacity: .75;
  animation: gh-glow 4s ease-in-out infinite;
}
@keyframes gh-glow { 50% { transform: scale(1.06); opacity: .95; } }
.gh-portal:hover .gh-portal-glow, .gh-portal:focus-visible .gh-portal-glow { opacity: 1; filter: blur(4px) brightness(1.3); }
.gh-portal-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gh-portal-rings circle { fill: none; transform-origin: 100px 100px; }
.gh-portal-rings .r1 { stroke: var(--gh-cyan-2); stroke-width: 1.4; stroke-dasharray: 3 7 40 7; animation: gh-spin 30s linear infinite; filter: drop-shadow(0 0 4px var(--gh-cyan)); }
.gh-portal-rings .r2 { stroke: var(--gh-magenta); stroke-width: 2; stroke-dasharray: 90 30 10 30; opacity: .85; animation: gh-spin 18s linear infinite reverse; filter: drop-shadow(0 0 5px var(--gh-magenta)); }
.gh-portal-rings .r3 { stroke: var(--gh-gold); stroke-width: 1; stroke-dasharray: 1 5; opacity: .9; animation: gh-spin 60s linear infinite; }
.gh-portal-rings .ticks path { stroke: var(--gh-cyan-2); stroke-width: 2; }
.gh-portal:hover .gh-portal-rings .r1 { animation-duration: 9s; }
.gh-portal:hover .gh-portal-rings .r2 { animation-duration: 6s; }
@keyframes gh-spin { to { transform: rotate(360deg); } }
.gh-portal-core {
  position: absolute; inset: 15%; border-radius: 50%; z-index: -1; overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 6%, rgba(159, 240, 255, .7) 14%, rgba(78, 216, 255, .25) 34%, rgba(20, 12, 70, .9) 66%, #07061a 100%);
  box-shadow: inset 0 0 40px rgba(78, 216, 255, .6), 0 0 60px rgba(78, 216, 255, .35);
}
.gh-portal-core::before {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(127, 227, 255, .55) 12%, transparent 22%, rgba(255, 95, 210, .45) 38%, transparent 48%, rgba(143, 107, 255, .5) 64%, transparent 74%, rgba(127, 227, 255, .4) 88%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 40%, #000 62%, transparent 72%);
  mask: radial-gradient(circle, transparent 12%, #000 40%, #000 62%, transparent 72%);
  animation: gh-spin 9s linear infinite;
  mix-blend-mode: screen;
}
.gh-portal-core::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(7, 6, 26, .65) 72%);
}
.gh-portal:hover .gh-portal-core::before { animation-duration: 3.5s; }
.gh-portal-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gh-portal-sparks i {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px var(--gh-cyan);
  animation: gh-orbit 7s linear infinite;
}
.gh-portal-sparks i:nth-child(2n) { background: #ffe9a8; box-shadow: 0 0 8px 2px var(--gh-gold); animation-duration: 10s; }
.gh-portal-sparks i:nth-child(3n) { background: #ffd1f3; box-shadow: 0 0 8px 2px var(--gh-magenta); animation-duration: 13s; animation-direction: reverse; }
.gh-portal-sparks i:nth-child(1) { animation-delay: 0s; --r-num: .47; }
.gh-portal-sparks i:nth-child(2) { animation-delay: -1.3s; --r-num: .52; }
.gh-portal-sparks i:nth-child(3) { animation-delay: -2.6s; --r-num: .44; }
.gh-portal-sparks i:nth-child(4) { animation-delay: -3.9s; --r-num: .55; }
.gh-portal-sparks i:nth-child(5) { animation-delay: -5.2s; --r-num: .49; }
.gh-portal-sparks i:nth-child(6) { animation-delay: -6.5s; --r-num: .53; }
.gh-portal-sparks i:nth-child(7) { animation-delay: -7.8s; --r-num: .46; }
.gh-portal-sparks i:nth-child(8) { animation-delay: -9.1s; --r-num: .51; }
@keyframes gh-orbit {
  from { transform: rotate(0deg) translateX(calc(var(--size) * var(--r-num, .5))) scale(1); }
  50% { transform: rotate(180deg) translateX(calc(var(--size) * var(--r-num, .5))) scale(.5); }
  to { transform: rotate(360deg) translateX(calc(var(--size) * var(--r-num, .5))) scale(1); }
}
.gh-portal:hover .gh-portal-sparks i { animation-duration: 3s; }
/* Physical depth: holographic floor ring + contact shadow under the portal */
.gh-portal-floor {
  position: absolute; left: 50%; top: 100%; width: 130%; height: 34%; z-index: -3; pointer-events: none;
  transform: translate(-50%, -38%);
  background:
    radial-gradient(closest-side, rgba(4, 3, 16, .55), transparent 70%),
    radial-gradient(closest-side, transparent 62%, rgba(127, 227, 255, .55) 66%, transparent 72%),
    radial-gradient(closest-side, transparent 78%, rgba(255, 95, 210, .3) 81%, transparent 86%);
  filter: blur(.4px);
  animation: gh-floor 4s ease-in-out infinite;
}
@keyframes gh-floor { 50% { opacity: .65; transform: translate(-50%, -38%) scale(1.04); } }
.gh-portal:hover .gh-portal-floor, .gh-portal:focus-visible .gh-portal-floor { filter: brightness(1.6); }
.gh-portal-sparks i:nth-child(n+9) { opacity: 0; transition: opacity .4s; }
.gh-portal:hover .gh-portal-sparks i:nth-child(n+9), .gh-portal:focus-visible .gh-portal-sparks i:nth-child(n+9) { opacity: 1; }
.gh-portal-sparks i:nth-child(9) { animation-delay: -.6s; --r-num: .58; }
.gh-portal-sparks i:nth-child(10) { animation-delay: -3.1s; --r-num: .42; }
.gh-portal-sparks i:nth-child(11) { animation-delay: -5.7s; --r-num: .6; }
.gh-portal-sparks i:nth-child(12) { animation-delay: -8.4s; --r-num: .4; }
.gh-portal-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 18%; }
.gh-portal-kicker {
  font-family: var(--gh-font-label); font-weight: 700; font-size: .7rem; letter-spacing: .3em; color: var(--gh-cyan-2);
  text-shadow: 0 0 10px rgba(78, 216, 255, .9);
}
.gh-portal-title {
  font-family: var(--gh-font-hud); font-weight: 900; font-size: clamp(1.15rem, 1.9vw, 1.65rem); letter-spacing: .1em; line-height: 1.1;
  color: #fff; text-shadow: 0 0 22px rgba(127, 227, 255, .95), 0 2px 0 rgba(0, 0, 0, .45);
}
.gh-portal-sub {
  font-family: var(--gh-font-label); font-weight: 700; font-size: .82rem; letter-spacing: .08em; color: var(--gh-gold);
  text-shadow: 0 0 10px rgba(255, 210, 63, .6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gh-portal::after { /* launch shockwave */
  content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 2px solid var(--gh-cyan-2);
  opacity: 0; pointer-events: none;
}
.gh-portal.gh-launch::after { animation: gh-shock .8s ease-out; }
@keyframes gh-shock { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }

/* Onboarding quest callout */
.gh-callout {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 620px; padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 210, 63, .16), rgba(20, 18, 64, .6));
  border-left: 3px solid var(--gh-gold);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: gh-rise .7s ease both;
}
.gh-callout-icon { font-size: 1.9rem; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .6)); }
.gh-callout-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.gh-callout-kicker { font-family: var(--gh-font-hud); font-size: .6rem; letter-spacing: .3em; color: var(--gh-gold); }
.gh-callout-body strong { font-family: var(--gh-font-label); font-size: 1.1rem; letter-spacing: .04em; }
.gh-callout-body span:last-child { color: var(--gh-muted); font-size: .86rem; }
.gh-callout-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* World signals (civic widget) */
.gh-signals { width: min(620px, 100%); animation: gh-rise .7s ease both; }
.gh-signals-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
  font-family: var(--gh-font-hud); font-size: .66rem; letter-spacing: .24em; color: var(--gh-cyan-2);
}
.gh-signals-head a { font-family: var(--gh-font-label); letter-spacing: .08em; color: var(--gh-muted); text-decoration: none; font-size: .78rem; }
.gh-signals-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.gh-signals-rows > a {
  background: rgba(14, 12, 44, .66) !important; border: 0 !important; border-radius: 0 !important;
  border-left: 2px solid var(--gh-cyan) !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s;
}
.gh-signals-rows > a:hover { background: rgba(78, 216, 255, .16) !important; }

/* ── MISSION HUD ───────────────────────────────────────────────────── */
.gh-quest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gh-quest {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 8px;
  background: linear-gradient(90deg, rgba(127, 227, 255, .08), transparent 85%);
  border-left: 2px solid var(--gh-cyan);
  transition: background .25s, opacity .25s;
  animation: gh-rise .6s ease both;
}
.gh-quest[hidden] { display: none; }
.gh-quest:nth-child(2) { animation-delay: .08s; }
.gh-quest:nth-child(3) { animation-delay: .16s; }
.gh-quest:nth-child(4) { animation-delay: .24s; }
.gh-quest:hover { background: linear-gradient(90deg, rgba(127, 227, 255, .16), transparent 90%); }
.gh-quest-icon {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(160deg, rgba(78, 216, 255, .3), rgba(143, 107, 255, .25));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.gh-quest-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gh-quest-info strong { font-family: var(--gh-font-label); font-weight: 700; font-size: .95rem; line-height: 1.2; letter-spacing: .03em; color: #fff; }
.gh-quest-goal { color: var(--gh-muted); font-size: .76rem; line-height: 1.35; }
.gh-quest-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 3px; font-family: var(--gh-font-label); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gh-cyan-2); }
.gh-quest-reward { color: var(--gh-gold); padding: 0 6px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .3); }
.gh-quest-btn {
  min-height: 36px; padding: 0 14px; cursor: pointer; white-space: nowrap;
  font-family: var(--gh-font-hud); font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gh-ink); background: linear-gradient(135deg, #d8fbff, var(--gh-cyan));
  border: 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: filter .2s, transform .2s;
}
.gh-quest-btn:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.gh-quest-btn:disabled { cursor: default; }
/* ready + reward available → subtle pulse */
.gh-quest[data-state="ready"] .gh-quest-reward:not([hidden]) { animation: gh-reward 2.2s ease-in-out infinite; }
.gh-quest[data-state="ready"] .gh-quest-icon { animation: gh-icon-pulse 2.6s ease-in-out infinite; }
@keyframes gh-reward { 50% { box-shadow: 0 0 14px rgba(255, 210, 63, .55); background: rgba(255, 210, 63, .22); } }
@keyframes gh-icon-pulse { 50% { filter: drop-shadow(0 0 8px rgba(78, 216, 255, .9)) brightness(1.15); } }
/* completed → green check */
.gh-quest.done, .gh-quest[data-state="done"] { border-left-color: var(--gh-green); background: linear-gradient(90deg, rgba(77, 255, 166, .08), transparent 85%); }
.gh-quest.done .gh-quest-meta, .gh-quest[data-state="done"] .gh-quest-meta { color: var(--gh-green); }
.gh-quest.done .gh-quest-icon::after, .gh-quest[data-state="done"] .gh-quest-icon::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  font: 900 1.3rem/1 var(--gh-font-hud); color: var(--gh-ink); background: rgba(77, 255, 166, .9);
  animation: gh-check .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes gh-check { from { transform: scale(0); opacity: 0; } }
.gh-quest.done .gh-quest-btn, .gh-quest[data-state="done"] .gh-quest-btn { background: rgba(77, 255, 166, .14); color: var(--gh-green); }
/* locked → muted */
.gh-quest[data-state="locked"] { border-left-color: var(--gh-dim); opacity: .62; }
.gh-quest[data-state="locked"] .gh-quest-icon { filter: grayscale(1); background: rgba(111, 122, 166, .25); }
.gh-quest[data-state="locked"] .gh-quest-meta { color: var(--gh-dim); }
.gh-quest[data-state="locked"] .gh-quest-btn { background: rgba(111, 122, 166, .3); color: var(--gh-muted); }
#gh-quest-verify { border-left-color: var(--gh-magenta); }
#gh-quest-verify .gh-quest-btn { background: linear-gradient(135deg, #ffd0f2, var(--gh-magenta)); }

/* Player journey */
.gh-journey-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.gh-journey-track i {
  height: 10px; background: rgba(127, 227, 255, .12);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background .5s;
}
.gh-journey-track i.on { background: linear-gradient(90deg, var(--gh-cyan), var(--gh-green)); box-shadow: 0 0 12px rgba(77, 255, 166, .5); }
.gh-journey-line { margin: 2px 0 0; font-family: var(--gh-font-label); font-weight: 600; font-size: .86rem; color: var(--gh-muted); letter-spacing: .03em; }
.gh-journey-line b { font-family: var(--gh-font-hud); color: #fff; font-size: .95rem; }

/* ── REWARD VAULT ──────────────────────────────────────────────────── */
.gh-vault { background: linear-gradient(160deg, rgba(60, 40, 10, .45), rgba(20, 18, 64, .55) 45%, rgba(8, 8, 30, .5)); }
.gh-vault-body { display: flex; align-items: center; gap: 16px; }
.gh-token-stage { position: relative; width: 100px; height: 100px; flex: 0 0 auto; perspective: 500px; display: grid; place-items: center; }
.gh-token-stage[data-model="on"] .gh-token, .gh-token-stage[data-model="on"] .gh-token-shadow { display: none; }
.gh-token-stage canvas { width: 100% !important; height: 100% !important; }
.gh-token { position: relative; width: 78px; height: 78px; transform-style: preserve-3d; animation: gh-coin 6s linear infinite; }
.gh-token span {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  font-family: var(--gh-font-hud); font-weight: 900; color: #6b4300;
  background:
    radial-gradient(circle at 32% 28%, #fffbe0 0 10%, transparent 30%),
    radial-gradient(circle, #ffe680 0 52%, #e9a400 53% 60%, #ffd23f 61% 70%, #b87400 71% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 246, 200, .6), inset 0 -6px 12px rgba(120, 70, 0, .45), 0 0 24px rgba(255, 210, 63, .5);
}
.gh-token-face { font-size: 2rem; }
.gh-token-back { font-size: 1rem; letter-spacing: .06em; transform: rotateY(180deg); }
.gh-token-shadow { position: absolute; bottom: 2px; left: 50%; width: 60px; height: 10px; margin-left: -30px; border-radius: 50%; background: radial-gradient(rgba(255, 210, 63, .55), transparent 70%); filter: blur(2px); animation: gh-coin-shadow 6s ease-in-out infinite; }
@keyframes gh-coin { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } 100% { transform: rotateY(360deg) translateY(0); } }
@keyframes gh-coin-shadow { 50% { transform: scaleX(.7); opacity: .6; } }
.gh-vault-readout { min-width: 0; }
.gh-vault-label { font-family: var(--gh-font-label); font-weight: 700; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gh-muted); }
.gh-vault-value {
  font-family: var(--gh-font-hud); font-weight: 900; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6c8, var(--gh-gold) 55%, var(--gh-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 210, 63, .45)); overflow-wrap: anywhere;
}
.gh-vault-meta { font-size: .78rem; color: var(--gh-muted); }
body[data-game-home] .gh-vault-list { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 210, 63, .25); gap: 2px; }
body[data-game-home] .gh-vault-list li { padding: 4px 0; border: 0; background: none; font-size: .8rem; }
body[data-game-home] .gh-vault-list .meta-label { font-family: var(--gh-font-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gh-muted); font-size: .72rem; }
body[data-game-home] .gh-vault-list .meta-value { font-family: var(--gh-font-hud); font-size: .78rem; color: #fff; }
.gh-holdings { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.gh-holdings-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 8px 10px; background: rgba(95, 184, 255, .08); border-left: 2px solid #5fb8ff; }
.gh-holdings-value { font-family: var(--gh-font-hud); font-weight: 900; font-size: 1.2rem; }
.gh-holdings-sub { font-size: .78rem; color: var(--gh-muted) !important; }

/* ── WORLD ACTIVITY FEED ───────────────────────────────────────────── */
.gh-feed-list {
  max-height: min(34vh, 300px); overflow-y: auto; gap: 4px !important; padding-right: 4px;
  -webkit-mask: linear-gradient(180deg, #000 82%, transparent); mask: linear-gradient(180deg, #000 82%, transparent);
  scrollbar-width: thin; scrollbar-color: rgba(127, 227, 255, .35) transparent;
}
body[data-game-home] .gh-feed-list .activity-item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 8px; border: 0; border-left: 2px solid var(--gh-green); border-radius: 0;
  background: linear-gradient(90deg, rgba(77, 255, 166, .07), transparent 80%);
  animation: gh-feed-in .5s ease both; animation-delay: calc(var(--i, 0) * 60ms);
}
body[data-game-home] .gh-feed-list .activity-item.debit { border-left-color: var(--gh-red); background: linear-gradient(90deg, rgba(255, 77, 109, .08), transparent 80%); }
body[data-game-home] .gh-feed-list .activity-item:not(.credit):not(.debit) { border-left-color: var(--gh-dim); background: none; }
@keyframes gh-feed-in { from { opacity: 0; transform: translateX(12px); } }
body[data-game-home] .gh-feed-list .activity-icon { width: 22px; height: 22px; font-size: .62rem; border-radius: 0; background: none; color: var(--gh-green); box-shadow: none; }
body[data-game-home] .gh-feed-list .activity-item.debit .activity-icon { color: var(--gh-red); }
body[data-game-home] .gh-feed-list .activity-text strong { font-family: var(--gh-font-label); font-weight: 700; font-size: .88rem; letter-spacing: .03em; }
body[data-game-home] .gh-feed-list .activity-text span { font-size: .7rem; color: var(--gh-dim); }
body[data-game-home] .gh-feed-list .activity-amount { font-family: var(--gh-font-hud); font-weight: 900; font-size: .92rem; color: var(--gh-green); text-shadow: 0 0 10px rgba(77, 255, 166, .5); }
body[data-game-home] .gh-feed-list .activity-item.debit .activity-amount { color: var(--gh-red); text-shadow: 0 0 10px rgba(255, 77, 109, .5); }

/* ── GAME NAVIGATION DOCK ──────────────────────────────────────────── */
.gh-dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 2px; padding: 6px 10px;
  max-width: calc(100% - 20px);
  background: linear-gradient(180deg, rgba(20, 18, 64, .82), rgba(7, 6, 26, .9));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  box-shadow: 0 -1px 0 rgba(127, 227, 255, .45) inset, 0 18px 40px rgba(0, 0, 0, .5);
  animation: gh-dock-in .8s cubic-bezier(.2, .8, .2, 1) both .2s;
}
@keyframes gh-dock-in { from { opacity: 0; transform: translate(-50%, 30px); } }
.gh-dock-indicator {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(78, 216, 255, .28), rgba(78, 216, 255, .05));
  border-top: 2px solid var(--gh-cyan-2);
  box-shadow: 0 -6px 18px rgba(78, 216, 255, .55);
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), width .35s cubic-bezier(.3, 1.3, .5, 1);
}
.gh-dock-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 74px; min-height: 52px; padding: 4px 12px; cursor: pointer;
  color: var(--gh-muted); text-decoration: none; background: none; border: 0; font: inherit;
  transition: color .2s, transform .2s;
}
.gh-dock-item span { font-size: 1.25rem; line-height: 1; transition: transform .25s; }
.gh-dock-item b { font-family: var(--gh-font-hud); font-weight: 700; font-size: .56rem; letter-spacing: .18em; }
.gh-dock-item:hover, .gh-dock-item:focus-visible { color: #fff; }
.gh-dock-item:hover span { transform: translateY(-3px) scale(1.1); }
.gh-dock-item[aria-current="page"] { color: var(--gh-cyan-2); }
.gh-dock-item[aria-current="page"] b { text-shadow: 0 0 10px var(--gh-cyan); }

/* ── PLAYER TERMINAL (settings drawer) ─────────────────────────────── */
.gh-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.gh-drawer[data-open] { visibility: visible; pointer-events: auto; }
.gh-drawer-scrim { position: absolute; inset: 0; background: rgba(4, 3, 16, .55); opacity: 0; transition: opacity .3s; }
.gh-drawer[data-open] .gh-drawer-scrim { opacity: 1; }
.gh-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); overflow-y: auto;
  padding: 22px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(20, 18, 64, .96), rgba(7, 6, 26, .98));
  border-left: 1px solid var(--gh-line);
  transform: translateX(104%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.gh-drawer[data-open] .gh-drawer-panel { transform: none; }
.gh-drawer-panel > * { flex-shrink: 0; }
.gh-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.gh-drawer-head h2 { margin: 0; font-family: var(--gh-font-hud); font-size: .9rem; letter-spacing: .22em; color: var(--gh-cyan-2); }
.gh-drawer-section { padding: 14px 16px; background: rgba(127, 227, 255, .05); border-left: 2px solid rgba(127, 227, 255, .35); display: flex; flex-direction: column; gap: 10px; }
.gh-drawer-section[hidden] { display: none; }
.gh-drawer-section h3 { margin: 0; font-family: var(--gh-font-label); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.gh-drawer-section p { margin: 0; color: var(--gh-muted); font-size: .82rem; line-height: 1.5; }
.gh-danger-zone { border-left-color: rgba(255, 77, 109, .6); background: rgba(255, 77, 109, .05); }
.gh-switch { display: flex; align-items: center; gap: 10px; font-family: var(--gh-font-label); font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.gh-switch input { width: 18px; height: 18px; accent-color: var(--gh-cyan); }
.gh-range { width: 100%; accent-color: var(--gh-cyan); }
.gh-wide { width: 100%; }
body[data-game-home] .gh-drawer .accordion { border-radius: 0; background: rgba(127, 227, 255, .05); border: 0; border-left: 2px solid rgba(127, 227, 255, .35); box-shadow: none; }
body[data-game-home] .gh-drawer .accordion-head { width: 100%; background: none; border: 0; color: var(--gh-text); cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; }
body[data-game-home] .gh-drawer .panel-title { font-family: var(--gh-font-label); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; -webkit-text-stroke: 0; text-shadow: none; color: var(--gh-text); }
body[data-game-home] .gh-drawer .form-grid.two { grid-template-columns: 1fr; }
body[data-game-home] .gh-drawer input, body[data-game-home] .gh-drawer select, body[data-game-home] .gh-drawer textarea,
body[data-game-home] .gh-command input, body[data-game-home] .gh-command select, body[data-game-home] .gh-command textarea {
  border-radius: 0; background: rgba(4, 3, 16, .6); border: 1px solid rgba(127, 227, 255, .25); color: var(--gh-text);
}

/* ── COMMAND CENTER (existing admin workspace as an overlay) ───────── */
body[data-game-home] #admin-shell.gh-command:not([data-open]) { display: none; }
body[data-game-home] #admin-shell.gh-command {
  position: fixed; inset: 0; z-index: 70; margin: 0; overflow-y: auto; border-radius: 0; clip-path: none;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  background: linear-gradient(180deg, rgba(14, 12, 44, .97), rgba(5, 4, 20, .98));
}
.gh-command-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

/* ── PLAYER VERIFICATION MODAL ─────────────────────────────────────── */
.gh-modal {
  position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(20, 18, 64, .55), rgba(4, 3, 16, .85));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gh-modal[data-minimized] { display: none !important; }
.gh-modal-card {
  position: relative; width: min(460px, 100%); padding: 34px 28px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(170deg, rgba(30, 26, 90, .95), rgba(8, 8, 30, .97));
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  box-shadow: inset 0 0 0 1px rgba(127, 227, 255, .4), 0 30px 80px rgba(0, 0, 0, .6);
  animation: gh-modal-in .5s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes gh-modal-in { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.gh-modal-emblem {
  width: 72px; height: 72px; display: grid; place-items: center; font-size: 2rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--gh-cyan), var(--gh-violet));
  animation: gh-icon-pulse 2.6s ease-in-out infinite;
}
.gh-modal-kicker { font-family: var(--gh-font-hud); font-size: .62rem; letter-spacing: .32em; color: var(--gh-magenta); }
.gh-modal-title { margin: 0; font-family: var(--gh-font-hud); font-weight: 900; font-size: 1.35rem; letter-spacing: .12em; text-shadow: 0 0 18px rgba(78, 216, 255, .6); }
.gh-modal-text { margin: 0; color: var(--gh-muted); font-size: .9rem; line-height: 1.55; }
.gh-modal-error { color: #ff8fa3; font-size: .88rem; }
.gh-modal-label { margin-top: 6px; font-family: var(--gh-font-label); font-weight: 700; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gh-cyan-2); }
.gh-modal-input {
  width: min(260px, 100%); min-height: 46px; padding: 0 14px; text-align: center;
  font: 700 16px var(--gh-font-label); letter-spacing: .08em; color: var(--gh-text); color-scheme: dark;
  background: rgba(4, 3, 16, .7); border: 1px solid rgba(127, 227, 255, .45);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.gh-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── SIGNED OUT ────────────────────────────────────────────────────── */
body[data-game-home] .gh-signed-out {
  position: relative; z-index: 2; margin: 18vh auto 0; width: min(520px, calc(100% - 32px));
  background: linear-gradient(170deg, rgba(30, 26, 90, .88), rgba(8, 8, 30, .92));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 0; border: 0;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}
body[data-game-home] .signed-out-title { font-family: var(--gh-font-hud); letter-spacing: .12em; }

/* ── FEEDBACK TOAST (BVPlayerUI.feedback) ──────────────────────────── */
body[data-game-home] .player-feedback {
  position: fixed; z-index: 90; top: 74px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 460px);
  padding: 10px 22px; font-family: var(--gh-font-label); font-weight: 700; letter-spacing: .06em; color: #fff;
  background: linear-gradient(90deg, rgba(77, 255, 166, .25), rgba(20, 18, 64, .92));
  border-left: 3px solid var(--gh-green);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  animation: gh-toast 4.2s ease forwards;
  pointer-events: none;
}
body[data-game-home] .player-feedback[data-tone="error"] { background: linear-gradient(90deg, rgba(255, 77, 109, .3), rgba(20, 18, 64, .92)); border-left-color: var(--gh-red); }
@keyframes gh-toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .gh-hud {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "plate  res"
      "center center"
      "left   right";
  }
  .gh-center { padding-top: 8px; }
  .gh-topbar { position: relative; top: auto; left: auto; transform: none; justify-content: center; padding: 14px 16px 0; z-index: 30; }
}
@media (max-width: 760px) {
  .gh-hud {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "plate" "res" "center" "left" "right";
    gap: 14px; padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .gh-topbar { gap: 10px; flex-wrap: wrap; }
  .gh-brand-text span { display: none; }
  .gh-plate { padding-right: 26px; }
  .gh-portrait { width: 82px; height: 82px; }
  .gh-portrait-face { font-size: 2.4rem; }
  .gh-resources { justify-content: flex-start; }
  .gh-portal { --size: min(68vw, 270px); }
  .gh-dock { left: 0; right: 0; transform: none; max-width: none; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); bottom: 0; clip-path: none; justify-content: space-around; animation-name: gh-rise; }
  .gh-dock-item { min-width: 0; flex: 1; padding: 4px 2px; }
  .gh-dock-item b { font-size: .5rem; letter-spacing: .1em; }
  .gh-quest { grid-template-columns: 38px minmax(0, 1fr); }
  .gh-quest-icon { width: 38px; height: 38px; }
  .gh-quest-btn { grid-column: 2; justify-self: start; }
  .gh-feed-list { max-height: 260px; }
}
@media (max-height: 720px) and (min-width: 1241px) {
  .gh-portal { --size: clamp(200px, 20vw, 270px); }
  .gh-center { padding-top: 40px; }
}

/* ── REDUCED MOTION ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body[data-game-home] .player-feedback { animation: none !important; }
  body[data-game-home] *, body[data-game-home] *::before, body[data-game-home] *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
