:root {
  color-scheme: light;
  --paper: #fffaf0;
  --paper-deep: #f7e7c6;
  --ink: #2b251d;
  --muted: #736651;
  --line: #dfc895;
  --shelf: #fff4d9;
  --green: #4f8f63;
  --green-deep: #2f6844;
  --blue: #4b7eac;
  --red: #c65b4a;
  --yellow: #f2c75c;
  --hud: #102326;
  --shadow: 0 18px 44px rgba(101, 75, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(79, 143, 99, 0.15), transparent 360px),
    repeating-linear-gradient(90deg, rgba(223, 200, 149, 0.2) 0 1px, transparent 1px 72px),
    var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
  margin: 0;
  min-width: 0;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(115, 102, 81, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1560px;
  padding: 14px 24px;
}

.brand {
  display: inline-grid;
  text-decoration: none;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a,
.button {
  align-items: center;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: none;
}

.nav a:hover,
.button:hover {
  border-color: var(--green);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(150px, 200px);
  margin: 0 auto;
  max-width: 1560px;
  padding: 18px 24px 44px;
}

main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.ad-rail {
  min-width: 0;
}

.ad-box {
  align-items: center;
  background: rgba(255, 253, 250, 0.7);
  border: 1px dashed rgba(115, 102, 81, 0.32);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: 16px;
  position: sticky;
  text-align: center;
  top: 84px;
}

.hero,
.panel,
.shelf-card,
.mode-card,
.note {
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
}

.eyebrow {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin-bottom: 8px;
}

h3 {
  margin-bottom: 6px;
}

.tagline {
  color: var(--green-deep);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  margin-bottom: 12px;
}

.lead,
.panel p,
.note p,
.mode-card p,
.shelf-card p {
  color: var(--muted);
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 720px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-preview {
  align-self: stretch;
  background: linear-gradient(150deg, var(--hud), #173f36);
  border: 1px solid rgba(79, 143, 99, 0.45);
  border-radius: var(--radius);
  color: #e7fff2;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.radar-rings {
  inset: 18px;
  position: absolute;
}

.radar-rings::before,
.radar-rings::after {
  border: 1px dashed rgba(166, 240, 192, 0.42);
  border-radius: 50%;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.radar-rings::before {
  height: min(78%, 330px);
  width: min(78%, 330px);
}

.radar-rings::after {
  height: min(42%, 180px);
  width: min(42%, 180px);
}

.preview-text {
  align-self: center;
  justify-self: center;
  max-width: 360px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.preview-text strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  margin-bottom: 10px;
}

.preview-text span {
  color: rgba(231, 255, 242, 0.78);
}

.panel,
.note {
  padding: clamp(20px, 3vw, 30px);
}

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

.recommend {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.status-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.status-list div {
  background: var(--shelf);
  border: 1px dashed rgba(115, 102, 81, 0.26);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.status-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-list dd {
  font-weight: 900;
  margin: 0;
}

.shelf-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shelf-card,
.mode-card {
  padding: 16px;
}

.shelf-card h3,
.mode-card h3 {
  align-items: center;
  display: flex;
  gap: 8px;
}

.badge {
  background: var(--paper-deep);
  border: 1px solid rgba(115, 102, 81, 0.2);
  border-radius: 999px;
  color: var(--green-deep);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
}

.mode-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.mode-card.playable {
  border-color: var(--green);
  border-left: 6px solid var(--green);
}

.mode-card.disabled {
  color: var(--muted);
}

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

.about-item {
  background: var(--shelf);
  border: 1px dashed rgba(115, 102, 81, 0.26);
  border-radius: var(--radius);
  padding: 14px;
}

.legacy-link {
  background: #fff7e4;
}

details {
  border: 1px dashed rgba(115, 102, 81, 0.32);
  border-radius: var(--radius);
  padding: 14px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.prompt-list {
  color: var(--muted);
  margin: 14px 0 0;
  padding-left: 22px;
}

.site-footer {
  background: rgba(255, 250, 240, 0.9);
  border-top: 1px solid rgba(115, 102, 81, 0.2);
  color: var(--muted);
}

.footer-links a,
.mothership a {
  color: var(--green-deep);
  margin-right: 12px;
  text-underline-offset: 3px;
}

.mothership {
  margin: 0;
  max-width: 560px;
}

.mothership span {
  display: block;
  font-size: 13px;
}

@media (max-width: 1340px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-rail {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .hero,
  .recommend,
  .section-head {
    align-items: start;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav,
  .footer-links {
    justify-content: start;
  }

  .shelf-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner {
    padding: 12px;
  }

  .page-shell {
    padding: 12px 10px 32px;
  }

  .nav a,
  .button {
    width: 100%;
  }

  .hero,
  .panel,
  .note {
    padding: 18px 14px;
  }

  .hero-preview {
    min-height: 230px;
    padding: 18px;
  }
}
