/* =========================================================
   Grove RP — shared styles
   Font: Eurostile Extended. If it is installed or loaded
   (e.g. Adobe Fonts "eurostile-extended"), it is used first.
   Michroma (Google Fonts) is the free look-alike fallback.
   ========================================================= */
:root {
  --black: #08070b;
  --charcoal: #111016;
  --line: rgba(236, 228, 246, .10);
  --line-2: rgba(236, 228, 246, .18);
  --lavender: #c6b3ef;
  --lavender-dim: #8f7fb5;
  --text: #f2eee8;
  --muted: #9b95a3;
  --display: "eurostile-extended", "Eurostile Extended", "Eurostile Extended #2", "Michroma", "Unbounded", "Arial", sans-serif;
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--black); color: var(--text);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--lavender); color: var(--black); }
:focus-visible { outline: 1.5px solid var(--lavender); outline-offset: 4px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 52px; padding: 0 30px;
  border-radius: 3px; font: 600 .74rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), color .4s var(--ease), background .5s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: scale(1.12); }
.btn:active { transform: translateY(0) scale(.98); }

/* primary: satin lavender with a light sweep */
.btn-primary {
  color: #140f1d;
  background: linear-gradient(180deg, #e2d6f9 0%, #c3aef0 55%, #ae96e4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(70,40,120,.25), 0 12px 32px -14px rgba(180,150,245,.7);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 1s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(70,40,120,.25), 0 18px 44px -12px rgba(190,160,255,.85); }
.btn-primary:hover::after { transform: translateX(130%); }

/* ghost: hairline frame, fill slides in */
.btn-ghost {
  color: var(--text); border: 1px solid rgba(236,228,246,.22);
  background: rgba(14, 11, 20, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(198,179,239,.2), rgba(198,179,239,.07));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.btn-ghost:hover { border-color: rgba(198,179,239,.65); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px -16px rgba(170,140,240,.6); }
.btn-ghost:hover::before { transform: scaleX(1); }

/* ---------- server address ---------- */
.server { display: inline-grid; grid-template-columns: 1fr auto; align-items: stretch; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(8, 7, 11, .72); min-width: 340px; }
.server-text { padding: 14px 20px; line-height: 1.4; }
.server-text small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.server-text strong { font-weight: 600; font-size: 1.05rem; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-left: 1px solid var(--line-2); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s, background .3s; }
.copy:hover { color: var(--text); background: rgba(236, 228, 246, .04); }
.copy svg { width: 15px; height: 15px; }
.copy .ok { display: none; }
.copy.done { color: var(--lavender); }
.copy.done .ok { display: block; }
.copy.done .ic { display: none; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 50; }
.nav .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.05rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.logo sup { font: 700 .55rem/1 var(--font); letter-spacing: .14em; color: var(--lavender); border: 1px solid currentColor; padding: 4px 5px 3px 6px; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 8px; list-style: none; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.menu a:not(.btn) { position: relative; color: var(--muted); padding: 6px 0; transition: color .3s; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lavender); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu .btn { height: 40px; padding: 0 16px; gap: 9px; font-size: .68rem; letter-spacing: .1em; }
.menu .btn-ghost { background: rgba(14, 11, 20, .35); }
.menu .btn-ghost[aria-current="page"] { border-color: rgba(198,179,239,.7); color: var(--text); background: rgba(198,179,239,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px -16px rgba(170,140,240,.7); }
.menu .btn-ghost[aria-current="page"] svg { color: var(--lavender); }
.menu .btn svg { width: 16px; height: 16px; }
.menu .nav-discord { display: flex; align-items: center; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: 28px; }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 3px; background: rgba(8,7,11,.4); }
.lang button { height: 32px; padding: 0 11px; border-radius: 2px; font: 700 .7rem/1 var(--font); letter-spacing: .1em; color: var(--muted); transition: color .3s, background .3s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); background: rgba(198,179,239,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
/* ---------- Discord account ---------- */
.auth { position: relative; display: flex; align-items: center; }
.auth[data-state="loading"] { display: none; }
.auth .btn { height: 40px; padding: 0 16px; gap: 9px; font-size: .68rem; letter-spacing: .1em; }
.auth-user {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 4px;
  border: 1px solid rgba(236,228,246,.22); border-radius: 999px; background: rgba(14, 11, 20, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 .8rem/1 var(--font); transition: border-color .3s, background .3s;
}
.auth-user:hover, .auth-user[aria-expanded="true"] { border-color: rgba(198,179,239,.65); background: rgba(198,179,239,.12); }
.auth-user img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(198,179,239,.55); background: var(--charcoal); }
.auth-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 220px; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 6px; background: rgba(14, 11, 20, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9);
}
.auth-pop[hidden] { display: none; }
.auth-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.auth-who strong { display: block; font-weight: 700; }
.auth-who small { color: var(--muted); font-size: .78rem; }
.auth-logout { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 4px; font-size: .85rem; font-weight: 600; color: var(--text); transition: background .25s; }
.auth-logout:hover { background: rgba(198,179,239,.12); }
.auth-logout svg { width: 16px; height: 16px; color: var(--lavender); }

.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); position: relative; transition: background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- page shell ---------- */
main { flex: 1; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 45% at 75% 105%, rgba(150, 120, 210, .16), transparent 70%), var(--black); }
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: clamp(14px, 2.2vh, 22px); color: var(--muted); font-size: .75rem; }

/* load sequence (one per page) */
.load { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) var(--d, 0s) forwards; }
.load-blur { opacity: 0; filter: blur(14px); transform: scale(1.04); animation: focus 1.6s var(--ease) var(--d, 0s) forwards; }
.load-up { opacity: 0; transform: translateY(100%); animation: rise 1.2s var(--ease) var(--d, 0s) forwards; }
.nav-in { opacity: 0; transform: translateY(-14px); animation: rise .9s var(--ease) calc(.1s + var(--i, 0) * .08s) forwards; }
@keyframes focus { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.d1 { animation-delay: .1s } .d2 { animation-delay: .22s } .d3 { animation-delay: .36s } .d4 { animation-delay: .5s } .d5 { animation-delay: .64s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* type */
.status { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.status i, .live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #8a8494; box-shadow: 0 0 0 4px rgba(138,132,148,.14); transition: background .4s, box-shadow .4s; }
[data-server="on"] .status i, [data-server="on"] .live { background: #8fe0b0; box-shadow: 0 0 0 4px rgba(143,224,176,.14); animation: live 2.4s ease-in-out infinite; }
[data-server="off"] .status i, [data-server="off"] .live { background: #e58a9b; box-shadow: 0 0 0 4px rgba(229,138,155,.14); }
.status .sep { width: 1px; height: 12px; background: rgba(236,228,246,.25); }
.status [data-players] { color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(143,224,176,0); } }
.kicker { display: flex; align-items: center; gap: 14px; color: var(--lavender); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: clamp(14px, 2.6vh, 26px); }
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
h1, .page-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; letter-spacing: 0; }
.page-title { font-size: clamp(1.8rem, 3.8vw, 3.1rem); max-width: 16ch; }
.lead { color: var(--muted); max-width: 52ch; margin-top: 22px; }

/* =========================================================
   HOME
   ========================================================= */
.home .nav { position: absolute; inset: 0 0 auto; }
.hero { flex: 1; position: relative; display: flex; flex-direction: column; min-height: 100svh; padding-top: 76px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: settle 2.6s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 45%, rgba(8,7,11,.6), rgba(8,7,11,0) 80%),
              linear-gradient(rgba(14,9,24,.38), rgba(14,9,24,.38)),
              linear-gradient(180deg, rgba(8,7,11,.65) 0%, rgba(8,7,11,0) 22%),
              linear-gradient(0deg, rgba(8,7,11,.92) 0%, rgba(8,7,11,.4) 28%, rgba(8,7,11,0) 50%); }

/* centered title card */
.hero-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 8vh; }
.hero .status { margin-bottom: clamp(18px, 3vh, 30px); padding: 8px 16px; border: 1px solid rgba(236,228,246,.16); border-radius: 999px; background: rgba(8,7,11,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #d6d0dc; }
.hero h1 { font-size: clamp(3.4rem, 11vw, 10rem); line-height: .9; letter-spacing: -.01em; text-shadow: 0 10px 60px rgba(8,7,11,.5); }
.hero h1 .h1-word { display: block; position: relative; isolation: isolate; text-shadow: none; }
.hero h1 { filter: drop-shadow(0 14px 44px rgba(8,7,11,.6)); }
/* stacked outline echoes under the word: depth without a heavy 3D effect */
.hero h1 .h1-word::before, .hero h1 .h1-word::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgba(198,179,239,.55);
}
.hero h1 .h1-word::before { transform: translateY(.075em); }
.hero h1 .h1-word::after { transform: translateY(.15em); opacity: .4; }
.hero h1 .h1-fill {
  display: inline-block;
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f1ecf8 42%, #c6b3ef 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sheen 2.2s var(--ease) 1.6s both;
}
@keyframes sheen { from { background-position: 130% 0, 0 0; } to { background-position: -30% 0, 0 0; } }
.hero h1 .h1-sub { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); font-size: .24em; line-height: 1; margin-top: 1.1em; color: var(--lavender); }
.hero h1 .h1-sub::before, .hero h1 .h1-sub::after { content: ""; width: clamp(36px, 7vw, 120px); height: 1px; background: currentColor; opacity: .55; }

/* bottom bar: copy | actions | server */
.hero-bar { border-top: 1px solid rgba(236,228,246,.12); background: linear-gradient(0deg, rgba(8,7,11,.75), rgba(8,7,11,.35)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; padding-block: clamp(22px, 3.4vh, 34px); }
.bar-grid > * + * { border-left: 1px solid rgba(236,228,246,.12); padding-left: clamp(18px, 2.2vw, 36px); margin-left: clamp(18px, 2.2vw, 36px); }
.bar-players[hidden] { display: none; }
.hero-players[hidden] { display: none; }
.hero-players { margin-top: clamp(26px, 4.5vh, 44px); }
.hero-players .players { padding: 12px 22px 12px 12px; border: 1px solid rgba(236,228,246,.16); border-radius: 999px; background: rgba(8,7,11,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -24px rgba(0,0,0,.8); text-align: left; }
.players { display: flex; align-items: center; gap: 14px; }
.players-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(198,179,239,.35); color: var(--lavender); background: rgba(198,179,239,.07); }
.players-ic svg { width: 20px; height: 20px; }
.players-text { line-height: 1.35; }
.players-text small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; white-space: nowrap; }
.players-text strong { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tagline { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.35; margin-top: clamp(22px, 4vh, 40px); text-shadow: 0 2px 20px rgba(8,7,11,.6); }
.hero .lead { max-width: 54ch; margin-top: 8px; font-size: 1rem; line-height: 1.6; color: #d2ccd8; text-shadow: 0 2px 16px rgba(8,7,11,.7); }
.bar-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.bar-ctas .btn { padding: 0 20px; gap: 10px; letter-spacing: .1em; }
.bar-server .server { min-width: 300px; }

/* =========================================================
   ABOUT
   ========================================================= */
.fit main > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(8px, 2.4vh, 40px); }
.page-head { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; padding-bottom: clamp(18px, 4vh, 56px); }
.page-head .lead { margin-top: 0; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.feature { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: clamp(16px, 2.8vh, 30px) 0 clamp(18px, 3vh, 32px); border-top: 1px solid var(--line); }
.feature::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--lavender); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.feature:hover::before { transform: scaleX(1); }
.glyph { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--lavender-dim); transition: color .5s var(--ease), border-color .5s var(--ease), transform .8s var(--ease); }
.glyph svg { width: 20px; height: 20px; }
.feature:hover .glyph { color: var(--lavender); border-color: var(--lavender); transform: rotate(-12deg); }
.feature h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; transition: transform .6s var(--ease); }
.feature:hover h2 { transform: translateX(6px); }
.feature p { color: var(--muted); margin-top: 6px; font-size: .95rem; max-width: 42ch; }

