/* =========================================================
   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;
  -webkit-user-select: none; user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
/* the server address stays selectable so it can be copied by hand */
.server-text strong, input, textarea { -webkit-user-select: text; user-select: text; }
/* hide text until app.js has put it in the right language (no EN to BG flash) */
.i18n-pending [data-i18n] { visibility: hidden; animation: i18n-show 0s 1.5s forwards; } /* safety: show anyway if app.js fails */
@keyframes i18n-show { to { visibility: visible; } }
::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; }
/* both side columns are always the same width, so the tabs sit exactly in the middle
   even when the Login / account button makes the right side wider */
.nav .wrap { position: relative; height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.nav .logo { grid-column: 1; justify-self: start; }
/* wide screens: the logo sits right next to the first tab ("Home") */
@media (min-width: 1041px) {
  /* bigger and brighter than the tabs, with a thin line between them */
  .nav .logo { justify-self: end; position: relative; padding-right: 24px; font-size: 1.25rem; text-shadow: 0 0 22px rgba(198,179,239,.35); }
  .nav .logo::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 26px; transform: translateY(-50%); background: linear-gradient(180deg, transparent, rgba(198,179,239,.55), transparent); }
  .nav .logo sup { font-size: .6rem; background: rgba(198,179,239,.12); }
  /* logo, tabs and tools sit together as one group in the middle of the bar */
  .nav .wrap { display: flex; justify-content: center; gap: clamp(24px, 3vw, 56px); }
  .nav .nav-tools { margin-left: 0; }
}
.nav-tools { grid-column: 3; justify-self: end; }
.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; }
/* middle column of the bar: centred while there is room, never under Login */
.menu { grid-column: 2; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); list-style: none; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav-link { position: relative; display: block; padding: 8px 0; color: var(--muted); white-space: nowrap; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lavender); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link:focus-visible, .nav-icon:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; border-radius: 2px; }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-icon { order: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); background: rgba(8,7,11,.4); transition: color .3s, border-color .3s, background .3s; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon:hover { color: var(--text); border-color: rgba(198,179,239,.55); background: rgba(198,179,239,.1); }
.nav-tools .auth { order: 1; }
.nav-tools .lang { order: 2; }
.nav-tools .burger { order: 3; }
.menu-discord { display: none; }
.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: 16ch; padding-block: 3px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* less room beside the centred tabs: show the avatar only, then the login icon only */
@media (max-width: 1500px) and (min-width: 1041px) {
  .auth-name { display: none; }
  .auth-user { padding: 0 4px; }
}
@media (max-width: 1240px) and (min-width: 1041px) {
  .auth .btn { padding: 0 12px; }
  .auth .btn span { display: none; }
}
.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 items used to fade in on every page load; the nav now stays still */
.nav-in { }
@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)); pointer-events: none; }
/* 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; }
/* ---------- applications ---------- */
.apps { display: grid; gap: 28px; padding-bottom: 64px; }
.apps-note { padding: 14px 18px; border: 1px solid var(--line-2); border-left: 2px solid var(--lavender); border-radius: 4px; background: rgba(14,11,20,.55); color: #d6d0dc; font-size: .95rem; }
.apps-note.is-ok { border-left-color: #8fe0b0; }
.apps-note.is-err { border-left-color: #f08a8a; }
.app-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--charcoal); }
.app-card.is-closed { opacity: .72; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card h2 { font: 400 1.25rem/1.2 var(--display); letter-spacing: .04em; }
.app-card > p { color: var(--muted); font-size: .95rem; flex: 1; }
.app-card > p.app-closed-note { flex: none; padding: 10px 14px; border-left: 2px solid var(--lavender); border-radius: 2px; background: rgba(198,179,239,.08); color: #d6d0dc; font-size: .88rem; line-height: 1.55; }
.app-card.is-closed:has(.app-closed-note) { opacity: 1; }
.app-card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.app-tools { align-self: stretch; display: grid; gap: 8px; }
.app-tool { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8,7,11,.45); color: var(--text); font-size: .86rem; font-weight: 600; text-align: left; transition: border-color .3s, background .3s; }
.app-tool:hover { border-color: rgba(198,179,239,.5); background: rgba(198,179,239,.08); }
.app-tool:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }
.app-tool-ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 3px; background: rgba(236,228,246,.06); color: var(--muted); }
.app-tool-ic svg, .app-tool-go svg { width: 16px; height: 16px; }
.app-tool-label { flex: 1; }
.app-tool-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.app-tool:hover .app-tool-go { transform: translateX(3px); color: var(--text); }
.app-tool.is-accent { border-color: rgba(198,179,239,.35); background: linear-gradient(90deg, rgba(198,179,239,.12), rgba(198,179,239,.03)); }
.app-tool.is-accent .app-tool-ic { background: rgba(198,179,239,.2); color: var(--lavender); }
.app-tool.is-accent .app-count-badge { background: var(--lavender); color: var(--black); }
.app-count-badge { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(236,228,246,.12); color: var(--text); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.app-back:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 2px; }
.app-card-foot > .btn { align-self: stretch; }
.apps .btn.is-approved { color: #8fe0b0; border-color: rgba(143,224,176,.35); opacity: 1; }
.btn-danger { color: #f08a8a; border: 1px solid rgba(240,138,138,.4); background: rgba(240,138,138,.06); }
.btn-danger:hover { border-color: #f08a8a; background: rgba(240,138,138,.14); transform: translateY(-2px); }
.review-done-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 18px 18px; }
.review-done-row .review-done { padding: 0; }
.bl-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.bl-item img { width: 32px; height: 32px; border-radius: 50%; }
.bl-meta { flex: 1; display: grid; min-width: 180px; font-size: .9rem; color: #d6d0dc; }
.bl-meta small { color: var(--muted); }
.apps .btn { height: 42px; padding: 0 18px; font-size: .68rem; letter-spacing: .1em; }
.apps .btn.is-off, .apps .btn[disabled] { opacity: .55; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-open, .chip-approved { color: #8fe0b0; border-color: rgba(143,224,176,.35); }
.chip-closed, .chip-denied { color: #f08a8a; border-color: rgba(240,138,138,.35); }
.chip-pending { color: #f0cf8a; border-color: rgba(240,207,138,.35); }
/* form */
.app-panel { display: grid; gap: 22px; max-width: 860px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: 6px; background: var(--charcoal); }
.app-form-head h2 { margin-top: 14px; font: 400 1.5rem/1.2 var(--display); letter-spacing: .04em; }
.app-panel-desc { color: var(--muted); margin-top: -10px; }
.app-back { color: var(--muted); font-size: .85rem; font-weight: 600; transition: color .3s; }
.app-back:hover { color: var(--text); }
.app-form { gap: 14px; }
.app-form .app-panel-desc { margin-top: -4px; margin-bottom: 4px; }
/* progress: stays at the top of the screen while scrolling the form */
.app-progress { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(14,11,20,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.app-progress-label { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.app-progress-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
.app-progress-bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(236,228,246,.1); overflow: hidden; }
.app-progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(198,179,239,.6), var(--lavender)); transition: width .4s var(--ease); }
/* section title: "01  About you" with a line after it */
.app-section { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--text); font: 400 .9rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.app-section span { color: var(--lavender); font: 700 .7rem/1 var(--font); letter-spacing: .1em; }
.app-section::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* one question card: number badge on the left, everything else beside it */
.app-field { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(8,7,11,.35); transition: border-color .3s, background .3s, box-shadow .3s; }
.app-field > :not(.app-qn) { grid-column: 2; }
.app-field:focus-within { border-color: rgba(198,179,239,.5); background: rgba(198,179,239,.04); box-shadow: 0 0 0 4px rgba(198,179,239,.06); }
.app-field label { font-weight: 600; line-height: 1.5; padding-top: 4px; }
.app-qn { grid-row: 1 / span 4; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(198,179,239,.4); border-radius: 50%; color: var(--lavender); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .3s, color .3s, border-color .3s; }
.app-qn svg { display: none; width: 15px; height: 15px; stroke-width: 2.4; }
.app-field.is-done .app-qn { background: var(--lavender); border-color: var(--lavender); color: var(--black); }
.app-field.is-done .app-qn span { display: none; }
.app-field.is-done .app-qn svg { display: block; }
.app-help { display: grid; gap: 6px; }
.app-hint, .app-note { display: flex; align-items: flex-start; gap: 8px; font-size: .83rem; line-height: 1.5; }
.app-hint svg, .app-note svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.app-hint { color: var(--muted); }
.app-note { padding: 8px 12px; border: 1px solid rgba(240,207,138,.3); border-radius: 4px; background: rgba(240,207,138,.07); color: #f0cf8a; font-weight: 600; }
.app-field input, .app-field textarea, .review-note {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8,7,11,.6);
  color: var(--text); font: 400 .95rem/1.6 var(--font); resize: vertical; transition: border-color .3s;
}
.app-field input:focus, .app-field textarea:focus, .review-note:focus { outline: none; border-color: var(--lavender); }
.app-field textarea { min-height: 110px; }
.app-count { justify-self: end; margin-top: -4px; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.app-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-form-left { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) {
  .app-field { grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 16px 14px 12px; }
  .app-qn { width: 26px; height: 26px; }
  .app-form-foot .btn { width: 100%; }
}
/* my applications + review */
.apps-section { display: grid; gap: 14px; }
.apps-h { font: 400 1.1rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.apps-empty { color: var(--muted); font-size: .95rem; }
.my-list, .review-list { list-style: none; display: grid; gap: 10px; }
.my-item { padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(14,11,20,.5); }
.my-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.my-row small { color: var(--muted); margin-right: auto; }
.my-note { margin-top: 8px; color: #d6d0dc; font-size: .92rem; }
.my-note span { color: var(--muted); }

.review-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.review-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 3px; }
.review-tabs button { height: 32px; padding: 0 14px; border-radius: 2px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.review-tabs button[aria-selected="true"] { color: var(--text); background: rgba(198,179,239,.2); }
.review-item { border: 1px solid var(--line); border-radius: 4px; background: rgba(14,11,20,.5); }
.review-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; padding: 14px 18px; text-align: left; color: var(--text); border-radius: 4px; transition: background .3s; }
.review-row:hover { background: rgba(198,179,239,.06); }
.review-row:hover .app-tool-go { transform: translateX(3px); color: var(--text); }
.review-row .review-when, .review-person .review-when { margin-left: auto; display: grid; justify-items: end; gap: 2px; text-align: right; }
.review-time { display: inline-flex; align-items: center; gap: 5px; color: var(--lavender); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.review-time svg { width: 13px; height: 13px; }
.review-row img, .review-person img { width: 32px; height: 32px; border-radius: 50%; }
.review-person { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(14,11,20,.5); }
.review-page .review-answers, .review-page .review-actions, .review-page .review-done-row { padding: 0; }
.review-search { position: relative; display: block; }
.review-search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.review-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8,7,11,.6); color: var(--text); font: 400 .92rem/1 var(--font); transition: border-color .3s; }
.review-search input:focus { outline: none; border-color: var(--lavender); }
.review-search input::placeholder { color: var(--muted); }
.review-who { display: grid; line-height: 1.3; }
.review-who small, .review-date { color: var(--muted); font-size: .78rem; }
.review-app { margin-left: auto; color: var(--lavender); font-weight: 600; font-size: .9rem; }
.review-answers { display: grid; gap: 4px; padding: 4px 18px 18px; }
.review-answers dt { margin-top: 12px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.review-answers dd { white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.review-actions { display: grid; gap: 10px; padding: 0 18px 18px; }
.review-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.review-done { padding: 0 18px 18px; color: var(--muted); font-size: .9rem; }
.review-done-note { color: #d6d0dc; }
/* privacy + terms */
.legal { display: grid; gap: 14px; max-width: 760px; padding-bottom: clamp(32px, 6vh, 72px); color: #d6d0dc; font-size: .96rem; }
.legal[hidden] { display: none; }
.i18n-pending [data-lang-only] { visibility: hidden; animation: i18n-show 0s 1.5s forwards; }
.legal h2 { margin-top: 18px; color: var(--text); font: 400 1.05rem/1.3 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; }
.legal li::marker { color: var(--lavender); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }
.legal code { padding: 1px 6px; border-radius: 3px; background: rgba(236,228,246,.08); font-size: .88em; }
.legal-date { color: var(--muted); font-size: .85rem; }
.legal, .legal * { -webkit-user-select: text; user-select: text; }
/* footer: copyright + legal links */
.foot { position: relative; z-index: 2; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 14px; color: var(--muted); font-size: .74rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { transition: color .3s; }
.foot-links a:hover { color: var(--text); }
.home .foot { position: absolute; left: 0; right: 0; bottom: 0; }
/* shop */
.fit .page-top > .wrap { justify-content: flex-start; padding-top: clamp(28px, 6vh, 72px); }
.shop-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop-grid[hidden], .orders[hidden], .shop-admin[hidden] { display: none; }
/* shop orders (admins only, public/shop.js) */
.shop-admin { margin-top: 18px; max-width: 320px; }
.orders-panel, .order-page { max-width: none; }
.orders-title { font: 400 1.5rem/1.2 var(--display); letter-spacing: .04em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(8,7,11,.35); }
.stat small { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stat strong { font: 400 1.25rem/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-item { display: grid; min-width: 0; flex: 1 1 180px; line-height: 1.35; }
.order-item small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-amount { font-variant-numeric: tabular-nums; }
.order-noavatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(236,228,246,.1); flex: none; }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order-section { display: grid; align-content: start; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: rgba(8,7,11,.35); }
.order-section h3 { color: var(--lavender); font: 700 .72rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.order-dl { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 8px 16px; font-size: .9rem; }
.order-dl dt { color: var(--muted); }
.order-dl dd { overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.order-dl code { font-size: .8rem; color: #d6d0dc; }
.order-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lavender); }
.order-link svg { width: 13px; height: 13px; }
.order-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-deliver .review-done { padding: 0; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: 1fr; }
}
.product { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 6px; background: var(--charcoal); overflow: hidden; transition: border-color .5s var(--ease); }
.product:hover, .product:focus-within { border-color: rgba(198,179,239,.45); }
.product-art { position: relative; height: 170px; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 120%, rgba(198,179,239,.16), transparent 60%), repeating-linear-gradient(90deg, transparent 0 23px, rgba(236,228,246,.035) 23px 24px); }
.product-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 24px; }
.product h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.product p { color: var(--muted); font-size: .95rem; line-height: 1.6; flex: 1; }
.product-buy { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font: 800 1.35rem/1 var(--font); letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.product .btn { height: 42px; padding: 0 18px; gap: 10px; font-size: .68rem; letter-spacing: .1em; }
/* plate */
.plate { position: relative; width: 200px; padding: 8px 14px 10px; border-radius: 6px; text-align: center; color: #1b1526;
  background: linear-gradient(180deg, #f4effb, #d9cdf1); box-shadow: inset 0 0 0 2px #1b1526, inset 0 0 0 4px #efe8fa, 0 14px 30px -12px rgba(0,0,0,.9);
}
.plate::before, .plate::after { content: ""; position: absolute; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #8f7fb5; }
.plate::before { left: 12px; } .plate::after { right: 12px; }
.plate small { display: block; font: 700 .5rem/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: #5d4f80; }
.plate strong { display: block; margin-top: 6px; font: 400 1.35rem/1 var(--display); letter-spacing: .06em; white-space: nowrap; }
/* phone number */
.call { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8,7,11,.7); }
.call-ring { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--black); background: var(--lavender); }
.call-ring svg { width: 18px; height: 18px; }
.call-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--lavender); opacity: 0; }
.product:hover .call-ring::after { animation: ring 1.4s var(--ease) infinite; }
.call strong { font: 400 1.15rem/1 var(--display); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
/* ringtone */
.wave { display: flex; align-items: center; gap: 4px; height: 76px; }
.wave i { width: 5px; height: var(--h); border-radius: 3px; background: linear-gradient(180deg, var(--lavender), var(--lavender-dim)); transform-origin: center; }
.product:hover .wave i { animation: bar .9s var(--ease) infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-duration: .7s; }
@keyframes bar { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* =========================================================
   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: 1040px) {
  .burger { display: grid; }
  .nav-tools { margin-left: auto; }
  .menu {
    grid-column: auto; /* the dropdown spans the whole bar, not just the middle column */
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gutter) 24px; background: rgba(8,7,11,.97); border-bottom: 1px solid var(--line); font-size: .8rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-link { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: center; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--lavender); }
  .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 {
    grid-column: auto; /* the dropdown spans the whole bar, not just the middle column */
    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); text-align: center; }
  .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; }
  .shop-grid { 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) {
  .nav .wrap { gap: 12px; }
  .nav-tools { gap: 8px; }
  .nav-tools .nav-icon { display: none; }
  .menu-discord { display: block; }
  .lang button { padding: 0 9px; }
  .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; }
}
