@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600&display=swap');

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

:root {
  --gold: #ffb200;
  --gold-dim: #cc8e00;
  --bg: #1b1b1b;
  --surface: #252525;
  --text: #e8e8e8;
  --muted: #666;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  backdrop-filter: blur(2px);
}

.navbar.navbar-solid {
  background: rgba(0,0,0,0.95) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('https://images.unsplash.com/photo-1579547621706-1a9c79d5c9f1?w=1800&auto=format&fit=crop&q=80')
    center/cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.75) 50%,
    rgba(0,0,0,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeUp 1s ease both;
}

.pre-title {
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 80px rgba(255,178,0,0.3);
}

.hero-logo {
  width: clamp(280px, 65vw, 680px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255,178,0,0.35)) drop-shadow(0 0 80px rgba(255,178,0,0.15));
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  padding: 1rem 2.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}

.btn-primary:hover {
  background: #ffca33;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,178,0,0.35);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollLine 1.5s ease-in-out infinite;
}

/* ── ABOUT ── */
.about, .join {
  padding: 7rem 2rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-align: center;
}

.title-divider {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.title-divider span {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.highlight {
  color: var(--gold);
}

.section-text {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,178,0,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover {
  background: #282210;
  box-shadow: 0 0 40px rgba(255,178,0,0.1), inset 0 0 30px rgba(255,178,0,0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.12;
  margin-bottom: 1rem;
  transition: opacity 0.3s, text-shadow 0.3s;
}

.feature-card:hover .feature-num {
  opacity: 0.5;
  text-shadow: 0 0 30px rgba(255,178,0,0.6);
}

.feature-line {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.4;
  transition: width 0.3s, opacity 0.3s;
}

.feature-card:hover .feature-line {
  width: 48px;
  opacity: 1;
}

.feature-card:hover h3 {
  color: var(--gold);
  transition: color 0.3s;
}

.feature-card h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── SOCIAL ── */
.social {
  padding: 0 2rem 7rem;
}

.social .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  background: radial-gradient(ellipse at 0% 50%, var(--glow-color, transparent) 0%, transparent 65%);
}

.social-discord {
  background: #111827;
  --glow-color: rgba(88,101,242,0.12);
}

.social-tiktok {
  background: #1a0a0e;
  --glow-color: rgba(238,29,82,0.12);
}

.social-discord:hover {
  border-color: rgba(88,101,242,0.4);
  box-shadow: 0 0 40px rgba(88,101,242,0.12);
  background: #131b2e;
}

.social-tiktok:hover {
  border-color: rgba(238,29,82,0.4);
  box-shadow: 0 0 40px rgba(238,29,82,0.12);
  background: #1f0d12;
}

.social-discord::before {
  background: linear-gradient(to right, transparent, rgba(88,101,242,0.8), transparent);
}

.social-tiktok::before {
  background: linear-gradient(to right, transparent, rgba(238,29,82,0.8), transparent);
}

.social-card:hover::before,
.social-card:hover::after {
  opacity: 1;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.social-card:hover .social-icon {
  transform: scale(1.08);
}

.social-discord .social-icon {
  background: rgba(88,101,242,0.15);
  color: #7289da;
}

.social-tiktok .social-icon {
  background: rgba(238,29,82,0.15);
  color: #ee1d52;
}

.social-icon svg {
  width: 26px;
  height: 26px;
}

.social-content {
  flex: 1;
}

.social-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.social-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}

.social-discord .social-title { color: #7289da; }
.social-tiktok .social-title { color: #ee1d52; }

.social-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.social-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.social-card:hover .social-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .social .container { grid-template-columns: 1fr; }
}

/* ── JOIN ── */
.join {
  background: var(--surface);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,178,0,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.step:hover {
  background: #282210;
  border-color: rgba(255,178,0,0.25);
  box-shadow: 0 0 40px rgba(255,178,0,0.1), inset 0 0 30px rgba(255,178,0,0.04);
}

.step:hover::before {
  opacity: 1;
}

.step:hover::after {
  opacity: 1;
}

.step-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  min-width: 60px;
  transition: opacity 0.3s, text-shadow 0.3s;
}

.step:hover .step-num {
  opacity: 0.55;
  text-shadow: 0 0 30px rgba(255,178,0,0.6);
}

.step-text h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}

.step:hover .step-text h3 {
  color: var(--gold);
}

.step-text p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.step-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,178,0,0.3);
  transition: border-color 0.2s;
}

.step-link:hover {
  border-color: var(--gold);
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dot {
  color: var(--gold);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── CONTENT PAGES ── */
.content-page {
  padding: 10rem 2rem 6rem;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header .section-title {
  margin-bottom: 1rem;
}

/* ── COMMAND SECTIONS ── */
.cmd-section {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.cmd-section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: rgba(255,178,0,0.05);
  border-bottom: 1px solid rgba(255,178,0,0.15);
}

.cmd-section-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.cmd-section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.cmd-section-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.cmd-list {
  padding: 0.5rem 0;
}

.cmd-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.cmd-row:last-child {
  border-bottom: none;
}

.cmd-row:hover {
  background: rgba(255,178,0,0.04);
}

.cmd-row:hover .cmd-badge code {
  background: rgba(255,178,0,0.2);
  box-shadow: 0 0 12px rgba(255,178,0,0.15);
}

.cmd-badge {
  flex-shrink: 0;
  min-width: 200px;
}

.cmd-badge code {
  display: inline-block;
  background: rgba(255,178,0,0.08);
  color: var(--gold);
  border: 1px solid rgba(255,178,0,0.2);
  padding: 0.35em 0.8em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s;
}

.cmd-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmd-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cmd-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.placeholder-text {
  color: var(--muted) !important;
  font-style: italic;
  text-align: center;
  padding: 3rem 0;
}

.coming-soon {
  text-align: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  opacity: 0.4;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-active {
  color: var(--gold) !important;
  opacity: 1 !important;
}

/* ── GUIDE SECTIONS ── */
.guide-section {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(255,178,0,0.05);
  border-bottom: 1px solid rgba(255,178,0,0.15);
}

.guide-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.guide-section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.guide-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-body > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.guide-tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,178,0,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
}

.tip-label {
  font-family: 'Bebas Neue', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: rgba(255,178,0,0.15);
  padding: 0.2em 0.6em;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Guide steps */
.guide-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-step-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  min-width: 48px;
  padding-top: 0.1rem;
}

.guide-step-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.guide-step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.guide-step-content strong {
  color: var(--text);
}

.guide-note {
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-note p {
  font-size: 0.83rem !important;
  color: var(--muted);
  line-height: 1.65 !important;
}

code {
  background: rgba(255,178,0,0.1);
  color: var(--gold);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
}

kbd {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.1em 0.5em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.82em;
}

/* Checklist */
.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.checklist-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checklist-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,178,0,0.1);
  border: 1px solid rgba(255,178,0,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checklist-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.checklist-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── CONTENT BLOCK (spillerguide) ── */
.content-block {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 2.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text);
}

.content-block p,
.content-block li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.content-block h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
}

.content-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}

.content-block ul,
.content-block ol {
  padding-left: 1.5rem;
}

/* ── RULE BLOCKS ── */
.rule-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.rule-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.rule-id {
  font-family: 'Bebas Neue', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.rule-header h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.rule-block p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.rule-block em {
  font-style: italic;
  color: var(--muted);
}

.rule-block ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.rule-block li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.rule-block li strong {
  color: var(--text);
}

/* Sanction grid (klassifisering) */
.sanction-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0 1rem;
}

.sanction-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 5px;
  border-left: 3px solid transparent;
  transition: filter 0.2s;
}

.sanction-row:hover {
  filter: brightness(1.1);
}

.sanction-row-a { background: rgba(80,180,80,0.07);  border-color: #6dbe6d; }
.sanction-row-b { background: rgba(220,160,40,0.07); border-color: #dcb840; }
.sanction-row-c { background: rgba(220,100,40,0.07); border-color: #dc7840; }
.sanction-row-d { background: rgba(200,50,50,0.07);  border-color: #d95555; }

.sanction-class {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sanction-row-a .sanction-class { background: rgba(80,180,80,0.15);  }
.sanction-row-b .sanction-class { background: rgba(220,160,40,0.15); }
.sanction-row-c .sanction-class { background: rgba(220,100,40,0.15); }
.sanction-row-d .sanction-class { background: rgba(200,50,50,0.15);  }

.sanction-letter {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.sanction-row-a .sanction-letter { color: #6dbe6d; }
.sanction-row-b .sanction-letter { color: #dcb840; }
.sanction-row-c .sanction-letter { color: #dc7840; }
.sanction-row-d .sanction-letter { color: #d95555; }

.sanction-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sanction-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.sanction-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.sanction-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.points-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

.points-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sanction-note {
  font-size: 0.8rem !important;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem !important;
}

/* Sanction badges */
.sanction-badge {
  font-family: 'Bebas Neue', cursive;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.2em 0.55em;
  border-radius: 3px;
  flex-shrink: 0;
}

.sanction-a {
  background: rgba(80, 180, 80, 0.12);
  color: #6dbe6d;
  border: 1px solid rgba(80, 180, 80, 0.25);
}

.sanction-b {
  background: rgba(220, 160, 40, 0.12);
  color: #dcb840;
  border: 1px solid rgba(220, 160, 40, 0.25);
}

.sanction-c {
  background: rgba(220, 100, 40, 0.12);
  color: #dc7840;
  border: 1px solid rgba(220, 100, 40, 0.25);
}

.sanction-d {
  background: rgba(200, 50, 50, 0.12);
  color: #d95555;
  border: 1px solid rgba(200, 50, 50, 0.25);
}

/* ── SEARCH ── */
.search-trigger {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.search-trigger:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.search-trigger svg {
  width: 16px;
  height: 16px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  width: 100%;
  max-width: 600px;
  margin: 0 1.5rem;
  animation: fadeUp 0.2s ease both;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #262626;
  border: 1px solid rgba(255,178,0,0.3);
  border-radius: 8px;
  padding: 0 1rem;
  gap: 0.75rem;
  box-shadow: 0 0 40px rgba(255,178,0,0.1);
}

.search-input-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 1rem 0;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.search-results {
  margin-top: 0.5rem;
  background: #222222;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
}

.search-result-item {
  display: block;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255,178,0,0.06);
}

.result-meta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.result-snippet {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.result-title mark,
.result-snippet mark {
  background: rgba(255,178,0,0.25);
  color: var(--gold);
  border-radius: 2px;
  padding: 0 0.1em;
}

.search-empty {
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.search-empty strong {
  color: var(--text);
}

/* scroll target offset + highlight flash */
.guide-section, .rule-block, .guide-step, .cmd-row, .cmd-section {
  scroll-margin-top: 90px;
}

.search-highlight {
  animation: searchFlash 1.8s ease forwards;
}

@keyframes searchFlash {
  0%   { box-shadow: 0 0 0 2px rgba(255,178,0,0.7); background: rgba(255,178,0,0.08); }
  70%  { box-shadow: 0 0 0 2px rgba(255,178,0,0.3); background: rgba(255,178,0,0.04); }
  100% { box-shadow: none; background: unset; }
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 1rem 1.5rem;
    position: fixed;
    flex-wrap: wrap;
  }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 27, 27, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
    opacity: 0.85;
  }

  .nav-links a:hover { opacity: 1; }

  /* Hero */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .btn { text-align: center; }

  /* Features grid → single column */
  .features { grid-template-columns: 1fr; }

  /* About / Join spacing */
  .about, .join { padding: 4rem 1.25rem; }
  .social { padding: 0 1.25rem 4rem; }

  /* Content pages */
  .content-page { padding: 7rem 1.25rem 4rem; }

  /* Command rows → stack vertically */
  .cmd-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .cmd-badge { min-width: unset; }

  /* Command section header */
  .cmd-section-header { padding: 1.25rem 1.25rem; }
  .cmd-list { padding: 0.25rem 0; }
  .cmd-row { padding: 1rem 1.25rem; }

  /* Guide */
  .guide-section-header { padding: 1rem 1.25rem; }
  .guide-body { padding: 1.25rem; }

  /* Steps */
  .step { padding: 1.25rem; gap: 1.25rem; }

  /* Sanction grid */
  .sanction-row { flex-wrap: wrap; gap: 0.75rem; }
  .sanction-points { align-items: flex-start; }

  /* Rule header */
  .rule-header { gap: 0.5rem; }

  /* Search */
  .search-overlay { padding-top: 6rem; }
  .search-box { margin: 0 1rem; }
}
