/* ==========================================================================
 * Whisker Nook: Cat Sort — UI Vault Upgrade (`plush_stitched_casual`)
 * Round 5 Commercial Spatial Polish & Full-Bleed Playfield Overhaul
 *
 * - Full-bleed 100vw x 100vh cozy cat-shelf parlor (ZERO opaque SaaS navbar,
 *   ZERO opaque 32% right sidebar wall!)
 * - 1-row floating plush Top HUD with `hud_pill` currency capsules & pop-out
 *   icons at both 1920x1080 and 1280x720
 * - Tactile 74–78px squircle plush Booster Dock (`slot_tile.png`) with icons
 *   occupying 60–65% height and corner count badges (`overflow: visible`, z>=6)
 * - 25+ CSS 9-slice `border-image` chrome surfaces from
 *   `assets/ui/vault_plush_stitched_casual/` (10–14px on small cards/buttons,
 *   22–24px on large `frame_modal` panels)
 * - WCAG >= 4.5:1 contrast across every surface + TrackBUIMotion v2.7.0 tokens
 * ========================================================================== */

:root,
[data-ui-vault-style='plush_stitched_casual'] {
  --plush-ink: #24130B;
  --plush-ink-soft: #583524;
  --plush-outline: #4E2A1A;
  --plush-font-display: 'Fredoka', 'Titan One', 'M PLUS Rounded 1c', sans-serif;
  --plush-font-body: 'Nunito', 'Quicksand', 'M PLUS Rounded 1c', sans-serif;
  /* TrackBUIMotion v2.1 Contract */
  --tb-slot-style: 'plush_stitched_casual';
  --tb-slot-shape: rect;
  --tb-slot-radius: 22px;
  --tb-slot-chamfer: 0px;
  --tb-slot-inset: 3px 3px 5px 3px;
  --tb-slot-palette: sakura;
  --tb-slot-mode: chaser_slot;
  --tb-slot-daylight: 1;
  --tb-slot-z: 3;
}

body {
  font-family: var(--plush-font-body) !important;
  color: var(--plush-ink) !important;
}

/* ==================== 1. PLUSH 9-SLICE BUTTONS (ALL 4 STATES) ==================== */

.btn-primary,
.btn-secondary,
.btn-warm,
.btn-danger {
  box-sizing: border-box !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  filter: drop-shadow(0 3px 4px rgba(56, 28, 14, 0.28));
  overflow: visible !important;
}

.btn-primary {
  border-width: 10px 13px 11px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_primary.png') 65 94 67 90 fill / 10px 13px 11px 13px / 0 stretch !important;
}

.btn-secondary {
  border-width: 10px 14px 12px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_secondary.png') 64 194 87 90 fill / 10px 14px 12px 12px / 0 stretch !important;
}

.btn-warm,
.btn-danger {
  border-width: 10px 13px 11px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_danger.png') 64 84 66 84 fill / 10px 13px 11px 13px / 0 stretch !important;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-warm:disabled,
.btn-danger:disabled,
.btn-primary.is-disabled,
.btn-secondary.is-disabled,
.btn-warm.is-disabled,
.btn-danger.is-disabled {
  border-width: 10px 13px 12px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_disabled.png') 63 85 82 85 fill / 10px 13px 12px 13px / 0 stretch !important;
  opacity: 0.88 !important;
  filter: drop-shadow(0 2px 3px rgba(56, 28, 14, 0.18)) !important;
}

.btn-compact {
  border-width: 9px 12px 10px 12px !important;
  padding: 1px 6px !important;
  font-size: clamp(11.5px, 0.85vw, 13.5px) !important;
}

.btn-mini {
  border-width: 8px 10px 9px 10px !important;
  padding: 0 4px !important;
  font-size: 11.5px !important;
}

.btn-label-inner {
  color: var(--plush-ink) !important;
  font-weight: 800 !important;
}

/* ==================== 2. TITLE SCREEN (`#screen-title`) ==================== */

.title-signboard.panel-9slice {
  width: min(600px, 56vw) !important;
  background: transparent !important;
  border-width: 22px 24px 23px 24px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_modal.png') 68 72 69 72 fill / 22px 24px 23px 24px / 0 stretch !important;
  padding: 6px 18px 14px !important;
  gap: 12px !important;
  filter: drop-shadow(0 14px 24px rgba(58, 30, 14, 0.30)) !important;
}

.title-banner-ribbon {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 14px 36px 15px 36px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/ribbon_header.png') 68 156 70 158 fill / 14px 36px 15px 36px / 0 stretch !important;
  padding: 2px 10px !important;
  margin-top: -22px !important;
  width: calc(100% + 28px) !important;
  filter: drop-shadow(0 4px 8px rgba(42, 22, 10, 0.28));
}

.game-display-title {
  font-family: 'Titan One', 'Fredoka', 'M PLUS Rounded 1c', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(22px, 1.95vw, 31px) !important;
  white-space: nowrap !important;
  color: #16243E !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65) !important;
  letter-spacing: 0.012em;
}

.title-subtitle {
  color: var(--plush-ink-soft) !important;
  font-family: var(--plush-font-display) !important;
}

.pill-badge {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 7px 11px 7px 11px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 7px 11px 7px 11px / 0 stretch !important;
  padding: 0 4px !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.loading-track {
  height: 20px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 5px 8px 5px 8px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/bar_track.png') 61 63 60 61 fill / 5px 8px 5px 8px / 0 stretch !important;
  padding: 0 !important;
}

.loading-bar-fill {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 4px 6px 4px 6px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/bar_fill_primary.png') 45 34 36 39 fill / 4px 6px 4px 6px / 0 stretch !important;
}

#btn-title-lang {
  border-width: 9px 12px 9px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 9px 12px 9px 12px / 0 stretch !important;
}

#btn-title-quit {
  border-width: 10px 13px 11px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_danger.png') 64 84 66 84 fill / 10px 13px 11px 13px / 0 stretch !important;
}

