:root {
  --cream: #FFF7E8;
  --paper: #FFFDF6;
  --ink: #22304A;
  --ink-soft: #3E4E6C;
  --muted: #67748C;
  --orange: #F08A4B;
  --orange-dark: #C65F22;
  --red: #D9534F;
  --blue: #4C8FBF;
  --green: #6FA84C;
  --yellow: #F6C445;
  --pink: #F2A7A0;
  --line: #22304A;
  --shadow: 6px 6px 0 rgba(34, 48, 74, 0.16);
  --shadow-solid: 5px 5px 0 #22304A;
  --radius: 8px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(34, 48, 74, 0.07) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 232, 0.9);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  padding: 7px 12px;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: #FFE9BC;
  border-color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--cream);
  background: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 52px;
  padding: 70px 0 52px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 0 0.08em;
  font-size: clamp(42px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, transparent 59%, var(--yellow) 59%, var(--yellow) 88%, transparent 88%);
}

.hero-lead {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--orange);
}

.btn-primary:hover {
  background: #F59B61;
}

.btn-ghost {
  background: var(--paper);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(460px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE7A4 0%, #FFE7A4 58%, transparent 59%);
  opacity: 0.9;
}

.logo-card {
  width: min(410px, 92%);
  padding: 16px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.5deg);
  animation: floaty 6s ease-in-out infinite;
}

.logo-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.px-star {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.px-star-a {
  top: 2%;
  right: 6%;
}

.px-star-b {
  bottom: 12%;
  left: 1%;
  width: 11px;
  height: 11px;
  background: var(--pink);
}

.px-star-c {
  right: 0;
  bottom: 2%;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

/* Wave divider */

.wave-divider {
  margin-top: -8px;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 38px;
}

.wave-divider path {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

/* Sections */

.section {
  padding: 60px 0;
  scroll-margin-top: 92px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1.22;
}

/* Game */

.game-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--ink);
}

.game-art {
  padding: 12px;
  background: #FFF0C9;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(34, 48, 74, 0.22);
}

.game-art img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.meta-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.game-desc {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px dashed rgba(34, 48, 74, 0.28);
  list-style: none;
}

.game-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.game-facts strong {
  font-size: 16px;
  font-weight: 900;
}

.game-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--orange-dark);
  border-color: var(--ink);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2;
}

.about-copy p:first-child {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.9;
}

.about-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(34, 48, 74, 0.18);
}

.point-mark {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 5px;
  background: var(--orange);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.about-points strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.about-points p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  color: var(--cream);
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 196, 69, 0.2) 0 3px, transparent 3px),
    radial-gradient(circle at 86% 76%, rgba(240, 138, 75, 0.24) 0 3px, transparent 3px),
    var(--ink);
  background-size: 34px 34px, 46px 46px, auto;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--orange);
}

.contact-card .eyebrow {
  color: var(--yellow);
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.2;
}

.contact-card p {
  max-width: 36em;
  margin: 0 auto 10px;
  color: #D9DEE9;
  font-size: 16px;
}

.mail {
  display: inline-block;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  color: var(--yellow);
  border-bottom: 3px solid var(--yellow);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  text-decoration: none;
  word-break: break-all;
}

.mail:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.contact-note {
  margin-top: 16px;
  color: #AEB8CA;
  font-size: 13px;
}

/* Footer */

.site-footer {
  margin-top: 48px;
  color: var(--cream);
  background: var(--ink);
  border-top: 4px solid var(--orange);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 7px;
}

.footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.footer-brand span {
  display: block;
  margin-top: 2px;
  color: #AEB8CA;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: #D9DEE9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-nav a[aria-current="page"] {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 26px;
  border-top: 1px solid rgba(255, 247, 232, 0.18);
  color: #9FABBF;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #C9D2E1;
}

/* Privacy page */

.page-hero {
  padding: 54px 0 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 48, 74, 0.4);
}

