/* css/game.css — Goldenacre: Harvest Evolution
 * UI Vault: vibrant_popout_tycoon · Offline-clean (ZERO external Google Fonts!)
 * Zero backdrop-filter: blur, strict flex-scroll modals, overflow: visible on badged buttons.
 */

:root {
  --font-display: 'Trebuchet MS', 'Segoe UI Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --cream: #FDF7E4;
  --wheat-gold: #DCC279;
  --honey-ochre: #BCA060;
  --cocoa: #5A3E36;
  --cocoa-deep: #3A241B;
  --ink-dark: #181C2E;
  --sun-yellow: #FFD52E;
  --meadow-green: #6CE21C;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

.hidden {
  display: none !important;
}

button, select, input {
  font-family: var(--font-display);
}

/* Override font-family from ui_theme.css to crisp offline stack */
:root, [data-ui-vault-style='vibrant_popout_tycoon'] {
  --uiv-font-display: 'Trebuchet MS', 'Segoe UI Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --uiv-font-body: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
}

/* ==================== TITLE SCREEN (Heroic No-Box Key Art) ==================== */
#title-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 36px;
}

.title-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.title-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 248, 224, 0.08) 0%, rgba(74, 46, 22, 0.34) 100%);
}

#title-screen.is-modal-open .title-hero-stack,
#title-screen.is-modal-open .title-mascot-stage,
#title-screen.is-modal-open .title-cta-area {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.title-corner-dock {
  position: relative;
  z-index: 5;
  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;
  height: 44px;
  min-width: 48px;
  padding: 0 12px;
  border-width: 10px 12px 12px 12px !important;
  border-image-width: 10px 12px 12px 12px !important;
  font-size: 14px;
  font-weight: 800;
  overflow: visible !important;
  filter: drop-shadow(0 3px 0 rgba(42, 24, 12, 0.35));
}

.title-corner-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

/* Strictly NO box background or border around h1 (Heroic No-Box Title Law) */
.title-hero-stack {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  margin-top: -10px;
}

.title-main-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.02;
  color: #FFF9EE;
  -webkit-text-stroke: 3px #5A3E36;
  text-shadow: 0 5px 0 #5A3E36, 0 10px 22px rgba(58, 34, 18, 0.45);
}

.title-sub-emblem {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFD52E;
  -webkit-text-stroke: 1.5px #4D2F1C;
  text-shadow: 0 3px 0 #4D2F1C;
}

.title-mascot-stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin: 6px 0;
  pointer-events: none;
}

.title-hero-portrait {
  width: clamp(260px, 28vw, 390px);
  height: clamp(165px, 18vw, 248px);
  object-fit: contain;
  filter: drop-shadow(0 8px 6px rgba(54, 32, 16, 0.35));
}

.title-calf-portrait {
  width: clamp(86px, 10vw, 124px);
  height: clamp(86px, 10vw, 124px);
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 5px rgba(54, 32, 16, 0.32));
}

.title-cta-area {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 78px;
}

#btn-title-play {
  min-width: 248px;
  height: 70px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #1A2410;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 6px 0 rgba(42, 24, 12, 0.42));
  overflow: visible !important;
}

#title-loading {
  width: min(360px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.loading-label-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: #FFF9EE;
  text-shadow: 0 2px 0 #4D2F1C;
}

.loading-track {
  width: 100%;
  height: 28px;
  position: relative;
  border-width: 7px 10px 7px 10px !important;
  border-image-width: 7px 10px 7px 10px !important;
  padding: 0;
}

.loading-fill {
  height: 100%;
  width: 0%;
  transition: width 0.14s ease-out;
  border-width: 5px 6px 5px 6px !important;
  border-image-width: 5px 6px 5px 6px !important;
}

/* ==================== GAMEPLAY FULL-BLEED CANVAS ==================== */
#gameplay-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: pointer;
  z-index: 1;
}

#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 55;
  display: none;
}

#ui-motion-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}

/* ==================== FLOATING HUD (pointer-events: none wrapper!) ==================== */
.hud-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px 12px;
}

#hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 52px;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 10px 0 6px;
  border-width: 10px 14px 10px 14px !important;
  border-image-width: 10px 14px 10px 14px !important;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible !important;
  filter: drop-shadow(0 3px 0 rgba(36, 20, 10, 0.35));
  transition: box-shadow 0.16s ease-out;
}

.hud-pill.is-gain-glow {
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(255, 213, 46, 0.92), 0 0 12px rgba(255, 213, 46, 0.45);
}

.hud-pill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.hud-btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 46px;
  padding: 0 10px;
  border-width: 10px 10px 14px 10px !important;
  border-image-width: 10px 10px 14px 10px !important;
  font-size: clamp(12px, 1.0vw, 14px);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible !important;
  filter: drop-shadow(0 3px 0 rgba(36, 20, 10, 0.34));
}

.hud-btn > span {
  display: inline-block;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.hud-btn.uiv-vibrant_popout_tycoon-btn-primary,
.hud-btn.uiv-vibrant_popout_tycoon-btn-claim {
  color: #FFFFFF;
  text-shadow: 0 2px 0 #181C2E, -1px -1px 0 #181C2E, 1px -1px 0 #181C2E, -1px 1px 0 #181C2E, 1px 1px 0 #181C2E;
}

.hud-btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.hud-btn-sq {
  width: 46px;
  padding: 0;
}

.hud-btn.is-muted {
  opacity: 0.72;
}

/* Reactive Red-Dot Badge (NEVER clipped!) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #FF3B4E;
  border: 2px solid #FFFDF5;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Floating Active Order Pill (Top-Center under top bar) */
#hud-objective-pill {
  pointer-events: auto;
  align-self: center;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-width: 9px 14px 9px 14px !important;
  border-image-width: 9px 14px 9px 14px !important;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  overflow: visible !important;
  filter: drop-shadow(0 3px 0 rgba(36, 20, 10, 0.32));
}

#hud-objective-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

/* ==================== BOTTOM COMPACT FLEET & OPS DOCK ==================== */
#hud-dock {
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 2px;
}

.dock-tile {
  pointer-events: auto;
  position: relative;
  width: 86px;
  height: 86px;
  padding: 1px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  border-width: 7px 7px 10px 7px !important;
  border-image-width: 7px 7px 10px 7px !important;
  overflow: visible !important;
  transition: transform 0.12s ease-out;
  filter: drop-shadow(0 4px 0 rgba(36, 20, 10, 0.38));
}

.dock-tile:hover {
  transform: translateY(-3px);
}

.dock-tile.is-selected {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 6px 0 rgba(255, 213, 46, 0.72));
}

.dock-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
  margin-top: 0;
  margin-bottom: 1px;
}

.dock-label {
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #181C2E;
  line-height: 1.05;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-key {
  position: absolute;
  top: -1px;
  left: -1px;
  min-width: 17px;
  height: 16px;
  padding: 0 3px;
  border-radius: 6px;
  background: #181C2E;
  border: 1.5px solid #FFD52E;
  color: #FFD52E;
  font-size: 10px;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

.dock-sub-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 19px;
  max-width: 48px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #FFD52E;
  border: 1.5px solid #181C2E;
  color: #181C2E;
  font-size: 10px;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 4;
}

/* ==================== FLEX-SCROLL MODALS (Anti-SaaS 60/25/15) ==================== */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(24, 18, 12, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  padding: 6px 10px 10px;
  cursor: default !important;
  background-color: #FAF9EE !important;
  background-clip: padding-box;
  border-radius: 22px;
  filter: drop-shadow(0 12px 24px rgba(24, 16, 8, 0.5));
}

.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2px 48px 8px;
  min-height: 54px;
}

.modal-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  max-width: 72%;
  padding: 4px 22px;
  border-width: 14px 20px 13px 20px !important;
  border-image-width: 14px 20px 13px 20px !important;
  background-color: #0976F8 !important;
  background-clip: padding-box;
  border-radius: 10px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 0 rgba(10, 26, 70, 0.65);
  cursor: default !important;
}

.modal-close-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-x img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
}

