/* styles.css - Gold and silver glass theme */
:root {
  --color-primary: #d4af37;
  --color-silver: #c0c0c0;
  --color-bg: #0b1020;
  --color-text: #f4f1e8;
  --color-muted: rgba(192, 192, 192, 0.65);
  --color-glass: rgba(212, 175, 55, 0.07);
  --glass-border: rgba(212, 175, 55, 0.3);
  --glass-blur: blur(18px);
  --font-primary: 'Poppins', sans-serif;
  --transition: 0.3s ease;
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.3);
}

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

/* Local loading-screen artwork keeps the theme available without a remote host. */
html {
  min-height: 100vh;
  background: #0b0a10;
}

body {
  font-family: var(--font-primary);
  min-height: 100vh;
  background: transparent;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ── Universal Cinematic Slideshow Background ── */
#cinematic-background-slideshow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9999;
  overflow: hidden;
  background: #0b0a10;
  pointer-events: none;
}

#cinematic-background-slideshow .cinematic-bg-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  pointer-events: none;
}

#cinematic-background-slideshow .cinematic-bg-frame.is-active {
  opacity: 1;
}

#cinematic-background-slideshow .cinematic-bg-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

#cinematic-background-slideshow .cinematic-bg-frame.is-active img {
  animation: cinematicPushIn 8s ease-out both;
}

#cinematic-background-slideshow .cinematic-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(11, 10, 20, 0.62) 0%, rgba(10, 5, 5, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
}

@keyframes cinematicPushIn {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.15);
  }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 5, 5, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--gold-glow);
  z-index: 1000;
  transition: var(--transition);
}

.logo-paper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-silver);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: logoFlash 3s infinite alternate;
}

@keyframes logoFlash {
  0% {
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
    color: #fff;
  }

  100% {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.85), 0 0 40px rgba(212, 175, 55, 0.45);
    color: var(--color-primary);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 14px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ── Nav Auth ── */
.nav-auth-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.btn-signin {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.btn-signin:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
  transform: scale(1.06);
}

/* ---- Profile Dropdown Menu ---- */
.profile-dropdown-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.profile-avatar-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  object-fit: cover;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.profile-avatar-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.dropdown-menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 260px;
  background: rgba(10, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 2000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

#dropdown-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
}

#dropdown-username {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

#dropdown-discord-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
}

.logout-item {
  color: var(--color-primary);
  font-weight: 600;
}

.logout-item:hover {
  background: rgba(212, 175, 55, 0.2);
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero Redesign ── */
.hero-section.hero-redesign {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  overflow: hidden;
  padding: 120px 20px 60px;
}
.hero-film-reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #11100d;
}
.hero-film-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-film-frame.is-active {
  opacity: 1;
}
.hero-film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-film-frame.is-active img {
  animation: filmPushIn 8s ease-out both;
}
.hero-film-reel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(7, 7, 7, 0.28), transparent 52%, rgba(7, 7, 7, 0.2));
}
@keyframes filmPushIn {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(10,5,5,0.2) 0%, rgba(10,5,5,0.75) 60%, rgba(5,2,2,0.95) 100%);
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(212, 175, 55,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(212, 175, 55,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.1) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 85%, rgba(212, 175, 55,0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,0.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 55%, rgba(212, 175, 55,0.2) 50%, transparent 50%);
  animation: particleDrift 20s linear infinite;
}
@keyframes particleDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

