/* ============================================================
   LOVE AND DEEPSPACE — Galaxy UI Theme
   ============================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --bg: #0e0e2e;
  --bg-deep: #0a0a22;
  --bg-card: #10103a;

  --gold: #c9a96e;
  --gold-lt: #e8cfa0;
  --gold-dim: rgba(201, 169, 110, .10);
  --gold-glow: rgba(201, 169, 110, .38);
  --gold-border: rgba(201, 169, 110, .42);

  --blue: #7b8ef7;
  --blue-lt: #b0bcff;
  --blue-dim: rgba(123, 142, 247, .10);
  --blue-glow: rgba(123, 142, 247, .38);
  --blue-border: rgba(123, 142, 247, .35);

  --r5-color: #c9a96e;
  --r5-glow: rgba(201, 169, 110, .60);
  --r4-color: #a78bfa;
  --r4-glow: rgba(167, 139, 250, .55);
  --r3-color: #60a5fa;
  --r3-glow: rgba(96, 165, 250, .40);

  --txt: #ede4ff;
  --txt-2: rgba(237, 228, 255, .58);
  --txt-3: rgba(237, 228, 255, .28);

  --glass: rgba(255, 255, 255, .03);
  --glass-b: rgba(201, 169, 110, .15);

  --font-d: 'Cinzel', serif;
  --font-c: 'Cormorant Infant', serif;
  --font-u: 'Inter', sans-serif;

  --sp1: 4px;
  --sp2: 8px;
  --sp3: 12px;
  --sp4: 16px;
  --sp5: 24px;
  --sp6: 32px;
  --sp7: 48px;
  --sp8: 64px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;

  --t-fast: 150ms ease;
  --t-std: 250ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 400ms cubic-bezier(.4, 0, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-u);
  font-size: 16px;
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  border: none;
  background: none;
  font: inherit;
}

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

svg {
  display: block;
}

/* ── APP SHELL ───────────────────────────────────────────── */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(ellipse 140% 90% at 50% -10%, #1c1c5a 0%, #0e0e2e 50%, #080818 100%);
}

/* ── STARFIELD CANVAS ────────────────────────────────────── */
#starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── SCREEN SYSTEM ───────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
  overflow: hidden;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}


/* ════════════════════════════════════════════════════════════
   GALAXY FRAME — broken border with arc corners
   Top-right & bottom-left have large concentric arc corners.
   Top-left & bottom-right have brackets and dots (Image 2 style).
════════════════════════════════════════════════════════════ */

.sf-frame {
  position: absolute;
  inset: 32px;
  pointer-events: none;
  z-index: 2;
}

/* Four border SEGMENTS (not a full rectangle) */
.sf-seg {
  position: absolute;
  background: var(--gold-border);
  pointer-events: none;
}

/* Top: Intersects TL corner, 220px from right (TR gap) */
.sf-seg-top {
  top: 0;
  left: 0;
  right: 300px;
  height: 1px;
}

/* Right: 220px from top (TR gap), intersects BR corner */
.sf-seg-right {
  top: 300px;
  right: 0;
  bottom: 0;
  width: 1px;
}

/* Bottom: 220px from left (BL gap), intersects BR corner */
.sf-seg-bottom {
  bottom: 0;
  left: 300px;
  right: 0;
  height: 1px;
}

/* Left: Intersects TL corner, 220px from bottom (BL gap) */
.sf-seg-left {
  top: 0;
  left: 0;
  bottom: 300px;
  width: 1px;
}

/* Top-Left & Bottom-Right Corners (Image 2 style) */
.sf-corner-tl,
.sf-corner-br {
  position: absolute;
  pointer-events: none;
  width: 80px;
  height: 80px;
}

.sf-corner-tl {
  top: 0;
  left: 0;
}

.sf-corner-br {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.sf-l-bracket {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
}

.sf-l-bracket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-border);
}

.sf-l-bracket::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5px;
  height: 100%;
  background: var(--gold-border);
}

.sf-c-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-glow);
}

.sf-c-arc {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 52px;
  height: 52px;
  border-top: 1px solid var(--gold-border);
  border-left: 1px solid var(--gold-border);
  border-radius: 100% 0 0 0;
}

/* Quarter-circle arcs at TOP-RIGHT corner (bulging INWARD, extending to window edge) */
.sf-arc-tr-s {
  position: absolute;
  top: -32px;
  right: -32px;
  width: 260px;
  height: 260px;
  border-bottom: 1.5px solid var(--gold-border);
  border-left: 1.5px solid var(--gold-border);
  border-radius: 0 0 0 100%;
}

.sf-arc-tr-d {
  position: absolute;
  top: -32px;
  right: -32px;
  width: 200px;
  height: 200px;
  border-bottom: 1.5px dashed rgba(201, 169, 110, 0.45);
  border-left: 1.5px dashed rgba(201, 169, 110, 0.45);
  border-radius: 0 0 0 100%;
}

/* Quarter-circle arcs at BOTTOM-LEFT corner (bulging INWARD, extending to window edge) */
.sf-arc-bl-s {
  position: absolute;
  bottom: -32px;
  left: -32px;
  width: 260px;
  height: 260px;
  border-top: 1.5px solid var(--gold-border);
  border-right: 1.5px solid var(--gold-border);
  border-radius: 0 100% 0 0;
}

.sf-arc-bl-d {
  position: absolute;
  bottom: -32px;
  left: -32px;
  width: 200px;
  height: 200px;
  border-top: 1.5px dashed rgba(201, 169, 110, 0.45);
  border-right: 1.5px dashed rgba(201, 169, 110, 0.45);
  border-radius: 0 100% 0 0;
}

/* Constellation SVGs */
.sf-constellation {
  position: absolute;
  pointer-events: none;
  animation: const-twinkle 4s ease-in-out infinite alternate;
}

.sf-const-left {
  left: 20px;
  top: 80px;
  width: 110px;
  height: 200px;
}

.sf-const-right {
  right: 30px;
  bottom: 80px;
  width: 140px;
  height: 180px;
}

/* Scattered stars */
.sf-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: const-twinkle 3s ease-in-out infinite alternate-reverse;
}

