:root {
  --paper: #fff9ef;
  --ink: #27263a;
  --coral: #ff6f79;
  --mint: #83dfc4;
  --lemon: #ffd865;
  --lilac: #b6a8ff;
  --sky: #91d9ff;
  --line: 2px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.shell { width: min(1440px, calc(100% - 56px)); margin-inline: auto; }

.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: var(--line); border-radius: 11px; background: var(--lemon); box-shadow: 3px 3px 0 var(--ink); font-size: 17px; transform: rotate(-4deg); }
.nav-links { display: flex; align-items: center; gap: 38px; font-size: 14px; font-weight: 700; }
.nav-links > a:not(.nav-contact):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-contact { padding: 12px 18px; border: var(--line); border-radius: 999px; background: var(--coral); color: #fff; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.nav-contact:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.hero { min-height: 750px; padding: 74px 0 88px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 88px; }
.eyebrow { margin: 0 0 26px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.eyebrow > span { width: 28px; height: 3px; background: var(--coral); border-radius: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-size: clamp(52px, 5.6vw, 90px); line-height: 1.05; letter-spacing: -.075em; font-weight: 900; }
h1 em { color: var(--coral); font-style: normal; position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 0; right: -8px; bottom: -10px; height: 8px; border-radius: 50%; border-top: 3px solid var(--ink); transform: rotate(-1deg); }
.hero-lead { max-width: 620px; margin-bottom: 34px; color: #56536a; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 56px; padding: 0 24px; border: var(--line); border-radius: 14px; font-weight: 900; box-shadow: 5px 5px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { background: var(--coral); color: #fff; }
.button span, .text-link span { font-size: 22px; }
.text-link { font-weight: 900; border-bottom: 2px solid var(--ink); padding-bottom: 5px; }
.hero-note { display: flex; gap: 28px; margin-top: 54px; font-size: 13px; font-weight: 800; }

.art-frame { min-height: 610px; position: relative; overflow: hidden; border: var(--line); border-radius: 38px; background: linear-gradient(#91d9ff 0 56%, #ffd865 56%); box-shadow: var(--shadow); isolation: isolate; }
.art-frame::after { content: ""; position: absolute; inset: 13px; border: 1.5px dashed rgba(39,38,58,.55); border-radius: 28px; z-index: 10; pointer-events: none; }
.hero-sun { position: absolute; width: 138px; height: 138px; right: 9%; top: 11%; background: var(--lemon); border: var(--line); border-radius: 50%; box-shadow: 6px 6px 0 rgba(39,38,58,.18); }
.hero-cloud { position: absolute; height: 50px; width: 135px; background: #fff; border: var(--line); border-radius: 999px; }
.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; background: #fff; border: var(--line); border-bottom: 0; border-radius: 50% 50% 0 0; }
.hero-cloud::before { width: 52px; height: 40px; left: 20px; top: -26px; }
.hero-cloud::after { width: 62px; height: 50px; right: 17px; top: -36px; }
.cloud-one { left: 8%; top: 17%; transform: scale(.8); }
.cloud-two { right: 8%; top: 42%; transform: scale(.54); }
.hero-hill { position: absolute; width: 80%; height: 48%; border: var(--line); border-radius: 50% 50% 0 0; bottom: -24%; }
.hill-back { left: -23%; background: var(--mint); transform: rotate(8deg); }
.hill-front { right: -14%; background: #7bc56f; transform: rotate(-8deg); }
.hero-character { position: absolute; left: 50%; bottom: 9%; width: 235px; height: 285px; transform: translateX(-50%); border: var(--line); border-radius: 48% 48% 38% 38%; background: var(--lilac); box-shadow: 7px 7px 0 rgba(39,38,58,.3); }
.hero-character::before, .hero-character::after { content: ""; position: absolute; top: -38px; width: 80px; height: 90px; background: var(--lilac); border: var(--line); border-radius: 16px 60px 20px 50px; z-index: -1; }
.hero-character::before { left: 11px; transform: rotate(-18deg); }
.hero-character::after { right: 11px; transform: scaleX(-1) rotate(-18deg); }
.eye { position: absolute; top: 105px; width: 15px; height: 22px; background: var(--ink); border-radius: 50%; }
.eye-left { left: 68px; }.eye-right { right: 68px; }
.smile { position: absolute; left: 50%; top: 142px; width: 40px; height: 22px; border-bottom: 3px solid var(--ink); border-radius: 50%; transform: translateX(-50%); }
.tape { position: absolute; z-index: 12; top: 28px; left: -18px; padding: 10px 38px; background: var(--coral); border: var(--line); font-size: 11px; font-weight: 900; letter-spacing: .15em; transform: rotate(-8deg); }
.art-caption { position: absolute; z-index: 12; left: 32px; bottom: 27px; display: flex; flex-direction: column; padding: 12px 15px; border: var(--line); border-radius: 12px; background: #fff; font-weight: 900; font-size: 13px; box-shadow: 4px 4px 0 var(--ink); }
.art-caption small { margin-top: 2px; font-size: 10px; color: #6e6b80; font-weight: 700; }
.sticker { position: absolute; z-index: 13; display: grid; place-items: center; border: var(--line); border-radius: 50%; font-weight: 900; }
.sticker-star { right: 22px; bottom: 25px; width: 66px; height: 66px; background: #fff; color: var(--coral); font-size: 30px; transform: rotate(12deg); }
.sticker-smile { right: 27px; top: 43%; width: 54px; height: 54px; background: var(--lemon); font-size: 19px; transform: rotate(-9deg); }

.games-section { padding: 116px 0 140px; border-top: var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 66px; }
.section-heading h2, .about-section h2, .contact-card h2 { margin-bottom: 0; font-size: clamp(44px, 5vw, 74px); line-height: 1.05; letter-spacing: -.06em; font-weight: 900; }
.section-heading > p { max-width: 420px; margin-bottom: 4px; color: #656176; line-height: 1.9; }
.game-list { display: grid; gap: 38px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); min-height: 470px; border: var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translate(-2px, -3px) rotate(-.25deg); box-shadow: 12px 13px 0 var(--ink); }
.game-art { position: relative; min-height: 470px; overflow: hidden; border-right: var(--line); background: var(--coral); }
.game-card.mint .game-art { background: var(--mint); }
.game-card.lilac .game-art { background: var(--lilac); }
.game-art::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; left: 21%; top: 11%; border-radius: 50%; background: var(--lemon); border: var(--line); }
.game-card.mint .game-art::before { background: var(--sky); }
.game-card.lilac .game-art::before { background: #fff; }
.art-orbit { position: absolute; width: 65%; height: 32%; left: 18%; top: 34%; border: 3px solid var(--ink); border-radius: 50%; transform: rotate(-12deg); }
.art-planet { position: absolute; width: 150px; height: 150px; left: calc(50% - 75px); top: calc(42% - 75px); border: var(--line); border-radius: 48% 52% 44% 56%; background: var(--paper); box-shadow: 6px 6px 0 rgba(39,38,58,.2); transform: rotate(-8deg); }
.art-planet span { position: absolute; width: 32px; height: 40px; left: 31px; top: 45px; border-radius: 50%; background: var(--ink); box-shadow: 58px 0 0 var(--ink); }
.game-art > p { position: absolute; left: 26px; bottom: 22px; margin: 0; padding: 9px 13px; border: var(--line); border-radius: 10px; background: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.game-number { position: absolute; z-index: 2; top: 25px; left: 28px; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.game-copy { display: flex; flex-direction: column; justify-content: center; padding: 50px; background: #fffdf8; }
.game-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 40px; font-size: 11px; font-weight: 900; }
.status { color: #ef5966; }
.game-en { margin-bottom: 6px; color: #777286; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.game-copy h3 { margin-bottom: 19px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.1; letter-spacing: -.055em; }
.game-description { color: #5d596d; font-size: 15px; line-height: 1.9; }
.game-copy a { align-self: flex-start; margin-top: 22px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 900; }

.about-section { overflow: hidden; padding: 130px 0 0; background: var(--ink); color: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; padding-bottom: 120px; }
.eyebrow.light > span { background: var(--lemon); }
.about-copy > p { max-width: 650px; color: #d5d3df; font-size: 17px; line-height: 2; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.about-values span { min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 2px solid #fff; border-radius: 18px; font-size: 13px; font-weight: 900; }
.about-values span:nth-child(1) { background: var(--coral); }.about-values span:nth-child(2) { background: #5abfa5; }.about-values span:nth-child(3) { background: #7c6dcc; }
.about-values b { font-size: 11px; }
.marquee { border-top: 2px solid #fff; padding: 20px 0; overflow: hidden; background: var(--lemon); color: var(--ink); white-space: nowrap; font-size: 20px; font-weight: 900; letter-spacing: .08em; }
.marquee span { display: block; width: max-content; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.contact-section { padding-top: 120px; }
.contact-card { position: relative; overflow: hidden; padding: 90px; border: var(--line); border-radius: 36px; background: var(--sky); box-shadow: var(--shadow); }
.contact-card h2 { margin-bottom: 26px; }
.contact-card > p:not(.eyebrow) { color: #4f5266; font-size: 16px; }
.button-dark { margin-top: 28px; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 5px 5px 0 var(--coral); }
.contact-flower { position: absolute; right: 8%; top: 11%; color: var(--lemon); font-size: 180px; line-height: 1; text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink); transform: rotate(14deg); }
footer { min-height: 155px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; font-size: 11px; }
footer p { margin: 0; text-align: center; color: #6c687b; }
footer > div { text-align: right; font-weight: 900; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; }

/* Privacy page */
.legal-page { min-height: 100vh; background: var(--paper); }
.legal-nav .nav-links { gap: 18px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: var(--line); border-radius: 999px; background: #fff; box-shadow: 4px 4px 0 var(--ink); font-size: 13px; font-weight: 900; transition: transform .2s, box-shadow .2s; }
.legal-back:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.legal-hero { position: relative; overflow: hidden; padding: 92px 0 76px; border-bottom: var(--line); }
.legal-hero::before { content: "✿"; position: absolute; right: 6%; top: 22px; color: var(--lemon); font-size: 180px; line-height: 1; text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink); transform: rotate(12deg); opacity: .9; }
.legal-hero h1 { max-width: 880px; margin-bottom: 24px; }
.legal-hero > p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: #5d596d; font-size: 17px; line-height: 1.9; }
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 58px; padding: 76px 0 120px; }
.legal-toc { position: sticky; top: 30px; padding: 24px; border: var(--line); border-radius: 20px; background: var(--lemon); box-shadow: 5px 5px 0 var(--ink); }
.legal-toc strong { display: block; margin-bottom: 17px; font-size: 13px; letter-spacing: .08em; }
.legal-toc a { display: block; padding: 9px 0; border-top: 1px solid rgba(39,38,58,.25); font-size: 13px; font-weight: 800; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-content { max-width: 850px; }
.legal-note { margin-bottom: 34px; padding: 22px 24px; border: var(--line); border-radius: 18px; background: var(--mint); box-shadow: 5px 5px 0 var(--ink); line-height: 1.8; }
.legal-section { padding: 10px 0 36px; scroll-margin-top: 28px; }
.legal-section + .legal-section { padding-top: 36px; border-top: 2px dashed rgba(39,38,58,.25); }
.legal-section h2 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.legal-section h2 span { display: inline-grid; width: 38px; height: 38px; margin-right: 10px; place-items: center; border: var(--line); border-radius: 11px; background: var(--lilac); box-shadow: 3px 3px 0 var(--ink); font-size: 12px; vertical-align: 6px; }
.legal-section p, .legal-section li { color: #56536a; font-size: 15px; line-height: 1.95; }
.legal-section ul { margin: 14px 0 0; padding-left: 22px; }
.legal-section a { color: #d84554; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.legal-footer { border-top: var(--line); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 58px; padding-top: 60px; }
  .hero-copy { max-width: 820px; }
  .art-frame { min-height: 650px; }
  .game-card { grid-template-columns: 1fr 1fr; }
  .game-copy { padding: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1440px); }
  .nav { height: 76px; }
  .nav-links > a:not(.nav-contact) { display: none; }
  .nav-contact { padding: 10px 13px; font-size: 12px; }
  .hero { min-height: auto; padding: 48px 0 70px; }
  h1 { font-size: clamp(44px, 13vw, 68px); }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-note { gap: 10px 18px; flex-wrap: wrap; margin-top: 40px; }
  .art-frame { min-height: 500px; border-radius: 26px; }
  .hero-character { width: 180px; height: 225px; }
  .eye { top: 84px; }.eye-left { left: 52px; }.eye-right { right: 52px; }.smile { top: 119px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .games-section { padding: 82px 0 100px; }
  .game-card { grid-template-columns: 1fr; min-height: 0; }
  .game-art { min-height: 360px; border-right: 0; border-bottom: var(--line); }
  .game-copy { padding: 34px 26px 38px; }
  .game-meta { margin-bottom: 28px; }
  .about-section { padding-top: 90px; }
  .about-grid { padding-bottom: 85px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values span { min-height: 92px; }
  .contact-section { padding-top: 82px; }
  .contact-card { padding: 56px 25px 50px; border-radius: 25px; }
  .contact-flower { right: -25px; top: 5px; font-size: 100px; opacity: .65; }
  .contact-card .button { max-width: 100%; font-size: 12px; gap: 12px; }
  footer { grid-template-columns: 1fr; justify-items: center; padding: 45px 0; }
  footer > div { text-align: center; }
  .footer-links { justify-content: center; }
  .legal-hero { padding: 62px 0 54px; }
  .legal-hero::before { right: -34px; top: 12px; font-size: 100px; opacity: .55; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 80px; }
  .legal-toc { position: static; }
  .legal-section h2 span { vertical-align: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
