/* ================================================================
   THEME: CyberArc Gaming Platform
   Palette: #080b14 (void) → #0e1225 (base) → #141830 (card)
   Accent: #7c5cfc (violet) → #5b8def (sky) → #3de8d4 (mint)
   ================================================================ */

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #080b14;
  color: #c8cdd8;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: #7c9aff; text-decoration: none; transition: color .25s, opacity .25s; }
a:hover { color: #a8b8ff; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080b14; }
::-webkit-scrollbar-thumb { background: #2a2f45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d4466; }

/* ========== Navbar ========== */
.site-header {
  background: rgba(8, 11, 20, .88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(124, 92, 252, .08);
  position: sticky; top: 0; z-index: 100;
  padding: 0 2rem;
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.logo {
  font-size: 1.55rem; font-weight: 900; color: #fff;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, #7c5cfc, #5b8def);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: .4rem; }
.nav-links a {
  color: #6b7494; font-size: .9rem; font-weight: 500;
  padding: .5rem 1rem; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: #c4d0ff; background: rgba(124, 92, 252, .08);
}
.nav-links a.active {
  color: #7c9aff;
  position: relative;
  background: none;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c5cfc, #5b8def);
}
.mobile-toggle {
  display: none; background: none; border: none;
  color: #7c9aff; font-size: 1.5rem; cursor: pointer;
  padding: .4rem;
}

/* ========== Hero — Cinematic Showcase ========== */
.hero-cinema {
  position: relative; overflow: hidden;
  min-height: 500px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0a0e24 0%, #151a40 40%, #0d1030 70%, #080b14 100%);
}
.hero-cinema-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-cinema-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(124, 92, 252, .1), transparent),
    radial-gradient(ellipse 60% 50% at 75% 55%, rgba(91, 141, 239, .08), transparent),
    linear-gradient(180deg, rgba(8,11,20,.1) 0%, rgba(8,11,20,.6) 80%, #080b14 100%);
}
.hero-cinema-content {
  position: relative; z-index: 2;
  text-align: center; padding: 5rem 1.5rem 1.5rem;
  max-width: 820px; margin: 0 auto;
}
.hc-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1.3rem;
  background: rgba(124, 92, 252, .12); border: 1px solid rgba(124, 92, 252, .25);
  border-radius: 50px; color: #a08cfc;
  font-size: .76rem; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 1.8rem;
  animation: hcFadeDown .6s ease-out;
}
.hc-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #7c5cfc; animation: pulse 2s infinite;
}
.hc-title {
  font-size: 4rem; font-weight: 900; color: #fff;
  line-height: 1.06; margin-bottom: 1.2rem;
  letter-spacing: -1.5px;
  animation: hcFadeUp .7s ease-out;
}
.hc-title span {
  background: linear-gradient(135deg, #7c5cfc, #5b8def);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hc-desc {
  font-size: 1.1rem; color: #6b7494; max-width: 540px;
  margin: 0 auto 2.5rem; line-height: 1.75;
  animation: hcFadeUp .8s ease-out;
}
.hc-actions {
  display: flex; gap: 1rem; justify-content: center;
  animation: hcFadeUp .9s ease-out;
}
.hc-btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.8rem;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: 1rem; font-weight: 700;
  border-radius: 14px; transition: all .3s;
  box-shadow: 0 4px 24px rgba(124, 92, 252, .3);
}
.hc-btn-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, .45);
}
.hc-btn-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.8rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #9ca3c4; font-size: 1rem; font-weight: 600;
  border-radius: 14px; transition: all .3s;
  backdrop-filter: blur(8px);
}
.hc-btn-secondary:hover {
  border-color: rgba(124, 92, 252, .4); color: #c4d0ff;
  background: rgba(124, 92, 252, .06);
}

/* Hero stats */
.hero-cinema-stats {
  display: flex; gap: 3.5rem; justify-content: center;
  margin-top: 3rem;
  animation: hcFadeUp 1s ease-out;
}
.hc-stat { text-align: center; }
.hc-stat strong {
  display: block; font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1.2;
}
.hc-stat span {
  font-size: .7rem; color: #4b5580;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

@keyframes hcFadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hcFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ========== Container ========== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ========== Section ========== */
.section { padding: 4rem 0; position: relative; }
.section:nth-child(odd) { background: #0a0d18; }
.section:nth-child(even) { background: #080b14; }

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem;
}
.section-header-left h2 {
  font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0;
}
.section-header-left h2 .accent {
  background: linear-gradient(135deg, #7c5cfc, #5b8def);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 48px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #7c5cfc, #5b8def);
  margin: .7rem 0 .5rem;
}
.section-header-left p {
  font-size: .88rem; color: #4b5580; margin: 0; line-height: 1.5;
}
.view-more-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.5rem; border-radius: 10px;
  background: rgba(124, 92, 252, .1); border: 1px solid rgba(124, 92, 252, .2);
  color: #a08cfc; font-size: .84rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: all .25s;
}
.view-more-btn:hover {
  background: rgba(124, 92, 252, .18); border-color: rgba(124, 92, 252, .4);
  color: #c4b8ff;
}

.section-dark { background: #0a0d18; }
.section-subtitle {
  font-size: .88rem; color: #4b5580; margin: .3rem 0 0; line-height: 1.5;
}
.section-title {
  font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: .3rem;
}
.section-title .color-blue { color: #7c9aff; }

/* ================================================================
   MODULE 0: SPOTLIGHT CAROUSEL — Immersive Cinematic
   ================================================================ */
.spotlight { position: relative; }

.spotlight-stage {
  position: relative; overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 21 / 9;
  background: #0a0d18;
  border: 1px solid rgba(124, 92, 252, .08);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 80px rgba(124, 92, 252, .06),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.spotlight-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
  transform: scale(1.05);
}
.spotlight-slide.active {
  opacity: 1; pointer-events: auto;
  transform: scale(1);
}

.spotlight-main {
  display: block; width: 100%; height: 100%;
  text-decoration: none; color: inherit;
  position: relative;
}

.spotlight-cover {
  position: absolute; inset: 0; overflow: hidden;
  z-index: 1;
}
.spotlight-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 10s cubic-bezier(.25,.46,.45,.94);
  filter: brightness(.85);
}
.spotlight-slide.active .spotlight-cover img { transform: scale(1.12); }

.spotlight-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,11,20,.1) 0%, rgba(8,11,20,.3) 40%, rgba(8,11,20,.92) 75%, rgba(8,11,20,1) 100%),
    linear-gradient(90deg, rgba(8,11,20,.6) 0%, transparent 50%);
  pointer-events: none;
}

