/* Mikey of Legend — site styles. Apple inspired: black canvas, big type, lots of air. */

@import url("base.css");

:root {
  --bg: #050603;
  --surface: #14170f;
  --surface-2: #1e2216;
  --ink: #f5f5f0;
  --ink-dim: #a9ac9e;
  --muted: #7c8070;
  --line: rgba(198, 226, 30, 0.14);
  --accent: #ff453a;
  --accent-bright: #ff6961;
  --slime: #c6e21e;
  --slime-bright: #d9f13a;
  --slime-glow: rgba(198, 226, 30, 0.35);
  --platform-purple: #7258d8;
  --footer-divider-space: 28px;
  --footer-columns-padding-bottom: var(--footer-divider-space);
  --footer-columns-margin-bottom: var(--footer-divider-space);
  --footer-margin-top: calc(var(--footer-divider-space) * 2);
  --footer-social-hover-border: var(--slime);
  --footer-social-hover-bg: var(--surface-2);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1040px;
}

html {
  scroll-behavior: smooth;
}

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

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--slime);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 3, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
  position: sticky;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.socials a {
  color: var(--muted);
  display: flex;
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--slime);
}

.socials svg {
  width: 18px;
  height: 18px;
  display: block;
}

.socials img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Footer socials should be larger for better visibility */
footer .socials svg {
  width: 36px;
  height: 36px;
}

footer .socials img {
  width: 20px;
  height: 20px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a.active {
  color: var(--ink);
}

.nav a.nav-btn {
  background: var(--slime);
  color: #10130a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
  margin: 0;
}

.nav a.nav-btn:hover {
  background: var(--slime-bright);
  color: #10130a;
}

/* Keep only Follow in the top navbar; dropdown links are unaffected. */
.nav>a:not(.nav-btn):not(.cta) {
  display: none;
}

/* Navbar fallback styles to keep the menu usable if base.css is stale or missing. */
.account-shell {
  position: relative;
}

.account-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 18, 11, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-toggle svg {
  width: 20px;
  height: 20px;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 20, 12, 0.98), rgba(12, 15, 9, 0.98));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  padding: 8px;
  display: none;
  z-index: 30;
}

.account-shell.open .account-menu {
  display: block;
}

.account-menu-section {
  display: grid;
  gap: 4px;
}

.account-menu-label {
  margin: 0;
  padding: 4px 8px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.account-menu-item {
  display: block;
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
}

.account-menu-item:hover,
.account-menu-item.is-current {
  color: var(--ink);
  background: rgba(198, 226, 30, 0.1);
  border-color: rgba(198, 226, 30, 0.24);
}

/* ---------- Hero ---------- */

.hero {
  padding: 120px 30px 80px;
  text-align: center;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto 24px;
  max-width: 18ch;
}

.hero .lede {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* non-centered hero variant, used on inner pages */
.hero.left {
  text-align: left;
  padding: 100px 30px 56px;
}

.hero.left h1 {
  margin: 0 0 20px;
}

.hero.left .lede {
  margin: 0 0 32px;
}

.hero.left .hero-actions {
  justify-content: flex-start;
}

.games-index-hero {
  padding: 88px 30px 32px;
}

.games-index-hero h1 {
  margin: 0 0 16px;
}

.games-index-hero .lede {
  margin: 0 0 24px;
}

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

.btn {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

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

.btn.primary {
  background: var(--slime);
  border-color: var(--slime);
  color: #10130a;
  font-weight: 600;
  box-shadow: 0 0 24px var(--slime-glow);
}

.btn.primary:hover {
  background: var(--slime-bright);
  border-color: var(--slime-bright);
  box-shadow: 0 0 30px var(--slime-glow);
}

/* ---------- Section scaffolding ---------- */

section.block {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

section.block:first-of-type,
.keyart-hero+section.block,
.keyart-hero-rotator+section.block {
  border-top: none;
}

.block h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
}

.see-all {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--slime);
  white-space: nowrap;
}

.see-all:hover {
  text-decoration: underline;
}

/* ---------- Status pill (signature element) ---------- */

.stamp {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(114, 88, 216, 0.18);
  color: var(--platform-purple);
}

.stamp.green {
  background: rgba(198, 226, 30, 0.15);
  color: var(--slime-bright);
}

.stamp.muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card .tagline {
  font-size: 13px;
  color: var(--muted);
}

.card p.desc {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.card .meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Blog list ---------- */

.post-list {
  display: flex;
  flex-direction: column;
}

.post-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.post-row:first-child {
  border-top: none;
}

.post-row time {
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.post-row h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-row p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
}

.post-row:hover h3 {
  color: var(--slime);
}

/* ---------- Article ---------- */

.article-head {
  padding: 96px 30px 48px;
  text-align: center;
}

.article-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px auto 12px;
  max-width: 22ch;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
}

article.prose {
  padding-bottom: 64px;
  max-width: 680px;
  margin: 0 auto;
}

article.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}

article.prose p {
  margin: 0 0 20px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

article.prose strong {
  color: var(--ink);
}

article.prose blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-style: normal;
  font-size: 1.1rem;
}

article.prose pre {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: #0b0d08;
  border: 1px solid var(--line);
  overflow-x: auto;
}

article.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
}

article.prose pre code {
  color: #d8e2bf;
}

