*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --bg2:      #0e0a0a;
  --bg3:      #140c0c;
  --bg4:      #1a0e0e;
  --panel:    #0c0808;
  --border:   rgba(204,0,0,0.18);
  --border2:  rgba(204,0,0,0.38);
  --glow:     #cc0000;
  --glow2:    #d4af37;
  --accent:   #d4af37;
  --green:    #10b981;
  --yellow:   #f59e0b;
  --red:      #ef4444;
  --text1:    #f0ece4;
  --text2:    #c8b89a;
  --text3:    #6b5040;
  --ff-head:  'Rajdhani', sans-serif;
  --ff-mono:  'Share Tech Mono', monospace;
  --ff-body:  'Inter', sans-serif;
  --grid:     rgba(204,0,0,0.04);
  --nav-bg:   rgba(8,8,8,0.95);
  --input-bg: rgba(0,0,0,0.45);
  --nav-h:    48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text1);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Scanline effect */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(204,0,0,0.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--glow); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.7);
  display: flex; align-items: center;
  padding: 0 28px; gap: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; flex-shrink: 0;
  margin-right: 36px;
}
.nav-logo-text {
  font-family: var(--ff-head);
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(204,0,0,0.4);
}
.nav-logo-text .bar  { color: var(--glow); }
.nav-logo-text .kmg  { color: var(--accent); }
.nav-logo-sub {
  font-family: var(--ff-mono);
  font-size: 13px; color: var(--text3);
  letter-spacing: 1px; align-self: flex-end;
  padding-bottom: 3px; margin-left: 6px;
}

.nav-links { display: flex; align-items: center; height: 100%; }
.nav-link {
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
  text-decoration: none; padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--glow); border-bottom-color: rgba(204,0,0,0.4); }
.nav-link.active { color: var(--glow); border-bottom-color: var(--glow); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta {
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  padding: 7px 18px; border: 1px solid var(--border2);
  background: rgba(204,0,0,0.08); color: var(--glow);
  transition: all 0.2s; border-radius: 3px;
}
.nav-cta:hover { background: rgba(204,0,0,0.18); box-shadow: 0 0 14px rgba(204,0,0,0.2); }
.nav-cta.discord {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.4); color: #7289da;
}
.nav-cta.discord:hover { background: rgba(88,101,242,0.2); box-shadow: 0 0 14px rgba(88,101,242,0.25); color: #99aaf0; }

.nav-burger {
  display: none; background: none;
  border: 1px solid var(--border2); color: var(--glow);
  font-size: 18px; padding: 5px 10px; cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: -15% 0;
  background: url('../images/KMG-Banner_footer_2026.jpg') center/cover no-repeat;
  filter: brightness(0.45) saturate(0.4);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(204,0,0,0.07) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.0) 40%, rgba(8,8,8,0.0) 60%, rgba(8,8,8,0.97) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 60px 24px 80px;
  max-width: 900px;
}

.hero-emblem {
  width: 300px; height: auto;
  filter: drop-shadow(0 0 28px rgba(204,0,0,0.5));
  animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 0 16px rgba(204,0,0,0.3)); }
  50%      { filter: drop-shadow(0 0 30px rgba(204,0,0,0.7)); }
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 700; letter-spacing: 8px; line-height: 1;
}
.hero-title .bar { color: var(--glow); text-shadow: 0 0 20px rgba(204,0,0,0.5); }
.hero-title .kmg { color: var(--accent); text-shadow: 0 0 20px rgba(212,175,55,0.5); }

.hero-sub {
  font-family: var(--ff-head);
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 500; letter-spacing: 8px;
  color: var(--text2); text-transform: uppercase;
  border-top: 1px solid rgba(204,0,0,0.25);
  border-bottom: 1px solid rgba(204,0,0,0.25);
  padding: 8px 24px; margin-top: 4px;
}

.hero-tagline {
  font-family: var(--ff-mono);
  font-size: 13px; color: var(--glow);
  letter-spacing: 4px; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(204,0,0,0.4);
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-top: 8px;
}

.btn-gold {
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 32px;
  background: linear-gradient(135deg, rgba(204,0,0,0.2), rgba(212,175,55,0.3));
  border: 1px solid var(--glow);
  color: var(--glow);
  transition: all 0.2s; position: relative; overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-gold:hover {
  background: linear-gradient(135deg, rgba(204,0,0,0.35), rgba(212,175,55,0.45));
  box-shadow: 0 0 20px rgba(204,0,0,0.3);
  color: var(--accent);
}
.btn-outline {
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 32px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.5);
  color: var(--accent);
  transition: all 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-outline:hover { background: rgba(212,175,55,0.3); box-shadow: 0 0 16px rgba(212,175,55,0.35); color: var(--accent); }

.hero-since {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 13px; color: var(--text3);
  letter-spacing: 4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero-since::before, .hero-since::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow2));
}
.hero-since::after { background: linear-gradient(270deg, transparent, var(--glow2)); }

