:root {
  --bg: #fff9f1;
  --ink: #463021;
  --ink-soft: #6f513c;
  --muted: #a48267;
  --accent: #ff7b57;
  --accent-deep: #e85d3a;
  --green: #6fba4d;
  --green-deep: #3f8734;
  --line: rgba(122, 80, 40, 0.12);
  --card: rgba(255, 255, 255, 0.8);
  --shadow: 0 18px 50px rgba(140, 96, 56, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 700px at 8% -12%, #ffe9bd 0%, transparent 60%),
    radial-gradient(900px 600px at 104% -6%, #d5f0ff 0%, transparent 55%),
    radial-gradient(1000px 780px at 50% 118%, #ffdbe6 0%, transparent 62%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image: radial-gradient(rgba(164, 120, 82, 0.2) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  pointer-events: none;
}

a { color: inherit; }

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.bg-glow--warm {
  width: 280px;
  height: 280px;
  left: -120px;
  top: 22%;
  background: rgba(255, 204, 137, 0.3);
}

.bg-glow--cool {
  width: 250px;
  height: 250px;
  right: -100px;
  top: 36%;
  background: rgba(154, 218, 255, 0.26);
}

.bg-glow--pink {
  width: 320px;
  height: 320px;
  left: 42%;
  bottom: -220px;
  background: rgba(255, 171, 195, 0.3);
}

.page {
  width: min(100%, 1080px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf6, #ffefd3);
  box-shadow: 0 8px 20px rgba(143, 97, 54, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  transform: rotate(-2deg);
}

.brand-mark svg { width: 42px; height: 42px; display: block; }

.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }

.brand-kicker {
  margin-bottom: 3px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.23em;
}

.brand-copy strong {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 15px rgba(140, 96, 56, 0.09);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.source-link:hover {
  transform: translateY(-1px);
  background: #fff;
}

.source-link svg { width: 14px; height: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(270px, 0.82fr);
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  background:
    radial-gradient(460px 260px at 4% -20%, rgba(255, 232, 175, 0.62), transparent 70%),
    radial-gradient(400px 300px at 96% 120%, rgba(255, 216, 230, 0.55), transparent 70%),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 70px rgba(140, 96, 56, 0.14), inset 0 1px 0 #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.24em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 span {
  background: linear-gradient(92deg, #ff8a5b, #ff5f7a 50%, #a65dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  max-width: 560px;
  margin: 16px 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-pills span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #806650;
  background: rgba(255, 251, 243, 0.78);
  box-shadow: 0 3px 10px rgba(140, 96, 56, 0.06);
  font-size: 10px;
  font-weight: 650;
}

.gm-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 235px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 25px;
  color: #f5ffe9;
  background:
    radial-gradient(240px 190px at 90% 0%, rgba(188, 255, 127, 0.22), transparent 70%),
    linear-gradient(155deg, #30462a, #24381f 62%, #1d2e19);
  box-shadow: 0 18px 44px rgba(35, 55, 28, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.gm-panel::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(195, 255, 150, 0.22), rgba(195, 255, 150, 0));
  pointer-events: none;
}

.gm-panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}

.gm-spark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #caff92;
  background: rgba(255, 255, 255, 0.1);
}

.gm-spark svg { width: 13px; height: 13px; }

.gm-label {
  color: #d6ecc9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.gm-status-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #8a8a7e;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.gm-status-dot.is-on {
  background: #bcff7f;
  box-shadow: 0 0 8px rgba(188, 255, 127, 0.85);
}

.gm-title {
  max-width: 220px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.gm-state-text {
  margin: 7px 0 17px;
  color: #abc69b;
  font-size: 10.5px;
  line-height: 1.55;
}

.hub-switch {
  position: relative;
  width: 58px;
  height: 32px;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.hub-switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.hub-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease;
}

.hub-switch-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5f8ed;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.hub-switch input:checked + .hub-switch-track {
  background: #79c451;
}

.hub-switch input:checked + .hub-switch-track::after {
  transform: translateX(26px);
}

.gm-footnote {
  margin: 0;
  color: #8fa77f;
  font-size: 9px;
  line-height: 1.55;
}

.section { margin-top: 36px; }

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

.section-head .eyebrow { margin-bottom: 4px; }

.section-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-note {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #8a6e57;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 3px 10px rgba(140, 96, 56, 0.06);
  font-size: 9.5px;
  font-weight: 700;
}

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

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(140, 96, 56, 0.2);
}

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

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

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

.badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge--gm {
  left: 10px;
  color: #1e3b16;
  background: rgba(190, 255, 139, 0.92);
  box-shadow: 0 4px 12px rgba(94, 154, 49, 0.22);
}

.badge--type {
  right: 10px;
  color: #5e4330;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 4px 12px rgba(120, 78, 38, 0.12);
}

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

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-row h3 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.card-arrow {
  flex: 0 0 auto;
  color: #b69a82;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.game-card:hover .card-arrow {
  color: var(--accent-deep);
  transform: translate(1px, -1px);
}

.card-meta {
  margin: 5px 0 7px;
  color: #9c806a;
  font-size: 10px;
  font-weight: 600;
}

.card-desc {
  margin: 0 0 13px;
  color: #806651;
  font-size: 11.5px;
  line-height: 1.65;
  flex: 1;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 750;
}

.play-link::after {
  content: "→";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.game-card:hover .play-link::after { transform: translateX(3px); }

.how-section .section-head { margin-bottom: 12px; }

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

.step {
  padding: 17px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(140, 96, 56, 0.08);
}

.step-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: #846b56;
  font-size: 10.5px;
  line-height: 1.65;
}

.pending-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed rgba(170, 128, 90, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.pending-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
}

.pending-card img {
  width: 120px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 13px;
  filter: saturate(0.75);
}

.pending-copy { flex: 1; min-width: 0; }

.pending-copy .card-title-row { justify-content: flex-start; }

.pending-copy h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.badge--pending {
  position: static;
  color: #7c664f;
  background: rgba(255, 243, 226, 0.9);
  box-shadow: inset 0 0 0 1px rgba(170, 128, 90, 0.18);
}

.pending-copy p {
  margin: 7px 0 0;
  color: #937b66;
  font-size: 10.5px;
  line-height: 1.6;
}

.pending-arrow {
  flex: 0 0 auto;
  padding: 0 8px;
  color: #ae9077;
  font-size: 17px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 17px;
  border-top: 1px solid rgba(160, 120, 82, 0.14);
  color: #a08671;
  font-size: 9.5px;
}

.footer > div { display: flex; flex-wrap: wrap; gap: 5px; }

.footer-dot { opacity: 0.5; }

.footer a {
  color: #8a6e57;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 110, 87, 0.3);
}

.footer a:hover { color: var(--accent-deep); }

@media (max-width: 820px) {
  .page { padding-left: 15px; padding-right: 15px; }
  .hero { grid-template-columns: 1fr; padding: 23px; border-radius: 27px; }
  .gm-panel { min-height: 0; }
  .gm-title { max-width: none; font-size: 18px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 14px 16px; }
}

@media (max-width: 560px) {
  .page { padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 12px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 9.5px; }
  .source-link { min-height: 32px; padding: 0 10px; font-size: 10px; }
  .hero { padding: 20px 17px 17px; border-radius: 24px; }
  .hero h1 { font-size: 34px; }
  .hero-desc { margin: 12px 0 15px; font-size: 12px; }
  .hero-pills span { padding: 5px 9px; font-size: 9px; }
  .gm-panel { padding: 17px; border-radius: 20px; }
  .gm-title { font-size: 17px; }
  .game-grid { grid-template-columns: 1fr; gap: 12px; }
  .section { margin-top: 27px; }
  .section-head h2 { font-size: 22px; }
  .cover { aspect-ratio: 16 / 8.8; }
  .card-body { padding: 13px 15px 15px; }
  .card-title-row h3 { font-size: 17px; }
  .pending-card { gap: 11px; padding: 10px; }
  .pending-card img { width: 96px; height: 64px; }
  .pending-copy h3 { font-size: 15px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 360px) {
  .brand-copy small { display: none; }
  .source-link { padding: 0 8px; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
