/* ============================================================================
 * Brushwraith Moon Survivor — Commercial Sumi-e Hanji Stylesheet
 * UI Vault: `inked_parchment_roguelite` · Archetype: `dark_arcane_rpg`
 * 100% Offline Fonts · ZERO `backdrop-filter: blur` · ZERO `ctx.shadowBlur`
 * Warm Hanji Parchment / Sepia / Cinnabar / Bronze Palette (NO Neon Cyan!)
 * ============================================================================ */

:root {
  --bw-font-display: 'Palatino Linotype', 'Georgia', 'Times New Roman', serif;
  --bw-font-body: 'Segoe UI', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --bw-font-mono: 'Consolas', 'Courier New', monospace;
  --bw-hanji-light: #F5E6CD;
  --bw-ink-dark: #1B1513;
  --bw-ink-surface: #221B18;
  --bw-cinnabar: #A82828;
  --bw-bronze: #C98A32;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #14100E;
  color: var(--bw-hanji-light);
  font-family: var(--bw-font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

[hidden] {
  display: none !important;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--bw-font-body);
  font-weight: 800;
}

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

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

.chip-micro {
  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;
}

/* ============================================================================
 * 1. Contrast-Verified 9-Slice Fallbacks (`inked_parchment_roguelite`)
 *    - Dark inked frames/pills/buttons -> #FBF5E8 text
 *    - Light Hanji `card-common..legendary` -> #181412 sumi-ink text!
 * ============================================================================ */
.uiv-inked_parchment_roguelite-frame-modal {
  background-color: #211B18;
  color: #FBF5E8;
}

.uiv-inked_parchment_roguelite-frame-subpanel {
  background-color: #2A221E;
  color: #FBF5E8;
}

.uiv-inked_parchment_roguelite-hud-pill,
.uiv-inked_parchment_roguelite-slot-tile,
.uiv-inked_parchment_roguelite-tab-active {
  background-color: #241D1A;
  color: #FBF5E8;
}

.uiv-inked_parchment_roguelite-ribbon-header {
  background-color: #6B2320;
  color: #FFF7E8;
}

.uiv-inked_parchment_roguelite-btn-primary {
  background-color: #9E6822;
  color: #FFFDF8;
}

.uiv-inked_parchment_roguelite-btn-secondary {
  background-color: #235E58;
  color: #F8FFFE;
}

.uiv-inked_parchment_roguelite-btn-danger {
  background-color: #842323;
  color: #FFF5F5;
}

.uiv-inked_parchment_roguelite-btn-disabled {
  background-color: #3A332F;
  color: #D6CBC0;
}

.uiv-inked_parchment_roguelite-card-common,
.uiv-inked_parchment_roguelite-card-rare,
.uiv-inked_parchment_roguelite-card-epic,
.uiv-inked_parchment_roguelite-card-legendary {
  background-color: #EFE5CE;
  color: #181412;
}

/* ============================================================================
 * 2. Screen Layers & Heroic No-Box Title Screen (`0 BOXED_LOGIN_TITLE_SCREEN`)
 * ============================================================================ */
.screen-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
}

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

#titleScreen {
  justify-content: space-between;
  padding: 14px 22px 24px;
}

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

.title-ink-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(20, 15, 12, 0.14) 0%, rgba(16, 12, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(14, 10, 9, 0.56) 0%, rgba(14, 10, 9, 0.08) 38%, rgba(14, 10, 9, 0.76) 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: 10px;
  flex-wrap: nowrap;
}

.title-wallet-cluster,
.title-utility-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.wallet-chip-btn,
.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: #FBF5E8;
  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(16, 11, 9, 0.80) 0%, rgba(16, 11, 9, 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 26px;
  border-width: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-logo-text {
  margin: 0;
  font-family: var(--bw-font-display);
  font-size: clamp(31px, 3.9vw, 52px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.06;
  color: #FFF3DA;
  text-shadow:
    0 3px 0 #2D1812,
    0 6px 18px rgba(10, 7, 6, 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 15px;
  border-width: 8px 13px;
  font-size: 14px;
}

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

/* ============================================================================
 * 3. Full-Bleed Sumi-e Hanji Arena + Single-Row Floating HUD (`>= 13px`)
 * ============================================================================ */
#gameScreen {
  position: fixed;
  inset: 0;
}

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

#arenaCanvas,
.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;
  flex-wrap: nowrap !important;
  gap: 8px;
  padding: 8px 14px 4px;
  pointer-events: none;
}

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

.hud-stage-pill,
.hud-timer-pill,
.hud-hp-pill,
.hud-xp-pill,
.hud-toggle-pill,
.hud-currency-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 3px 10px;
  border-width: 6px 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FBF5E8;
  white-space: nowrap;
  overflow: visible;
}

