/* ============================================================================
 * Bonfire Watch Defense — Ornate Storybook RPG Commercial Stylesheet
 * UI Vault: ornate_storybook_rpg | Archetype: playstore_cartoon_vibrant
 * Zero Google Fonts | Zero backdrop-filter: blur | High-Contrast 9-Slice Fallbacks
 * ============================================================================ */

:root {
  --bw-bg-deep: #130E18;
  --bw-surface: #251B2C;
  --bw-parchment: #F3DFB6;
  --bw-gold: #F5B82E;
  --bw-amber: #FB923C;
  --bw-green: #4CC650;
  --bw-crimson: #D63C44;
  --bw-ink-light: #FFF8E7;
  --bw-ink-dark: #18141F;
  --bw-font-display: 'Trebuchet MS', 'Georgia', 'Segoe UI', system-ui, sans-serif;
  --bw-font-body: 'Segoe UI', 'Calibri', system-ui, sans-serif;
  --bw-font-mono: 'Consolas', 'Courier New', monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bw-bg-deep);
  color: var(--bw-ink-light);
  font-family: var(--bw-font-body);
  font-size: 14px;
  line-height: 1.25;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ============================================================================
 * 1. Guaranteed High-Contrast 9-Slice Fallbacks (>= 8:1 WCAG, 0 Low-Contrast!)
 * ============================================================================ */
.uiv-ornate_storybook_rpg-frame-modal,
.uiv-ornate_storybook_rpg-hud-pill,
.uiv-ornate_storybook_rpg-slot-tile,
.uiv-ornate_storybook_rpg-card-common,
.uiv-ornate_storybook_rpg-card-rare,
.uiv-ornate_storybook_rpg-card-epic,
.uiv-ornate_storybook_rpg-tab-active {
  background-color: #241A2B;
  color: #FFF8E7;
}

.uiv-ornate_storybook_rpg-frame-subpanel,
.uiv-ornate_storybook_rpg-card-legendary {
  background-color: #F4E1BA;
  color: #18141F;
}

.uiv-ornate_storybook_rpg-card-legendary .card-short-title {
  color: #18141F;
}

.uiv-ornate_storybook_rpg-ribbon-header {
  background-color: #F2B538;
  color: #18141F;
}

.uiv-ornate_storybook_rpg-btn-primary {
  background-color: #4CC650;
  color: #111B11 !important;
  border-width: 9px 14px;
}

.uiv-ornate_storybook_rpg-btn-secondary {
  background-color: #F2B538;
  color: #1A140B !important;
  border-width: 9px 14px;
}

.uiv-ornate_storybook_rpg-btn-danger {
  background-color: #C9353E;
  color: #FFF8F8 !important;
  border-width: 9px 14px;
}

.uiv-ornate_storybook_rpg-btn-disabled,
button:disabled {
  background-color: #3A3042 !important;
  color: #EDE5F4 !important;
  border-width: 9px 14px;
  opacity: 0.88;
  cursor: not-allowed;
}

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

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

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

.notify-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #18101E;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================================
 * 2. Heroic No-Box Storybook Title Screen
 * ============================================================================ */
.title-screen {
  justify-content: space-between;
  padding: 16px 24px 28px;
}

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

.title-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(28, 16, 12, 0.12) 0%, rgba(12, 8, 18, 0.72) 86%),
    linear-gradient(180deg, rgba(12, 8, 18, 0.48) 0%, rgba(12, 8, 18, 0.10) 45%, rgba(12, 8, 18, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.title-top-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.title-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-width: 8px 14px;
  font-weight: 800;
  font-size: 15px;
}

.pill-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 240, 200, 0.35);
}

.vip-mini-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #F5B82E;
  color: #1D1408;
  font-size: 11px;
  font-weight: 900;
}

.title-util-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.util-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 4px 12px;
  border-width: 7px 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFF8E7;
  white-space: nowrap;
  overflow: visible;
}

.util-icon-only {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 4px;
  border-width: 7px;
  overflow: visible;
}

.title-showcase {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(420px, 560px) minmax(210px, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.title-hero-wing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: min(64vh, 470px);
  pointer-events: none;
}

.title-portrait-host {
  position: relative;
  width: min(320px, 25vw);
  height: min(360px, 50vh);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.title-hero-master {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 92%;
}

.hero-ground-shadow {
  position: absolute;
  bottom: 34px;
  width: 170px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14, 8, 18, 0.80) 0%, rgba(14, 8, 18, 0) 74%);
}

