/* Starberry Grove: Juice Tycoon — Cozy Stationery Craft 9-Slice Commercial UI Stylesheet
 * Strict Laws:
 *  - Genuine 9-Slice border-image from assets/ui/vault_cozy_stationery_craft/ (>= 25 UI regions, ZERO stretch)
 *  - No backdrop blur filters used (WebView2 compositing safety)
 *  - overflow: visible !important on all buttons/pills hosting .notify-badge or pop-out icons
 *  - >= 13px readable HUD typography + flex-wrap: nowrap single-row Top HUD at 1080p & 720p
 */

:root {
  --honey-oak: #F7BD7D;
  --pasture-green: #63B14D;
  --canopy-leaf: #4C8439;
  --terracotta: #BE5A38;
  --caramel-wood: #C4824F;
  --cream-panel: #FBF2DF;
  --espresso-ink: #5C382B;
  --cocoa-stroke: #5C382B;
  --cocoa-deep: #2B1912;
  --wheat-gold: #C2B368;
  --paper-cream: #FFFDF7;
  --paper-warm: #FBF2DF;

  --font-display: 'Fredoka', 'M PLUS Rounded 1c', 'Segoe UI Rounded', 'Trebuchet MS', sans-serif;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, sans-serif;

  /* UI Vault v2.2 Contract Tokens (cozy_stationery_craft) */
  --tb-slot-style: cozy_stationery_craft;
  --tb-slot-shape: rect;
  --tb-slot-radius: 14px;
  --tb-slot-chamfer: 0px;
  --tb-slot-inset: 3px 3px 3px 3px;
  --tb-slot-palette: warm_honey;
  --tb-slot-mode: chaser_slot;
  --tb-slot-daylight: 1;
  --tb-slot-z: 3;
}

*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #EFE0C2;
  color: var(--cocoa-deep);
  font-family: var(--font-body);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

button, select, input {
  font-family: inherit;
}

img {
  -webkit-user-drag: none;
}

.hidden {
  display: none !important;
}

/* ============================================================================
 * 1. Cozy Stationery Craft 9-Slice Buttons (4 States + Anti-Clip Pop-out Law)
 * ============================================================================ */
.cozy-btn {
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  min-height: 40px;
  border-radius: 12px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 10px 9px 10px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 9px 10px 9px 10px / 0 stretch;
  color: #2B1912;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 95ms cubic-bezier(0.22, 1.4, 0.36, 1), filter 120ms ease;
}

.cozy-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1.5px);
}

.cozy-btn:active:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(2px) scale(var(--uiv-press-sx, 0.965), var(--uiv-press-sy, 0.935));
}

.cozy-btn:focus-visible {
  outline: 2px solid var(--uiv-spotlight-ring, #F59E0B);
  outline-offset: 2px;
}

/* Prevent legacy bindJuicyButtons `.tb-rubber-pop` (0% opacity:0 scale:0.2) from colliding with v2.12.0 `.tb-btn-tactile` */
.tb-btn-tactile.tb-rubber-pop:not(.tb-tactile-rebound) {
  animation: none !important;
}

/* State 1: Primary Cozy Matcha-Green 9-Slice */
.cozy-btn.green {
  background-color: #96C256;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_primary.png') 50 53 49 54 fill / 10px 12px 10px 12px / 0 stretch;
  color: #1F140D;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.55);
}

/* State 2: Secondary Sky-Blue 9-Slice */
.cozy-btn.sky {
  background-color: #6BB4DA;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_secondary.png') 50 54 49 53 fill / 10px 12px 10px 12px / 0 stretch;
  color: #14222E;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.45);
}

/* State 3: Warm Honey / Stitched Gold 9-Slice */
.cozy-btn.amber {
  background-color: #FBF2DF;
  border-width: 10px 11px 10px 11px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 10px 11px 10px 11px / 0 stretch;
  color: #2B1912;
}

/* State 4: Terracotta Berry / Danger 9-Slice */
.cozy-btn.berry {
  background-color: #CF5C52;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_danger.png') 49 52 50 52 fill / 10px 12px 10px 12px / 0 stretch;
  color: #FFFDF7;
  -webkit-text-stroke: 2px #4A1C17;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #4A1C17;
}

/* Disabled 9-Slice State */
.cozy-btn.btn-9slice-disabled,
.cozy-btn:disabled,
button:disabled {
  background-color: #DDD4C4;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_disabled.png') 50 52 50 52 fill / 10px 11px 10px 11px / 0 stretch;
  color: #4A382F;
  -webkit-text-stroke: 0;
  text-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
}

.cozy-btn.icon-only {
  width: 42px;
  min-width: 42px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.btn-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotkey-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 21px;
  padding: 0 5px;
  border-radius: 6px;
  background: #5C382B;
  color: #FFFDF7;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.notify-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 35;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D9383A;
  border: 2px solid #FFFDF7;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(92, 56, 43, 0.45);
  animation: notifyPulse 1.4s ease-in-out infinite;
}

.notify-badge.hidden {
  display: none !important;
}

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

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

.ui-icon.lg {
  width: 32px;
  height: 32px;
}

.ui-icon.sm {
  width: 19px;
  height: 19px;
}

/* ============================================================================
 * 2. Pillar 1 — Full-Bleed Heroic No-Box Title Screen (#title-screen)
 * ============================================================================ */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 34px;
  background: #F4D8A8 url('../assets/art/title_bg.jpg') center center / cover no-repeat;
}

