/* css/game.css — Grimhand: Poker Dungeon (inked_parchment_roguelite · 100% Offline · ZERO backdrop-filter) */
:root {
  --font-display: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --ink-dark: #1C1714;
  --ink-muted: #4A3A2E;
  --parchment-ivory: #EFE5CE;
  --gold-bright: #FDE68A;
  --gold-bronze: #C98A32;
  --wax-crimson: #A82834;
  --teal-verdigris: #2E857D;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0F0D0E;
  color: var(--parchment-ivory);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

/* ===== Compact 9-Slice UI Vault Ergonomic Overrides (Zero Bloated Borders at 720p) ===== */
.uiv-inked_parchment_roguelite-frame-modal {
  border-width: 16px 16px 20px 16px !important;
  border-image-width: 16px 16px 20px 16px !important;
  color: var(--parchment-ivory);
  font-family: var(--font-display);
  cursor: default;
}

.uiv-inked_parchment_roguelite-frame-subpanel {
  border-width: 12px 14px 10px 14px !important;
  border-image-width: 12px 14px 10px 14px !important;
  color: var(--parchment-ivory);
  font-family: var(--font-body);
  cursor: default;
}

.uiv-inked_parchment_roguelite-ribbon-header {
  border-width: 10px 26px 10px 26px !important;
  border-image-width: 10px 26px 10px 26px !important;
  color: var(--gold-bright);
  font-family: var(--font-display);
  cursor: default;
}

.uiv-inked_parchment_roguelite-hud-pill {
  border-width: 7px 13px 7px 13px !important;
  border-image-width: 7px 13px 7px 13px !important;
  color: var(--parchment-ivory);
  font-family: var(--font-body);
}

.uiv-inked_parchment_roguelite-tab-active {
  border-width: 8px 12px 5px 12px !important;
  border-image-width: 8px 12px 5px 12px !important;
  color: var(--gold-bright);
  font-family: var(--font-display);
}

.uiv-inked_parchment_roguelite-btn-primary,
.uiv-inked_parchment_roguelite-btn-secondary,
.uiv-inked_parchment_roguelite-btn-danger,
.uiv-inked_parchment_roguelite-btn-disabled {
  border-width: 10px 16px 10px 16px !important;
  border-image-width: 10px 16px 10px 16px !important;
  color: #FFF9EC;
  font-family: var(--font-display);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.85);
}

.uiv-inked_parchment_roguelite-card-common,
.uiv-inked_parchment_roguelite-card-rare,
.uiv-inked_parchment_roguelite-card-epic,
.uiv-inked_parchment_roguelite-card-legendary {
  border-width: 10px 10px 10px 10px !important;
  border-image-width: 10px 10px 10px 10px !important;
  color: var(--ink-dark);
  font-family: var(--font-body);
}

.uiv-inked_parchment_roguelite-bar-track {
  border-width: 5px 10px 5px 10px !important;
  border-image-width: 5px 10px 5px 10px !important;
  cursor: default;
}

.uiv-inked_parchment_roguelite-bar-fill-primary {
  border-width: 4px 6px 4px 6px !important;
  border-image-width: 4px 6px 4px 6px !important;
  cursor: default;
}

button:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ===== Full-Bleed Canvas Stage ===== */
#stage-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #0F0D0E;
}

#stage-wrap.in-gameplay {
  background:
    radial-gradient(circle at 50% 48%, rgba(18, 14, 24, 0.10) 0%, rgba(12, 10, 16, 0.38) 65%, rgba(8, 6, 11, 0.78) 100%),
    url('../assets/art/arena_bg.jpg') center center / cover no-repeat;
}

#game-canvas,
#vfx-3d-canvas,
#cutin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#vfx-3d-canvas {
  pointer-events: none;
  z-index: 4;
}

#cutin-canvas {
  pointer-events: none;
  z-index: 60;
}

/* ===== Heroic No-Box Title Screen ===== */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(46px, 8vh, 92px);
  background: url('../assets/art/title_bg.jpg') center center / cover no-repeat;
}