.hero-tag-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-width: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.title-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.title-emblem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.title-kicker {
  display: inline-block;
  padding: 5px 22px;
  border-width: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-logo-text {
  margin: 0;
  font-family: var(--bw-font-display);
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.06;
  color: #FEF3C7;
  text-shadow:
    0 3px 0 #3A1D12,
    0 6px 18px rgba(10, 6, 14, 0.92);
}

.title-sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-width: 7px 12px;
  font-size: 13.5px;
  font-weight: 800;
}

.title-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.title-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  height: 60px;
  padding: 8px 32px;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-lead-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.title-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.title-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.sec-btn-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ============================================================================
 * 3. Full-Bleed 16:9 Playfield + Floating Single-Row HUD
 * ============================================================================ */
.game-screen {
  position: relative;
}

.arena-viewport {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.arena-canvas,
.vfx-layer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vfx-layer-canvas {
  pointer-events: none;
}

.hud-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 4px;
  flex-wrap: nowrap;
  pointer-events: none;
}

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

.hud-cluster > * {
  pointer-events: auto;
}

.hud-icon-btn,
.hud-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 4px;
  border-width: 7px;
  overflow: visible;
  flex-shrink: 0;
}

.help-glyph {
  font-size: 17px;
  font-weight: 900;
  color: #FDE68A;
}

.hud-stage-pill,
.hud-bonfire-pill,
.hud-toggle-pill,
.hud-currency-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 3px 10px;
  border-width: 7px 11px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFF8E7;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

.plus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #F5B82E;
  color: #1A1208;
  font-size: 12px;
  font-weight: 900;
}

.ticket-armed-dot {
  padding: 1px 5px;
  border-radius: 4px;
  background: #F5B82E;
  color: #1A1208;
  font-size: 10.5px;
  font-weight: 900;
}

.hud-dev-btn {
  height: 34px;
  padding: 2px 8px;
  border-width: 6px;
  font-family: var(--bw-font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #FDE68A;
}

.hud-sub-strip {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 14px;
  pointer-events: none;
}

.synergy-boon-strip,
.hearth-rune-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  pointer-events: auto;
}

.mini-buff-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 22, 38, 0.92);
  border: 1px solid rgba(245, 184, 46, 0.55);
  font-size: 11.5px;
  font-weight: 800;
  color: #FFF8E7;
  white-space: nowrap;
}

.mini-buff-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ============================================================================
 * 4. Bottom Floating Hearth Dock + Watcher Summon Deck (Round 5 Ratios!)
 * ============================================================================ */
.combat-bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  pointer-events: none;
}

.hearth-dock-group {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
  flex-shrink: 0;
}

.dock-skill-btn {
  position: relative;
  width: 90px;
  height: 82px;
  padding: 4px 3px 5px;
  border-width: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  overflow: visible !important;
  background-color: #261B2E;
  color: #FFF8E7;
}

.dock-skill-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.dock-skill-lbl {
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.08;
  color: #FFF8E7;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
  text-overflow: clip;
}

.dock-cost-pill {
  position: absolute;
  top: -7px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #231628;
  border: 1.5px solid #F5B82E;
  color: #FFF8E7;
  font-family: var(--bw-font-mono);
  font-size: 10.5px;
  font-weight: 900;
  pointer-events: none;
  z-index: 4;
}

.dock-cost-pill.ready-pill {
  background: #4CC650;
  border-color: #FEF08A;
  color: #101A10;
}

