/* ═══════════════════════════════════════════════════════════
   V-World by Valetax — premium game UI system (3D rebuild)
   Green #25C660 · Charcoal #141921 · Deep green #006652
   Aqua #5AD2D0 · Gold #FFB715 · Alert #FF324B · Montserrat
   Layers: z0 world · z5 pins · z10+ screens · z20 HUD ·
           z40 dialogue · z60 confetti · z80 modals
   ═══════════════════════════════════════════════════════════ */

/* Montserrat vendored locally (assets/fonts) — DMG/offline safe */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('../assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('../assets/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('../assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('../assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('../assets/fonts/montserrat-800.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('../assets/fonts/montserrat-900.woff2') format('woff2'); }

:root {
  --vx-green: #25C660;
  --vx-green-hi: #3ee07f;
  --vx-green-dark: #006652;
  --vx-charcoal: #141921;
  --vx-charcoal-2: #1B222D;
  --vx-aqua: #5AD2D0;
  --vx-gold: #FFB715;
  --vx-red: #FF324B;
  --vx-silver: #C9D3DC;
  --txt: #F4F7FA;
  --txt-dim: #97A3B0;
  --glass: linear-gradient(172deg, rgba(15, 21, 28, 0.88), rgba(8, 12, 17, 0.82));
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-glow: rgba(37, 198, 96, 0.16);
  --radius: 18px;
  --shadow: 0 18px 44px rgba(2, 8, 14, 0.5), 0 2px 8px rgba(2, 8, 14, 0.35);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; height: 100dvh; overflow: hidden; background: var(--vx-charcoal); overscroll-behavior: none; }
body { font-family: var(--font); color: var(--txt); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(90, 210, 208, .72); outline-offset: 3px; }

body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

.hidden { display: none !important; }
.muted { color: var(--txt-dim); }

/* Valetax logo safe-area rule: ≥20px clear margin, nothing overlapping */
.logo-safe { padding: 20px; display: inline-block; line-height: 0; }

/* ── persistent world layers ── */
#world-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#world-labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* district pins — reference-style dark chips with green pin badge */
.zone-pin {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(172deg, rgba(11, 16, 21, 0.9), rgba(7, 11, 15, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px; padding: 7px 13px 7px 8px;
  box-shadow: 0 8px 22px rgba(2, 8, 14, 0.45), var(--inset-hi);
  transform-origin: 50% 100%;
  white-space: nowrap; will-change: transform;
}
.zone-pin::after { /* pointer tail */
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
  background: rgba(8, 12, 16, 0.88); border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) rotate(45deg);
}
.zone-pin-badge {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(160deg, var(--vx-green-hi), #17954a);
  box-shadow: 0 3px 10px rgba(37, 198, 96, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.zone-pin-badge svg { width: 17px; height: 17px; }
.zone-pin-txt { display: flex; flex-direction: column; gap: 1px; }
.zone-pin-name { font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.zone-pin-sub { font-size: 10.5px; color: var(--txt-dim); font-weight: 500; }
.zone-pin.locked { opacity: .82; }
.zone-pin.locked .zone-pin-badge { background: linear-gradient(160deg, #55606c, #333c46); box-shadow: none; }
.zone-pin.locked .zone-pin-name { color: #aeb9c4; }
.zone-pin.locked .zone-pin-sub { color: var(--vx-gold); font-weight: 600; }

/* NPC nameplates */
.npc-tag {
  position: absolute; left: 0; top: 0;
  background: rgba(9, 14, 18, 0.85); border: 1px solid rgba(90, 210, 208, 0.4);
  color: #d9f6f5; border-radius: 999px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(2, 8, 14, 0.4);
  transform-origin: 50% 100%; will-change: transform;
}
.npc-tag-billy { border-color: rgba(37, 198, 96, 0.55); color: #c9f5d9; }
.npc-tag-bob { border-color: rgba(255, 183, 21, 0.55); color: #ffe9b8; }

/* ── screens ── */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#screen-title { z-index: 30; }
#screen-charselect { z-index: 30; }
#screen-game { z-index: 10; pointer-events: none; }
#screen-game > * { pointer-events: auto; }

/* ── buttons / inputs ── */
.btn {
  font-family: var(--font); font-weight: 700; font-size: 14px;
  border-radius: 14px; cursor: pointer;
  padding: 12px 24px; color: var(--txt);
  background: linear-gradient(172deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--inset-hi), 0 4px 14px rgba(2, 8, 14, 0.3);
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease, border-color .13s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(172deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)); border-color: rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--vx-green-hi) 0%, #1daf55 55%, #14914a 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #04180c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(37, 198, 96, 0.42), inset 0 1.5px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 14px rgba(0, 70, 30, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(37, 198, 96, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -6px 14px rgba(0, 70, 30, 0.28); }
.btn-gold {
  background: linear-gradient(180deg, #ffd056 0%, #f5a900 60%, #d18f00 100%);
  border: 1px solid rgba(255, 255, 255, 0.4); color: #221500;
  box-shadow: 0 10px 26px rgba(255, 183, 21, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
}
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.btn-glass { backdrop-filter: blur(10px); }
.btn-lg { font-size: 16px; padding: 16px 38px; border-radius: 16px; letter-spacing: .02em; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.input {
  font-family: var(--font); font-size: 14px; color: var(--txt);
  background: rgba(6, 10, 14, 0.6); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px; padding: 13px 15px; width: 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.input:focus { outline: none; border-color: var(--vx-green); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(37, 198, 96, 0.18); }

/* ── glass panel primitive ── */
.panel-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: var(--shadow), var(--inset-hi);
}

/* ═══════════ TITLE — hero vista + slim lockup card ═══════════ */
#screen-title { background: radial-gradient(120% 90% at 50% 110%, rgba(6, 12, 18, 0.4), transparent 55%); }
.title-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.title-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(170deg, rgba(10, 16, 22, 0.82), rgba(6, 10, 15, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 40px 110px rgba(3, 12, 22, 0.6), var(--inset-hi), 0 0 90px rgba(37, 198, 96, 0.07);
  backdrop-filter: blur(16px) saturate(1.3);
  padding: 12px 56px 28px;
  max-width: min(640px, 92vw);
  animation: titlein .7s cubic-bezier(.2, .9, .3, 1.06);
}
@keyframes titlein { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.title-logo {
  width: 76px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 10, 20, .55), 0 0 34px rgba(37, 198, 96, 0.25);
  user-select: none; -webkit-user-drag: none;
}
.title-brandname { font-weight: 800; letter-spacing: .34em; font-size: 13.5px; color: var(--txt); margin-top: -8px; text-indent: .34em; }
.title-presents { font-weight: 500; letter-spacing: .1em; font-size: 11px; color: var(--txt-dim); text-transform: lowercase; margin-left: 2px; }
.title-vworld {
  white-space: nowrap;
  font-size: clamp(46px, 7.2vw, 88px); font-weight: 900; letter-spacing: .05em; line-height: 1.06;
  background: linear-gradient(180deg, #fff 14%, #8df5b4 48%, var(--vx-green) 78%, #0d8a44);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(37, 198, 96, .4));
}
.title-tag-row { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.title-tag-line { width: 58px; height: 1px; background: linear-gradient(90deg, transparent, rgba(90, 210, 208, .8)); }
.title-tag-line:last-child { transform: scaleX(-1); }
.title-tag { font-weight: 700; letter-spacing: .4em; text-transform: uppercase; font-size: 11.5px; color: var(--vx-aqua); text-indent: .4em; }
.title-sub { max-width: 470px; color: #c3d0dc; font-size: 14px; margin-top: 13px; line-height: 1.7; text-shadow: 0 1px 8px rgba(4, 10, 16, .8); }
.title-actions { display: flex; gap: 14px; margin-top: 26px; }
.title-disclaimer { font-size: 10.5px; color: var(--txt-dim); max-width: 480px; margin-top: 20px; line-height: 1.55; }
@media (max-height: 720px) {
  .title-card { padding: 8px 42px 20px; }
  .title-logo { width: 56px; }
  .title-sub { margin-top: 6px; font-size: 13px; }
  .title-actions { margin-top: 16px; }
  .title-disclaimer { margin-top: 12px; }
}

/* ═══════════ CHARACTER SELECT — glass sheet over blurred vista ═══════════ */
#screen-charselect {
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.82), rgba(7, 11, 16, 0.9));
  backdrop-filter: blur(22px) saturate(1.2);
  overflow-y: auto;
}
.cs-layout { max-width: 1280px; margin: 0 auto; padding: 10px 30px 28px; min-height: 100%; display: flex; flex-direction: column; }
.cs-header { display: flex; align-items: center; gap: 8px; }
.cs-logo { width: 58px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 8px 22px rgba(0, 10, 20, .4); user-select: none; -webkit-user-drag: none; }
.cs-header h2 { font-size: 27px; font-weight: 900; letter-spacing: .01em; }
.cs-header .muted { font-size: 13px; margin-top: 2px; }
.cs-body { display: grid; grid-template-columns: 1.1fr 310px 1fr; gap: 24px; flex: 1; margin-top: 10px; }
.cs-roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; align-content: start; }
.roster-card {
  position: relative;
  background: linear-gradient(172deg, rgba(28, 36, 46, 0.85), rgba(15, 20, 27, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px; padding: 12px; cursor: pointer; text-align: center;
  transition: border-color .16s, transform .16s, box-shadow .16s;
  box-shadow: 0 6px 18px rgba(2, 8, 14, 0.35), var(--inset-hi);
}
.roster-card:hover { transform: translateY(-3px); border-color: rgba(37, 198, 96, .5); box-shadow: 0 12px 28px rgba(2, 8, 14, 0.45), 0 0 20px rgba(37, 198, 96, .15), var(--inset-hi); }
.roster-card.selected {
  border-color: var(--vx-green);
  box-shadow: 0 0 0 3px rgba(37, 198, 96, .22), 0 14px 30px rgba(2, 8, 14, 0.5), 0 0 26px rgba(37, 198, 96, .22), var(--inset-hi);
  background: linear-gradient(172deg, rgba(23, 46, 34, 0.9), rgba(13, 22, 18, 0.92));
}
.roster-card canvas { width: 84px; height: 110px; }
.roster-card img.mascot-thumb { width: 84px; height: 110px; object-fit: cover; border-radius: 10px; }
.roster-name { font-weight: 700; font-size: 13px; margin-top: 6px; }
.roster-sub { font-size: 11px; color: var(--txt-dim); }
.roster-lock {
  position: absolute; inset: 0; border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: rgba(8, 11, 16, 0.76); backdrop-filter: blur(2px);
  font-size: 12px; font-weight: 700; color: var(--vx-gold);
}
.cs-preview-col { display: flex; flex-direction: column; gap: 14px; align-items: center; }
#cs-preview { width: 260px; height: 340px; max-width: 100%; }
.cs-preview-card {
  width: 100%; text-align: center; padding: 18px 16px;
  background:
    radial-gradient(90% 62% at 50% 16%, rgba(37, 198, 96, .18), transparent 70%),
    linear-gradient(172deg, rgba(24, 32, 42, 0.9), rgba(12, 17, 23, 0.94));
  border: 1px solid rgba(37, 198, 96, 0.25); border-radius: 20px;
  box-shadow: var(--shadow), var(--inset-hi);
}
.cs-preview-name { font-size: 19px; font-weight: 800; margin-top: 6px; }
.cs-preview-role { font-size: 11.5px; color: var(--vx-aqua); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.cs-custom { display: flex; flex-direction: column; gap: 15px; align-content: start; overflow-y: auto; max-height: 62vh; padding-right: 4px; }
.custom-group-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-dim); margin-bottom: 7px; }
.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 31px; height: 31px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2); transition: transform .1s, box-shadow .1s;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -3px 5px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.swatch:hover { transform: scale(1.14); }
.swatch.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(37, 198, 96, .5), inset 0 2px 4px rgba(255, 255, 255, 0.25); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--txt);
  transition: all .13s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.35); }
.chip.selected { background: rgba(37, 198, 96, .2); border-color: var(--vx-green); color: #b8f5cf; box-shadow: 0 0 12px rgba(37, 198, 96, .2); }
.cs-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }

/* ═══════════ HUD ═══════════ */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.hud > * { pointer-events: auto; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ── HUD focus modes: dialogue / modals quiet the ambient HUD ── */
body.hud-focus .objective-chip, body.hud-focus #quest-panel,
body.hud-focus .hud-dock, body.hud-focus .hud-bl,
body.hud-focus #zone-banner, body.hud-focus .interact-prompt { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body.hud-dialogue .hud-tr { opacity: .35; transition: opacity .25s ease; }
.objective-chip, .hud-dock, .hud-bl, .hud-tr, #zone-banner { transition: opacity .25s ease; }

/* cinematic zone-entry banner (transient, centered) */
.zone-banner {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; pointer-events: none;
  animation: zbIn .5s cubic-bezier(.2, .9, .3, 1.05);
}
.zone-banner.out { opacity: 0; transform: translateX(-50%) translateY(-8px); transition: all .6s ease; }
@keyframes zbIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
.zb-line { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(90, 210, 208, .8)); }
.zb-line.flip { transform: scaleX(-1); }
.zb-txt { display: flex; flex-direction: column; align-items: center; gap: 1px; }
#zb-name {
  font-weight: 800; font-size: 17px; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 14px rgba(4, 12, 20, .9), 0 0 24px rgba(37, 198, 96, .35);
}
#zb-sub { font-size: 11px; font-weight: 600; color: #cfe0ea; text-shadow: 0 1px 8px rgba(4, 12, 20, .9); }

/* compact objective chip (top-left) → expandable quest panel */
.objective-chip {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px 10px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 12.5px; color: var(--txt);
  max-width: 300px;
}
.objective-chip .ico { width: 15px; height: 15px; color: var(--vx-green-hi); flex-shrink: 0; }
.objective-chip .obj-chev { color: var(--txt-dim); transition: transform .2s; }
.objective-chip.expanded .obj-chev { transform: rotate(180deg); }
.objective-chip:hover { border-color: rgba(37, 198, 96, .55); }
#obj-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* top-right cluster */
.hud-tr { position: absolute; top: 16px; right: 16px; display: flex; gap: 10px; align-items: center; }
.coin-pill { display: flex; align-items: center; gap: 8px; padding: 7px 9px; font-weight: 800; font-size: 17px; border-radius: 999px; min-width: 128px; }
.coin-pill.bump { animation: coinbump .3s ease; }
@keyframes coinbump { 40% { transform: scale(1.12); } }
.coin-plus {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, var(--vx-green-hi), #17954a);
  border: 1px solid rgba(255, 255, 255, .35); color: #06130b;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
  box-shadow: 0 3px 10px rgba(37, 198, 96, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.coin-plus .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.coin-plus:hover { transform: scale(1.08); }
.hud-icon-btn {
  position: relative; width: 47px; height: 47px; border-radius: 50%;
  cursor: pointer; color: var(--txt);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.hud-icon-btn:hover { border-color: rgba(37, 198, 96, .6); color: #7DEFA8; box-shadow: var(--shadow), 0 0 16px rgba(37, 198, 96, .25), var(--inset-hi); }
.dot { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--vx-red); border: 2px solid rgba(10, 14, 19, .95); box-shadow: 0 0 8px rgba(255, 50, 75, .6); }

/* bottom-left profile capsule (compact) */
.hud-bl { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 11px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 999px; }
#hud-avatar {
  border-radius: 50%; width: 46px; height: 46px;
  background: radial-gradient(circle at 35% 28%, #2c3a4c, #10151c);
  border: 2px solid var(--vx-green);
  box-shadow: 0 0 14px rgba(37, 198, 96, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.hud-rank { color: var(--vx-green-hi); font-weight: 800; font-size: 13px; text-shadow: 0 0 12px rgba(37, 198, 96, .35); }
.hud-xp-row { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--txt-dim); font-weight: 600; margin-top: 3px; }
.xp-bar { width: 92px; height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .09); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.xp-fill {
  height: 100%; width: 0%; border-radius: 5px;
  background: linear-gradient(90deg, #17954a, var(--vx-green-hi) 70%, #a5f2c2);
  box-shadow: 0 0 10px rgba(37, 198, 96, .55);
  transition: width .5s ease;
}

/* bottom-center dock — fades back when the mouse goes idle */
.hud-dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; padding: 7px; gap: 2px; border-radius: 19px; transition: opacity .6s ease, transform .6s ease; }
.hud-dock.dock-idle { opacity: .22; transform: translateX(-50%) translateY(6px); }
.hud-dock:hover { opacity: 1 !important; transform: translateX(-50%); }
.dock-btn {
  font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--txt);
  background: transparent; border: none; border-radius: 13px; padding: 11px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; transition: all .15s;
}
.dock-btn .ico { width: 17px; height: 17px; opacity: .9; }
.dock-btn:hover { background: rgba(37, 198, 96, .15); color: #b8f5cf; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.dock-btn + .dock-btn { border-left: 1px solid rgba(255, 255, 255, .07); border-radius: 0 13px 13px 0; }

/* interaction prompt */
.interact-prompt {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--glass); border: 1px solid rgba(37, 198, 96, .75); border-radius: 14px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(12px);
  box-shadow: var(--shadow), 0 0 22px rgba(37, 198, 96, .3), var(--inset-hi);
  animation: floaty 1.6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateX(-50%) translateY(-4px); } }
.interact-prompt kbd {
  background: linear-gradient(180deg, var(--vx-green-hi), #17954a); color: #04180c; border-radius: 7px; padding: 3px 9px;
  font-family: var(--font); font-weight: 800; margin-right: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 5px rgba(0, 0, 0, .35);
}

/* touch exploration controls — activated by the runtime on coarse pointers */
.mobile-controls { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 24; }
body.touch-ui .mobile-controls { display: block; }
.move-stick {
  position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: calc(82px + env(safe-area-inset-bottom));
  width: 112px; height: 112px; border-radius: 50%; pointer-events: auto; touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.move-stick-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,198,96,.10) 0 38%, rgba(8,14,19,.58) 40% 100%);
  border: 1px solid rgba(125,239,168,.35); box-shadow: 0 12px 30px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.move-stick-knob {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px;
  border-radius: 50%; background: linear-gradient(160deg, #59e98d, #159a4c);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 6px 18px rgba(0,0,0,.42), 0 0 18px rgba(37,198,96,.32), inset 0 1px rgba(255,255,255,.38);
  will-change: transform;
}
.move-stick-label { position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%); font-size: 8px; font-weight: 900; letter-spacing: .18em; color: rgba(255,255,255,.68); pointer-events: none; }
.mobile-interact {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: calc(94px + env(safe-area-inset-bottom));
  width: 92px; min-height: 72px; padding: 9px; border-radius: 24px; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 800 10px var(--font); color: #dfe8ee; border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(168deg, rgba(18,27,35,.88), rgba(8,13,18,.85));
  box-shadow: 0 12px 30px rgba(0,0,0,.42), var(--inset-hi); backdrop-filter: blur(10px);
}
.mobile-interact-icon { font-size: 21px; color: var(--txt-dim); line-height: 1; }
.mobile-interact.ready { color: #06130b; border-color: rgba(255,255,255,.45); background: linear-gradient(180deg, var(--vx-green-hi), #159a4c); box-shadow: 0 10px 28px rgba(37,198,96,.35), var(--inset-hi); }
.mobile-interact.ready .mobile-interact-icon { color: #06130b; }
.mobile-interact:disabled { opacity: .55; }
body.hud-focus .mobile-controls { opacity: 0; pointer-events: none; transition: opacity .2s; }
body.hud-focus .mobile-controls > * { pointer-events: none; }
body.touch-ui .hud-dock.dock-idle { opacity: 1; transform: translateX(-50%); }

/* quest panel — collapsed by default, expands from the objective chip */
.quest-tracker {
  position: absolute; left: 16px; top: 64px; width: 276px; padding: 14px 18px 14px;
  max-height: min(46vh, 380px); overflow-y: auto; border-radius: 19px;
  animation: qtin .22s cubic-bezier(.2, .9, .3, 1.05);
  transform-origin: 20px 0;
}
@keyframes qtin { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.qt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qt-title { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--vx-green-hi); text-shadow: 0 0 10px rgba(37, 198, 96, .3); }
.qt-close {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: var(--txt-dim); cursor: pointer; font-size: 11px;
}
.qt-close:hover { color: var(--vx-red); border-color: rgba(255, 50, 75, .5); }
.qt-log-btn { width: 100%; margin-top: 10px; padding: 9px 0; font-size: 12px; }
.qt-item { display: flex; gap: 9px; padding: 6px 0; font-size: 12.4px; font-weight: 600; align-items: flex-start; flex-wrap: wrap; }
.qt-item .qt-check { color: var(--txt-dim); display: flex; align-items: center; }
.qt-item .qt-check .ico { width: 15px; height: 15px; }
.qt-item.done { color: var(--txt-dim); }
.qt-item.done .qt-txt { text-decoration: line-through; }
.qt-item.done .qt-check { color: var(--vx-green); }
.qt-item.qt-next { color: var(--txt-dim); font-size: 11px; }
.qt-prog { font-size: 10.5px; color: var(--vx-aqua); font-weight: 700; margin-left: auto; white-space: nowrap; }
.qt-bar { flex-basis: 100%; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .09); overflow: hidden; margin-top: 3px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.qt-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #17954a, var(--vx-green-hi));
  transition: width .45s ease; box-shadow: 0 0 10px rgba(37, 198, 96, .6);
}

/* toasts */
.toasts { position: absolute; top: 84px; right: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 70; }
.toast {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px 19px; font-size: 13px; font-weight: 600; backdrop-filter: blur(14px);
  box-shadow: var(--shadow), var(--inset-hi); animation: toastin .3s ease; max-width: 330px;
}
.toast.gold { border-color: rgba(255, 183, 21, .55); color: var(--vx-gold); box-shadow: var(--shadow), 0 0 20px rgba(255, 183, 21, .18), var(--inset-hi); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .4s; }
@keyframes toastin { from { opacity: 0; transform: translateX(24px); } }

/* ── dialogue ── */
.dialogue {
  position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
  width: min(800px, 92vw); display: flex; gap: 22px; z-index: 40; align-items: flex-start;
  background: linear-gradient(168deg, rgba(13, 19, 26, 0.94), rgba(7, 11, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 24px;
  padding: 20px 28px 16px; backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 70px rgba(3, 12, 22, .6), 0 0 40px rgba(37, 198, 96, .06), var(--inset-hi);
  animation: dlgin .24s ease;
}
@keyframes dlgin { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }
.dlg-portrait { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; margin-top: -42px; }
#dlg-portrait-canvas {
  width: 122px; height: 122px; border-radius: 50%;
  background: radial-gradient(circle at 40% 26%, #8fd0f2, #2E96C8 68%, #17618f);
  border: 3px solid rgba(37, 198, 96, .8);
  box-shadow: 0 12px 28px rgba(3, 12, 22, .55), 0 0 0 5px rgba(9, 14, 19, .9), 0 0 24px rgba(37, 198, 96, .3), inset 0 -10px 20px rgba(8, 30, 50, .35);
}
.dlg-name {
  color: #04180c; background: linear-gradient(180deg, var(--vx-green-hi), #159a4c);
  font-weight: 800; font-size: 12.5px; letter-spacing: .05em;
  border-radius: 999px; padding: 5px 16px; margin-top: -13px; z-index: 1;
  box-shadow: 0 5px 14px rgba(3, 12, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .45);
  white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.dlg-voice {
  display: flex; gap: 2.5px; align-items: flex-end; height: 12px; margin-top: 7px;
}
.dlg-voice span {
  width: 3.5px; border-radius: 2px; background: var(--vx-green-hi);
  box-shadow: 0 0 6px rgba(43, 224, 113, .7);
  animation: voicebar .9s ease-in-out infinite;
}
.dlg-voice span:nth-child(1) { height: 6px; }
.dlg-voice span:nth-child(2) { height: 11px; animation-delay: .15s; }
.dlg-voice span:nth-child(3) { height: 8px; animation-delay: .3s; }
@keyframes voicebar { 50% { transform: scaleY(.35); } }
body.reduced-motion .dlg-voice span { animation: none; }

.dlg-main { flex: 1; min-width: 0; padding-top: 4px; }
.dlg-text { font-size: 15px; line-height: 1.7; min-height: 56px; }
.dlg-text b { color: var(--vx-green-hi); font-weight: 700; }
.dlg-next { text-align: right; color: var(--txt-dim); font-size: 11px; font-weight: 600; margin-top: 8px; animation: floaty2 1.4s infinite; }
@keyframes floaty2 { 50% { opacity: .4; } }
.dlg-choices { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.dlg-choice {
  text-align: left; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--txt);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px; padding: 10px 15px; cursor: pointer;
}
.dlg-choice:hover { border-color: var(--vx-green); background: rgba(37, 198, 96, .13); }

/* ── modals ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 7, 11, .74); z-index: 80;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px);
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  position: relative;
  background: linear-gradient(168deg, #1a222d, #10151d 60%, #0d1219);
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 24px;
  width: min(880px, 94vw); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .65), var(--inset-hi), 0 0 60px rgba(37, 198, 96, .05);
  animation: modalin .26s cubic-bezier(.2, .9, .3, 1.04);
  padding: 28px 32px;
}
@keyframes modalin { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; letter-spacing: .01em; }
.modal .modal-sub { color: var(--txt-dim); font-size: 13px; margin-bottom: 18px; }
.modal-close {
  position: sticky; float: right; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); color: var(--txt);
  font-size: 15px; cursor: pointer; z-index: 2; transition: all .14s;
}
.modal-close:hover { border-color: var(--vx-red); color: var(--vx-red); box-shadow: 0 0 14px rgba(255, 50, 75, .25); }

/* ── WonderVault Console: one centralized tabbed interface ── */
.modal-console { padding: 0; width: min(1020px, 95vw); overflow: hidden; }
.modal-console .modal-close { position: absolute; top: 14px; right: 14px; float: none; }
.console { display: flex; min-height: min(640px, 84vh); max-height: 90vh; }
.console-tabs {
  width: 186px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px;
  background: linear-gradient(180deg, rgba(8, 12, 17, .95), rgba(10, 16, 22, .9));
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.console-brand {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 18px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.35;
  color: var(--txt); text-transform: uppercase;
}
.console-brand img { width: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .15); }
.console-tab {
  display: flex; align-items: center; gap: 11px; text-align: left;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--txt-dim);
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 11px 13px; cursor: pointer; transition: all .13s;
}
.console-tab .ico { width: 17px; height: 17px; }
.console-tab:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.console-tab.on {
  color: #b8f5cf; background: rgba(37, 198, 96, .13);
  border-color: rgba(37, 198, 96, .4);
  box-shadow: 0 0 14px rgba(37, 198, 96, .12), var(--inset-hi);
}
.console-body { flex: 1; overflow-y: auto; padding: 26px 30px; min-width: 0; }
.console-body.tab-vault {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255, 183, 21, .12), transparent 65%),
    linear-gradient(170deg, #221d10 0%, #14110a 40%, transparent 75%);
}
.console-callout {
  background: rgba(37, 198, 96, .1); border: 1px solid rgba(37, 198, 96, .35);
  border-radius: 12px; padding: 11px 15px; font-size: 13px; margin-bottom: 14px;
}
@media (max-width: 900px) {
  .console { flex-direction: column; }
  .console-tabs { width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .console-brand { display: none; }
}

/* map */
.map-wrap { position: relative; }
#map-canvas { width: 100%; border-radius: 18px; background: #0a1020; border: 1px solid rgba(90, 210, 208, .3); box-shadow: inset 0 0 60px rgba(20, 60, 90, .35), 0 10px 30px rgba(0, 0, 0, .4); }
.map-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--txt-dim); flex-wrap: wrap; }
.map-legend b { color: var(--txt); }

/* vault */
.modal-vault { background: linear-gradient(170deg, #2a2210 0%, #171208 42%, #0e1319); border-color: rgba(255, 183, 21, .4); }
.vault-hero {
  position: relative; text-align: center; padding: 20px 0 20px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 183, 21, .28);
}
.vault-hero-glow {
  position: absolute; inset: -30px -60px 0; pointer-events: none;
  background: radial-gradient(55% 90% at 50% 0%, rgba(255, 183, 21, .22), transparent 70%);
}
.vault-door-art {
  width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 34% 30%, #5a6a7c, #232c37 70%);
  border: 5px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 5px #FFB715, 0 0 0 7px rgba(120, 80, 0, .9), 0 12px 34px rgba(0, 0, 0, .5), 0 0 44px rgba(255, 183, 21, .35), inset 0 2px 6px rgba(255, 255, 255, .22);
}
.vault-door-art::before {
  content: ''; position: absolute; inset: 16px; border-radius: 50%;
  border: 2.5px solid rgba(220, 230, 240, .5);
}
.vault-door-art::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(0deg, transparent 46%, #dde5ec 46%, #dde5ec 54%, transparent 54%),
    linear-gradient(60deg, transparent 46%, #dde5ec 46%, #dde5ec 54%, transparent 54%),
    linear-gradient(120deg, transparent 46%, #dde5ec 46%, #dde5ec 54%, transparent 54%),
    radial-gradient(circle at 50% 50%, #eef2f6 0 9px, transparent 10px);
  border-radius: 50%;
  animation: vaultspin 14s linear infinite;
}
@keyframes vaultspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.vault-hero h3 {
  font-size: 26px; font-weight: 900; letter-spacing: .16em;
  background: linear-gradient(180deg, #FFF3CE, var(--vx-gold) 62%, #C98F00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(255, 183, 21, .35));
}
.vault-hero p { color: var(--txt-dim); font-size: 12.5px; margin-top: 3px; }
.vault-balance {
  display: inline-flex; flex-direction: column; gap: 3px; margin-top: 15px;
  background: rgba(8, 12, 8, .8); border: 1px solid rgba(37, 198, 96, .45);
  border-radius: 999px; padding: 10px 34px;
  box-shadow: 0 0 28px rgba(37, 198, 96, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.vault-balance .vb-lbl { font-size: 9.5px; font-weight: 800; letter-spacing: .24em; color: var(--txt-dim); }
.vault-balance .vb-num { font-size: 23px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
.vault-card {
  position: relative;
  background: linear-gradient(168deg, rgba(40, 47, 56, .92), rgba(18, 23, 30, .96));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 17px;
  padding: 17px 16px 15px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), var(--inset-hi);
}
.vault-card:hover { transform: translateY(-3px); border-color: rgba(255, 183, 21, .55); box-shadow: 0 14px 32px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 183, 21, .16), var(--inset-hi); }
.vault-card.owned { border-color: rgba(37, 198, 96, .55); }
.vault-ico { font-size: 31px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.vault-name { font-weight: 700; font-size: 14px; }
.vault-desc { font-size: 11.5px; color: var(--txt-dim); flex: 1; line-height: 1.55; }
.vault-cost { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.vault-cost .cost { font-weight: 800; color: var(--vx-gold); font-size: 14px; }
.vault-cost .btn { margin-left: auto; padding: 8px 15px; font-size: 12px; }

/* quiz / minigames */
.quiz-q { font-size: 16px; font-weight: 700; margin: 14px 0; line-height: 1.5; }
.quiz-opts { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt {
  text-align: left; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--txt);
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: 13px; padding: 14px 17px; cursor: pointer; transition: all .15s;
}
.quiz-opt:hover { border-color: var(--vx-aqua); background: rgba(90, 210, 208, .07); }
.quiz-opt.correct { border-color: var(--vx-green); background: rgba(37, 198, 96, .16); box-shadow: 0 0 16px rgba(37, 198, 96, .18); }
.quiz-opt.wrong { border-color: var(--vx-red); background: rgba(255, 50, 75, .12); }
.quiz-progress { font-size: 12px; color: var(--vx-aqua); font-weight: 700; letter-spacing: .1em; }
.quiz-explain { margin-top: 12px; font-size: 13px; color: var(--txt-dim); line-height: 1.6; border-left: 3px solid var(--vx-green); padding-left: 12px; }

.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px; }
.match-item {
  font-family: var(--font); color: var(--txt); text-align: left;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .16); border-radius: 13px;
  padding: 13px 15px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; margin-bottom: 9px;
  transition: all .13s;
}
.match-item.sel { border-color: var(--vx-aqua); background: rgba(90, 210, 208, .12); box-shadow: 0 0 14px rgba(90, 210, 208, .18); }
.match-item.matched { border-color: var(--vx-green); background: rgba(37, 198, 96, .14); opacity: .75; cursor: default; }
.match-item.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* settings */
.settings-h { font-size: 11px; font-weight: 800; letter-spacing: .24em; color: var(--vx-aqua); margin: 18px 0 2px; }
.settings-h:first-of-type { margin-top: 4px; }
.vol-range {
  -webkit-appearance: none; appearance: none; width: 190px; height: 7px; border-radius: 4px;
  background: linear-gradient(90deg, #17954a, var(--vx-green-hi)); outline: none; cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 3px solid var(--vx-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 0 10px rgba(37, 198, 96, .4);
}
.vol-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--vx-green);
}
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); gap: 20px; }
.setting-row .lbl { font-weight: 600; font-size: 14px; }
.setting-row .sub { font-size: 11.5px; color: var(--txt-dim); margin-top: 2px; }
.seg { display: flex; background: rgba(6, 10, 14, .55); border-radius: 11px; padding: 3px; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .35); }
.seg button {
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--txt-dim);
  background: transparent; border: none; border-radius: 9px; padding: 8px 15px; cursor: pointer;
  transition: all .13s;
}
.seg button.on {
  background: linear-gradient(180deg, var(--vx-green-hi), #17954a);
  color: #04180c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 8px rgba(37, 198, 96, .35);
}

/* ═══════════ PINBALL — fullscreen focus mode ═══════════ */
#pinball-screen {
  position: fixed; inset: 0; z-index: 85;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(37, 198, 96, .12), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(255, 183, 21, .05) 0 2px, transparent 3px) 0 0/56px 56px,
    radial-gradient(circle at 70% 80%, rgba(201, 211, 220, .05) 0 2px, transparent 3px) 14px 22px/64px 64px,
    linear-gradient(165deg, #10161d 0%, #090d12 55%, #0c1117 100%);
  animation: fadein .25s ease;
}
#pinball-screen .pin-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#pin-cv {
  display: block; border-radius: 12px; touch-action: none;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .65), 0 0 60px rgba(37, 198, 96, .1);
}
.pin-ctl {
  position: fixed; top: 14px; z-index: 90;
  min-width: 46px; height: 46px; border-radius: 12px; cursor: pointer; padding: 0 12px;
  border: 1px solid rgba(37, 198, 96, .5); background: rgba(13, 20, 16, .85);
  color: #b8f5cf; font: 800 15px var(--font); letter-spacing: .06em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), var(--inset-hi);
  transition: all .13s;
}
.pin-ctl:hover { border-color: var(--vx-green); color: #eafff2; box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 16px rgba(37, 198, 96, .3); }
.pin-ctl:active { transform: translateY(1px); }
.pin-ctl-exit { right: 14px; border-color: rgba(255, 255, 255, .25); color: var(--txt); }
.pin-ctl-exit:hover { border-color: var(--vx-red); color: var(--vx-red); box-shadow: 0 0 16px rgba(255, 50, 75, .25); }
.pin-ctl-pause { left: 14px; }
.pin-ctl-bang { top: auto; bottom: 16px; left: 14px; color: var(--vx-gold); border-color: rgba(255, 183, 21, .45); font-size: 13px; }
.pin-ctl-bang:hover { border-color: var(--vx-gold); color: #ffd66b; box-shadow: 0 0 16px rgba(255, 183, 21, .3); }
.pin-ctl-bang:active { transform: translate(2px, 2px) rotate(-2deg); }

#pin-ov {
  position: fixed; inset: 0; z-index: 88; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 12px;
  background: rgba(5, 9, 12, .78); color: var(--txt); padding: 24px;
  backdrop-filter: blur(6px);
}
#pin-ov.hide { display: none; }
.pin-ov-logo {
  width: 62px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18);
  margin: 20px;   /* logo safe area */
  box-shadow: 0 10px 28px rgba(0, 6, 12, .55), 0 0 30px rgba(37, 198, 96, .25);
}
.pin-ov-title {
  font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: .08em; line-height: 1;
  color: #eafff2; text-shadow: 0 0 30px rgba(37, 198, 96, .5);
}
.pin-ov-title span {
  background: linear-gradient(180deg, #8df5b4, var(--vx-green) 70%, #0d8a44);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pin-ov-sub { font-size: 12px; font-weight: 800; letter-spacing: .5em; color: var(--vx-aqua); text-indent: .5em; }
.pin-ov-hook { max-width: 440px; font-size: 14px; color: #c3d0dc; line-height: 1.65; }
.pin-ov-hook b { color: var(--vx-green-hi); }
.pin-ov-info { font-size: 14.5px; color: var(--vx-gold); letter-spacing: .04em; min-height: 22px; font-weight: 700; line-height: 1.7; }
.pin-ov-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.pin-ov-keys { font-size: 12px; color: #93a8b5; line-height: 1.8; max-width: 460px; }
.pin-ov-keys b { color: var(--vx-green-hi); }
.pin-ov-legal { font-size: 10.5px; color: var(--txt-dim); margin-top: 4px; }
.pin-ov-summary {
  min-width: min(380px, 86vw);
  background: linear-gradient(172deg, rgba(20, 27, 34, .95), rgba(10, 14, 19, .96));
  border: 1px solid rgba(255, 183, 21, .35); border-radius: 18px;
  padding: 16px 22px; box-shadow: var(--shadow), var(--inset-hi);
}
.pin-sum-row {
  display: flex; justify-content: space-between; gap: 24px; padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--txt-dim);
}
.pin-sum-row b { color: var(--txt); font-size: 15px; letter-spacing: .02em; }
.pin-sum-daily { padding-top: 10px; font-size: 12px; color: var(--txt-dim); }

/* reward celebration */
.reward-pop { text-align: center; padding: 12px 0 6px; }
.reward-pop .big-ico { font-size: 56px; filter: drop-shadow(0 8px 22px rgba(255, 183, 21, .35)); }
.reward-pop h3 { margin: 10px 0 4px; }
.reward-coins { color: var(--vx-gold); font-weight: 800; font-size: 21px; text-shadow: 0 0 18px rgba(255, 183, 21, .35); }

/* lessons */
.lesson-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.lesson-card {
  background: linear-gradient(172deg, rgba(28, 36, 46, .8), rgba(15, 20, 27, .9));
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; padding: 16px;
  box-shadow: var(--inset-hi);
}
.lesson-card h4 { font-size: 14px; color: var(--vx-green-hi); margin-bottom: 6px; }
.lesson-card p { font-size: 12.5px; color: var(--txt-dim); line-height: 1.6; }

.risk-note {
  margin-top: 16px; padding: 13px 17px; border-radius: 13px; font-size: 12px; line-height: 1.6;
  background: rgba(255, 50, 75, .07); border: 1px solid rgba(255, 50, 75, .25); color: #f0b9c0;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1100px) {
  .cs-body { grid-template-columns: 1fr 1fr; }
  .cs-custom { grid-column: span 2; max-height: none; }
}
@media (max-width: 1180px) {
  .hud-bl { padding: 9px 12px; gap: 9px; }
  .hud-bl #hud-avatar { width: 44px; height: 44px; }
  .xp-bar { width: 70px; }
  .hud-xp-row { font-size: 9.5px; gap: 5px; }
  .hud-rank { font-size: 12.5px; }
  .hud-dock { padding: 4px; gap: 2px; }
  .dock-btn { font-size: 11px; padding: 9px 11px; }
}
@media (max-height: 760px) {
  .quest-tracker { max-height: 40vh; }
}

/* ══ Avatar tab (WonderVault Console) — Meshy GLB picker ══ */
.avatar-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr) 250px; gap: 16px; min-height: 460px; }
.avatar-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 540px; padding-right: 4px; }
.avatar-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 8px 10px; cursor: pointer; text-align: left; position: relative; transition: border-color .15s, background .15s; color: inherit; font: inherit; }
.avatar-card:hover { background: rgba(255,255,255,.07); }
.avatar-card.selected { border-color: #25C660; background: rgba(37,198,96,.10); box-shadow: 0 0 0 1px rgba(37,198,96,.35) inset; }
.avatar-card canvas { flex: 0 0 auto; border-radius: 10px; background: radial-gradient(circle at 50% 30%, rgba(37,198,96,.14), rgba(10,16,22,.6)); }
.ac-name { font-weight: 800; font-size: 14px; }
.ac-role { font-size: 11px; color: var(--txt-dim, #97A3B0); }
.ac-src { font-size: 10px; font-weight: 700; color: #2BE071; letter-spacing: .4px; }
.ac-src.missing { color: #FFB715; }
.ac-current { position: absolute; top: 6px; right: 8px; font-size: 9px; font-weight: 800; color: #0D141A; background: #2BE071; border-radius: 6px; padding: 2px 6px; letter-spacing: .5px; }
.avatar-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
#av-canvas { width: 100%; max-width: 370px; height: 440px; border-radius: 18px; background: radial-gradient(circle at 50% 20%, #1c2836, #0c1219 70%); border: 1px solid rgba(255,255,255,.08); }
.avatar-info { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.ai-name { font-size: 20px; font-weight: 900; }
.ai-role { color: #5AD2D0; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ai-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-dim, #97A3B0); gap: 10px; }
.ai-row b { color: #EAF2F8; font-weight: 700; text-align: right; }
.ai-warn { font-size: 11px; color: #FFB715; background: rgba(255,183,21,.08); border-radius: 10px; padding: 8px; }
.ai-note { font-size: 10.5px; color: #7d8894; line-height: 1.45; }
.ai-actions { display: flex; gap: 8px; margin-top: 6px; }
.ai-actions .btn { flex: 1; }
@media (max-width: 980px) {
  .avatar-layout { grid-template-columns: 1fr; }
  .avatar-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
}

/* ══ Simplified character select (2 honest broker choices) ══ */
.cs-body-simple { grid-template-columns: minmax(300px, 460px) 340px; justify-content: center; gap: 40px; }
.cs-body-simple .cs-roster { grid-template-columns: 1fr; gap: 16px; align-content: center; }
.roster-card-lg { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-align: left; }
.roster-card-lg canvas { width: 96px !important; height: 96px !important; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #24425e, #101b28 74%); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.roster-card-lg .roster-name { font-size: 19px; font-weight: 900; }
.roster-card-lg .roster-sub { font-size: 12px; }

/* ══ Simplified Avatar tab + mesh-portrait roster faces ══ */
.avatar-layout-simple { grid-template-columns: 320px minmax(0, 1fr); }
.avatar-card-lg { padding: 12px; gap: 14px; }
.avatar-card-lg canvas { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #24425e, #101b28 74%); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.avatar-card-lg .ac-name { font-size: 17px; }
#av-info { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.leader-row { display: flex; align-items: center; gap: 10px; }
.leader-face { width: 32px; height: 32px; border-radius: 50%; background: #16202c; box-shadow: 0 0 0 1.5px rgba(255,255,255,.12); }
@media (max-width: 980px) { .avatar-layout-simple { grid-template-columns: 1fr; } }
.ai-actions .btn[disabled] { opacity: .4; pointer-events: none; }

/* ══ Short-viewport fit (small laptop displays / clamped windows) ══ */
@media (max-height: 800px) {
  .cs-layout { padding: 6px 22px 16px; }
  .cs-header h2 { font-size: 22px; }
  .cs-logo { width: 44px; }
  #cs-preview { width: 210px; height: 275px; }
  .cs-preview-card { padding: 12px 12px; }
  .cs-preview-name { font-size: 16px; }
  .roster-card-lg { padding: 10px 14px; }
  .roster-card-lg canvas { width: 72px !important; height: 72px !important; }
  .roster-card-lg .roster-name { font-size: 16px; }
  .cs-footer { padding-top: 10px; }
  #av-canvas { height: 330px; }
  .avatar-layout { min-height: 0; }
  .avatar-card-lg canvas { width: 72px; height: 72px; }
}
@media (max-height: 660px) {
  #cs-preview { width: 180px; height: 236px; }
  #av-canvas { height: 270px; }
}

/* ══ Browser/mobile responsive pass ══ */
@media (max-width: 900px) {
  .zone-pin { transform-origin: 50% 100%; }
  .console { min-height: min(680px, 92dvh); max-height: 92dvh; }
  .console-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 10px 52px 10px 10px; gap: 3px; scrollbar-width: none; }
  .console-tabs::-webkit-scrollbar { display: none; }
  .console-tab { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; }
  .console-body { padding: 20px; }
  .modal-console .modal-close { top: 10px; right: 10px; }
}

@media (max-width: 720px) {
  .mobile-controls { display: block; }
  .logo-safe { padding: 14px; }
  .title-inner { justify-content: center; padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); }
  .title-card { width: 100%; max-width: 480px; gap: 4px; border-radius: 24px; padding: 10px 18px 20px; }
  .title-logo { width: 58px; border-radius: 16px; }
  .title-brandname { font-size: 11px; }
  .title-vworld { font-size: clamp(44px, 16vw, 68px); letter-spacing: .025em; }
  .title-tag-row { gap: 8px; }
  .title-tag-line { width: 22px; }
  .title-tag { font-size: 9px; letter-spacing: .24em; text-indent: .24em; }
  .title-sub { font-size: 12px; line-height: 1.55; margin-top: 9px; }
  .title-actions { width: 100%; flex-direction: column; gap: 9px; margin-top: 18px; }
  .title-actions .btn { width: 100%; min-height: 50px; }
  .title-disclaimer { font-size: 9px; margin-top: 12px; }

  #screen-charselect { -webkit-overflow-scrolling: touch; }
  .cs-layout { width: 100%; padding: max(5px, env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); }
  .cs-header { align-items: center; }
  .cs-header .logo-safe { padding: 9px; }
  .cs-logo { width: 42px; border-radius: 11px; }
  .cs-header h2 { font-size: 20px; }
  .cs-header .muted { font-size: 11px; line-height: 1.45; }
  .cs-body, .cs-body-simple { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
  .cs-body-simple .cs-roster { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .roster-card-lg { min-width: 0; flex-direction: column; gap: 7px; padding: 10px 7px; text-align: center; }
  .roster-card-lg canvas { width: 72px !important; height: 72px !important; }
  .roster-card-lg .roster-name { font-size: 13px; }
  .roster-card-lg .roster-sub { font-size: 9.5px; }
  .cs-preview-col { width: 100%; gap: 10px; }
  .cs-preview-card { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 9px 14px; }
  #cs-preview { grid-row: 1 / span 2; width: 126px; height: 165px; }
  .cs-preview-name { align-self: end; font-size: 17px; }
  .cs-preview-role { align-self: start; font-size: 9.5px; }
  .cs-footer { position: sticky; bottom: calc(-1 * env(safe-area-inset-bottom)); z-index: 3; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(7,11,16,.97) 24%); }
  .cs-footer .btn { min-height: 46px; padding: 11px 14px; font-size: 12px; }
  .cs-footer .btn-primary { flex: 1; }

  .objective-chip { top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); max-width: calc(100vw - 178px); min-height: 42px; padding: 8px 11px; font-size: 10.5px; }
  .hud-tr { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); gap: 5px; align-items: flex-start; }
  .coin-pill { min-width: 104px; height: 42px; padding: 4px 6px; gap: 4px; font-size: 14px; }
  .coin-pill #coin-icon { width: 30px; height: 30px; }
  .coin-plus { width: 27px; height: 27px; }
  .hud-icon-btn { position: absolute; top: 48px; width: 39px; height: 39px; }
  #btn-sound { right: 88px; }
  #btn-notif { right: 44px; }
  #btn-settings-top { right: 0; }
  .zone-banner { top: calc(max(10px, env(safe-area-inset-top)) + 94px); width: calc(100% - 28px); gap: 8px; }
  .zb-line { width: 22px; }
  #zb-name { font-size: 13px; letter-spacing: .11em; text-align: center; }
  #zb-sub { font-size: 9.5px; text-align: center; }
  .quest-tracker { top: calc(max(10px, env(safe-area-inset-top)) + 49px); left: max(10px, env(safe-area-inset-left)); width: min(300px, calc(100vw - 20px)); max-height: 42dvh; }
  .toasts { top: calc(max(10px, env(safe-area-inset-top)) + 98px); left: 10px; right: 10px; align-items: stretch; }
  .toast { max-width: none; padding: 10px 13px; font-size: 11.5px; }

  .hud-bl { left: max(12px, env(safe-area-inset-left)); bottom: calc(202px + env(safe-area-inset-bottom)); max-width: 192px; padding: 5px 9px 5px 5px; gap: 7px; }
  .hud-bl #hud-avatar { width: 38px; height: 38px; }
  .hud-rank { font-size: 10.5px; }
  .hud-xp-row { font-size: 8px; gap: 4px; }
  .xp-bar { width: 54px; height: 5px; }
  .hud-xp-num { display: none; }
  .hud-dock { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(7px, env(safe-area-inset-bottom)); transform: none; width: auto; height: 62px; padding: 4px; justify-content: stretch; border-radius: 17px; }
  .hud-dock:hover, body.touch-ui .hud-dock.dock-idle { transform: none; }
  .dock-btn { flex: 1 1 20%; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 2px; font-size: 8px; }
  .dock-btn .ico { width: 18px; height: 18px; }
  .dock-btn + .dock-btn { border-radius: 0 10px 10px 0; }
  .interact-prompt { display: none; }

  .dialogue { bottom: calc(75px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); max-height: calc(100dvh - 96px); overflow-y: auto; gap: 11px; border-radius: 19px; padding: 16px 15px 13px; }
  .dlg-portrait { margin-top: -4px; }
  #dlg-portrait-canvas { width: 72px; height: 72px; }
  .dlg-name { max-width: 94px; padding: 4px 8px; font-size: 9.5px; margin-top: -8px; }
  .dlg-text { font-size: 12.5px; line-height: 1.58; min-height: 46px; }
  .dlg-next { font-size: 9.5px; }
  .dlg-choice { min-height: 44px; font-size: 11.5px; padding: 10px 12px; }

  .modal-backdrop { align-items: flex-end; padding-top: max(8px, env(safe-area-inset-top)); }
  .modal { width: 100%; max-height: 94dvh; border-radius: 23px 23px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); }
  .modal h3 { font-size: 19px; padding-right: 38px; }
  .modal .modal-sub { font-size: 11.5px; }
  .modal-close { width: 42px; height: 42px; }
  .modal-console { width: 100%; border-radius: 23px 23px 0 0; }
  .console { min-height: 88dvh; max-height: 94dvh; }
  .console-body { padding: 16px; }
  .console-tab { font-size: 11px; padding: 9px 10px; }
  .console-tab .ico { width: 15px; height: 15px; }
  .match-cols { grid-template-columns: 1fr; gap: 10px; }
  .setting-row { align-items: flex-start; gap: 10px; }
  .seg { max-width: 58vw; flex-wrap: wrap; justify-content: flex-end; }
  .seg button { min-height: 40px; padding: 8px 11px; }
  .vol-range { width: min(44vw, 190px); }
  .vault-grid, .lesson-cards { grid-template-columns: 1fr; }
  .vault-hero { padding-top: 4px; }
  .avatar-list { display: grid; grid-template-columns: 1fr 1fr; }
  .avatar-card-lg { min-width: 0; }
  .avatar-card-lg canvas { width: 64px; height: 64px; }
  #av-canvas { height: min(330px, 43dvh); }
  .avatar-layout-simple { grid-template-columns: 1fr; }

  #pinball-screen .pin-stage { padding: max(6px, env(safe-area-inset-top)) 5px max(6px, env(safe-area-inset-bottom)); }
  .pin-ctl { top: max(8px, env(safe-area-inset-top)); min-width: 44px; height: 44px; }
  .pin-ctl-exit { right: max(8px, env(safe-area-inset-right)); }
  .pin-ctl-pause { left: max(8px, env(safe-area-inset-left)); }
  .pin-ctl-bang { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); }
  #pin-ov { padding: max(58px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); gap: 8px; overflow-y: auto; }
  .pin-ov-logo { width: 46px; margin: 8px; }
  .pin-ov-title { font-size: clamp(30px, 11vw, 46px); }
  .pin-ov-hook, .pin-ov-info { font-size: 12px; }
  .pin-ov-keys { font-size: 10.5px; }
}

@media (max-width: 420px) {
  .title-sub br { display: none; }
  .objective-chip { max-width: calc(100vw - 146px); }
  .coin-pill { min-width: 92px; }
  .hud-icon-btn { width: 37px; height: 37px; }
  #btn-sound { right: 80px; }
  #btn-notif { right: 40px; }
  .move-stick { width: 102px; height: 102px; }
  .mobile-interact { width: 84px; min-height: 66px; }
  .hud-bl { bottom: calc(190px + env(safe-area-inset-bottom)); }
  .cs-preview-card { grid-template-columns: 116px 1fr; }
  #cs-preview { width: 112px; height: 147px; }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 980px) {
  .mobile-controls { display: block; }
  .move-stick { width: 88px; height: 88px; bottom: calc(68px + env(safe-area-inset-bottom)); }
  .move-stick-knob { width: 40px; height: 40px; margin: -20px; }
  .mobile-interact { width: 78px; min-height: 58px; bottom: calc(75px + env(safe-area-inset-bottom)); }
  .hud-bl { display: flex; left: max(116px, calc(env(safe-area-inset-left) + 116px)); bottom: calc(75px + env(safe-area-inset-bottom)); }
  .dialogue { max-height: calc(100dvh - 70px); }
  .title-card { max-width: 610px; display: grid; grid-template-columns: 100px 1fr; grid-auto-rows: auto; padding: 8px 24px 12px; }
  .title-card .logo-safe { grid-row: 1 / span 5; align-self: center; }
  .title-brandname, .title-vworld, .title-tag-row, .title-sub { grid-column: 2; }
  .title-actions, .title-disclaimer { grid-column: 1 / span 2; }
  .title-actions { flex-direction: row; margin-top: 8px; }
  .title-disclaimer { margin-top: 6px; }
  .title-vworld { font-size: 44px; }
  .title-sub { margin: 0; }
}
