/* ==========================================================================
 * css/style.css — Birchpeg Bolt Quest (b2d456176075)
 * UI Vault Style: steampunk_brass_rail · Archetype: cozy_pastel_storybook
 * 100% Offline Fonts · ZERO external Google Fonts · ZERO backdrop-filter: blur
 * Round 5 Spatial Proportions + Anti-SaaS 60/25/15 Modals + 9-Lang Safe (720p/1080p)
 * ========================================================================== */

:root {
  --bp-font-display: 'Trebuchet MS', Georgia, 'Palatino Linotype', 'Segoe UI', system-ui, sans-serif;
  --bp-font-body: 'Segoe UI', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --bp-cream: #FAF0D7;
  --bp-ink-dark: #1E140C;
  --bp-cocoa: #3E2414;
  --bp-brass: #E69B24;
  --bp-emerald: #34D399;
  --uiv-font-display: var(--bp-font-display);
  --uiv-font-body: var(--bp-font-body);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #1E1713;
  color: var(--bp-cream);
  font-family: var(--bp-font-body);
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

button {
  font-family: var(--bp-font-display);
  overflow: visible !important;
  position: relative;
}

button > span {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-chip {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 20px;
  pointer-events: none;
}

/* ==========================================================================
 * 1. Real 0-100% Boot Loading Overlay
 * ========================================================================== */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 42%, #3D2B1F 0%, #1B130E 100%);
  transition: opacity 260ms ease;
}

.boot-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-ribbon {
  padding: 8px 36px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.02em;
}

.boot-bar-wrap {
  width: min(420px, 80vw);
  height: 30px;
  padding: 2px;
  display: flex;
  align-items: center;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  min-width: 12px;
  border-width: 6px 14px !important;
  border-image-width: 6px 14px !important;
  transition: width 140ms ease-out;
}

.boot-pct {
  font-family: var(--bp-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-cream);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
 * 2. Heroic No-Box Title Screen (0 BOXED_LOGIN_TITLE_SCREEN!)
 * ========================================================================== */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100vh;
  background: url("../assets/art/title_bg.jpg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px 26px;
}

.title-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(28, 18, 10, 0.14) 0%, rgba(22, 14, 8, 0.56) 100%);
  pointer-events: none;
}

.title-top-bar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title-util-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.title-util-pill {
  height: 40px;
  padding: 4px 14px;
  border-width: 6px 16px 6px 12px !important;
  border-image-width: 6px 16px 6px 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bp-cream);
  cursor: pointer;
}

/* Open Heroic Stage: STRICTLY transparent, ZERO box border around h1! */
.title-center-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin: auto 0;
}

.title-mascot-stage {
  position: relative;
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.title-mascot-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(20, 12, 6, 0.48));
}

.game-title {
  margin: 0;
  font-family: var(--bp-font-display);
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  color: #FFF8E6;
  -webkit-text-stroke: 2.5px #3E2211;
  text-shadow: 0 4px 0 #3E2211, 0 8px 16px rgba(16, 10, 5, 0.65);
  letter-spacing: 0.01em;
}

.game-subtitle {
  margin: -4px 0 4px;
  font-family: var(--bp-font-display);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 800;
  color: #FCE5B4;
  text-shadow: 0 2px 4px rgba(14, 8, 4, 0.85);
}

.title-mode-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.mode-pill-btn {
  height: 40px;
  padding: 4px 18px;
  border-width: 7px 14px !important;
  border-image-width: 7px 14px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bp-cream);
  cursor: pointer;
}

.title-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.title-play-cta {
  min-width: 268px;
  height: 56px;
  padding: 6px 32px;
  border-width: 12px 38px !important;
  border-image-width: 12px 38px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 900;
  color: var(--bp-ink-dark);
}