/* ── Spinning Logo ── */
.hero-logo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-glow {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55,0.35) 0%, transparent 70%);
  animation: logoGlowPulse 3s ease-in-out infinite;
  z-index: 0;
}
@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.hero-logo-spin {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}
@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Music Equalizer Ring ── */
.eq-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
}
.eq-bar {
  position: absolute;
  width: 4px;
  height: 14px;
  border-radius: 3px;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  transform: rotate(calc(var(--i) * 10deg)) translateY(-100px);
  animation: eqPulse 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.06s);
  opacity: 0.85;
}
/* Red bars (odd) */
.eq-bar:nth-child(odd) {
  background: linear-gradient(to top, #d4af37, #c0c0c0);
  box-shadow: 0 0 6px rgba(212, 175, 55,0.5);
}
/* White bars (even) */
.eq-bar:nth-child(even) {
  background: linear-gradient(to top, rgba(255,255,255,0.7), #ffffff);
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
@keyframes eqPulse {
  0% {
    height: 6px;
    opacity: 0.4;
  }
  100% {
    height: 22px;
    opacity: 1;
  }
}

/* ── Hero Content ── */
.hero-redesign .hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInDown 1s ease both;
}
.film-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.55);
  backdrop-filter: blur(12px);
}
.film-control-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-silver);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.film-control-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.08);
}
.film-caption {
  min-width: 150px;
  color: var(--color-silver);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.film-count {
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}
.world-gallery {
  position: relative;
  z-index: 1;
  padding: 5rem max(5vw, 1.25rem);
  background: linear-gradient(180deg, rgba(9, 9, 10, 0.92), rgba(9, 9, 10, 0.76));
}
.world-gallery-inner {
  width: min(1160px, 100%);
  margin-inline: auto;
}
.world-gallery-heading {
  margin-bottom: 2rem;
  text-align: center;
}
.world-gallery-heading p {
  margin-top: 0.5rem;
  color: var(--color-muted);
}
.world-gallery-title {
  color: var(--color-silver);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.world-gallery-title span {
  color: var(--color-primary);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.story-card {
  position: relative;
  min-width: 0;
}
.story-select {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(192, 192, 192, 0.22);
  border-radius: 14px;
  background: #131313;
  cursor: pointer;
  text-align: left;
}
.story-select img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.7s ease, opacity 0.5s ease;
}
.story-select:hover img,
.story-select[aria-pressed="true"] img {
  opacity: 1;
  transform: scale(1.045);
}
.story-select[aria-pressed="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.22);
}
.story-card-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f4f1e8;
  font-size: 0.95rem;
  font-weight: 600;
}
.music-player {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto minmax(110px, 190px);
  align-items: center;
  gap: 12px;
  width: min(355px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  background: rgba(12, 12, 13, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(16px);
}
.music-toggle {
  min-width: 108px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.music-toggle:hover {
  background: rgba(212, 175, 55, 0.22);
}
.music-volume {
  display: grid;
  gap: 4px;
}
.music-volume label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-silver);
  font-size: 0.72rem;
}
.music-volume output {
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.music-volume input {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
@media (max-width: 600px) {
  .film-controls {
    gap: 9px;
    margin-top: 22px;
  }
  .film-caption {
    min-width: 115px;
    font-size: 0.68rem;
  }
  .music-player {
    right: 12px;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-film-frame,
  .story-select img,
  .film-control-button {
    transition: none;
  }
  .hero-film-frame.is-active img {
    animation: none;
  }
}
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-primary);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: fadeIn 1.2s ease both 0.3s;
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease both 0.4s;
}
.highlight-red {
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55,0.6), 0 0 40px rgba(212, 175, 55,0.25);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeIn 1s ease both 0.6s;
}

/* ── Stats Cards ── */
.hero-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 45px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease both 0.8s;
}
.stat-card {
  background: rgba(15, 8, 8, 0.65);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}
.stat-icon { font-size: 1.15rem; }
.stat-text { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.stat-text b { color: #fff; font-weight: 700; }

/* ── Hero Buttons ── */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease both 1s;
}
.btn-play, .btn-discord-hero, .btn-trailer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.btn-play {
  background: linear-gradient(135deg, #d4af37, #b71c1c);
  color: #fff;
  border: none;
  box-shadow: 0 0 22px rgba(212, 175, 55,0.45);
}
.btn-play:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(212, 175, 55,0.65);
}
.btn-discord-hero {
  background: rgba(25,25,30,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.btn-discord-hero:hover {
  background: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 0 22px rgba(88,101,242,0.45);
  transform: translateY(-3px);
}
.btn-trailer {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-trailer:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
  margin-top: 50px;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.hero-scroll-hint a {
  color: var(--color-silver);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-decoration: none;
}
.hero-scroll-hint a:hover {
  color: var(--color-primary);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-logo-wrapper { width: 130px; height: 130px; }
  .hero-logo-spin { width: 110px; height: 110px; }
  .hero-stats { flex-direction: column; align-items: center; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-play, .btn-discord-hero, .btn-trailer { width: 100%; justify-content: center; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--color-primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.5);
  transform: scale(1.06);
}

/* ── Sections ── */
.section {
  padding: 4rem 2rem;
  background: transparent;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(212, 175, 55, 0.07);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* ── Rules ── */
.rules-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  text-align: initial;
}

.rules-container.is-soon {
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}

.rule-soon {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.35rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(32, 26, 18, 0.97), rgba(12, 10, 9, 0.97));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.rule-soon-note {
  color: #f3e2a4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-flip {
  height: 248px;
  perspective: 1100px;
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.rule-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rule-flip:hover .rule-flip-inner,
.rule-flip:focus-visible .rule-flip-inner,
.rule-flip.is-flipped .rule-flip-inner {
  transform: rotateY(180deg);
}

.rule-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.rule-flip-front {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(32, 26, 18, 0.97), rgba(12, 10, 9, 0.97));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.rule-flip-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  text-align: start;
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.14), rgba(14, 12, 10, 0.98));
  border-color: rgba(212, 175, 55, 0.4);
}

.rule-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12);
}

.rule-title {
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #fff;
}

.rule-punishment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #f3e2a4;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.rule-punish-label {
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rule-flip-hint {
  margin-top: 0.15rem;
  color: rgba(243, 226, 164, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-back-label {
  align-self: flex-start;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-desc {
  width: 100%;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .rules-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rules-container {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rule-flip-inner {
    transition: none;
  }
}

.lang-toggle {
  display: flex;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 4px;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  transition: 0.2s ease;
}

.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-lang.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ── Rule Categories ── */
.rules-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.14);
  padding: 0.7rem;
  border-radius: 24px;
}

.rule-cat-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.rule-cat-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
  color: var(--color-primary);
}

.rule-cat-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #fff;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ── Footer ── */
.footer {
  background: transparent;
  padding: 0;
  min-height: 0;
}

/* ── Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- Profile Dropdown -- */
.profile-dropdown-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.5);
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.profile-avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.dropdown-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background: rgba(25, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  width: 220px;
  padding: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.dropdown-menu.show {
  display: flex;
  animation: fadeInDown 0.2s ease;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 10px;
}

.dropdown-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
}

#dropdown-username {
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
}

#dropdown-discord-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.dropdown-item {
  padding: 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

.logout-item {
  color: var(--color-primary);
}

.logout-item:hover {
  background: rgba(255, 71, 87, 0.15);
  color: var(--color-primary);
}


/* ════════════════════════════════════════════════════════
   RESPONSIVE DESIGN — Full Breakpoint Coverage
   Covers: 2K/Large, 1400px, 1200px, 1024px, 900px,
           768px (tablet), 600px, 480px (phone), 360px
   ════════════════════════════════════════════════════════ */

/* ── 2K / Large Monitors (≥1800px) ── */
@media (min-width: 1800px) {
  .navbar {
    max-width: 1600px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
  }
  .hero-title { font-size: 4.8rem; }
  .hero-subtitle { font-size: 1.2rem; max-width: 800px; }
  .container { max-width: 1400px; }
  .support-container { max-width: 1500px; }
}

.dropdown-menu {
  max-height: 80vh !important;
  overflow-y: auto !important;
}

/* ── Hamburger Menu Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
  z-index: 1100;
}
.hamburger:hover {
  background: rgba(212, 175, 55, 0.25);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 1200px — tighten navbar ── */
@media (max-width: 1200px) {
  .navbar { padding: 12px 22px; width: 94%; }
  .logo-text { font-size: 1.15rem; }
  .nav-links a { padding: 8px 12px; font-size: 0.9rem; }
}

/* ── 1024px — compact layout ── */
@media (max-width: 1024px) {
  .navbar { padding: 10px 18px; width: 96%; }
  .logo-text { font-size: 1rem; }
  .nav-links { gap: 6px; }
  .nav-links a { padding: 8px 10px; font-size: 0.85rem; }
  .hero-title { font-size: 3rem; }
  .hero-logo-wrapper { width: 170px; height: 170px; }
  .hero-logo-spin { width: 110px; height: 110px; }
  /* Support page */
  .support-container {
    margin: 90px auto 30px;
    gap: 1rem;
  }
  .sidebar { width: 270px; }
}

/* ── 900px — switch to hamburger ── */
@media (max-width: 900px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    width: 96%;
    flex-wrap: nowrap;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(10, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 12px;
    gap: 4px;
    z-index: 1050;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.25s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    text-align: left;
  }

  /* Shrink logo text on mobile nav */
  .logo-text { font-size: 0.92rem; letter-spacing: 0; }

  /* Support page — stack sidebar below */
  .support-container {
    flex-direction: column;
    height: auto;
    min-height: unset;
    margin: 80px 1rem 2rem;
    padding: 0;
  }
  .sidebar {
    width: 100%;
    max-height: 260px;
  }
  .main-area { min-height: 400px; }
}

/* ── 768px — Tablet ── */
@media (max-width: 768px) {
  /* Hero */
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-logo-wrapper { width: 140px; height: 140px; }
  .hero-logo-spin { width: 95px; height: 95px; }
  .hero-stats { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
  .btn-play, .btn-discord-hero, .btn-trailer { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.72rem; }
  .hero-section.hero-redesign { padding: 100px 16px 50px; }

  /* General */
  h2 { font-size: 1.75rem; }
  .section { padding: 3rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }

  /* Login prompt */
  .login-prompt {
    margin: 100px 1rem 2rem;
    padding: 2.5rem 1.5rem;
  }

  /* Nav auth btn */
  .btn-signin { padding: 8px 16px; font-size: 0.85rem; }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .navbar { top: 8px; padding: 10px 14px; border-radius: 16px; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text { display: none; }  /* hide text, show only logo icon */

  .hero-title { font-size: 1.9rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-logo-wrapper { width: 120px; height: 120px; }
  .hero-logo-spin { width: 82px; height: 82px; }
  .eq-bar { transform: rotate(calc(var(--i) * 10deg)) translateY(-58px); }

  .stat-card { padding: 8px 14px; }
  .stat-text { font-size: 0.8rem; }

  /* Support chat area */
  .chat-header h2 { font-size: 1.1rem; }
  .create-form-container { padding: 1.5rem 1rem; }
  .sidebar-header { padding: 1rem 1.25rem; }
  .sidebar-header h3 { font-size: 0.95rem; }

  .support-container { margin: 70px 0.75rem 1.5rem; gap: 0.75rem; }
  .sidebar { max-height: 220px; }

  /* Login prompt */
  .login-prompt { padding: 2rem 1rem; margin: 90px 0.75rem 2rem; }
  .login-prompt h2 { font-size: 1.3rem; }
  .login-prompt p { font-size: 0.85rem; }

  /* Hamburger dropdown closer to edge */
  .nav-links { left: -5px; right: -5px; }
}

/* ── 480px — Small phones ── */
@media (max-width: 480px) {
  .navbar { width: 97%; top: 6px; padding: 8px 12px; }

  .hero-title { font-size: 1.65rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-logo-wrapper { width: 100px; height: 100px; }
  .hero-logo-spin { width: 68px; height: 68px; }
  .eq-bar { transform: rotate(calc(var(--i) * 10deg)) translateY(-48px); }
  .hero-badge { padding: 6px 14px; font-size: 0.68rem; }
  .hero-scroll-hint { margin-top: 28px; }

  .btn-play, .btn-discord-hero, .btn-trailer { padding: 12px 20px; font-size: 0.88rem; }

  /* Support sidebar stacked */
  .sidebar { max-height: 200px; border-radius: 1rem; }
  .main-area { border-radius: 1rem; min-height: 350px; }
  .chat-input-area { padding: 0.75rem 1rem; gap: 0.5rem; }
  .btn-send { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .message { max-width: 92%; }

  /* Dropdown menu clamps to screen width */
  .dropdown-menu, #profile-dropdown-menu {
    width: calc(100vw - 40px) !important;
    right: 0 !important;
    left: auto !important;
  }

  h2 { font-size: 1.5rem; }
  .section { padding: 2rem 0.75rem; }
}

/* ── 360px — Very small phones ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.45rem; }
  .hero-logo-wrapper { width: 85px; height: 85px; }
  .hero-logo-spin { width: 58px; height: 58px; }
  .navbar { width: 98%; padding: 7px 10px; }
  .support-container { margin: 65px 0.5rem 1rem; }
  .sidebar { max-height: 180px; }
  .create-form-container { padding: 1rem 0.75rem; }
  h2 { font-size: 1.3rem; }
}

/* ── Prevent horizontal overflow globally ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}