/* ==========================================================================
   NovaNow Web Client - Streamlined Cloud Interface & Community Features
   Design System: Nocturne Dark Shell, Electric Violet/Mint Focus
   ========================================================================== */

:root {
  /* Nocturne Tokens */
  --shell-bg: #08090b;
  --rail-bg: rgba(10, 11, 15, 0.95);
  --topbar-bg: rgba(8, 9, 11, 0.85);
  --hintbar-bg: rgba(8, 9, 11, 0.92);
  --card-fallback: #171b27;
  --surface-raised: rgba(255, 255, 255, 0.05);
  --surface-raised-hover: rgba(255, 255, 255, 0.09);

  /* Brand Accents */
  --brand-violet: #8b5cf6;
  --brand-cyan: #06b6d4;
  --focus-mint: #56E6A5;
  --focus-glow: rgba(86, 230, 165, 0.35);
  --green-online: #10b981;
  --cyber-yellow: #ffd166;

  /* Borders */
  --seam-border: rgba(255, 255, 255, 0.06);
  --card-outline-idle: rgba(255, 255, 255, 0.07);
  --card-outline-focus: #56E6A5;

  /* Typography */
  --text-high: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #717d96;
  --text-faint: rgba(255, 255, 255, 0.32);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --rail-width: 72px;
  --topbar-height: 64px;
  --hintbar-height: 0px;
  --poster-w: 122px;
  --poster-h: 183px; /* 2:3 aspect ratio */
  --poster-radius: 12px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--shell-bg);
  color: var(--text-high);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   App Layout
   ========================================================================== */

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   1. Left Rail (72px)
   ========================================================================== */

.app-rail {
  width: var(--rail-width);
  height: 100vh;
  background: var(--rail-bg);
  border-right: 1px solid var(--seam-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 18px 0;
  z-index: 50;
  flex-shrink: 0;
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 12px;
}

.rail-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-logo-link:hover {
  transform: scale(1.08);
}

.browsernow-brand-icon,
.novanow-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.rail-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  position: relative;
}

.rail-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.rail-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.rail-btn.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--focus-mint);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--focus-mint);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.rail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rail-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   2. Main Viewport & Top Bar
   ========================================================================== */

.app-main {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.top-bar {
  height: var(--topbar-height);
  padding: 0 32px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--seam-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  flex-shrink: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-logo-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-pill-name {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-display);
}

.accent-text {
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-search-wrapper {
  position: relative;
  width: 260px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--seam-border);
  border-radius: 999px;
  padding: 8px 36px 8px 34px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
}

#search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--focus-mint);
  box-shadow: 0 0 0 2px rgba(86, 230, 165, 0.2);
}

.kbd-hint {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
}

/* Donate Button */
.btn-donate-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-donate-nav:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* Discord Community Button */
.btn-discord-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: #5865F2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-discord-nav:hover {
  background: #4752c4;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.6);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Submit a Game Button in Nav */
.btn-submit-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--focus-mint);
  border: 1px solid rgba(86, 230, 165, 0.35);
  background: rgba(86, 230, 165, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-submit-nav:hover {
  background: rgba(86, 230, 165, 0.18);
  border-color: var(--focus-mint);
  transform: translateY(-1px);
}

/* ==========================================================================
   Top Announcement Alert Banner (Persistent Notice)
   ========================================================================== */

.top-announcement-banner {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.18) 0%, rgba(86, 230, 165, 0.15) 50%, rgba(88, 101, 242, 0.18) 100%);
  border-bottom: 1px solid rgba(88, 101, 242, 0.35);
  padding: 8px 24px;
  position: relative;
  z-index: 25;
  backdrop-filter: blur(10px);
}

.announcement-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  text-align: center;
}

.announcement-pill {
  background: var(--focus-mint);
  color: #07090e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.announcement-text {
  color: #e2e8f0;
  font-weight: 500;
}

.announcement-discord-btn {
  color: #a5b4fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.announcement-discord-btn:hover {
  color: #ffffff;
}

.lang-switch-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--seam-border);
  border-radius: 999px;
  padding: 2px;
}

.lang-toggle-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.lang-toggle-btn.active {
  background: var(--focus-mint);
  color: #08090b;
}

/* ==========================================================================
   3. Content Scroll Canvas & View Panels
   ========================================================================== */

