:root {
  --blue: #0619ba;
  --lime: #bae014;
  --cream: #fcf7e7;
  --paper: #fffdf6;
  --ink: #14163a;
  --muted: #5b5d7a;
  --line: rgba(6, 25, 186, 0.14);
  --under: #0d0c1d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, env(safe-area-inset-left));
  background: rgba(252, 247, 231, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  height: 38px;
  width: auto;
}
.brand b {
  font-weight: 800;
}
nav {
  display: flex;
  gap: 22px;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
}
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- feature ---------- */
.feature {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 460px;
  background: radial-gradient(120% 90% at 20% 30%, #1b1f6e 0%, var(--under) 62%);
  color: #f4ecd6;
  border-radius: 24px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
}
.coin {
  width: min(360px, 80%);
  animation: sway 7s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes sway {
  50% {
    transform: rotate(2.5deg);
  }
}
.embers i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  animation: rise 6s linear infinite;
}
.embers i:nth-child(1) { left: 18%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 34%; animation-delay: 1.4s; }
.embers i:nth-child(3) { left: 52%; animation-delay: 2.8s; }
.embers i:nth-child(4) { left: 67%; animation-delay: 0.7s; }
.embers i:nth-child(5) { left: 80%; animation-delay: 3.9s; }
.embers i:nth-child(6) { left: 44%; animation-delay: 4.8s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translateY(-460px) translateX(14px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coin, .embers i { animation: none; }
}
.feature-copy {
  align-self: center;
  padding: 40px 44px 44px 8px;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--under);
  background: var(--lime);
  padding: 5px 11px;
  border-radius: 999px;
}
.feature h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(46px, 6.5vw, 76px);
  line-height: 1;
  margin: 18px 0 14px;
  color: #f4ecd6;
}
.premise {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
}
.feature p {
  margin: 0 0 6px;
  color: #d7cfba;
}
.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.feature .btn {
  background: #f4ecd6;
  color: var(--under);
}

/* ---------- sections ---------- */
.section {
  padding: 72px 0 0;
  scroll-margin-top: 60px;
}
.section-head {
  margin-bottom: 22px;
}
h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin: 0 0 4px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

/* ---------- arcade ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #e9e3cf;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}
/* adult game: blurred until hovered, so nobody is surprised */
.thumb.adult img {
  filter: blur(14px) saturate(0.9);
  transform: scale(1.08);
}
.thumb.adult:hover img,
.thumb.adult:focus-visible img {
  filter: none;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d8263b;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 8px;
}
.card-body {
  padding: 16px 18px 20px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}
.card p {
  margin: 0 0 4px;
}
.meta {
  font-size: 14px;
  color: var(--muted);
}
.link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card.soon {
  background: transparent;
  border-style: dashed;
  border-width: 2px;
}
.card.soon .thumb {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(6, 25, 186, 0.05) 12px 24px);
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.card.soon p {
  color: var(--muted);
}

/* ---------- sketchbook ---------- */
.sketches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.page {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background: repeating-linear-gradient(transparent 0 27px, rgba(6, 25, 186, 0.08) 27px 28px), var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(20, 22, 58, 0.08);
  border-left: 10px solid #b3302f; /* the red notebook */
}
.page:nth-child(odd) {
  transform: rotate(-1deg);
}
.page:nth-child(even) {
  transform: rotate(0.8deg);
}
.page span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 6px 6px 0;
}
.more {
  margin: 22px 0 0;
}
.more a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* ---------- about ---------- */
.about {
  display: flex;
  gap: 40px;
  align-items: center;
}
.about-mark {
  width: 120px;
  flex: none;
}
.lead {
  font-size: 23px;
  font-weight: 600;
  margin: 6px 0 8px;
  max-width: 30ch;
}
.about p {
  max-width: 52ch;
}

footer {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 24px 20px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .brand {
    font-size: 17px;
  }
  .brand img {
    height: 32px;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 14px;
  }
  .feature {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 16px;
  }
  .feature-art {
    padding: 22px 22px 0;
    height: 210px;
  }
  .coin {
    width: 190px;
  }
  .feature-copy {
    padding: 8px 24px 30px;
  }
  .premise {
    font-size: 19px;
  }
  .section {
    padding-top: 56px;
  }
  h2 {
    font-size: 29px;
  }
  .sketches {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .about {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .about-mark {
    width: 72px;
  }
}
@media (max-width: 430px) {
  .brand span {
    display: none; /* head mark alone on narrow phones, nav stays readable */
  }
}