article.prose p code,
article.prose li code {
  background: rgba(114, 88, 216, 0.12);
  color: #e3dcff;
  padding: 0.15em 0.38em;
  border-radius: 6px;
}

.devlog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 88px 30px 32px;
}

.devlog-hero-copy {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.devlog-index-hero .devlog-hero-copy {
  margin: 0;
  max-width: none;
}

.devlog-hero-copy .stamp {
  margin-bottom: 18px;
}

.devlog-byline {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1.4;
  margin: 18px 0 14px;
}

.devlog-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}

.devlog-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
}

.devlog-meta-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.devlog-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
}

.devlog-date svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--slime);
}

.devlog-hero-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 18ch;
}

.devlog-hero-copy p {
  color: var(--ink-dim);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0 0 26px;
}

.devlog-hero-media {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.devlog-hero-media .post-media-image img {
  aspect-ratio: 16 / 9;
}

.devlog-hero-media .video-embed,
.devlog-hero-media .post-media-image {
  margin: 0;
  border-radius: 0;
}

.devlog-hero-media .post-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.devlog-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 28px 0;
}

.devlog-callout .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slime);
  margin-bottom: 10px;
}

.devlog-callout p {
  margin: 0;
  color: var(--ink-dim);
}

.devlog-game-links {
  margin: 44px 0 0;
}

.devlog-game-links .section-banner {
  border-radius: 20px 20px 0 0;
}

.inline-image-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.post-media-image.compact {
  margin: 24px 0;
}

/* ---------- Project detail ---------- */

.project-head {
  padding: 100px 30px 40px;
  text-align: center;
}

.project-head .stamp {
  margin-bottom: 20px;
}

.project-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.project-head .tagline {
  color: var(--ink-dim);
  font-size: 1.1rem;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.fact {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
}

.fact .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.fact .value {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Press kit ---------- */

.pk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.pk-item:first-child {
  border-top: none;
}

.pk-item .name {
  font-weight: 600;
}

.pk-item .sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.boilerplate {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.pk-about-grid {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 38px;
  align-items: stretch;
}

.pk-about-logo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.pk-about-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 210px;
}

@media (max-width: 760px) {
  .pk-about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pk-about-logo-card {
    min-height: 0;
    padding: 14px;
  }

  .pk-about-logo {
    width: min(72vw, 240px);
  }
}

/* ---------- Novel reader ---------- */

.novel-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.novel-toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
}

.novel-toc summary::-webkit-details-marker {
  display: none;
}

.novel-toc summary::after {
  content: "Open";
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slime);
}

.novel-toc[open] summary::after {
  content: "Close";
}

.novel-toc-body {
  padding: 0 24px 24px;
}

.novel-toc,
.novel-toc-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.novel-toc::-webkit-scrollbar,
.novel-toc-body::-webkit-scrollbar {
  display: none;
}

.novel-reader-layout {
  display: block;
}

.novel-reader-layout .novel-toc {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.novel-reader-layout .novel-reader-content {
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
}

.novel-reader-intro h1,
.novel-reader-intro .lede,
.novel-reader-intro .hero-actions,
.novel-reader-facts .fact-strip {
  width: 100%;
  max-width: 940px;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.novel-reader-layout .novel-reader-content>.novel-chapter:first-of-type {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.novel-reader-facts {
  padding-bottom: 28px;
}

.novel-reader-layout #contents.block {
  padding-top: 24px;
  padding-bottom: 16px;
}

.novel-reader-layout .novel-reader-content>.novel-chapter:first-of-type::before {
  display: none;
}

@media (max-width: 1099px) {
  .novel-reader-layout .novel-toc {
    position: static;
    max-width: 820px;
  }
}

@media (min-width: 900px) {
  .novel-reader-layout .novel-toc {
    position: fixed;
    top: 110px;
    right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
    z-index: 18;
    width: clamp(320px, 28vw, 380px);
    max-width: none;
    max-height: calc(100vh - 132px);
    overflow: auto;
    margin: 0;
  }

  .novel-reader-layout .novel-toc-body {
    max-height: calc(100vh - 180px);
    overflow: auto;
  }
}

.novel-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.novel-toc-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(5, 6, 3, 0.35);
  text-decoration: none;
  color: var(--ink-dim);
}

.novel-toc-list a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.novel-toc-list a.active {
  color: var(--ink);
  border-color: rgba(198, 226, 30, 0.28);
  background: rgba(198, 226, 30, 0.08);
}

.toc-chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(198, 226, 30, 0.16);
  border: 1px solid rgba(198, 226, 30, 0.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--slime);
  white-space: nowrap;
  flex: 0 0 auto;
}

.novel-toc-list a.active .toc-chapter-number {
  color: var(--slime-bright);
}

.toc-label {
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}

.toc-time {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 3, 0.35);
  border: 1px solid rgba(198, 226, 30, 0.16);
  color: var(--slime);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.novel-chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  row-gap: 12px;
  margin-top: 44px;
  padding: 22px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}

.novel-reader-content>.novel-chapter:nth-of-type(odd) {
  background-color: rgba(20, 23, 15, 0.78);
}