.btn-hero-play {
  min-height: 58px !important;
  font-size: clamp(16px, 1.25vw, 20px) !important;
}

.btn-hero-play .btn-icon-img,
.btn-hero-sub .btn-icon-img {
  width: 26px !important;
  height: 26px !important;
}

.btn-hero-sub {
  min-height: 54px !important;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_secondary.png') 64 194 87 90 fill / 10px 14px 12px 12px / 0 stretch !important;
}

/* ==================== 3. FULL-BLEED GAMEPLAY SHELL (ZERO SAAS SIDEBAR/NAVBAR!) ==================== */

#screen-game {
  position: relative !important;
  display: block;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  --booster-dock-cx: 56vw;
}

#game-workspace {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  gap: 0 !important;
}

#playfield-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  z-index: 1 !important;
}

#game-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* ==================== 4. FLOATING 1-ROW PLUSH TOP HUD (`hud_pill` + POP-OUT ICONS) ==================== */

#top-hud-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  min-height: 52px !important;
  padding: 6px 12px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(66, 36, 18, 0.24) 0%, rgba(66, 36, 18, 0.06) 65%, rgba(66, 36, 18, 0) 100%) !important;
  border-bottom: none !important;
  z-index: 60 !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.top-nav-group,
.top-right-group {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* Top Nav Pills: 9-Slice Sky Plush Buttons */
.top-nav-btn {
  border-width: 9px 11px 11px 11px !important;
  padding: 0 6px !important;
  min-height: 38px !important;
  font-size: clamp(11px, 0.80vw, 13px) !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.top-nav-btn[data-notify-id] {
  padding-right: 11px !important;
}

.top-nav-btn .btn-icon-img {
  width: 22px !important;
  height: 22px !important;
  margin: -3px 1px -3px -3px !important;
  filter: drop-shadow(0 2px 2px rgba(48, 22, 10, 0.30));
}

/* Tier-1 Highlight CTA in Top Nav: Shop Button */
#btn-nav-shop {
  border-width: 10px 12px 11px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_danger.png') 64 84 66 84 fill / 10px 12px 11px 12px / 0 stretch !important;
  padding: 0 13px 0 4px !important;
}

#btn-nav-shop .nav-pop-icon {
  width: 30px !important;
  height: 30px !important;
  margin: -9px 3px -9px -11px !important;
  filter: drop-shadow(0 3px 3px rgba(56, 24, 12, 0.38));
}

/* Currency Capsules: `hud_pill.png` + Large Pop-out Icons! */
.currency-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 38px !important;
  min-width: 72px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 13px 10px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 10px 13px 10px 13px / 0 stretch !important;
  padding: 0 4px 0 2px !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(13px, 0.94vw, 15px) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 4px 6px rgba(52, 24, 12, 0.28));
  overflow: visible !important;
  flex-shrink: 0 !important;
  margin-left: 6px !important;
}

.currency-pill:hover {
  background: transparent !important;
  filter: brightness(1.05) drop-shadow(0 5px 7px rgba(52, 24, 12, 0.34));
}