.hud-hp-track {
  width: 72px;
  height: 13px;
  border-width: 3px 5px;
  overflow: hidden;
  position: relative;
  background: #1B1412;
}

.hud-hp-fill {
  height: 100%;
  border-width: 2px;
  background: linear-gradient(90deg, #9E2E2E 0%, #DC2626 100%);
  transition: width 0.16s ease;
}

.hud-xp-mini-track {
  width: 54px;
  height: 9px;
  border-radius: 999px;
  background: #1B1513;
  border: 1px solid #C98A32;
  overflow: hidden;
}

.hud-xp-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #C98A32 0%, #FDE68A 100%);
  transition: width 0.15s ease;
}

.hud-toggle-pill.is-active {
  outline: 2px solid #FBBF24;
  background-color: #4A3016;
}

.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: 6px;
  overflow: visible;
}

.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;
}

.evo-scroll-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  pointer-events: auto;
}

.evo-pair-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(28, 22, 19, 0.92);
  border: 1px solid rgba(201, 138, 50, 0.62);
  font-size: 11.5px;
  font-weight: 800;
  color: #FBF5E8;
  white-space: nowrap;
}

.evo-pair-pill.is-evolved {
  background: rgba(124, 29, 29, 0.95);
  border-color: #FBBF24;
  color: #FEF3C7;
}

.evo-pair-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.boss-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #881B1B;
  border: 2px solid #FBBF24;
  color: #FFFBEB;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  pointer-events: none;
}

/* ============================================================================
 * 4. Bottom Action Survivor Dock + Weapon Loadout (Round 5 Ratios >= 0.50!)
 * ============================================================================ */
.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;
}

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

.dock-skill-btn {
  position: relative;
  width: 92px;
  height: 82px;
  padding: 4px 3px 5px;
  border-width: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  overflow: visible !important;
  background-color: #241D1A;
  color: #FBF5E8;
}

.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: #FBF5E8;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
  text-overflow: clip;
}

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

.dock-cost-pill.ready-pill {
  background: #9E6822;
  border-color: #FDE68A;
  color: #FFFDF7;
}

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

.weapon-slots-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.weapon-slot-card {
  position: relative;
  width: 112px;
  height: 114px;
  padding: 5px 5px 5px;
  border-width: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #251E1B;
  color: #FBF5E8;
  pointer-events: auto;
  overflow: visible !important;
}

.weapon-slot-card.is-evolved {
  background-color: #4A1919;
  outline: 2px solid #FBBF24;
}

.weapon-slot-art {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.weapon-lv-badge {
  position: absolute;
  top: -7px;
  right: -4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #7C2222;
  border: 1.5px solid #FDE68A;
  color: #FFFBEB;
  font-family: var(--bw-font-mono);
  font-size: 10px;
  font-weight: 900;
}

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

.tut-spotlight {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 3px solid #E8A849;
  box-shadow: 0 0 0 4px rgba(232, 168, 73, 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: 146px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-width: 7px 14px;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
}

@keyframes bwPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); 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(12, 9, 8, 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 26px;
  border-width: 8px 22px;
  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: #FBF5E8;
  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: 12px;
  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: #8C2020;
  color: #FFFBEB;
  font-size: 10.5px;
  font-weight: 900;
  z-index: 3;
}

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

/* Note: All `card-common..legendary` in `inked_parchment_roguelite` are light Hanji parchment -> dark sumi ink! */
.card-short-title {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #181412;
  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: #241C19;
  color: #FBF5E8;
  font-size: 11.5px;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
}

.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: #171210;
  border: 1.5px solid #C98A32;
  overflow: hidden;
}

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

.defeat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.defeat-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 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: #FBF5E8;
}

.parchment-slider {
  flex: 1;
  accent-color: #C98A32;
}

.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;
}

.parchment-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1.5px solid #A38B67;
  background: #1B1513;
  color: #FBF5E8;
  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-timer-pill,
  .hud-hp-pill,
  .hud-xp-pill,
  .hud-toggle-pill,
  .hud-currency-btn {
    height: 34px;
    padding: 2px 8px;
    font-size: 13px;
  }

  .hud-hp-track {
    width: 58px;
  }

  .hud-xp-mini-track {
    width: 42px;
  }

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

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

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

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

  .weapon-slot-card {
    width: 104px;
    height: 106px;
    padding: 4px 4px 4px;
  }

  .weapon-slot-art {
    width: 54px;
    height: 54px;
  }

  .weapon-slot-lbl {
    font-size: 10px;
  }

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