/* css/game.css — Sunwheel Meadow Farm (UI Vault: cozy_stationery_craft · cozy_pastel_storybook)
 * 100% Offline WebView2 60 FPS Safe: Local fonts only, solid translucent scrims, warm cream stationery! */

:root {
  --ink: #5A392E;
  --ink-deep: #43271E;
  --cream: #FFFDF7;
  --parchment: #FBF2DF;
  --honey: #E9C89B;
  --honey-gold: #F4B956;
  --sage: #83B84E;
  --sky: #68B2D8;
  --berry: #D95E54;
  --font-display: 'Fredoka', 'M PLUS Rounded 1c', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

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

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

/* =========================================================================
 * HEROIC NO-BOX TITLE SCREEN (Full-Bleed Key Art + Living Farmer + PLAY CTA)
 * ========================================================================= */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
}

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

.title-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 44%, rgba(255, 250, 232, 0.08) 0%, rgba(74, 46, 35, 0.34) 100%);
  pointer-events: none;
}

.title-corner-dock {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-corner-btn {
  border-width: 7px !important;
  height: 44px;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-deep) !important;
  font-size: 14px !important;
}

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

.title-hero-stage {
  position: relative;
  z-index: 42;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 24px 48px;
}

#title-farmer-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: min(56vh, 450px);
  flex-shrink: 0;
}

.title-farmer-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(74, 46, 35, 0.36));
  pointer-events: none;
}

.title-emblem-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  gap: 14px;
}

.title-main-emblem {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 1.06;
  color: var(--cream);
  -webkit-text-stroke: 2.5px var(--ink-deep);
  text-shadow: 0 5px 0 var(--ink-deep), 0 10px 20px rgba(67, 39, 30, 0.34);
  letter-spacing: 0.01em;
}

.title-sub-emblem {
  margin: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(251, 242, 223, 0.90);
  border: 2px solid var(--ink);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 19px);
}

#boot-progress-wrap {
  width: min(360px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.boot-bar-shell {
  width: 100%;
  height: 22px;
  border-radius: 12px;
  border: 2.5px solid var(--ink-deep);
  background: var(--parchment);
  overflow: hidden;
  padding: 2px;
}

#boot-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #83B84E, #F4B956);
  transition: width 110ms ease-out;
}

.boot-bar-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink-deep);
}

#btn-play {
  min-width: 248px;
  height: 66px;
  padding: 6px 32px;
  border-width: 11px !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  color: var(--ink-deep) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  filter: drop-shadow(0 6px 0 rgba(67, 39, 30, 0.36));
}

/* =========================================================================
 * GAMEPLAY STAGE (100vw x 100vh Full-Bleed Sunwheel Canvas + Floating HUD)
 * ========================================================================= */
#game-shell {
  position: fixed;
  inset: 0;
  z-index: 10;
}

#farm-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
  touch-action: none;
}

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

/* Slim Top Floating Stationery Ribbon (flex-wrap: nowrap, 0 overflow at 720p/1080p!) */
#top-hud {
  position: fixed;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

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

.hud-pill {
  border-width: 7px !important;
  height: 44px;
  min-width: 74px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-deep) !important;
  font-family: var(--font-body) !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  white-space: nowrap;
  overflow: visible !important;
}

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

.hud-sub-cps {
  font-size: 12px;
  font-weight: 700;
  color: #4D7C0F;
  margin-left: 2px;
}

.hud-season-tag {
  font-family: var(--font-display);
  font-size: 13px;
  color: #8C4A22;
  padding-left: 4px;
  border-left: 1.5px solid rgba(90, 57, 46, 0.28);
}

.hud-action-btn {
  position: relative;
  border-width: 7px !important;
  height: 44px;
  padding: 0 10px;
  max-width: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-deep) !important;
  font-size: 13.5px !important;
  font-weight: 800;
  overflow: visible !important;
  flex-shrink: 0;
}

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

.hud-action-btn > .btn-txt {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 96px;
}

.hud-icon-only {
  width: 44px;
  padding: 0 !important;
}

.hud-icon-only.is-muted {
  opacity: 0.62;
  filter: grayscale(0.5);
}

/* Red-Dot Notification Badges (NEVER clipped!) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 35;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D9483B;
  border: 2px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Compact Roadside Guest Order Floating Pill (Bottom-Left) */
#guest-order-pill {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 28;
  border-width: 7px !important;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-deep) !important;
}

#guest-order-pill.is-ready {
  filter: brightness(1.06) drop-shadow(0 0 8px rgba(245, 158, 11, 0.65));
}