.modal-help-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-width: 8px 8px 11px 8px !important;
  border-image-width: 8px 8px 11px 8px !important;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-tab {
  min-width: 136px;
  height: 42px;
  padding: 0 14px;
  border-width: 9px 10px 11px 10px !important;
  border-image-width: 9px 10px 11px 10px !important;
  background-color: #8832FF !important;
  background-clip: padding-box;
  border-radius: 10px;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 0 rgba(36, 12, 74, 0.72);
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-tab.is-active {
  background-color: #0A82FA !important;
  background-clip: padding-box;
  border-radius: 10px 10px 2px 2px;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 0 rgba(10, 26, 70, 0.75);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 4px 6px;
}

.modal-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 8px;
}

.modal-footer button {
  min-width: 160px;
  height: 48px;
  padding: 0 18px;
  border-width: 11px 12px 15px 12px !important;
  border-image-width: 11px 12px 15px 12px !important;
  font-size: 16px;
  font-weight: 900;
}

/* Visual-First 60/25/15 Card Grids */
.vf-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.vf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: 0 auto;
}

.vf-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vf-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-daily-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 2px 14px;
  border-width: 12px 14px 14px 14px !important;
  border-image-width: 12px 14px 14px 14px !important;
  cursor: default !important;
}

.daily-banner-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.daily-banner-title {
  font-size: 16px;
  font-weight: 900;
  color: #181C2E;
}

.daily-banner-btn {
  min-width: 112px;
  height: 38px;
  border-width: 8px 10px 12px 10px !important;
  border-image-width: 8px 10px 12px 10px !important;
  font-size: 14px;
  font-weight: 900;
  margin-left: auto;
}

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

.vf-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px 6px;
  min-height: 204px;
  border-width: 12px 12px 18px 12px !important;
  border-image-width: 12px 12px 18px 12px !important;
  background-color: #FFFDF5 !important;
  background-clip: padding-box;
  border-radius: 14px;
  text-align: center;
  overflow: visible !important;
}

.vf-card-top, .szn-head {
  width: 100%;
  min-height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vf-lv-badge, .vf-tag-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  background: #181C2E;
  color: #FFD52E;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.vf-art-wrap {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.vf-card-art, .szn-art {
  width: 82px;
  height: 82px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(32, 20, 10, 0.25));
}

.vf-card-title, .szn-title {
  width: 100%;
  font-size: 15px;
  font-weight: 900;
  color: #181C2E;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.szn-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 12px;
  background: #FFF6E0;
  border: 2px solid #BCA060;
  border-radius: 12px;
}

.szn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 900;
  color: #3A241B;
  white-space: nowrap;
}

.szn-meter {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 9px;
  background: #3A241B;
  border: 2px solid #5A3E36;
  overflow: hidden;
}

.szn-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #6CE21C, #FFD52E);
  border-radius: 7px;
}

.szn-meter-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #181C2E;
}

.vf-stat-chip {
  font-size: 13px;
  font-weight: 800;
  color: #6B3F19;
  line-height: 1.1;
}

.vf-reward-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #181C2E;
  font-variant-numeric: tabular-nums;
}

.chip-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.vf-prog-wrap {
  position: relative;
  width: 100%;
  height: 24px;
  border-width: 6px 8px 6px 8px !important;
  border-image-width: 6px 8px 6px 8px !important;
  display: flex;
  align-items: center;
}

.vf-prog-fill {
  height: 100%;
  border-width: 4px 5px 4px 5px !important;
  border-image-width: 4px 5px 4px 5px !important;
}

.vf-prog-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #181C2E;
}

.vf-cta {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border-width: 9px 10px 13px 10px !important;
  border-image-width: 9px 10px 13px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
}

.vf-cta:disabled {
  cursor: default;
  opacity: 0.78;
}

/* Settings Layout (Zero SaaS prose walls) */
.set-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  margin: 4px auto;
}

.set-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFF6E0;
  border: 2.5px solid #BCA060;
  border-radius: 14px;
}

.set-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.set-label {
  font-size: 16px;
  font-weight: 900;
  color: #3A241B;
  min-width: 112px;
}

.set-line input[type='range'] {
  flex: 1 1 auto;
  accent-color: #6CE21C;
  height: 8px;
}

