/* ═══════════════════════════════════════════════════════════════════════════════
   LUXOR RSPS — Site-Wide Stylesheet
   Egyptian God Theme | Dark Navy + Gold | RSPS Website
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts Import ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────────────── */
:root {
  /* Gold Palette */
  --gold-primary:    #C9A84C;
  --gold-bright:     #F0C040;
  --gold-dim:        #8A6B2A;
  --gold-shimmer:    #FFE680;
  --gold-dark:       #5A4010;

  /* Navy / Dark Palette */
  --navy-deepest:    #060610;
  --navy-dark:       #0A0A1A;
  --navy-mid:        #12122A;
  --navy-card:       #1A1A35;
  --navy-elevated:   #1E1E3A;
  --navy-border:     #252545;

  /* Amber Accents */
  --amber-primary:   #E87A00;
  --amber-light:     #FFAB40;
  --amber-dim:       #A05500;
  --hiero-orange:    #CF6A1A;

  /* Text */
  --text-primary:    #EED98B;
  --text-secondary:  #A89060;
  --text-muted:      #6A5840;
  --text-white:      #F5F0E8;
  --text-dim:        #443820;

  /* Borders */
  --border-gold:         rgba(201, 168, 76, 0.35);
  --border-gold-bright:  rgba(240, 192, 64, 0.75);
  --border-subtle:       rgba(201, 168, 76, 0.15);

  /* Backgrounds */
  --bg-card:         rgba(20, 18, 40, 0.88);
  --bg-card-hover:   rgba(26, 24, 50, 0.94);
  --bg-papyrus:      rgba(28, 22, 8, 0.82);
  --bg-overlay:      rgba(6, 6, 16, 0.75);

  /* Typography */
  --font-heading:    'Cinzel', 'Palatino Linotype', 'Times New Roman', serif;
  --font-decorative: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body:       'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing Scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  80px;
  --sp-10: 96px;

  /* Layout */
  --container:      1240px;
  --nav-height:     70px;
  --radius-sm:      3px;
  --radius-md:      6px;
  --radius-lg:      10px;
  --radius-xl:      16px;

  /* Shadows & Glows */
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.7);
  --shadow-gold:     0 0 20px rgba(201,168,76,0.3), 0 0 40px rgba(201,168,76,0.1);
  --glow-gold-sm:    0 0 8px rgba(240,192,64,0.5);
  --glow-gold-md:    0 0 16px rgba(240,192,64,0.6), 0 0 32px rgba(201,168,76,0.3);
  --glow-gold-lg:    0 0 24px rgba(240,192,64,0.7), 0 0 60px rgba(201,168,76,0.4);

  /* Transitions */
  --t-fast:  120ms ease;
  --t-base:  220ms ease;
  --t-slow:  380ms ease;
  --t-slide: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Layers */
  --z-bg:      -10;
  --z-base:      0;
  --z-card:     10;
  --z-god:      50;
  --z-nav:     100;
  --z-modal:   200;
  --z-tooltip: 300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--navy-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--gold-bright); }

ul, ol { list-style: none; }

img, svg { display: block; max-width: 100%; }

button { cursor: pointer; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Starfield Canvas ────────────────────────────────────────────────────────── */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-bg);
  pointer-events: none;
}

/* ── Layout Utilities ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.page-main {
  min-height: calc(100vh - var(--nav-height) - 160px);
  padding-bottom: var(--sp-9);
}

.page-hero {
  padding: var(--sp-9) 0 var(--sp-7);
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  display: block;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: var(--sp-5) auto 0;
}

.section {
  padding: var(--sp-7) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: var(--sp-6);
  position: relative;
}

.section-title::before,
.section-title::after {
  content: '𓂀';
  margin: 0 var(--sp-4);
  opacity: 0.5;
  font-size: 0.75em;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

/* ── Typography ──────────────────────────────────────────────────────────────── */
.heading-xl {
  font-family: var(--font-decorative);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.1;
  color: var(--gold-bright);
  text-shadow: var(--glow-gold-md);
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-primary);
}

.subheading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Gold Shimmer Text Animation */
@keyframes goldShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold-dim)     0%,
    var(--gold-primary) 20%,
    var(--gold-bright)  40%,
    var(--gold-shimmer) 50%,
    var(--gold-bright)  60%,
    var(--gold-primary) 80%,
    var(--gold-dim)     100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: linear-gradient(
    180deg,
    rgba(6, 6, 16, 0.98) 0%,
    rgba(10, 10, 26, 0.95) 100%
  );
  border-bottom: 1px solid var(--border-gold);
  z-index: var(--z-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  gap: var(--sp-4);
}

