/* ==========================================================================
   LION CRUSADER MMORPG — OFFICIAL CLOUDFLARE PORTAL (lioncrusadermmo.com)
   Dark Gothic & Medieval Fantasy Theme
   ========================================================================== */

:root {
  --bg-dark: #080a0f;
  --bg-card: rgba(18, 22, 31, 0.75);
  --bg-card-hover: rgba(26, 32, 45, 0.9);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-glow: rgba(0, 210, 255, 0.35);
  --text-main: #e6ebf2;
  --text-muted: #8b9bb4;
  --gold-primary: #d4af37;
  --gold-bright: #ffd700;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --cyan-arcane: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --green-online: #2ecc71;
  --red-danger: #e74c3c;
  --font-serif: 'Cinzel', serif;
  --font-display: 'Cinzel Decorative', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #fff;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.sub-heading {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-crest {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.realm-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-online);
  box-shadow: 0 0 8px var(--green-online);
}

.realm-ping {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #080a0f;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700, #c49615);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-hero {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.btn-hero .btn-icon {
  font-size: 1.5rem;
}

.btn-hero .btn-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.btn-hero .btn-text small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 400;
}

.btn-block {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0, 229, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

.title-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-server-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.25rem 2rem;
  background: rgba(18, 22, 31, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  max-width: 840px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.server-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.server-item .item-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

.server-item .item-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-bright);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

/* Realm Status Card */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 20px;
  color: var(--green-online);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-online);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.telemetry-box {
  background: rgba(8, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.telemetry-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.telemetry-stat {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.telemetry-sub {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.status-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.status-link {
  color: var(--cyan-arcane);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* World Tabs */
.world-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.world-tab-btn {
  padding: 0.75rem 1.4rem;
  background: rgba(18, 22, 31, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.world-tab-btn.active, .world-tab-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(0, 229, 255, 0.1));
  border-color: var(--gold-bright);
  color: #fff;
}

.world-tab-content {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.world-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.tab-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.tab-text h3 {
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.tab-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
}

.flora-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flora-pill {
  padding: 0.35rem 0.75rem;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 14px;
  font-size: 0.8rem;
  color: #a3e9b8;
}

.flora-pill i {
  color: #68b983;
}

.media-box {
  border-radius: var(--radius-md);
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.landscape-box { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent), radial-gradient(circle at 50% 30%, #1e3a5f, #0c1524); }
.flora-box { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent), radial-gradient(circle at 50% 30%, #184224, #081a0e); }
.burrow-box { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent), radial-gradient(circle at 50% 30%, #142828, #050a0a); }
.city-box { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent), radial-gradient(circle at 50% 30%, #4a3418, #1a1208); }

.media-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.media-caption {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

/* Classes Section */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.class-header {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.class-header.templar { border-top: 3px solid #f1c40f; }
.class-header.knight { border-top: 3px solid #e74c3c; }
.class-header.mystic { border-top: 3px solid #00e5ff; }
.class-header.ranger { border-top: 3px solid #2ecc71; }

.class-role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

.class-header h3 {
  font-size: 1.35rem;
  color: #fff;
}

.class-body {
  padding: 1.5rem;
}

.class-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.stat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.stat-name {
  color: var(--text-muted);
  width: 80px;
}

.bar-fill {
  height: 6px;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-arcane));
  border-radius: 3px;
  flex: 1;
}

/* Patch Notes */
.patch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.patch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag-live {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: var(--green-online);
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.patch-version-tag h3 {
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.patch-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.patch-group {
  margin-bottom: 1.75rem;
}

.patch-group h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.patch-group ul {
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.patch-group li {
  margin-bottom: 0.5rem;
}

.patch-group li strong {
  color: var(--text-main);
}

/* Play Now Section */
.play-banner {
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.12), transparent 70%), var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.play-banner h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.play-banner p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.play-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.play-card {
  background: rgba(8, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.play-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.play-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.play-card p {
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #05070a;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.brand-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--gold-primary);
  text-decoration: none;
}

.cloudflare-badge {
  color: var(--cyan-arcane);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
}

.modal-card {
  background: #10141d;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-crest {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--gold-primary);
  color: #080a0f;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.auth-feedback {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: none;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}

.auth-feedback.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.auth-feedback.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.download-specs {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.spec-row span { color: var(--text-muted); }
.spec-row strong { color: var(--text-main); }

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Game WebGL Modal */
.game-modal .game-container {
  width: 95%;
  max-width: 1080px;
  height: 80vh;
  background: #000;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #10141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.game-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
}

.game-launcher-screen {
  text-align: center;
  padding: 2rem;
}

.game-launcher-screen h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.game-launcher-screen p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   TRAILER PLAYER SECTION
   ========================================================================== */
.trailer-section {
  padding: 5rem 0;
  background: radial-gradient(circle at center, rgba(16, 21, 30, 0.7) 0%, rgba(8, 10, 15, 0.95) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.trailer-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
  border: 1px solid var(--border-gold);
  background: #000;
}

.trailer-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#trailer-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.trailer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.trailer-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trailer-tag {
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  font-weight: 700;
}

.trailer-center-caption {
  text-align: center;
  margin: auto 0;
}

.trailer-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.7);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  transition: opacity 0.4s ease;
}

.trailer-subtitle {
  font-size: 1.1rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.trailer-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trailer-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}

.trailer-btn:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.1);
}

.trailer-timeline {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.trailer-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-arcane));
  transition: width 0.15s linear;
}

/* ==========================================================================
   SCREENSHOTS GALLERY SECTION
   ========================================================================== */
.screenshots-section {
  padding: 5rem 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
}

.screenshot-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  position: relative;
}

.screenshot-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-thumb-wrap img {
  transform: scale(1.05);
}

.screenshot-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.screenshot-card:hover .screenshot-zoom-hint {
  opacity: 1;
}

.screenshot-info {
  padding: 1rem;
}

.screenshot-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.screenshot-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
}

.lightbox-caption h3 {
  color: var(--gold-bright);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   CREATORS & STUDIO SECTION (A-Mad Studio / Othman Creativity / Unity / Cloudflare)
   ========================================================================== */
.creators-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 26, 38, 0.6) 0%, rgba(8, 10, 15, 0.95) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.creator-card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.2);
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.creator-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.creator-meta h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.creator-role {
  color: var(--gold-primary);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

.creator-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tech-stack-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-box {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.tech-box:hover {
  border-color: var(--cyan-arcane);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
}

.tech-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tech-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.tech-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Encryption & Player Only Badges */
.auth-locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: 20px;
  color: #e74c3c;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.auth-locked-pill.unlocked {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.35);
  color: #2ecc71;
}

.encryption-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  color: var(--cyan-arcane);
  font-size: 0.72rem;
  font-family: monospace;
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .tab-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .creators-grid { grid-template-columns: 1fr; }
  .tech-stack-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tech-stack-row { grid-template-columns: 1fr; }
  .trailer-title { font-size: 1.5rem; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0d1117;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
  }
  .mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
  }
  .hero-title { font-size: 2rem; }
  .hero-server-bar { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   TESTING SIGN — shown on every page while the realm is in open testing
   ========================================================================== */
.testing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.18em 0.6em;
  margin-left: 0.6rem;
  border: 1px solid #f39c12;
  border-radius: 4px;
  background: rgba(243, 156, 18, 0.16);
  color: #f5b041;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: testing-pulse 2.4s ease-in-out infinite;
}
.testing-badge::before { content: "\26A0"; }
@keyframes testing-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.0); }
  50% { box-shadow: 0 0 10px 1px rgba(243, 156, 18, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .testing-badge { animation: none; } }