.currency-pill .currency-pop-icon {
  position: relative !important;
  z-index: 8 !important;
  width: 34px !important;
  height: 34px !important;
  margin: -12px 2px -12px -18px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 3px rgba(48, 22, 10, 0.38));
  flex-shrink: 0 !important;
  pointer-events: none;
}

.currency-num {
  color: var(--plush-ink) !important;
  font-variant-numeric: tabular-nums;
}

/* Tier-3 Utility Buttons: Mute, Settings, Exit */
.icon-circle-btn {
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 9px 10px 11px 9px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/slot_tile.png') 52 60 68 53 fill / 9px 10px 11px 9px / 0 stretch !important;
  filter: drop-shadow(0 3px 4px rgba(52, 24, 12, 0.26));
  color: var(--plush-ink) !important;
  overflow: visible !important;
}

.icon-circle-btn.is-muted {
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_disabled.png') 63 85 82 85 fill / 9px 10px 11px 9px / 0 stretch !important;
}

#btn-nav-settings .util-gear-icon {
  width: 24px !important;
  height: 24px !important;
  margin: -4px 2px -4px -4px !important;
}

#btn-quit-game {
  border-width: 9px 11px 11px 11px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_danger.png') 64 84 66 84 fill / 9px 11px 11px 11px / 0 stretch !important;
}

.streak-inline-chip {
  background-color: #FFF8E6 !important;
  border: 2px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  padding: 0 5px !important;
}

.notify-badge {
  top: -2px !important;
  right: 1px !important;
  z-index: 40 !important;
}

/* ==================== 5. FLOATING RIGHT MINI-CLUSTER (ZERO OPAQUE SIDEBAR!) ==================== */

#tactical-rail {
  position: fixed !important;
  top: 62px !important;
  right: 12px !important;
  bottom: 14px !important;
  width: clamp(222px, 14.5vw, 272px) !important;
  background: transparent !important;
  border: none !important;
  border-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  padding: 0 !important;
  z-index: 35 !important;
  pointer-events: none !important;
  overflow: visible !important;
}

#tactical-rail-scroll {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

#tactical-rail-scroll > * {
  pointer-events: auto !important;
}

/* Stage Info Floating Plush Subpanel */
.rail-stage-card {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 12px 13px 14px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_subpanel.png') 78 79 82 82 fill / 12px 13px 14px 13px / 0 stretch !important;
  padding: 2px 3px !important;
  filter: drop-shadow(0 6px 10px rgba(48, 24, 10, 0.28));
}

.rail-stage-head {
  margin-bottom: 5px !important;
}

.rail-stage-title {
  font-family: var(--plush-font-display) !important;
  font-size: clamp(15px, 1.12vw, 18px) !important;
  color: var(--plush-ink) !important;
}

.rail-biome-sub {
  font-size: 11px !important;
  color: var(--plush-ink-soft) !important;
}

.rail-stats-grid {
  gap: 4px !important;
}

.rail-stat-box {
  background-color: #FFF9ED !important;
  border: 2px dashed #C79A6D !important;
  border-radius: 10px !important;
  padding: 3px 4px !important;
}

.rail-stat-label {
  font-size: 10px !important;
  color: var(--plush-ink-soft) !important;
  font-weight: 800 !important;
}

.rail-stat-val {
  font-family: var(--plush-font-display) !important;
  font-size: clamp(14px, 1.0vw, 17px) !important;
  color: var(--plush-ink) !important;
}

.rail-stat-sub {
  font-size: 10px !important;
  color: var(--plush-ink-soft) !important;
  font-weight: 700 !important;
  overflow-wrap: break-word;
}

.rail-qol-strip {
  margin-top: 5px !important;
  gap: 4px !important;
}

.rail-qol-chip {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 6px 9px 6px 9px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 6px 9px 6px 9px / 0 stretch !important;
  padding: 0 2px !important;
  font-family: var(--plush-font-display) !important;
  font-size: 10.5px !important;
  color: var(--plush-ink) !important;
}

.rail-qol-chip.is-on {
  border-image: url('../assets/ui/vault_plush_stitched_casual/btn_primary.png') 65 94 67 90 fill / 6px 9px 6px 9px / 0 stretch !important;
}

/* Next Orders Card (`card_common`) */
.rail-queue-card {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 11px 11px 11px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_common.png') 58 63 60 61 fill / 10px 11px 11px 11px / 0 stretch !important;
  padding: 1px 3px !important;
  filter: drop-shadow(0 5px 8px rgba(48, 24, 10, 0.24));
}

.rail-card-header {
  margin-bottom: 4px !important;
}

.rail-card-title {
  font-family: var(--plush-font-display) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #4A2810 !important;
}

