/* =========================================================
   GokilCraft - shared base for the home page and player account.
   Kept light on purpose: system fonts, flat surfaces, no blur,
   no filters and no looping animations besides the status dot.
   ========================================================= */
:root {
  --bg: #0b0e15;
  --bg-2: #0f131c;
  --surface: #131823;
  --surface-2: #1a2030;
  --line: #242b3e;
  --line-2: #323a52;
  --gold: #d9b45a;
  --gold-hi: #f2d68c;
  --gold-lo: #8a6a22;
  --teal: #6dd3c7;
  --text: #ece8dc;
  --muted: #959cb2;
  --ok: #5fdc8a;
  --warn: #ffc85a;
  --danger: #ff6b6b;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pixel: "Silkscreen", var(--font);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg) radial-gradient(1000px 460px at 85% -140px, rgba(217, 180, 90, .09), transparent 70%) no-repeat;
  color: var(--text); font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--gold); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: #1a1408; font-weight: 700; }
.skip-link:focus { top: 12px; color: #1a1408; }

/* ---------------------------------------------------- navbar */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 26px; height: 39px; }
.brand__name { display: block; font-family: var(--pixel); font-size: 17px; line-height: 1; }
.brand__name span { color: var(--gold); }
.brand__sub { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, background-color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav__links .btn { margin-left: 8px; color: #1a1408; }
.nav__links .btn:hover { color: #1a1408; background: var(--gold-hi); }

/* bottom tab bar, phones only */
.tabbar { display: none; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 700 14.5px/1 var(--font); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: #1a1408; }
.btn--gold:hover { background: var(--gold-hi); color: #1a1408; }
.btn--ghost { background: var(--surface-2); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold-lo); color: var(--text); }
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { background: #4752c4; color: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------- surfaces & shared bits */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.section { padding-top: 80px; }
.section__head { margin-bottom: 28px; }
.section__title { font-size: clamp(24px, 3vw, 30px); }
.section__lead { max-width: 580px; margin-top: 10px; color: var(--muted); }

/* stat tile, used on both pages */
.tile { --c: var(--gold); display: grid; gap: 2px; align-content: start; padding: 18px; min-width: 0; }
.tile__ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 9px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tile__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile strong { font-size: 22px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { font-size: 12.5px; color: var(--muted); }
.tile--gold { --c: #f2c94c; }
.tile--teal { --c: var(--teal); }
.tile--pink { --c: #ff6fa3; }
.tile--violet { --c: #a78bfa; }
.tile--green { --c: var(--ok); }
.tile--red { --c: var(--danger); }

.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--muted); }
.dot--on { background: var(--ok); animation: pulse 2s ease-in-out infinite; }
.dot--off { background: var(--danger); }
@keyframes pulse { 50% { opacity: .4; } }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; border: 1px solid; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.badge--ok { color: #8ef0b0; background: rgba(95, 220, 138, .1); border-color: rgba(95, 220, 138, .3); }
.badge--warn { color: #ffd98a; background: rgba(255, 200, 90, .1); border-color: rgba(255, 200, 90, .3); }
.badge--bad { color: #ff9c9c; background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .35); }
.badge--muted { color: var(--muted); background: rgba(255, 255, 255, .03); border-color: var(--line); }

.alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 14px; }
.alert--error { color: #ffb3b3; background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .35); }
.alert--ok { color: #b6f2cb; background: rgba(95, 220, 138, .08); border-color: rgba(95, 220, 138, .35); }

.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 500 16px var(--font); transition: border-color .15s;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23959cb2' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field__hint { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.input::placeholder { color: #5f6684; }
.input:focus { outline: none; border-color: var(--gold); }

/* ---------------------------------------------------- footer & toast */
.footer { margin-top: 80px; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Home page
   ========================================================= */
.hero { padding: 72px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { max-width: 540px; margin: 18px 0 28px; color: var(--muted); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(217, 180, 90, .16), transparent); }
.hero__art img { width: min(260px, 70%); height: auto; }

.ip-copy {
  display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 6px 0 16px;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s;
}
.ip-copy:hover { border-color: var(--gold-lo); }
.ip-copy__addr { font-family: var(--pixel); font-size: 14px; }
.ip-copy__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ip-copy:hover .ip-copy__btn { color: var(--text); }

.server-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.server-status b { color: var(--text); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { width: 15px; height: 15px; color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 22px; transition: border-color .15s; }
.feature:hover { border-color: var(--line-2); }
.feature .tile__ico { margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; font-size: 16px; }
.feature p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 8px;
  background: var(--gold); color: #1a1408; font-family: var(--pixel); font-size: 15px;
}
.step h3 { margin-bottom: 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }
.step b { color: var(--text); }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.about__body { padding: 26px; }
.about__body h3 { margin: 24px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.about__body h3:first-child { margin-top: 0; }
.about__body p { color: var(--muted); }
.mission { margin: 0; padding: 0; list-style: none; }
.mission li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.mission li:first-child { border-top: 0; padding-top: 0; }
.mission .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.team { display: grid; gap: 14px; }
.member { display: flex; align-items: center; gap: 16px; padding: 18px; }
.member__avatar { --c: var(--gold); display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 10px; font-family: var(--pixel); font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.member__avatar--teal { --c: var(--teal); }
.member__avatar--steel { --c: #b4bbcf; }
.member__role { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.member h3 { margin: 2px 0; font-size: 15px; }
.member p { color: var(--muted); font-size: 13px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 80px; padding: 32px; border-color: rgba(217, 180, 90, .3); background: linear-gradient(120deg, rgba(217, 180, 90, .08), transparent 60%), var(--surface); }
.cta h2 { font-size: 24px; }
.cta p { max-width: 460px; margin-top: 6px; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Legal pages (privacy policy)
   ========================================================= */
.legal { width: min(820px, 100% - 32px); margin-inline: auto; padding-top: 56px; }
.legal__head h1 { font-size: clamp(30px, 5vw, 42px); }
.legal__head p { margin-top: 10px; color: var(--muted); }
.legal__head { margin-bottom: 26px; }
.legal section { margin-top: 18px; padding: 22px 24px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 19px; }
.legal h2 span { color: var(--gold); font-family: var(--pixel); font-size: 15px; font-weight: 400; }
.legal h3 { margin: 16px 0 6px; font-size: 15px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p + p, .legal ul + p { margin-top: 10px; }
.legal b, .legal strong { color: var(--text); }
.legal a { color: var(--teal); font-weight: 600; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font: 600 .9em var(--mono); color: var(--gold-hi); }
.data-table { display: grid; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.data-table > div { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; padding: 14px 16px; background: var(--bg-2); }
.data-table > div + div { border-top: 1px solid var(--line); }
.data-table dt { color: var(--text); font-weight: 700; font-size: 14px; }
.data-table dd { margin: 0; color: var(--muted); font-size: 14px; }
.data-table dd p + p { margin-top: 6px; }

/* ---------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; --tabbar-h: 62px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .nav__links { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 4px 6px env(safe-area-inset-bottom); background: rgba(15, 19, 28, .97); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; height: 54px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .tabbar a:active { background: var(--surface-2); }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .tabbar .ico { width: 22px; height: 22px; }
  .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 40px; }
  .section { padding-top: 60px; }
  .cta { margin-top: 60px; padding: 24px; }
  .footer { margin-top: 60px; padding-bottom: 24px; }
  .btn { height: 46px; }
  .btn--sm { height: 38px; }
  .legal { padding-top: 32px; }
  .legal section { padding: 18px 16px; }
  .data-table > div { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero__actions > * { width: 100%; justify-content: space-between; }
  .hero__actions .btn { justify-content: center; }
  .tile { padding: 16px; }
  .tile strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
