/* Time Patrol - Design System */
@charset "UTF-8";

:root {
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1a;
  --bg-card: rgba(16, 16, 32, 0.85);
  --bg-card-hover: rgba(24, 24, 48, 0.95);
  --border: rgba(255, 107, 0, 0.2);
  --border-hover: rgba(255, 149, 0, 0.5);
  --text-primary: #f0f0f8;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --orange: #ff6b00;
  --orange-light: #ff9500;
  --orange-glow: rgba(255, 107, 0, 0.4);
  --blue: #00a8ff;
  --blue-glow: rgba(0, 168, 255, 0.3);
  --yellow: #ffcc00;
  --green: #00e676;
  --red: #ff3d57;
  --font-display: 'Orbitron', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--orange-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
  --topbar-height: 36px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary) !important;
  background-image: url('/images/bg-promo.jpg');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary) !important;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Dark overlay + subtle accent glow over promo background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 15, 0.82) 0%, rgba(6, 6, 15, 0.72) 45%, rgba(6, 6, 15, 0.9) 100%),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 0, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 168, 255, 0.06), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  position: relative;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a:hover {
  color: var(--orange-light);
}

.topbar-bgm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-bgm-toggle:hover,
.topbar-bgm-toggle.is-playing {
  color: var(--orange-light);
  border-color: rgba(255, 149, 0, 0.45);
  background: rgba(255, 107, 0, 0.16);
}

.topbar-bgm-toggle.is-playing i {
  animation: pulse 1.6s ease-in-out infinite;
}

.topbar-bgm-toggle:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 2px;
}

.server-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navigation */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-height);
  flex-wrap: nowrap;
}

.site-navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--nav-height);
  flex-wrap: nowrap;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-brand-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--orange-light);
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-light);
  background: rgba(255, 107, 0, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

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

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  background: rgba(255, 107, 0, 0.08);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height) - var(--topbar-height));
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orange-glow), transparent 70%);
  opacity: 0.3;
  animation: heroGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-has-video::before {
  display: none;
}

@keyframes heroGlow {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  to { transform: translate(-50%, -50%) scale(1.1); opacity: 0.35; }
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 15, 0.88) 0%, rgba(6, 6, 15, 0.55) 45%, rgba(6, 6, 15, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 6, 15, 0.35) 0%, rgba(6, 6, 15, 0.15) 40%, rgba(6, 6, 15, 0.75) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-has-video .container {
  grid-template-columns: minmax(0, 640px);
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orb {
  width: 320px;
  height: 320px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-orb img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 60px var(--orange-glow));
}

.hero-orb-ring {
  position: absolute;
  inset: -40px;
  border: 2px solid rgba(255, 107, 0, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.hero-orb-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--orange-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange-light);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section styles */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card-image {
  height: 160px;
  background: linear-gradient(135deg, rgba(255,107,0,0.3), rgba(0,168,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(0,168,255,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* About Section */
.about-section {
  background: linear-gradient(180deg, transparent, rgba(255,107,0,0.03), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.about-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--orange-light);
  margin-bottom: 4px;
}

.about-highlight span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(0,168,255,0.08));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orange-glow), transparent 70%);
  opacity: 0.3;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* Server Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.stats-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list span {
  color: var(--orange-light);
  font-weight: 600;
}

.ranking-list {
  counter-reset: rank;
}

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  justify-content: space-between;
}

.ranking-list li::before {
  counter-increment: rank;
  content: counter(rank);
  width: 24px;
  height: 24px;
  background: rgba(255,107,0,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-light);
  flex-shrink: 0;
}

.ranking-list li:nth-child(1)::before { background: linear-gradient(135deg, #ffd700, #ff9500); color: #000; }
.ranking-list li:nth-child(2)::before { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.ranking-list li:nth-child(3)::before { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.ranking-value {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ranking-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ranking-empty::before {
  display: none;
}

.status-online {
  color: var(--green) !important;
}

.status-online::before {
  content: '● ';
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--orange-light);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--orange);
  background: rgba(255,107,0,0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-legal p {
  margin: 0;
}

.footer-legal-primary {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-legal em {
  font-style: italic;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* Homepage hero start CTA — bottom-right of hero, scrolls with page */
.hero .floating-start-btn {
  position: absolute;
  right: clamp(10px, 1.5vw, 24px);
  bottom: clamp(16px, 2vh, 28px);
  z-index: 2;
  display: block;
  line-height: 0;
  text-decoration: none;
  filter: drop-shadow(0 14px 36px rgba(255, 107, 0, 0.5));
  transition: filter var(--transition);
}

.floating-start-btn__inner {
  display: block;
  transition: transform var(--transition);
  animation: floatingStartBob 3.2s ease-in-out infinite;
}

.floating-start-btn img {
  width: clamp(160px, 16vw, 228px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.floating-start-btn:hover .floating-start-btn__inner {
  animation: none;
  transform: scale(1.05) translateY(-8px);
}

.floating-start-btn:hover {
  filter: drop-shadow(0 18px 44px rgba(255, 149, 0, 0.65));
}

.floating-start-btn:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 6px;
  border-radius: 16px;
}

@keyframes floatingStartBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 768px) {
  .hero .floating-start-btn img {
    width: clamp(120px, 28vw, 160px);
  }
}

/* Page-specific: Register & Download */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.form-section {
  padding: 40px 0 100px;
}

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--orange);
}

.form-card .btn {
  width: 100%;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--orange-light);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Download page */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.download-card .download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-glow);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.download-card .version {
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 20px;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.requirements-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.requirements-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--orange);
}

.requirements-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.requirements-list li span:first-child {
  color: var(--text-muted);
}

.steps-list {
  counter-reset: step;
  margin-top: 40px;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}

.step-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--green);
  color: var(--text-primary);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 6, 15, 0.98);
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 100;
    margin-left: 0;
    gap: 4px;
  }

  .nav-links.open a {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .nav-brand-text span {
    display: none;
  }

  .hero .container,
  .hero-has-video .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(6, 6, 15, 0.55) 0%, rgba(6, 6, 15, 0.45) 50%, rgba(6, 6, 15, 0.85) 100%);
  }

  .hero-orb {
    width: 200px;
    height: 200px;
  }

  .news-grid,
  .about-content,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.status-offline {
  color: #ff6b6b !important;
}