.title-secondary-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-sec-btn {
  height: 44px;
  padding: 4px 18px;
  border-width: 9px 22px !important;
  border-image-width: 9px 22px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  background-color: #1F5B5B;
  color: #FFFDF5 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
 * 3. Full-Bleed 16:9 Gameplay Screen + Floating Corner HUD (Single-Row!)
 * ========================================================================== */
.game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
}

/* Grounded Mascot Companion (Bottom-Left Workbench, pointer-events: none) */
.workshop-mascot-dock {
  position: fixed;
  left: 12px;
  bottom: 8px;
  width: 196px;
  height: 215px;
  z-index: 18;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#mascot-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Floating Top HUD — strictly single-row nowrap at 1920x1080 and 1280x720! */
.top-hud {
  position: fixed;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hud-cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  pointer-events: none;
}

.hud-pill-box {
  pointer-events: auto;
  height: 40px;
  padding: 3px 12px;
  border-width: 6px 14px 6px 10px !important;
  border-image-width: 6px 14px 6px 10px !important;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bp-cream);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hud-clickable {
  cursor: pointer;
}

.hud-clickable.is-armed {
  outline: 2px solid var(--bp-emerald);
  outline-offset: 1px;
}

.hud-mini-bar {
  width: 68px;
  height: 14px;
  padding: 1px;
  border-width: 4px 6px !important;
  border-image-width: 4px 6px !important;
  display: inline-flex;
  align-items: center;
}

.hud-mini-fill {
  height: 100%;
  width: 10%;
  border-width: 3px 5px !important;
  border-image-width: 3px 5px !important;
  transition: width 160ms ease;
}

.hud-icon-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 4px;
  border-width: 4px 4px !important;
  border-image-width: 4px 4px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--bp-cream);
  overflow: visible !important;
}

.hud-icon-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}

/* ==========================================================================
 * 4. Bottom Centered Workshop Tool Dock (Compact 72x76px, 58-68% Icon Fill!)
 * ========================================================================== */
.tool-dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 10px;
  pointer-events: none;
}

.tool-btn {
  pointer-events: auto;
  width: 98px;
  height: 86px;
  flex: 0 0 98px;
  padding: 11px 3px 3px;
  border-width: 4px 3px !important;
  border-image-width: 4px 3px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  overflow: visible !important;
  position: relative;
}

.tool-btn.is-tool-active {
  outline: 3px solid var(--bp-emerald);
  outline-offset: 2px;
  transform: translateY(-4px);
}

.tool-btn img.tool-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 46px;
  pointer-events: none;
}

.tool-btn .tool-lbl {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--bp-cream);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:lang(de) .tool-btn .tool-lbl,
:lang(ru) .tool-btn .tool-lbl,
:lang(fr) .tool-btn .tool-lbl,
:lang(es) .tool-btn .tool-lbl,
:lang(pt-BR) .tool-btn .tool-lbl {
  font-size: 10.5px;
  letter-spacing: -0.025em;
}

.tool-hotkey {
  position: absolute;
  top: 0px;
  left: 2px;
  z-index: 24;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: #2A1D15;
  border: 1.5px solid #D4943A;
  color: #FAF0D7;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  pointer-events: none;
}

.tool-count {
  position: absolute;
  top: 0px;
  right: 1px;
  z-index: 25;
  height: 19px;
  padding: 0 5px;
  border-radius: 9px;
  background: #184E3B;
  border: 1.5px solid #FAF0D7;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.tool-count img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* ==========================================================================
 * 5. Visual Spotlight FTUE Overlay (pointer-events: none except Skip!)
 * ========================================================================== */
.ftue-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.ftue-target-ring {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3.5px solid #34D399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.36);
  pointer-events: none;
  animation: uivSpotlightPulse 1.25s ease-in-out infinite;
}

.ftue-hand-ptr {
  position: fixed;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.ftue-banner-pill {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 20px;
  background: #2A1D15;
  border: 2px solid #F5B041;
  color: #FAF0D7;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
}

.ftue-skip-btn {
  position: fixed;
  top: 60px;
  right: 18px;
  pointer-events: auto;
  height: 36px;
  padding: 4px 14px;
  border-width: 6px 14px !important;
  border-image-width: 6px 14px !important;
  font-size: 13px;
  font-weight: 800;
  background-color: #1F5B5B;
  color: #FFFDF5 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
 * 6. Idle-Hidden Cut-in & Breakout Overlays
 * ========================================================================== */
#cutin-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  pointer-events: none;
  display: none;
}

#ui-motion-host {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
}

#victory-breakout-host {
  position: fixed;
  inset: 0;
  z-index: 1800;
}