.ord-crop-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ord-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.ord-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-deep);
}

.ord-prog {
  font-size: 12.5px;
  font-weight: 700;
  color: #6B4423;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Compact Bottom Harvest Bar (Round 5 Golden Ratios: 72px buttons, 60% centered icons!) */
#bottom-dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-width: 8px !important;
  overflow: visible !important;
}

.dock-btn {
  position: relative;
  width: 76px;
  height: 78px;
  padding: 2px 3px 4px;
  border-style: solid;
  border-color: transparent;
  border-width: 7px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/slot_tile.png') 57 55 58 55 fill / 7px / 0 stretch;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  overflow: visible !important;
  color: var(--ink-deep);
  transition: transform 95ms ease, filter 110ms ease;
}

.dock-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

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

.dock-btn.is-ready-pulse {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.72));
}

.dock-btn-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

.dock-btn-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-deep);
}

.dock-hotkey {
  position: absolute;
  top: -7px;
  left: -6px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.dock-gauge-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 162px;
  padding-left: 6px;
  border-left: 2px solid rgba(90, 57, 46, 0.22);
}

.dock-gauge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-deep);
}

.dock-combo-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: #F4B956;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.dock-prog-bar {
  width: 100%;
  height: 14px;
  border-radius: 8px;
  border: 2px solid var(--ink-deep);
  background: #DFC39B;
  overflow: hidden;
}

.dock-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #83B84E, #F4B956);
  transition: width 120ms ease-out;
}

.dock-auto-btn {
  padding: 3px 8px;
  border-radius: 8px;
  border: 2px solid var(--ink-deep);
  background: var(--parchment);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dock-auto-btn.is-on {
  background: #83B84E;
  color: var(--cream);
}

/* =========================================================================
 * ANTI-SAAS 60/25/15 COZY STATIONERY MODALS (Warm Translucent Scrim)
 * ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(58, 40, 33, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-frame {
  position: relative;
  width: min(960px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 14px;
  border-width: 14px !important;
  color: var(--ink-deep) !important;
}

.modal-frame.modal-compact {
  width: min(720px, 94vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-ribbon {
  border-width: 10px 18px !important;
  padding: 2px 14px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  color: var(--ink-deep) !important;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

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

.modal-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-tab-btn {
  flex: 1;
  min-width: 0;
  border-width: 8px !important;
  padding: 4px 10px;
  font-size: 14px !important;
  color: var(--ink-deep) !important;
  opacity: 0.78;
}

.modal-tab-btn.is-active {
  opacity: 1;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.modal-body-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 6px;
  flex: 1;
}

/* Modal Containment Grids (minmax(0, 1fr) guarantees 0 horizontal bleed in DE/RU!) */
.modal-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

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

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

/* Anti-SaaS 60/25/15 Outer Card (.vault-tile ONLY on outer card!) */
.vault-tile {
  position: relative;
  border-width: 10px !important;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  min-height: 205px;
  color: var(--ink-deep) !important;
}

.vault-tile.is-locked-art .vt-art img {
  filter: grayscale(0.75) opacity(0.65);
}

.vt-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  z-index: 4;
}

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

.vt-art img {
  max-width: 88%;
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(74, 46, 35, 0.22));
}

.vt-head {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-deep);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vt-subhead {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #9A5522;
}

.vt-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.vt-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(233, 200, 155, 0.58);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vt-cta {
  margin-top: auto;
  width: 100%;
  border-width: 7px !important;
  padding: 4px 8px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px !important;
  color: var(--ink-deep) !important;
}

.vt-prog {
  margin-top: auto;
  position: relative;
  width: 100%;
  height: 24px;
  border-radius: 10px;
  border: 2px solid var(--ink-deep);
  background: #E5CAA0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-deep);
}

.vt-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #83B84E;
  z-index: 0;
}

.vt-prog span {
  position: relative;
  z-index: 1;
}

/* Hero Strip Banner & Subtabs */
.hero-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: rgba(244, 224, 187, 0.85);
}

.hero-strip-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-strip-info {
  flex: 1;
  min-width: 0;
}

.hero-strip-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-strip-sub {
  font-size: 13px;
  font-weight: 700;
  color: #6B4423;
}

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

.hero-cta {
  border-width: 8px !important;
  padding: 5px 14px;
  font-size: 13.5px !important;
  color: var(--ink-deep) !important;
}

.subtab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.subtab-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(233, 200, 155, 0.7);
  font-weight: 800;
  font-size: 13px;
}

