/* ═══════════════════════════════════════════
   NeoCity X Design System — MiastoX
   Klimat: Dark / Futurystyczne Miasto Nocą — Grayscale
   ═══════════════════════════════════════════ */

:root {
  /* ── Neon Aqua Accents ── */
  --accent: #00ffff;
  --accent-light: #e0ffff;
  --accent-secondary: #a0ffff;
  --accent-tertiary: #70ffff;
  --accent-glow: rgba(0,255,255,0.2);
  --accent-glow-strong: rgba(0,255,255,0.35);

  /* ── Light Backgrounds ── */
  --bg: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-card: #e0e0e0;
  --bg-elevated: #d0d0d0;

  /* ── Text ── */
  --text: #202020;
  --text-heading: #000000;
  --text-muted: #404040;
  --text-dim: #606060;

  /* ── Borders & Effects ── */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius: 12px;
  --radius-sm: 8px;

  /* ── Typography ── */
  --font-display: 'Space Grotesk', 'Unica One', sans-serif;
  --font-body: 'Inter', 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); margin-bottom: 0.75rem; }
p  { color: var(--text-muted); margin-bottom: 1rem; }
a  { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-secondary); }

/* ---- Navigation ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
  letter-spacing: 1px;
}
.nav-logo:hover { color: var(--text); }

.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s; text-decoration: none;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); background: var(--accent); }

.nav-toggle { display: none; }
.nav-hamburger { display: none; flex-direction: column; cursor: pointer; padding: 4px; gap: 5px; }
.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.3s;
}
.nav-hamburger span { position: relative; }
.nav-hamburger span::before { content: ''; position: absolute; top: -7px; }
.nav-hamburger span::after  { content: ''; position: absolute; top: 7px; }
.nav-toggle:checked ~ .nav-hamburger span { background: transparent; }
.nav-toggle:checked ~ .nav-hamburger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-hamburger span::after  { top: 0; transform: rotate(-45deg); }

/* ---- Main Content ---- */
.main-content {
  flex: 1;
  padding-top: var(--nav-height);
}

/* ---- Sections ---- */
.section {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-wide { max-width: 100%; padding: 80px 24px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.accent { color: var(--accent-light); }

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 40px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(240,240,240,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(210,210,210,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(180,180,180,0.05) 0%, transparent 50%);
  z-index: 0;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.6;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.25em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow); color: var(--bg); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.btn-outline:hover { border-color: var(--accent); color: var(--bg); background: var(--accent); transform: translateY(-2px); box-shadow: 0 0 20px var(--accent-glow-strong); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-muted);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 900;
  color: var(--text);
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* ---- Cards / Grids ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 0 15px var(--accent-glow),
    0 8px 30px rgba(0,0,0,0.4);
}
.card-icon {
  font-size: 2rem; margin-bottom: 12px;
  color: var(--accent-light);
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---- Architecture Diagram ---- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 2rem 0;
}
.arch-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.arch-node::after {
  content: '↔';
  position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
}
.arch-node:last-child::after { display: none; }
.arch-node:hover { border-color: var(--accent); background: var(--bg-elevated); }
.arch-node-icon { font-size: 1.5rem; margin-bottom: 6px; }
.arch-node-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.arch-node-value { font-size: 0.9rem; color: var(--text); font-weight: 600; }

/* ---- Feature visualization ---- */
.viz-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.viz-container canvas { display: block; }

/* ---- Timeline / Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  content: counter(step);
  position: absolute; top: -12px; left: 20px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900; font-size: 14px;
  color: white;
}
.step h3 { margin-top: 8px; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.step p  { font-size: 0.88rem; }

/* ---- Quote / Highlight ---- */
.highlight {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2rem 0;
}
.highlight p:last-child { margin-bottom: 0; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.contact-item i { width: 24px; text-align: center; color: var(--accent-light); font-size: 1.2rem; }
.contact-item a, .contact-item span { font-size: 0.95rem; }

/* ---- Pricing / Donation ---- */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.tier {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.03);
}
.tier:hover { border-color: var(--accent-light); }
.tier-amount {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 900;
  color: var(--text); margin: 8px 0;
}
.tier-label { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.tier-desc { font-size: 0.9rem; color: var(--text-muted); margin: 12px 0 20px; flex: 1; }
.tier-badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent); color: white;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 1.2rem; color: var(--text-muted); }
.footer-social a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: 1120px; margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 0.8rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--accent-light); font-weight: 500; }

/* ---- Page-specific ---- */
.page-header {
  text-align: center;
  padding: 60px 24px 20px;
}
.page-header h1 {
  margin-bottom: 0.25em;
}
.page-header p {
  max-width: 540px; margin: 0 auto;
}