/* ==========================================================================
 * 7. Commercial Anti-SaaS 60/25/15 Modals & 3-Icon Feature Guides
 * ========================================================================== */
.modal-backdrop, .fg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 12, 8, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fg-backdrop {
  z-index: 2300;
}

.modal-card {
  position: relative;
  width: min(940px, 94vw);
  max-height: min(640px, 90vh);
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.md-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.md-ribbon {
  padding: 6px 32px 10px;
  border-width: 6px 32px 12px 32px !important;
  border-image-width: 6px 32px 12px 32px !important;
  font-size: clamp(18px, 1.8vw, 24px);
  color: #FFFFFF;
}

.md-header-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.md-help-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-width: 6px 7px !important;
  border-image-width: 6px 7px !important;
  font-size: 18px;
  font-weight: 900;
  color: #FAF0D7;
}

.md-close-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.md-close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.md-body {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.qp-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.qp-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 4px 12px;
  border-width: 7px 14px !important;
  border-image-width: 7px 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.uiv-steampunk_brass_rail-btn-secondary.qp-tab-btn {
  color: var(--bp-ink-dark);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  width: 100%;
}

.shop-grid > * {
  min-width: 0;
  max-width: 100%;
}

.shop-card, .upgrade-card, .qp-card {
  position: relative;
  min-width: 0;
  padding: 12px 10px 10px;
  border-width: 16px 14px !important;
  border-image-width: 16px 14px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: center;
  color: var(--bp-ink-dark);
}

.shop-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  z-index: 6;
  padding: 2px 8px;
  border-radius: 8px;
  background: #B8332A;
  border: 1.5px solid #FAF0D7;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
}

.shop-card-art, .qp-card-art {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex: 0 0 82px;
}

.shop-card-title, .qp-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--bp-ink-dark);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qp-chip-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bp-ink-dark);
}

.qp-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(42, 28, 18, 0.14);
}

.shop-buy-btn, .qp-mini-btn {
  width: 100%;
  height: 38px;
  padding: 4px 10px;
  border-width: 8px 16px !important;
  border-image-width: 8px 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13.5px;
}

/* Quest Passes Hero Banner & Milestone Grid */
.qp-hero-banner {
  padding: 10px 18px;
  border-width: 6px 24px 8px 24px !important;
  border-image-width: 6px 24px 8px 24px !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qp-banner-art {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 58px;
}

.qp-banner-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qp-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #FAF0D7;
}

.qp-xp-bar {
  width: 100%;
  height: 20px;
  padding: 2px;
  border-width: 5px 8px !important;
  border-image-width: 5px 8px !important;
  display: flex;
  align-items: center;
}

.qp-xp-fill {
  height: 100%;
  border-width: 4px 8px !important;
  border-image-width: 4px 8px !important;
}

