/* ============================================
   PlayroomX — Skeuomorphic Dark Industrial
   Inspired by magic-receipt.ai
   ============================================ */

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

:root {
  /* ── Colors — Deep black + Lime accent ── */
  --bg: #09090e;
  --bg-elevated: #111118;
  --bg-card: linear-gradient(145deg, #13131c, #0a0a0f);
  --bg-card-hover: linear-gradient(145deg, #181c26, #0d0d14);
  --bg-inset: linear-gradient(145deg, #050508, #0a0a0f);

  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;

  --accent: #c6ff00;
  --accent-dim: rgba(198, 255, 0, 0.15);
  --accent-glow: rgba(198, 255, 0, 0.4);
  --accent-dark: #9acd00;

  --purple: #8a2be2;
  --purple-grad: linear-gradient(145deg, #9b3cf0, #711cc2);
  
  --green: #00e676;

  --border: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(255, 255, 255, 0.12); /* For top edges */
  --border-accent: rgba(198, 255, 0, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Tactile Shadows */
  --shadow-raised: 
    0 8px 16px rgba(0, 0, 0, 0.6), 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  --shadow-pressed: 
    inset 0 3px 6px rgba(0, 0, 0, 0.8), 
    inset 0 1px 3px rgba(0, 0, 0, 0.9),
    0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-inset: 
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    inset 0 1px 2px rgba(0, 0, 0, 0.8),
    0 1px 0px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Grid Background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 0%, rgba(198, 255, 0, 0.04), transparent),
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(138, 43, 226, 0.03), transparent),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(198, 255, 0, 0.02), transparent);
}

/* ── Floating Tactile Navbar ── */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: linear-gradient(180deg, #1f1f2e, #0e0e16);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-full);
  padding: 6px 8px;
  transition: all 0.3s var(--ease);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 8px 16px;
  white-space: nowrap;
}

.brand-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.brand-x {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.brand-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  border: 1px solid rgba(198, 255, 0, 0.15);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #e4ff66, var(--accent));
  color: #080808;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.8);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 
    0 2px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 4px 12px var(--accent-glow);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #efffff, #d4ff33);
  box-shadow: 
    0 1px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
  background: var(--accent-dark);
}

.cta-plus {
  font-size: 16px;
  font-weight: 400;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.stars {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 3px;
  text-shadow: 0 0 16px var(--accent-glow);
}

.rating-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-title-line2 {
  color: var(--text-secondary);
}

/* Handwritten/Graffiti accent — cursive handwriting font */
.hero-accent {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--accent);
  text-shadow:
    0 0 40px var(--accent-glow),
    0 0 80px rgba(198, 255, 0, 0.15);
  letter-spacing: 2px;
  margin-bottom: 32px;
  transform: rotate(-2deg);
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 500;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

/* Pill Buttons — Raised look */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-decoration: none;
}

.btn-white {
  background: linear-gradient(180deg, #ffffff, #dcdcdc);
  color: #080808;
  border: 1px solid rgba(0,0,0,0.8);
  box-shadow: 
    0 3px 0 #777,
    inset 0 1px 1px rgba(255,255,255,1),
    0 4px 10px rgba(0,0,0,0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.btn-white:hover {
  background: linear-gradient(180deg, #ffffff, #eeeeee);
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 #777,
    inset 0 1px 1px rgba(255,255,255,1),
    0 6px 14px rgba(0,0,0,0.6);
}

.btn-white:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
  background: #cccccc;
}

.btn-outline {
  background: linear-gradient(180deg, #2a2a35, #151520);
  color: var(--text-primary);
  border: 1px solid #000;
  box-shadow: 
    0 3px 0 #000,
    inset 0 1px 1px rgba(255,255,255,0.2),
    0 4px 10px rgba(0,0,0,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.btn-outline:hover {
  background: linear-gradient(180deg, #323240, #1c1c28);
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 #000,
    inset 0 1px 1px rgba(255,255,255,0.2),
    0 6px 14px rgba(0,0,0,0.6);
}

.btn-outline:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
  background: #111118;
}

.btn-icon {
  font-size: 18px;
}

.hero-footnote {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  animation: fadeInUp 0.6s var(--ease) 0.5s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrolling Marquee Strip ── */
.marquee-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--purple-grad);
  padding: 14px 0;
  margin-bottom: 80px;
  transform: rotate(-1deg) scale(1.02);
  clip-path: inset(-10px -1px -10px -1px);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 3px solid rgba(0,0,0,0.8);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.6),
    inset 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  gap: 40px;
}

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  flex-shrink: 0;
}

.marquee-item {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 40px)); }
}

/* ── Section Title ── */
.section-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

/* ── Benefits Section ── */
.benefits-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 
    var(--shadow-raised),
    inset 0 1px 1px var(--border-highlight);
}

.benefit-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 
    0 12px 24px rgba(0,0,0,0.8),
    inset 0 1px 1px var(--accent),
    0 0 20px var(--accent-glow);
}