.set-toggle {
  min-width: 78px;
  height: 38px;
  border-width: 8px 10px 11px 10px !important;
  border-image-width: 8px 10px 11px 10px !important;
  font-size: 13px;
  font-weight: 900;
  margin-left: auto;
}

.set-select {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 2.5px solid #5A3E36;
  background: #FFFDF5;
  font-size: 15px;
  font-weight: 800;
  color: #181C2E;
}

/* Visual 3-Icon Guide Strip */
.guide-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 6px;
}

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

.guide-step-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.guide-step-label {
  font-size: 15px;
  font-weight: 900;
  color: #181C2E;
  text-align: center;
}

.guide-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.guide-arrow-svg {
  display: block;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 0 rgba(58, 36, 27, 0.32));
}

/* Exit Retention Modal */
.exit-headline {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #4A2B16;
  margin: 2px 0 12px;
}

.exit-saved-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.exit-saved-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

/* ==================== NON-BLOCKING VISUAL SPOTLIGHT FTUE ==================== */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.tut-spotlight {
  position: fixed;
  border: 4px solid #FFD52E;
  border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(90, 56, 24, 0.55);
  pointer-events: none;
  animation: tutPulse 1.1s ease-in-out infinite;
}

.tut-hand {
  position: fixed;
  width: 44px;
  height: 44px;
  pointer-events: none;
  animation: tutBounce 0.9s ease-in-out infinite;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
}

.tut-callout {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-width: 10px 14px 10px 14px !important;
  border-image-width: 10px 14px 10px 14px !important;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tut-skip-btn {
  pointer-events: auto;
  position: fixed;
  top: 68px;
  right: 18px;
  height: 36px;
  padding: 0 14px;
  border-width: 8px 10px 10px 10px !important;
  border-image-width: 8px 10px 10px 10px !important;
  font-size: 13px;
  font-weight: 900;
}

@keyframes tutPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes tutBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, -10px); }
}

/* ==================== PREVIEW-ONLY [DEV F2] ==================== */
#dev-f2-mount {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 90;
  pointer-events: auto;
}

.dev-pill {
  background: rgba(24, 28, 46, 0.85);
  color: #FFD52E;
  border: 2px solid #FFD52E;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.debug-panel {
  margin-top: 6px;
  background: rgba(24, 28, 46, 0.94);
  color: #FFFDF5;
  border: 2px solid #FFD52E;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 154px;
}

.dbg-head {
  font-size: 12px;
  font-weight: 900;
  color: #FFD52E;
}

.debug-panel button {
  background: #303b5c;
  color: #FFFFFF;
  border: 1px solid #6b7aa1;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Compact Desktop 1280x720 Tuning */
@media (max-width: 1366px), (max-height: 780px) {
  .hud-group { gap: 6px; }
  .hud-pill { height: 42px; font-size: 14px; padding: 0 8px 0 5px; }
  .hud-btn { height: 42px; padding: 0 8px; font-size: 13px; }
  .hud-btn > span { max-width: 72px; }
  .hud-btn-sq { width: 42px; padding: 0; }
  .dock-tile { width: 78px; height: 78px; }
  .dock-icon { width: 32px; height: 32px; }
  .dock-sub-badge { max-width: 44px; font-size: 9.5px; padding: 0 3px; }
  .modal-card { max-height: 92vh; padding: 4px 10px 8px; }
  .modal-header { min-height: 46px; padding: 2px 44px 4px; }
  .modal-tabs { margin-bottom: 6px; gap: 8px; }
  .modal-tab { min-width: 116px; height: 36px; font-size: 13px; }
  .szn-top-strip { margin-bottom: 6px; padding: 3px 10px; }
  .szn-pill { font-size: 12px; }
  .vf-grid { gap: 8px; }
  .vf-game-card { min-height: 158px; gap: 2px; padding: 2px 6px 4px; border-width: 10px 10px 14px 10px !important; border-image-width: 10px 10px 14px 10px !important; }
  .vf-art-wrap { min-height: 58px; }
  .vf-card-art, .szn-art { width: 60px; height: 60px; }
  .vf-cta { height: 34px; font-size: 13px; }
}

@media (max-width: 900px) {
  .vf-grid-4, .vf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-btn > span { display: none; }
}