.nav-logo {
  font-family: var(--font-decorative);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-shadow: var(--glow-gold-sm);
  flex-shrink: 0;
  transition: text-shadow var(--t-base);
}
.nav-logo:hover {
  color: var(--gold-bright);
  text-shadow: var(--glow-gold-md);
}
.nav-logo::before { content: '𓁢 '; font-size: 0.85em; opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 6px var(--sp-3);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  background: rgba(201,168,76,0.06);
}
.nav-links a.nav-discord {
  color: var(--amber-light);
}
.nav-links a.nav-discord:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--amber-light);
}

.nav-user-area {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.nav-username {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ── Role Badge ──────────────────────────────────────────────────────────────── */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.04); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-primary) 60%, var(--gold-bright) 100%);
  color: var(--navy-dark);
  border-color: var(--gold-bright);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 60%, var(--gold-shimmer) 100%);
  box-shadow: var(--glow-gold-md);
  transform: translateY(-1px);
  color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.12);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-gold);
  font-size: 0.75rem;
  padding: 6px 14px;
}
.btn-outline:hover {
  color: var(--gold-bright);
  border-color: var(--gold-primary);
  background: rgba(201,168,76,0.08);
}

.btn-sm { padding: 6px 14px; font-size: 0.75rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-disabled,
.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-danger {
  background: rgba(180, 40, 40, 0.2);
  color: #FF8080;
  border-color: rgba(180, 40, 40, 0.5);
}
.btn-danger:hover {
  background: rgba(180, 40, 40, 0.35);
  border-color: #FF6060;
}

.btn-success {
  background: rgba(40, 140, 60, 0.2);
  color: #80FF90;
  border-color: rgba(40, 140, 60, 0.5);
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  transition: all var(--t-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,192,64,0.5);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-2px);
}

/* Papyrus Card — ornate variant */
.papyrus-card {
  background: var(--bg-papyrus);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md), inset 0 0 60px rgba(201,168,76,0.02);
  position: relative;
}

.papyrus-card::before {
  content: '𓂀  𓃀  𓆣  𓋴  𓎛  𓁢  𓆑  𓃂';
  display: block;
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.4em;
  text-align: center;
  margin-bottom: var(--sp-3);
  opacity: 0.45;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--sp-2);
}

/* Egyptian Decorative Divider */
.egyptian-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.egyptian-divider::before,
.egyptian-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold-bright), transparent);
}
.egyptian-divider-icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Corner ornament */
.card-ornament {
  position: relative;
}
.card-ornament::after {
  content: '𓂀';
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  color: var(--gold-dim);
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ── Tag / Badge Chips ───────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.tag-announcement { background: rgba(201,168,76,0.18); color: var(--gold-bright); border: 1px solid rgba(201,168,76,0.35); }
.tag-update       { background: rgba(76,175,80,0.18);  color: #80E090;             border: 1px solid rgba(76,175,80,0.35); }
.tag-event        { background: rgba(232,122,0,0.18);  color: var(--amber-light);  border: 1px solid rgba(232,122,0,0.35); }
.tag-news         { background: rgba(100,130,200,0.18); color: #9AB0F0;            border: 1px solid rgba(100,130,200,0.35); }

/* ── News Cards ──────────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright), var(--gold-dim));
  opacity: 0;
  transition: opacity var(--t-base);
}

.news-card:hover::before { opacity: 1; }
.news-card:hover {
  border-color: rgba(240,192,64,0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.news-card-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: all var(--t-fast);
}
.news-card-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ── Server Stats Bar ────────────────────────────────────────────────────────── */
.stats-bar {
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  position: relative;
  flex: 1;
  min-width: 130px;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-gold);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: var(--glow-gold-sm);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Online indicator pulse */
@keyframes pulse-online {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #4CAF50; }
  50%       { opacity: 0.6; box-shadow: 0 0 8px #4CAF50; }
}

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse-online 2s ease infinite;
}

/* ── Hero Section ────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-10) 0 var(--sp-9);
  text-align: center;
  position: relative;
}

.hero-logo-glyph {
  font-size: 2.5rem;
  color: var(--gold-dim);
  opacity: 0.6;
  letter-spacing: 0.5em;
  margin-bottom: var(--sp-4);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}

/* ── Features Section ────────────────────────────────────────────────────────── */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-3);
  display: block;
  text-align: center;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

.feature-card {
  text-align: center;
}

.feature-card .heading-md {
  margin-bottom: var(--sp-2);
  text-align: center;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── CTA Banner ──────────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(
    135deg,
    rgba(201,168,76,0.06) 0%,
    rgba(20,18,40,0.95) 50%,
    rgba(201,168,76,0.06) 100%
  );
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '𓂀  𓃀  𓆣  𓋴  𓎛  𓁢  𓆑  𓃂  𓂀  𓃀  𓆣  𓋴  𓎛  𓁢  𓆑  𓃂';
  position: absolute;
  top: var(--sp-2);
  left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  opacity: 0.3;
}

.cta-banner::after {
  content: '𓂀  𓃀  𓆣  𓋴  𓎛  𓁢  𓆑  𓃂  𓂀  𓃀  𓆣  𓋴  𓎛  𓁢  𓆑  𓃂';
  position: absolute;
  bottom: var(--sp-2);
  left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  opacity: 0.3;
}

/* ── Download Page ───────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: all var(--t-base);
  position: relative;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240,192,64,0.5);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-primary));
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  box-shadow: var(--glow-gold-sm);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Requirements List */
.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(201,168,76,0.04);
  border-left: 2px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.requirements-list li::before {
  content: '𓆣';
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Download CTA Box */
.download-cta-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(20,18,40,0.95));
  border: 2px solid var(--border-gold-bright);
  border-radius: var(--radius-xl);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-gold);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-2);
}