/* ─── SECTION COMMON ─── */
.section { position: relative; z-index: 1; padding: 72px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.section-header { margin-bottom: 40px; }
.section-eyebrow {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--glow); letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 6px; display: block;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: 2px; color: var(--text1);
  line-height: 1.1;
}
.section-title .g { color: var(--glow); }

.gold-divider {
  width: 100%; height: 1px; margin: 0 0 40px;
  background: linear-gradient(90deg, var(--glow), var(--glow2), transparent);
  opacity: 0.5;
  position: relative;
}
.gold-divider::before {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 40px; height: 3px;
  background: var(--glow);
}

/* ─── BANNER STRIPE ─── */
.banner-stripe {
  position: relative; z-index: 1;
  height: 180px; overflow: hidden;
}
.banner-stripe-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: brightness(0.4) saturate(0.5);
}
.banner-stripe-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.3) 40%, rgba(8,8,8,0.3) 60%, rgba(8,8,8,0.9) 100%);
}

/* ─── NEWS ─── */
#news { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  border-radius: 6px;
}
.news-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--glow), var(--glow2));
  opacity: 0; transition: opacity 0.2s;
}
.news-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(204,0,0,0.1), 0 2px 16px rgba(0,0,0,0.6); }
.news-card:hover::before { opacity: 1; }

.news-card-img {
  width: 100%; height: 160px;
  position: relative; overflow: hidden;
  background: var(--bg3);
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.6) saturate(0.6);
  transition: filter 0.3s, transform 0.3s;
}
.news-card:hover .news-card-img img { filter: brightness(0.75) saturate(0.9); transform: scale(1.04); }
.news-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.15;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
}
.news-tag {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--ff-mono); font-size: 13px;
  padding: 3px 8px; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(8,8,8,0.85);
  border: 1px solid var(--border2); color: var(--glow);
  border-radius: 3px;
}
.news-tag.red { border-color: rgba(212,175,55,0.5); color: var(--accent); }
.news-tag.olive { border-color: rgba(212,175,55,0.5); color: var(--accent); }

.news-body { padding: 18px 20px 20px; }
.news-date {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--text3); letter-spacing: 1px; margin-bottom: 7px;
  display: flex; align-items: center; gap: 6px;
}
.news-date::before { content: '▸'; color: var(--glow); font-size: 13px; }
.news-title {
  font-family: var(--ff-head); font-size: 16px; font-weight: 600;
  letter-spacing: 0.5px; color: var(--text1);
  margin-bottom: 10px; line-height: 1.3;
}
.news-text { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.news-more {
  font-family: var(--ff-mono); font-size: 13px; color: var(--glow);
  text-decoration: none; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.news-more:hover { gap: 10px; }

/* ─── TS3 ─── */
#ts3 { background: var(--bg2); }

.ts3-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start;
}
.ts3-main-card, .ts3-side-card {
  background: var(--panel); border: 1px solid var(--border); overflow: hidden;
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  border-radius: 6px;
}
.ts3-main-card::before, .ts3-side-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--glow), var(--glow2), transparent);
}
.card-header {
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.card-header-title {
  font-family: var(--ff-head); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2);
  display: flex; align-items: center; gap: 6px; flex: 1;
}
.card-header-title::before { content: '//'; font-family: var(--ff-mono); color: var(--glow); font-size: 13px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6ab04c; box-shadow: 0 0 6px #6ab04c;
  animation: blink 2s infinite; flex-shrink: 0;
}
.live-dot.off { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: none; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.live-badge {
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: 2px;
  padding: 2px 7px; background: rgba(106,176,76,0.1);
  border: 1px solid rgba(106,176,76,0.3); color: #6ab04c;
  border-radius: 3px;
}
.live-badge.off { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--accent); }

