:root {
  --bg: #141414;
  --bg-raise: #1d1d1d;
  --bg-card: #202020;
  --line: #2e2e2e;
  --text: #ece7dd;
  --text-dim: #a39d90;
  --gold: #e0a83c;
  --gold-hi: #f2c063;
  --green: #6fbf73;
  --radius: 12px;
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}
a { color: var(--gold); }
img { max-width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 5vw;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-weight: 800; letter-spacing: 0.12em;
  color: var(--text); text-decoration: none;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  margin-left: 1.4rem; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--gold-hi); }

/* ---------- hero ---------- */
.hero {
  padding: 3.5rem 5vw 2.5rem;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 800; }
.accent { color: var(--gold); }
.hero-sub {
  margin: 1.4rem auto 2.2rem; max-width: 560px;
  color: var(--text-dim); font-size: 1.1rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1a1305; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ---------- sections ---------- */
.section { padding: 3rem 5vw 4.5rem; max-width: 1100px; margin: 0 auto; }
#games { padding-top: 1rem; }
#games h2 { margin-top: 2.5rem; }
.section h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.section-sub { color: var(--text-dim); margin-bottom: 2.2rem; max-width: 620px; }

/* ---------- game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.game-art {
  aspect-ratio: 3 / 2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #26221a, #1a1a20);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-art[data-art="casino"]  { background: linear-gradient(135deg, #2b1414, #1a1020); }
.game-art[data-art="trader"]  { background: linear-gradient(135deg, #10231a, #101a26); }
.game-art[data-art="mech"]    { background: linear-gradient(135deg, #1a2026, #23181f); }
.game-art[data-art="beet"]    { background: linear-gradient(135deg, #231a10, #17231a); }
.game-art[data-art="stellar"] { background: linear-gradient(135deg, #131328, #201325); }
.game-art[data-art="claude"]  { background: linear-gradient(135deg, #2a1c10, #10202a); }
.game-art[data-art="dragon"]  { background: linear-gradient(135deg, #2a1010, #2a2010); }
.game-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.game-body h3 { font-size: 1.2rem; }
.game-body p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }
.game-body .btn { align-self: flex-start; }

.badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.badge-live { background: rgba(111, 191, 115, 0.15); color: var(--green); }
.badge-dev  { background: rgba(224, 168, 60, 0.13); color: var(--gold); }

.community-strip {
  margin-top: 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
}

/* ---------- featured game ---------- */
.featured {
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.featured-label {
  padding: 0.7rem 1.4rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--line);
}
.featured-stage { position: relative; }
.featured-frame {
  display: block; width: 100%; height: 560px; border: 0;
  background: #000;
}
.featured-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: 0; cursor: pointer;
  background: rgba(20, 20, 20, 0.72);
  color: var(--text); font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.18s ease, background 0.18s ease;
  z-index: 2;
}
.featured-stage:hover .featured-nav,
.featured-nav:focus-visible { opacity: 1; }
.featured-nav:hover { background: var(--gold); color: #1a1305; }
.featured-nav.prev { left: 0; border-radius: 0 8px 8px 0; }
.featured-nav.next { right: 0; border-radius: 8px 0 0 8px; }
.featured-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--line);
}
.featured-count { color: var(--text-dim); font-size: 0.85rem; margin-left: 0.6rem; }
.featured-actions { display: flex; align-items: center; gap: 0.9rem; }
.featured-dots { display: flex; gap: 0.4rem; }
.featured-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
}
.featured-dots button:hover { transform: scale(1.25); }
.featured-dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 720px) { .featured-nav { opacity: 1; } }

/* ---------- signup ---------- */
.section-signup {
  background: linear-gradient(135deg, #26200f, #1a1410);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 5vw;
}
.signup-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.signup-inner h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.signup-inner p { color: var(--text-dim); }
.signup-form {
  margin-top: 1.5rem;
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap;
}
.signup-form input {
  flex: 1; min-width: 220px; max-width: 340px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text);
  font-size: 1rem; font-family: var(--font);
}
.signup-form input:focus { outline: none; border-color: var(--gold); }
.signup-form button { border: 0; cursor: pointer; font-size: 1rem; font-family: var(--font); }
.signup-note { font-size: 0.8rem; margin-top: 0.8rem; opacity: 0.6; }

/* ---------- business sections ---------- */
.section-biz {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.section-biz > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* inline-block buttons escape the centred column, so wrap them in .biz-cta */
.biz-cta { margin-top: 1.6rem; }
.section-biz h2 { font-family: Georgia, "Times New Roman", serif; }
.section-biz .section-sub { margin-bottom: 2rem; }
.biz-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.biz-col h3 { margin-bottom: 0.8rem; color: var(--gold); }
.biz-col ul { list-style: none; }
.biz-col li {
  padding-left: 1.4rem; position: relative; margin-bottom: 0.7rem;
  color: var(--text-dim);
}
.biz-col li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.biz-col .btn { margin-top: 1.2rem; }

.section-mis { background: var(--bg); border-top: none; }
.section-mis p { max-width: 620px; color: var(--text-dim); margin-bottom: 1.6rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start;
}
.about-photo {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-btns { margin-top: 1.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 5vw; text-align: center;
  color: var(--text-dim); font-size: 0.9rem;
}
.footer-links { margin-top: 0.4rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-hi); }

/* ---------- konami achievement toast ---------- */
.achievement {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 150%);
  background: #1d1d1d; border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.4rem; max-width: 420px;
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.5;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 100;
}
.achievement.show { transform: translate(-50%, 0); }
.achievement strong { display: block; color: var(--gold); margin-bottom: 0.3rem; }
.achievement b { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .featured-frame { height: 70vh; min-height: 380px; }
  .biz-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 180px; }
  .nav-links a { margin-left: 0.9rem; }
}
