/* GameServerAI website: frosted panels over an aurora night. Cyan marks actions, violet marks the smart parts
   (server finder, assistant), green means live. Circuit-node corners mark showcase panels.
   Website development and design by Shahid Malla (https://shahidmalla.com) */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/figtree-400-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/figtree-400-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #040A12;
  --text: #EAF4F7;
  --soft: #C3D3DC;
  --muted: #93A9B6;
  --faint: #6A808E;
  --cyan: #4FF0DC;
  --cyan-deep: #16BFAE;
  --violet: #A592FF;
  --live: #7CF29C;
  --edge: rgba(160, 225, 255, .13);
  --edge-hi: rgba(160, 225, 255, .24);
  --fill: rgba(7, 17, 29, .52);
  --shine: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015) 45%);
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, .85);
  --r: 18px;
  --wrap: 1240px;
  --gutter: 24px;
  --display: "Chakra Petch", "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--night) url("../img/art/backdrop-wide.webp") 50% 40% / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { body::before { background-image: url("../img/art/backdrop-tall.webp"); background-position: 50% 35%; } }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(3, 7, 13, .3); }
@supports (animation-timeline: scroll()) {
  body::after { background: rgba(3, 7, 13, .1); animation: dim linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes dim { to { background: rgba(3, 7, 13, .6); } }
}

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9BFBF0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: #03211D; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0 0 .45em; color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 70px); }
h2 { font-size: clamp(30px, 3.3vw, 44px); }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--soft); max-width: 54ch; }

/* ---------- panels ---------- */
.panel {
  background-color: var(--fill);
  background-image: var(--shine);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .panel { background-color: rgba(6, 14, 24, .94); }
}
/* circuit corners: a node dot on each corner with a short trace along both edges */
.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  pointer-events: none;
  --c: var(--cyan);
  --l: 46px;
  background:
    radial-gradient(circle at 0 0, var(--c) 0 3px, transparent 3.5px) top left / 10px 10px,
    radial-gradient(circle at 100% 0, var(--c) 0 3px, transparent 3.5px) top right / 10px 10px,
    radial-gradient(circle at 0 100%, var(--c) 0 3px, transparent 3.5px) bottom left / 10px 10px,
    radial-gradient(circle at 100% 100%, var(--c) 0 3px, transparent 3.5px) bottom right / 10px 10px,
    linear-gradient(90deg, var(--c), transparent) top left / var(--l) 1px,
    linear-gradient(180deg, var(--c), transparent) top left / 1px var(--l),
    linear-gradient(270deg, var(--c), transparent) top right / var(--l) 1px,
    linear-gradient(180deg, var(--c), transparent) top right / 1px var(--l),
    linear-gradient(90deg, var(--c), transparent) bottom left / var(--l) 1px,
    linear-gradient(0deg, var(--c), transparent) bottom left / 1px var(--l),
    linear-gradient(270deg, var(--c), transparent) bottom right / var(--l) 1px,
    linear-gradient(0deg, var(--c), transparent) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cyan); color: #03211D; box-shadow: 0 10px 28px -12px rgba(79, 240, 220, .7); }
.btn-primary:hover { background: #8CF7EA; color: #03211D; }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--edge-hi); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); border-color: rgba(160, 225, 255, .4); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header: a full-width bar ---------- */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--edge); background: rgba(4, 10, 18, .68); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.head-in { position: relative; display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linejoin: round; }
.brand-mark circle { fill: var(--cyan); stroke: none; }
.brand-word { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.brand-ai { padding: 1px 6px 0; border: 1px solid rgba(165, 146, 255, .6); border-radius: 6px; color: var(--violet); font-size: 14px; line-height: 1.4; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a:not(.btn) { padding: 10px 14px; border-radius: 8px; color: var(--soft); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.site-nav .nav-login { margin-left: 10px; }
.site-nav .btn { margin-left: 8px; min-height: 42px; }
.nav-toggle { display: none; }
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--edge-hi); border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s; }
  .nav-toggle i { position: relative; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .nav-toggle i::before { top: -5px; }
  .nav-toggle i::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border: 1px solid var(--edge); border-radius: 16px; background: rgba(5, 12, 22, .95); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 14px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); border-radius: 8px; }
  .site-nav .nav-login, .site-nav .btn { margin: 0; }
  .site-nav .btn { margin-top: 6px; }
}

