@font-face {
  font-family: Rubik;
  src: url("fonts/Rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  color-scheme: dark light;
  --background: #10151d;
  --login-backdrop: #111d20;
  --sidebar: #141b24;
  --surface: #1b2532;
  --border: #2b3b4c;
  --text: #f4f8f6;
  --muted: #9aabbf;
  --accent: #84e6b1;
  --primary-face: linear-gradient(#a4f0c8, #69d6a0);
  --primary-base: #3b9f72;
  --button-face: linear-gradient(#2d3a49, #1a2430);
  --button-base: #2b3b4c;
  --button-tint: #537d70;
  --hover: #293d48;
  font-family: Rubik, system-ui, sans-serif;
  line-height: 1.6;
}
@media (prefers-color-scheme: light) {
  :root {
    --background: #f2f5f7;
    --login-backdrop: #e9f3ef;
    --sidebar: #e7eef0;
    --surface: #fff;
    --border: #cddadc;
    --text: #10231f;
    --muted: #536d78;
    --accent: #17613e;
    --button-face: linear-gradient(#fff, #e5edea);
    --button-base: #cddadc;
    --button-tint: #608678;
    --hover: #d8e9e5;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  background: var(--background);
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--accent);
  opacity: .13;
  mask: url("game-backdrop.png") center / 1920px 1080px repeat;
}
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2 { margin: 0; line-height: 1.12; }
p { margin: 0; color: var(--muted); }

.shell { width: min(100% - 40px, 920px); margin-inline: auto; }
.masthead { background: var(--sidebar); border-bottom: 1px solid var(--border); }
.masthead .shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { display: block; }
.wordmark { display: grid; line-height: 1.05; }
.wordmark strong { font-size: 19px; font-weight: 700; letter-spacing: .16em; }
.wordmark small { color: var(--muted); font-size: 10px; letter-spacing: .22em; }
.top-link { border-radius: 8px; padding: 5px 10px; color: var(--text); text-decoration: none; transition: background-color 120ms ease; }
.top-link:hover { background: var(--hover); }

.landing-content { padding-block: clamp(32px, 7vw, 76px) 42px; display: grid; gap: 16px; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.hero { padding: clamp(22px, 6vw, 54px); }
.hero h1 { font-size: clamp(2.65rem, 7vw, 4.4rem); letter-spacing: -.045em; }
.hero p { margin-block: 14px 22px; font-size: clamp(1rem, 2vw, 1.125rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
button:enabled, [role="button"]:not([aria-disabled="true"]), .button, .top-link {
  cursor: pointer;
}

.button {
  display: inline-grid;
  position: relative;
  text-decoration: none;
  color: var(--text);
  border-radius: 16px;
  padding-bottom: 4px;
}
.button::before {
  content: "";
  position: absolute;
  inset: 4px 0 0;
  border-radius: inherit;
  background: var(--button-base);
}
.button span {
  display: block;
  position: relative;
  isolation: isolate;
  padding: 8px 14px;
  border-radius: inherit;
  background: var(--button-face);
  font-weight: 600;
  transition: transform 140ms cubic-bezier(.42, 0, .58, 1), filter 140ms ease;
}
.button span::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--button-tint);
  opacity: 0;
  transition: opacity 140ms ease;
}
.button.primary { --button-base: var(--primary-base); color: #10231f; }
.button.primary span { background: var(--primary-face); }
@media (hover: hover) {
  .button:hover span { transform: translateY(-3px); filter: brightness(1.12); }
  .button:hover span::before { opacity: .2; }
}
.details { padding-inline: clamp(20px, 4vw, 32px); }
.feature { display: grid; grid-template-columns: minmax(130px, 1fr) 3fr; align-items: baseline; gap: 12px 24px; padding-block: 18px; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature h2 { font-size: 1.22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 19px; padding-block: 6px; font-size: .93rem; }
.setup-section { padding: clamp(20px, 4vw, 32px); }
.setup-section h2 { font-size: 1.35rem; margin-bottom: 12px; }
.setup-section ol { margin: 0; padding-inline-start: 1.4em; color: var(--muted); }
.setup-section li + li, .setup-section p + p { margin-top: 8px; }
.setup-section strong { color: var(--text); }
.setup-section code { overflow-wrap: anywhere; }
.setup-section pre {
  padding: 12px 16px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: pre-wrap;
}

.confirmation { display: none; }
[data-confirmation] body { display: grid; place-items: center; padding: 24px; background: var(--login-backdrop); }
[data-confirmation] .landing { display: none; }
[data-confirmation] .confirmation { display: grid; justify-items: center; text-align: center; gap: 13px; width: min(100%, 460px); padding: clamp(22px, 5vw, 34px); }
.confirmation h1 { font-size: clamp(1.55rem, 5vw, 2rem); }
@media (max-width: 540px) {
  .shell { width: min(100% - 28px, 920px); }
  .feature { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .button span, .button span::before, .top-link { transition: none; }
  .button:hover span { transform: none; }
}
