/* css/game.css — Hexbolt Chroma Stack 3D (Steampunk Brass Rail v2.2 + 16:9 Full-Bleed 3D)
 * 100% Offline MS Store WebView2 Safe: ZERO external CDN URLs, ZERO GPU blur filters!
 * Round 5 Booster Law: `.booster-btn > img.booster-icon` 44px @ 1080p / 38px @ 720p, overflow: visible!
 */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #1A1614;
  color: var(--uiv-text-light, #FAF0D7);
  font-family: var(--uiv-font-body, 'Segoe UI', system-ui, -apple-system, sans-serif);
  user-select: none;
  -webkit-user-select: none;
}

.is-hidden {
  display: none !important;
}

/* Full-Bleed 100vw x 100vh Live 3D Three.js Canvas & VFX Overlays */
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

#vfx-flipbook-canvas,
#vfx-3d-canvas,
#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#vfx-flipbook-canvas { z-index: 22; }
#vfx-3d-canvas { z-index: 24; }
#cutin-canvas { z-index: 60; }

/* =========================================================================
 * HEROIC UNBOXED TITLE SCREEN (Zero login box! Live 3D Turntable + Key Art)
 * ========================================================================= */
#screen-title {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 34px;
  background:
    radial-gradient(circle at 50% 48%, rgba(26, 22, 20, 0.14) 0%, rgba(20, 15, 12, 0.72) 86%),
    url('../assets/art/title_bg.jpg') center / cover no-repeat;
}

.title-top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.title-corner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #FAF0D7;
  overflow: visible !important;
}

.title-corner-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.title-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  max-width: 960px;
}

.title-mascot-wrap {
  position: relative;
  width: clamp(140px, 16vw, 210px);
  height: clamp(140px, 16vw, 210px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#title-hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.title-emblem {
  margin: 0;
  font-family: var(--uiv-font-display, 'Trebuchet MS', 'Segoe UI', sans-serif);
  font-size: clamp(38px, 4.6vw, 70px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #FFF4D4;
  text-shadow:
    0 3px 0 #5E340E,
    0 6px 0 #261408,
    0 12px 24px rgba(0, 0, 0, 0.72);
}

.title-subtitle {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F7CA66;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.title-bottom-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#title-loader {
  width: min(440px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loader-track {
  width: 100%;
  height: 28px;
  padding: 2px;
  display: flex;
  align-items: center;
}

.loader-fill {
  height: 100%;
  width: 0%;
  transition: width 140ms ease;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  color: #FAF0D7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#btn-play-main {
  min-width: 248px;
  min-height: 62px;
  padding: 8px 42px;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
 * GAMEPLAY FLOATING HUD (Compact nowrap Top Bar, 720p & 1080p zero-clip!)
 * ========================================================================= */
#hud-layer {
  position: fixed;
  inset: 0;
  z-index: 28;
  pointer-events: none;
}

.top-hud-bar {
  position: fixed;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 32;
}

.hud-group-left,
.hud-group-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  pointer-events: auto;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 2px 10px;
  border-width: 6px 10px !important;
  border-image-width: 6px 10px !important;
  font-size: clamp(12.5px, 0.95vw, 15px);
  font-weight: 800;
  color: #FAF0D7;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.hud-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 2px 10px;
  border-width: 6px 10px !important;
  border-image-width: 6px 10px !important;
  font-size: clamp(12.5px, 0.92vw, 15px);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible !important;
}

.hud-nav-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 96px;
}

.hud-nav-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-width: 6px 6px !important;
  border-image-width: 6px 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #FAF0D7;
  flex-shrink: 0;
  overflow: visible !important;
}

.hud-icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hud-icon-btn.is-muted {
  opacity: 0.55;
  filter: grayscale(0.6);
}

#btn-quit-game {
  height: 40px;
  min-width: 64px;
  padding: 2px 12px;
  border-width: 6px 10px !important;
  border-image-width: 6px 10px !important;
  font-size: clamp(12.5px, 0.92vw, 15px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible !important;
}

/* Red-Dot Notification Badge (strictly unclipped!) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #D93832;
  border: 2px solid #FFF2C9;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Compact Collapsible Floating Right Brass Gauge (<= 16% width, NOT a full-height sidebar!) */
#right-gauge {
  position: fixed;
  top: 64px;
  right: 14px;
  width: 196px;
  padding: 8px 10px;
  pointer-events: auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#right-gauge.is-collapsed .gauge-content {
  display: none;
}

.gauge-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gauge-title-txt {
  font-size: 13px;
  font-weight: 900;
  color: #F7CA66;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gauge-min-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #B87333;
  border-radius: 6px;
  background: #2E231D;
  color: #FAF0D7;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.gauge-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gauge-lock-line,
.gauge-open-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(18, 13, 10, 0.55);
  border: 1px solid rgba(184, 115, 51, 0.45);
  font-size: 13px;
  font-weight: 800;
  color: #FAF0D7;
}

