:root {
  color-scheme: light;
  --paper: #fff8e7;
  --paper-2: #ffefbf;
  --ink: #1b2238;
  --ink-soft: #4a5068;
  --sky: #31bcfc;
  --sun: #ffc531;
  --orange: #ff8a3d;
  --coral: #ff5c7a;
  --mint: #3ddc97;
  --line: #1b2238;
  --radius: 18px;
  --pop-shadow: 5px 5px 0 var(--ink);
  --font-sans: 'Zen Maru Gothic', system-ui, sans-serif;
  --font-pop: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: block; object-fit: contain; }
.site-header .logo-mark { width: 48px; height: 48px; transition: transform 0.3s; }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.brand-ja { display: block; font-family: var(--font-pop); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.brand-en { display: block; font-family: var(--font-pop); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.18em; color: var(--coral); text-transform: uppercase; }
.nav { display: flex; gap: 8px; font-size: 0.92rem; font-weight: 700; }
.nav a { text-decoration: none; padding: 6px 14px; border-radius: 999px; transition: background 0.15s; }
.nav a:hover { background: var(--sun); }
@media (max-width: 760px) {
  .nav { display: none; }
}

/* hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: 80px 0 120px;
  background: url('/images/hero.webp') center right / cover no-repeat, var(--sky);
  border-bottom: 3px solid var(--ink);
}
.hero-inner { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hero-text { max-width: 540px; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 14px;
  font-family: var(--font-pop); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--coral); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-pop); font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.25; margin: 0 0 20px;
  color: #fff;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}
.lead {
  font-size: 1.05rem; font-weight: 700; max-width: 30em; margin: 0 0 28px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--pop-shadow);
}
@media (max-width: 820px) {
  .hero {
    min-height: 0; align-items: flex-end; padding: 300px 0 48px;
    background: url('/images/hero-sm.webp') 78% top / auto 380px no-repeat, var(--sky);
  }
  .hero h1 { -webkit-text-stroke-width: 6px; text-shadow: 4px 4px 0 var(--ink); }
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-family: var(--font-pop); font-weight: 800; text-decoration: none;
  border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); border-block: 3px solid var(--ink); }
.section-dark { background: var(--sky); border-top: 3px solid var(--ink); }
.section-dark p { font-weight: 700; }
.section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; }
.center .section-title { justify-content: center; }
.section-title span { font-family: var(--font-pop); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-title small {
  font-family: var(--font-pop); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px;
}

/* games */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px; }
.game-card {
  display: block; text-decoration: none; background: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:nth-child(3n+1) { --tint: var(--sun); }
.game-card:nth-child(3n+2) { --tint: var(--mint); }
.game-card:nth-child(3n+3) { --tint: var(--coral); }
.game-card:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: 10px 10px 0 var(--tint, var(--ink)), 10px 10px 0 2px var(--ink); }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
article .cover { border: 3px solid var(--ink); border-radius: var(--radius); margin: 16px 0 24px; box-shadow: var(--pop-shadow); }
.game-body { padding: 18px 22px 24px; }
.game-body h3 { font-family: var(--font-pop); font-weight: 800; font-size: 1.4rem; margin: 6px 0 6px; }
.game-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.game-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.badge { white-space: nowrap; padding: 1px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; border: 2px solid var(--ink); color: var(--ink); }
.badge-dev { background: var(--sun); }
.badge-out { background: var(--mint); }
.badge-idea { background: #fff; }

/* news */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.news-list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 22px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink);
}
.news-list time { color: var(--coral); font-family: var(--font-pop); font-weight: 800; font-variant-numeric: tabular-nums; }
.news-title { margin: 0; font-weight: 700; }
.news-body { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin: 0 0 1.2em; font-size: 1.05rem; }
.about-text strong { background: linear-gradient(transparent 55%, var(--sun) 55%); }
.members { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.members li { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 14px 20px; box-shadow: 4px 4px 0 var(--ink); }
.members li:nth-child(3n+1) { border-left: 12px solid var(--sky); }
.members li:nth-child(3n+2) { border-left: 12px solid var(--coral); }
.members li:nth-child(3n+3) { border-left: 12px solid var(--mint); }
.member-role { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.member-name { margin: 0; font-family: var(--font-pop); font-weight: 800; font-size: 1.1rem; }
.member-bio { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* game page */
.back { text-decoration: none; font-weight: 700; }
.back:hover { color: var(--coral); }
.page-title { font-family: var(--font-pop); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 0; line-height: 1.3; }
.subtitle { margin: 0 0 24px; font-family: var(--font-pop); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.8rem; color: var(--coral); }
.spec {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-top: 32px; padding: 20px 24px;
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop-shadow);
}
.spec dt { font-weight: 800; }
.spec dd { margin: 0; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer .logo-mark { width: 40px; height: 40px; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social a { text-decoration: none; font-weight: 700; padding: 4px 14px; border: 2px solid var(--paper); border-radius: 999px; }
.social a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.copy { margin: 0; font-size: 0.82rem; opacity: 0.7; }
