:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --background: #fffaf6;
  --ink: #54463f;
  --muted: #8b776d;
  --accent: #c67e73;
  --line: #f0e4dc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #bc786e; outline-offset: 4px; border-radius: 4px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 35%, #fff1eb 0%, transparent 42%),
    radial-gradient(ellipse at 12% 80%, #f7f7ec 0%, transparent 34%),
    var(--background);
}
.shell { width: min(100% - 96px, 1160px); margin-inline: auto; }
.site-header { min-height: 98px; display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.site-header nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 9px; color: #78675e; font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-link .arrow { color: #be8072; font-size: 16px; }
.nav-link:hover { color: #bb7167; }
.language-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid #eddfd7; border-radius: 999px; background: #f9f0eb; }
.language-switch[hidden] { display: none; }
.language-switch button { padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: #806b60; font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: #fff; color: #9b6157; font-weight: 700; box-shadow: 0 1px 4px rgba(133, 94, 77, .12); }

main.shell { flex: 1; }
.hero { width: 100%; min-height: min(650px, calc(100vh - 170px)); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 34px; padding-block: 58px 64px; }
.hero-copy { padding-left: 4%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 26px; padding: 7px 13px; border: 1px solid #f4dfd6; border-radius: 999px; background: #fff1e9; color: #83564d; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.eyebrow > span[aria-hidden="true"] { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #df9a8c; }
h1 { margin: 0; color: #55463f; font-size: clamp(50px, 5.6vw, 76px); font-weight: 700; letter-spacing: .04em; line-height: 1.35; }
.hero:lang(en) h1 { font-size: clamp(30px, 3.15vw, 44px); letter-spacing: .01em; }
.hero h1 span:last-child { color: #bd7a6d; }
.hero-cta { display: inline-flex; align-items: center; gap: 18px; margin-top: 32px; padding: 8px 9px 8px 19px; border: 1px solid #edd1c6; border-radius: 999px; background: #f8e6de; color: #83564d; font-size: 14px; font-weight: 700; text-decoration: none; }
.cta-arrow { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #fffaf6; font-size: 17px; line-height: 1; }
.hero-cta:hover { background: #f4ddd3; }
.hero-art { position: relative; width: min(100%, 480px); justify-self: end; }
.hero-art svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; pointer-events: none; }
.hero-art::before { top: 22%; left: 10%; width: 24px; height: 24px; background: radial-gradient(circle at 50% 20%, #e8c9b5 0 25%, transparent 28%), radial-gradient(circle at 80% 50%, #e8c9b5 0 25%, transparent 28%), radial-gradient(circle at 50% 80%, #e8c9b5 0 25%, transparent 28%), radial-gradient(circle at 20% 50%, #e8c9b5 0 25%, transparent 28%); opacity: .85; }
.hero-art::after { right: 7%; bottom: 22%; width: 34px; height: 20px; border-radius: 85% 15% 85% 15%; background: #dcebd7; transform: rotate(-25deg); }
.works { padding: 46px 0 100px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.section-header h2, .game-details h2 { margin: 0 0 26px; font-size: 26px; line-height: 1.4; }
.work-card { display: grid; grid-template-columns: minmax(240px, 40%) minmax(0, 1fr); overflow: hidden; border: 1px solid #f1ded4; border-radius: 30px; background: #fffdfa; text-decoration: none; box-shadow: 0 14px 38px rgba(133, 94, 77, .07); }
.work-visual { display: grid; min-height: 290px; place-items: center; padding: 30px; background: radial-gradient(circle at 18% 20%, #fff7e9 0 7px, transparent 8px), radial-gradient(circle at 84% 75%, #eac7a3 0 10px, transparent 11px), linear-gradient(145deg, #f8e6d2, #f1d0b7); }
.work-icon { display: block; width: min(100%, 220px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 12px 25px rgba(130, 84, 48, .16); }
.work-copy { align-self: center; min-width: 0; padding: clamp(28px, 5vw, 64px); }
.work-copy h3 { margin: 0 0 12px; font-size: clamp(25px, 3vw, 32px); }
.work-copy p { margin: 0 0 24px; color: #79685e; line-height: 1.8; }
.text-link, .back-link { color: #a45f54; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span, .back-link span { display: inline-block; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 44px; }
.game-page, .policy { padding-block: 45px 96px; }
.game-intro { display: grid; grid-template-columns: 1fr minmax(260px, 370px); align-items: center; gap: 50px; }
.game-intro h1 { font-size: clamp(46px, 5.4vw, 70px); }
.game-description { margin: 20px 0 0; max-width: 34em; color: #79685e; font-size: 17px; line-height: 1.9; }
.game-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.game-tags li { padding: 7px 13px; border-radius: 999px; background: #f8eae4; color: #8d6056; font-size: 13px; }
.game-tags li:nth-child(2) { background: #edf3e7; color: #62745e; }
.game-art { padding: 30px; border: 1px solid #f2ded2; border-radius: 36px; background: radial-gradient(circle at 20% 18%, #fff9ef 0 8px, transparent 9px), linear-gradient(145deg, #fae9dc, #f5d9c8); }
.game-art img { display: block; width: 100%; height: auto; border-radius: 25px; box-shadow: 0 12px 28px rgba(128, 84, 54, .13); }
.game-details { margin-top: 80px; padding-top: 42px; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; overflow: hidden; padding: 28px 38px 28px 26px; border: 1px solid #f0e2d9; border-radius: 24px; background: #fff9f3; box-shadow: 0 8px 24px rgba(133, 94, 77, .04); }
.feature-card::after { content: ""; position: absolute; top: 20px; right: 20px; width: 9px; height: 9px; border-radius: 50%; background: #eac5b7; }
.feature-card:nth-child(2) { border-color: #e3ebde; background: #f5f9f1; }
.feature-card:nth-child(2)::after { background: #c6dabb; }
.feature-card:nth-child(3) { border-color: #f1e4dc; background: #fff5f1; }
.feature-card:nth-child(3)::after { background: #eabfb5; }
.feature-card h3 { margin: 0 0 12px; font-size: 17px; }
.feature-card p { margin: 0; color: #79685e; font-size: 14px; line-height: 1.8; }
.game-privacy { margin: 38px 0 0; }
.game-privacy .text-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.game-privacy .text-link span:first-child { min-width: 0; }
.policy { max-width: 800px; margin-inline: auto; }
.policy h1 { margin-bottom: 27px; font-size: clamp(42px, 4.7vw, 60px); }
.policy h2 { margin: 42px 0 12px; font-size: 21px; line-height: 1.5; }
.policy p { margin: 10px 0; color: #6e5d54; font-size: 15px; line-height: 1.95; }
.policy p a { color: #a45f54; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.draft-notice { padding: 20px 23px; border: 1px solid #efcfc0; border-radius: 18px; background: #fff2e9; color: #825449; }
.draft-notice p { margin: 8px 0 0; color: #825f53; font-size: 14px; }
.policy-pending { margin-top: 22px; padding: 17px 20px; border-radius: 16px; background: #f9eee8; color: #795e52; font-size: 14px; line-height: 1.9; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px 32px; border-top: 1px solid var(--line); color: #938075; font-size: 12px; letter-spacing: .03em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #a45f54; text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .65s ease-out both; }
  .hero-art { animation: rise-in .85s .1s ease-out both; }
  .brand-mark { transition: transform .25s ease; }
  .wordmark:hover .brand-mark, .wordmark:focus-visible .brand-mark { transform: rotate(-7deg) scale(1.05); }
  .nav-link .arrow { transition: transform .2s ease; }
  .nav-link:hover .arrow, .nav-link:focus-visible .arrow { transform: translate(3px, -3px); }
  .mascot { animation: float 4.8s ease-in-out infinite; }
  .deer-eye, .sparkle, .heart { transform-box: fill-box; transform-origin: center; }
  .deer-eye { animation: blink 6.2s ease-in-out infinite; }
  .sparkle { animation: twinkle 3s ease-in-out infinite; }
  .sparkle-one { animation-delay: -.8s; }
  .sparkle-two { animation-delay: -1.8s; }
  .heart { animation: heartbeat 3.2s ease-in-out infinite; }
  .hero-cta, .cta-arrow { transition: transform .2s ease, background-color .2s ease; }
  .hero-cta:hover .cta-arrow, .hero-cta:focus-visible .cta-arrow { transform: translateX(3px); }
  .work-card { transition: transform .2s ease, box-shadow .2s ease; }
  .work-icon { transition: transform .25s ease; }
  .work-card:hover, .work-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(133, 94, 77, .11); }
  .work-card:hover .work-icon, .work-card:focus-visible .work-icon { transform: scale(1.035); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes blink {
  0%, 43%, 47%, 100% { transform: scaleY(1); }
  45%, 46% { transform: scaleY(.12); }
}
@keyframes twinkle {
  0%, 100% { opacity: .6; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes heartbeat {
  0%, 35%, 100% { transform: scale(1); }
  42% { transform: scale(1.12); }
  49% { transform: scale(1); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 40px, 540px); }
  .site-header { min-height: 82px; }
  .wordmark { gap: 10px; font-size: 15px; }
  .brand-mark { width: 41px; height: 41px; }
  .site-header nav { gap: 16px; }
  .nav-link { font-size: 13px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 8px; padding-block: 54px 34px; }
  .hero-copy { padding-left: 2px; }
  .eyebrow { margin-bottom: 18px; font-size: 13px; }
  h1 { font-size: clamp(46px, 11vw, 64px); line-height: 1.3; }
  .hero-cta { margin-top: 24px; }
  .hero-art { width: min(100%, 450px); justify-self: center; }
  .works { padding: 36px 0 65px; }
  .section-header h2, .game-details h2 { font-size: 23px; }
  .work-card { grid-template-columns: minmax(112px, 38%) minmax(0, 1fr); border-radius: 23px; }
  .work-visual { min-height: 180px; padding: 16px; }
  .work-icon { width: min(100%, 150px); border-radius: 16px; }
  .work-copy { padding: 24px; }
  .work-copy h3 { margin-bottom: 6px; font-size: 19px; }
  .work-copy p { margin-bottom: 10px; font-size: 13px; line-height: 1.65; }
  .text-link, .back-link { font-size: 13px; }
  .game-page, .policy { padding-block: 30px 66px; }
  .back-link { margin-bottom: 35px; }
  .game-intro { grid-template-columns: 1fr; gap: 32px; }
  .game-intro h1 { font-size: 46px; }
  .game-description { font-size: 15px; }
  .game-art { width: min(100%, 370px); padding: 24px; justify-self: center; }
  .game-details { margin-top: 56px; padding-top: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }
  .policy h1 { font-size: 42px; }
  .policy h2 { margin-top: 35px; font-size: 19px; }
  .policy p { font-size: 14px; }
  .site-footer { padding-block: 23px 28px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; }
  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-left: 0; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .site-header nav { gap: 10px; }
  .nav-link { font-size: 12px; }
  h1 { font-size: 44px; }
  .game-intro h1 { font-size: 42px; }
  .work-visual { min-height: 165px; padding: 12px; }
  .work-copy { padding: 18px; }
  .footer-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