.status-offline::before {
  content: '● ';
}

.status-unknown {
  color: var(--text-muted) !important;
}

.status-unknown::before {
  content: '○ ';
}

/* Hub pages: rankings, server, guilds, news, onboarding */
.hub-section {
  padding: 48px 0 72px;
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hub-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.hub-tab:hover,
.hub-tab.active {
  color: #fff;
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.15);
}

.hub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hub-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
}

.hub-panel-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.hub-panel-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hub-panel-note a {
  color: var(--orange-light);
}

.hub-empty,
.hub-empty-cell {
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hub-table th,
.hub-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.hub-table th {
  color: var(--orange-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-table-link {
  color: var(--orange-light);
  font-weight: 600;
  text-decoration: none;
}

.hub-table-link:hover {
  text-decoration: underline;
}

.hub-back-link {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.container-narrow {
  max-width: 820px;
}

.news-grid-hub {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.news-article-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.news-article-image img {
  width: 100%;
  display: block;
}

.news-article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.news-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card-link {
  color: var(--orange-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.news-card-link:hover {
  text-decoration: underline;
}

.stats-card-link {
  margin-top: 14px;
  font-size: 0.8rem;
}

.stats-card-link a {
  color: var(--orange-light);
}

/* Server dashboard */
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.dashboard-stat-card.is-online {
  border-color: rgba(46, 204, 113, 0.4);
}

.dashboard-stat-card.is-offline {
  border-color: rgba(255, 107, 107, 0.4);
}

.dashboard-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-stat-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Guild directory */
.hub-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hub-search input[type="search"] {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
}

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

.guild-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.guild-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guild-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.guild-card-head h3 {
  font-size: 1.05rem;
  margin: 0;
}

.guild-card-rep {
  font-size: 0.75rem;
  color: var(--orange-light);
  font-weight: 700;
  white-space: nowrap;
}

.guild-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.guild-card-meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guild-card-meta span:first-child {
  color: var(--text-muted);
}

.guild-card-notice {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.guild-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.guild-notice-card .guild-notice-by {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.guild-notice-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guild-badge-master {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Onboarding */
.onboarding-steps {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.onboarding-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange-light);
}

.onboarding-step h3 {
  margin-bottom: 8px;
}

.onboarding-step p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.onboarding-done {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.onboarding-faq {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-faq li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.onboarding-faq strong {
  color: var(--text-primary);
}

.onboarding-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Admin news */
.admin-news-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.admin-news-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-news-form input[type="text"],
.admin-news-form input[type="date"],
.admin-news-form input[type="url"],
.admin-news-form select,
.admin-news-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.admin-news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-news-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
}

.admin-news-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-news-message {
  margin-top: 12px;
  font-size: 0.85rem;
}

.admin-news-message.is-success { color: var(--green); }
.admin-news-message.is-error { color: #ff6b6b; }

.admin-news-list {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
}

.admin-news-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-news-item.is-draft {
  opacity: 0.65;
}

.admin-news-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-news-item-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.admin-news-delete {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ff6b6b;
}

@media (max-width: 900px) {
  .admin-news-layout {
    grid-template-columns: 1fr;
  }

  .admin-news-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-media {
    display: none;
  }

  .hero-video-overlay {
    background: rgba(6, 6, 15, 0.92);
  }
}