.novel-reader-content>.novel-chapter:nth-of-type(even) {
  background-color: rgba(30, 34, 22, 0.68);
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 1)::before {
  background: linear-gradient(90deg, rgba(198, 226, 30, 0.95), rgba(198, 226, 30, 0.2));
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 2)::before {
  background: linear-gradient(90deg, rgba(114, 88, 216, 0.95), rgba(114, 88, 216, 0.2));
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 3)::before {
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.95), rgba(255, 69, 58, 0.18));
}

.novel-reader-content>.novel-chapter:first-of-type {
  margin-top: 18px;
}

.novel-chapter-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -22px -28px 12px;
  padding: 14px 28px;
  background: #1a1e13;
  border-bottom: 1px solid var(--line);
}

.novel-reader-layout .novel-reader-content>.novel-chapter:first-of-type .novel-chapter-head {
  margin-top: 0;
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 1) .novel-chapter-head {
  background: #1a2011;
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 2) .novel-chapter-head {
  background: #1a1723;
}

.novel-reader-content>.novel-chapter:nth-of-type(3n + 3) .novel-chapter-head {
  background: #251713;
}

.novel-chapter-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slime);
  white-space: nowrap;
}

.novel-chapter-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-width: 0;
}

.novel-chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(198, 226, 30, 0.95), rgba(198, 226, 30, 0.18));
}

.novel-chapter> :not(h2):not(.novel-chapter-meta):not(.novel-chapter-subtitle) {
  grid-column: 1 / -1;
}

.novel-chapter h2 {
  grid-column: 1;
  margin: 6px 0 0;
  scroll-margin-top: 104px;
}

.novel-chapter-meta {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 6, 3, 0.35);
  border: 1px solid rgba(198, 226, 30, 0.16);
  font-size: 13px;
  color: var(--slime);
  font-weight: 700;
}

.novel-chapter-head .novel-chapter-meta {
  grid-column: auto;
  margin: 0;
  justify-self: end;
  align-self: center;
  background: rgba(0, 0, 0, 0.28);
}

.novel-chapter .novel-chapter-subtitle {
  display: none;
}

.reading-progress {
  position: sticky;
  top: 58px;
  z-index: 18;
  width: calc(100% - 48px);
  max-width: calc(var(--max-width) - 48px);
  margin: 0 auto;
  background: rgba(5, 6, 3, 0.92);
  border-bottom: 1px solid rgba(198, 226, 30, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reading-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 24px 6px;
  font-size: 12px;
  color: var(--ink-dim);
}

.reading-progress-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.reading-progress.has-relocated-toc .reading-progress-label {
  display: none;
}

.reading-progress.has-relocated-toc .reading-progress-meta {
  position: relative;
  gap: 12px;
  min-height: 44px;
}

.reading-progress .reading-progress-toc {
  margin: 0;
  max-width: min(62vw, 700px);
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.reading-progress .reading-progress-toc summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-height: 28px;
}

.reading-progress-toc-summary-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(198, 226, 30, 0.16);
  border: 1px solid rgba(198, 226, 30, 0.28);
  color: var(--slime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.reading-progress .reading-progress-toc summary::after {
  content: "Contents";
  color: var(--slime);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reading-progress .reading-progress-toc[open] summary::after {
  content: "Close";
}

.reading-progress-toc-summary-text {
  display: inline-block;
  max-width: min(52vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-progress .reading-progress-toc .novel-toc-body {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(700px, calc(100vw - 48px));
  max-height: min(62vh, 680px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
  z-index: 30;
}

.reading-progress .reading-progress-toc[open] .novel-toc-body {
  display: block;
}

.reading-progress .reading-progress-toc .novel-toc-body p {
  display: none;
}

.reading-progress .reading-progress-toc .novel-toc-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(198, 226, 30, 0.12);
  background: rgba(5, 6, 3, 0.6);
}

.reading-progress .reading-progress-toc .novel-toc-list .toc-chapter-number {
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
}

.reading-progress .reading-progress-toc .novel-toc-list .toc-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-progress .reading-progress-toc .novel-toc-list .toc-time {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 3, 0.35);
  border: 1px solid rgba(198, 226, 30, 0.16);
  color: var(--slime);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.reading-progress-percent {
  color: var(--slime);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

#contents.toc-relocated {
  padding-bottom: 0;
  margin: 0;
}

.reading-progress-track {
  height: 4px;
  background: rgba(198, 226, 30, 0.1);
  margin-bottom: 0;
}

.reading-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--slime), var(--slime-bright));
  box-shadow: 0 0 18px rgba(198, 226, 30, 0.35);
  transition: width 0.08s linear;
}

body.embed-mode .topbar,
body.embed-mode footer {
  display: none;
}

body.embed-mode .hero.left.wrap {
  padding-top: 28px;
  padding-bottom: 30px;
}

body.embed-mode .hero-actions {
  display: none;
}

body.embed-mode .reading-progress {
  top: 0;
}

.novel-chapter p {
  line-height: 1.78;
}

.novel-chapter p+p {
  margin-top: 0;
}

/* ---------- Manga reader ---------- */

.manga-reader-intro .hero-actions {
  align-items: center;
  flex-wrap: wrap;
}

.manga-reader-layout .novel-reader-content {
  max-width: 1100px;
}

.manga-chapter {
  grid-template-columns: minmax(0, 1fr);
}

.manga-chapter-note {
  margin: 4px 0 8px;
  color: var(--ink-dim);
  font-size: 0.96rem;
}

.manga-strip {
  display: flex;
  flex-direction: row-reverse;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.manga-strip>.manga-page {
  flex: 0 0 min(82vw, 520px);
  margin: 0;
  scroll-snap-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 6, 3, 0.7);
}

.manga-page img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.36);
}