.back-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 900;
  line-height: 1.2;
}

.page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-meta span {
  white-space: nowrap;
}

.policy {
  margin-bottom: 64px;
  padding: clamp(24px, 4.6vw, 56px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(34, 48, 74, 0.16);
}

.policy h2 {
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(34, 48, 74, 0.12);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  line-height: 1.45;
}

.policy h2[id] {
  scroll-margin-top: 100px;
}

.policy h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.policy h4 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.policy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
}

.policy ol,
.policy ul {
  margin: 0 0 16px;
  padding-left: 1.55em;
  color: var(--ink-soft);
}

.policy li {
  margin: 6px 0;
  line-height: 1.9;
}

.policy li::marker {
  color: var(--orange-dark);
  font-weight: 800;
}

.policy-notice {
  margin-bottom: 34px;
  padding: 22px 24px;
  background: #FFF3D2;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(34, 48, 74, 0.14);
}

.policy-notice h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.policy-notice p {
  margin-bottom: 10px;
}

.policy-notice ol {
  margin-bottom: 0;
}

.policy-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  margin: 0 0 24px;
  padding: 18px 22px;
  background: #F7F1E2;
  border: 1px dashed rgba(34, 48, 74, 0.35);
  border-radius: 8px;
}

.policy-toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.policy-toc a:hover {
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.table-wrap {
  margin: 18px 0 20px;
  overflow-x: auto;
}

.policy table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #FFFFFF;
  font-size: 14px;
}

.policy th,
.policy td {
  padding: 10px 12px;
  border: 1px solid var(--ink);
  text-align: center;
  vertical-align: middle;
  line-height: 1.6;
}

.policy th {
  background: #FFE9AF;
  font-weight: 900;
}

.contact-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(34, 48, 74, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.contact-list li {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(34, 48, 74, 0.14);
  color: var(--ink-soft);
  line-height: 1.7;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  flex: 0 0 5em;
  color: var(--muted);
  font-weight: 800;
}

.policy-end {
  margin-top: 38px !important;
  padding-top: 18px;
  border-top: 1px dashed rgba(34, 48, 74, 0.28);
  color: var(--muted) !important;
  font-size: 14px !important;
  text-align: center;
}

/* Motion */

@keyframes floaty {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(-1.5deg) translateY(-10px);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 42px;
  }

  .hero-art::before {
    width: min(420px, 92%);
  }

  .game-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-art {
    width: min(250px, 70%);
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .site-nav a {
    padding: 5px 8px;
    font-size: 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 44px 0;
    scroll-margin-top: 118px;
  }

  .game-card {
    padding: 20px;
  }

  .game-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    padding: 42px 18px;
  }

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

  .table-wrap {
    overflow: visible;
  }

  .policy table {
    min-width: 0;
  }

  .policy thead {
    display: none;
  }

  .policy table,
  .policy tbody,
  .policy tr,
  .policy td {
    display: block;
    width: 100%;
  }

  .policy tr {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--ink);
    border-radius: 8px;
  }

  .policy td {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid rgba(34, 48, 74, 0.14);
    text-align: left;
    font-size: 14px;
  }

  .policy td:last-child {
    border-bottom: 0;
  }

  .policy td::before {
    content: attr(data-label);
    flex: 0 0 7.5em;
    color: var(--muted);
    font-weight: 800;
  }

  .policy {
    padding: 22px 18px;
  }

  .policy h2[id] {
    scroll-margin-top: 126px;
  }

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

  .contact-list li {
    flex-direction: column;
    gap: 2px;
  }

  .contact-list span {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print */

@media print {
  body {
    background: #FFFFFF;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .back-link,
  .page-hero .eyebrow {
    display: none !important;
  }

  .page-hero {
    padding: 0 0 18px;
  }

  .policy {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .policy a {
    color: #000000;
  }

  .policy-notice {
    box-shadow: none;
  }
}