#title-screen.hidden {
  display: none !important;
}

.title-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 6;
}

.title-studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 999px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 18px 10px 18px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 10px 18px 10px 18px / 0 stretch;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #2B1912;
  box-shadow: 0 3px 0 rgba(92, 56, 43, 0.25);
}

.title-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-util-btn {
  min-height: 44px;
}

.title-util-btn.icon-only {
  width: 46px;
  min-width: 46px;
  height: 44px;
  min-height: 44px;
}

/* 100% Transparent Floating Storybook Hero Stage — ZERO White Login Box! */
.title-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: auto 0;
  z-index: 5;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.title-hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  padding: 0 16px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.title-logo-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 4.4vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.4px;
  color: #FFFDF7;
  -webkit-text-stroke: 4px #5C382B;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #5C382B, 0 12px 24px rgba(92, 56, 43, 0.34);
}

.title-subtitle {
  margin: 8px 0 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 700;
  color: #FFFDF7;
  -webkit-text-stroke: 2.5px #5C382B;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #5C382B;
}

.title-mascot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 248px;
}

.title-portrait-showcase {
  position: relative;
  width: 264px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#title-hero-portrait {
  width: 256px;
  height: 252px;
  object-fit: contain;
  transform-origin: 50% 94%;
}

.title-loading-dock {
  width: min(420px, 86vw);
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 16px 10px 16px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 10px 16px 10px 16px / 0 stretch;
}

.loading-track {
  position: relative;
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: #5C382B;
  border: 2.5px solid #3D241B;
  overflow: hidden;
}

#loading-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #83B84E 0%, #FFE07D 100%);
  transition: width 0.14s ease-out;
}

.loading-label-row {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2B1912;
}

.title-cta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.title-cta-row.hidden {
  display: none !important;
}

#btn-title-play.title-play-hero {
  min-width: 248px;
  min-height: 62px;
  font-size: clamp(20px, 1.55vw, 25px);
  padding: 10px 30px;
  border-width: 13px 16px 13px 16px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_primary.png') 50 53 49 54 fill / 13px 16px 13px 16px / 0 stretch;
  box-shadow: 0 5px 0 rgba(62, 38, 26, 0.42);
}

.title-fast-btn {
  min-height: 50px;
  padding: 8px 18px;
  font-size: 15px;
}

.title-corner-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  z-index: 6;
  pointer-events: none;
}

.title-version-pill {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(251, 242, 223, 0.92);
  border: 2px solid #5C382B;
  color: #2B1912;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================================
 * 3. Native 16:9 PC Widescreen Gameplay Layout (>= 70% Playfield + Floating HUD)
 * ============================================================================ */
#game-screen {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) 44px;
  width: 100vw;
  height: 100vh;
  padding: 6px 10px;
  gap: 6px;
  background: linear-gradient(180deg, #F3E3C3 0%, #E3C998 100%);
  contain: strict;
}

#game-screen.hidden {
  display: none !important;
}

/* Floating Stationery Top HUD (Single-Row No-Wrap Lock — ZERO SaaS Header Slab!) */
#top-hud {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 2px;
  background: transparent;
  border: none;
  z-index: 30;
}