.manga-page figcaption {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--slime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.manga-strip-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.manga-direction-ltr .manga-strip {
  flex-direction: row;
}

body.manga-direction-ltr [data-manga-direction-label] {
  color: var(--ink);
}

body.manga-direction-rtl [data-manga-direction-label] {
  color: var(--slime-bright);
}

@media (max-width: 900px) {
  .manga-strip-controls {
    display: none;
  }

  .manga-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .manga-strip>.manga-page {
    flex-basis: min(92vw, 460px);
    max-width: min(92vw, 460px);
  }
}

@media (max-width: 640px) {
  .manga-reader-intro .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .manga-strip {
    gap: 12px;
  }

  .manga-strip>.manga-page {
    flex-basis: min(94vw, 360px);
    max-width: min(94vw, 360px);
  }
}

.novel-promo-capsule {
  --promo-pane-height: clamp(188px, 22vw, 236px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid rgba(198, 226, 30, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(29, 36, 18, 0.96) 0%, rgba(20, 26, 14, 0.96) 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.novel-promo-capsule-image {
  grid-column: 1;
  align-self: stretch;
  width: 100%;
  height: var(--promo-pane-height);
  border-radius: 12px;
  border: 1px solid rgba(198, 226, 30, 0.3);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.novel-promo-capsule-content {
  grid-column: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  align-content: stretch;
  height: auto;
  max-height: var(--promo-pane-height);
  overflow: clip;
  padding: 8px 4px 8px 0;
}

.novel-promo-capsule-kicker {
  margin: 0;
  color: var(--slime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.novel-promo-capsule-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.15vw, 1.22rem);
  line-height: 1.2;
}

.novel-promo-capsule:not(.novel-promo-capsule-minimal) .novel-promo-capsule-title {
  text-align: center;
}

.novel-promo-capsule-copy {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.56;
}

.novel-promo-capsule-features {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  color: var(--ink-dim);
  font-size: 12px;
  min-height: 0;
  overflow: hidden;
}

.novel-promo-capsule-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(5, 6, 3, 0.24);
  border: 1px solid rgba(198, 226, 30, 0.12);
}

.novel-promo-capsule-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(198, 226, 30, 0.14);
  border: 1px solid rgba(198, 226, 30, 0.22);
  color: var(--slime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.novel-promo-capsule-actions {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.novel-promo-capsule-actions .btn,
.novel-promo-capsule-actions .btn.primary {
  width: auto;
  min-width: 220px;
  justify-content: center;
  text-align: center;
  background: var(--slime);
  border-color: var(--slime);
  color: #10130a;
  font-weight: 700;
  box-shadow: 0 0 24px var(--slime-glow);
  border-radius: 10px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.novel-promo-capsule-actions .btn:hover,
.novel-promo-capsule-actions .btn.primary:hover {
  background: var(--slime-bright);
  border-color: var(--slime-bright);
  box-shadow: 0 0 30px var(--slime-glow);
}

.novel-promo-capsule::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(198, 226, 30, 0.18) 0%, rgba(198, 226, 30, 0) 68%);
  pointer-events: none;
  z-index: -1;
}

.novel-promo-capsule-pair {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.novel-reader-content>.chapter-minimal-cta-pair {
  margin-top: 28px;
  margin-bottom: 14px;
}

.novel-reader-content>.chapter-minimal-cta-pair+.novel-chapter {
  margin-top: 30px;
}

.novel-promo-capsule.novel-promo-capsule-minimal {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 10px;
}

.novel-promo-capsule-minimal .novel-promo-capsule-image {
  grid-column: 1;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
}

.novel-promo-capsule-minimal .novel-promo-capsule-content {
  grid-column: 1;
  grid-template-rows: auto auto;
  gap: 10px;
  height: auto;
  max-height: none;
  padding: 2px 2px 4px;
}

.novel-promo-capsule-minimal .novel-promo-capsule-title {
  text-align: center;
}

.novel-promo-capsule-minimal .novel-promo-capsule-actions {
  justify-content: center;
  padding-top: 2px;
}

.novel-promo-capsule-pair.novel-promo-capsule-pair-1080 .novel-promo-capsule-minimal .novel-promo-capsule-image {
  aspect-ratio: 2 / 1;
}

.novel-promo-capsule-pair.novel-promo-capsule-pair-1080 .novel-promo-capsule-minimal .novel-promo-capsule-content {
  gap: 8px;
}

@media (max-width: 720px) {
  .reading-progress {
    width: 100%;
    max-width: none;
    margin: 0;
    left: 0;
    right: 0;
  }

  .reading-progress-meta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .reading-progress .reading-progress-toc .novel-toc-body {
    left: 20px;
    width: calc(100vw - 40px);
  }

  .novel-promo-capsule {
    margin-top: 18px;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .novel-promo-capsule-pair {
    margin-top: 18px;
    grid-template-columns: 1fr;
  }

  .novel-promo-capsule-pair.novel-promo-capsule-pair-1080 .novel-promo-capsule-minimal .novel-promo-capsule-image {
    aspect-ratio: 16 / 9;
  }

  .novel-promo-capsule-content,
  .novel-promo-capsule-image {
    grid-column: 1;
    height: auto;
    max-height: none;
  }

  .novel-promo-capsule-image {
    height: 128px;
    min-height: 128px;
    max-height: 128px;
  }

  .novel-promo-capsule-features {
    grid-template-columns: 1fr;
  }

  .novel-chapter-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: -22px -28px 10px;
    padding: 12px 20px;
  }

  .novel-chapter-title {
    font-size: 1rem;
  }

  .novel-chapter-head .novel-chapter-meta {
    justify-self: start;
  }
}

/* ---------- Big media cards (games grid, devlog feed) ---------- */

.media-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}

.devlog-featured-capsule {
  max-width: 860px;
  margin: 18px auto 0;
}

.devlog-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(114, 88, 216, 0.18), rgba(96, 214, 164, 0.1)), var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.devlog-featured-link .section-banner {
  grid-column: 1 / -1;
  background: var(--slime);
  color: #10130a;
  padding: 24px 28px;
  margin: -22px -22px 0;
  border-radius: 28px 28px 0 0;
}

.devlog-featured-link .section-banner h2 {
  color: #10130a;
}

.devlog-featured-link .section-banner p {
  color: rgba(16, 19, 10, 0.75);
}

.devlog-featured-link:hover {
  transform: translateY(-3px);
  border-color: rgba(114, 88, 216, 0.35);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.2);
}

.devlog-featured-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.devlog-featured-copy .stamp {
  align-self: flex-start;
  width: fit-content;
}

.devlog-featured-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.devlog-featured-copy p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 54ch;
}

.devlog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.devlog-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
}

.devlog-featured-pill svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.devlog-featured-media {
  min-width: 0;
}

.devlog-featured-media .post-media-image {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
}

.devlog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.media-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

.media-thumb.fallback img {
  width: 30%;
  height: 30%;
  object-fit: contain;
  opacity: 0.85;
}

.media-card-body {
  padding: 24px;
}

.media-card-body time {
  font-size: 12px;
  color: var(--muted);
}

.media-card-body h3 {
  margin: 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.media-card-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.media-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slime);
}