.subtab-btn {
  padding: 5px 12px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--parchment);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.subtab-btn.is-active {
  background: var(--honey-gold);
}

/* Settings & Giftcode Helpers */
.stg-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stg-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.stg-line input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #83B84E;
}

.stg-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
}

.stg-toggle {
  padding: 3px 10px;
  border-radius: 8px;
  border: 2px solid var(--ink-deep);
  background: #D9C4AA;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.stg-toggle.is-on {
  background: #83B84E;
  color: var(--cream);
}

.lang-box {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: rgba(244, 224, 187, 0.72);
}

.lang-box-head {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.lang-pick-btn {
  padding: 5px 4px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-pick-btn.is-active {
  background: var(--honey-gold);
}

.gift-input {
  width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink-deep);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
}

.exit-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.exit-btn {
  min-width: 160px;
  border-width: 9px !important;
  padding: 6px 18px;
  font-size: 15px !important;
  color: var(--ink-deep) !important;
}

/* =========================================================================
 * STAGE 1 VISUAL SPOTLIGHT FTUE (Clean #btn-tut-skip below Top-Left Bar!)
 * ========================================================================= */
#tut-layer {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
}

#tut-spotlight {
  position: fixed;
  border-radius: 20px;
  border: 4px solid #F59E0B;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.35);
  pointer-events: none;
  animation: uivSpotlightPulse 1.3s ease-in-out infinite;
}

#tut-hand {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  animation: uivTutHandTap 1.05s ease-in-out infinite;
}

#tut-pill {
  position: fixed;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  border: 2.5px solid var(--ink-deep);
  background: var(--cream);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(67, 39, 30, 0.28);
}

/* Cleanly placed BELOW top-left ribbon so 0 overlap with right HUD at 720p! */
#btn-tut-skip {
  position: fixed;
  top: 64px;
  left: 14px;
  z-index: 80;
  pointer-events: auto;
  border-width: 7px !important;
  padding: 4px 14px;
  font-size: 13px !important;
  color: var(--ink-deep) !important;
}

/* Toast Banner */
#game-toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  padding: 7px 18px;
  border-radius: 999px;
  border: 2.5px solid var(--ink-deep);
  background: var(--cream);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(67, 39, 30, 0.28);
}

/* Preview-Only [DEV F2] Pill & Panel */
.dev-f2-pill {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 190;
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid var(--ink-deep);
  background: rgba(251, 242, 223, 0.92);
  color: var(--ink-deep);
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dev-debug-panel {
  position: fixed;
  right: 12px;
  bottom: 50px;
  z-index: 195;
  width: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 2.5px solid var(--ink-deep);
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-head {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-deep);
}

.dev-debug-panel button {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================================
 * RESPONSIVE 720p (<=1460px) & NARROW WINDOW GUARDS (ZERO CLIP/OVERFLOW!)
 * ========================================================================= */
@media (max-width: 1460px) {
  .hud-sub-cps {
    display: none;
  }
  .hud-pill {
    min-width: 72px;
    padding: 0 11px;
    font-size: 13px;
    height: 40px;
  }
  .hud-action-btn {
    padding: 0 8px;
    font-size: 13px !important;
    height: 40px;
  }
  .hud-action-btn > .btn-txt {
    max-width: 78px;
  }
  .hud-icon-only {
    width: 40px;
  }
}

@media (max-width: 1020px) {
  .hud-action-btn > .btn-txt {
    display: none;
  }
  .hud-season-tag {
    display: none;
  }
  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lang-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================================
 * UNIFIED SEASONS EXPANSION DIALOG (Single [role="dialog"] root, 0 nested modal classes)
 * ========================================================================= */
.dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(58, 40, 33, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.seasons-dialog-panel {
  position: relative;
  width: min(960px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 14px;
  box-sizing: border-box;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 14px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_modal.png') 44 46 45 46 fill / 14px / 0 stretch;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

.seasons-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.seasons-ribbon {
  border-width: 10px 18px !important;
  padding: 2px 14px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  color: var(--ink-deep) !important;
}

.seasons-close-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

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

.seasons-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
}

.seasons-tab-btn {
  flex: 1;
  min-width: 0;
  border-width: 8px !important;
  padding: 4px 8px;
  font-size: 13.5px !important;
  color: var(--ink-deep) !important;
  opacity: 0.78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasons-tab-btn.is-active {
  opacity: 1;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.seasons-body-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 6px;
  flex: 1;
}

.seasons-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

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

.sexp-mini-nav {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--ink-deep);
  background: var(--parchment);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sexp-mini-nav:hover {
  background: var(--honey-gold);
}