.content-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px 36px 32px;
  scroll-behavior: smooth;
}

.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: viewIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   4. Elegantly Proportioned Popular Hero Carousel (270px Height)
   ========================================================================== */

.popular-carousel-section {
  width: 100%;
  height: 270px;
  margin-bottom: 28px;
  position: relative;
}

.carousel-container {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0 48px;
}

.slide-ambient-blur {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

/* Wide seamless backdrop art on the right with organic horizontal fade mask */
.slide-backdrop-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 15%, rgba(0, 0, 0, 0.95) 45%, #000 75%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 15%, rgba(0, 0, 0, 0.95) 45%, #000 75%);
  opacity: 0.92;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.carousel-slide:hover .slide-backdrop-art {
  transform: scale(1.02);
  opacity: 0.98;
}

.slide-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111420 0%, rgba(17, 20, 32, 0.92) 38%, rgba(17, 20, 32, 0.4) 65%, rgba(17, 20, 32, 0.1) 100%),
              linear-gradient(180deg, transparent 60%, rgba(17, 20, 32, 0.75) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Integrated Left Content */
.slide-content-integrated {
  position: relative;
  z-index: 10;
  max-width: 580px;
  display: flex;
  flex-direction: column;
}

.slide-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slide-rank-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--focus-mint);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.slide-pill-badge {
  display: none !important;
}

.slide-pill-platform {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

.slide-title-integrated {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.slide-desc-preview {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 520px;
}

.slide-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.slide-meta-chip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slide-meta-chip .chip-star {
  color: #fbbf24;
}

.slide-meta-chip .chip-upvote {
  color: var(--focus-mint);
}

.slide-meta-chip.plays-chip {
  color: var(--text-muted);
}

.slide-meta-chip.engine-chip {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.slide-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hero-launch {
  background: #ffffff;
  color: #08090b;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-hero-launch:hover {
  background: #00f2fe;
  color: #08090b;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-hero-details-integrated {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-details-integrated:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-hero-upvote {
  background: rgba(0, 242, 254, 0.1);
  color: var(--focus-mint);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-upvote:hover {
  background: rgba(0, 242, 254, 0.22);
  border-color: var(--focus-mint);
  transform: translateY(-1px);
}

/* Organic Emblem / Floating key art badge on the right */
.slide-hero-brand-lockup {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.slide-emblem-box {
  width: 130px;
  height: 185px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.slide-emblem-box:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.95), 0 0 28px rgba(0, 242, 254, 0.3);
  border-color: var(--focus-mint);
}

.slide-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-emblem-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.slide-emblem-score {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8, 9, 12, 0.85);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.stream-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--focus-mint);
  box-shadow: 0 0 6px var(--focus-mint);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
}

.carousel-container:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--focus-mint);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.indicator-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--focus-mint);
  box-shadow: 0 0 8px var(--focus-mint);
}

/* ==========================================================================
   5. Rails & Posters
   ========================================================================== */

.game-rail-section {
  margin-bottom: 28px;
}

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

.rail-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.rail-see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.rail-see-all:hover {
  color: #ffffff;
}

.rail-track-wrapper {
  position: relative;
  width: 100%;
}

.rail-edge-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 18, 28, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  user-select: none;
}

.rail-edge-arrow.prev {
  left: -14px;
}

.rail-edge-arrow.next {
  right: -14px;
}

.rail-edge-arrow:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: var(--focus-mint);
  color: var(--focus-mint);
  transform: translateY(-50%) scale(1.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 242, 254, 0.4);
}

.rail-edge-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.posters-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 14px 2px;
  scrollbar-width: none;
}

.posters-track::-webkit-scrollbar {
  display: none;
}

.poster-card {
  flex-shrink: 0;
  width: var(--poster-w);
  height: var(--poster-h);
  border-radius: var(--poster-radius);
  background: var(--card-fallback);
  border: 1px solid var(--card-outline-idle);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover, .poster-card:focus-visible {
  transform: scale(1.06);
  border: 2px solid var(--card-outline-focus);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px var(--focus-glow);
  z-index: 20;
}

.poster-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.poster-card:hover .poster-cover-img {
  transform: scale(1.04);
}

.poster-gradient-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.poster-artwork-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 7, 10, 0.9) 100%);
  pointer-events: none;
}

.poster-top-badge {
  display: none !important;
}