/* =========================================================
   JOIN
   ========================================================= */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 25px; height: 1px; background: var(--line-2); transform-origin: left; animation: draw 1.4s var(--ease) var(--d, 0s) both; }
.step { position: relative; padding-right: 48px; }
.step-num { position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--black); border: 1px solid var(--line-2); font-size: .9rem; font-weight: 600; color: var(--lavender); margin-bottom: clamp(14px, 3vh, 36px); }
.step:first-child .step-num { border-color: var(--lavender); }
.step h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; max-width: 22ch; }
.step p { color: var(--muted); margin: 10px 0 clamp(14px, 2.6vh, 26px); max-width: 34ch; font-size: .95rem; }
.step .actions { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.4vh, 16px); }
.step .server { min-width: 0; width: 100%; max-width: 380px; }
.note { font-size: .85rem; color: var(--muted); }
.note a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.note a:hover { border-color: var(--lavender); }

/* =========================================================
   RULES
   ========================================================= */
.rules { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rule-cats { display: flex; flex-direction: column; gap: 8px; }
.rule-cat {
  position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: 3px; background: rgba(14, 11, 20, .45);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.rule-cat::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--lavender); transform: scaleY(0); transition: transform .5s var(--ease); }
.rule-cat:hover { border-color: rgba(198,179,239,.4); transform: translateX(3px); }
.rule-cat[aria-selected="true"] { border-color: rgba(198,179,239,.55); background: rgba(198,179,239,.1); }
.rule-cat[aria-selected="true"]::before { transform: scaleY(1); }
.rule-cat .cat-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--lavender-dim); transition: color .4s, border-color .4s; }
.rule-cat[aria-selected="true"] .cat-ic { color: var(--lavender); border-color: rgba(198,179,239,.6); }
.rule-cat .cat-ic svg { width: 18px; height: 18px; }
.rule-cat strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.3; }
.rule-cat small { display: block; color: var(--muted); font-size: .78rem; }
.rule-panel { border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(180deg, rgba(23, 19, 31, .7), rgba(14, 11, 20, .5)); padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 36px); max-height: calc(100svh - 360px); min-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(198,179,239,.3) transparent; }
.rule-panel h2 { font-size: 1.35rem; font-weight: 700; }
.rule-panel > p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.rule-list { list-style: none; margin-top: clamp(14px, 2.4vh, 24px); }
.rule-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateY(10px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--n) * 60ms); }
.rule-list li span { color: var(--lavender); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; padding-top: 2px; }
.rule-list li p { color: #d6d0dc; font-size: .98rem; }
.panel-swap { animation: rise .5s var(--ease) both; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .burger { display: grid; }
  .nav-tools { margin-left: auto; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 14px var(--gutter) 24px; background: rgba(8,7,11,.97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .menu .btn { width: 100%; height: 50px; justify-content: flex-start; }
  .menu .nav-discord { display: block; margin: 8px 0 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .nav.open { background: rgba(8,7,11,.97); }
  .nav.open .menu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1360px) {
  .bar-grid { grid-template-columns: minmax(0, 1fr) auto; row-gap: 18px; }
  .bar-server { grid-column: 1 / -1; justify-self: end; }
  .bar-grid > .bar-server { border-left: 0; padding-left: 0; margin-left: 0; }
}
@media (max-width: 900px) {
  .nav-tools { margin-left: auto; }
  .steps::before { transform-origin: top; animation-name: drawY; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: rgba(8,7,11,.97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .menu a:not(.btn) { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 20px; height: 50px; width: 100%; }
  .nav.open { background: rgba(8,7,11,.97); }
  .nav.open .menu { opacity: 1; visibility: visible; transform: none; }
  .burger { display: grid; }
  .bar-grid { grid-template-columns: 1fr; row-gap: 14px; }
  .bar-ctas > span, .bar-ctas .btn { width: 100%; }
  .bar-server { justify-self: stretch; }
  .players { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(8,7,11,.6); }
  .bar-grid > * + * { border-left: 0; padding-left: 0; margin-left: 0; }
  .bar-server { padding-top: 0; border-top: 0; display: block; }
  .bar-server .server { width: 100%; min-width: 0; }
  .hero-main { padding-block: 24px; }
  .page-head { grid-template-columns: 1fr; gap: 20px; }
  .fit main > .wrap { justify-content: flex-start; padding-block: 32px 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rule-cats { display: grid; grid-template-columns: 1fr 1fr; }
  .rule-panel { max-height: none; }
  .steps { grid-template-columns: 1fr; gap: 52px; }
  .steps::before { left: 25px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding: 0 0 0 84px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 560px) {
  .auth .btn { padding: 0 12px; }
  .auth .btn span, .auth-name { display: none; }
  .auth-user { padding: 0 4px; }
  .hero-shade { background: linear-gradient(0deg, var(--black) 8%, rgba(8,7,11,.75) 50%, rgba(8,7,11,.3) 100%); }
  .bar-ctas > span { flex: 1 1 100%; }
  .bar-ctas .btn { width: 100%; }
  .hero h1 .h1-sub { font-size: .3em; }
  .hero h1 .h1-sub::before, .hero h1 .h1-sub::after { width: 28px; }
  .server { grid-template-columns: 1fr; min-width: 0; width: 100%; }
  .copy { border-left: 0; border-top: 1px solid var(--line-2); min-height: 46px; justify-content: center; }
  .step { padding-left: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .load, .load-blur, .load-up, .nav-in, .rule-list li { opacity: 1; transform: none; filter: none; }
}