.rail-card-hint {
  font-size: 10.5px !important;
  color: #6E4732 !important;
  font-weight: 800 !important;
}

.queue-color-chip {
  box-shadow: 0 2px 0 rgba(58, 36, 28, 0.45);
}

/* Album & Cafe Guest Floating Plush Cards (`card_rare` + `card_legendary`) */
.rail-album-card {
  position: relative !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 11px 11px 11px !important;
  padding: 2px 4px !important;
  min-height: 54px !important;
  height: auto !important;
  max-height: none !important;
  gap: 8px !important;
  filter: drop-shadow(0 5px 9px rgba(48, 24, 10, 0.26));
  overflow: visible !important;
}

#btn-rail-album {
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_rare.png') 69 73 71 74 fill / 10px 11px 11px 11px / 0 stretch !important;
}

#btn-rail-guest {
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_legendary.png') 56 57 58 57 fill / 10px 11px 11px 11px / 0 stretch !important;
  filter: drop-shadow(0 5px 10px rgba(196, 122, 24, 0.34));
}

#btn-rail-guest.is-guest-ready {
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.72)) drop-shadow(0 5px 10px rgba(48, 24, 10, 0.28));
}

.rail-album-card > img {
  width: 42px !important;
  height: 42px !important;
  margin: -4px 0 -4px -2px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 3px rgba(48, 24, 10, 0.30));
}

.currency-chip-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.currency-chip-icon {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  object-fit: contain !important;
  vertical-align: -2px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  filter: drop-shadow(0 1px 1px rgba(48, 24, 10, 0.25)) !important;
}

.rail-album-card .currency-chip-icon,
.btn-mini .currency-chip-icon,
.rail-stat-sub .currency-chip-icon {
  width: 14px !important;
  height: 14px !important;
}

.rail-album-text {
  font-family: var(--plush-font-display) !important;
  font-size: 11.5px !important;
  line-height: 1.18 !important;
  color: var(--plush-ink) !important;
  margin-bottom: 3px !important;
  overflow-wrap: break-word;
}

.album-mini-track {
  height: 15px !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 3px 6px 3px 6px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/bar_track.png') 61 63 60 61 fill / 3px 6px 3px 6px / 0 stretch !important;
  padding: 0 !important;
}

.album-mini-fill {
  height: 9px !important;
  min-width: 16px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 2px 5px 2px 5px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/bar_fill_primary.png') 45 34 36 39 fill / 2px 5px 2px 5px / 0 stretch !important;
}

/* FTUE Coach Card (`card_epic`) */
.ftue-coach {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 11px 10px 14px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_epic.png') 52 67 53 136 fill / 10px 11px 10px 14px / 0 stretch !important;
  padding: 2px 4px !important;
  gap: 6px !important;
  filter: drop-shadow(0 5px 9px rgba(48, 24, 10, 0.28));
}

.ftue-step-text {
  font-size: 11px !important;
  line-height: 1.24 !important;
  color: var(--plush-ink) !important;
}

.ftue-mascot-thumb {
  width: 32px !important;
  height: 32px !important;
}

/* Inline Deadlock Rescue Card */
.deadlock-card {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 11px 12px 12px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_subpanel.png') 78 79 82 82 fill / 11px 12px 12px 12px / 0 stretch !important;
  padding: 4px !important;
  filter: drop-shadow(0 6px 10px rgba(84, 18, 26, 0.30));
}

/* Compact Hotkey Guide Card (never pushes down like a SaaS wall) */
.rail-guide-card {
  margin-top: 0 !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 11px 11px 11px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_common.png') 58 63 60 61 fill / 10px 11px 11px 11px / 0 stretch !important;
  padding: 2px 4px !important;
  filter: drop-shadow(0 4px 8px rgba(48, 24, 10, 0.22));
}

.rail-guide-sub {
  display: none !important;
}

.rail-keycaps-grid {
  gap: 3px !important;
}

.keycap-item {
  padding: 2px 4px !important;
  gap: 4px !important;
  background-color: #FFF9EE !important;
  border: 1.5px dashed #C79A6D !important;
  border-radius: 7px !important;
}

.keycap-item:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}

.cozy-kbd {
  min-width: 22px !important;
  padding: 1px 4px !important;
  font-size: 9.5px !important;
  background-color: #FFE799 !important;
  border: 1.5px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
}

.keycap-desc {
  font-size: 9.5px !important;
  line-height: 1.12 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: var(--plush-ink) !important;
}

/* ==================== 6. TACTILE PLUSH BOTTOM BOOSTER DOCK (74–78px SQUIRCLES, ICON 60–65%) ==================== */