.faq-question {
  width: 100%;
  background: rgba(201,168,76,0.05);
  border: none;
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.faq-question:hover { background: rgba(201,168,76,0.10); }

.faq-question-icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.faq-item.open .faq-question-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(10,10,26,0.6);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
}
.faq-item.open .faq-answer { display: block; }

/* ── Store Page ──────────────────────────────────────────────────────────────── */
.coming-soon-banner {
  background: linear-gradient(135deg, rgba(232,122,0,0.1), rgba(20,18,40,0.95), rgba(201,168,76,0.08));
  border: 2px solid rgba(232,122,0,0.6);
  border-radius: var(--radius-xl);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-7);
}

.wax-seal {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.5));
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-5);
}

.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-card.featured {
  border-width: 2px;
  box-shadow: 0 0 30px rgba(240,192,64,0.2);
}

.store-card-ribbon {
  position: absolute;
  top: 12px;
  right: -22px;
  background: var(--gold-primary);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 28px;
  transform: rotate(45deg);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.store-card-header {
  text-align: center;
}

.store-card-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: var(--sp-2);
  text-align: center;
}

.store-card-tier {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.store-card-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.store-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.store-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 3px 0;
}

.store-benefits li::before {
  content: '𓆣';
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.8rem;
}

/* ── Vote Page ───────────────────────────────────────────────────────────────── */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.vote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--t-base);
}
.vote-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240,192,64,0.5);
  box-shadow: var(--shadow-lg);
}

.vote-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.vote-site-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.5));
}

.vote-site-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.vote-site-cooldown {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.vote-reward {
  background: rgba(201,168,76,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.vote-reward::before { content: '✦'; }

/* Vote Rewards Table */
.vote-rewards-table {
  width: 100%;
  border-collapse: collapse;
}
.vote-rewards-table th {
  background: rgba(201,168,76,0.12);
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-gold);
}
.vote-rewards-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.vote-rewards-table tr:hover td {
  background: rgba(201,168,76,0.03);
  color: var(--text-primary);
}
.vote-points-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-bright) !important;
}

/* ── Highscores Page ─────────────────────────────────────────────────────────── */
.hs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}

.skill-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-gold);
}

.skill-tab-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-transform: uppercase;
}
.skill-tab-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(201,168,76,0.06);
}
.skill-tab-btn.active {
  background: rgba(201,168,76,0.18);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: var(--glow-gold-sm);
}

.hs-tab-panel { display: none; }
.hs-tab-panel.active { display: block; }

.hs-table {
  width: 100%;
  border-collapse: collapse;
}

.hs-table th {
  background: rgba(201,168,76,0.1);
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-gold);
}

.hs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--t-fast);
}

.hs-table tbody tr:hover td {
  background: rgba(201,168,76,0.04);
  color: var(--text-primary);
}

