/* ==========================================================================
   Co-Op Game Lounge — Zero-Horizontal-Overflow Mobile & Desktop Styling
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --bg-glass-card: rgba(22, 31, 49, 0.75);
  --bg-glass-hover: rgba(30, 42, 66, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(244, 63, 94, 0.5);

  --accent-pink: #f43f5e;
  --accent-rose: #fb7185;
  --accent-purple: #a855f7;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-youtube: #ff0033;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-bright: #ffffff;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-pink: 0 0 24px rgba(244, 63, 94, 0.25);
  --shadow-glow-cyan: 0 0 24px rgba(56, 189, 248, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Strict Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(244, 63, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Background Ambient Orbs (Strictly Contained) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.ambient-glow-1 {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  top: 0;
  left: 0;
  transform: translate(-30%, -30%);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, transparent 70%);
}
.ambient-glow-2 {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  bottom: 10%;
  right: 0;
  transform: translate(30%, 30%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
}

/* Layout Container */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1rem 6rem;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .app-container {
    padding: 0 1.75rem 6rem;
  }
}

/* Header & Hero */
.site-header {
  padding: 2rem 0 1.5rem;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .site-header {
    padding: 3.5rem 0 2rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-rose);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15);
  max-width: 100%;
}

.hero-badge .heart-pulse {
  animation: pulseHeart 1.8s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  word-break: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #fb7185 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
  padding: 0 0.5rem;
  word-break: break-word;
}

.hero-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  max-width: 100%;
  text-align: left;
}

.hero-disclaimer .sparkle {
  color: var(--accent-amber);
  flex-shrink: 0;
}

/* Quick Action Bar (Roulette + Wishlist Quick Link) */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn-roulette {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: white;
  border: none;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow-pink);
  transition: var(--transition-smooth);
  flex: 1 1 auto;
}

@media (max-width: 480px) {
  .btn-roulette {
    width: 100%;
  }
}

.btn-roulette:hover, .btn-roulette:active {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.45);
}

.btn-wishlist-view {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  flex: 1 1 auto;
}

.btn-wishlist-view:hover, .btn-wishlist-view:active {
  background: var(--bg-glass-hover);
  border-color: var(--accent-cyan);
}

.wishlist-count-badge {
  background: var(--accent-pink);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Stats / Highlights Pill Strip */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.75rem auto 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-item strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.stat-icon {
  font-size: 1.15rem;
}

/* Filters & Search Control Bar */
.controls-section {
  margin: 1.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .controls-section {
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

.search-and-status-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .search-input-wrapper {
    flex: 1 1 260px;
  }
}

.search-input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Status Filter Buttons (All / Released / Upcoming) */
.status-filter-group {
  display: flex;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 0.25rem;
  width: 100%;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .status-filter-group {
    width: auto;
  }
}

.status-tab-btn {
  flex: 1;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.status-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.status-tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Vibe Category Chips (Touch Pan-X without page shift) */
.vibe-chips-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
}
.vibe-chips-container::-webkit-scrollbar {
  display: none;
}

.vibe-chip {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.vibe-chip:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.vibe-chip.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(56, 189, 248, 0.2));
  border-color: rgba(244, 63, 94, 0.5);
  color: var(--text-primary);
  font-weight: 600;
}

/* Active Results Header */
.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
}

.results-count strong {
  color: var(--text-primary);
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--accent-rose);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 680px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1080px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Individual Game Card (Strictly Contained) */
.game-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.1);
}

/* Card Header & Media */
.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #1a2234;
  overflow: hidden;
  cursor: pointer;
}

@media (max-width: 480px) {
  .card-media-wrapper {
    height: 160px;
  }
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-media-img {
  transform: scale(1.04);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(17, 24, 39, 0.85) 100%);
}

/* Badges on Card Media */
.card-badge-status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 70%;
}

