/* ============================================================================
 * Nullphase Chrono Deck — Commercial Cyber PCB Terminal Stylesheet
 * UI Vault: cyber_pcb_terminal | Archetype: arcade_neon_kinetic
 * Zero Google Fonts | Zero backdrop-filter: blur | High-Contrast 9-Slice Fallbacks
 * ============================================================================ */

:root {
  --np-bg-deep: #070C12;
  --np-surface: #0D1620;
  --np-surface-elev: #12202E;
  --np-emerald: #46E08A;
  --np-emerald-bright: #6EF7A8;
  --np-cyan: #63D3DC;
  --np-amber: #F5B841;
  --np-crimson: #F45B69;
  --np-violet: #A855F7;
  --np-ink-light: #EFFDF8;
  --np-ink-muted: #A9C7BE;
  --np-ink-dark: #05140B;
  --np-font-main: 'Segoe UI', 'Trebuchet MS', 'Calibri', system-ui, sans-serif;
  --np-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(--np-bg-deep);
  color: var(--np-ink-light);
  font-family: var(--np-font-main);
  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 UI Vault Surface Fallbacks (>= 8:1 WCAG)
 * ============================================================================ */
.uiv-frame-modal,
.frame_modal {
  background-color: #0B131B;
  color: #EFFDF8;
}

.uiv-frame-subpanel,
.frame_subpanel,
.uiv-slot-tile,
.slot_tile,
.uiv-hud-pill,
.hud_pill,
.uiv-card-common,
.card_common,
.uiv-card-rare,
.card_rare,
.uiv-card-epic,
.card_epic,
.uiv-card-legendary,
.card_legendary {
  background-color: #0E1923;
  color: #EFFDF8;
}

.uiv-ribbon-header,
.ribbon_header,
.uiv-tab-active,
.tab_active {
  background-color: #133128;
  color: #F4FFFA;
  font-weight: 800;
}

.uiv-btn-primary,
.btn_primary {
  background-color: #3CD680;
  color: #04130A !important;
  font-weight: 800;
  border-width: 8px 12px;
}

.uiv-btn-secondary,
.btn_secondary {
  background-color: #59C8D2;
  color: #04151A !important;
  font-weight: 800;
  border-width: 8px 12px;
}

.uiv-btn-danger,
.btn_danger {
  background-color: #B92B3A;
  color: #FFF7F8 !important;
  font-weight: 800;
  border-width: 8px 12px;
}

.uiv-btn-disabled,
.btn_disabled,
button:disabled {
  background-color: #1D2935 !important;
  color: #B5C7C1 !important;
  opacity: 0.85;
  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: #F43F5E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #081018;
  pointer-events: none;
  z-index: 4;
}

/* ============================================================================
 * 2. Heroic No-Box Title Screen (0 BOXED_LOGIN_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% 42%, rgba(7, 16, 24, 0.14) 0%, rgba(5, 11, 17, 0.72) 86%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.52) 0%, rgba(5, 10, 16, 0.12) 45%, rgba(5, 10, 16, 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: 6px 10px;
  font-weight: 800;
  font-size: 15px;
}

.pill-sep {
  width: 1px;
  height: 16px;
  background: rgba(99, 211, 220, 0.35);
}

.vip-mini-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #F5B841;
  color: #1A1002;
  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;
  padding: 5px 12px;
  border-width: 6px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #EFFDF8;
  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: 6px;
  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%;
}

.title-hero-right .title-hero-master {
  transform: scaleX(-1);
}

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

.hero-tag-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-width: 6px 10px;
  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 18px;
  border-width: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-logo-text {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.06;
  color: #F4FFFA;
  text-shadow:
    0 3px 0 #07281B,
    0 6px 18px rgba(4, 12, 18, 0.92);
}

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

.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;
  min-height: 62px;
  padding: 10px 32px;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-lead-icon {
  width: 26px;
  height: 26px;
  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;
  padding: 7px 14px;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
}

/* ============================================================================
 * 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;
}

/* Floating Corner HUD — pointer-events: none on wrapper, auto on buttons */
.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: 6px;
  overflow: visible;
  flex-shrink: 0;
}

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

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

.ap-num {
  color: #6EF7A8;
  font-family: var(--np-font-mono);
  font-size: 15px;
}

.deck-slash {
  color: #88B3A7;
}

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

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

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

/* Compact Floating AV Turn-Order Timeline + Relic Strip */
.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;
}

.av-timeline-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-width: 5px 8px;
  min-height: 34px;
  pointer-events: auto;
}

.av-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #132330;
  border: 1px solid rgba(99, 211, 220, 0.45);
  font-size: 11.5px;
  font-weight: 800;
  color: #E9FDF7;
  white-space: nowrap;
}

.av-chip.ally {
  border-color: #46E08A;
}

.av-chip.enemy {
  border-color: #F45B69;
}

.av-chip.active-turn {
  background: #1A3C2E;
  border-color: #6EF7A8;
}

.av-val {
  font-family: var(--np-font-mono);
  font-size: 11px;
  color: #A9DDD0;
}

.active-relic-strip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.relic-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(12, 24, 34, 0.92);
  border: 1px solid rgba(70, 224, 138, 0.48);
  font-size: 11.5px;
  font-weight: 700;
  color: #EFFDF8;
}

.relic-mini-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

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

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

.tool-dock-btn {
  position: relative;
  width: 90px;
  height: 80px;
  padding: 4px 2px 5px;
  border-width: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  overflow: visible !important;
  background-color: #0E1A25;
  color: #EFFDF8;
}

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