.hs-table tbody tr:nth-child(1) td { color: var(--gold-bright); }
.hs-table tbody tr:nth-child(2) td { color: #D4D4D4; }
.hs-table tbody tr:nth-child(3) td { color: var(--amber-light); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.rank-1 { background: var(--gold-bright); color: var(--navy-dark); box-shadow: var(--glow-gold-sm); }
.rank-2 { background: #B8B8B8; color: #1A1A1A; }
.rank-3 { background: #C87A32; color: #1A1A1A; }
.rank-other { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.hs-player-name {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.hs-xp {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Admin Panel ─────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-4));
}

.admin-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px var(--sp-3);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-fast);
  margin-bottom: 2px;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-nav-item:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-bright);
}
.admin-nav-item.active {
  background: rgba(201,168,76,0.18);
  color: var(--gold-bright);
  border-left: 2px solid var(--gold-primary);
}
.admin-nav-item.locked {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-panel-icon { font-size: 0.9rem; flex-shrink: 0; }

.admin-main {
  min-height: 500px;
}

.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-gold);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: rgba(201,168,76,0.1);
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-gold);
}
.admin-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.admin-table tr:hover td {
  background: rgba(201,168,76,0.03);
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.status-active   { background: rgba(76,175,80,0.2);  color: #80E090; border: 1px solid rgba(76,175,80,0.35); }
.status-offline  { background: rgba(100,100,120,0.2); color: #8A8AAA; border: 1px solid rgba(100,100,120,0.3); }
.status-banned   { background: rgba(200,50,50,0.2);   color: #FF8080; border: 1px solid rgba(200,50,50,0.35); }
.status-draft     { background: rgba(100,130,200,0.2); color: #9AB0F0; border: 1px solid rgba(100,130,200,0.3); }
.status-published { background: rgba(76,175,80,0.2);  color: #80E090; border: 1px solid rgba(76,175,80,0.35); }
.status-scheduled { background: rgba(232,122,0,0.2);  color: #FFAB60; border: 1px solid rgba(232,122,0,0.35); }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(100,100,120,0.4);
  border-radius: 22px;
  transition: background var(--t-base);
  border: 1px solid rgba(100,100,120,0.5);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #8A8AAA;
  border-radius: 50%;
  transition: all var(--t-base);
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(76,175,80,0.3);
  border-color: rgba(76,175,80,0.5);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76,175,80,0.6);
}

/* Access Denied Card */
.access-denied {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  background: rgba(180,40,40,0.06);
  border: 1px solid rgba(180,40,40,0.25);
  border-radius: var(--radius-lg);
}
.access-denied-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 0 8px rgba(180,40,40,0.4));
}

/* Admin Login Form */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-xl);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  text-align: center;
}
.admin-login-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: var(--sp-4);
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.5));
}

/* ── Form Styles ─────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  text-align: left;
  margin-bottom: var(--sp-4);
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px var(--sp-3);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all var(--t-base);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-input::placeholder { color: var(--text-muted); }

.form-hint {
  background: rgba(201,168,76,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-4);
  text-align: left;
}
.form-hint code {
  font-family: 'Courier New', monospace;
  color: var(--gold-dim);
  background: rgba(0,0,0,0.3);
  padding: 1px 5px;
  border-radius: 3px;
}

.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: var(--sp-4);
}
.alert-error {
  background: rgba(180,40,40,0.15);
  border: 1px solid rgba(180,40,40,0.4);
  color: #FF9090;
}
.alert-success {
  background: rgba(40,140,60,0.15);
  border: 1px solid rgba(40,140,60,0.4);
  color: #80FF90;
}

/* ── Login Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,6,16,0.85);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.modal-overlay.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--navy-card);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--t-fast);
  line-height: 1;
}
.modal-close:hover { color: var(--gold-bright); }

/* ── God Portrait — 3D Pharaoh (mouse-tracking) ──────────────────────────────── */
#god-portrait {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#pharaoh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%, black 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 28%, black 100%);
}

@media (max-width: 1200px) { #god-portrait { width: 320px; } }
@media (max-width: 900px)  { #god-portrait { width: 220px; opacity: 0.6; } }
@media (max-width: 600px)  { #god-portrait { display: none; } }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(6,6,16,0.9));
  border-top: 1px solid var(--border-gold);
  padding: var(--sp-7) 0 var(--sp-4);
  margin-top: var(--sp-9);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.footer-logo {
  font-family: var(--font-decorative);
  font-size: 1.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--sp-2);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--sp-3);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gold-primary); }

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.footer-glyph {
  font-size: 1rem !important;
  letter-spacing: 0.4em;
  color: var(--gold-dim) !important;
  opacity: 0.5;
  margin-top: var(--sp-2);
}