#title-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(12, 10, 16, 0.14) 0%, rgba(10, 8, 12, 0.62) 78%, rgba(8, 6, 10, 0.88) 100%);
  pointer-events: none;
}

.title-top-dock {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 44px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  overflow: visible !important;
}

.title-hero-showcase {
  position: relative;
  z-index: 32;
  width: clamp(190px, 22vh, 270px);
  height: clamp(190px, 22vh, 270px);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.title-hero-bust {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.78));
}

.title-logo-main {
  position: relative;
  z-index: 33;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 900;
  letter-spacing: 0.10em;
  color: var(--gold-bright);
  text-shadow: 0 4px 0 #1A100A, 0 8px 22px rgba(0, 0, 0, 0.92), 0 0 24px rgba(201, 138, 50, 0.45);
  line-height: 1.05;
  text-align: center;
}

.title-logo-sub {
  position: relative;
  z-index: 33;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #EFE5CE;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.92);
  margin-top: 6px;
  margin-bottom: 24px;
}

.title-loader {
  position: relative;
  z-index: 34;
  width: min(360px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--parchment-ivory);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.loader-track {
  width: 100%;
  height: 24px;
  position: relative;
  overflow: hidden;
}

.loader-fill {
  width: 0%;
  height: 100%;
  transition: width 0.16s ease-out;
}

.title-play-cta {
  position: relative;
  z-index: 35;
  min-width: 248px;
  height: 64px;
  padding: 0 34px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.72));
}

/* ===== Floating Corner Gameplay HUD ===== */
#gameplay-hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

#hud-top {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  pointer-events: none;
}

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

.hud-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: default;
}

.shield-chip {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.hud-timer {
  color: #C9B799;
  font-size: 13px;
  margin-left: 4px;
}

.hud-nav-btn {
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hud-nav-btn > .hud-btn-lbl {
  display: inline-block;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-nav-btn.hud-icon-only {
  min-width: 44px;
  padding: 0 4px;
}

.hud-ic-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.notify-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 30;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: #DC2626;
  border: 2px solid #FDE68A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ===== Fighter Status Plates (Above Fighters) ===== */
#arena-plates {
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(28px, 7vw, 140px);
  pointer-events: none;
}

.fighter-plate {
  width: clamp(250px, 24vw, 330px);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.plate-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plate-hp-txt {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--parchment-ivory);
}

.intent-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: #8B1E28;
  border: 1px solid #F59E0B;
  color: #FFF7E6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.intent-badge.is-dazed {
  background: #475569;
  border-color: #CBD5E1;
}

.intent-badge.is-guard {
  background: #1D4ED8;
  border-color: #93C5FD;
}

.plate-bar-track {
  position: relative;
  width: 100%;
  height: 22px;
  overflow: hidden;
}

.plate-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.2s ease-out;
}

.fill-hero {
  background: linear-gradient(90deg, #1E7A56, #34D399);
}

.fill-enemy {
  background: linear-gradient(90deg, #8B1E28, #EF4444);
}

.bar-overlay-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
}

.plate-meta-row,
.break-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.relic-pip-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.relic-pip-ic {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.deck-pill-txt {
  font-size: 13px;
  font-weight: 700;
  color: #D6C7AA;
  white-space: nowrap;
}

.break-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #FCD34D;
  white-space: nowrap;
}

.break-track {
  flex: 1 1 auto;
  height: 10px;
  background: #27221F;
  border: 1px solid #7C664A;
  border-radius: 3px;
  overflow: hidden;
}

.break-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D97706, #FDE047);
  transition: width 0.2s ease-out;
}

.weak-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.weak-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #FDE68A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
}

/* ===== Bottom Fanned Poker Card Hand Dock ===== */
#bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.hand-preview-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  max-width: 90vw;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  pointer-events: auto;
  white-space: nowrap;
}

.preview-stats {
  color: #EFE5CE;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
}

.dock-main-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.dock-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  margin-bottom: 6px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 146px;
  height: 48px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: visible !important;
}

