/* css/game.css — Letterpeg: Woodcraft Words (plush_stitched_casual · playstore_glossy_casual)
 * Offline MSIX compliant: ZERO Google Fonts @import, ZERO backdrop-filter: blur()
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-display: 'Fredoka', 'Nunito', 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
  --ink: #4E2A1A;
  --ink-soft: #75462B;
  --cream: #FBEBD1;
  --cream-light: #FFF8EC;
  --oak: #B6764E;
  --walnut: #8C472A;
  --sky: #A7CFD1;
  --gold: #FFD54F;
  --emerald: #55D418;
  --blue: #1E96FC;
  --berry: #F04B6B;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #DFB687;
  font-family: var(--font-body);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}

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

/* ============================================================================
 * 1. HEROIC NO-BOX TITLE SCREEN
 * ========================================================================== */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px 34px;
  overflow: hidden;
  background: transparent;
}

#title-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/art/title_bg.jpg') center bottom / cover no-repeat;
}

/* Seamless sunlit sky cover over upper sky band to keep hero title spotless */
#title-bg-sky-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #64B5F6 0%,
    #7DC5FA 48%,
    #9AD5FC 74%,
    rgba(164, 218, 252, 0.90) 86%,
    rgba(164, 218, 252, 0) 100%
  );
}

.title-corner-dock {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.title-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 38px;
  background: transparent;
  border: none;
  padding: 0;
}

.title-logo {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.5px;
  color: #FFFDF2;
  -webkit-text-stroke: 3px #4E2A1A;
  text-shadow: 0 6px 0 #4E2A1A, 0 12px 24px rgba(78, 42, 26, 0.34);
  margin: 0;
  background: transparent;
  border: none;
}

.title-subtitle {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
  color: #FFFDF5;
  text-shadow: 0 2px 0 #4E2A1A, 0 4px 10px rgba(78, 42, 26, 0.42);
  letter-spacing: 1.5px;
}

.title-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  background: transparent;
  border: none;
}

#title-hero-portrait {
  position: relative;
  width: clamp(170px, 21vh, 240px);
  height: clamp(170px, 21vh, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

#title-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(78, 42, 26, 0.35));
}

#boot-loader {
  width: min(360px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.boot-bar-track {
  width: 100%;
  height: 22px;
  background: #4E2A1A;
  border: 3px solid #FFF8EC;
  border-radius: 999px;
  padding: 2px;
  overflow: hidden;
}

#boot-progress-fill {
  width: 8%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD54F, #55D418);
  transition: width 140ms ease-out;
}

.boot-label-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #FFFDF5;
  text-shadow: 0 2px 0 #4E2A1A;
}

#btn-title-play {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  height: 70px;
  padding: 0 38px;
  border-width: 14px 24px 16px 24px;
  border-image-width: 14px 24px 16px 24px;
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 3px 0 #1B5E15, 0 0 4px #1B5E15;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 6px 8px rgba(78, 42, 26, 0.36));
  transition: transform 140ms ease;
}

#btn-title-play:hover {
  transform: translateY(-2px) scale(1.03);
}

#btn-title-play:active {
  transform: translateY(2px) scale(0.97);
}

/* ============================================================================
 * 2. FULL-BLEED GAMEPLAY PLAYFIELD & FLOATING CORNER HUD
 * ========================================================================== */
#gameplay-screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

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

#vfx-overlay-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 48;
}

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

#hud-top {
  position: fixed;
  top: 10px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  pointer-events: none;
  z-index: 40;
}

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

.hud-pill {
  pointer-events: auto;
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 14px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 4px 0 rgba(78, 42, 26, 0.34);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-pill-uiv {
  pointer-events: auto;
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 14px 10px 14px;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 12px 14px 12px 14px / 0 stretch;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 3px rgba(78, 42, 26, 0.28));
}

.hud-pill-val {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}

.hud-sep {
  width: 2px;
  height: 16px;
  background: rgba(78, 42, 26, 0.25);
  border-radius: 2px;
}

.hud-cur-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-nav-btn {
  pointer-events: auto;
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 13px;
  background: var(--cream-light);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 #7E4826;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 120ms ease;
}