/* ---------- hero: copy beside the server finder ---------- */
.hero { padding: 56px 0 44px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(4, 10, 18, .5); color: var(--soft); font-size: 14px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.hero-copy .lede { margin-bottom: 0; }
.from b { color: #fff; font-weight: 700; }
.from > span { color: var(--muted); font-weight: 400; }
.froms { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.froms li { display: flex; align-items: baseline; gap: 6px; }
@media (max-width: 1040px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero-tool { max-width: 620px; } }

/* ---------- server finder ---------- */
.finder { padding: 26px; border-color: rgba(165, 146, 255, .28); }
.finder.frame::before { --c: var(--violet); --l: 34px; inset: 7px; opacity: .8; }
.finder-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--edge); }
.finder-head h2 { margin: 0; font-size: 21px; }
.finder-head p { margin: 0; color: var(--muted); font-size: 14px; }
.finder-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(165, 146, 255, .14); border: 1px solid rgba(165, 146, 255, .35); }
.finder-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; }
.finder-reset { margin-left: auto; padding: 8px 12px; border: 1px solid var(--edge-hi); border-radius: 8px; background: none; color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.finder-reset:hover { color: #fff; border-color: var(--violet); }
.finder-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ask { position: relative; display: inline-block; margin: 0 0 10px; padding: 9px 14px; border-radius: 4px 14px 14px 14px; background: rgba(165, 146, 255, .14); color: #fff; font-size: 15px; font-weight: 600; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 13px; border: 1px solid var(--edge-hi); border-radius: 10px;
  background: rgba(4, 10, 18, .45); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.pick img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; margin-left: -5px; }
.pick:hover { border-color: var(--cyan); background: rgba(79, 240, 220, .08); }
.pick[aria-pressed="true"] { border-color: var(--cyan); background: rgba(79, 240, 220, .16); color: #fff; }
.step.is-done .picks .pick:not([aria-pressed="true"]) { display: none; }
.step.is-done .ask { opacity: .75; }
.finder-result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--edge); animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.why { margin: 0 0 12px; color: var(--soft); font-size: 15px; }
.match { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid rgba(79, 240, 220, .45); border-radius: 14px; background: rgba(79, 240, 220, .07); }
.match-name { margin: 0; color: #fff; font-family: var(--display); font-size: 22px; font-weight: 700; }
.match-specs { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.match-price { margin: 0; color: #fff; font-family: var(--display); font-size: 28px; font-weight: 700; white-space: nowrap; }
.match-price span { color: var(--muted); font-family: "Figtree", sans-serif; font-size: 14px; font-weight: 400; }
.match-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 520px) { .finder { padding: 16px; } .match { flex-direction: column; align-items: flex-start; } }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec-tight { padding: 8px 0 40px; }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); }
.sec-head p:last-child { margin-bottom: 0; }

/* ---------- smart help ---------- */
.smart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.smart-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.smart-card.is-ai { border-color: rgba(165, 146, 255, .32); }
.smart-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: rgba(79, 240, 220, .1); border: 1px solid rgba(79, 240, 220, .3); }
.smart-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-ai .smart-icon { background: rgba(165, 146, 255, .12); border-color: rgba(165, 146, 255, .35); }
.is-ai .smart-icon svg { stroke: var(--violet); }
.smart-card h3 { margin-bottom: 8px; }
.smart-card p { color: var(--muted); font-size: 15px; }
.mini-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.mini-picks span { padding: 5px 10px; border: 1px solid var(--edge-hi); border-radius: 8px; color: var(--soft); font-size: 13px; font-weight: 600; }
.mini-picks .is-match { border-color: rgba(79, 240, 220, .6); background: rgba(79, 240, 220, .12); color: #fff; }
.guide-list { display: grid; gap: 6px; width: 100%; margin: 4px 0 18px; padding: 0; list-style: none; }
.guide-list li { padding: 8px 12px; border: 1px solid var(--edge); border-radius: 8px; background: rgba(4, 10, 18, .4); color: var(--soft); font-size: 14px; }
.more { margin-top: auto; font-weight: 700; text-decoration: none; }
.more::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.chat { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.msg { margin: 0; max-width: 90%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.msg.me { justify-self: end; border-bottom-right-radius: 4px; background: rgba(79, 240, 220, .14); color: #DFFBF7; }
.msg.bot { border-bottom-left-radius: 4px; background: rgba(165, 146, 255, .16); color: #ECE8FF; }
@media (max-width: 960px) { .smart { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page heads on inner pages ---------- */
.page-head { padding: 44px 0 40px; }
.head-frame { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 44px 48px; }
.head-frame.is-solo { grid-template-columns: minmax(0, 1fr); }
.head-frame .lede { margin-bottom: 0; }
.head-art img { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: 12px; border: 1px solid var(--edge-hi); }
.head-fan { position: relative; height: 330px; }
.head-fan img { position: absolute; top: 6%; width: 42%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--edge-hi); box-shadow: var(--shadow); }
.head-fan img:nth-child(1) { left: 4%; rotate: -6deg; }
.head-fan img:nth-child(2) { left: 29%; top: 0; z-index: 2; border-color: rgba(79, 240, 220, .55); }
.head-fan img:nth-child(3) { left: 54%; rotate: 6deg; }
@media (max-width: 900px) {
  .head-frame { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; gap: 28px; }
  .head-fan { height: 250px; max-width: 420px; }
  .head-fan img { width: 38%; }
  .head-fan img:nth-child(1) { left: 6%; }
  .head-fan img:nth-child(2) { left: 31%; }
  .head-fan img:nth-child(3) { left: 56%; }
}

/* ---------- games ---------- */
.games-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--edge-hi); border-radius: 999px; background: rgba(4, 10, 18, .5); color: var(--soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { color: #fff; border-color: rgba(79, 240, 220, .5); }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #03211D; }
.game-search { position: relative; width: min(100%, 300px); }
.game-search svg { position: absolute; z-index: 1; left: 15px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.game-search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid var(--edge-hi); border-radius: 999px; background: rgba(4, 10, 18, .6); color: var(--text); font: inherit; font-size: 15px; }
.game-search input::placeholder { color: var(--faint); }
.game-search input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.game a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--edge); border-radius: 14px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); background: #08121E; transition: border-color .2s; }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 18, .1) 0%, rgba(4, 10, 18, 0) 30%, rgba(4, 10, 18, .6) 62%, rgba(4, 10, 18, .95) 100%); }
.game-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 6px; background: rgba(4, 10, 18, .72); color: var(--soft); font-size: 12px; font-weight: 600; }
.game-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 2px; padding: 12px 14px 14px; }
.game-name { color: #fff; font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.15; }
.game-note { color: #BCC9D3; font-size: 13px; line-height: 1.35; }
.game-from { margin-top: 6px; color: var(--soft); font-size: 13px; }
.game a:hover { border-color: rgba(79, 240, 220, .6); }
.game a:hover img { transform: scale(1.05); }
.game-empty { margin: 8px 0 0; padding: 18px 20px; border: 1px dashed var(--edge-hi); border-radius: 14px; color: var(--soft); max-width: none; }
.game-empty b { color: #fff; }
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .game-name { font-size: 16px; } .game-search { width: 100%; } }

/* ---------- plans ---------- */
.plans { padding: 24px; }
.plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--edge); border-radius: 12px; background: rgba(0, 0, 0, .3); }
.seg button { padding: 10px 20px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button[aria-selected="true"] { background: var(--cyan); color: #03211D; }
.plans-meta { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 14px; }
.plans-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.plans[data-live="true"] .plans-meta i { background: var(--live); box-shadow: 0 0 10px var(--live); }
.plan-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(3, 8, 15, .55); }
.plan::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: .7; }
.plan.is-match { border-color: rgba(79, 240, 220, .6); background: rgba(79, 240, 220, .06); }
.plan-match { position: absolute; top: -12px; right: 18px; margin: 0; padding: 3px 10px; border-radius: 6px; background: var(--violet); color: #120A33; font-size: 12px; font-weight: 700; }
.plan-name { margin: 0 0 4px; font-size: 22px; }
.plan-intro { min-height: 2.8em; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 16px; }
.plan-price b { color: #fff; font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-specs { display: grid; margin: 0 0 22px; }
.plan-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 14px; }
.plan-specs dt { color: var(--muted); }
.plan-specs dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.plan .btn { width: 100%; margin-top: auto; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 640px) {
  .plans { padding: 16px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 10px; }
  .plan-intro { min-height: 0; }
}

/* ---------- included ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.feat { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 20px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(5, 13, 23, .55); }
.feat svg { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: rgba(79, 240, 220, .08); fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- two kinds of server ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.path { display: flex; flex-direction: column; overflow: hidden; }
.path-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--edge); }
.path-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.path-fan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.path-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 26px 26px 28px; }
.path-body p { color: var(--muted); }
.path-body .btn { margin-top: auto; }
.ticks { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border: 2px solid var(--cyan); border-radius: 50%; }
@media (max-width: 860px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ordering steps: three numbered panels ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px 24px 84px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 22px; color: var(--cyan); font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- questions: heading beside the list ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 100px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--edge); border-radius: 12px; background: var(--fill); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.faq details[open] { border-color: rgba(79, 240, 220, .35); }
.faq summary { position: relative; padding: 18px 54px 18px 20px; color: #fff; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 2px; background: var(--cyan); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; } .faq-wrap .sec-head { position: static; } }

/* ---------- closing ---------- */
.closing { padding: 40px 0 64px; }
.closing-in { isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 48px 48px; }
.closing-art { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); opacity: .45; }
.closing-art img { width: 100%; height: 100%; object-fit: cover; }
.closing-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 18, .95) 0%, rgba(4, 10, 18, .82) 55%, rgba(4, 10, 18, .6) 100%); }
.closing-copy { max-width: 600px; }
.closing h2 { margin-bottom: 10px; }
.closing p { margin: 0; color: var(--soft); }
.closing .actions { margin-top: 0; }
@media (max-width: 700px) { .closing-art { grid-template-columns: repeat(3, minmax(0, 1fr)); } .closing-in { padding: 32px 22px; } }

/* ---------- about and contact rows ---------- */
.rows { margin: 0; padding: 6px 28px; list-style: none; }
.rows li { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--edge); }
.rows li:first-child { border-top: 0; }
.rows h3 { margin: 0; font-size: 19px; }
.rows p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .rows { padding: 4px 18px; } .rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; } .rows .btn { justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; } }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px; }
.toc h2 { margin: 0 0 10px; font-size: 16px; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.prose { padding: 38px 44px; }
.prose h2 { margin: 1.7em 0 .5em; font-size: 23px; scroll-margin-top: 100px; }
.prose h2:first-of-type { margin-top: .6em; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.updated { color: var(--faint); font-size: 14px; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .prose { padding: 26px 20px; } }

/* ---------- 404 ---------- */
.lost { padding: 56px 0 72px; }
.lost-in { text-align: center; padding: 64px 32px; }
.lost-in .lede, .lost-in p { margin-left: auto; margin-right: auto; }
.lost-in .actions { justify-content: center; }
.offline { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(0, 0, 0, .25); color: var(--muted); font-size: 14px; }
.offline i { width: 8px; height: 8px; border-radius: 50%; background: #FF5C7A; box-shadow: 0 0 10px #FF5C7A; }

/* ---------- footer ---------- */
.site-foot { margin-top: 24px; padding: 44px 0 26px; border-top: 1px solid var(--edge); background: rgba(3, 7, 13, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-brand p { margin: 14px 0 6px; color: var(--muted); font-size: 15px; }
.site-foot h2 { margin: 4px 0 12px; font-size: 15px; }
.site-foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-foot a:not(.brand) { color: var(--muted); font-size: 15px; text-decoration: none; }
.site-foot a:not(.brand):hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--edge); color: var(--faint); font-size: 13px; }
.foot-base p { margin: 0; }
.site-foot .credit a { color: var(--faint); font-size: 12px; }
.site-foot .credit a:hover { color: var(--cyan); }
@media (max-width: 960px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(34px, 9.4vw, 42px); }
  h1, h2 { overflow-wrap: break-word; }
  .hero { padding-top: 32px; }
  .sec { padding: 40px 0; }
  .brand-word { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