/* Reset button */
.sf-reset-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 110, .08);
  border: 1px solid rgba(201, 169, 110, .28);
  color: var(--gold-lt);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.sf-reset-btn svg {
  width: 16px;
  height: 16px;
}

.sf-reset-btn:hover {
  background: rgba(201, 169, 110, .16);
  box-shadow: 0 0 12px var(--gold-glow);
}


/* ════════════════════════════════════════════════════════════
   SCREEN 1 — BANNER SELECT
════════════════════════════════════════════════════════════ */
#screen-select {
  justify-content: center;
  align-items: center;
  gap: var(--sp5);
}

/* Center layout */
.select-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp5);
  position: relative;
  z-index: 3;
}

/* ── ARCH PANEL ───────────────────────── */
.arch-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 20px;
}

/* OUTER arch — dashed border, no bottom */
.arch-outer {
  position: relative;
  width: 550px;
  height: 400px;
  border: 1.5px dashed rgba(201, 169, 110, .4);
  border-bottom: none;
  border-radius: 300px 300px 0 0;
  padding: 20px 20px 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* INNER arch — solid border, no bottom */
.arch-inner {
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-border);
  border-bottom: none;
  border-radius: 280px 280px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: transparent;
}

/* Planet icon — absolutely positioned at center-top of outer arch */
.arch-planet-wrap-home {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: radial-gradient(circle at center, rgba(10, 10, 40, .95) 40%, transparent 75%);
  padding: 8px;
  border-radius: 50%;
}

.arch-planet-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: radial-gradient(circle at center, rgba(40, 30, 10, .95) 40%, transparent 75%);
  padding: 8px;
  border-radius: 50%;
}

.arch-planet-bg {
  fill: #1a1308;
  transition: fill var(--t-slow);
}

.arch-planet-svg {
  width: 80px;
  height: 54px;
  display: block;
}

.arch-logo {
  max-width: 300px;
  width: 100%;
  margin-top: 20px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.arch-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.arch-div-line {
  flex: 1;
  height: 1px;
  max-width: 90px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
}

.arch-div-line:last-child {
  background: linear-gradient(90deg, var(--gold-border), transparent);
}

.arch-div-gem {
  color: var(--gold);
  font-size: 14px;
}

.arch-sub {
  font-family: var(--font-c);
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--txt-3);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── BANNER CARDS ROW ─────────────────── */
.banner-row {
  display: flex;
  gap: var(--sp4);
  align-items: stretch;
}

/* Banner card — Image 2 style: wide horizontal rectangle */
.banner-card {
  position: relative;
  width: 340px;
  height: 90px;
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  background: rgba(10, 10, 30, .80);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform var(--t-std), box-shadow var(--t-std), border-color var(--t-std);
}

.banner-card:hover {
  transform: translateY(-3px);
}

.limited-card:hover {
  box-shadow: 0 12px 36px rgba(201, 169, 110, .22);
  border-color: var(--gold-lt);
}

.standard-card:hover {
  box-shadow: 0 12px 36px rgba(123, 142, 247, .22);
  border-color: var(--blue-lt);
}

/* Corner dots on banner card */
.bc-corner {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .7;
  z-index: 5;
}

.bc-tl {
  top: -2px;
  left: -2px;
}

.bc-tr {
  top: -2px;
  right: -2px;
}

.bc-bl {
  bottom: -2px;
  left: -2px;
}

.bc-br {
  bottom: -2px;
  right: -2px;
}

.standard-card .bc-corner {
  background: var(--blue);
}

/* Planet area on left */
.bc-planet-area {
  flex-shrink: 0;
  width: 82px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.bc-planet-svg {
  width: 56px;
  height: 40px;
}

/* Vertical divider */
.bc-vdivider {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: linear-gradient(to bottom, transparent, var(--gold-border), transparent);
  flex-shrink: 0;
}

.bc-vdivider-blue {
  background: linear-gradient(to bottom, transparent, var(--blue-border), transparent);
}

/* Card text content */
.bc-content {
  flex: 1;
  padding: 10px var(--sp3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.bc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.bc-badge {
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .15em;
  padding: 2px 6px;
  border-radius: var(--r-full);
}

.bc-badge-gold {
  color: var(--gold-lt);
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, .25);
}

.bc-badge-blue {
  color: var(--blue-lt);
  background: var(--blue-dim);
  border: 1px solid rgba(123, 142, 247, .25);
}

.bc-pulls {
  font-size: 9px;
  color: var(--txt-2);
  white-space: nowrap;
}

.bc-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold-lt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standard-card .bc-title {
  color: var(--blue-lt);
}

.bc-dotrow {
  font-size: 8px;
  letter-spacing: .12em;
  color: rgba(201, 169, 110, .35);
  white-space: nowrap;
  overflow: hidden;
}

.standard-card .bc-dotrow {
  color: rgba(123, 142, 247, .35);
}

.bc-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bc-featured {
  font-size: 9px;
  color: var(--txt-2);
}

.bc-featured strong {
  color: var(--txt);
}

.bc-pity {
  font-size: 9px;
  font-weight: 600;
}

/* Scattered stars inside card */
.bc-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Enter button (hidden visually but still functional) */
.bc-enter-btn {
  position: absolute;
  right: var(--sp3);
  bottom: var(--sp2);
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold);
  padding: 2px 0;
  z-index: 6;
  opacity: .6;
  transition: opacity var(--t-fast), color var(--t-fast);
}

.bc-enter-btn-blue {
  color: var(--blue);
}

.banner-card:hover .bc-enter-btn {
  opacity: 1;
}

/* Select footer */
.select-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
}

.daily-reset-row {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-size: 11px;
  color: var(--txt-2);
}

.reset-icon {
  width: 13px;
  height: 13px;
}

.countdown-timer {
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.footer-hint {
  font-size: 10px;
  color: var(--txt-3);
  letter-spacing: .02em;
}

.footer-disclaimer {
  font-size: 9px;
  color: var(--txt-3);
  opacity: 0.6;
  max-width: 800px;
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .footer-disclaimer {
    display: none;
  }
}

.gold-val {
  color: var(--gold-lt);
}

.blue-val {
  color: var(--blue-lt);
}


/* ════════════════════════════════════════════════════════════
   SCREEN 2 — PULL
════════════════════════════════════════════════════════════ */
#screen-pull {
  justify-content: center;
  align-items: center;
}

.pull-modal-outer.arch-outer {
  height: 620px;
  width: 460px;
  border-radius: 230px 230px 0 0;
  background: rgba(7, 7, 28, .8);
  backdrop-filter: blur(12px);
  border-bottom-style: dashed;
  border-bottom-width: 1.5px;
  border-bottom-color: rgba(201, 169, 110, .4);
  padding-bottom: 20px;
}

.pull-modal-outer .arch-inner {
  border-radius: 210px 210px 0 0;
  justify-content: flex-start;
  padding: 40px 20px 20px;
  gap: 0;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: var(--gold-border);
}

.pull-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background var(--t-slow);
}

