/* Gxth G!rls LLC · minecraft.gxthgirls.tech
   The gxthgirls.tech look (black canvas, blue sparks), with the server shown as it appears in the multiplayer list. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #080b12;
  --bg-2: #0b1020;
  --card: #0a0e1a;
  --well: #06080f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #98a3c0;
  --blue-deep: #0052cc;
  --blue: #008cff;
  --blue-2: #4db5ff;
  --blue-3: #9ed8ff;
  --blue-rgb: 0, 140, 255;
  --grad: linear-gradient(120deg, var(--blue-deep) 0%, #006ae6 100%); /* white text stays >= 5:1 across the whole fill */
  --grad-text: linear-gradient(100deg, #cfeaff 0%, #4db5ff 40%, #008cff 100%);
  --online: #3ccf6e;
  --offline: #ff5c5c;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-color: #26314a var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--blue-rgb), 0.45); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
h1 { margin: 0; font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 780; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #0d1a36 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; mix-blend-mode: screen; will-change: transform; }
.orb-a { width: 60vmax; height: 60vmax; left: -15vmax; top: -25vmax; background: radial-gradient(circle, rgba(0, 140, 255, 0.7), transparent 60%); animation: drift-a 26s ease-in-out infinite alternate; }
.orb-b { width: 50vmax; height: 50vmax; right: -18vmax; top: -10vmax; background: radial-gradient(circle, rgba(0, 82, 204, 0.75), transparent 60%); animation: drift-b 32s ease-in-out infinite alternate; }
.orb-c { width: 40vmax; height: 40vmax; left: 30vw; top: 45vh; background: radial-gradient(circle, rgba(77, 181, 255, 0.3), transparent 60%); animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-18vw, -10vh) scale(1.2); } }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gridlines { position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(70% 50% at 50% 0%, #000 0%, transparent 100%); mask: radial-gradient(70% 50% at 50% 0%, #000 0%, transparent 100%); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; text-decoration: none; font: inherit; font-weight: 620; white-space: nowrap; cursor: pointer;
  padding: 0.78em 1.3em; border-radius: 999px; border: 1px solid transparent; overflow: hidden; isolation: isolate; line-height: 1.2;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(var(--blue-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%); transform: translateX(-120%); transition: transform 0.7s var(--ease); z-index: -1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(var(--blue-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 11, 18, 0.6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; white-space: nowrap; text-decoration: none; font-weight: 740; font-size: 1.1rem; letter-spacing: 0.08em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a, .nav-lead { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 520; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-lead:hover { color: var(--text); background: var(--surface-2); }
/* Discord sits with the brand, apart from the other sites, as on gxthgirls.tech. */
.nav-leads { display: flex; gap: 2px; margin-left: -12px; }
/* Narrow screens: the logo carries the brand, as on gxthgirls.tech (a little earlier here: this bar also has Discord and Home). */
@media (max-width: 660px) {
  .nav-inner { gap: 8px; padding-right: 8px; }
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-links a, .nav-lead { padding: 0 12px; }
  .nav-leads { margin-left: -6px; }
}

/* ---------- Hero ---------- */
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero {
  width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.lede { margin-top: 18px; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--muted); text-wrap: balance; }

/* ---------- Server card: the multiplayer-list row, then the address ---------- */
.server {
  position: relative; width: min(100%, 600px); margin-top: clamp(32px, 4.5vw, 48px); padding: 20px; text-align: left;
  border-radius: 24px; border: 1px solid var(--line-strong); background: var(--card);
  box-shadow: var(--shadow), 0 40px 100px -40px rgba(var(--blue-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.server::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: var(--grad); }

/* As in the game: icon on the left, MOTD in two lines, player count and signal bars top right. */
.server-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
  grid-template-areas: "icon l1 ping" "icon l2 l2"; column-gap: 16px; row-gap: 2px;
}
.server-icon { grid-area: icon; width: 64px; height: 64px; }
.motd-1 { grid-area: l1; justify-self: start; padding-top: 4px; font-size: 1.25rem; font-weight: 760; line-height: 1.3; letter-spacing: -0.02em; }
.motd-2 { grid-area: l2; color: var(--muted); font-size: 0.97rem; line-height: 1.45; }
.motd-2 .gem { color: var(--blue-2); }
.ping { grid-area: ping; align-self: center; display: flex; align-items: center; gap: 10px; padding-top: 4px; font: 600 0.9375rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { color: var(--text); font-weight: 650; }
.bars { width: 20px; height: 16px; flex: none; overflow: visible; }
.bars rect { fill: var(--line-strong); transition: fill 0.3s; }
.bars .x { display: none; fill: none; stroke: var(--offline); stroke-width: 1.5; stroke-linecap: round; }

.server[data-state="static"] .ping { display: none; } /* no script, no live data */
.server[data-state="loading"] .count { visibility: hidden; }
/* Pinging: the bars sweep, like the game's server list while it waits. */
.server[data-state="loading"] .bars rect { animation: scan 1.1s ease-in-out infinite; }
.server[data-state="loading"] .bars rect:nth-child(2) { animation-delay: 0.1s; }
.server[data-state="loading"] .bars rect:nth-child(3) { animation-delay: 0.2s; }
.server[data-state="loading"] .bars rect:nth-child(4) { animation-delay: 0.3s; }
.server[data-state="loading"] .bars rect:nth-child(5) { animation-delay: 0.4s; }
@keyframes scan { 0%, 50%, 100% { fill: var(--line-strong); } 20% { fill: var(--blue-2); } }
.server[data-state="up"] .bars rect { fill: var(--online); }
.server[data-state="down"] .count, .server[data-state="down"] .bars rect { display: none; }
.server[data-state="down"] .bars .x { display: inline; }
.server[data-state="down"] .motd-2 { color: var(--offline); }

.names { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 80px; padding: 0; }
.names:empty { display: none; }
.names li { padding: 6px 11px; border-radius: 999px; font: 500 0.8125rem/1.2 var(--mono); background: var(--surface-2); border: 1px solid var(--line); }

.address {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; min-height: 58px; padding: 6px 6px 6px 20px;
  border-radius: 999px; background: var(--well); border: 1px solid var(--line);
}
.address-value { flex: 1; min-width: 0; font: 600 1.0625rem/1.3 var(--mono); letter-spacing: 0.01em; white-space: nowrap; -webkit-user-select: all; user-select: all; }
.copy { flex: none; min-height: 44px; padding: 0 18px; }
.copy .i-check, .copy.done .i-copy { display: none; }
.copy.done .i-check { display: block; }

@media (max-width: 480px) {
  .server { padding: 14px; border-radius: 20px; }
  .server-row { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 12px; }
  .server-icon { width: 48px; height: 48px; }
  .motd-1 { padding-top: 0; font-size: 1.125rem; }
  .motd-2 { font-size: 0.9375rem; }
  .ping { padding-top: 0; gap: 8px; font-size: 0.875rem; }
  .names { margin-left: 60px; }
  .address { margin-top: 16px; padding-left: 16px; }
  .address-value { font-size: 0.9375rem; }
  .copy { padding: 0 14px; }
}
/* Too narrow for the address and the button on one line: stack them. */
@media (max-width: 370px) {
  .address { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 6px 6px; border-radius: 22px; text-align: center; }
}

/* ---------- Plugin sections ---------- */
.plugins { width: 100%; max-width: 1008px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.plugins h2 { margin: 0 0 clamp(20px, 3vw, 28px); text-align: center; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 740; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
/* Row/grid as the platform expects; columns follow the space available, not the device. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.card-head { display: flex; align-items: center; gap: 14px; }
/* The server icon's tile: dark square, blue gradient ring. */
.card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--blue-3);
  border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, #0052cc, #008cff 55%, #4db5ff) border-box; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.features li { position: relative; padding-left: 19px; text-wrap: pretty; }
/* A small block for a bullet. */
.features li::before { content: ""; position: absolute; left: 1px; top: 0.52em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }
.features b { color: var(--text); font-weight: 600; }
.features code { padding: 1px 7px; border-radius: 6px; font: 500 0.875em var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.card-links { margin: auto 0 -10px; display: flex; flex-wrap: wrap; column-gap: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 0.9375rem var(--mono); color: var(--blue-2); text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-link svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .card { padding: 18px; } }

/* ---------- Footer ---------- */
.foot { padding: 22px 0 26px; border-top: 1px solid var(--line); background: rgba(4, 6, 11, 0.6); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; }
.foot p { font-size: 0.84rem; color: var(--muted); }

/* ---------- Reveal on load ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; } .js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound img { margin: 0 auto 20px; }
.notfound h1 { margin-bottom: 28px; font-size: clamp(2rem, 5vw, 3.2rem); }
.notfound .btn { min-height: 44px; }

/* Increase Contrast: brighter secondary text and edges */
@media (prefers-contrast: more) {
  :root { --muted: #c3cbe0; --line: rgba(255, 255, 255, 0.24); --line-strong: rgba(255, 255, 255, 0.4); }
  .grain, .gridlines { display: none; }
}
/* Reduce Transparency: the floating bar turns opaque */
@media (prefers-reduced-transparency: reduce) {
  .nav-inner { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Home: back to gxthgirls.tech, same pill on every site */
.home-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 560 0.95rem var(--sans); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background-color 0.2s, border-color 0.2s; }
.home-pill:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(0, 140, 255, 0.5); text-decoration: none; }
.home-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links + .home-pill { margin-left: 6px; }
@media (max-width: 400px) {
  .nav-links a, .nav-lead { padding: 0 8px; }
  .nav-links + .home-pill { margin-left: 0; padding: 0 12px 0 10px; }
}
/* Small phones: Home keeps its icon (the label stays for screen readers), so Discord, Status and Map keep their words. */
@media (max-width: 420px) {
  .nav-links + .home-pill { width: 44px; padding: 0; justify-content: center; }
  .home-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 4px; padding-left: 12px; }
  .nav-links a, .nav-lead { padding: 0 7px; }
  .nav-leads { margin-left: 0; }
}