.hud-nav-btn:hover {
  transform: translateY(-2px);
  background: #FFFDF8;
}

.hud-nav-btn:active {
  transform: translateY(2px);
}

.hud-nav-btn.is-shop {
  background: linear-gradient(180deg, #FFE46B 0%, #FFB82E 100%);
}

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

.hud-nav-btn > span.btn-lbl {
  display: inline-block;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-icon-btn {
  pointer-events: auto;
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #A9623B;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 #4E2A1A;
  color: #FFFDF5;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

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

.hud-icon-btn.is-danger {
  background: var(--berry);
}

.notify-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #F04B6B;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

/* ============================================================================
 * 3. COMPACT ROUND-5 WORKSHOP BOOSTER DOCK (Bottom-Right, 68-74px Square!)
 * ========================================================================== */
#booster-dock {
  position: fixed;
  right: 2.6vw;
  bottom: 18px;
  width: clamp(380px, 34vw, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  z-index: 40;
}

.booster-btn {
  pointer-events: auto;
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  padding: 6px;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 8px;
  border-image: url('../assets/ui/vault_plush_stitched_casual/slot_tile.png') 52 60 68 53 fill / 10px / 0 stretch;
  cursor: pointer;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 4px rgba(78, 42, 26, 0.34));
  transition: transform 120ms ease;
}

.booster-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.booster-btn:active {
  transform: translateY(1px) scale(0.95);
}

.booster-btn img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
}

.tool-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: #55D418;
  border: 2.5px solid #4E2A1A;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #1B5E15;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 25;
}

.tool-hotkey {
  position: absolute;
  bottom: -7px;
  left: -4px;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 8px;
  background: #FFF8EC;
  border: 2px solid #4E2A1A;
  color: #4E2A1A;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 25;
}

/* ============================================================================
 * 4. VISUAL FTUE SPOTLIGHT & POINTER HAND (Strictly pointer-events: none!)
 * ========================================================================== */
#ftue-layer {
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 70;
}

#tut-spotlight {
  position: fixed;
  border-radius: 50%;
  border: 5px solid #FFD54F;
  box-shadow: 0 0 0 6px rgba(255, 213, 79, 0.34);
  pointer-events: none;
  opacity: 0;
  animation: tutPulse 1.1s ease-in-out infinite;
}

#tut-hand {
  position: fixed;
  width: 46px;
  height: 46px;
  pointer-events: none;
  opacity: 0;
  animation: tutBob 0.9s ease-in-out infinite;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

#tut-pill {
  position: fixed;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: #FFF8EC;
  border: 3px solid #4E2A1A;
  border-radius: 20px;
  color: #4E2A1A;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 0 #4E2A1A;
}

#btn-tut-skip {
  position: fixed;
  bottom: 24px;
  left: 31vw;
  transform: translateX(-50%);
  pointer-events: auto;
  height: 38px;
  padding: 0 20px;
  background: #FFF8EC;
  border: 3px solid #4E2A1A;
  border-radius: 19px;
  color: #4E2A1A;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #4E2A1A;
}

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

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

