/* AncientX play-site — matches the live rs.tvlse-studios.com dark + red/gold theme */

:root {
  --bg:          #08090c;
  --bg-elev-1:   #101116;
  --bg-elev-2:   #14151c;
  --border:      rgba(255, 255, 255, 0.06);
  --border-2:    rgba(255, 255, 255, 0.08);
  --text:        #d4d6dc;
  --text-dim:    #9599a8;
  --primary:     #ff4655;
  --primary-2:   #ff2d3d;
  --gold:        #ffb238;
  --green:       #4ade80;
  --shadow-red:  0 8px 32px rgba(255, 70, 85, 0.25);
  --shadow-gold: 0 8px 32px rgba(255, 178, 56, 0.18);
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:'Cinzel', Georgia, serif;
  --maxw:        1200px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #08090c;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-red);
}
.logo-text { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { color: var(--text-dim); transition: color 0.15s; }
.nav a:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 80px 24px 96px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255, 70, 85, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 48px 20px 64px; }
  .hero-art { order: -1; }
}

.hero-content { position: relative; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  animation: pulse 1.8s ease-in-out infinite;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-dot.offline { background: var(--primary); box-shadow: 0 0 12px var(--primary); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ff4655, #ffb238);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 36em;
  margin-top: 8px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(255, 70, 85, 0.4); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* --- Hero art (login screen preview) --- */
.hero-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  aspect-ratio: 764 / 502;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

/* --- Sections --- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.15s, background 0.15s;
}
.feature-card:hover {
  border-color: rgba(255, 70, 85, 0.4);
  background: var(--bg-elev-2);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.12), rgba(255, 178, 56, 0.08));
  border: 1px solid rgba(255, 70, 85, 0.18);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- News (forum) cards --- */
.news-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.news-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.news-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.news-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
}
.news-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-elev-1);
  border: 1px dashed var(--border-2);
  border-radius: 14px;
}

/* --- Highscores (front page) --- */
.hs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hs-tab {
  background: var(--bg-elev-1);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hs-tab:hover { color: var(--text); border-color: var(--border-2); }
.hs-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 178, 56, 0.08);
}
.hs-table {
  grid-column: 1 / -1;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.hs-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 100px 120px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  transition: background 0.15s;
}
.hs-row:first-child { border-top: 0; }
.hs-row:hover       { background: rgba(255, 178, 56, 0.04); }
.hs-row.hs-head {
  background: var(--bg-elev-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
}
.hs-row.hs-head:hover { background: var(--bg-elev-2); }
.hs-rank {
  color: var(--gold);
  font-weight: 800;
  font-family: 'Cinzel', serif;
}
.hs-row.hs-head .hs-rank { color: var(--text-dim); font-family: inherit; }
.hs-name {
  color: var(--text-bright);
  font-weight: 600;
}
.hs-stat-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hs-row.hs-head .hs-stat-cell { color: var(--text-dim); }

@media (max-width: 720px) {
  .hs-row { grid-template-columns: 44px 1fr 80px; gap: 8px; padding: 10px 14px; }
  .hs-row .hs-stat-cell:nth-child(4),
  .hs-row .hs-stat-cell:nth-child(5),
  .hs-row.hs-head .hs-stat-cell:nth-child(4),
  .hs-row.hs-head .hs-stat-cell:nth-child(5) { display: none; }
}

/* --- CTA band --- */
.cta-band {
  margin: 60px 24px 100px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 64px 32px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(255, 70, 85, 0.10), transparent 60%),
    var(--bg-elev-1);
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.12), rgba(255, 178, 56, 0.08));
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}
.cta-band p {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.cta-band .btn-row { justify-content: center; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.footer-links a { color: var(--text-dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .nav { display: none; }
  .header-inner { padding: 12px 18px; }
  .section { padding: 56px 20px; }
  .cta-band { margin: 40px 16px 64px; padding: 48px 24px; }
}