.pull-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 28, 1) 0%, rgba(7, 7, 28, .55) 45%, rgba(7, 7, 28, .18) 100%);
}

/* Back button */
.back-btn {
  position: absolute;
  top: var(--sp5);
  left: var(--sp5);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-2);
  padding: var(--sp2) var(--sp3);
  border-radius: var(--r-full);
  border: 1px solid var(--glass-b);
  background: rgba(7, 7, 28, .6);
  backdrop-filter: blur(10px);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.back-btn:hover {
  color: var(--gold-lt);
  background: rgba(201, 169, 110, .1);
  border-color: var(--gold-border);
}

/* Pull showcase */
.pull-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 230px;
  flex-shrink: 0;
  margin: 0 auto 20px auto;
}

.showcase-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--glass-b);
  animation: ring-pulse 3.5s ease-in-out infinite;
}

.showcase-ring-outer {
  width: 230px;
  height: 230px;
}

.showcase-ring-inner {
  width: 160px;
  height: 160px;
  animation-delay: .8s;
  opacity: .5;
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp2);
}

.showcase-planet {
  width: 140px;
  height: 140px;
  animation: float-bob 4s ease-in-out infinite;
  object-fit: contain;
  opacity: 0.9;
}

/* Pull panel */
.pull-panel {
  position: relative;
  z-index: 5;
  background: transparent;
  padding: 0 var(--sp2);
  display: flex;
  flex-direction: column;
  gap: var(--sp3);
  width: 100%;
}

.panel-top-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp3);
}

.panel-banner-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold-lt);
}

.panel-event-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.tag-lim {
  background: var(--gold-dim);
  color: var(--gold-lt);
  border: 1px solid var(--gold-border);
}

.tag-std {
  background: var(--blue-dim);
  color: var(--blue-lt);
  border: 1px solid var(--blue-border);
}

.wish-row {
  display: flex;
  align-items: center;
  gap: var(--sp3);
}

.wish-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wic-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.wic-blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.wish-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wish-type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.lbl-gold {
  color: var(--gold-lt);
}

.lbl-blue {
  color: var(--blue-lt);
}

.wish-remaining-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
}

.pity-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp2);
}

.pity-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pity-heading {
  font-size: 11px;
  font-weight: 500;
  color: var(--txt-2);
  letter-spacing: .06em;
}

.pity-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-lt);
}

.pity-track {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-full);
  overflow: visible;
  border: 1px solid rgba(201, 169, 110, .12);
}

.pity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: var(--r-full);
  transition: width .5s var(--ease-expo);
  position: relative;
}

.pity-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 8px var(--gold-glow);
}

.pity-soft-marker {
  position: absolute;
  left: calc(60/70 * 100%);
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: rgba(255, 255, 255, .2);
  border-radius: 1px;
}

.pity-soft-hint {
  font-size: 9px;
  color: var(--txt-3);
  text-align: right;
}

.guarantee-zone {
  min-height: 18px;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  font-size: 11px;
  font-weight: 500;
  padding: 3px var(--sp3);
  border-radius: var(--r-full);
}

.gb-guaranteed {
  background: rgba(34, 197, 94, .12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, .25);
}

.gb-fifty {
  background: rgba(201, 169, 110, .10);
  color: var(--gold-lt);
  border: 1px solid rgba(201, 169, 110, .2);
}

.pull-btns-row {
  display: flex;
  gap: var(--sp3);
}

.pull-action-btn {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--sp3);
  padding: var(--sp3) var(--sp4);
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(201, 169, 110, .12), rgba(201, 169, 110, .04));
  border: 1px solid rgba(201, 169, 110, .35);
  color: var(--gold-lt);
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  transition: transform var(--t-std), box-shadow var(--t-std), filter var(--t-fast);
}

.pull-ten-btn {
  background: linear-gradient(135deg, rgba(201, 169, 110, .22), rgba(201, 169, 110, .10));
  border-color: rgba(201, 169, 110, .55);
}

.pull-action-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(201, 169, 110, .25);
  filter: brightness(1.15);
}

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

.btn-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .45s ease;
}

.pull-action-btn:hover:not(:disabled) .btn-shine {
  transform: translateX(100%);
}

.pull-btn-gem {
  font-size: 15px;
  flex-shrink: 0;
}

.pull-btn-text {
  font-size: 13px;
}

#screen-pull.banner-standard .pull-action-btn {
  background: linear-gradient(135deg, rgba(123, 142, 247, .12), rgba(123, 142, 247, .04));
  border-color: rgba(123, 142, 247, .35);
  color: var(--blue-lt);
}

#screen-pull.banner-standard .pull-ten-btn {
  background: linear-gradient(135deg, rgba(123, 142, 247, .22), rgba(123, 142, 247, .10));
  border-color: rgba(123, 142, 247, .55);
}

#screen-pull.banner-standard .pull-action-btn:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(123, 142, 247, .25);
}

#screen-pull.banner-standard .pity-counter {
  color: var(--blue-lt);
}

#screen-pull.banner-standard .pity-fill {
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
}

#screen-pull.banner-standard .pity-fill::after {
  background: var(--blue-lt);
  box-shadow: 0 0 8px var(--blue-glow);
}