.gauge-lock-line.is-open {
  border-color: rgba(74, 222, 128, 0.55);
  color: #9CF7BE;
}

.gauge-ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.ledger-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(18, 13, 10, 0.55);
  border: 1px solid rgba(184, 115, 51, 0.35);
  font-size: 13px;
  font-weight: 800;
}

.ledger-dot.is-done {
  border-color: #E69B24;
  color: #FFE499;
}

.ledger-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  flex-shrink: 0;
}

/* =========================================================================
 * BOTTOM 6-TOOL TACTILE BRASS DOCK (Round 5 Booster Law: ZERO ANT_ICON!)
 * Main `<img class="booster-icon">` FIRST (`44px @ 1080p` / `38px @ 720p`)!
 * ========================================================================= */
.bottom-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  pointer-events: auto;
  z-index: 32;
}

.booster-btn {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: visible !important;
  color: #FAF0D7;
}

.booster-btn > img.booster-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.booster-lbl {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  color: #FFF4D4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booster-hotkey {
  position: absolute;
  top: -7px;
  left: -6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #231A15;
  border: 1px solid #D49B35;
  color: #FFE499;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  pointer-events: none;
}

.booster-cost-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 9px;
  background: #241913;
  border: 1.5px solid #E69B24;
  color: #FFF3CF;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 12;
}

.booster-cost-badge img.booster-chip {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.booster-btn.is-active {
  filter: brightness(1.16);
  box-shadow: 0 0 0 2px #F5B041;
}

/* =========================================================================
 * STAGE-1 SPOTLIGHT FTUE (Non-blocking pointer-hand + Skip on bottom strip!)
 * ========================================================================= */
#ftue-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 44;
}

#ftue-ring {
  position: fixed;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #F5B041;
  box-shadow: 0 0 0 6px rgba(245, 176, 65, 0.34);
  pointer-events: none;
  animation: uivSpotlightPulse 1.25s ease-in-out infinite;
}

#ftue-hand {
  position: fixed;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.ftue-bottom-strip {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(34, 25, 20, 0.94);
  border: 2px solid #E69B24;
  pointer-events: auto;
  z-index: 46;
}

#ftue-pill {
  font-size: 15px;
  font-weight: 800;
  color: #FFF4D4;
  white-space: nowrap;
}

#btn-tut-skip {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 6px;
  border: 1.5px solid #B87333;
  background: #3B2D25;
  color: #FFE499;
  cursor: pointer;
}

/* =========================================================================
 * MODALS (9-Slice Steampunk Brass Rail + Anti-SaaS 60/25/15 Cards, 0 blur!)
 * ========================================================================= */
#modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 12, 10, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-root {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-shell,
.dlg-shell {
  width: min(940px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
  color: #1E1713;
}

.modal-shell-compact {
  width: min(680px, 92vw);
}

.modal-head,
.dlg-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.modal-ribbon,
.dlg-ribbon {
  padding: 4px 36px;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.05em;
  text-align: center;
}

.modal-close-x,
.dlg-close-x {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal-close-x img,
.dlg-close-x img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-tabs,
.dlg-tabs,
.vt-subtabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-tab,
.dlg-tab,
.vt-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2px solid #8C5623;
  background: #362821;
  color: #FAF0D7;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.vt-mini-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.modal-body,
.dlg-body {
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  padding: 4px;
}

/* Balanced Modal Grids (strict minmax(0, 1fr) containment!) */
.vt-grid {
  display: grid;
  gap: 10px;
}
.vt-grid > * {
  min-width: 0;
  max-width: 100%;
}
.vt-grid-1 { grid-template-columns: minmax(0, 1fr); }
.vt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vt-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.vault-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px 10px;
  min-height: 184px;
  text-align: center;
  color: #1E1713;
}

.vt-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #2C1E16;
  color: #FFE499;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  z-index: 4;
}

.vt-art {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-hero-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.32));
}

.vt-head {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  color: #1E1713;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vt-meta {
  font-size: 13px;
  font-weight: 800;
  color: #4D3117;
}

.vt-chips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 900;
  color: #2A1C12;
  font-variant-numeric: tabular-nums;
}

.vt-chip-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.vt-chip-img.is-dim {
  opacity: 0.25;
  filter: grayscale(1);
}

.vt-cta {
  width: 100%;
  min-height: 38px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
}

.vt-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vt-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 2px solid #8C5623;
  background: #FFF9EB;
  color: #1E1713;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

/* Pass Hero Banner */
.vt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin-bottom: 10px;
  color: #FAF0D7;
}