/* Summonable Watcher Cards ([1..4]) */
.watcher-deck-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.watcher-summon-card {
  position: relative;
  width: 122px;
  height: 132px;
  padding: 5px 5px 6px;
  border-width: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #251B2D;
  color: #FFF8E7;
  pointer-events: auto;
  overflow: visible !important;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.watcher-summon-card:hover:not(:disabled) {
  transform: translateY(-8px) scale(1.03);
  z-index: 6;
}

.watcher-hotkey-tag {
  position: absolute;
  top: -7px;
  left: -5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #24172B;
  border: 1.5px solid #F5B82E;
  color: #FEF3C7;
  font-family: var(--bw-font-mono);
  font-size: 10.5px;
  font-weight: 900;
}

.watcher-cost-tag {
  position: absolute;
  top: -7px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #2B1D14;
  border: 1.5px solid #F5B82E;
  color: #FEF3C7;
  font-family: var(--bw-font-mono);
  font-size: 10.5px;
  font-weight: 900;
}

.watcher-cost-tag::before {
  content: '';
  width: 13px;
  height: 13px;
  background: url('../assets/ui/chips/chip_coin.png') center / contain no-repeat;
  flex-shrink: 0;
}

.watcher-card-art {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-top: 2px;
  flex-shrink: 0;
}

.watcher-card-lbl {
  width: 100%;
  text-align: center;
  font-size: 10.8px;
  font-weight: 800;
  line-height: 1.12;
  color: #FFF8E7;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
  text-overflow: clip;
}

.watcher-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #1A1221;
  color: #FDE68A;
  font-family: var(--bw-font-mono);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================================
 * 5. Spotlight FTUE Overlay
 * ============================================================================ */
.ftue-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.tut-spotlight {
  position: absolute;
  width: 132px;
  height: 142px;
  border-radius: 14px;
  border: 3px solid #FBBF24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.36);
  animation: bwPulseRing 1.15s ease-in-out infinite;
  pointer-events: none;
}

.tut-hand {
  position: absolute;
  width: 46px;
  height: 46px;
  animation: bwHandBob 0.95s ease-in-out infinite;
  pointer-events: none;
}

.ftue-banner {
  position: absolute;
  left: 50%;
  bottom: 162px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-width: 8px 14px;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
}

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

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

/* ============================================================================
 * 6. Anti-SaaS 60/25/15 Modals (Zero backdrop-filter: blur!)
 * ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 6, 14, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-shell {
  width: min(1040px, 94vw);
  max-height: 88vh;
  padding: 16px 20px 18px;
  border-width: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.draft-modal-shell {
  width: min(860px, 92vw);
}

.settings-modal-shell {
  width: min(760px, 92vw);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.modal-ribbon {
  padding: 6px 22px;
  border-width: 8px 18px;
  font-size: 18px;
  white-space: nowrap;
}

.modal-wallet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-width: 7px 12px;
  font-weight: 800;
  font-size: 14px;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.modal-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-tab-btn {
  padding: 6px 14px;
  border-width: 7px 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFF8E7;
  white-space: nowrap;
}

.compact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 5px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}

.anti-saas-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
  padding: 4px 4px 8px;
}

.draft-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 4px;
}

.game-item-card {
  position: relative;
  min-height: 224px;
  padding: 10px 10px 10px;
  border-width: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: visible;
}

.card-ribbon-tag {
  position: absolute;
  top: -7px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #F5B82E;
  color: #1A1208;
  font-size: 10.5px;
  font-weight: 900;
  z-index: 3;
}

.card-hero-art {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-short-title {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #FFF8E7;
  white-space: normal;
  line-height: 1.15;
}

.card-value-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #221728;
  color: #FFF8E7;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-btn {
  width: 100%;
  min-height: 40px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.pass-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-width: 10px;
}

.pass-xp-track {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: #1C1322;
  border: 1.5px solid #6E4226;
  overflow: hidden;
}

.pass-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CC650 0%, #F5B82E 100%);
  transition: width 0.25s ease;
}

/* Settings Layout */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}

.setting-card {
  padding: 12px 14px;
  border-width: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setting-lbl {
  font-weight: 800;
  font-size: 13.5px;
  color: #18141F;
}

.storybook-slider {
  flex: 1;
  accent-color: #D97706;
}

.setting-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.setting-pill-btn {
  min-height: 38px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.lang-choice-btn {
  min-height: 34px;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 800;
}

.giftcode-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.storybook-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1.5px solid #6E4226;
  background: #221828;
  color: #FFF8E7;
  font-family: var(--bw-font-mono);
  font-size: 13.5px;
}

.settings-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Overlay Hosts */
.overlay-host {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.overlay-host:not(:empty) {
  pointer-events: auto;
}

#cutinOverlayHost {
  z-index: 60;
  pointer-events: none !important;
}

.motion-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 65;
  pointer-events: none;
}

/* ============================================================================
 * 7. Compact 1280x720 & Multi-Language Overflow Guards (0 Clipping!)
 * ============================================================================ */
@media (max-width: 1360px), (max-height: 780px) {
  .hud-top-bar {
    padding: 6px 10px 2px;
    gap: 5px;
  }

  .hud-cluster {
    gap: 4px;
  }

  .hud-stage-pill,
  .hud-bonfire-pill,
  .hud-toggle-pill,
  .hud-currency-btn {
    height: 34px;
    padding: 2px 8px;
    font-size: 13px;
  }

  .hud-icon-btn,
  .hud-nav-btn {
    width: 34px;
    height: 34px;
  }

  .dock-skill-btn {
    width: 86px;
    height: 76px;
    padding: 4px 2px 4px;
  }

  .dock-skill-icon {
    width: 40px;
    height: 40px;
  }

  .dock-skill-lbl {
    font-size: 9.5px;
  }

  .watcher-summon-card {
    width: 114px;
    height: 124px;
    border-width: 6px;
    padding: 4px 4px 5px;
  }

  .watcher-card-art {
    width: 58px;
    height: 58px;
  }

  .watcher-card-lbl {
    font-size: 10px;
  }

  .title-showcase {
    grid-template-columns: minmax(170px, 1fr) minmax(360px, 490px) minmax(170px, 1fr);
  }
}