.qp-banner-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.qp-action-btn {
  height: 40px;
  padding: 4px 14px;
  border-width: 8px 18px !important;
  border-image-width: 8px 18px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.qp-tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.qp-quest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.qp-gift-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qp-code-input {
  width: 132px;
  height: 36px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid #B87333;
  background: #1E140C;
  color: #FAF0D7;
  font-family: var(--bp-font-display);
  font-size: 13.5px;
  font-weight: 700;
}

/* Chapters Level Blueprint Selector */
.chapter-pin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.level-pin-btn {
  height: 76px;
  padding: 6px;
  border-width: 8px 10px !important;
  border-image-width: 8px 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.level-pin-num {
  font-size: 20px;
  font-weight: 900;
  color: #FAF0D7;
}

.level-pin-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #FCE5B4;
}

/* Settings Modal */
.settings-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setting-strip {
  padding: 8px 16px;
  border-width: 5px 18px 6px 18px !important;
  border-image-width: 5px 18px 6px 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setting-lbl {
  font-size: 14px;
  font-weight: 800;
  color: #FAF0D7;
  white-space: nowrap;
}

.setting-strip input[type="range"] {
  flex: 1 1 auto;
  accent-color: #E69B24;
  cursor: pointer;
}

.setting-select {
  height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid #D4943A;
  background: #1E140C;
  color: #FAF0D7;
  font-family: var(--bp-font-body);
  font-size: 13.5px;
  font-weight: 700;
}

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

.settings-act-btn {
  height: 42px;
  padding: 4px 12px;
  border-width: 8px 16px !important;
  border-image-width: 8px 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
}

/* 3-Icon Feature Guides Modal */
.fg-panel {
  width: min(660px, 92vw);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fg-ribbon {
  padding: 6px 30px 10px;
  border-width: 6px 30px 12px 30px !important;
  border-image-width: 6px 30px 12px 30px !important;
  font-size: 20px;
  color: #FFFFFF;
}

.fg-icon-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.fg-step-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  border-width: 6px 6px !important;
  border-image-width: 6px 6px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fg-step-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.fg-step-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #FAF0D7;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:lang(de) .fg-step-lbl,
:lang(ru) .fg-step-lbl,
:lang(fr) .fg-step-lbl,
:lang(es) .fg-step-lbl,
:lang(pt-BR) .fg-step-lbl {
  font-size: 11px;
  letter-spacing: -0.02em;
}

.fg-arrow {
  font-size: 22px;
  font-weight: 900;
  color: #3E2414;
}

.fg-gotit-btn {
  min-width: 180px;
  height: 46px;
  padding: 4px 24px;
  border-width: 10px 26px !important;
  border-image-width: 10px 26px !important;
  font-size: 16px;
}

/* ==========================================================================
 * 8. Preview-Only [DEV F2] Pill & Panel
 * ========================================================================== */
.dev-f2-pill {
  position: fixed;
  bottom: 8px;
  right: 10px;
  z-index: 3200;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #E69B24;
  background: rgba(20, 14, 10, 0.85);
  color: #FCE5B4;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.debug-panel {
  position: fixed;
  bottom: 38px;
  right: 10px;
  z-index: 3200;
  width: 210px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #E69B24;
  background: #1E140C;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.debug-action-btn {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #8E6234;
  background: #332217;
  color: #FAF0D7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.debug-action-btn:hover {
  background: #4A3120;
}

/* ==========================================================================
 * 9. Responsive 1280x720 & <900px Guards (Strict Single-Row Top HUD!)
 * ========================================================================== */
@media (max-width: 1366px) {
  .hud-pill-box {
    padding: 3px 8px;
    border-width: 5px 10px 5px 8px !important;
    border-image-width: 5px 10px 5px 8px !important;
    font-size: 12.5px;
    gap: 5px;
  }
  .hud-mini-bar {
    width: 44px;
  }
  .hud-icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .hud-icon-btn img {
    width: 22px;
    height: 22px;
  }
  .workshop-mascot-dock {
    width: 162px;
    height: 180px;
  }
}

@media (max-width: 960px) {
  .hud-mini-bar {
    display: none;
  }
  .workshop-mascot-dock {
    width: 120px;
    height: 136px;
  }
  .qp-tier-grid, .chapter-pin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qp-quest-grid, .settings-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