.vt-banner .vt-head { color: #FAF0D7; text-align: left; }
.vt-banner .vt-meta { color: #F7CA66; text-align: left; }

.vt-banner-ico {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.vt-banner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vt-prog-outer {
  width: 100%;
  height: 20px;
  padding: 1px;
  display: flex;
  align-items: center;
}

.vt-prog-inner {
  height: 100%;
  min-width: 8px;
  transition: width 220ms ease;
}

.vt-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vt-prem-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #4A3214;
  border: 1.5px solid #F5B041;
  color: #FFE499;
  font-size: 13px;
  font-weight: 900;
}

/* Settings & Exit Layout */
.stg-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-group {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #FAF0D7;
}

.stg-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stg-lbl,
.stg-lbl-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #FAF0D7;
}

.stg-range {
  flex: 1;
  max-width: 240px;
  accent-color: #E69B24;
  cursor: pointer;
}

.stg-toggle {
  min-width: 70px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #8C5623;
  background: #2C211B;
  color: #C7B299;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.stg-toggle.is-on {
  background: #2E8B8B;
  border-color: #82E6DF;
  color: #FFFFFF;
}

.stg-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.stg-lang-btn {
  padding: 6px 8px;
  border-radius: 7px;
  border: 1.5px solid #8C5623;
  background: #2C211B;
  color: #FAF0D7;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stg-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.stg-actions > button {
  min-height: 46px;
  font-size: 15px;
}

/* Floating Toast Notification */
#toast-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translate(-50%, -12px);
  padding: 8px 20px;
  border-radius: 10px;
  background: #251B16;
  border: 2px solid #E69B24;
  color: #FFF4D4;
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  z-index: 75;
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast-banner.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Preview-Only [DEV F2] Panel */
.dev-f2-pill {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 85;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1.5px solid #F5B041;
  background: #231914;
  color: #F5B041;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dev-f2-panel {
  position: fixed;
  left: 12px;
  bottom: 48px;
  z-index: 86;
  width: 224px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #F5B041;
  background: #1C1512;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-f2-head {
  font-size: 12px;
  font-weight: 900;
  color: #F5B041;
  text-align: center;
}

.dev-f2-panel button {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #8C5623;
  background: #31231B;
  color: #FAF0D7;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* 720p Desktop Compact Media Query (Zero Overflow, Round 5 38px Booster Icons!) */
@media (max-width: 1366px), (max-height: 768px) {
  .top-hud-bar { top: 6px; left: 8px; right: 8px; gap: 4px; }
  .hud-group-left, .hud-group-right { gap: 4px; }
  .hud-pill { height: 36px; padding: 1px 7px; font-size: 12px; gap: 4px; border-width: 5px 7px !important; border-image-width: 5px 7px !important; }
  .hud-pill img { width: 17px; height: 17px; }
  .hud-nav-btn { height: 36px; padding: 1px 7px; font-size: 12px; gap: 4px; border-width: 5px 7px !important; border-image-width: 5px 7px !important; }
  .hud-nav-btn > span { max-width: 78px; }
  .hud-nav-btn img { width: 17px; height: 17px; }
  .hud-icon-btn { width: 36px; height: 36px; border-width: 5px 5px !important; border-image-width: 5px 5px !important; }
  .hud-icon-btn img { width: 18px; height: 18px; }
  #btn-quit-game { height: 36px; min-width: 58px; padding: 1px 10px; font-size: 12px; border-width: 5px 8px !important; border-image-width: 5px 8px !important; }
  .bottom-dock { bottom: 10px; gap: 8px; }
  .booster-btn { width: 70px; height: 70px; }
  .booster-btn > img.booster-icon { width: 38px; height: 38px; }
  .booster-lbl { font-size: 12px; }
  .vault-tile { min-height: 162px; }
  .vt-art { height: 68px; }
  .vt-hero-img { width: 64px; height: 64px; }
}

@media (max-width: 900px) {
  .vt-grid-4, .vt-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #right-gauge { display: none; }
}

/* v1.1-v1.3 Seasons Expansion Utilities + TrackBVisualTier (Tier 0 -> Tier 4, ZERO GPU blur!) */
.vt-seed-input {
  width: 118px;
  height: 36px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 2px solid #B87333;
  background: #FFF9EB;
  color: #1E1713;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

#hud-layer.is-photo-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.photo-mode-strip {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.photo-mode-strip > button {
  min-height: 40px;
  padding: 4px 16px;
  font-size: 14px;
}

.stg-ver-foot {
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #6B4D30;
}

.uiv-tier-0 {
  box-shadow: none;
}
.uiv-tier-1 {
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.55);
}
.uiv-tier-2 {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.65);
}
.uiv-tier-3 {
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.85), 0 0 10px rgba(245, 158, 11, 0.35);
}
.uiv-tier-4 {
  box-shadow: inset 0 0 0 2px rgba(244, 63, 94, 0.9), 0 0 14px rgba(250, 204, 21, 0.45);
}