/* ============================================================================
 * 5. MODALS FLEX SCROLL + ANTI-SAAS 60/25/15 CARDS
 * ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(46, 24, 12, 0.62);
  z-index: 200;
  padding: 18px;
}

.modal-card {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  width: min(940px, 94vw);
  overflow: hidden;
  border-width: 18px 20px 20px 20px;
  border-image-width: 18px 20px 20px 20px;
  color: var(--ink);
  filter: drop-shadow(0 16px 28px rgba(34, 16, 6, 0.45));
}

.modal-card.is-compact {
  width: min(520px, 92vw);
}

.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 12px;
}

.modal-title-ribbon {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 4px 22px;
  border-width: 10px 28px 12px 28px;
  border-image-width: 10px 28px 12px 28px;
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 2px 0 #4E2A1A;
}

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

.modal-help-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1E96FC;
  border: 3px solid #4E2A1A;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.modal-close-x img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 14px;
}

.tab-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tab-pill {
  min-width: 120px;
  height: 42px;
  padding: 0 18px;
  background: #EAD2B0;
  border: 3px solid #4E2A1A;
  border-radius: 16px;
  color: #4E2A1A;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.tab-pill.is-active {
  background: transparent;
  border-width: 10px 14px 8px 14px;
  border-image-width: 10px 14px 8px 14px;
  color: #4E2A1A;
}

.vf-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}

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

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

.vf-card-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px;
  border-width: 14px 15px 15px 15px !important;
  border-image-width: 14px 15px 15px 15px !important;
  color: var(--ink);
  text-align: center;
  overflow: visible;
}

.vf-art-wrap {
  width: 100%;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vf-card-art,
.vf-hero-art {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(78, 42, 26, 0.25));
}

.vf-card-art.is-locked-art,
.vf-hero-art.is-locked-art {
  filter: grayscale(0.85) opacity(0.55);
}

.vf-card-name,
.vf-name-lbl {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-perk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(182, 118, 78, 0.16);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #5C2F18;
  max-width: 100%;
}

.vf-mini-chip-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-btn-cur-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 4px;
}

.vf-badge, .vf-lv-badge {
  position: absolute;
  top: -10px;
  right: 8px;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  border: 2px solid #4E2A1A;
  z-index: 6;
}

.vf-badge {
  background: #F04B6B;
  color: #FFFFFF;
}

.vf-lv-badge {
  background: #FFD54F;
  color: #4E2A1A;
}

.vf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 4px 12px;
  border-width: 10px 16px 12px 16px !important;
  border-image-width: 10px 16px 12px 16px !important;
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(36, 20, 10, 0.72);
  cursor: pointer;
}

.vf-cta-btn:disabled,
.vf-cta-btn.uiv-plush_stitched_casual-btn-disabled {
  opacity: 0.94;
  color: #3B2012 !important;
  text-shadow: 0 1px 0 rgba(255, 252, 244, 0.88);
  cursor: default;
}

.vf-btn-lock-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 5px;
  flex-shrink: 0;
}

.vf-cta-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Settings, Pause, Victory & Exit Layouts */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.ctrl-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: #FFF8EC;
  border: 3px solid #D4AE84;
  border-radius: 16px;
}

.ctrl-lbl {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  min-width: 120px;
}

.ctrl-line input[type="range"] {
  flex: 1 1 auto;
  accent-color: #55D418;
  cursor: pointer;
}

.toggle-chip {
  min-width: 78px;
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  border: 2.5px solid #4E2A1A;
  background: #D8C2A6;
  color: #4E2A1A;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.toggle-chip.is-on {
  background: #55D418;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #1B5E15;
}

.lang-select {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 3px solid #4E2A1A;
  background: #FFFFFF;
  color: #4E2A1A;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.gift-input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 2px solid #4E2A1A;
  background: #FFFFFF;
  color: #4E2A1A;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.pause-panel, .victory-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.pause-owl-img, .victory-owl-img {
  width: 144px;
  height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(78, 42, 26, 0.3));
}

.pause-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(420px, 100%);
}

.victory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(480px, 100%);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: #FFF8EC;
  border: 3px solid #C89B6E;
  border-radius: 16px;
}

.stat-k {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.stat-chip strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.victory-rewards, .action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.action-bar .vf-cta-btn {
  width: auto;
  min-width: 160px;
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #FFF3C4;
  border: 3px solid #4E2A1A;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 900;
  color: #4E2A1A;
}

.jam-sub {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* Exit Retention Modal */
#exit-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.exit-jump-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 12px;
  border-width: 10px !important;
  border-image-width: 10px !important;
  cursor: pointer;
}

.exit-jump-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.exit-jump-lbl {
  flex: 1 1 auto;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.exit-jump-cnt {
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #F04B6B;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.exit-saved-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  background: #FFF8EC;
  border: 3px solid #D4AE84;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
}

.exit-owl-small {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* Feature Guide 3-Icon Strip */
#feature-guide-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(46, 24, 12, 0.56);
  z-index: 260;
}

.fg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  width: min(560px, 92vw);
  border-width: 16px !important;
  border-image-width: 16px !important;
}

#feature-guide-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.fg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  padding: 10px 8px;
  background: #FFF8EC;
  border: 2.5px solid #C89B6E;
  border-radius: 16px;
}

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

