:root {
  --bg: #08090c;
  --bg-soft: #101218;
  --panel: #151821;
  --panel-2: #1b1f29;
  --code: #0a0c0f;
  --text: #f5f7fa;
  --muted: #a8afbd;
  --line: #292e3a;
  --accent: #ffcf33;
  --accent-2: #ff8a3d;
  --max: 1180px;
  --radius: 18px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 207, 51, .10), transparent 30rem),
    radial-gradient(circle at 10% 20%, rgba(255, 138, 61, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #090909;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: #090909;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  margin-right: auto;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .14em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: #c9ced7;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 9px;
  border-radius: 9px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.listen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #0b0b0b;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.listen-button:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 20px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}

h3 {
  line-height: 1.25;
  margin-top: 0;
}

.lead {
  color: #d0d5dd;
  font-size: 19px;
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--accent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 1.2em 0;
  color: #dfe5ea;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: border-color .15s ease, filter .15s ease;
}

.button.primary {
  background: var(--accent);
  color: #090909;
  border-color: var(--accent);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.button.secondary:hover {
  border-color: #3a414f;
}

/* ---------- Layout blocks ---------- */

.page-hero {
  padding: 70px 0 45px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: rgba(255,255,255,.018);
  border-top: 1px solid rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21,24,33,.82);
  padding: 25px;
  transition: border-color .15s ease, transform .15s ease;
}

.card:hover {
  border-color: #3a414f;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Prose ---------- */

/* The container keeps the full page width so text lines up with the hero
   and card grids; only the reading column itself is narrowed. */
.container.prose {
  max-width: none;
}

.prose > * {
  max-width: 820px;
}

.prose p,
.prose li {
  color: #cbd0d9;
  font-size: 17px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose h2 {
  margin-top: 48px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 32px;
  font-size: 23px;
}

.prose a {
  color: var(--accent);
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  color: #d8dce3;
  font-size: 19px;
  margin: 30px 0;
}

.notice {
  border: 1px solid rgba(255,207,51,.25);
  background: rgba(255,207,51,.055);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 40px;
  color: #d8dce3;
  font-size: 16px;
}

.status {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* Development history milestones */

.milestone {
  margin: 0 0 28px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.milestone h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
}

.milestone h3 {
  margin-top: 26px;
  font-size: 19px;
}

.milestone > *:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #07080b;
  padding: 55px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 35px;
}

.footer-brand {
  font-weight: 900;
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 6px 0;
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 18px;
  color: #8a909b;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- Unused-but-kept components (previous homepage design) ---------- */

.hero {
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero-card {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,207,51,.13), transparent 45%),
    linear-gradient(135deg, #191d27, #0d0f14);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel);
}

.stat strong {
  display: block;
  font-size: 25px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.cta {
  margin-top: 42px;
  padding: 38px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,207,51,.11), rgba(255,138,61,.05)),
    var(--panel);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.inline-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 11px;
  border-radius: 9px;
  color: #cbd0d8;
  font-size: 13px;
}

/* ---------- Support link (header + footer) ---------- */

.heart {
  color: #ff5a78;
}

.site-nav a.nav-support {
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255, 90, 120, .38);
  background: rgba(255, 90, 120, .09);
}

.site-nav a.nav-support:hover {
  background: rgba(255, 90, 120, .18);
  border-color: rgba(255, 90, 120, .6);
}

.site-nav a.nav-support[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #ff5a78;
}

.site-nav a.nav-support .heart {
  display: inline-block;
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.25); }
  80% { transform: scale(1); }
  88% { transform: scale(1.18); }
}

/* ---------- Support page ---------- */

.support-card {
  display: flex;
  flex-direction: column;
}

.support-card .button-row {
  margin-top: auto;
  padding-top: 22px;
}

.supporters {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 24, 33, .82);
  overflow: hidden;
}

.supporters li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.supporters li:first-child {
  border-top: 0;
}

.supporter-name {
  font-weight: 700;
  color: var(--text);
}