.poster-upvote-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 2px;
}

.poster-bottom-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.poster-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.poster-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 5;
}

.poster-card:hover .poster-hover-play {
  opacity: 1;
}

.poster-play-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--focus-mint);
  color: #08090b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.poster-hover-play:hover .poster-play-circle {
  transform: scale(1.12);
}

/* ==========================================================================
   6. Library View Grid
   ========================================================================== */

.library-header-bar {
  margin-bottom: 20px;
}

.library-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.library-tag-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lib-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--seam-border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lib-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lib-pill.active {
  color: #08090b;
  background: var(--focus-mint);
  border-color: var(--focus-mint);
}

.library-sort-select select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--seam-border);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

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

/* ==========================================================================
   7. Categories View
   ========================================================================== */

.category-showcases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.category-card-panel {
  min-height: 220px;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.category-card-panel:hover {
  transform: translateY(-4px);
  border-color: var(--focus-mint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.2);
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: brightness(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.category-card-panel:hover .cat-card-bg {
  transform: scale(1.08);
  opacity: 0.62;
}

.cat-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 20, 32, 0.3) 0%, rgba(17, 20, 32, 0.9) 75%, #111420 100%),
              linear-gradient(90deg, rgba(17, 20, 32, 0.75) 0%, rgba(17, 20, 32, 0.3) 100%);
  pointer-events: none;
}

.cat-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cat-icon-pill {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.cat-badge-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--focus-mint);
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cat-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cat-footer-row {
  margin-top: auto;
}

.btn-open-cat {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.18s ease;
}

.category-card-panel:hover .btn-open-cat {
  background: var(--focus-mint);
  color: #08090b;
  border-color: var(--focus-mint);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   8. Franchises & Collections Hub
   ========================================================================== */

.franchises-header-intro {
  margin-bottom: 26px;
}

.franchises-main-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.franchises-main-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.franchises-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.franchise-block {
  background: rgba(18, 22, 34, 0.6);
  border: 1px solid var(--seam-border);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}

.franchise-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.franchise-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.franchise-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.franchise-title-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.franchise-title-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.franchise-count-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--focus-mint);
  background: rgba(86, 230, 165, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(86, 230, 165, 0.25);
}

/* ==========================================================================
   9. Modal Backdrop & Details Modal
   ========================================================================== */

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(4, 6, 10, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: relative !important;
  background: #111420 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(86, 230, 165, 0.12) !important;
  overflow: hidden !important;
  max-height: 90vh !important;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 50 !important;
  transition: all 0.15s ease !important;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.08) !important;
}

.modal-dialog-expanded {
  max-width: 760px;
  width: 92%;
  border-radius: 18px;
  background: #11141e;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(86, 230, 165, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-two-columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 440px;
}

.modal-col-left {
  padding: 32px 28px 32px 32px;
  display: flex;
  flex-direction: column;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-badge-tag {
  display: none !important;
}

.modal-engine-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-col-left .modal-game-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.modal-rating-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-col-left .modal-sub-meta {
  font-size: 12px;
  color: var(--focus-mint);
}

.btn-upvote-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.15s ease;
}

.btn-upvote-counter:hover {
  background: rgba(86, 230, 165, 0.15);
  border-color: var(--focus-mint);
  color: var(--focus-mint);
}

.btn-upvote-counter.active {
  background: var(--focus-mint);
  color: #08090b;
  border-color: var(--focus-mint);
}

.modal-col-left .modal-description {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.modal-dates-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--seam-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
}

.spec-date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.spec-date-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-date-val {
  color: #ffffff;
  font-weight: 600;
}

.modal-footer-btns {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-modal-play {
  flex: 1;
  background: var(--focus-mint);
  color: #08090b;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-modal-play:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-modal-fav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-modal-fav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-modal-fav.active {
  color: var(--focus-mint);
  border-color: var(--focus-mint);
}

/* Right Column with Only One Large Vertical Poster */
.modal-col-right {
  position: relative;
  overflow: hidden;
  background: #090b10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-poster-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.modal-right-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.modal-col-right:hover .modal-right-poster {
  transform: scale(1.03);
}

.modal-poster-glass-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(9, 11, 16, 0.9) 100%);
  pointer-events: none;
}