.bottom-booster-dock {
  position: fixed !important;
  bottom: 8px !important;
  left: var(--booster-dock-cx, 56vw) !important;
  transform: translateX(-50%) !important;
  z-index: 48 !important;
  display: flex !important;
  align-items: flex-start !important;
  align-content: start !important;
  justify-content: center !important;
  gap: 11px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 11px 15px 13px 15px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_subpanel.png') 78 79 82 82 fill / 11px 15px 13px 15px / 0 stretch !important;
  padding: 2px 6px 1px !important;
  filter: drop-shadow(0 8px 14px rgba(48, 22, 10, 0.34));
  overflow: visible !important;
  pointer-events: auto !important;
}

.booster-dock-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  align-content: start !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.booster-tile-btn,
.booster-cmd-btn.booster-tile-btn,
.booster-hint-bar.booster-tile-btn {
  position: relative !important;
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 11px 12px 10px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/slot_tile.png') 52 60 68 53 fill / 10px 11px 12px 10px / 0 stretch !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 5px rgba(52, 24, 10, 0.28));
  overflow: visible !important;
  cursor: pointer !important;
  transition: transform 95ms ease, filter 110ms ease;
}

.booster-tile-btn:hover {
  background: transparent !important;
  filter: brightness(1.06) drop-shadow(0 5px 7px rgba(52, 24, 10, 0.34));
  transform: translateY(-2px);
}

.booster-tile-btn:active {
  transform: translateY(2px);
}

.booster-tile-btn.is-dimmed {
  opacity: 0.68 !important;
  filter: saturate(0.7) drop-shadow(0 2px 3px rgba(52, 24, 10, 0.20));
}

.booster-hint-bar.booster-tile-btn.is-active-tool {
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_legendary.png') 56 57 58 57 fill / 10px 11px 12px 10px / 0 stretch !important;
  filter: drop-shadow(0 0 10px rgba(255, 206, 68, 0.72));
}

/* Booster Icon: 48px inside 78px tile = 61.5% height (golden 58%–70% range!) */
.booster-tile-btn .booster-tile-icon {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(62, 30, 14, 0.30));
  flex-shrink: 0 !important;
}

/* Count / Price Pill Hugging Bottom-Right Corner (`overflow: visible`, `z-index >= 6`) */
.booster-count-badge {
  position: absolute !important;
  right: -4px !important;
  bottom: -4px !important;
  z-index: 12 !important;
  min-width: 28px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #FFF07A 0%, #FFB820 100%) !important;
  border: 2.5px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 0 var(--plush-outline) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.booster-hint-bar.is-active-tool .booster-count-badge {
  background: linear-gradient(180deg, #8EF048 0%, #4DC212 100%) !important;
}

/* Hotkey Micro-Chip Top-Left */
.booster-key-chip {
  position: absolute !important;
  left: -6px !important;
  top: -6px !important;
  z-index: 10 !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 4px !important;
  border-radius: 7px !important;
  background-color: #FFFDF7 !important;
  border: 2px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1.5px 0 var(--plush-outline) !important;
  pointer-events: none !important;
}

.booster-dock-label {
  font-family: var(--plush-font-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--plush-ink) !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Swap Floating Prompt Banner */
.swap-banner.card-cream {
  top: 66px !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 10px 14px 11px 14px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_subpanel.png') 78 79 82 82 fill / 10px 14px 11px 14px / 0 stretch !important;
  padding: 2px 6px !important;
  filter: drop-shadow(0 6px 12px rgba(48, 22, 10, 0.30));
}

/* Unified Top-Left Safe-Pocket Flex Stack: guarantees #toast-container never overlaps #hold-banner or Shelf 1 cats */
#top-left-hud-stack,
.top-left-hud-stack {
  position: fixed !important;
  top: 56px !important;
  bottom: auto !important;
  left: 14px !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  max-width: min(326px, 31vw) !important;
  z-index: 270 !important;
  pointer-events: none !important;
  transition: none !important;
  contain: style;
}

#top-left-hud-stack[data-dragging="1"],
body[data-dragging="1"] #top-left-hud-stack {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}

/* Transient Invalid-Drop Put-Back Rescue Banner: flex-stacked inside #top-left-hud-stack (never over toast, bottom dock, shelves, or baskets) */
#hold-banner,
.swap-banner.hold-banner.card-cream {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: min(304px, 30vw) !important;
  padding: 2px 6px !important;
  gap: 6px !important;
  z-index: 265 !important;
  pointer-events: none !important;
  transition: none !important;
  contain: layout style;
}

#hold-banner:not([data-dragging="1"]):not([aria-hidden="true"]),
.swap-banner.hold-banner.card-cream:not([data-dragging="1"]):not([aria-hidden="true"]) {
  animation: holdBannerFadeIn 140ms ease-out both;
}

#hold-banner[data-dragging="1"],
body[data-dragging="1"] #hold-banner,
#hold-banner[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}

body[data-dragging="1"] #bottom-booster-dock {
  pointer-events: none !important;
}

#hold-banner #btn-hold-cancel,
.swap-banner.hold-banner.card-cream #btn-hold-cancel {
  pointer-events: auto !important;
  flex-shrink: 0;
}

#hold-banner .swap-banner-text,
.swap-banner.hold-banner.card-cream .swap-banner-text {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

/* ==================== 7. STORYBOOK PLUSH MODALS (`frame_modal`, `ribbon_header`, `btn_close`) ==================== */

.modal-backdrop {
  background-color: rgba(34, 18, 12, 0.58) !important;
}

.modal-card button {
  filter: none !important;
}

.modal-card.panel-9slice,
#app-modal-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-height: 88vh !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 22px 24px 23px 24px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_modal.png') 68 72 69 72 fill / 22px 24px 23px 24px / 0 stretch !important;
  filter: none !important;
  overflow: hidden !important;
}

.modal-header-bar {
  position: static !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 11px 30px 12px 30px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/ribbon_header.png') 68 156 70 158 fill / 11px 30px 12px 30px / 0 stretch !important;
  padding: 0 10px !important;
  margin: 0 auto 8px !important;
  width: min(520px, calc(100% - 96px)) !important;
  justify-content: center !important;
  border-bottom: none !important;
  filter: none !important;
  overflow: visible !important;
}

#app-modal-body,
.modal-scroll-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}