.media-card:hover .read-more {
  text-decoration: underline;
}

.devlog-archive-block {
  border-bottom: none;
}

.devlog-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  background: var(--surface);
  padding: 24px;
  border-radius: 0 0 20px 20px;
}

.devlog-tile {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.devlog-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
  background: var(--surface-2);
  transition: transform 0.2s ease;
}

.devlog-tile:hover img {
  transform: scale(1.03);
}

.devlog-tile time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.devlog-tile h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Rotating key art hero ---------- */

.keyart-hero-rotator {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  margin-bottom: 8px;
}

.keyart-hero-rotator .hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  animation-name: heroSlideFade;
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.keyart-hero-rotator .hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.keyart-hero-rotator .hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.keyart-hero-rotator .hero-slide:only-child {
  animation: none;
  opacity: 1;
}

.keyart-hero-rotator.single-slide .hero-slide {
  animation: none !important;
  opacity: 1 !important;
}

.keyart-hero-rotator.single-slide {
  overflow: visible;
}

.keyart-hero-rotator.single-slide .hero-slide {
  position: relative;
  min-height: inherit;
}

.keyart-hero-rotator .hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 3, 0.55) 45%, rgba(5, 6, 3, 0.1) 100%);
}

@keyframes heroSlideFade {
  0% {
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  46% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .keyart-hero-rotator .hero-slide {
    animation: none;
    opacity: 0;
  }

  .keyart-hero-rotator .hero-slide:first-child {
    opacity: 1;
  }
}

/* ---------- Key art hero (homepage + game pages) ---------- */

.keyart-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}

.keyart-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 3, 0.55) 45%, rgba(5, 6, 3, 0.1) 100%);
}

.keyart-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 48px 24px 56px;
  box-sizing: border-box;
}

.keyart-hero-content .stamp {
  margin-bottom: 16px;
}

/* Homepage rotator hero stamps should be fully opaque for readability. */
.keyart-hero-rotator .keyart-hero-content .stamp {
  background: var(--platform-purple);
  color: #ffffff;
}

.keyart-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 20ch;
}

.keyart-hero-rotator .keyart-hero-content h1 {
  max-width: min(100%, 32ch);
}

.keyart-hero-content p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 0 24px;
}

.keyart-hero-rotator .keyart-hero-content p {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(5, 6, 3, 0.68);
  border: 1px solid rgba(245, 245, 240, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---------- Key art cards (game rows) ---------- */

.keyart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.keyart-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}

.keyart-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.keyart-card:hover img {
  transform: scale(1.05);
}

.keyart-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(5, 6, 3, 0.92) 0%, rgba(5, 6, 3, 0.15) 65%, transparent 100%);
}

.keyart-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px;
}

.keyart-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.keyart-card-body h3:empty {
  display: none;
}

.keyart-card-body .stamp {
  margin-bottom: 0;
  white-space: nowrap;
}

/* ---------- Tag pills, platform badges, features grid ---------- */

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--surface);
  color: var(--ink-dim);
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.platform-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 980px;
}