.spotlight-badge {
  position: absolute; top: 24px; left: 28px;
  padding: .45rem 1.1rem; border-radius: 10px;
  background: rgba(124, 92, 252, .85);
  backdrop-filter: blur(12px);
  color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(124, 92, 252, .5);
  border: 1px solid rgba(255,255,255,.15);
  z-index: 2;
}

.spotlight-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .3s;
  z-index: 3; pointer-events: none;
}
.spotlight-main:hover .spotlight-play-overlay { opacity: 1; }
.spotlight-play-circle {
  width: 72px; height: 72px; border-radius: 16px;
  background: rgba(124, 92, 252, .9); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 8px 32px rgba(124, 92, 252, .6);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .3s, box-shadow .3s;
}
.spotlight-main:hover .spotlight-play-circle {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(124, 92, 252, .7);
}

.spotlight-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 2.5rem 3rem 2.8rem;
  z-index: 2;
}

.spotlight-genre {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #a78bfa; margin-bottom: .8rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.spotlight-genre::before {
  content: ''; display: inline-block;
  width: 18px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, #7c5cfc, #5b8def);
}

.spotlight-title {
  font-size: 2.2rem; font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: .8rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.spotlight-desc {
  font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  max-width: 560px;
}

.spotlight-meta {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.spotlight-rating { font-size: .9rem; }

.spotlight-play-btn {
  padding: .65rem 1.8rem; border-radius: 12px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(124, 92, 252, .4);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,.1);
}
.spotlight-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, .6);
}

/* Spotlight thumbnails — Filmstrip Style */
.spotlight-thumbs {
  display: flex; gap: .7rem; margin-top: 1.2rem;
  overflow-x: auto; padding-bottom: .4rem;
  scrollbar-width: thin; scrollbar-color: #1e2240 transparent;
}
.spotlight-thumb {
  flex: 0 0 auto; width: 150px;
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid rgba(255,255,255,.04); border-radius: 14px;
  background: #0e1225; padding: .5rem; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.spotlight-thumb:hover {
  border-color: rgba(124,92,252,.25); background: #111630;
  transform: translateY(-2px);
}
.spotlight-thumb.active {
  border-color: #7c5cfc;
  box-shadow: 0 4px 20px rgba(124, 92, 252, .25);
  background: linear-gradient(180deg, #141838, #0e1225);
}
.spotlight-thumb img {
  width: 100%; height: 80px; object-fit: cover;
  border-radius: 10px; margin-bottom: .45rem;
  transition: transform .3s;
}
.spotlight-thumb:hover img { transform: scale(1.05); }
.spotlight-thumb-title {
  font-size: .66rem; font-weight: 600; color: #4b5580;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px; text-align: center;
  transition: color .3s;
}
.spotlight-thumb.active .spotlight-thumb-title { color: #a78bfa; }
.spotlight-thumb:hover .spotlight-thumb-title { color: #7c9aff; }

/* Spotlight dots — Pill style */
.spotlight-dots {
  display: flex; gap: .45rem; justify-content: center; margin-top: 1rem;
}
.spotlight-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.08); transition: all .4s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.04);
}
.spotlight-dot:hover { background: rgba(124,92,252,.3); }
.spotlight-dot.active {
  background: #7c5cfc; width: 32px; border-radius: 5px;
  box-shadow: 0 0 12px rgba(124,92,252,.5);
  border-color: transparent;
}

/* ================================================================
   MODULE 1-3: DUAL LANE — Feature Cards
   ================================================================ */
.dual-lane {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.lane-card {
  display: flex; flex-direction: column;
  background: #0e1225; border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(124, 92, 252, .04);
  transition: all .35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.lane-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  border-color: rgba(124, 92, 252, .15);
}

.lane-cover {
  position: relative; width: 100%; height: 170px;
  overflow: hidden;
}
.lane-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
  background: #141830;
}
.lane-card:hover .lane-cover img { transform: scale(1.08); }