#screen-pull.banner-standard .panel-banner-title {
  color: var(--blue-lt);
}

#screen-pull.banner-standard .pull-showcase .showcase-ring-inner {
  border-color: var(--blue);
}

#screen-pull.banner-standard .pull-modal-outer.arch-outer {
  border-color: rgba(123, 142, 247, .4);
}

#screen-pull.banner-standard .pull-modal-inner.arch-inner {
  border-color: var(--blue-border);
}

#screen-pull.banner-standard .arch-planet-wrap {
  background: radial-gradient(circle at center, rgba(10, 10, 40, .95) 40%, transparent 75%);
}

#screen-pull.banner-standard .arch-planet-bg {
  fill: #0e0e30;
}

#screen-pull.banner-standard .arch-planet-svg path {
  stroke: var(--blue);
}

#screen-pull.banner-standard .arch-planet-svg circle[stroke="#c9a96e"] {
  stroke: var(--blue-border);
}

#screen-pull.banner-standard .arch-planet-svg circle[fill="#c9a96e"] {
  fill: var(--blue-lt);
}

#screen-pull.banner-standard .arch-planet-svg circle[stroke="rgba(201,169,110,0.22)"] {
  stroke: rgba(123, 142, 247, .25);
}

.rules-hint {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-size: 10px;
  color: var(--txt-3);
  justify-content: center;
}

.star-tiny {
  width: 9px;
  height: 9px;
}


/* ════════════════════════════════════════════════════════════
   SCREEN 3 — REVEAL
════════════════════════════════════════════════════════════ */
#screen-reveal {
  z-index: 10;
  justify-content: space-between;
}

.pre-reveal-video-container {
  position: absolute;
  inset: 0;
  z-index: 50;
  /* Above all reveal UI */
  background: #000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pre-reveal-video-container.active {
  opacity: 1;
}

#pre-reveal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── PULL START UNIVERSAL VIDEO ──────────────────────────── */
.pull-start-video-container {
  position: absolute;
  inset: 0;
  z-index: 1000; /* Above all screens */
  background: #000;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pull-start-video-container.active {
  opacity: 1;
  pointer-events: all;
}

#pull-start-video {
  /* Desktop defaults: rotate 90 deg */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  object-fit: cover;
}

.reveal-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #12123c 0%, #08082a 50%, #040418 100%);
}

/* Border frame removed as per request */

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.reveal-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.reveal-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 64px var(--sp5) 48px;
}

.reveal-title {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--gold-lt);
  text-transform: uppercase;
}

.skip-btn {
  position: absolute;
  top: var(--sp6);
  right: var(--sp5);
  padding: 6px var(--sp4);
  background: rgba(10, 10, 30, .75);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
  color: var(--gold-lt);
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
  z-index: 30;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.skip-btn:hover {
  background: rgba(201, 169, 110, .12);
  box-shadow: 0 0 12px var(--gold-glow);
}

.reveal-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
}

/* Cards stage */
.cards-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp4);
  min-height: 0;
}

.cards-stage.layout-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px 8px;
  align-content: center;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
  row-gap: 4px;
}

/* ── CARD COMPONENT ─────────────────────── */
.reveal-card-wrapper {
  opacity: 0;
  transform: translateY(24px) scale(.85);
  transition: opacity 350ms var(--ease-expo), transform 420ms var(--ease-expo);
  perspective: 1000px;
}

.reveal-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-card {
  position: relative;
  border-radius: var(--r-lg);
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(.4, 0, .2, 1);
}

.layout-1 .reveal-card {
  width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  aspect-ratio: 9/19.5;
}

.layout-10 .reveal-card {
  width: 100%;
  aspect-ratio: 9/19.5;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.card-back {
  background: linear-gradient(135deg, #07071e 0%, #10103a 50%, #07071e 100%);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0s 325ms;
}

.card-back::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 169, 110, .1);
  border-radius: calc(var(--r-lg) - 4px);
}

.card-back-star {
  font-size: 28px;
  color: rgba(201, 169, 110, .35);
  animation: card-star-pulse 2.2s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

.card-front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

.reveal-card.flipped {
  transform: rotateY(180deg);
}

.reveal-card.flipped .card-back {
  visibility: hidden;
}

.card-front.r5 {
  border: 1px solid var(--r5-color);
  box-shadow: inset 0 0 18px rgba(201, 169, 110, .1);
}

.card-front.r4 {
  border: 1px solid var(--r4-color);
  box-shadow: inset 0 0 18px rgba(167, 139, 250, .1);
}

.card-front.r3 {
  border: 1px solid var(--r3-color);
  box-shadow: inset 0 0 12px rgba(96, 165, 250, .06);
}

.card-art {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-asset-img,
.card-asset-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}

.card-char-init {
  font-family: var(--font-d);
  font-weight: 600;
  user-select: none;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}

.layout-1 .card-char-init {
  font-size: 80px;
}

.layout-10 .card-char-init {
  font-size: 36px;
}

.sheen-5 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(201, 169, 110, .1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: sheen-scroll 3s ease-in-out infinite;
  pointer-events: none;
}

/* Stylized NEW badge */
.badge-new-stylized {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.badge-new-stylized::before {
  content: '';
  position: absolute;
  inset: -12px -20px;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.65) 0%, transparent 65%);
  z-index: -1;
  border-radius: 50%;
}

.new-text {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 230, 150, 0.8), 0 0 4px #fff;
  letter-spacing: 1px;
}

.new-sparkle {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 4px #fff);
  margin-top: -15px;
}

/* Card inner text & icons */
.card-art-grad {
  position: absolute;
  inset: 0;
  top: auto;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.card-reveal-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.card-reveal-stars {
  display: flex;
  gap: 2px;
}

.reveal-star-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transform: rotate(25deg);
}

.card-reveal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-c);
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.type-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.reveal-type-icon {
  width: 16px;
  height: 16px;
  color: #eab308;
}