.modal-poster-ambient-glow {
  position: absolute;
  inset: -20px;
  opacity: 0.35;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   10. Submit a Game Modal
   ========================================================================== */

.modal-dialog-submit {
  max-width: 520px;
  width: 90%;
  background: #11141e;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 28px;
}

.submit-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.submit-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--seam-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.form-group select option {
  background-color: #161926;
  color: #ffffff;
  padding: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--focus-mint);
  background: rgba(255, 255, 255, 0.08);
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Submit Features Grid (Inspired by browsergame.si/submit) */
.submit-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feature-checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.feature-checkbox-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.feature-checkbox-pill input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}

.feature-checkbox-pill input[type="checkbox"]:checked {
  background: var(--focus-mint);
  border-color: var(--focus-mint);
}

.feature-checkbox-pill input[type="checkbox"]:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #08090b;
  border-bottom: 2px solid #08090b;
  transform: rotate(-45deg) translate(1px, -1px);
}

.feature-checkbox-pill:has(input:checked) {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.45);
  color: #ffffff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.btn-cancel {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

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

.btn-submit-action {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #08090b;
  background: var(--focus-mint);
  transition: all 0.15s ease;
}

.btn-submit-action:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   11. Hint Bar & Toast
   ========================================================================== */

.hint-bar {
  display: none !important;
}

.hints-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hint-item {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbd-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.hints-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--focus-mint);
  box-shadow: 0 0 6px var(--focus-mint);
}

.status-theme {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}

.toast {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2000;
  background: #151926;
  border: 1px solid var(--focus-mint);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px var(--focus-glow);
}

/* ==========================================================================
   12. Admin Auth & Control Panel (Cyber-Secured UI)
   ========================================================================== */

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-pill:hover {
  background: rgba(86, 230, 165, 0.12);
  color: var(--focus-mint);
  border-color: var(--focus-mint);
}

.modal-dialog-login {
  max-width: 420px;
  width: 90%;
  background: #10131d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(86, 230, 165, 0.15);
  padding: 32px 28px;
  text-align: center;
}

.admin-shield-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(86, 230, 165, 0.1);
  border: 1px solid rgba(86, 230, 165, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.admin-login-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.admin-login-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-align: left;
}

.btn-admin-submit {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  background: var(--focus-mint);
  color: #08090b;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-admin-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Admin Panel Extended Modal */
.modal-dialog-admin-panel {
  max-width: 920px;
  width: 95%;
  max-height: 88vh;
  background: #0f121b;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(86, 230, 165, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-panel-header {
  padding: 20px 24px;
  background: #141824;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-badge-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--focus-mint);
  margin-bottom: 4px;
}

.admin-panel-main-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.modal-close-static {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-static:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-tabs-bar {
  display: flex;
  background: #111420;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: #ffffff;
}

.admin-tab-btn.active {
  color: var(--focus-mint);
  border-bottom-color: var(--focus-mint);
}

.admin-tab-content {
  display: none;
  padding: 24px;
  overflow-y: auto;
  max-height: calc(88vh - 130px);
}

.admin-tab-content.active {
  display: block;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.full-width {
  grid-column: span 2;
}

.btn-admin-action {
  background: var(--focus-mint);
  color: #08090b;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 8px;
  transition: filter 0.15s ease;
}

.btn-admin-action:hover {
  filter: brightness(1.1);
}

/* Admin Manage Database Table */
.admin-search-strip {
  margin-bottom: 14px;
}

.admin-filter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--seam-border);
  padding: 8px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.admin-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--seam-border);
}

.admin-games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.admin-games-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--seam-border);
}

.admin-games-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ffffff;
  vertical-align: middle;
}

.admin-table-thumb {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #171b27;
}

.admin-action-btn-del {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.admin-action-btn-del:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Admin Export Box */
.admin-export-box, .admin-audit-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--seam-border);
  border-radius: 10px;
  padding: 20px;
}

.export-box-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.export-box-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.export-buttons-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-export-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-export-opt:hover {
  background: var(--focus-mint);
  color: #08090b;
}

.admin-export-textarea {
  width: 100%;
  background: #090b10;
  border: 1px solid var(--seam-border);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 11px;
  color: #a5b4fc;
  outline: none;
  resize: vertical;
}

.admin-audit-log-list {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-body);
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audit-entry {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border-left: 2px solid var(--focus-mint);
}

.audit-time {
  color: var(--text-muted);
  margin-right: 8px;
}

