:root {
  color-scheme: dark;
  --ink: #f8f1e8;
  --muted: #c6b7a5;
  --paper: #0e0b0a;
  --panel: #17110f;
  --panel-strong: #211714;
  --line: rgba(248, 241, 232, 0.14);
  --red: #d83a31;
  --red-dark: #7f1717;
  --gold: #e8b95b;
  --ember: #ff6a3d;
  --smoke: rgba(248, 241, 232, 0.07);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 2%, rgba(216, 58, 49, 0.28), transparent 34rem),
    radial-gradient(circle at 84% 4%, rgba(232, 185, 91, 0.17), transparent 31rem),
    radial-gradient(circle at 60% 42%, rgba(255, 106, 61, 0.08), transparent 34rem),
    linear-gradient(180deg, #070504 0%, #130d0b 38%, #090706 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(14, 11, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(232, 185, 91, 0.45);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(232, 185, 91, 0.08);
  font-size: 12px;
}
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--gold); }

.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.cinematic-hero {
  position: relative;
  isolation: isolate;
  min-height: 86vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 5, 4, 0.94) 0%, rgba(7, 5, 4, 0.78) 44%, rgba(7, 5, 4, 0.5) 100%),
    url("assets/gekokujo/gekokujo-hero-key-visual.jpg") center 32% / cover no-repeat;
}

.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at 32% 22%, rgba(232, 185, 91, 0.2), transparent 28rem);
}

.cinematic-hero::after {
  content: "下剋上";
  position: absolute;
  right: clamp(16px, 6vw, 90px);
  bottom: clamp(22px, 7vw, 96px);
  z-index: -1;
  color: rgba(248, 241, 232, 0.08);
  font-size: clamp(82px, 13vw, 190px);
  font-weight: 950;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cinematic-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  width: min(1260px, 100%);
}

.hero-copy { max-width: 850px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 900px; font-size: clamp(48px, 8vw, 104px); line-height: 0.98; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(30px, 4.5vw, 58px); letter-spacing: 0; }
h3 { margin: 12px 0 10px; font-size: 22px; }