.card-reveal-line {
  width: 75%;
  height: 1.5px;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  margin-top: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Layout 10 adjustments */
.layout-10 .card-reveal-info {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  bottom: 8px;
  left: 8px;
  right: 8px;
  gap: 0;
}

.layout-10 .char-name,
.layout-10 .card-reveal-line {
  display: none;
}

.layout-10 .card-reveal-title {
  gap: 0;
  font-size: 11px;
}

.layout-10 .reveal-star-icon,
.layout-10 .reveal-type-icon {
  width: 14px;
  height: 14px;
}

.layout-10 .badge-new-stylized {
  top: 8px;
  right: 8px;
  transform: scale(0.5);
  transform-origin: top right;
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  z-index: 10;
}

.card-glow.visible {
  opacity: 1;
}

.cg-5 {
  box-shadow: 0 0 30px var(--r5-glow), 0 0 60px rgba(201, 169, 110, .25);
}

.cg-4 {
  box-shadow: 0 0 20px var(--r4-glow);
}

.cg-3 {
  box-shadow: 0 0 12px var(--r3-glow);
}

.cb-xavier {
  background: linear-gradient(160deg, #0B1D3A, #163266, #254888);
}

.cb-zayne {
  background: linear-gradient(160deg, #071A15, #0E2E25, #113832);
}

.cb-rafayel {
  background: linear-gradient(160deg, #1A0A2E, #2A0A4A, #501580);
}

.cb-sylus {
  background: linear-gradient(160deg, #1A0000, #280505, #4A0808);
}

.cb-caleb {
  background: linear-gradient(160deg, #050E1A, #0A1A2E, #122048);
}

.cb-valko {
  background: linear-gradient(160deg, #051A08, #0A2E10, #104A1A);
}

.cc-xavier {
  color: #4A90D9;
}

.cc-zayne {
  color: #2DD4BF;
}

.cc-rafayel {
  color: #F472B6;
}

.cc-sylus {
  color: #EF4444;
}

.cc-caleb {
  color: #38BDF8;
}

.cc-valko {
  color: #22C55E;
}

/* Reveal footer */
.reveal-footer {
  position: relative;
  z-index: 5;
  padding: var(--sp3) var(--sp5) var(--sp5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp3);
}

.result-summary {
  font-size: 12px;
  color: var(--txt-2);
  text-align: center;
  letter-spacing: .03em;
  min-height: 18px;
  font-family: var(--font-d);
}

.collect-btn {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  padding: var(--sp2) var(--sp7);
  margin-bottom: var(--sp7);
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(201, 169, 110, .14), rgba(201, 169, 110, .05));
  border: 1px solid var(--gold-border);
  color: var(--gold-lt);
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease, transform var(--t-std), box-shadow var(--t-std), filter var(--t-fast);
}

.collect-btn svg {
  width: 14px;
  height: 14px;
}

.collect-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.collect-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px var(--gold-glow);
  filter: brightness(1.1);
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--sp6);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  background: rgba(7, 7, 28, .96);
  border: 1px solid var(--gold-border);
  color: var(--txt);
  padding: var(--sp2) var(--sp5);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-std), transform var(--t-std);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes float-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .2;
  }

  50% {
    transform: scale(1.08);
    opacity: .45;
  }
}

@keyframes card-star-pulse {
  from {
    color: rgba(201, 169, 110, .2);
  }

  to {
    color: rgba(201, 169, 110, .5);
  }
}

@keyframes sheen-scroll {
  0% {
    background-position: 200% 200%;
  }

  100% {
    background-position: -200% -200%;
  }
}

@keyframes const-twinkle {

  0%,
  100% {
    opacity: .7;
  }

  50% {
    opacity: .35;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:800px) {
  .banner-row {
    flex-direction: column;
  }

  .banner-card {
    width: min(300px, 85vw);
  }

  .arch-shape {
    width: 240px;
  }

  .pull-modal-outer {
    position: relative;
    z-index: 50;
  }
}

@media (max-width:640px) {
  .pull-panel {
    padding: var(--sp4);
    gap: var(--sp3);
  }

  .pull-btns-row {
    flex-direction: row;
  }

  .cards-stage.layout-10 {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp2);
  }

  .layout-10 .card-name {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Background Music Toggle */
.music-toggle-btn {
  position: absolute;
  bottom: var(--sp5);
  left: var(--sp5);
  z-index: 2000;
  /* Ensure it stays above modals */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 28, 0.6);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(10px);
  color: var(--txt-2);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.music-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.music-toggle-btn:hover {
  color: var(--gold-lt);
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold-border);
  transform: scale(1.05);
}

/* Card Badges for Collections */
.card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: #2DD4BF;
  color: #042f2a;
}

.badge-rankup {
  background: #38BDF8;
  color: #0c4a6e;
}

.badge-refund {
  background: #c9a96e;
  color: #3a2a0a;
}

/* Collection Pill Button */
.collection-pill-btn {
  margin-top: 16px;
  position: relative;
  background: rgba(7, 7, 28, 0.6);
  border: 1px solid var(--gold-border);
  color: var(--gold-lt);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  transition: all var(--t-fast);
}

.collection-pill-btn .col-notif-dot {
  left: auto;
  right: 0px;
  top: -2px;
  width: 10px;
  height: 10px;
}

.collection-pill-btn:hover {
  background: rgba(201, 169, 110, 0.15);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   SETTINGS MODAL
════════════════════════════════════════════════════════════ */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-container {
  width: 90%;
  max-width: 480px;
  background: #0e0e2e;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 0 16px rgba(201, 169, 110, 0.1);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.settings-overlay.active .settings-container {
  transform: translateY(0) scale(1);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(201, 169, 110, 0.05);
}

.settings-header h2 {
  font-family: var(--font-c);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--gold-lt);
  margin: 0;
  font-weight: 500;
}

.settings-close {
  width: 24px;
  height: 24px;
  color: var(--txt-2);
  transition: color 0.2s;
}

.settings-close:hover {
  color: #fff;
}

.settings-body {
  padding: 16px 24px 10px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.settings-body::-webkit-scrollbar {
  width: 6px;
}

.settings-body::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.3);
  border-radius: 3px;
}

.settings-accordion {
  border-bottom: 1px dashed rgba(201, 169, 110, 0.2);
}

.settings-accordion:last-child {
  border-bottom: none;
}

.settings-accordion summary {
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt);
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.settings-accordion summary::-webkit-details-marker {
  display: none;
}

.settings-accordion summary::after {
  content: '▼';
  font-size: 10px;
  color: var(--gold);
  transition: transform 0.3s;
}

.settings-accordion[open] summary::after {
  transform: rotate(180deg);
}

.accordion-content {
  padding-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.settings-desc {
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: left;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--txt);
  margin-bottom: 24px;
}
.slider-row:last-child {
  margin-bottom: 0;
}

.slider-row span {
  width: 50px;
  display: inline-block;
  font-weight: 500;
}

.settings-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(201, 169, 110, 0.3);
  outline: none;
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.8);
}