.ts3-tree { padding: 6px 0; max-height: 462px; overflow-y: auto; }
.ch-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 14px; user-select: none; cursor: default;
  transition: background 0.1s;
}
.ch-row:hover { background: rgba(204,0,0,0.04); }
.ch-arrow { font-size: 13px; color: var(--text3); flex-shrink: 0; display: inline-block; transition: transform 0.15s; }
.ch-arrow.open { transform: rotate(90deg); }
.ch-icon { font-size: 13px; flex-shrink: 0; display: flex; align-items: center; }
.ch-name {
  font-size: 13px; color: var(--text2); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-name.root { color: var(--text1); font-weight: 600; font-family: var(--ff-head); font-size: 16px; }
.ch-cnt {
  font-family: var(--ff-mono); font-size: 13px;
  background: rgba(204,0,0,0.1); border: 1px solid rgba(204,0,0,0.2);
  color: var(--glow); padding: 1px 6px; flex-shrink: 0;
}
.user-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 14px 3px 40px; transition: background 0.1s;
}
.user-row:hover { background: rgba(204,0,0,0.03); }
.usdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.us-on  { background: #6ab04c; box-shadow: 0 0 4px #6ab04c; }
.us-aw  { background: var(--glow); }
.us-dnd { background: var(--accent); }
.uname  { font-size: 13px; color: var(--text2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uflag  { font-size: 13px; flex-shrink: 0; }

.ts3-loading {
  padding: 28px; text-align: center;
  font-family: var(--ff-mono); font-size: 13px; color: var(--text3);
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(204,0,0,0.1);
  border-top-color: var(--glow);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ts3-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(204,0,0,0.05);
  font-size: 13px;
}
.ts3-stat-row:last-child { border-bottom: none; }
.ts3-stat-label { font-family: var(--ff-mono); font-size: 13px; color: var(--text3); }
.ts3-stat-val {
  font-family: var(--ff-mono); font-size: 13px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  padding: 2px 8px; color: var(--glow);
}
.ts3-stat-val.g { color: #6ab04c; border-color: rgba(106,176,76,0.2); }

.ts3-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, rgba(204,0,0,0.12), rgba(212,175,55,0.2));
  border: 1px solid var(--border2);
  font-family: var(--ff-head); font-size: 13px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--glow); text-decoration: none;
  transition: all 0.2s; border-radius: 6px;
}
.ts3-join-btn:hover { background: linear-gradient(135deg, rgba(204,0,0,0.22), rgba(212,175,55,0.3)); box-shadow: 0 0 16px rgba(204,0,0,0.2); }

/* ─── DISCORD STATUS ─── */
#discord { background: var(--bg3); }
.dc-channel {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 5px;
  font-family: var(--ff-mono); font-size: 13px; color: var(--text3);
  letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 1px solid rgba(204,0,0,0.05);
}
.dc-ch-icon { font-size: 13px; color: var(--glow2); }
.dc-member {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 26px;
  border-bottom: 1px solid rgba(204,0,0,0.03);
  transition: background .15s;
}
.dc-member:hover { background: rgba(204,0,0,0.03); }
.dc-member.voice { padding-left: 36px; }
.dc-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg3); flex-shrink: 0; object-fit: cover;
}
.dc-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dc-status.online  { background: #3ba55d; box-shadow: 0 0 5px #3ba55d; }
.dc-status.idle    { background: #faa81a; box-shadow: 0 0 5px #faa81a; }
.dc-status.dnd     { background: #ed4245; box-shadow: 0 0 5px #ed4245; }
.dc-username { font-family: var(--ff-body); font-size: 13px; color: var(--text2); }
.dc-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, rgba(88,101,242,0.12), rgba(88,101,242,0.06));
  border: 1px solid rgba(88,101,242,0.35);
  font-family: var(--ff-head); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #7289da; text-decoration: none; transition: all 0.2s; border-radius: 6px;
}
.dc-join-btn:hover { background: linear-gradient(135deg, rgba(88,101,242,0.22), rgba(88,101,242,0.14)); box-shadow: 0 0 16px rgba(88,101,242,0.2); }


/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
footer::before {
  content: '';
  display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), var(--glow), var(--glow), transparent);
}
.footer-banner {
  width: 100%; height: 100px; overflow: hidden; position: relative;
}
.footer-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: brightness(0.2) saturate(0.4);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 28px 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
.footer-logo-txt {
  font-family: var(--ff-head); font-size: 32px; font-weight: 700;
  letter-spacing: 4px; margin-bottom: 10px; display: block;
}
.footer-logo-txt .bar { color: var(--glow); }
.footer-logo-txt .kmg { color: var(--accent); }
.footer-desc { font-size: 13px; color: var(--text3); line-height: 1.8; max-width: 240px; }

.footer-col-title {
  font-family: var(--ff-head); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--glow);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.footer-col-title::before { content: '//'; font-family: var(--ff-mono); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  font-size: 13px; color: var(--text3); text-decoration: none;
  display: flex; align-items: center; gap: 7px; transition: color 0.2s;
}
.footer-link::before { content: '▸'; color: var(--glow2); font-size: 13px; flex-shrink: 0; }
.footer-link:hover { color: var(--glow); }
.footer-link:hover::before { color: var(--glow); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-family: var(--ff-mono); font-size: 13px; color: var(--text3); letter-spacing: 1px; }
.footer-est  {
  font-family: var(--ff-mono); font-size: 13px; color: var(--text3); letter-spacing: 3px;
}
.footer-est span { color: var(--glow); }

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--glow), var(--accent));
  pointer-events: none;
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 199;
  width: 40px; height: 40px;
  background: rgba(204,0,0,0.1);
  border: 1px solid var(--border2);
  color: var(--glow); font-size: 18px; line-height: 1;
  cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: rgba(204,0,0,0.22); transform: translateY(-2px); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .ts3-layout  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,0.98); flex-direction: column;
    align-items: flex-start; padding: 20px; gap: 0; z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-link { height: auto; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-right { display: none; }
  .nav-burger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .hero-emblem { width: 220px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section { padding: 52px 0; }
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .section-inner { padding: 0 14px; }
  .btn-gold, .btn-outline { clip-path: none; }
}
