:root {
  --ink: #0b0d10;
  --paper: #f2f0ea;
  --muted: #a8aaa6;
  --acid: #c8f542;
  --acid-dim: #9bc21f;
  --line: rgba(242, 240, 234, 0.12);
  --panel: #12151a;
  --font-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --ink: #f6f3ec;
  --paper: #1c1e18;
  --muted: #5e645c;
  --acid: #3f6a14;
  --acid-dim: #3f6a14;
  --line: rgba(28, 30, 24, 0.14);
  --panel: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(200, 245, 66, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(242, 240, 234, 0.06), transparent 50%);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 3%, 0) scale(1.05);
  }
}

.top,
.hero,
.foot,
.page,
.game-top,
.game-wrap {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
}

.mark img {
  display: block;
  width: 44px;
  height: auto;
}

.mark span {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--acid);
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.account a,
.account-btn {
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.account .account-go {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.who-name {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--acid);
  color: var(--ink);
}

.btn.primary:hover {
  background: var(--acid-dim);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--acid);
}

.page {
  flex: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) 1.5rem 3rem;
}

.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 0.95;
}

.page .lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}

.legal {
  line-height: 1.65;
  color: var(--muted);
}

.legal a {
  color: var(--acid);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
}