.action-btn.action-primary {
  min-width: 170px;
  height: 54px;
  font-size: 15px;
}

.action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.act-ic {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.hand-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 4px;
  pointer-events: auto;
  min-height: 152px;
}

.poker-card {
  position: relative;
  width: 104px;
  height: 140px;
  padding: 4px;
  background-color: #EBD5AC;
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.14s ease-out, filter 0.14s ease-out;
  overflow: visible !important;
  color: var(--ink-dark);
}

.poker-card:hover {
  transform: translateY(-10px);
  z-index: 8;
}

.poker-card.is-selected {
  transform: translateY(-20px);
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(253, 230, 138, 0.85));
}

.poker-card.is-cursed {
  filter: drop-shadow(0 0 8px rgba(185, 28, 28, 0.85));
}

.poker-card.is-wild-tarot {
  background-color: #F4E4BC;
  filter: drop-shadow(0 0 8px rgba(181, 124, 255, 0.65));
}

.card-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
}

.card-suit-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}

.card-suit-lbl {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-dark);
}

.card-hotkey {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 20px;
  border-radius: 4px;
  background: #1C1917;
  border: 1px solid #C98A32;
  color: #FDE68A;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.card-curse-wax {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #991B1B;
  border: 2px solid #FCA5A5;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ===== Non-Blocking Visual Spotlight FTUE ===== */
.tut-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.tut-spotlight {
  position: absolute;
  border: 3px solid #FDE68A;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(201, 138, 50, 0.55);
  animation: tutPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

.tut-hand {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tutBounce 0.9s ease-in-out infinite;
  pointer-events: none;
}

.tut-pointer-badge {
  background: #1C1917;
  border: 2px solid #E2B362;
  border-radius: 6px;
  padding: 5px 12px;
  color: #FDE68A;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tut-arrow-down {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #E2B362;
}

.tut-skip-btn {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto;
}

@keyframes tutPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 0.65; }
}