.lane-badge {
  position: absolute; top: 10px; left: 10px;
  padding: .25rem .7rem; border-radius: 6px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: .62rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(124,92,252,.3);
}

.lane-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .3s;
}
.lane-card:hover .lane-play-overlay { opacity: 1; }
.lane-play-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(124, 92, 252, .9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem;
  box-shadow: 0 4px 16px rgba(124,92,252,.4);
}

.lane-body {
  display: flex; flex-direction: column;
  padding: 1rem 1.2rem 1.2rem;
  flex: 1;
}
.lane-genre {
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #7c9aff; margin-bottom: .4rem;
}
.lane-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: .35rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lane-desc {
  font-size: .82rem; color: #4b5580; line-height: 1.55;
  margin-bottom: .8rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lane-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: auto;
}
.lane-rating { font-size: .82rem; }
.lane-play-btn {
  padding: .4rem 1.1rem; border-radius: 8px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .3px; white-space: nowrap;
  transition: box-shadow .25s, transform .25s;
}
.lane-play-btn:hover {
  box-shadow: 0 4px 14px rgba(124, 92, 252, .35);
  transform: translateY(-1px);
}

/* ================================================================
   MODULE 4+: ARENA GRID — Ranking Leaderboard
   ================================================================ */
.arena {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.arena-card {
  display: flex; align-items: center; gap: 1rem;
  background: #0e1225; border-radius: 14px;
  padding: 1rem 1.2rem; text-decoration: none; color: inherit;
  border: 1px solid rgba(124, 92, 252, .04);
  transition: all .3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  position: relative; overflow: hidden;
}

.arena-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: rgba(255,255,255,.05);
  border-radius: 0 2px 2px 0; transition: background .3s;
}
.arena-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  border-color: rgba(124, 92, 252, .15);
}
.arena-card:hover::before { background: #7c5cfc; }

/* Champion card — full width, bigger */
.arena-champion {
  grid-column: 1 / -1;
  padding: 1.6rem 2rem;
}
.arena-champion::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); width: 4px; }
.arena-champion .arena-cover { width: 160px; height: 110px; }
.arena-champion .arena-title { font-size: 1.4rem; }
.arena-champion .arena-crown { font-size: 2.2rem; color: #fbbf24; }

/* Podium */
.arena-podium::before { background: linear-gradient(180deg, #94a3b8, #64748b); }
.arena-podium .arena-crown { font-size: 1.6rem; color: #94a3b8; }

/* Rank */
.arena-rank .arena-crown { font-size: 1rem; color: #3d4466; font-weight: 800; }

.arena-crown {
  flex: 0 0 auto; text-align: center; min-width: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.arena-cover {
  flex: 0 0 auto; width: 100px; height: 72px;
  border-radius: 10px; overflow: hidden;
}
.arena-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; background: #141830;
}
.arena-card:hover .arena-cover img { transform: scale(1.06); }

.arena-info { flex: 1; min-width: 0; }
.arena-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: .2rem; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arena-desc {
  font-size: .78rem; color: #4b5580; line-height: 1.5;
  margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.arena-meta {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.arena-genre {
  padding: .15rem .6rem; border-radius: 6px;
  background: rgba(124, 92, 252, .1); color: #7c9aff;
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px;
}
.arena-rating { font-size: .82rem; }

.arena-play { flex: 0 0 auto; margin-left: auto; }
.arena-play-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 10px rgba(124,92,252,.2);
}
.arena-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(124,92,252,.35);
}

/* ================================================================
   Text Truncation Utilities
   ================================================================ */
.text-line1 { width: 100%; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-line1 a { display: inline-block; width: 100%; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-line2 { width: 100%; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
.text-line3 { width: 100%; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   Card Entrance Animation
   ================================================================ */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-animate { animation: cardSlideUp .45s ease-out both; }

/* --- Tag Pill --- */
.tag-pill {
  display: inline-block; padding: .25rem .7rem;
  background: rgba(124, 92, 252, .1); color: #7c9aff;
  font-size: .75rem; border-radius: 8px;
  font-weight: 600;
}

/* ================================================================
   GAME LIST PAGE — Toolbar & Views
   ================================================================ */

/* --- Toolbar --- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.filter-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .45rem 1rem; border-radius: 8px;
  background: #0e1225; border: 1px solid rgba(124,92,252,.08);
  color: #6b7494; font-size: .84rem; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: #7c5cfc; color: #7c9aff; }
.filter-btn.active {
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0); color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px rgba(124,92,252,.25);
}

.toolbar-right { display: flex; align-items: center; gap: .8rem; }
.view-toggle {
  display: flex; background: #0e1225; border-radius: 10px;
  border: 1px solid rgba(124,92,252,.08); overflow: hidden;
}
.view-btn {
  background: none; border: none; color: #4b5580; cursor: pointer;
  padding: .5rem .7rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.view-btn:hover { color: #7c9aff; }
.view-btn.active { background: rgba(124,92,252,.12); color: #7c9aff; }

.sort-select {
  background: #0e1225; border: 1px solid rgba(124,92,252,.08);
  color: #c8cdd8; padding: .5rem .9rem; border-radius: 10px;
  font-size: .85rem;
}
.results-info {
  font-size: .85rem; color: #4b5580; margin-bottom: 1.2rem;
}
.results-info strong { color: #c8cdd8; }

/* --- Search Box --- */
.search-box { position: relative; margin-bottom: 1.5rem; }
.search-box input {
  width: 100%; padding: .9rem 1.3rem .9rem 3.2rem;
  background: #0e1225; border: 1px solid rgba(124,92,252,.08);
  border-radius: 14px; color: #c8cdd8; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.search-box input:focus {
  outline: none; border-color: #7c5cfc;
  box-shadow: 0 0 0 4px rgba(124,92,252,.12);
}
.search-box input::placeholder { color: #3d4466; }
.search-box .search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: #4b5580; font-size: 1.1rem; pointer-events: none;
}

/* ========================================
   VIEW 1: GRID — Cards
   ======================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.game-card {
  background: #0e1225; border-radius: 14px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s;
  border: 1px solid rgba(124,92,252,.04); text-decoration: none; color: inherit;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border-color: rgba(124,92,252,.15);
}

.game-card-img-wrap { position: relative; overflow: hidden; }
.game-card-img {
  width: 100%; height: 175px; object-fit: cover; background: #141830;
  transition: transform .5s;
}
.game-card:hover .game-card-img { transform: scale(1.06); }
.game-card-img-overlay {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s;
}
.game-card:hover .game-card-img-overlay { opacity: .12; }
.game-card-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(124, 92, 252, .9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.game-card:hover .game-card-play-icon { transform: translate(-50%, -50%) scale(1); }

.game-card-body { padding: 1rem 1.2rem 1.3rem; }
.game-card-cat {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: .35rem; color: #7c9aff;
}
.game-card-title {
  font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .35rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card-desc {
  font-size: .82rem; color: #4b5580;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .8rem;
  line-height: 1.55;
}
.game-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.game-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.game-card-stats { display: flex; align-items: center; gap: .8rem; }
.game-card-rating {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .78rem; color: #fbbf24; font-weight: 600;
}
.game-card-plays { font-size: .72rem; color: #4b5580; }

/* List Page — Game Card (alternate layout) */
.list-page-title {
  text-align: center; font-size: 30px;
  color: #fff; font-weight: 800; margin-bottom: 2rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.games-grid .game-card a {
  display: block; text-decoration: none; color: inherit;
}
.game-card-image {
  position: relative; overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.game-card-image img {
  width: 100%; height: 175px; object-fit: cover; background: #141830;
  display: block; transition: transform .35s ease;
}
.games-grid .game-card:hover .game-card-image img { transform: scale(1.06); }
.game-card-image .game-card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
}
.game-card-image .game-card-rating {
  position: absolute; bottom: 8px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .78rem; color: #fbbf24; font-weight: 600;
}
.game-card-info {
  padding: 1rem 1.2rem 1.3rem;
  background: #0e1225;
}
.game-card-footer {
  margin-top: .3rem;
}
.game-card-play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.4rem; border-radius: 8px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: .82rem; font-weight: 700;
  text-decoration: none; text-transform: uppercase; letter-spacing: .5px;
  transition: all .2s;
}
.game-card-play-btn:hover {
  background: linear-gradient(135deg, #8b6ffd, #6a5af0);
  box-shadow: 0 4px 14px rgba(124,92,252,.35);
  transform: translateY(-1px);
}
.badge-hot {
  padding: .22rem .65rem; border-radius: 6px;
  font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  backdrop-filter: blur(4px);
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
}

/* Badge */
.game-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: .22rem .65rem; border-radius: 6px;
  font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; z-index: 2;
  backdrop-filter: blur(4px);
}
.game-card-badge.new { background: linear-gradient(135deg, #3de8d4, #14b8a6); color: #080b14; }
.game-card-badge.hot { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.game-card-badge.active { background: linear-gradient(135deg, #7c5cfc, #5b8def); color: #fff; box-shadow: 0 0 12px rgba(124,92,252,.4); }

/* ========================================
   VIEW 2: LIST — Horizontal Row
   ======================================== */
.game-list { display: flex; flex-direction: column; gap: .6rem; }
.list-card {
  display: grid; grid-template-columns: 44px 140px 1fr 120px;
  align-items: center; gap: 0;
  border-radius: 14px; padding: .75rem;
  background: #0e1225;
  border: 1px solid rgba(124,92,252,.04);
  text-decoration: none; color: inherit;
  transition: all .25s;
}
.list-card:hover {
  background: #111630; border-color: rgba(124,92,252,.2);
  box-shadow: 0 4px 16px rgba(124,92,252,.08);
  transform: translateX(4px);
}
.list-card-rank {
  text-align: center; font-size: 1.2rem; font-weight: 800;
  color: #7c5cfc; opacity: .5;
}
.list-card-img-wrap {
  position: relative; overflow: hidden; border-radius: 10px;
  width: 140px; height: 90px; flex-shrink: 0;
}
.list-card-img { width: 100%; height: 100%; object-fit: cover; background: #141830; transition: transform .4s; }
.list-card:hover .list-card-img { transform: scale(1.05); }
.list-card-img-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.list-card:hover .list-card-img-overlay { opacity: .08; }
.list-card-body { padding: .4rem 1.2rem; min-width: 0; }
.list-card-cat {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: .2rem; color: #7c9aff;
}
.list-card-title {
  font-size: 1.05rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.list-card-desc {
  font-size: .78rem; color: #4b5580;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .4rem;
}
.list-card-tags { display: flex; gap: .3rem; }
.list-card-action {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1rem; gap: .3rem; min-width: 100px;
}
.list-card-rating { font-size: .82rem; color: #fbbf24; font-weight: 600; }
.list-card-plays { font-size: .68rem; color: #4b5580; }
.list-card-btn {
  padding: .45rem 1.2rem; border-radius: 8px;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0); color: #fff; font-size: .78rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.list-card:hover .list-card-btn {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(124,92,252,.3);
}

/* ========================================
   VIEW 3: MOSAIC — Pinterest Waterfall
   ======================================== */
.game-mosaic { column-count: 4; column-gap: 1.2rem; }
.mosaic-card {
  break-inside: avoid; margin-bottom: 1.2rem;
  border-radius: 14px; background: #0e1225;
  border: 1px solid rgba(124,92,252,.04);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.mosaic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.mosaic-card-img-wrap { position: relative; overflow: hidden; }
.mosaic-card-img {
  width: 100%; height: 100%; object-fit: cover; background: #141830;
  transition: transform .5s;
}
.mosaic-card:hover .mosaic-card-img { transform: scale(1.05); }
.mosaic-card-img-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.mosaic-card:hover .mosaic-card-img-overlay { opacity: .08; }
.mosaic-card-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124, 92, 252, .9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.mosaic-card:hover .mosaic-card-play-icon { transform: translate(-50%, -50%) scale(1); }
.mosaic-card-body { padding: .85rem 1rem; }
.mosaic-card-cat {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: .2rem; color: #7c9aff;
}
.mosaic-card-title {
  font-size: .92rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .4rem;
}
.mosaic-card-meta {
  display: flex; align-items: center; gap: .6rem;
  font-size: .7rem; color: #4b5580;
}

/* ========== Tags Page ========== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; padding: 2rem 0; }
.tag-cloud .tag-pill {
  font-size: .9rem; padding: .5rem 1.2rem;
  cursor: pointer; transition: background .2s, transform .15s;
}
.tag-cloud .tag-pill:hover { background: rgba(124,92,252,.2); transform: scale(1.05); }
.tag-cloud .tag-pill.active { background: rgba(124,92,252,.35); color: #fff; box-shadow: 0 0 14px rgba(124,92,252,.3); transform: scale(1.05); }
.tag-cloud .tag-pill.large { font-size: 1.15rem; padding: .6rem 1.5rem; }
.tag-cloud .tag-pill.small { font-size: .8rem; padding: .35rem .9rem; }

.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem; background: #0e1225;
  border: 1px solid rgba(124,92,252,.04); border-radius: 16px;
  text-decoration: none; transition: all .3s; position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #7c5cfc, #5b8def);
  opacity: 0; transition: opacity .3s;
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover {
  transform: translateY(-4px); border-color: rgba(124,92,252,.2);
  box-shadow: 0 10px 32px rgba(0,0,0,.3);
}
.cat-icon { font-size: 2rem; margin-bottom: .6rem; }
.cat-name { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }
.cat-count { font-size: .75rem; color: #4b5580; }

/* ========== Page Header ========== */
.page-header {
  background: linear-gradient(135deg, #0e1225, #080b14);
  padding: 3.5rem 2rem; text-align: center;
  border-bottom: 1px solid rgba(124,92,252,.06);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,92,252,.06), transparent 70%);
}
.page-header h1 {
  font-size: 2.4rem; font-weight: 800; color: #fff;
  margin-bottom: .5rem; position: relative;
}
.page-header p { color: #6b7494; font-size: 1.05rem; position: relative; }

/* ================================================================
   GAME DETAIL PAGE — Arcade Showcase
   ================================================================ */

/* --- Trail (Breadcrumb) --- */
.arcade-trail { margin: 1.25rem 0; }
.arcade-trail-path {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; list-style: none; padding: 0; margin: 0;
}
.arcade-trail-node { display: flex; align-items: center; }
.arcade-trail-node a {
  text-decoration: none; color: #3de8d4; font-weight: 500;
  padding: 4px 10px; border-radius: 20px; font-size: .88rem;
  transition: background .2s, color .2s;
}
.arcade-trail-node a:hover {
  background: rgba(61, 232, 212, .1); color: #6af0df;
}
.arcade-trail-node span[aria-current="page"] {
  color: #5c6080; font-weight: 600; padding: 4px 10px;
  font-size: .88rem;
}
.arcade-trail-slash { color: #2a2f45; user-select: none; font-size: .9rem; }

/* --- Canvas (Player Container) --- */
.arcade-canvas { margin-top: .5rem; }
.arcade-screen {
  position: relative; border-radius: 20px; overflow: hidden;
  background: #060810; border: 1px solid rgba(61, 232, 212, .1);
  aspect-ratio: 16 / 9;
  box-shadow:
    0 24px 64px rgba(0,0,0,.5),
    0 0 0 1px rgba(61,232,212,.04),
    inset 0 1px 0 rgba(255,255,255,.03);
}
.arcade-screen iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* --- Curtain (Play Overlay) --- */
.arcade-curtain {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.arcade-poster {
  position: absolute; inset: 0; z-index: 1;
}
.arcade-poster img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55) saturate(1.2);
}
.arcade-poster-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, transparent 30%, rgba(6,8,16,.7) 100%),
    linear-gradient(180deg, rgba(6,8,16,.2) 0%, rgba(6,8,16,.85) 100%);
}

/* --- Launch Button --- */
.arcade-launch {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  background: none; border: none; cursor: pointer;
  padding: 1.5rem; outline: none;
}
.arcade-launch-ring {
  position: absolute; width: 90px; height: 90px;
  border: 2px solid rgba(61,232,212,.25); border-radius: 50%;
  animation: arcadePulse 2s ease-in-out infinite;
}
.arcade-launch-arrow {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #3de8d4, #14b8a6);
  display: flex; align-items: center; justify-content: center;
  color: #080b14; font-size: 1.5rem;
  box-shadow: 0 0 40px rgba(61,232,212,.4), 0 8px 24px rgba(0,0,0,.3);
  transition: transform .3s, box-shadow .3s;
}
.arcade-launch:hover .arcade-launch-arrow {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(61,232,212,.55), 0 12px 32px rgba(0,0,0,.4);
}
.arcade-launch-label {
  color: #3de8d4; font-size: .95rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 20px rgba(61,232,212,.3);
}
@keyframes arcadePulse {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.3); opacity: 0; }
}

/* --- Profile (Game Info) --- */
.arcade-profile {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(14,18,37,.95), rgba(8,11,20,.98));
  border: 1px solid rgba(61,232,212,.08);
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.arcade-profile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3de8d4, transparent);
  opacity: .5;
}
.arcade-headline {
  font-size: 2.2rem; font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 1rem; letter-spacing: -.5px;
}
.arcade-badges {
  display: flex; align-items: center; gap: .8rem;
  flex-wrap: wrap; margin-bottom: 1.2rem;
}
.arcade-stars { font-size: .95rem; }
.arcade-divider-dot { color: #2d3350; font-size: .8rem; }
.arcade-category {
  color: #3de8d4; font-size: .9rem; font-weight: 600;
  letter-spacing: .5px;
}
.arcade-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.arcade-chip {
  padding: .35rem 1rem; border-radius: 20px;
  background: rgba(61,232,212,.08); border: 1px solid rgba(61,232,212,.15);
  color: #6af0df; font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.arcade-chip:hover {
  background: rgba(61,232,212,.18); border-color: rgba(61,232,212,.35);
  color: #3de8d4;
}

/* --- Manifesto (Review & About) --- */
.arcade-manifesto {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
.arcade-manifesto-block {
  padding: 2rem; border-radius: 18px;
  background: rgba(14,18,37,.7);
  border: 1px solid rgba(124,92,252,.06);
}
.arcade-manifesto-heading {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; position: relative; padding-left: 1rem;
}
.arcade-manifesto-heading::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #3de8d4, #7c5cfc);
}
.arcade-manifesto-text,
.arcade-manifesto-body {
  color: #6b7494; line-height: 1.8; font-size: .95rem;
}
.arcade-manifesto-body p { color: #6b7494; margin-bottom: .8rem; }
.arcade-manifesto-body h3,
.arcade-manifesto-body h2 { color: #fff; margin-bottom: .6rem; }
.arcade-manifesto-body ul,
.arcade-manifesto-body ol { padding-left: 1.5rem; margin-bottom: .8rem; }
.arcade-manifesto-body li { color: #6b7494; margin-bottom: .3rem; list-style: disc; }

/* --- Similar (Related Games) --- */
.arcade-similar { margin-top: 3.5rem; }
.arcade-similar-header { margin-bottom: 2rem; }
.arcade-similar-heading {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin-bottom: .6rem;
}
.arcade-similar-bar {
  width: 60px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #3de8d4, #7c5cfc);
}
.arcade-similar-rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}
.arcade-tile {
  border-radius: 16px; overflow: hidden;
  background: #0e1225;
  border: 1px solid rgba(61,232,212,.06);
  text-decoration: none; color: inherit;
  transition: transform .35s ease, box-shadow .35s, border-color .35s;
}
.arcade-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  border-color: rgba(61,232,212,.2);
}
.arcade-tile-visual {
  position: relative; overflow: hidden;
}
.arcade-tile-visual img {
  width: 100%; height: 140px; object-fit: cover;
  background: #141830; display: block;
  transition: transform .5s ease;
}
.arcade-tile:hover .arcade-tile-visual img { transform: scale(1.08); }
.arcade-tile-hover-shade {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,16,.5); opacity: 0;
  transition: opacity .3s;
}
.arcade-tile:hover .arcade-tile-hover-shade { opacity: 1; }
.arcade-tile-hover-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(61,232,212,.9); color: #080b14;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(61,232,212,.35);
}
.arcade-tile-detail { padding: 1rem 1.1rem 1.2rem; }
.arcade-tile-name {
  font-size: .95rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .35rem;
}
.arcade-tile-genre {
  display: block; font-size: .7rem; font-weight: 600;
  color: #3de8d4; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: .3rem;
}
.arcade-tile-score { font-size: .78rem; }

/* --- Fullscreen Immersion --- */
.arcade-immersion-bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 10001;
  display: none; justify-content: flex-end;
  padding: 10px 20px;
  background: linear-gradient(to bottom, rgba(6,8,16,.85), transparent);
}
.arcade-immersion-close {
  background: rgba(61,232,212,.15); border: 1px solid rgba(61,232,212,.3);
  color: #3de8d4; font-size: 13px; font-weight: 700;
  padding: 8px 22px; border-radius: 8px; cursor: pointer;
  letter-spacing: 1px; transition: all .2s;
}
.arcade-immersion-close:hover {
  background: rgba(61,232,212,.25);
}
.arcade-immersion-frame {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 10000; border: none; background: #000; display: none;
}

/* --- Detail Page Responsive --- */
@media (max-width: 1024px) {
  .arcade-manifesto { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .arcade-screen { aspect-ratio: 4 / 3; border-radius: 16px; }
  .arcade-profile { padding: 1.5rem; }
  .arcade-headline { font-size: 1.6rem; }
  .arcade-launch-arrow { width: 56px; height: 56px; font-size: 1.2rem; }
  .arcade-launch-ring { width: 72px; height: 72px; }
  .arcade-similar-rack { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .arcade-trail-node a,
  .arcade-trail-node span[aria-current="page"] { font-size: .8rem; padding: 3px 7px; }
}
@media (max-width: 480px) {
  .arcade-screen { aspect-ratio: 3 / 4; border-radius: 14px; }
  .arcade-headline { font-size: 1.3rem; }
  .arcade-profile { padding: 1.2rem; }
  .arcade-manifesto-block { padding: 1.2rem; }
  .arcade-similar-rack { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .arcade-tile-visual img { height: 110px; }
}

/* ========== Content Pages ========== */
.content-page { max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; flex: 1; display: flex; flex-direction: column; }
.content-page h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 2rem 0 .8rem; }
.content-page h3 { font-size: 1.15rem; font-weight: 600; color: #c8cdd8; margin: 1.5rem 0 .5rem; }
.content-page p { color: #6b7494; margin-bottom: 1rem; }
.content-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-page ul li { color: #6b7494; margin-bottom: .4rem; list-style: disc; }

/* ========== Contact Page ========== */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.contact-info-card {
  background: #141830; border: 1px solid rgba(124,92,252,.08);
  border-radius: 14px; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.contact-info-card:hover { border-color: rgba(124,92,252,.25); box-shadow: 0 4px 20px rgba(124,92,252,.08); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124,92,252,.15), rgba(91,141,239,.15));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; color: #7c5cfc; }
.contact-info-content h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .5px; }
.contact-info-content p { color: #6b7494; font-size: .9rem; margin: 0; word-break: break-all; }
.contact-info-content a { color: #7c9aff; }
.contact-info-content a:hover { color: #a8b8ff; }
.contact-form { width: 100%; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; color: #c8cdd8; font-weight: 500; margin-bottom: .45rem; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem;
  background: #0e1225; border: 1px solid rgba(124,92,252,.08);
  border-radius: 10px; color: #c8cdd8; font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #7c5cfc;
  box-shadow: 0 0 0 4px rgba(124,92,252,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.submit-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  padding: .8rem 2.4rem; background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  transition: opacity .2s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(124,92,252,.25);
}
.submit-btn:hover { opacity: .9; box-shadow: 0 6px 20px rgba(124,92,252,.35); }
.submit-btn.loading { opacity: .7; cursor: not-allowed; pointer-events: none; }
.submit-btn .fa-spinner { margin-right: 6px; }

/* ========== Contact Notification ========== */
.contact-notification {
  padding: .85rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem;
  font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .5rem;
  animation: contactNotifIn .3s ease;
}
.contact-notification i { font-size: 1.1rem; }
.contact-notification-success { background: rgba(69,183,125,.12); color: #45b77d; border: 1px solid rgba(69,183,125,.2); }
.contact-notification-error { background: rgba(235,87,87,.12); color: #eb5757; border: 1px solid rgba(235,87,87,.2); }
.contact-notification.fade-out { animation: contactNotifOut .4s ease forwards; }
@keyframes contactNotifIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contactNotifOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: #0e1225; border: 1px solid rgba(124,92,252,.06);
  border-radius: 10px; color: #6b7494; font-size: .9rem; transition: all .2s;
}
.pagination a:hover { background: #111630; border-color: rgba(124,92,252,.2); color: #7c9aff; }
.pagination span.active {
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0); color: #fff;
  border-color: transparent; box-shadow: 0 2px 10px rgba(124,92,252,.25);
}
.pagination .pag-dots { background: none; border: none; color: #3d4466; }
.pagination .pag-arrow { font-size: 1.1rem; }

/* ========== Pagination (Server-Rendered) ========== */
.pagination-container { margin-top: 2.5rem; }
.pagination-container nav.pagination { display: block; }
.pagination-list {
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; list-style: none; margin: 0; padding: 0;
}
.pagination-item { display: inline-flex; }
.pagination-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 6px;
  background: #0e1225; border: 1px solid rgba(124,92,252,.06);
  border-radius: 10px; color: #6b7494; font-size: .9rem;
  text-decoration: none; transition: all .2s; cursor: pointer;
}
.pagination-link:hover {
  background: #111630; border-color: rgba(124,92,252,.2); color: #7c9aff;
}
.pagination-item.active .pagination-link,
.pagination-link.current {
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px rgba(124,92,252,.25);
  cursor: default;
}
.pagination-link.prev,
.pagination-link.next { font-size: 1.1rem; }
.pagination-link.disabled {
  opacity: .35; cursor: not-allowed; pointer-events: none;
}

/* ========== Back to Top ========== */
#scrollUp {
  position: fixed !important;
  bottom: 28px !important; right: 28px !important;
  width: 46px !important; height: 46px !important;
  background: linear-gradient(135deg, #7c5cfc, #5b4ae0) !important;
  border-radius: 12px !important;
  color: #fff !important; text-align: center !important;
  line-height: 46px !important; font-size: 18px !important;
  z-index: 99999 !important; cursor: pointer !important;
  display: none !important; opacity: .85 !important;
  transition: all .3s ease-in-out !important;
  box-shadow: 0 4px 16px rgba(124,92,252,.25);
  text-decoration: none !important;
}
#scrollUp:hover {
  opacity: 1 !important;
  box-shadow: 0 6px 20px rgba(124,92,252,.4);
  transform: translateY(-2px);
}

/* ========== Footer ========== */
.site-footer {
  background: #060810; border-top: 1px solid rgba(124,92,252,.06);
  padding: 3.5rem 2rem 1.5rem; margin-top: auto;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: #7e89b0; font-size: .88rem; line-height: 1.9; }
.footer-col a:hover { color: #7c9aff; }
.footer-bottom {
  max-width: 1400px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(124,92,252,.06); text-align: center;
  color: #4f5a80; font-size: .82rem;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .dual-lane { grid-template-columns: repeat(3, 1fr); }
  .arena { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hc-title { font-size: 3rem; }
  .game-mosaic { column-count: 3; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }

  /* Spotlight */
  .spotlight-stage { aspect-ratio: 16 / 9; }
  .spotlight-info { padding: 2rem 2rem 2.2rem; }
  .spotlight-title { font-size: 1.6rem; }
  .spotlight-desc { max-width: 440px; }
  .spotlight-badge { top: 16px; left: 20px; }
  .spotlight-thumb { width: 120px; }
  .spotlight-thumb img { height: 66px; }

  /* Dual Lane */
  .dual-lane { grid-template-columns: repeat(2, 1fr); }

  /* Arena */
  .arena { grid-template-columns: 1fr; }
  .arena-champion { grid-column: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #080b14; border-bottom: 1px solid rgba(124,92,252,.08);
    padding: 1rem 2rem; gap: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .mobile-toggle { display: block; }

  /* Hero responsive */
  .hero-cinema-content { padding: 3rem 1.2rem .5rem; }
  .hc-title { font-size: 2.4rem; }
  .hc-desc { font-size: .95rem; }
  .hc-actions { flex-direction: column; align-items: center; }
  .hc-btn-primary, .hc-btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .hero-cinema-stats { gap: 2rem; margin-top: 1.5rem; }

  /* Section header */
  .section-header { flex-direction: column; gap: .6rem; }
  .section-header-left h2 { font-size: 1.3rem; }

  /* Dual lane — single column */
  .dual-lane { grid-template-columns: 1fr; }
  .lane-cover { height: 180px; }

  /* Arena */
  .arena { grid-template-columns: 1fr; }
  .arena-champion .arena-cover { width: 120px; height: 85px; }
  .arena-champion .arena-title { font-size: 1.1rem; }

  /* Spotlight */
  .spotlight-title { font-size: 1.4rem; }
  .spotlight-info { padding: 1.5rem 1.5rem 1.8rem; }
  .spotlight-thumb { width: 110px; }
  .spotlight-thumb img { height: 60px; }

  .game-grid, .games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .game-mosaic { column-count: 2; }
  .list-card { grid-template-columns: 100px 1fr; }
  .list-card-rank, .list-card-action { display: none; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hc-title { font-size: 1.9rem; }
  .hc-actions { gap: .8rem; }
  .site-header { padding: 0 1rem; }
  .container { padding: 0 1rem; }

  /* Spotlight compact */
  .spotlight-stage { aspect-ratio: 4 / 5; border-radius: 18px; }
  .spotlight-title { font-size: 1.2rem; }
  .spotlight-desc { -webkit-line-clamp: 2; max-width: 100%; }
  .spotlight-info { padding: 1.2rem 1.2rem 1.5rem; }
  .spotlight-genre { margin-bottom: .5rem; }
  .spotlight-badge { top: 12px; left: 14px; padding: .35rem .8rem; font-size: .62rem; }
  .spotlight-play-circle { width: 56px; height: 56px; font-size: 1.2rem; border-radius: 12px; }
  .spotlight-thumbs { gap: .5rem; }
  .spotlight-thumb { width: 90px; }
  .spotlight-thumb img { height: 48px; }
  .spotlight-thumb-title { font-size: .58rem; }

  /* Lane card compact */
  .lane-cover { height: 150px; }

  /* Arena compact */
  .arena-card { padding: .8rem; gap: .7rem; }
  .arena-cover { width: 80px; height: 60px; }
  .arena-desc { display: none; }
  .arena-champion .arena-cover { width: 100px; height: 72px; }

  .game-grid, .games-grid { grid-template-columns: 1fr; }
  .game-mosaic { column-count: 1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