.benefit-icon {
  margin-bottom: 16px;
  display: inline-flex;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.benefit-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.benefit-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── How It Works ── */
.how-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  justify-content: center;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
  box-shadow: 
    var(--shadow-raised),
    inset 0 1px 1px var(--border-highlight);
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 24px rgba(0,0,0,0.8),
    inset 0 1px 1px var(--accent),
    0 0 20px var(--accent-glow);
}

.step-number {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: -2px;
  margin-bottom: 12px;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 0 30px var(--accent-glow);
}

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 300;
}

.step-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Rooms Section ── */
.rooms-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.rooms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rooms-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 14px rgba(0, 230, 118, 0.8); }
}

.live-count {
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
}

.live-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.feed-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-inset);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-inset);
}

.game-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #2a2a35, #151520);
  border: 1px solid rgba(0,0,0,0.8);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-out;
  font-family: inherit;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.1);
  text-shadow: 0 1px 1px rgba(0,0,0,0.8);
}

.filter-chip:hover {
  background: linear-gradient(180deg, #323240, #1c1c28);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(180deg, #e4ff66, var(--accent));
  color: #080808;
  box-shadow: 
    0 4px 12px var(--accent-glow),
    inset 0 1px 1px #ffffaa;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.chip-emoji { font-size: 16px; line-height: 1; }
.chip-label { font-size: 13px; }

/* Mode Filters */
.mode-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-filters::-webkit-scrollbar { display: none; }

.mode-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #22222a, #0e0e14);
  border: 1px solid rgba(0,0,0,0.8);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-out;
  font-family: inherit;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.05);
}

.mode-chip:hover {
  background: linear-gradient(180deg, #2a2a35, #151520);
  color: var(--text-primary);
}

.mode-chip.active {
  background: var(--accent-dark);
  color: #000;
  box-shadow: var(--shadow-pressed);
}

/* ── Room Cards Grid ── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ── Room Card — Skeuomorphic ── */
.room-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
  box-shadow: 
    var(--shadow-raised),
    inset 0 1px 1px var(--border-highlight);
}

.room-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 
    0 12px 24px rgba(0,0,0,0.8),
    inset 0 1px 1px var(--accent);
}

.room-card.expiring {
  animation: cardIn 0.4s var(--ease) both, urgentPulse 2s ease-in-out infinite;
}

.room-card.fade-out {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: all 0.4s var(--ease);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes urgentPulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: rgba(255, 68, 68, 0.35); }
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.card-game-badge .badge-emoji { font-size: 14px; }

.card-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.card-timer.urgent { color: var(--red); background: rgba(255, 68, 68, 0.08); }
.timer-icon { font-size: 13px; }

/* Card Body */
.card-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.card-host {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-host span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.tag.mode-tag {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

/* Credentials */
.card-credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-inset);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
}

.credential-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.credential-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
}

.copy-btn {
  background: linear-gradient(180deg, #2a2a35, #151520);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s ease-out;
  flex-shrink: 0;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.1);
  text-shadow: 0 1px 1px rgba(0,0,0,0.8);
}

.copy-btn:hover {
  background: linear-gradient(180deg, #323240, #1c1c28);
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.copy-btn:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-pressed);
}

.copy-btn.copied {
  background: linear-gradient(180deg, #00eb70, var(--green));
  color: #000;
  text-shadow: none;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-slots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slots-count {
  font-weight: 700;
  color: var(--text-secondary);
}

.card-time-ago { font-weight: 500; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e4ff66, var(--accent));
  border: 1px solid rgba(0,0,0,0.8);
  color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 3px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 8px 16px rgba(0,0,0,0.6),
    0 0 30px var(--accent-glow);
  transition: all 0.2s ease-out;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 
    0 1px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 12px 24px rgba(0,0,0,0.7),
    0 0 40px var(--accent-glow);
}

.fab:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-pressed);
  background: var(--accent-dark);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.8);
  border-radius: var(--radius-xl);
  padding: 32px;
  transform: translateY(20px) scale(0.97);
  transition: all 0.35s var(--ease-spring);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.8), 
    0 0 40px rgba(198, 255, 0, 0.04),
    inset 0 1px 1px var(--border-highlight);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a2a35, #151520);
  border: 1px solid rgba(0,0,0,0.8);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease-out;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