#app-modal-body > *,
.modal-scroll-body > * {
  flex-shrink: 0 !important;
}

.modal-title {
  font-family: 'Titan One', 'Fredoka', 'M PLUS Rounded 1c', sans-serif !important;
  font-weight: 700 !important;
  color: #16243E !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65) !important;
  text-align: center !important;
  letter-spacing: 0.015em;
}

/* Modal Close `X` Replaced by Plush Glossy `btn_close.png` anchored cleanly inside modal top-right padding box (0 clipping under overflow:hidden) */
#app-modal-close.modal-close {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none !important;
  border-image: none !important;
  border-radius: 50% !important;
  background: url('../assets/ui/vault_plush_stitched_casual/btn_close.png') center / contain no-repeat !important;
  font-size: 0 !important;
  color: transparent !important;
  filter: drop-shadow(0 3px 5px rgba(48, 20, 10, 0.32));
  z-index: 30 !important;
  transition: transform 95ms ease, filter 110ms ease;
}

#app-modal-close.modal-close:hover {
  transform: scale(1.08);
  filter: brightness(1.06) drop-shadow(0 5px 8px rgba(48, 20, 10, 0.44));
}

#app-modal-close.modal-close svg {
  display: none !important;
}

/* Modal Interior Cards & Rarity Tiers */
.modal-scroll-body .card-cream,
.exit-reward-card {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 11px 12px 12px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_common.png') 58 63 60 61 fill / 11px 12px 12px 12px / 0 stretch !important;
  padding: 6px 8px !important;
  color: var(--plush-ink) !important;
}

.daily-hero-card.card-cream,
.pass-track-card.card-cream,
.settings-block.card-cream,
.shop-free-banner.card-cream,
.victory-stats-card.card-cream,
.capstone-valve-box.card-cream {
  border-width: 12px 13px 14px 13px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/frame_subpanel.png') 78 79 82 82 fill / 12px 13px 14px 13px / 0 stretch !important;
}

.shop-sku-card.card-cream {
  border-width: 11px 12px 12px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_rare.png') 69 73 71 74 fill / 11px 12px 12px 12px / 0 stretch !important;
  padding: 10px 8px 8px !important;
  overflow: visible !important;
}

.shop-sku-card.is-featured.card-cream,
.stage-tile-btn.is-current.card-cream,
.charm-card.is-owned.card-cream,
.victory-unlock-card.card-cream {
  border-width: 11px 12px 12px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_legendary.png') 56 57 58 57 fill / 11px 12px 12px 12px / 0 stretch !important;
}

.mode-feature-card.card-cream {
  border-image: url('../assets/ui/vault_plush_stitched_casual/card_rare.png') 69 73 71 74 fill / 11px 12px 12px 12px / 0 stretch !important;
}