.platform-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.platform-badge-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 8px 0;
}

.core-gameplay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 721px) {
  .core-gameplay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features-grid .feature h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.features-grid .feature p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
  max-width: 68ch;
}

/* ---------- Game page: media scroller ---------- */

.hero-media-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.hero-media-scroller::-webkit-scrollbar {
  display: none;
}

.hero-media-scroller>.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  position: relative;
}

.hero-media-scroller>.media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-scroller>.media-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Fullscreen media modal */
#fullscreen-media-modal img,
#fullscreen-media-modal iframe {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 0;
  display: block;
}

#fullscreen-media-modal.manga-fullscreen img {
  width: min(68vw, 760px);
  max-width: 92vw;
  max-height: 94vh;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

@media (max-width: 900px) {
  #fullscreen-media-modal.manga-fullscreen img {
    width: 94vw;
    max-height: 92vh;
  }
}

.hero-media-scroller-wrap {
  position: relative;
}

.hero-media-scroller-wrap::before,
.hero-media-scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 1;
}

.hero-media-scroller-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 6, 3, 0.5), transparent);
}

.hero-media-scroller-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(5, 6, 3, 0.5), transparent);
}

.scroller-arrow-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 6, 3, 0.55);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 24px;
  line-height: 1;
}

.scroller-arrow-hint:hover {
  background: rgba(5, 6, 3, 0.8);
}

.hero-media-scroller {
  cursor: grab;
}

.hero-media-scroller.dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.scroller-arrow-hint.left {
  left: 40px;
}

.scroller-arrow-hint.right {
  right: 40px;
}

.scroller-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroller-thumbnails::-webkit-scrollbar {
  display: none;
}

.scroller-thumbnail {
  flex: 0 0 auto;
  width: 112px;
  height: 63px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.scroller-thumbnail:hover {
  opacity: 0.8;
}

.scroller-thumbnail.active {
  border-color: var(--slime);
  opacity: 1;
}

.scroller-thumbnail img,
.scroller-thumbnail iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* ---------- Game page: meta row, tl;dr, purchase ---------- */

.game-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}

.game-meta-row h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.game-meta-row .byline {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 2px;
}

.game-meta-row .release-date {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.info-box {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 16px;
  margin-top: 20px;
}

.info-box .info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 0 0 90px;
}

.info-box.tldr {
  background: var(--surface);
}

.info-box.tldr .info-label {
  color: var(--muted);
}

.info-box.tldr p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
}

.info-box.purchase {
  background: var(--slime);
  flex-wrap: wrap;
}

.info-box.purchase .info-label {
  color: #10130a;
}

.info-box.purchase .btn {
  background: #10130a;
  border-color: transparent;
  color: var(--slime-bright);
  font-weight: 600;
}

.info-box.purchase .btn:hover {
  background: #1c2110;
  color: #fff;
}

/* ---------- Content type filter tabs ---------- */

.content-filter {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.content-filter-btn {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.content-filter-btn:hover {
  background: var(--platform-purple);
  color: #f8f5ff;
  border-color: var(--platform-purple);
}

.content-filter-btn:active {
  background: var(--platform-purple);
  color: #f8f5ff;
  border-color: var(--platform-purple);
}

.content-filter-btn.active {
  background: var(--platform-purple);
  border-color: var(--platform-purple);
  color: #f8f5ff;
  font-weight: 600;
}

.novel-embed-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}

.novel-embed-frame {
  display: block;
  width: 100%;
  height: clamp(760px, 86vh, 1220px);
  min-height: 760px;
  border: 0;
  background: var(--bg);
}

@media (min-width: 1400px) {
  .novel-embed-frame {
    height: clamp(860px, 90vh, 1360px);
    min-height: 860px;
  }
}

@media (max-width: 1024px) {
  .novel-embed-frame {
    height: 84vh;
    min-height: 640px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .novel-embed-frame {
    height: 74dvh;
    min-height: 420px;
  }
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

section.block.content-section {
  border-top: none !important;
  padding-top: 0;
  padding-bottom: 72px;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Newsletter CTA block ---------- */

.newsletter-block {
  background: var(--surface);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
}

.newsletter-block h2 {
  margin: 0 0 10px;
}

.newsletter-block p {
  color: var(--ink-dim);
  margin: 0 0 24px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.follow-hero {
  padding: 72px 30px 20px;
}

.follow-hero .lede {
  margin-bottom: 0;
}

section.follow-newsletter-section {
  padding-top: 10px;
  padding-bottom: 22px;
}

.follow-newsletter-card {
  padding: 22px 22px 16px !important;
}

.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] {
  max-width: none !important;
  margin: 0 !important;
}

.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] [data-style="clean"] {
  padding: 0 !important;
}

.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] .formkit-fields {
  gap: 10px;
}

.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] .formkit-field,
.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] .formkit-submit {
  margin: 0 !important;
}

.follow-newsletter-card .formkit-form[data-uid="8a7f03c657"] .formkit-powered-by-convertkit-container {
  margin-top: 12px;
}

/* ---------- Follow page: social showcase ---------- */

section.follow-social-showcase {
  padding-top: 10px;
  padding-bottom: 56px;
}