.cursor-options {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cursor-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  padding: 0;
}

.cursor-btn img {
  max-width: 30px;
  max-height: 30px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.cursor-btn svg {
  pointer-events: none;
}

.cursor-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cursor-btn.active {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--gold);
  color: var(--gold-lt);
  box-shadow: inset 0 0 8px rgba(201, 169, 110, 0.2);
}

@media (max-width: 800px) {
  #cursor-settings-section {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  #cursor-settings-section {
    display: none;
  }
}

.settings-action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 60, 60, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 60, 60, 0.4);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.settings-action-btn:hover {
  background: rgba(255, 60, 60, 0.2);
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.2);
}

.info-content {
  text-align: center;
}

.info-footer {
  padding: 0px 16px 16px 16px;
}

.info-copy {
  font-size: 10px;
  color: var(--txt-2);
  line-height: 1.4;
  margin-bottom: 16px;
  text-align: center;
}

.info-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.info-socials a {
  color: var(--txt-2);
  width: 20px;
  height: 20px;
  transition: color 0.2s, transform 0.2s;
}

.info-socials a:hover {
  color: var(--gold-lt);
  transform: scale(1.1);
}

/* Global Cursor Overrides */
body.cursor-default * {
  cursor: default !important;
}

body.cursor-caleb * {
  cursor: url('assets/ui/cursors/caleb_cursor.png'), auto !important;
}

body.cursor-rafayel * {
  cursor: url('assets/ui/cursors/rafayel_cursor.png'), auto !important;
}

body.cursor-sylus * {
  cursor: url('assets/ui/cursors/sylus_cursor.png'), auto !important;
}

body.cursor-valko * {
  cursor: url('assets/ui/cursors/valko_cursor.png'), auto !important;
}

body.cursor-xavier * {
  cursor: url('assets/ui/cursors/xavier_cursor.png'), auto !important;
}

body.cursor-zayne * {
  cursor: url('assets/ui/cursors/zayne_cursor.png'), auto !important;
}

/* ════════════════════════════════════════════════════════════
   MEMORIES MODAL
════════════════════════════════════════════════════════════ */
.col-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    linear-gradient(to top, rgba(7, 7, 28, 1) 0%, rgba(7, 7, 28, .55) 45%, rgba(7, 7, 28, .18) 100%),
    linear-gradient(160deg, #1c1605 0%, #302409 30%, #110d02 65%, #020008 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.col-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Back button for collection modal */
.col-back-btn {
  position: fixed;
  top: var(--sp5);
  left: var(--sp5);
  z-index: 1010;
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-2);
  padding: var(--sp2) var(--sp3);
  border-radius: var(--r-full);
  border: 1px solid var(--glass-b);
  background: rgba(7, 7, 28, .6);
  backdrop-filter: blur(10px);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.col-back-btn svg {
  width: 16px;
  height: 16px;
}

.col-back-btn:hover {
  color: var(--gold-lt);
  background: rgba(201, 169, 110, .1);
  border-color: var(--gold-border);
}

/* The outer wrapper: arch on top, body below — same width */
.col-modal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90vw, 660px);
}

/* ── ARCH ───────────────────────────────────────────────── */
.col-arch-outer {
  position: relative;
  width: 100%;
  /* matches the body width exactly */
  background: rgba(7, 7, 28, .88);
  backdrop-filter: blur(12px);
  /* Only show the border on the visible arc edges, not the bottom */
  border-left: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  border-top: 1px solid var(--gold-border);
  border-bottom: none;
  /* Arch shape: round only the top corners. The radius must be larger than
     half the width so it forms a full pointed arch. */
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  padding: 60px 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  /* Dashed overlay using a pseudo-element so the solid outer border + dashed inner work together */
}

/* Dashed inner arch border */
.col-arch-outer::before {
  content: '';
  position: absolute;
  inset: 10px 10px 0 10px;
  border: 1.5px dashed rgba(201, 169, 110, .25);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  pointer-events: none;
}

.col-arch-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: transparent;
}

/* Saturn planet ornament at arch top */
.col-arch-planet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: radial-gradient(circle at center, rgba(40, 30, 10, .95) 40%, transparent 75%);
  padding: 8px;
  border-radius: 50%;
}

.col-arch-planet svg {
  width: 70px;
  height: 48px;
  display: block;
}

/* Divider inside arch */
.col-arch-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.col-div-line {
  flex: 1;
  height: 1px;
  max-width: 80px;
  background: var(--gold-border);
}

.col-div-gem {
  color: var(--gold);
  font-size: 14px;
}

/* Title */
.col-modal-title {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--gold-lt);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(201, 169, 110, 0.4);
  margin: 0;
}

/* Character tabs inside the arch */
.col-char-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  padding: 0 8px;
}

@media (max-width: 600px) {
  .col-char-tabs {
    flex-wrap: wrap;
  }

  .col-char-tab {
    flex: 1 1 calc(33.333% - 10px);
  }
}

.col-char-tab {
  flex: 1;
  padding: 7px 0;
  border: 1px solid var(--glass-b);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-2);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--t-fast);
}

.col-char-tab:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-border);
}

.col-char-tab.active {
  color: var(--gold-lt);
  border-color: var(--gold-border);
  background: rgba(201, 169, 110, 0.12);
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.12);
}