/* Active Modal Tabs -> Berry-Pink Stitched `tab_active.png` */
.shop-tab-btn.btn-warm,
.campaign-chapter-tabs .btn-warm,
.sanctuary-tabs-grid .btn-warm,
.settings-lang-grid .btn-warm {
  border-width: 11px 12px 9px 12px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/tab_active.png') 55 41 34 47 fill / 11px 12px 9px 12px / 0 stretch !important;
  color: var(--plush-ink) !important;
}

.sku-ribbon-badge {
  background-color: #DCEFF7 !important;
  border: 2px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
  font-family: var(--plush-font-display) !important;
}

.sku-ribbon-badge.is-gold {
  background: linear-gradient(180deg, #FFF088 0%, #FFBF2E 100%) !important;
  border: 2px solid var(--plush-outline) !important;
  color: var(--plush-ink) !important;
}

.sticker-slot-card,
.paw-day-cell {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 8px 9px 10px 8px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/slot_tile.png') 52 60 68 53 fill / 8px 9px 10px 8px / 0 stretch !important;
}

/* Toast Pill -> `hud_pill.png`, flex-stacked beneath #hold-banner inside #top-left-hud-stack so overlap is impossible */
#toast-container {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: min(326px, 31vw) !important;
  transition: none !important;
  contain: layout style;
}

#toast-container.below-hold-banner {
  position: fixed !important;
  top: 56px !important;
  right: 294px !important;
  left: auto !important;
  bottom: auto !important;
  max-width: min(326px, 25vw) !important;
  z-index: 270 !important;
}

#toast-container:empty {
  display: none !important;
}

#toast-container:not([data-dragging="1"]):not([aria-hidden="true"]) .cozy-toast-pill {
  animation: toastFadeIn 150ms ease-out both;
}

#toast-container[data-dragging="1"],
body[data-dragging="1"] #toast-container,
body[data-dragging="1"] #toast-container.below-hold-banner,
#toast-container[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}

.cozy-toast-pill {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  border-width: 8px 14px 8px 14px !important;
  border-image: url('../assets/ui/vault_plush_stitched_casual/hud_pill.png') 93 63 75 86 fill / 8px 14px 8px 14px / 0 stretch !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 12px rgba(48, 22, 10, 0.35));
  color: var(--plush-ink) !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
}

@keyframes coinGainShimmer {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 214, 70, 0)); }
  28% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 214, 70, 0.95)); }
  65% { transform: scale(1.04); filter: drop-shadow(0 0 8px rgba(255, 196, 46, 0.72)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 214, 70, 0)); }
}

