:root {
  --bg: #0b0e13;
  --panel: #12161f;
  --panel2: #161b26;
  --line: #232b3a;
  --text: #d8e1ee;
  --muted: #8a97ab;
  --frost: #6fb7e8;
  --frost-dim: #3d6d94;
  --ok: #4cc38a;
  --bad: #e5484d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111, 183, 232, 0.12), transparent);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px 40px; }

.hero { text-align: center; margin-bottom: 36px; }
.mark {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font: 700 34px/1 Georgia, "Times New Roman", serif;
  color: var(--frost);
  border: 1px solid var(--frost-dim);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(111, 183, 232, 0.10), rgba(111, 183, 232, 0.02));
  box-shadow: 0 0 32px rgba(111, 183, 232, 0.18);
}
.hero h1 {
  font: 700 44px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #eef4fb;
}
.tag { color: var(--muted); margin-top: 8px; }
.feats { margin-top: 14px; font-size: 14px; color: var(--frost); }
.feats .dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--frost-dim); margin: 0 10px; vertical-align: middle;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.card h2 { font-size: 19px; margin-bottom: 16px; color: #eef4fb; }

.status { display: flex; align-items: center; gap: 14px; padding: 18px 26px; }
.status .muted { display: block; font-size: 14px; color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status.up .pulse { background: var(--ok); box-shadow: 0 0 12px rgba(76, 195, 138, 0.7); }
.status.down .pulse { background: var(--bad); box-shadow: 0 0 12px rgba(229, 72, 77, 0.7); }

form label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
form input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--text);
  font: inherit;
}
form input:focus { outline: none; border-color: var(--frost-dim); box-shadow: 0 0 0 3px rgba(111, 183, 232, 0.15); }
.hp { position: absolute; left: -9999px; top: -9999px; }
button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font: 600 16px/1 inherit;
  font-family: inherit;
  color: #0b0e13;
  background: linear-gradient(180deg, #8cc8f0, var(--frost));
  border: none; border-radius: 9px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: wait; }
.msg { margin-top: 12px; font-size: 14px; min-height: 21px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }
.fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.steps { margin-left: 20px; }
.steps li { margin-bottom: 8px; }
code {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
  font: 13.5px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--frost);
}
.realmlist {
  margin-top: 14px;
  background: #0d1117;
  border: 1px solid var(--frost-dim);
  border-radius: 9px;
  padding: 14px 18px;
  overflow-x: auto;
}
.realmlist code { background: none; border: none; padding: 0; font-size: 15px; }

footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 28px; }

/* ---- landing (gamai.im) ---- */
.wrap.wide { max-width: 860px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 18px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
  color: #eef4fb; text-decoration: none;
}
.mark.small {
  width: 34px; height: 34px; margin: 0;
  font-size: 18px; border-radius: 8px;
  box-shadow: 0 0 16px rgba(111, 183, 232, 0.15);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font: 600 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0b0e13;
  background: linear-gradient(180deg, #8cc8f0, var(--frost));
  border: none; border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: none;
  color: var(--frost);
  border: 1px solid var(--frost-dim);
}
.btn.small { padding: 9px 18px; font-size: 14px; }

.hero.landing { text-align: left; margin-bottom: 28px; }
.headline {
  font: 700 52px/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  color: #eef4fb;
}
.sub { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 17px; }
.sub strong { color: var(--text); }
.cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.grid .card { margin-bottom: 0; }
.feat h3 { font-size: 16px; color: var(--frost); margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); }

.faq h3 { font-size: 15.5px; color: #eef4fb; margin: 16px 0 6px; }
.faq h3:first-child { margin-top: 0; }
.faq p { font-size: 14.5px; color: var(--muted); }

footer a { color: var(--frost); }

@media (max-width: 480px) {
  .wrap { padding-top: 32px; }
  .hero h1 { font-size: 34px; }
  .headline { font-size: 36px; }
  .card { padding: 20px 18px; }
}