.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.8; }
.english-lead {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(248, 241, 232, 0.82);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.72;
}
.small-lead { max-width: 760px; font-size: clamp(16px, 1.8vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.compact-actions { margin-top: 24px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(232, 185, 91, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.button span {
  margin-top: 2px;
  color: rgba(248, 241, 232, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button.primary { border-color: rgba(216, 58, 49, 0.8); background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }

.button.primary:hover {
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(232, 185, 91, 0.36), 0 20px 50px rgba(216, 58, 49, 0.28);
}

.hero-panel, .panel, .card, .update-item, .youtube-card, .work-panel, .link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.hero-panel { position: relative; overflow: hidden; padding: 26px; }
.hero-panel::before {
  content: "下剋上";
  position: absolute;
  right: -18px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 86px;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
}
.panel-label { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.hero-panel h2 { font-size: 28px; line-height: 1.25; }

.hero-panel-visual {
  background-size: cover;
  background-position: center 35%;
}
.hero-panel-visual::before { content: none; }
.hero-panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.72), rgba(15, 12, 10, 0.92) 60%, rgba(15, 12, 10, 0.97));
}
.hero-panel-visual > * { position: relative; z-index: 1; }

.hero-showcase {
  align-self: stretch;
  display: grid;
  gap: 14px;
}

.hero-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid rgba(232, 185, 91, 0.38);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.showcase-card {
  padding: 22px;
  border: 1px solid rgba(232, 185, 91, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 11, 10, 0.86), rgba(14, 11, 10, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.showcase-card h2 { font-size: clamp(24px, 3vw, 36px); }

.signal-list.compact { gap: 8px; }
.signal-list.compact span { font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.metric-grid span { padding: 12px 10px; border: 1px solid rgba(232, 185, 91, 0.2); border-radius: 6px; background: rgba(0, 0, 0, 0.22); }
.metric-grid strong { display: block; color: var(--gold); font-size: 22px; line-height: 1.1; }
.metric-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.signal-list { display: grid; gap: 10px; margin-top: 14px; }
.signal-list span { padding: 10px 12px; border: 1px solid rgba(232, 185, 91, 0.2); border-radius: 6px; color: var(--muted); background: rgba(0, 0, 0, 0.18); }

.status-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.status-band a { min-height: 92px; padding: 22px clamp(18px, 3vw, 34px); border-right: 1px solid var(--line); }
.status-band span { display: block; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.status-band strong { display: block; margin-top: 8px; font-size: 18px; }

.section { padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.feature-strip {
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 185, 91, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.feature-cards,
.devlog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.devlog-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 16% 12%, rgba(232, 185, 91, 0.12), transparent 16rem);
  box-shadow: var(--shadow);
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 185, 91, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 950;
}

.feature-card p,
.devlog-card p {
  color: var(--muted);
  line-height: 1.78;
}

.feature-card a,
.devlog-card a { color: var(--gold); font-weight: 900; }

.spotlight-section {
  background:
    linear-gradient(135deg, rgba(216, 58, 49, 0.17), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 90% 10%, rgba(232, 185, 91, 0.12), transparent 30rem);
}

.devlog-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.primary-devlog { border-color: rgba(216, 58, 49, 0.42); }

.media-section { background: rgba(0, 0, 0, 0.15); }
.portal-section { background: rgba(0, 0, 0, 0.12); }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(232, 185, 91, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}
.portal-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-card strong { display: block; margin-top: 10px; font-size: 24px; }
.portal-card p { color: var(--muted); line-height: 1.72; }
.operations-section { background: rgba(232, 185, 91, 0.06); }
.operation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.operation-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(232, 185, 91, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(232, 185, 91, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}
.operation-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.operation-card strong { display: block; margin-top: 10px; font-size: 22px; }
.operation-card p { color: var(--muted); line-height: 1.78; }
.youtube-section { background: linear-gradient(135deg, rgba(216, 58, 49, 0.18), rgba(0, 0, 0, 0.1)); }
.youtube-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(22px, 5vw, 58px); align-items: stretch; }
.youtube-card { padding: 26px; }
.youtube-card p { color: var(--muted); line-height: 1.78; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.text-link { color: var(--gold); font-weight: 900; }
.game-grid, .updates-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.updates-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .update-item { min-height: 230px; padding: 22px; }
.card-image, .work-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(232, 185, 91, 0.35);
  border-radius: 8px;
}
.card-image { margin-bottom: 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.card-emblem {
  display: grid;
  place-items: end start;
  min-height: 118px;
  margin: -4px -4px 18px;
  padding: 16px;
  border: 1px solid rgba(232, 185, 91, 0.26);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 58, 49, 0.45), transparent 30%),
    linear-gradient(135deg, rgba(232, 185, 91, 0.18), rgba(255, 255, 255, 0.035));
}
.card-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(135deg, transparent 0 42%, rgba(232, 185, 91, 0.22) 42% 44%, transparent 44%),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}
.card-emblem span {
  position: relative;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.card-emblem.cypher { background-color: rgba(127, 23, 23, 0.42); }
.card-emblem.breed { background-color: rgba(61, 24, 18, 0.48); }
.card-emblem.gekokujo { background-color: rgba(216, 58, 49, 0.34); }
.card-emblem.archive { background-color: rgba(232, 185, 91, 0.12); }
.work-image {
  border-color: rgba(232, 185, 91, 0.42);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  margin-bottom: 18px;
}
.featured-card { border-color: rgba(216, 58, 49, 0.42); background: linear-gradient(180deg, rgba(216, 58, 49, 0.18), rgba(255, 255, 255, 0.035)); }
.card p, .panel p, .update-item p, .work-panel p, .link-card p { color: var(--muted); line-height: 1.78; }
.english-copy {
  margin-top: -2px;
  color: rgba(248, 241, 232, 0.74) !important;
  font-size: 14px;
  line-height: 1.65 !important;
}
.card a, .panel a:not(.button), .update-item a, .work-panel a:not(.button), .link-card a { color: var(--gold); font-weight: 900; }
.update-date { margin: 0; color: var(--gold); font-size: 13px; font-weight: 900; }

.ad-slot {
  display: none;
}
.ad-slot-section {
  display: none;
}

.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status.live { color: #fff; background: var(--red); }
.status.dev { color: #1a100d; background: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr); gap: clamp(22px, 5vw, 64px); align-items: start; }
.panel, .policy-block { padding: 26px; }
.policy { max-width: 960px; }
.policy-block { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

.page-hero { padding: clamp(58px, 8vw, 96px) clamp(20px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero-visual {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto clamp(28px, 5vw, 44px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid rgba(232, 185, 91, 0.42);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.page-hero-inner { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: clamp(24px, 5vw, 58px); align-items: start; }
.work-panel { padding: 26px; }
.work-panel ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.work-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.work-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work-details .work-panel { min-height: 220px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-card { min-height: 170px; padding: 22px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.screenshot-card { margin: 0; padding: 14px; }
.screenshot-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(232, 185, 91, 0.35);
  border-radius: 8px;
}
.screenshot-card figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

.feature-list { margin: 4px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.95; }
.feature-list li { margin-bottom: 8px; }
.feature-list strong { color: var(--ink); }

.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}
.book-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 18%, rgba(216, 58, 49, 0.4), transparent 36%),
    linear-gradient(150deg, rgba(232, 185, 91, 0.2), rgba(0, 0, 0, 0.45));
}
.book-cover span { color: var(--ink); font-size: 20px; font-weight: 950; line-height: 1.3; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.book-card img.book-cover { display: block; width: 100%; height: auto; object-fit: cover; }
.book-body { padding: 20px; }
.book-body h3 { font-size: 18px; line-height: 1.45; }
.book-body p { color: var(--muted); line-height: 1.76; }
.book-body a { color: var(--gold); font-weight: 900; }
.book-tag { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

.press-hero .page-hero-visual { object-position: center 38%; }
.press-link-list { display: grid; gap: 10px; }
.press-link-list p { margin: 0; color: var(--muted); line-height: 1.75; }
.press-link-list strong { color: var(--ink); }
.press-link-list a { color: var(--gold); font-weight: 900; overflow-wrap: anywhere; }

.footer { display: flex; flex-wrap: wrap; gap: 18px; padding: 28px clamp(20px, 6vw, 88px) 46px; color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid, .cinematic-hero .hero-grid, .game-grid, .updates-list, .split, .status-band, .youtube-layout, .page-hero-inner, .work-details, .link-grid, .portal-grid, .operation-grid, .book-grid, .feature-cards, .devlog-grid { grid-template-columns: 1fr; }
  .status-band a { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .nav { width: 100%; flex-wrap: wrap; gap: 12px 16px; }
  .hero { min-height: auto; }
  h1 { font-size: 48px; }
  .hero-panel h2 { font-size: 24px; }
  .metric-grid { grid-template-columns: 1fr; }
}