.modal-close:hover {
  background: linear-gradient(180deg, #3d2323, #221212);
  color: #ff4444;
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-pressed);
}

/* ── Form ── */
.room-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

.required { color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  outline: none;
  border: none;
  box-shadow: var(--shadow-inset);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a4a5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  background-color: var(--bg-input);
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Game Selector */
.game-selector {
  display: flex;
  gap: 10px;
}

.game-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #2a2a35, #151520);
  border: 1px solid rgba(0,0,0,0.8);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease-out;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

.game-option:hover {
  background: linear-gradient(180deg, #323240, #1c1c28);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.game-option.selected {
  background: var(--accent-dark);
  color: #000;
  box-shadow: var(--shadow-pressed);
}

.game-opt-emoji { font-size: 22px; }

/* Expiry Selector */
.expiry-selector {
  display: flex;
  gap: 8px;
}

.expiry-option {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #2a2a35, #151520);
  border: 1px solid rgba(0,0,0,0.8);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-out;
  font-family: inherit;
  text-align: center;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

.expiry-option:hover {
  background: linear-gradient(180deg, #323240, #1c1c28);
  color: var(--text-primary);
}

.expiry-option.selected {
  background: var(--accent-dark);
  color: #000;
  box-shadow: var(--shadow-pressed);
}

/* Submit Button */
.submit-btn {
  padding: 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #e4ff66, var(--accent));
  color: #080808;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.8);
  cursor: pointer;
  transition: all 0.15s ease-out;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  box-shadow: 
    0 3px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 6px 16px rgba(0,0,0,0.6);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.submit-btn:hover {
  background: linear-gradient(180deg, #efffff, #d4ff33);
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 #6b8700,
    inset 0 1px 2px rgba(255,255,255,0.9),
    0 8px 20px rgba(0,0,0,0.7),
    0 0 30px var(--accent-glow);
}

.submit-btn:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
  background: var(--accent-dark);
}

/* ── Toggle Switch ── */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-root);
  border: 1px solid var(--border);
  transition: .4s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

input:checked + .slider {
  background-color: rgba(198, 255, 0, 0.2);
  border-color: rgba(198, 255, 0, 0.5);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.slider.round {
  border-radius: 34px;
}

/* ── Locked Room Card ── */
.room-locked-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.locked-input-group {
  display: flex;
  gap: 8px;
}

.locked-input {
  flex: 1;
  background: var(--bg-root);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.locked-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.5),
    0 0 10px rgba(198, 255, 0, 0.1);
}

.btn-unlock {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-unlock:hover {
  background: #2a2a3a;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-unlock:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  transform: translateY(1px);
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s var(--ease-spring);
  white-space: nowrap;
}

.toast.success { border-color: rgba(0, 230, 118, 0.3); }

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;       /* graceful wrapping on very small screens */
  gap: 16px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-dot {
  color: var(--border);
  font-size: 12px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-credits {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.creator-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: text-shadow 0.2s;
}

.creator-link:hover {
  text-shadow: 0 0 10px rgba(198, 255, 0, 0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer {
    padding: 24px 16px 86px; /* Extra bottom padding prevents FAB overlap */
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .footer-text {
    justify-content: center;
    font-size: 12px;
  }
  .footer-credits {
    font-size: 12px;
  }
  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    border-radius: var(--radius-lg);
    padding: 6px 6px;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links { display: none; }

  .nav-cta {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero {
    padding: 110px 16px 50px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .hero-accent {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .marquee-strip {
    margin-bottom: 50px;
    padding: 10px 0;
  }
  
  .marquee-item {
    font-size: 14px;
  }
  
  .marquee-track {
    gap: 30px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit-card {
    padding: 20px 16px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .rooms-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rooms-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal {
    padding: 20px 16px;
    max-height: 85vh;
  }

  .modal-title {
    font-size: 20px;
  }

  .game-selector {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .hero-accent {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-pill {
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .fab {
    bottom: 20px;
    right: 20px;
  }
}