.fg-step-lbl {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}

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

/* Toast */
#game-toast {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 9px 20px;
  background: #4E2A1A;
  color: #FFFDF5;
  border: 3px solid #FFD54F;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  z-index: 280;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

/* Preview-only DEV F2 Debug Pill & Drawer (strictly hidden in ReleaseHost!) */
#btn-dev-f2 {
  position: fixed;
  bottom: 14px;
  left: 14px;
  display: none;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  background: rgba(34, 24, 18, 0.84);
  border: 2px solid #FFD54F;
  border-radius: 10px;
  color: #FFD54F;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  z-index: 290;
}

#debug-panel {
  position: fixed;
  bottom: 50px;
  left: 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: rgba(32, 22, 16, 0.94);
  border: 2px solid #FFD54F;
  border-radius: 12px;
  z-index: 295;
  width: 210px;
}

#debug-panel button {
  height: 32px;
  padding: 0 10px;
  background: #5C3A24;
  border: 1.5px solid #FFD54F;
  border-radius: 8px;
  color: #FFF8EC;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

/* Responsive Tightening for 1280x720 */
@media (max-width: 1360px) {
  #hud-top {
    top: 8px;
    left: 12px;
    right: 12px;
    gap: 6px;
  }
  .hud-cluster { gap: 6px; }
  .hud-pill, .hud-pill-uiv, .hud-nav-btn, .hud-icon-btn {
    height: 42px;
    font-size: 13px;
  }
  .hud-pill, .hud-pill-uiv { padding: 0 10px; gap: 5px; }
  .hud-nav-btn { padding: 0 9px; gap: 5px; }
  .hud-nav-btn img, .hud-cur-icon { width: 24px; height: 24px; }
  .hud-icon-btn { width: 42px; }
  .hud-icon-btn img { width: 24px; height: 24px; }
  .booster-btn { width: 68px; height: 68px; }
  .booster-btn img { width: 42px; height: 42px; }
  #booster-dock { bottom: 12px; gap: 8px; }
  .vf-art-wrap { height: 84px; }
  .vf-card-art, .vf-hero-art { width: 76px; height: 76px; }
}

@media (max-width: 900px) {
  .vf-grid-4, .vf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #booster-dock { right: 50%; transform: translateX(50%); width: 96vw; bottom: 10px; }
  .hud-nav-btn > span.btn-lbl { display: none; }
}

/* ========================================================================== */
/* Seasons v1.1-v1.3 Expansion Hub, Trophy Wall & Non-Blocking Unlock Banner  */
/* ========================================================================== */
.title-version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  background: #FFF3C4;
  border: 2.5px solid #4E2A1A;
  color: #4E2A1A;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.sm-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sm-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sm-res-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: #FFF3C4;
  border: 2.5px solid #4E2A1A;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  color: #4E2A1A;
  font-variant-numeric: tabular-nums;
}

.sm-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: #FFF8EC;
  border: 2.5px solid #D4AE84;
  border-radius: 16px;
}

.sm-bounty-group,
.sm-sub-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-bounty-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #F4E3C8;
  border: 2px solid #B68352;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #4E2A1A;
}

.sm-mini-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 11px;
  border: 2px solid #4E2A1A;
  background: #DFC39B;
  color: #4E2A1A;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sm-mini-btn.is-ready {
  background: #55D418;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #1B5E15;
}

.sm-mini-btn:disabled {
  opacity: 0.78;
  cursor: default;
}

.fg-unlock-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #FFF8EC;
  border: 3px solid #4E2A1A;
  border-radius: 20px;
  z-index: 275;
  pointer-events: none;
  box-shadow: 0 6px 0 rgba(78, 42, 26, 0.28);
}

.fg-unlock-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.fg-unlock-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fg-unlock-copy strong {
  font-size: 14px;
  font-weight: 900;
  color: #4E2A1A;
}

.fg-unlock-copy span {
  font-size: 12px;
  font-weight: 800;
  color: #7E4E2D;
}