/* ---- Map page navigation override ---- */
#canvas-container { padding-top: 0; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-2 { gap: 20px; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-luau { background: rgba(240, 240, 240, 0.15); color: #e0e0e0; }
.tag-rojo { background: rgba(200, 200, 200, 0.15); color: #c8c8c8; }
.tag-cityx { background: rgba(160, 160, 160, 0.15); color: #a0a0a0; }
.tag-roblox { background: rgba(140, 140, 140, 0.15); color: #8c8c8c; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s;
  }
  .nav-toggle:checked ~ .nav-menu { max-height: 400px; }
  .nav-link { padding: 16px 24px; width: 100%; border-radius: 0; }
  .nav-hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.8rem; }

  .section { padding: 48px 16px; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-node::after { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

/* ═══════════════════════════════════════════
   NeoCity X Effects — Grayscale
   ═══════════════════════════════════════════ */

/* ── Scanline Overlay ── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Neon Glow Text ── */
.neon-text {
  text-shadow:
    0 0 7px var(--accent),
    0 0 10px var(--accent),
    0 0 21px var(--accent),
    0 0 42px var(--accent-secondary),
    0 0 82px var(--accent-secondary),
    0 0 92px var(--accent-secondary);
}

.neon-text-magenta {
  text-shadow:
    0 0 7px var(--accent-secondary),
    0 0 10px var(--accent-secondary),
    0 0 21px var(--accent-secondary),
    0 0 42px var(--accent-secondary);
}

.neon-text-lime {
  text-shadow:
    0 0 7px var(--accent-tertiary),
    0 0 10px var(--accent-tertiary),
    0 0 21px var(--accent-tertiary);
}

/* ── Neon Glow Border ── */
.neon-border {
  border: 1px solid var(--accent);
  box-shadow:
    0 0 5px var(--accent-glow),
    0 0 10px var(--accent-glow),
    inset 0 0 5px var(--accent-glow);
}

.neon-border-magenta {
  border: 1px solid var(--accent-secondary);
  box-shadow:
    0 0 5px rgba(255, 0, 170, 0.3),
    0 0 10px rgba(255, 0, 170, 0.3);
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(22, 22, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.glass-strong {
  background: rgba(22, 22, 30, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
}

/* ── Grid Overlay (subtle) ── */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Animated Gradient Background ── */
.bg-neon-aurora {
  background: linear-gradient(
    135deg,
    var(--bg) 0%,
    var(--bg-surface) 30%,
    rgba(212, 212, 212, 0.04) 50%,
    rgba(180, 180, 180, 0.02) 70%,
    var(--bg-elevated) 100%
  );
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}

@keyframes aurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Neon Button ── */
.btn-neon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  background: var(--accent); color: var(--bg);
  border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
  transition: all 0.25s;
}
.btn-neon:hover {
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow);
  transform: translateY(-2px);
  color: var(--bg);
}

/* ── Neon Button Outline ── */
.btn-neon-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer; text-decoration: none;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: all 0.25s;
}
.btn-neon-outline:hover {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-2px);
}

/* ── Section Heading with Neon Accent ── */
.section-title .accent {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ── Update existing accent color references ── */
.accent { color: var(--accent); }

/* ── Card icon glow ── */
.card-icon { color: var(--accent); }

/* ── Tag styles with neon accents ── */
.tag-luau { background: rgba(0, 245, 255, 0.13); color: var(--accent); }
.tag-rojo { background: rgba(255, 0, 170, 0.13); color: var(--accent-secondary); }
.tag-cityx { background: rgba(57, 255, 20, 0.13); color: var(--accent-tertiary); }
.tag-roblox { background: rgba(255, 0, 170, 0.08); color: var(--accent-secondary); }

/* ── Focus ring ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Live HUD ── */
.hud-container {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 24px auto 0;
}

.hud-left {
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--border-strong);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hud-player-list {
  max-height: 280px;
  overflow-y: auto;
}

.hud-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.hud-player-row:hover {
  background: var(--accent-glow);
}

.hud-player-row.hud-selected {
  background: var(--accent-glow);
}

.hud-player-name {
  color: var(--text);
  font-weight: 500;
}

.hud-player-rank {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hud-right {
  width: 180px;
  padding: 12px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.hud-stat:last-child {
  border-bottom: none;
}

.hud-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hud-stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.hud-loading {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .hud-container {
    flex-direction: column;
  }
  .hud-left {
    border-right: none;
    border-bottom: 1px solid var(--border-strong);
  }
  .hud-right {
    width: 100%;
  }
}

/* ── Floor Preview Grid ── */
.floor-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.floor-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.floor-preview-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.floor-preview-number {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

.floor-preview-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.floor-preview-difficulty {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.floor-preview-difficulty.easy { background: rgba(68, 221, 68, 0.2); color: #44dd44; }
.floor-preview-difficulty.medium { background: rgba(255, 170, 68, 0.2); color: #ffaa44; }
.floor-preview-difficulty.hard { background: rgba(255, 68, 68, 0.2); color: #ff4444; }
.floor-preview-difficulty.chaos { background: rgba(255, 0, 255, 0.2); color: #ff00ff; }

/* ── Floor Preview Modal ── */
.floor-preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
}

.floor-preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floor-preview-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.floor-preview-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  z-index: 10;
}

.floor-preview-modal-close:hover {
  background: var(--accent);
  color: var(--bg);
}

.floor-preview-modal-body {
  padding: 24px;
}

.floor-preview-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.floor-preview-modal-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

.floor-preview-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.floor-preview-modal-weather {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.floor-preview-modal-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.floor-preview-modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.floor-preview-modal-stat {
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.floor-preview-modal-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.floor-preview-modal-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

/* ── 3D Preview Box ── */
.floor-preview-3d {
  width: 100%;
  height: 300px;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.floor-preview-3d canvas {
  width: 100%;
  height: 100%;
}

.floor-preview-3d-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.floor-preview-3d-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.floor-preview-3d-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Rank Preview ── */
.rank-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.rank-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}

.rank-preview-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.rank-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.rank-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.rank-preview-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.rank-preview-players {
  font-size: 13px;
  color: var(--text-muted);
}

.rank-preview-player {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.rank-preview-player:last-child {
  border-bottom: none;
}