/* ==========================================================================
   Features Filter Bar (Inspired by browsergame.si/games)
   ========================================================================== */
.library-features-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.features-header-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.features-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.feature-filter-pill svg {
  opacity: 0.8;
  color: currentColor;
}

.feature-filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.feature-filter-pill.active {
  background: rgba(0, 242, 254, 0.16);
  border-color: var(--focus-mint);
  color: var(--focus-mint);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.feature-filter-pill.active svg {
  opacity: 1;
  color: var(--focus-mint);
}

/* Not Working Button & Report Box */
.btn-modal-report {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-modal-report:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-report-box {
  margin-top: 14px;
  background: rgba(20, 24, 34, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: modalIn 0.2s ease;
}

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

.report-box-title {
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
}

.modal-report-box textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.modal-report-box textarea:focus {
  border-color: #f87171;
}

.report-box-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-cancel-sm {
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-send-report {
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-send-report:hover {
  background: #dc2626;
}

/* Rail Divider */
.rail-divider {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px auto;
}

/* ==========================================================================
   NAVIGATION SIDEBAR (Browsergame.si Inspired Collapsible Sidebar)
   ========================================================================== */
.app-sidebar {
  position: fixed;
  left: var(--rail-width);
  top: 0;
  bottom: 0;
  width: 290px;
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform: translateX(0);
}

.app-sidebar.hidden {
  display: flex !important;
  transform: translateX(-105%) !important;
  pointer-events: none;
  opacity: 0;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 95;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.hidden {
  display: none !important;
}

.sidebar-header {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.sidebar-header-title h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-sec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 8px 4px 8px;
}

.sidebar-nav-list,
.sidebar-genre-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav-item,
.sidebar-genre-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.sidebar-nav-item:hover,
.sidebar-genre-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: rgba(86, 230, 165, 0.1);
  color: var(--focus-mint);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--focus-mint);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--focus-mint);
}

.sidebar-item-pill {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.genre-emoji {
  font-size: 16px;
}

.sidebar-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
}

.sidebar-feature-tag {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-feature-tag:hover {
  background: rgba(86, 230, 165, 0.12);
  border-color: var(--focus-mint);
  color: #ffffff;
}

.sidebar-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==========================================================================
   App Footer (Legal & Contact Links)
   ========================================================================== */

.app-footer {
  margin-top: 60px;
  padding: 36px 32px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.6);
  border-radius: 16px 16px 0 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 720px;
  margin: 0;
}

.footer-actions-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.footer-link-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-link-highlight {
  color: var(--focus-mint);
}

.footer-link-highlight:hover {
  color: #ffffff;
  background: rgba(86, 230, 165, 0.15);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.footer-copyright {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Secondary Rail Buttons */
.rail-btn-secondary {
  margin-bottom: 6px;
  opacity: 0.75;
  transition: all 0.15s ease;
}

.rail-btn-secondary:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  color: var(--focus-mint);
}

/* ==========================================================================
   Legal & Policies Modal
   ========================================================================== */

.modal-dialog-legal {
  width: 92%;
  max-width: 820px;
  background: #10131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(86, 230, 165, 0.08);
}

.legal-modal-header {
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(86, 230, 165, 0.1);
  border: 1px solid rgba(86, 230, 165, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.legal-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.legal-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 12px 32px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.legal-body-container {
  padding: 24px 32px;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.legal-tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.legal-tab-panel.active {
  display: flex;
}

.legal-section-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.legal-section-block p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.legal-section-block strong {
  color: #ffffff;
}

.legal-highlight-box {
  background: rgba(86, 230, 165, 0.08);
  border: 1px solid rgba(86, 230, 165, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
}

.legal-highlight-box p {
  margin: 0;
  color: #ffffff;
}

.legal-inline-link {
  background: none;
  border: none;
  color: var(--focus-mint);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 2px;
}

.legal-inline-link:hover {
  color: #ffffff;
}

.legal-list {
  margin: 8px 0 0 20px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.legal-modal-footer {
  padding: 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-legal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-legal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Contact Us Modal
   ========================================================================== */

.modal-dialog-contact {
  width: 92%;
  max-width: 640px;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(86, 230, 165, 0.12);
}

.contact-modal-header {
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(86, 230, 165, 0.1);
  border: 1px solid rgba(86, 230, 165, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.contact-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.contact-email-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-email-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-card-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(86, 230, 165, 0.28);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.contact-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-card-address {
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  font-weight: 700;
  color: var(--focus-mint);
  letter-spacing: -0.01em;
}

.contact-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-copy-mail {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-mail:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-send-mail {
  background: var(--focus-mint);
  color: #08090b;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-send-mail:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   Donate Modal & PayPal Styles
   ========================================================================== */

.modal-dialog-donate {
  width: 92%;
  max-width: 580px;
  background: #111420;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.12);
}

.donate-modal-header {
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.donate-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.donate-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.donate-modal-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.donate-modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.donate-paypal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 112, 186, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.donate-paypal-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.paypal-logo-badge {
  background: #003087;
  color: #0079C1;
  font-family: var(--font-display, sans-serif);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.paypal-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.paypal-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.paypal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-paypal-donate {
  background: #0070BA;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-paypal-donate:hover {
  background: #005ea6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.5);
  color: #ffffff;
}

.donate-note {
  font-size: 12.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
}

.footer-link-donate {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.footer-link-donate:hover {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.2) !important;
}

/* ==========================================================================
   Admin Edit Game Modal & Table Actions
   ========================================================================== */

.modal-dialog-admin-edit {
  width: 92%;
  max-width: 860px;
  background: #111422;
  border: 1px solid rgba(86, 230, 165, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(86, 230, 165, 0.12);
}

.admin-edit-form-content {
  padding: 24px 32px 32px;
  max-height: 75vh;
  overflow-y: auto;
}

.admin-action-btn-edit {
  background: rgba(86, 230, 165, 0.12);
  border: 1px solid rgba(86, 230, 165, 0.35);
  color: var(--focus-mint);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}

.admin-action-btn-edit:hover {
  background: var(--focus-mint);
  color: #08090b;
}

/* ==========================================================================
   Admin Live Database Management
   ========================================================================== */

.admin-db-box {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.db-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
}

.db-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.db-status-dot.connected {
  background: var(--focus-mint);
  box-shadow: 0 0 12px var(--focus-mint);
}

.db-status-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.db-badge-provider {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(86, 230, 165, 0.12);
  border: 1px solid rgba(86, 230, 165, 0.25);
  color: var(--focus-mint);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.db-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.db-config-grid .full-width {
  grid-column: 1 / -1;
}

.db-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-db-action {
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-db-action.primary {
  background: var(--focus-mint);
  color: #08090b;
}

.btn-db-action.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-db-action.success {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
}

.btn-db-action.success:hover {
  background: #3b82f6;
  color: #ffffff;
}

.btn-db-action.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-db-action.secondary:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.db-sql-helper {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.db-sql-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-copy-sql {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-sql:hover {
  background: var(--focus-mint);
  color: #08090b;
}

.db-sql-code {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  line-height: 1.5;
  color: #a7f3d0;
  overflow-x: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .app-rail { display: none; }
  .hint-bar { left: 0; padding: 0 16px; }
  .hints-left { display: none; }
  .content-scroll { padding: 16px 16px calc(var(--hintbar-height) + 16px) 16px; }
  .top-bar { padding: 0 16px; }
  .popular-carousel-section { height: auto; min-height: 280px; }
  .slide-content-integrated { padding: 20px 0; }
  .slide-title-integrated { font-size: 24px; }
  .slide-hero-brand-lockup { display: none; }
  .slide-backdrop-art { width: 100%; opacity: 0.35; }
  .top-search-wrapper { width: 160px; }
  .btn-submit-nav span { display: none; }
  .modal-two-columns { grid-template-columns: 1fr; }
  .modal-col-right { display: none; }
  .side-drawer-panel { width: 100%; }
  .app-footer { padding: 24px 16px 36px; }
}

/* ==========================================================================
   Offline / Updating Link Notice & Badges
   ========================================================================== */
.modal-offline-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.offline-notice-icon {
  font-size: 20px;
  line-height: 1;
}

.offline-notice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.offline-notice-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  text-transform: uppercase;
}

.offline-notice-text p {
  margin: 0;
  font-size: 13px;
  color: #fde68a;
  line-height: 1.4;
}

.btn-modal-play.btn-disabled {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: none !important;
  transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.poster-updating-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(245, 158, 11, 0.92);
  color: #0b0f19;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