.follow-social-subhead {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.follow-platform-group {
  margin: 0 0 28px;
}

.follow-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.follow-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.follow-social-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 15px;
  background: linear-gradient(165deg, rgba(20, 23, 15, 0.88), rgba(11, 13, 8, 0.9));
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.follow-social-card:hover {
  transform: translateY(-2px) rotate(-0.35deg);
  border-color: rgba(198, 226, 30, 0.44);
  background: linear-gradient(165deg, rgba(30, 35, 21, 0.92), rgba(13, 16, 9, 0.94));
}

.follow-social-card:focus-visible {
  outline: 2px solid var(--slime);
  outline-offset: 3px;
}

.follow-social-card img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  min-width: 22px;
  min-height: 22px;
  object-fit: contain;
  display: block;
}

.follow-social-card svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  min-width: 22px;
  min-height: 22px;
  display: block;
}

.follow-social-card strong {
  grid-column: 2;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--ink);
}

.follow-social-card span {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.35;
}

.follow-social-card:nth-child(3n + 1) {
  box-shadow: inset 0 1px 0 rgba(198, 226, 30, 0.15);
}

.follow-social-card:nth-child(3n + 2) {
  box-shadow: inset 0 1px 0 rgba(114, 88, 216, 0.2);
}

.follow-social-card:nth-child(3n + 3) {
  box-shadow: inset 0 1px 0 rgba(255, 69, 58, 0.2);
}

.follow-platform-card {
  min-height: 120px;
  border-color: rgba(198, 226, 30, 0.35);
  background: linear-gradient(165deg, rgba(30, 36, 19, 0.92), rgba(12, 15, 9, 0.94));
}

.follow-platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 226, 30, 0.6);
}

/* ---------- Support form ---------- */

.support-form-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
}

.support-form-head {
  margin-bottom: 20px;
}

.support-form-head p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  max-width: 60ch;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.support-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  box-sizing: border-box;
}

.support-form textarea {
  resize: vertical;
  min-height: 110px;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--slime);
  box-shadow: 0 0 0 3px rgba(198, 226, 30, 0.15);
}

.support-form .btn {
  margin-top: 10px;
  justify-content: center;
}

.support-email-fallback {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.support-email-fallback p {
  margin: 0 0 10px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.support-email-fallback textarea {
  min-height: 220px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.support-email-fallback .btn {
  width: 100%;
}

/* ---------- Footer (Contact / Stay in the loop / utility row) ---------- */

.footer-utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 0;
  font-size: 13px;
}

.footer-utility-row a {
  color: var(--muted);
  text-decoration: none;
}

.footer-utility-row a:hover {
  color: var(--slime);
}

.footer-copyright {
  padding-top: var(--footer-divider-space);
  margin-top: var(--footer-divider-space);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .core-gameplay-grid {
    grid-template-columns: 1fr;
  }

  .keyart-hero-rotator .keyart-hero-content p {
    display: none !important;
  }

  .scroller-arrow-hint {
    display: none;
  }

  .hero-media-scroller-wrap::before,
  .hero-media-scroller-wrap::after {
    width: 20px;
  }

  .scroller-thumbnails {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .scroller-thumbnail {
    width: 80px;
    height: 45px;
  }

  .info-box {
    padding: 12px 24px;
    margin-top: 12px;
  }

  .content-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .content-filter-btn {
    flex: 0 0 auto;
  }

  .support-form-card {
    padding: 20px;
  }

  .follow-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .follow-hero {
    padding-top: 56px;
    padding-bottom: 12px;
  }

  section.follow-newsletter-section {
    padding-top: 6px;
    padding-bottom: 14px;
  }

  .follow-newsletter-card {
    padding: 16px 14px 12px !important;
  }

  section.follow-social-showcase {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .follow-platform-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .follow-social-card {
    border-radius: 14px;
    padding: 12px;
  }

  .follow-social-card span {
    font-size: 0.82rem;
  }

  .novel-embed-frame {
    height: 88dvh;
    min-height: 600px;
  }

  .novel-reader-intro h1,
  .novel-reader-intro .lede,
  .novel-reader-intro .hero-actions,
  .novel-reader-facts .fact-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  @media (orientation: landscape) {
    .novel-embed-frame {
      height: 72dvh;
      min-height: 400px;
    }
  }
}

@media (max-width: 1024px),
(pointer: coarse) {
  .keyart-hero-rotator .keyart-hero-content p {
    display: none !important;
  }
}

/* ---------- Games index: section banner + small tile grid ---------- */

.section-banner {
  background: var(--slime);
  color: #10130a;
  padding: 24px 28px;
  border-radius: 20px 20px 0 0;
}

.section-banner h2 {
  margin: 0;
  color: #10130a;
}

.section-banner p {
  margin: 4px 0 0;
  color: rgba(16, 19, 10, 0.75);
  font-size: 14px;
}

.game-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  background: var(--surface);
  padding: 24px;
  border-radius: 0 0 20px 20px;
}

.game-tile {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.game-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
  background: var(--surface-2);
  transition: transform 0.2s ease;
}

.game-tile:hover img {
  transform: scale(1.03);
}

.game-tile h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

/* ---------- Merch storefront ---------- */

.merch-store-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 23, 15, 0.84), rgba(14, 16, 10, 0.84));
  padding: 22px;
}