.hud-left-cluster,
.hud-right-cluster {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.currency-pill,
.fame-pill {
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 2px 14px 2px 12px;
  border-radius: 999px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 15px 9px 15px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 9px 15px 9px 15px / 0 stretch;
  color: #2B1912;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.fame-pill {
  font-family: var(--font-display);
}

.uiv-popout > .pop-icon {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  margin-right: 2px;
}

.hud-sub-stat {
  font-size: 13px;
  color: #5C382B;
  font-weight: 800;
}

.currency-pill .sub-rate {
  font-size: 13px;
  color: #2F661E;
  font-weight: 800;
}

.gem-plus-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #355E22;
  background: #83B84E;
  color: #1F140D;
  font-weight: 800;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.hud-util-btn {
  min-height: 40px;
  padding: 4px 10px;
}

/* Center Workspace: Generous >= 70.5% Panoramic Playfield + Compact 356px Stationery Dock */
#workspace-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#playfield-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  border: 3px solid var(--cocoa-stroke);
  overflow: hidden;
  background: #CFE8B4;
  box-shadow: 0 4px 0 rgba(92, 56, 43, 0.25);
  contain: layout paint;
  transform: translateZ(0);
}

#world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  will-change: transform;
}

/* Floating Quick-Control Overlay inside Playfield */
.playfield-action-dock {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 22;
  min-width: 0;
}

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

.playfield-action-dock .cozy-btn {
  min-height: 36px;
  padding: 2px 8px;
  border-width: 7px 8px 7px 8px;
  font-size: 13px;
  gap: 4px;
  flex-shrink: 1;
}

.playfield-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 22;
}

.playfield-top-badges > * {
  pointer-events: auto;
}

.playfield-help-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-help-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 15px;
}

.stage-banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 14px;
  border-radius: 999px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 14px 8px 14px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 8px 14px 8px 14px / 0 stretch;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #2B1912;
}

/* High-Z Unobstructed Flying Bonus Corridor */
#flying-bonus-corridor {
  position: fixed;
  left: 0;
  right: 370px;
  top: 25vh;
  height: 18vh;
  z-index: 45;
  pointer-events: none;
}

.sky-bonus-drone {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFF8DC 0%, #FFD466 100%);
  border: 2.5px solid var(--cocoa-stroke);
  box-shadow: 0 4px 0 rgba(92, 56, 43, 0.35);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  color: #2B1912;
  transition: transform 0.12s ease;
}

.sky-bonus-drone:hover {
  transform: scale(1.08);
}

/* ============================================================================
 * 4. Right Management Dock (Cozy Stitched Stationery 9-Slice + Visual Art Rows)
 * ============================================================================ */
#right-dock {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 14px 13px 14px 13px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_subpanel.png') 63 57 63 60 fill / 14px 13px 14px 13px / 0 stretch;
  padding: 2px 4px;
  box-shadow: 0 4px 0 rgba(92, 56, 43, 0.22);
  contain: layout paint;
  z-index: 25;
}

.dock-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  padding: 0 2px;
  margin-bottom: 6px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dock-tab-btn {
  position: relative;
  overflow: visible !important;
  min-width: 0;
  width: 100%;
  height: 54px;
  padding: 2px 2px;
  border-radius: 11px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: #B5875E;
  border-width: 5px 5px 5px 5px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 5px 5px 5px 5px / 0 stretch;
  color: #3E241A;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}

.dock-tab-btn.active {
  background-color: #FFF4D2;
  border-color: #C98B2B;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 5px 5px 5px 5px / 0 stretch;
  color: #1F140D;
  transform: translateY(-1px);
}

.dock-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.dock-section-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #2B1912;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-mult-group {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.buy-mult-btn {
  padding: 3px 8px;
  min-height: 26px;
  border-radius: 8px;
  border: 2px solid #8A5D44;
  background: #F4E6CA;
  color: #2B1912;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.buy-mult-btn.active {
  background: #83B84E;
  border-color: #3B5C1E;
  color: #1F140D;
}

#dock-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#dock-scroll-body::-webkit-scrollbar {
  width: 6px;
}

#dock-scroll-body::-webkit-scrollbar-thumb {
  background: #B89368;
  border-radius: 999px;
}

