:root {
  --bg: #090909;
  --panel: #111;
  --ink: #f3f1ea;
  --muted: #8f8a80;
  --acid: #ff5a1f;
  --hot: #ff5a1f;
  --line: #262626;
  --danger: #ff6b4a;
  --ok: #9dff7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

/* top bar */
.top {
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,9,0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.logo em { font-style: normal; color: var(--acid); }
.nav { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.nav a, .nav .chip {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
}
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--acid);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.95rem;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 93% 100%, 0 100%);
}
.btn:hover { background: #ff8a4c; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  clip-path: none;
}
.btn-ghost:hover { border-color: var(--muted); background: #151515; }
.btn-block { width: 100%; clip-path: none; border-radius: 2px; }

/* hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,9,9,.94) 0%, rgba(9,9,9,.55) 48%, rgba(9,9,9,.2) 100%),
    linear-gradient(0deg, rgba(9,9,9,.95) 0%, transparent 45%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  max-width: 640px;
}
.hero-copy h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}
.hero-copy p {
  color: #d3cec4;
  max-width: 34ch;
  font-size: 1.08rem;
  margin-bottom: 1.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section h2 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.section .lead { color: var(--muted); margin-bottom: 1.5rem; max-width: 42ch; }

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .games { grid-template-columns: 1fr; }
}
.game {
  background: var(--bg);
  display: grid;
  grid-template-rows: 160px auto;
}
.game-art {
  background: #1a1a1a center/cover no-repeat;
  position: relative;
}
.game-art .tag {
  position: absolute;
  left: 0.7rem; bottom: 0.7rem;
  background: var(--hot);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
}
.game-body { padding: 1rem 1rem 1.15rem; }
.game-body h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.game-body p { color: var(--muted); font-size: 0.9rem; }

/* auth */
.auth-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(214,255,63,0.07), transparent 55%),
    var(--bg);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.35rem 1.5rem;
}
.auth-card h1 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.auth-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  outline: none;
}
.field input:focus { border-color: var(--acid); }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-links a { color: var(--acid); border-bottom: 1px solid rgba(214,255,63,0.3); }

.alert {
  padding: 0.7rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.alert-error { background: #1a0d0a; border-color: #5a2a1e; color: #ffb39f; }
.alert-ok { background: #0f1a0c; border-color: #2f5a28; color: var(--ok); }

.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.2rem;
}
.panel h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.stat {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.stat:last-child { border-bottom: 0; }
.stat span { color: var(--muted); }

}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