.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}

.footer-bar span {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ── Utility Classes ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold-bright); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-secondary); }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.w-full { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Page-specific responsive grids ─────────────────────────────────────────── */
.vote-rewards-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
}
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.store-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

/* ── Hamburger / Mobile Nav ──────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu */
.mobile-menu {
  display: none;
  background: rgba(10, 10, 26, 0.98);
  border-top: 1px solid var(--border-gold);
  padding: var(--sp-3) 0;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-link {
  display: block;
  width: 100%;
  padding: var(--sp-3) var(--sp-5);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--t-base), background var(--t-base);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.08);
}
.mobile-login-btn {
  color: var(--gold-primary);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

/* ── 1200px — shrink portrait ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  #god-portrait { width: 340px; }
}

/* ── 1024px — tablet ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #god-portrait { width: 260px; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
  }
  .admin-sidebar-title { width: 100%; }
  .admin-nav-item { width: auto; flex: none; }

  /* Highscores two-col reward layout */
  .vote-rewards-layout { grid-template-columns: 1fr; }
}

/* ── 768px — mobile nav kicks in ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links    { display: none; }     /* hide desktop links */
  .nav-user-area { display: none; }   /* hide desktop user area */
  .nav-hamburger { display: flex; }   /* show hamburger */
  .mobile-menu.open { display: block; }

  /* Portrait — small, bottom-right, semi-transparent */
  #god-portrait {
    width: 180px;
    bottom: 0;
    top: auto;
    height: 55vw;
    max-height: 320px;
    opacity: 0.55;
  }
  #pharaoh-canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 35%, black 100%);
  }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero-cta { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Stats bar */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  /* Section spacing */
  .section { padding: var(--sp-6) 0; }
  .page-hero { padding: var(--sp-7) 0 var(--sp-5); }

  /* Cards */
  .news-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }

  /* Vote page */
  .vote-grid { grid-template-columns: 1fr; }
  .vote-rewards-layout { grid-template-columns: 1fr; }

  /* Download page requirements */
  .requirements-grid { grid-template-columns: 1fr; }
  /* Store info */
  .store-info-grid { grid-template-columns: 1fr; }

  /* Highscores */
  .hs-container { padding: var(--sp-3); }
  .skill-tab-nav { gap: var(--sp-1); }
  .skill-tab-btn { font-size: 0.7rem; padding: 5px 8px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { text-align: center; }
  .footer-links { align-items: center; }

  /* CTA banner */
  .cta-banner { padding: var(--sp-6) var(--sp-4); }
}

/* ── 480px — small phones ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-height: 60px; }

  /* Portrait — tiny corner piece */
  #god-portrait {
    width: 130px;
    height: 42vw;
    max-height: 220px;
    opacity: 0.45;
  }

  /* Stats — all 4 in a 2x2 grid */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  /* Steps, packages, vote all single col */
  .steps-grid    { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .vote-grid     { grid-template-columns: 1fr; }

  /* Hero text */
  .hero-logo-glyph { font-size: 0.95rem; letter-spacing: 0.15em; }
  .hero-subtitle    { font-size: 0.85rem; }

  /* Reduce section gap */
  .section { padding: var(--sp-5) 0; }

  /* Papyrus cards padding */
  .papyrus-card { padding: var(--sp-4); }
  .card         { padding: var(--sp-4); }

  /* Highscores table font */
  .hs-table { font-size: 0.8rem; }
  .hs-table th, .hs-table td { padding: var(--sp-2) var(--sp-2); }

  /* Store card padding */
  .store-card { padding: var(--sp-4); }

  /* Admin sidebar pills */
  .admin-nav-item { font-size: 0.75rem; padding: var(--sp-1) var(--sp-2); }

  /* Buttons full-width in CTA areas */
  .cta-banner .flex-center { flex-direction: column; gap: var(--sp-3); }
  .cta-banner .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Scrollbar Styling ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* ── Selection ───────────────────────────────────────────────────────────────── */
::selection { background: rgba(201,168,76,0.3); color: var(--gold-bright); }