.dock-card {
  position: relative;
  border-radius: 13px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 9px 9px 9px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 9px 9px 9px 9px / 0 stretch;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dock-card.milestone-ready {
  background-color: #FBF2DF;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 9px 9px 9px 9px / 0 stretch;
}

.dock-card.upgrade-glow-flash {
  background-color: #FFF7D6;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 9px 9px 9px 9px / 0 stretch;
  animation: cardUpgradeGlow 0.9s ease-out forwards;
}

@keyframes cardUpgradeGlow {
  0% {
    box-shadow: 0 0 0 4px #FFB703, 0 0 22px rgba(255, 183, 3, 0.85);
    transform: scale(1.028);
  }
  45% {
    box-shadow: 0 0 0 3px #FFD54F, 0 0 14px rgba(255, 209, 102, 0.65);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 183, 3, 0);
    transform: scale(1);
  }
}

/* Visual-First Upgrade Row Header: 48x48 Crisp Artwork Icon + Title + Icon Stat Chips */
.dock-media-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dock-art-slot {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 54%, #FFFDF7 0%, #F4E0BC 100%);
  border: 2px solid #B5875E;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dock-item-art {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.dock-info-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.dock-card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #2B1912;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-card.fame-card .dock-card-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.22;
  word-break: break-word;
}

.dock-stat-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

.dock-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1.5px solid #C29C70;
  font-size: 13px;
  font-weight: 800;
  color: #2B1912;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dock-stat-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.dock-card-sub {
  font-size: 13px;
  font-weight: 700;
  color: #5C382B;
  font-variant-numeric: tabular-nums;
}

.dock-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #E2CBB0;
  overflow: hidden;
}

.dock-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #63B14D 0%, #A2E05E 100%);
  transition: width 0.15s linear;
}

.dock-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.dock-btn-row > * {
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 3px 6px;
  font-size: 13px;
}

/* ============================================================================
 * 5. Bottom Live Strip (Floating Stationery Pills)
 * ============================================================================ */
#bottom-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 2px;
  background: transparent;
  z-index: 30;
}

.objective-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 58%;
  height: 40px;
  padding: 2px 16px;
  border-radius: 999px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 14px 8px 14px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 8px 14px 8px 14px / 0 stretch;
  font-size: 13.5px;
  color: #2B1912;
}

.objective-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.bottom-right-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hype-meter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFE8EE;
  border: 2px solid #BE425A;
  color: #5C1A28;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hype-meter-pill.inactive {
  background: #FBF2DF;
  border-color: #8A5D44;
  color: #3E241A;
}

/* ============================================================================
 * 6. Modals & Anti-SaaS 60/25/15 Shop / Seasons / Feature Guides
 * ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(42, 27, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  contain: layout paint;
  will-change: opacity;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  position: relative;
  width: min(940px, 94vw);
  max-height: 92vh;
  border-radius: 22px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 18px 20px 18px 20px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_modal.png') 44 46 45 46 fill / 18px 20px 18px 20px / 0 stretch;
  padding: 8px 12px 10px 12px;
  box-shadow: 0 12px 0 rgba(48, 29, 21, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  will-change: transform, opacity;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px dashed #D5BA96;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.modal-ribbon-wrap {
  display: inline-flex;
  align-items: center;
  padding: 2px 18px;
  border-radius: 12px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 22px 10px 22px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/ribbon_header.png') 66 85 66 90 fill / 10px 22px 10px 22px / 0 stretch;
}

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

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 800;
  color: #2B1912;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-img-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.modal-close-img-btn:hover {
  transform: scale(1.08);
}

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

.modal-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
}

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

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

.modal-grid-3.hidden,
.modal-grid-2.hidden {
  display: none !important;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pass-claim-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  background-color: #FBF2DF;
  border: 2px solid #C29C70;
}

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

/* 60/25/15 Anti-SaaS Symmetrical 3x3 Shop Cards (ZERO Prose Walls!) */
.shop-pack-card {
  position: relative;
  border-radius: 15px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 10px 10px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 10px 10px 10px 10px / 0 stretch;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.shop-pack-card.tier-epic {
  background-color: #FBF2DF;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_epic.png') 44 37 41 40 fill / 10px 10px 10px 10px / 0 stretch;
}

.shop-pack-card.featured {
  background-color: #FBF2DF;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 10px 10px 10px 10px / 0 stretch;
}

.shop-art-stage {
  position: relative;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 54%, rgba(255, 253, 247, 0.96) 0%, rgba(247, 189, 125, 0.30) 80%);
  border: 1.5px solid rgba(156, 110, 74, 0.32);
}

.shop-badge {
  position: absolute;
  top: 5px;
  left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #5C382B;
  color: #FFFDF7;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  z-index: 4;
}

.shop-pack-art {
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.shop-pack-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #2B1912;
  line-height: 1.18;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 3-Icon Visual Feature Guide Strip ([Icon 1] -> [Icon 2] -> [Icon 3]) */
.guide-flow-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
}