.currency-pill.is-coin-gain-pop {
  animation: coinGainShimmer 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== 8. RESPONSIVE 1280×720 LAPTOP GUARD (ZERO WRAP / ZERO OVERFLOW!) ==================== */

@media (max-width: 1460px) {
  #top-hud-bar {
    padding: 5px 10px 6px !important;
    min-height: 46px !important;
    gap: 6px !important;
  }

  .top-nav-group,
  .top-right-group {
    gap: 5px !important;
  }

  .top-nav-btn {
    border-width: 8px 9px 10px 9px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    gap: 3px !important;
  }

  .top-nav-btn[data-notify-id] {
    padding-right: 10px !important;
  }

  .top-nav-btn .btn-icon-img {
    width: 18px !important;
    height: 18px !important;
  }

  #btn-nav-shop {
    border-width: 8px 10px 10px 10px !important;
    padding: 0 11px 0 3px !important;
  }

  #btn-nav-shop .nav-pop-icon {
    width: 24px !important;
    height: 24px !important;
    margin: -7px 2px -7px -8px !important;
  }

  .currency-pill {
    height: 34px !important;
    min-width: 62px !important;
    border-width: 8px 11px 8px 11px !important;
    font-size: 12.5px !important;
    margin-left: 5px !important;
  }

  .currency-pill .currency-pop-icon {
    width: 28px !important;
    height: 28px !important;
    margin: -9px 1px -9px -14px !important;
  }

  .icon-circle-btn {
    width: 34px !important;
    height: 34px !important;
    border-width: 8px 8px 9px 8px !important;
  }

  /* Compact icon-only Settings & Exit at 1280x720 so Top HUD stays 1 clean row with generous breathing air */
  .util-settings-label,
  .util-exit-label {
    display: none !important;
  }

  #btn-nav-settings,
  #btn-quit-game {
    padding: 0 4px !important;
    min-width: 36px !important;
  }

  #btn-nav-settings .util-gear-icon {
    margin: -2px 0 !important;
    width: 22px !important;
    height: 22px !important;
  }

  #tactical-rail {
    top: 52px !important;
    right: 8px !important;
    bottom: 10px !important;
    width: 224px !important;
  }

  #tactical-rail-scroll {
    gap: 6px !important;
  }

  .rail-stage-card {
    border-width: 10px 11px 12px 11px !important;
  }

  .rail-album-card {
    min-height: 50px !important;
    height: auto !important;
    max-height: none !important;
    border-width: 9px 10px 10px 10px !important;
    padding: 2px 4px !important;
  }

  .rail-album-text {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  .rail-album-card > img {
    width: 36px !important;
    height: 36px !important;
    margin: -3px 0 -3px -2px !important;
  }

  .bottom-booster-dock {
    bottom: 6px !important;
    gap: 8px !important;
    border-width: 9px 12px 11px 12px !important;
    padding: 1px 4px 0 !important;
  }

  #top-left-hud-stack,
  .top-left-hud-stack {
    position: fixed !important;
    top: 50px !important;
    bottom: auto !important;
    left: 10px !important;
    right: auto !important;
    gap: 6px !important;
    max-width: min(318px, 31vw) !important;
    z-index: 270 !important;
    contain: style;
  }

  #top-left-hud-stack[data-dragging="1"],
  body[data-dragging="1"] #top-left-hud-stack {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
    animation: none !important;
  }

  #hold-banner,
  .swap-banner.hold-banner.card-cream {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    border-width: 7px 11px 8px 11px !important;
    max-width: min(306px, 29vw) !important;
    z-index: 265 !important;
    transition: none !important;
  }

  #hold-banner[data-dragging="1"],
  body[data-dragging="1"] #hold-banner,
  #hold-banner[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
    animation: none !important;
  }

  #toast-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: min(318px, 31vw) !important;
    transition: none !important;
    contain: layout style;
  }

  #toast-container.below-hold-banner {
    position: fixed !important;
    top: 50px !important;
    right: 240px !important;
    left: auto !important;
    bottom: auto !important;
    max-width: min(296px, 24vw) !important;
    z-index: 270 !important;
  }

  .cozy-toast-pill {
    border-width: 6px 12px 6px 12px !important;
    padding: 2px 6px !important;
    font-size: 11.5px !important;
    line-height: 1.18 !important;
  }

  #toast-container:empty {
    display: none !important;
  }

  #toast-container[data-dragging="1"],
  body[data-dragging="1"] #toast-container,
  body[data-dragging="1"] #toast-container.below-hold-banner,
  #toast-container[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
    animation: none !important;
  }

  .booster-tile-btn,
  .booster-cmd-btn.booster-tile-btn,
  .booster-hint-bar.booster-tile-btn {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    border-width: 9px 10px 11px 9px !important;
  }

  .booster-tile-btn .booster-tile-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .booster-count-badge {
    min-width: 24px !important;
    height: 20px !important;
    font-size: 10px !important;
    right: -3px !important;
    bottom: -3px !important;
  }

  .booster-dock-label {
    font-size: 10px !important;
  }
}

@media (max-width: 1020px) {
  #toast-container.below-hold-banner {
    right: 12px !important;
    max-width: min(290px, 46vw) !important;
  }
}

@media (max-height: 760px) {
  #tactical-rail-scroll {
    gap: 5px !important;
  }

  #ftue-coach {
    border-width: 8px 9px 9px 9px !important;
    padding: 2px 4px !important;
    gap: 5px !important;
  }

  #ftue-coach .ftue-mascot-thumb {
    width: 30px !important;
    height: 30px !important;
  }

  #ftue-coach .ftue-step-text {
    font-size: 10px !important;
    line-height: 1.16 !important;
  }

  #rail-guide-card {
    display: block !important;
    border-width: 8px 9px 9px 9px !important;
    padding: 1px 3px !important;
  }

  #rail-guide-card .rail-guide-top {
    margin-bottom: 3px !important;
    gap: 3px 6px !important;
  }

  #rail-guide-card .rail-guide-head-left img {
    width: 17px !important;
    height: 17px !important;
  }

  #rail-guide-card .rail-card-title {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  #rail-guide-card .rail-keycaps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  #rail-guide-card .keycap-item {
    padding: 1.5px 4px !important;
    gap: 3px !important;
  }

  #rail-guide-card .cozy-kbd {
    min-width: 20px !important;
    padding: 1px 3px !important;
    font-size: 9px !important;
  }

  #rail-guide-card .keycap-desc {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  #deadlock-card[style*="block"] ~ #rail-guide-card {
    display: none !important;
  }
}
