:root {
  --bg: #0c0b0a;
  --surface: #141210;
  --surface-2: #1b1815;
  --text: #f4efe6;
  --muted: #9a938a;
  --dim: #6d675f;
  --line: #2a2521;
  --line-strong: #3a332c;
  --accent: #ff4d1c;
  --accent-soft: rgba(255, 77, 28, 0.12);
  --ok: #7ddc9a;
  --bad: #ff7a6b;
  --wait: #e8c56a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #160a05;
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow {
  max-width: 780px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
  display: inline-block;
}

/* header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 77, 28, 0.8);
  flex: none;
}

.beta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 2px;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
}

.main-nav a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: #5a5047;
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #180b05;
  font-weight: 600;
}

.btn-primary:hover {
  background: #ff6234;
  border-color: #ff6234;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.btn.full {
  width: 100%;
}

/* hero */
.hero {
  position: relative;
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.14), transparent 62%);
  pointer-events: none;
}

.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 640px;
  margin: 0;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: flex;
  gap: 56px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.stat span {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
  margin: 0;
  font-size: 23px;
}

.section-head span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.section-head.compact {
  margin-bottom: 18px;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.card:hover .card-cover img {
  transform: scale(1.035);
}

.seed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #1a0d07;
  background: rgba(244, 239, 230, 0.86);
  border-radius: 999px;
  padding: 2px 8px;
}

.seed-badge.inline {
  position: static;
  display: inline-block;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 17px 17px 19px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 21px;
}

.card-body p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--dim);
}

.card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.card-feature .card-cover {
  aspect-ratio: auto;
  min-height: 320px;
}

.card-feature .card-body {
  justify-content: center;
  padding: 40px;
}

.card-feature h3 {
  font-size: 36px;
  margin-top: 16px;
}

.card-feature p {
  font-size: 15px;
  flex: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  color: #bdb5a8;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  transition: all 0.16s ease;
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty {
  color: var(--muted);
}

/* band */
.band {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(255, 77, 28, 0.05), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.band h2 {
  margin: 14px 0 12px;
  font-size: 32px;
}

.band p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

/* page head */
.page-head {
  padding: 76px 0 46px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 16px 0 18px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.16;
}

/* game page */
.game-page {
  padding: 34px 0 0;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 30px;
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs em {
  font-style: normal;
  color: var(--muted);
}

.game-head h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.game-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
  font-size: 12.5px;
  color: var(--dim);
}

.game-meta strong {
  color: var(--text);
  font-weight: 500;
}

.play-wrap {
  margin: 34px 0 0;
}

.play-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(255, 77, 28, 0.35);
}

.play-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 2px;
  font-size: 12px;
  color: var(--dim);
}

.play-bar a:hover {
  color: var(--text);
}

.play-hint {
  flex: 1;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 56px;
  padding: 46px 0 80px;
}

.prose h2,
.comments h2,
.report h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.prose p {
  color: #cfc8bd;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 16px;
}

.prose p a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 28, 0.35);
}

.comments,
.report {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comment-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
}

.comment-form textarea {
  width: 100%;
  min-height: 88px;
}

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

.comment {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 6px;
}

.comment-head strong {
  color: var(--text);
  font-weight: 500;
}

.comment p {
  margin: 0;
  color: #cfc8bd;
  font-size: 14px;
}

.notice {
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
}

.notice a {
  color: var(--accent);
}

.notice.ok {
  color: var(--ok);
  border-color: rgba(125, 220, 154, 0.35);
  background: rgba(125, 220, 154, 0.06);
  margin-bottom: 18px;
}

.report-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-form input {
  flex: 1;
  min-width: 180px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
}

.side-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.side-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.side-stats {
  display: flex;
  gap: 34px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.side-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
}

.side-stats span {
  font-size: 11px;
  color: var(--dim);
}

.tip-card .btn {
  margin-bottom: 10px;
}

/* forms */
input,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #5f5952;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.stack label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.inline-form {
  display: inline-flex;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

/* submit form */
.submit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.submit-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.submit-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.submit-form legend {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  font-size: 12.5px;
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.check:hover {
  border-color: var(--line-strong);
}

.check input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.check.agree {
  border: 0;
  padding: 0;
  border-radius: 0;
  align-items: flex-start;
  color: var(--muted) !important;
  font-size: 12.5px;
  line-height: 1.6;
}

.check.agree a {
  color: var(--accent);
}

.hint {
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 400;
}

.file-field input[type="file"] {
  padding: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
}

.file-field input[type="file"]::file-selector-button {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
}

.submit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.admin-table td {
  vertical-align: top;
}

.admin-table .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.admin-table .actions input {
  width: 130px;
  padding: 6px 10px;
  font-size: 12px;
}

.form-error {
  border: 1px solid rgba(255, 122, 107, 0.35);
  background: rgba(255, 122, 107, 0.08);
  color: var(--bad);
  font-size: 13px;
  border-radius: 9px;
  padding: 10px 14px;
}

.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 38px;
}

.auth-card h1 {
  font-size: 30px;
  margin: 14px 0 6px;
}

/* table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.table td a:hover {
  color: var(--accent);
}

.pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid;
}

.pill.ok {
  color: var(--ok);
  border-color: rgba(125, 220, 154, 0.3);
  background: rgba(125, 220, 154, 0.07);
}

.pill.bad {
  color: var(--bad);
  border-color: rgba(255, 122, 107, 0.3);
  background: rgba(255, 122, 107, 0.07);
}

.pill.wait {
  color: var(--wait);
  border-color: rgba(232, 197, 106, 0.3);
  background: rgba(232, 197, 106, 0.07);
}

/* requirement blocks */
.req {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 30px;
}

.req h2 {
  font-size: 19px;
  margin: 0 0 12px;
}

.req ul,
.req ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.req li {
  margin-bottom: 6px;
}

/* footer */
.site-foot {
  padding: 54px 0 34px;
  background: #090807;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  gap: 12px;
}

.foot-brand strong {
  font-family: var(--serif);
  font-size: 17px;
}

.foot-brand p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--text);
}

.foot-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 11.5px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .stats {
    gap: 34px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-feature {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .card-feature .card-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

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

  .card-feature h3 {
    font-size: 26px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .play-bar {
    flex-wrap: wrap;
  }

  .play-hint {
    display: none;
  }
}

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

  .head-inner {
    gap: 14px;
  }

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

  .stats {
    gap: 26px;
  }

  .stat b {
    font-size: 24px;
  }

  .foot-inner,
  .foot-note {
    flex-direction: column;
  }

  .auth-card {
    padding: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