.guide-step-tile {
  border-radius: 14px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 9px 9px 9px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 9px 9px 9px 9px / 0 stretch;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

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

.guide-step-caption {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #2B1912;
  line-height: 1.2;
}

.guide-arrow {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #8A5D44;
}

/* ============================================================================
 * 7. Celebration 3-Star Sunburst Banner & Interactive Spotlight FTUE (`tut-hand`)
 * ============================================================================ */
#celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#celebration-layer.interactive {
  pointer-events: auto;
  background: rgba(34, 21, 16, 0.74);
}

#celebration-layer.hidden {
  display: none !important;
}

.victory-star-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fever-cutin-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10010;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFF8E4 0%, #FFE39C 50%, #FFD2DE 100%);
  border: 3px solid var(--cocoa-stroke);
  box-shadow: 0 6px 0 rgba(92, 56, 43, 0.42), 0 0 20px rgba(255, 209, 102, 0.55);
  pointer-events: none;
}

.fever-cutin-banner.hidden {
  display: none !important;
}

.fever-title-txt {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: #2B1912;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.85);
}

.fever-sub-txt {
  font-size: 13.5px;
  font-weight: 800;
  color: #4A1520;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.7);
}

/* Pillar 3 — Spotlight Ring + Animated Pointer Hand (`tut-hand`) */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

#tutorial-overlay.hidden {
  display: none !important;
}

.tutorial-ring {
  position: fixed;
  border: 4px solid #FFB703;
  border-radius: 22px;
  box-shadow: 0 0 0 3px #5C382B, inset 0 0 0 2px #FFFDF7;
  pointer-events: none;
  will-change: transform;
  animation: ringBounce 1.05s ease-in-out infinite;
}

.tutorial-ring.hidden {
  display: none !important;
}

.tut-hand {
  position: fixed;
  z-index: 112;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: tutHandTap 0.95s ease-in-out infinite;
}

.tut-hand.hidden {
  display: none !important;
}

.tut-hand.point-right {
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  transform: translate(-100%, -50%);
  animation: tutHandPointRight 0.95s ease-in-out infinite;
}

.tut-hand.point-right .tut-hand-svg {
  width: 40px;
  height: 40px;
  transform: rotate(90deg);
}

.tut-hand-svg {
  filter: drop-shadow(0 4px 6px rgba(43, 25, 18, 0.38));
}

.tut-short-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #5C382B;
  border: 2px solid #FFFDF7;
  color: #FFFDF7;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(43, 25, 18, 0.35);
}

@keyframes tutHandTap {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -10px) scale(0.95); }
}

@keyframes tutHandPointRight {
  0%, 100% { transform: translate(-100%, -50%) scale(1); }
  50% { transform: translate(calc(-100% + 9px), -50%) scale(0.96); }
}

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

.tutorial-card {
  position: fixed;
  left: 20px;
  top: 112px;
  max-width: 440px;
  border-radius: 16px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 10px 12px 10px 12px / 0 stretch;
  padding: 6px 10px;
  box-shadow: 0 6px 0 rgba(92, 56, 43, 0.30);
  pointer-events: auto;
}

.tutorial-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-step-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #5C382B;
  color: #FFFDF7;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tutorial-body-txt {
  font-size: 13.5px;
  font-weight: 700;
  color: #2B1912;
  line-height: 1.3;
  flex: 1 1 auto;
}

.tut-skip-btn {
  min-height: 34px;
  padding: 2px 10px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Toast Notifications */
#toast-stack {
  position: fixed;
  top: 64px;
  right: 374px;
  z-index: 115;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.game-toast {
  padding: 7px 14px;
  border-radius: 12px;
  background: #FFFDF7;
  border: 2.5px solid var(--cocoa-stroke);
  color: #2B1912;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(92, 56, 43, 0.25);
}

/* Preview-only [DEV F2] Pill & Panel */
#dev-f2-pill {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(42, 27, 20, 0.88);
  color: #FFE28A;
  border: 1.5px solid #FFE28A;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#debug-panel {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  width: 310px;
  background: #2C1F1A;
  color: #FFF6E5;
  border: 2px solid #F7BD7D;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

#debug-panel.hidden {
  display: none !important;
}

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

.debug-btn {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #C4824F;
  background: #463128;
  color: #FFF6E5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.debug-btn:hover {
  background: #5E4236;
}