.badge-released {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-upcoming {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.card-badge-vibe {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.6rem;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wishlist Bookmark Button on Card */
.btn-bookmark-card {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  z-index: 2;
}

.btn-bookmark-card:hover, .btn-bookmark-card:active {
  transform: scale(1.15);
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.btn-bookmark-card.bookmarked {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

/* Card Body Content */
.card-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-title-group {
  margin-bottom: 0.65rem;
  min-width: 0;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.25;
  word-break: break-word;
}

.card-subtitle {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  word-break: break-word;
}

/* Pitch Box */
.card-pitch {
  background: rgba(244, 63, 94, 0.06);
  border-left: 3px solid var(--accent-pink);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #fce7f3;
  margin-bottom: 0.85rem;
  font-style: normal;
  line-height: 1.45;
  word-break: break-word;
}

.card-pitch .pitch-quote-mark {
  color: var(--accent-rose);
  font-weight: bold;
  font-family: serif;
  font-size: 1.1rem;
}

/* Vibe & Non-Gamer Specs Pill Row */
.card-specs-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.card-spec-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  word-break: break-word;
}

.card-spec-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Tag Pills */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.card-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Card Action Footer */
.card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.btn-card-details {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-card-details:hover, .btn-card-details:active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}

.btn-card-steam {
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-card-steam:hover, .btn-card-steam:active {
  background: var(--bg-glass-hover);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Modals & Overlays (No Overflow)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: min(760px, 100vw);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  scrollbar-width: thin;
  padding-bottom: env(safe-area-inset-bottom, 1.5rem);
}

@media (min-width: 640px) {
  .modal-container {
    border-radius: var(--radius-lg);
    transform: scale(0.95) translateY(10px);
    max-height: 90vh;
    padding-bottom: 0;
  }
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-backdrop.active .modal-container {
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover, .modal-close-btn:active {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

/* Modal Hero Header */
.modal-hero {
  position: relative;
  width: 100%;
  height: 190px;
  background-color: #1a2234;
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal-hero {
    height: 240px;
  }
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, var(--bg-surface) 100%);
}

.modal-body {
  padding: 1.25rem 1.25rem 2rem;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .modal-body {
    padding: 1.5rem 2rem 2.5rem;
  }
}

.modal-title-row {
  margin-bottom: 1rem;
  word-break: break-word;
}

.modal-game-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--text-bright);
}

.modal-game-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Modal Pitch Box */
.modal-pitch-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.modal-pitch-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 0.35rem;
}

.modal-pitch-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #fdf2f8;
}

/* Modal Section */
.modal-section {
  margin-bottom: 1.25rem;
  width: 100%;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-things-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.modal-things-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.modal-things-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Direct YouTube Button in Modal */
.btn-youtube-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: var(--radius-full);
  color: #ff4d6d;
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-youtube-direct:hover, .btn-youtube-direct:active {
  background: var(--accent-youtube);
  color: white;
  border-color: var(--accent-youtube);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.4);
}

/* Notice for local file:// mode */
.local-player-notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.775rem;
  color: #bae6fd;
  display: flex;
  gap: 0.5rem;
  line-height: 1.4;
}

/* Modal Video Trailer */
.modal-trailer-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.modal-trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal Actions Footer */
.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 520px) {
  .modal-actions {
    flex-direction: row;
  }
}

.btn-modal-wishlist {
  flex: 1;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-modal-wishlist:hover, .btn-modal-wishlist:active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
}

.btn-modal-wishlist.active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
}

.btn-modal-steam {
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-modal-steam:hover, .btn-modal-steam:active {
  background: #1d4ed8;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Date Night Roulette Modal
   ========================================================================== */
.roulette-container {
  text-align: center;
  padding: 1.75rem 1.25rem;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .roulette-container {
    padding: 2.5rem 2rem;
  }
}

.roulette-slot-box {
  background: var(--bg-surface-elevated);
  border: 2px dashed rgba(244, 63, 94, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  margin: 1.25rem auto;
  max-width: 480px;
  width: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.roulette-slot-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 800;
  color: var(--accent-rose);
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.roulette-slot-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  word-break: break-word;
}

.btn-spin-again {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: white;
  border: none;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow-pink);
  margin-top: 0.75rem;
  transition: var(--transition-fast);
  width: 100%;
}

@media (min-width: 480px) {
  .btn-spin-again {
    width: auto;
  }
}

.btn-spin-again:hover, .btn-spin-again:active {
  transform: scale(1.03);
}

/* ==========================================================================
   Wishlist Drawer (No Mobile Horizontal Overflow)
   ========================================================================== */
.wishlist-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.wishlist-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: min(440px, 100vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: 151;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.wishlist-drawer-backdrop.active .wishlist-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-content {
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  min-width: 0;
  gap: 0.5rem;
}

.drawer-item:hover {
  border-color: var(--border-light);
}

.drawer-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-word;
}

.drawer-item-vibe {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.btn-remove-wishlist {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-remove-wishlist:hover, .btn-remove-wishlist:active {
  color: var(--accent-rose);
}

.drawer-footer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: env(safe-area-inset-bottom, 1.25rem);
}

.btn-copy-wishlist {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem;
  background: linear-gradient(135deg, #f43f5e, #a855f7);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow-pink);
  transition: var(--transition-fast);
}

.btn-copy-wishlist:hover, .btn-copy-wishlist:active {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.4);
}

/* Toast Alert */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--accent-emerald);
  color: #ecfdf5;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

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

/* Floating Wishlist Button */
.floating-wishlist-btn {
  position: fixed;
  bottom: 1.5rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  right: 1.25rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4);
  z-index: 90;
  transition: var(--transition-smooth);
}

.floating-wishlist-btn:hover, .floating-wishlist-btn:active {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.55);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.825rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
  width: 100%;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.footer-heart {
  color: var(--accent-rose);
  display: inline-block;
}