.merch-store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.merch-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merch-filter-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 3, 0.42);
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.merch-filter-btn:hover {
  border-color: rgba(198, 226, 30, 0.45);
  color: var(--ink);
}

.merch-filter-btn.active {
  background: rgba(198, 226, 30, 0.12);
  border-color: rgba(198, 226, 30, 0.45);
  color: var(--slime-bright);
}

.merch-store-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.merch-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.merch-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(5, 6, 3, 0.5);
}

.merch-item-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(24, 28, 16, 0.92), rgba(9, 11, 7, 0.94));
}

.merch-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-item-body {
  padding: 12px 12px 14px;
}

.merch-item-game {
  margin: 0 0 8px;
  color: var(--slime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merch-item h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
}

.merch-item-copy {
  margin: 8px 0 12px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.4;
}

.merch-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.merch-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.merch-item-link {
  text-decoration: none;
  color: var(--slime-bright);
  font-size: 12px;
  font-weight: 700;
}

.merch-item-link:hover {
  color: #f0f8c0;
}

.merch-store-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-columns a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 14px;
}

.footer-columns a:hover {
  color: var(--slime);
}

/* ---------- Media: trailer, gallery, store buttons ---------- */

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  margin: 32px 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.post-media-image {
  border-radius: 20px;
  overflow: hidden;
  margin: 32px 0;
}

.post-media-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: var(--surface);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .devlog-featured-link {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }

  .devlog-featured-copy h3 {
    font-size: 1.4rem;
  }

  .game-tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .merch-store-shell {
    padding: 16px;
    border-radius: 16px;
  }

  .merch-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .merch-item-body {
    padding: 10px;
  }

  .merch-item-copy {
    display: none;
  }

  .devlog-tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .section-banner {
    padding: 18px 20px;
  }

  .hero {
    padding: 72px 20px 48px;
  }

  .hero.left {
    padding: 64px 20px 40px;
  }

  .article-head {
    padding: 64px 20px 32px;
  }

  .project-head {
    padding: 64px 20px 32px;
  }

  .devlog-hero {
    padding: 64px 20px 32px;
  }

  footer {
    padding: 64px 0 56px;
  }

  footer::before {
    left: 20px;
    right: 20px;
  }

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

  .post-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
  }

  .nav-group {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 6px;
  }

  .socials {
    padding-left: 0;
    border-left: none;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .nav {
    flex-wrap: nowrap;
    gap: 6px;
  }

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

  .footer-utility-row {
    flex-direction: column;
    gap: 10px;
  }

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

  .store-buttons .btn,
  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  /* Rotating hero + key art hero */
  .keyart-hero-rotator,
  .keyart-hero,
  .keyart-hero-rotator .hero-slide {
    min-height: 380px;
  }

  .keyart-hero-content {
    padding: 28px 20px 32px;
  }

  /* Game page: media scroller, meta row, tl;dr/purchase boxes */
  .scroller-arrow-hint {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .scroller-arrow-hint.left {
    left: 40px;
  }

  .scroller-arrow-hint.right {
    right: 40px;
  }

  .scroller-thumbnails {
    margin-bottom: 0;
  }

  .game-meta-row {
    flex-direction: column;
    padding-top: 8px;
  }

  .info-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    margin-top: 12px;
  }

  .features-grid {
    gap: 24px;
  }

  /* Newsletter block */
  .newsletter-block {
    padding: 32px 24px;
  }

  .keyart-card-body {
    padding: 14px;
  }

  .keyart-card-body .stamp {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ==========================================================================
   Kit (ConvertKit) form overrides
   ==========================================================================
   Kit's embedded forms ship their own scoped stylesheet, but the checkbox
   markup pattern below ([data-group="checkbox"], label::before/::after)
   is standard boilerplate Kit includes on every form regardless of
   whether it currently has checkboxes, so these rules are safe to keep
   here permanently and will apply automatically the moment interest
   checkboxes are added in the Kit dashboard and the embed code on
   follow.html is updated. No design work needed after that, just paste
   the new embed code in. See the big comment above the form in
   follow.html for the full walkthrough on adding those checkboxes.
   !important is required throughout because Kit sets some of its own
   colors via inline style="" attributes, which only an !important rule
   in an external stylesheet can override.
   ========================================================================== */

.formkit-form [data-group="checkbox"] label {
  color: var(--ink-dim) !important;
}

.formkit-form [data-group="checkbox"] label::before {
  background: var(--bg) !important;
  border-color: var(--line) !important;
}

.formkit-form [data-group="checkbox"] input[type="checkbox"]:checked+label::before {
  background: var(--slime) !important;
  border-color: var(--slime) !important;
}

.formkit-form [data-group="checkbox"] input[type="checkbox"]:checked+label::after {
  border-color: #10130a !important;
}

.formkit-form .formkit-field>label,
.formkit-form legend {
  display: block;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px !important;
}

.formkit-form .formkit-alert-success {
  background: var(--surface) !important;
  border-color: var(--slime) !important;
  color: var(--slime-bright) !important;
}

.formkit-form .formkit-alert-error {
  background: rgba(255, 69, 58, 0.1) !important;
  border-color: var(--accent-bright) !important;
  color: var(--accent-bright) !important;
}

@media (max-width: 520px) {
  .follow-social-grid {
    grid-template-columns: 1fr;
  }
}