/* ============================================================================
 * 8. Seasons 1-3 Visual-First Hub Modal (.sm-* & .season-card — 9-Slice Stationery)
 * ============================================================================ */
.sm-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sm-tab-btn {
  width: 100%;
  min-height: 42px;
}

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

.sm-grid.hidden {
  display: none !important;
}

.season-card {
  position: relative;
  border-radius: 15px;
  background-color: #FBF2DF;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 10px 10px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 10px 10px 10px 10px / 0 stretch;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.season-card.is-active {
  background-color: #FBF2DF;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 10px 10px 10px 10px / 0 stretch;
}

.sm-art-frame {
  position: relative;
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 54%, rgba(255, 253, 247, 0.96) 0%, rgba(247, 189, 125, 0.28) 78%);
  border-radius: 11px;
  border: 1.5px solid rgba(156, 110, 74, 0.32);
}

.sm-hero-art {
  width: 92%;
  height: 106px;
  object-fit: contain;
}

.sm-tag-pill {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #5C382B;
  color: #FFFDF7;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.sm-cycle-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1.5px solid #5C382B;
  color: #2B1912;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sm-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #2B1912;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.sm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1.5px solid #C29C70;
  font-size: 13px;
  font-weight: 800;
  color: #2B1912;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.sm-action-btn {
  width: 100%;
  min-height: 38px;
  padding: 4px 10px;
}

.crew-preset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}

.crew-preset-btn {
  min-height: 34px;
  padding: 2px 4px;
  border-width: 6px 6px 6px 6px;
  font-size: 12px;
}

@media (max-width: 1720px) {
  #vehicle-hotbar .btn-label {
    display: none;
  }
  #vehicle-hotbar .cozy-btn {
    padding: 2px 6px;
    min-width: 52px;
    gap: 4px;
  }
  .playfield-action-dock .cozy-btn {
    padding: 2px 7px;
    border-width: 6px 7px 6px 7px;
    font-size: 12.5px;
    min-height: 34px;
  }
}

/* Clean Icon-Paired Settings Sliders */
.settings-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.settings-slider-row input[type="range"] {
  flex: 1 1 auto;
  accent-color: #63B14D;
  cursor: pointer;
}

/* ============================================================================
 * 9. 1280x720 No-Wrap Top HUD & Interior Budget Scaling (Lesson #11 & #14)
 * ============================================================================ */
@media (max-width: 1460px) {
  #game-screen {
    grid-template-rows: 46px minmax(0, 1fr) 42px;
    padding: 5px 8px;
    gap: 5px;
  }
  #workspace-main {
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 6px;
  }
  #top-hud {
    height: 46px;
    gap: 5px;
  }
  .hud-left-cluster,
  .hud-right-cluster {
    gap: 4px;
  }
  .currency-pill,
  .fame-pill {
    height: 38px;
    padding: 2px 10px;
    border-width: 7px 11px 7px 11px;
    font-size: 13px;
  }
  .uiv-popout > .pop-icon {
    width: 22px;
    height: 22px;
    margin-left: -4px;
  }
  .hud-right-cluster .cozy-btn {
    min-height: 38px;
    padding: 3px 8px;
    border-width: 8px 9px 8px 9px;
    font-size: 13px;
  }
  .hud-right-cluster .cozy-btn.icon-only {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }
  #flying-bonus-corridor {
    right: 338px;
  }
  #toast-stack {
    right: 338px;
  }
  #right-dock {
    border-width: 10px 9px 10px 9px;
    padding: 1px 3px;
  }
  .dock-tabs {
    margin-bottom: 4px;
    gap: 4px;
  }
  .dock-tab-btn {
    height: 46px;
    border-width: 4px;
  }
  .dock-tab-btn .ui-icon {
    width: 18px;
    height: 18px;
  }
  .dock-header-row {
    margin-bottom: 4px;
  }
  #dock-scroll-body {
    gap: 4px;
  }
  .dock-card {
    border-width: 5px 6px 5px 6px;
    padding: 2px 4px;
    gap: 3px;
  }
  .dock-art-slot {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .dock-item-art {
    width: 34px;
    height: 34px;
  }
  .dock-card .cozy-btn {
    min-height: 29px;
    border-width: 5px 7px 5px 7px;
    padding: 1px 6px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  #workspace-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(260px, 1.15fr) minmax(220px, 0.85fr);
  }
  #flying-bonus-corridor {
    right: 16px;
  }
  .modal-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #toast-stack {
    right: 16px;
  }
}