@keyframes tutBounce {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* ===== Flex-Scroll Anti-SaaS 60/25/15 Modals ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 10, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-root {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.modal-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(860px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  padding: 6px 12px 10px;
}

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

.modal-card.modal-settings {
  width: min(640px, 90vw);
}

.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 10px;
}

.modal-title-ribbon {
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 900;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.modal-close-x {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.close-x-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 10px;
}

.modal-footer-btn {
  min-width: 160px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 900;
}

.modal-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.modal-tab-btn {
  min-width: 140px;
  height: 42px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-grid-1,
.modal-grid-2,
.modal-grid-3,
.modal-grid-4 {
  display: grid;
  gap: 12px;
  width: 100%;
}

.modal-grid-1 { grid-template-columns: minmax(0, 1fr); }
.modal-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modal-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.vf-card-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 6px;
  min-height: 196px;
  background-color: #EBD5AC;
  background-clip: padding-box;
  color: var(--ink-dark);
  overflow: visible !important;
}

.vf-card-art-wrap,
.vf-art-wrap {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-card-img,
.vf-art-img {
  max-width: 90%;
  max-height: 90px;
  width: auto;
  height: 84px;
  object-fit: contain;
  pointer-events: none;
}

.vf-card-title,
.vf-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-dark);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(28, 23, 20, 0.14);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 14px;
  font-weight: 900;
  color: #2B1F16;
  font-variant-numeric: tabular-nums;
}

.chip-icon,
.btn-coin-ic {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.vf-card-cta,
.vf-cta {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.shop-badge,
.lvl-pill {
  position: absolute;
  top: -8px;
  right: 6px;
  z-index: 6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #FFF9EC;
  background: #3B281B;
  border: 1px solid #E2B362;
  pointer-events: none;
}

.badge-starter { background: #2E857D; }
.badge-popular { background: #B45309; }
.badge-best    { background: #9E2E2E; }

.pass-hero-strip,
.ev-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.pass-banner-flex {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.pass-cycle-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pass-cycle-pill {
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pass-claim-all-btn {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-tab-btn.is-locked {
  opacity: 0.52;
  cursor: not-allowed;
}

.pass-hero-ic,
.ev-hero-ic {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pass-hero-meta,
.ev-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

.crypt-map-track,
.crypt-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.map-node-card {
  min-height: 144px;
}

.map-node-card.is-done {
  opacity: 0.62;
}

.draft-spoils-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Seasons & Modes Hub (v1.1 - v1.3) */
.sz-hdr-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sz-help-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sz-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  min-height: 42px;
  flex-shrink: 0;
}

.sz-wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sz-utc-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Settings Modal */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px;
}

.setting-row,
.set-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-toggle {
  min-width: 158px;
  height: 42px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.parchment-slider {
  flex: 1 1 auto;
  accent-color: #C98A32;
  height: 8px;
  cursor: pointer;
}

.lang-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-bright);
  text-align: center;
}

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

.lang-pick-btn {
  height: 42px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exit-headline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--gold-bright);
}

.exit-emblem {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.exit-lantern-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

/* Preview-Only [DEV F2] Panel */
#dev-f2-btn {
  position: fixed;
  bottom: 10px;
  left: 12px;
  z-index: 95;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #1C1917;
  color: #FDE68A;
  border: 1px solid #C98A32;
  border-radius: 4px;
  cursor: pointer;
}

#debug-panel {
  position: fixed;
  bottom: 44px;
  left: 12px;
  z-index: 96;
  width: 240px;
  background: #181513;
  border: 2px solid #C98A32;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#debug-panel button {
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  background: #2C2520;
  color: #EFE5CE;
  border: 1px solid #7C664A;
  border-radius: 4px;
  cursor: pointer;
}

/* ===== Compact 1280x720 Responsive Tuning ===== */
@media (max-width: 1366px), (max-height: 768px) {
  #hud-top {
    top: 8px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .hud-stat-pill,
  .hud-nav-btn {
    height: 40px;
    font-size: 13px;
    padding: 0 6px;
  }
  .hud-nav-btn > .hud-btn-lbl {
    max-width: 66px;
  }
  .hud-ic-img {
    width: 22px;
    height: 22px;
  }
  #arena-plates {
    top: 58px;
    padding: 0 36px;
  }
  .fighter-plate {
    width: 256px;
    padding: 4px 8px;
    gap: 4px;
  }
  .hand-cards {
    min-height: 132px;
    padding-top: 12px;
    gap: 6px;
  }
  .poker-card {
    width: 92px;
    height: 124px;
  }
  .card-suit-icon {
    width: 50px;
    height: 50px;
  }
  .action-btn {
    min-width: 132px;
    height: 44px;
    font-size: 13px;
  }
  .action-btn.action-primary {
    min-width: 148px;
    height: 48px;
  }
  .modal-card {
    max-height: 94vh;
    padding: 4px 10px 8px;
  }
  .modal-header {
    padding: 2px 4px 6px;
  }
  .modal-title-ribbon {
    min-height: 36px;
  }
  .modal-body {
    gap: 8px;
    padding: 4px 6px 6px;
  }
  .modal-grid-3,
  .modal-grid-4 {
    gap: 8px;
  }
  .modal-footer {
    gap: 8px;
    padding-top: 6px;
  }
  .modal-footer-btn {
    min-width: 132px;
    height: 40px;
    font-size: 13px;
    padding: 0 10px;
  }
  .modal-tab-btn {
    min-width: 112px;
    height: 36px;
    font-size: 13px;
  }
  .sz-banner {
    min-height: 34px;
    padding: 4px 12px;
  }
  .vf-card-portrait {
    min-height: 154px;
    padding: 6px 6px;
    gap: 3px;
  }
  .vf-card-art-wrap,
  .vf-art-wrap {
    height: 68px;
  }
  .vf-card-img,
  .vf-art-img {
    height: 64px;
    max-height: 66px;
  }
  .vf-card-cta,
  .vf-cta {
    height: 36px;
  }
}