.tool-dock-lbl {
  max-width: 100%;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #EFFDF8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-cost-badge,
.tool-count-badge,
.hotkey-pill {
  position: absolute;
  top: -7px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #102636;
  border: 1.5px solid #63D3DC;
  color: #F2FFFB;
  font-family: var(--np-font-mono);
  font-size: 10.5px;
  font-weight: 900;
  pointer-events: none;
  z-index: 3;
}

.hotkey-pill.dark-pill {
  position: static;
  background: rgba(5, 20, 11, 0.22);
  border-color: rgba(5, 20, 11, 0.45);
  color: #04130A;
}

/* Fanned Playable Chrono Cards */
.card-hand-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.chrono-card {
  position: relative;
  width: clamp(114px, 10.8vw, 146px);
  height: clamp(152px, 21.5vh, 178px);
  padding: 6px 7px 7px;
  border-width: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #0D1822;
  color: #EFFDF8;
  pointer-events: auto;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible !important;
}

.chrono-card:hover:not(.unplayable),
.chrono-card.hint-focus {
  transform: translateY(-12px) scale(1.04);
  z-index: 6;
}

.chrono-card.unplayable {
  opacity: 0.58;
}

.chrono-card.evolved-card {
  background-color: #162923;
}

.card-cost-orb {
  position: absolute;
  top: -8px;
  left: -7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #46E08A;
  color: #04130A;
  border: 2px solid #08131C;
  font-family: var(--np-font-mono);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.card-hotkey-tag {
  position: absolute;
  top: -7px;
  right: -6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #10212E;
  border: 1px solid #63D3DC;
  color: #DDFBF4;
  font-family: var(--np-font-mono);
  font-size: 10px;
  font-weight: 800;
}

.card-art-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-top: 4px;
  flex-shrink: 0;
}

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

.card-stat-pills {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.card-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #152635;
  color: #EFFDF8;
  font-family: var(--np-font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.card-stat-chip.dmg {
  color: #FCD34D;
}

.card-stat-chip.shd {
  color: #67E8F9;
}

.card-stat-chip.brk {
  color: #6EF7A8;
}

.end-turn-dock {
  pointer-events: auto;
  flex-shrink: 0;
}

.end-turn-btn {
  min-width: 148px;
  height: 52px;
  padding: 6px 16px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.end-turn-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================================================================
 * 5. Sector Event Panel (Medbay / Anomaly) & Spotlight FTUE
 * ============================================================================ */
.event-node-panel {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: min(620px, 90vw);
  padding: 18px 22px;
  border-width: 12px;
}

.event-ribbon {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 12px;
  font-size: 16px;
}

.event-node-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
}

.event-node-art {
  width: 152px;
  height: 152px;
  object-fit: contain;
}

.event-choices-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-choice-btn {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.ftue-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.tut-spotlight {
  position: absolute;
  width: 136px;
  height: 176px;
  border-radius: 14px;
  border: 3px solid #6EF7A8;
  box-shadow: 0 0 0 3px rgba(70, 224, 138, 0.35);
  animation: npPulseRing 1.15s ease-in-out infinite;
  pointer-events: none;
}

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

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

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

@keyframes npHandBob {
  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(4, 9, 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: 12px;
  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 20px;
  border-width: 6px 14px;
  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: 6px 10px;
  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: 6px 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #EFFDF8;
  white-space: nowrap;
}

.compact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  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;
}

/* Visual-First Game Card (>= 55% Art, <= 3-Word Title, 0 Prose Walls!) */
.game-item-card {
  position: relative;
  min-height: 224px;
  padding: 10px 10px 10px;
  border-width: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background-color: #0E1924;
  color: #EFFDF8;
  overflow: visible;
}

.card-ribbon-tag {
  position: absolute;
  top: -7px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #F5B841;
  color: #1A1002;
  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: #F4FFFA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.card-action-btn {
  width: 100%;
  min-height: 38px;
  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: 8px;
}

.pass-xp-track {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: #081119;
  border: 1.5px solid #2A4B5C;
  overflow: hidden;
}

.pass-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #3CD680 0%, #63D3DC 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: 8px;
  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: #EFFDF8;
}

.cyber-slider {
  flex: 1;
  accent-color: #46E08A;
}

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

.setting-pill-btn {
  min-height: 36px;
  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;
}

.cyber-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1.5px solid #3B6978;
  background: #08121B;
  color: #EFFDF8;
  font-family: var(--np-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-ap-pill,
  .hud-deck-pill,
  .hud-currency-btn {
    height: 34px;
    padding: 2px 8px;
    font-size: 13px;
  }

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

  .tool-dock-btn {
    width: 88px;
    height: 76px;
    padding: 4px 2px 5px;
    border-width: 6px;
  }

  .tool-dock-icon {
    width: 38px;
    height: 38px;
  }

  .chrono-card {
    width: 122px;
    height: 148px;
    border-width: 6px;
    padding: 4px 4px 5px;
  }

  .card-title-lbl {
    font-size: 10.5px;
    line-height: 1.08;
  }

  .card-art-img {
    width: 54px;
    height: 54px;
  }

  .end-turn-btn {
    min-width: 138px;
    height: 48px;
    padding: 5px 14px;
    font-size: 13px;
  }

  .end-turn-icon {
    width: 30px;
    height: 30px;
  }

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

html:lang(de) .tool-dock-lbl,
html:lang(ru) .tool-dock-lbl,
html:lang(fr) .tool-dock-lbl,
html:lang(es) .tool-dock-lbl,
html:lang(pt-BR) .tool-dock-lbl {
  font-size: 9.2px;
}