/* ── CONTENT BODY (below arch) ──────────────────────────── */
.col-body {
  width: 100%;
  /* exactly same as arch outer */
  background: rgba(7, 7, 28, .88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-top: none;
  display: flex;
  flex-direction: column;
  max-height: 50vh;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
}

/* Dashed border overlay (left, right, bottom) to match arch */
.col-body::after {
  content: '';
  position: absolute;
  inset: 0 10px 10px 10px;
  border: 1.5px dashed rgba(201, 169, 110, .25);
  border-top: none;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

/* Controls row */
.col-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  flex-shrink: 0;
}

.col-all-tab {
  padding: 7px 22px;
  border: 1px solid var(--glass-b);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-2);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--t-fast);
}

.col-all-tab:hover {
  color: var(--txt);
  border-color: var(--gold-border);
  background: rgba(255, 255, 255, 0.08);
}

.col-all-tab.active {
  color: var(--gold-lt);
  border-color: var(--gold-border);
  background: rgba(201, 169, 110, 0.12);
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.12);
}

/* Sort */
.col-sort-wrap {
  position: relative;
}

.col-sort-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-lt);
  background: rgba(201, 169, 110, 0.08);
  transition: all var(--t-fast);
}

.col-sort-pill:hover {
  background: rgba(201, 169, 110, 0.16);
}

.col-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: #0e0e2e;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.col-sort-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--txt-2);
  transition: background var(--t-fast), color var(--t-fast);
}

.col-sort-option:hover {
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold-lt);
}

/* Divider */
.col-divider-line {
  height: 1px;
  background: var(--gold-border);
  margin: 0 24px;
  flex-shrink: 0;
}