.supporter-name::before {
  content: "♥";
  color: #ff5a78;
  margin-right: 10px;
}

.supporter-amount {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.supporters .supporters-empty .supporter-name {
  font-weight: 400;
  color: var(--muted);
}

.supporters .supporters-empty .supporter-name::before {
  content: none;
}

.supporters .supporters-empty:has(~ li:not(.supporters-empty)) {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  /* Menu collapses into a toggle when JavaScript is available;
     without JavaScript the links simply wrap below the logo. */
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  html.js .site-nav.is-open {
    display: flex;
  }

  html.js .site-nav a {
    font-size: 15px;
    padding: 12px 12px;
  }

  html:not(.js) .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  html.js .site-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-inner {
    gap: 12px;
  }

  .listen-button {
    padding: 9px 13px;
    font-size: 12px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .grid,
  .grid.two,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 55px;
  }

  .hero-card {
    min-height: 300px;
  }

  .section {
    padding: 55px 0;
  }

  .milestone {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .site-nav a.nav-support .heart {
    animation: none;
  }
}

@media (min-width: 1081px) and (max-width: 1240px) {
  .site-nav a {
    font-size: 12.5px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .nav-inner {
    gap: 12px;
  }
}

/* ---------- Dropdown navigation (Games / Project) ---------- */

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-group > a {
  padding-right: 4px;
}

.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 9px 8px 3px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #c9ced7;
  cursor: pointer;
}

.nav-sub-toggle:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-sub-toggle svg {
  transition: transform .15s ease;
}

.nav-sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Desktop: the "current" highlight wraps the link AND the caret, so the
   text stays visually centred inside the pill. */
.site-nav .nav-group > a[aria-current="page"] {
  background: none;
  box-shadow: none;
}

.nav-group.is-current {
  border-radius: 9px;
  background: var(--panel);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav .nav-group.is-current > a,
.nav-group.is-current .nav-sub-toggle {
  color: var(--text);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 220px;
  margin: 10px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

/* invisible bridge so the pointer can travel from the link to the panel */
.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
}

.nav-group.is-open > .nav-sub {
  display: block;
}

.site-nav .nav-sub a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
}

.nav-sub-heading {
  padding: 8px 12px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-sub-heading:first-child {
  padding-top: 4px;
}

.nav-sub-all {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.site-nav .nav-sub-all a {
  color: var(--accent);
  font-weight: 700;
}

/* Pointer devices on desktop: also open on hover */
@media (hover: hover) and (min-width: 1081px) {
  html.js .nav-group:hover > .nav-sub {
    display: block;
  }
}

/* Without JavaScript: no toggle button, open on hover / keyboard focus */
html:not(.js) .nav-sub-toggle {
  display: none;
}

html:not(.js) .nav-group:hover > .nav-sub,
html:not(.js) .nav-group:focus-within > .nav-sub {
  display: block;
}

@media (max-width: 1080px) {
  /* Mobile: highlight just the link row, not the expanded sub-list */
  .nav-group.is-current {
    background: none;
    box-shadow: none;
  }

  .site-nav .nav-group.is-current > a,
  .site-nav .nav-group > a[aria-current="page"] {
    background: var(--panel);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  html.js .nav-group {
    flex-wrap: wrap;
  }

  html.js .site-nav .nav-group > a {
    flex: 1;
    padding-right: 12px;
  }

  html.js .nav-sub-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
  }

  html.js .nav-sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin: 2px 0 8px 12px;
    padding: 2px 0 2px 8px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  html.js .nav-sub::before {
    display: none;
  }

  html:not(.js) .nav-group {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-sub {
    display: flex;
    flex-wrap: wrap;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  html:not(.js) .nav-sub-heading {
    display: none;
  }
}

/* ---------- Coming-soon cards ---------- */

.card-soon {
  border-style: dashed;
  background: transparent;
}

.card-soon:hover {
  border-color: var(--line);
}

.card-soon h3 {
  color: #d0d5dd;
}