/* ── Card Grid (5 per row) ──────────────────────────────── */
.col-grid {
  flex: 1;
  padding: 20px 24px 40px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  /* Custom gold scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.col-grid::-webkit-scrollbar {
  width: 8px;
}

.col-grid::-webkit-scrollbar-track {
  background: transparent;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.col-grid::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border: 2px solid rgba(201, 169, 110, 0.3);
  border-radius: 4px;
}

.col-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--txt-2);
  padding: 60px 20px;
  font-family: var(--font-c);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.col-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.col-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--glass-b);
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.col-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-notif-dot {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 10;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.col-card.max-rank .col-card-art {
  border-color: #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.6), inset 0 0 10px rgba(234, 179, 8, 0.3);
}

.col-card-grad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.col-card-type {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 5;
}

.col-type-icon {
  width: 22px;
  height: 22px;
  color: #eab308;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
  display: block;
}

/* Stars row — SVG sparkle icons */
.col-card-stars {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 1px;
  z-index: 5;
}

.col-star-icon {
  width: 18px;
  height: 18px;
  transform: rotate(25deg);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  flex-shrink: 0;
}

.col-rank-cube {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.col-rank-cube rect {
  fill: rgba(10, 10, 40, 0.75);
  stroke: rgba(140, 140, 180, 0.45);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: fill 0.3s, stroke 0.3s;
}

/* rank-1: top petal lit */
.col-rank-cube.rank-1 .cube-top {
  fill: #eab308;
  stroke: #fef08a;
}

/* rank-2: top + left petal lit */
.col-rank-cube.rank-2 .cube-top,
.col-rank-cube.rank-2 .cube-left {
  fill: #eab308;
  stroke: #fef08a;
}

/* rank-3: all three petals lit + glow pulse */
.col-rank-cube.rank-3 rect {
  fill: #eab308;
  stroke: #fef08a;
}

.col-rank-cube.rank-3 {
  filter: drop-shadow(0 0 6px #fef08a) drop-shadow(0 0 12px #eab308);
  animation: rank-pulse 2s ease-in-out infinite alternate;
}

@keyframes rank-pulse {
  from {
    filter: drop-shadow(0 0 4px #fef08a) drop-shadow(0 0 8px #eab308);
  }

  to {
    filter: drop-shadow(0 0 9px #fef08a) drop-shadow(0 0 18px #eab308);
  }
}

.col-card-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--txt-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.col-tl {
  top: -2.5px;
  left: -2.5px;
}

.col-tr {
  top: -2.5px;
  right: -2.5px;
}

.col-bl {
  bottom: -2.5px;
  left: -2.5px;
}

.col-br {
  bottom: -2.5px;
  right: -2.5px;
}

/* Removed old col-rankup-badge CSS */

/* ── CARD DETAILS MODAL ────────────────────────────────────── */
.card-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 15, 0.95);
  backdrop-filter: blur(10px);
}

.cd-wrapper {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cd-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd-header-char {
  font-size: 16px;
  color: var(--txt-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cd-footer-name {
  font-size: 28px;
  color: var(--gold-lt);
  font-family: var(--font-d);
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.cd-footer-credit {
  font-size: 14px;
  color: var(--txt-2);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-m);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.cd-credit-pipe {
  opacity: 0.4;
}

.cd-credit-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cd-credit-icons a {
  color: var(--gold-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cd-credit-icons a:hover {
  color: #fff;
  transform: scale(1.15);
}

.cd-credit-icons svg {
  width: 14px;
  height: 14px;
}

.cd-art-wrap {
  position: relative;
  width: 260px;
  aspect-ratio: 9/19.5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(201, 169, 110, 0.2);
}

.cd-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-up-btn {
  margin-top: 15px;
  padding: 12px 36px;
  background: linear-gradient(135deg, #c9a96e 0%, #8c7343 100%);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.rank-up-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.6);
}

.rank-up-btn:disabled {
  background: #333;
  color: #777;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE
   Targets screens ≤ 600px (phones)
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── SELECT SCREEN ─────────────────────────────────────── */
  .select-center {
    width: 100%;
    padding: var(--sp4) var(--sp3);
    gap: var(--sp4);
  }

  .banner-row {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: auto;
    padding: 0 var(--sp6);
    gap: var(--sp3);
  }

  .banner-card {
    width: auto;
    flex-grow: 1;
    height: 80px;
  }

  .arch-shape {
    display: none;
  }

  /* ── PULL SCREEN (banner modal) ────────────────────────── */
  .pull-modal-outer.arch-outer {
    width: 92vw;
    height: auto;
    min-height: 560px;
    border-radius: min(46vw, 230px) min(46vw, 230px) 0 0;
    padding-bottom: 16px;
  }

  .pull-modal-outer .arch-inner {
    border-radius: calc(min(46vw, 230px) - 20px) calc(min(46vw, 230px) - 20px) 0 0;
    padding: 32px 16px 16px;
  }

  .pull-showcase {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
  }

  .showcase-ring-outer {
    width: 180px;
    height: 180px;
  }

  .showcase-ring-inner {
    width: 120px;
    height: 120px;
  }

  .showcase-planet {
    width: 110px;
    height: 110px;
  }

  .panel-banner-title {
    font-size: 15px;
  }

  .pull-panel {
    padding: 0 var(--sp2);
    gap: var(--sp2);
  }

  .wish-row {
    gap: var(--sp2);
  }

  .wish-icon-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .wish-type-label {
    font-size: 12px;
  }

  .wish-remaining-count {
    font-size: 13px;
  }

  .pity-section {
    gap: 4px;
  }

  .pull-btns-row {
    flex-direction: row;
    gap: var(--sp2);
  }

  .pull-action-btn {
    padding: var(--sp2) var(--sp3);
    font-size: 12px;
    gap: var(--sp2);
  }

  .arch-planet-wrap svg {
    width: 50px;
    height: 34px;
  }

  /* ── 10-PULL REVEAL SCREEN ─────────────────────────────── */
  .reveal-header {
    padding: 40px var(--sp4) 24px;
  }

  .reveal-title {
    font-size: 13px;
    letter-spacing: 0.15em;
    margin-top: 24px;
  }

  .skip-btn {
    top: var(--sp4);
    right: var(--sp3);
    padding: 4px var(--sp3);
    font-size: 9px;
  }

  /* 10-pull: tighter columns, reduced row gap, diagonal stagger on bottom row */
  .cards-stage.layout-10 {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    align-content: center;
    column-gap: 3px;
    row-gap: 12px;
    max-width: 100%;
    padding: 0 var(--sp2);
    align-items: end;
  }

  /* Bottom row cards (cards 6-10) get pushed down diagonally */
  .cards-stage.layout-10 .reveal-card-wrapper:nth-child(6) { margin-top: 16px; }
  .cards-stage.layout-10 .reveal-card-wrapper:nth-child(7) { margin-top: 12px; }
  .cards-stage.layout-10 .reveal-card-wrapper:nth-child(8) { margin-top: 8px; }
  .cards-stage.layout-10 .reveal-card-wrapper:nth-child(9) { margin-top: 4px; }
  .cards-stage.layout-10 .reveal-card-wrapper:nth-child(10) { margin-top: 0px; }

  .layout-10 .reveal-card {
    width: 100%;
  }

  .layout-10 .reveal-star-icon,
  .layout-10 .reveal-type-icon {
    width: 9px;
    height: 9px;
  }

  /* 1-pull card stays centered but scales down */
  .layout-1 .reveal-card {
    width: min(240px, 72vw);
    max-height: 60vh;
    margin-top: 32px;
  }

  /* ── COLLECT ALL BUTTON ────────────────────────────────── */
  .collect-btn {
    font-size: 11px;
    padding: 10px 24px;
  }

  /* ── COLLECTION MODAL ──────────────────────────────────── */
  .col-modal-overlay {
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
  }

  .col-modal-wrap {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* Hide decorative frame completely on mobile collection modal */
  .col-modal-overlay .sf-frame {
    display: none;
  }

  /* Arch shrinks but stays proportional */
  .col-arch-outer {
    margin-top: 80px;
    padding: 48px 20px 20px;
    flex-shrink: 0;
  }

  .col-arch-planet svg {
    width: 52px;
    height: 36px;
  }

  .col-modal-title {
    font-size: 18px;
    letter-spacing: 0.2em;
  }

  /* Character tabs — exactly 3 per row */
  .col-char-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px;
  }

  .col-char-tab {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
    font-size: 10px;
    padding: 6px 0;
  }

  /* Filter row */
  .col-filter-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
  }

  /* Body grows to fill remaining height — enables scrolling */
  .col-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  /* Grid: 3 columns for mobile cards */
  .col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 12px 60px;
  }

  .col-card {
    max-width: 100%;
  }

  /* Reduce star icon size to fit smaller cards and apply negative spacing */
  .col-card-stars {
    gap: 0;
  }
  .col-star-icon {
    width: 13px;
    height: 13px;
  }
  .col-star-icon + .col-star-icon {
    margin-left: -2px;
  }

  .col-type-icon {
    width: 16px;
    height: 16px;
  }

  .col-card-label {
    font-size: 9px;
  }

  /* Back button */
  .col-back-btn {
    top: var(--sp3);
    left: var(--sp3);
    font-size: 11px;
    padding: var(--sp2) var(--sp3);
  }

  /* Pull Start Video Mobile Reset */
  #pull-start-video {
    width: 100%;
    height: 100%;
    transform: none;
    top: 0;
    left: 0;
  }

  /* Controls row tighter */
  .col-controls-row {
    padding: 10px 16px;
  }

  /* ── CARD DETAIL MODAL ─────────────────────────────────── */
  .cd-art-wrap {
    width: min(220px, 70vw);
  }

  .cd-footer-name {
    font-size: 22px;
  }

  .cd-footer-credit {
    font-size: 12px;
    gap: 6px;
  }

  .cd-credit-icons svg {
    width: 12px;
    height: 12px;
  }

  .cd-header-char {
    font-size: 13px;
  }

  .rank-up-btn {
    padding: 10px 28px;
    font-size: 12px;
  }

  /* ── SETTINGS MODAL ────────────────────────────────────── */
  .settings-container {
    width: min(94vw, 460px);
    max-height: 88vh;
  }

  .settings-body {
    max-height: 70vh;
  }

  /* ── SELECT SCREEN HEADER TOP ROW ──────────────────────── */
  .top-row-bar {
    padding: var(--sp3) var(--sp4);
  }

  /* ── iOS Safe Area / Status Bar Padding ────────────────── */
  .screen,
  .col-modal-overlay,
  .settings-overlay {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }
}