:root {
  color: #4c2e1a;
  background: #fff9ee;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff9ee; }
a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 256px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 214, 180, .5), transparent 27%),
    radial-gradient(circle at 8% 74%, rgba(255, 194, 205, .36), transparent 22%),
    radial-gradient(circle at 91% 70%, rgba(219, 239, 192, .42), transparent 25%),
    linear-gradient(180deg, #fff8ed 0%, #fff4e5 68%, #fffaf0 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 52px;
  left: 50%;
  width: min(740px, 92vw);
  height: 178px;
  border: 1px solid rgba(225, 154, 112, .18);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .33), 0 0 0 65px rgba(255, 214, 188, .14);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 170px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 250, 240, .92));
}

.topbar,
.hero-content,
.game-section,
.contact-section,
footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 80px;
  padding-top: 9px;
}

.top-logo { display: block; line-height: 0; }
.top-logo img { display: block; width: 124px; height: auto; filter: drop-shadow(0 3px 5px rgba(88, 49, 17, .1)); }
.top-apply { margin-top: 15px; padding: 9px 16px; border: 2px solid #804326; border-radius: 12px; background: linear-gradient(180deg, #ffdd72, #f5ae3e); box-shadow: 0 3px 0 #9e5529, 0 7px 14px rgba(107, 60, 26, .16); color: #643116; font-size: 14px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.top-apply:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #9e5529, 0 9px 16px rgba(107, 60, 26, .16); }

.hero-content { display: grid; min-height: 176px; place-items: center; padding: 0 0 8px; text-align: center; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; padding: 0; }
.eyebrow { margin: 0 0 11px; color: #bf664d; font-size: 14px; font-weight: 800; letter-spacing: .19em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: #56301d; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(34px, 4vw, 50px); letter-spacing: .1em; line-height: 1.15; }
.hero-game-type { margin: 0 auto 10px; color: #b9654a; font-size: 14px; font-weight: 800; letter-spacing: .12em; }

.petals i { position: absolute; z-index: -1; display: block; width: 14px; height: 20px; border-radius: 70% 30% 70% 30%; background: linear-gradient(135deg, #ff9aac, #ffd3ce); opacity: .72; transform: rotate(32deg); animation: petal-drift 11s linear infinite; }
.petals i:nth-child(1) { left: 8%; top: 12%; animation-delay: -1s; }
.petals i:nth-child(2) { left: 26%; top: -3%; animation-delay: -6s; }
.petals i:nth-child(3) { left: 51%; top: 17%; animation-delay: -4s; }
.petals i:nth-child(4) { left: 75%; top: 4%; animation-delay: -9s; }
.petals i:nth-child(5) { left: 91%; top: 28%; animation-delay: -2s; }
.petals i:nth-child(6) { left: 43%; top: 2%; animation-delay: -7s; }

.game-section { padding: 96px 0 104px; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading h2, .contact-section h2 { margin-bottom: 14px; color: #58321d; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: .06em; }
.section-heading > p:last-child { margin: 0; color: #7b5b45; font-size: 16px; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.feature-card { min-height: 218px; padding: 28px; border: 1px solid rgba(103, 67, 40, .14); border-radius: 22px; box-shadow: 0 15px 34px rgba(87, 49, 22, .08); }
.feature-card--pink { background: linear-gradient(135deg, #fff4ee, #ffe4e3); }
.feature-card--gold { background: linear-gradient(135deg, #fff9e5, #fff0c2); }
.feature-card--green { background: linear-gradient(135deg, #f5fce9, #dff2d5); }
.feature-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 19px; border: 2px solid rgba(102, 63, 35, .72); border-radius: 13px; background: rgba(255,255,255,.68); color: #8e4c2e; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; font-weight: 900; }
.feature-card h3 { margin-bottom: 9px; color: #61391f; font-size: 19px; }
.feature-card p { margin: 0; color: #765846; font-size: 14px; line-height: 1.8; }

.showcase-section { padding: 12px 0 94px; background: linear-gradient(180deg, #fff9ee 0%, #fff3e9 100%); }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.screenshot-card { min-width: 0; margin: 0; padding: 10px 10px 17px; border: 1px solid rgba(111, 69, 39, .15); border-radius: 19px; background: #fffdf8; box-shadow: 0 18px 38px rgba(93, 50, 24, .1); }
.screenshot-frame { position: relative; height: clamp(230px, 25vw, 318px); overflow: hidden; border: 5px solid #f6e7d5; border-radius: 12px; background: #f1dfca; }
.screenshot-frame::after { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 7px; content: ""; pointer-events: none; }
.screenshot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.screenshot-card--home img { object-position: 50% 41%; }
.screenshot-card--battle img { object-position: center; }
.screenshot-card figcaption { padding: 14px 8px 0; }
.screenshot-card figcaption span { color: #6b3923; font-family: "STKaiti", "KaiTi", serif; font-size: 22px; font-weight: 900; letter-spacing: .08em; }
.screenshot-card figcaption p { margin: 7px 0 0; color: #82604b; font-size: 14px; line-height: 1.7; }

.beta-section { position: relative; overflow: hidden; padding: 91px 24px 84px; background: linear-gradient(135deg, #703c29, #9d5635 52%, #6d3929); color: #fff9ef; text-align: center; }
.beta-section::before, .beta-section::after { position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255, 218, 143, .15); border-radius: 50%; content: ""; }
.beta-section::before { top: -285px; left: -170px; box-shadow: 0 0 0 54px rgba(255, 219, 148, .05), 0 0 0 110px rgba(255, 219, 148, .04); }
.beta-section::after { right: -225px; bottom: -340px; box-shadow: 0 0 0 54px rgba(255, 219, 148, .05), 0 0 0 110px rgba(255, 219, 148, .04); }
.section-heading--light { position: relative; z-index: 1; }
.section-heading--light .eyebrow { color: #ffd775; }
.section-heading--light h2 { color: #fff7df; }
.section-heading--light > p:last-child { color: rgba(255, 245, 223, .86); }
.qr-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(240px, 285px)); justify-content: center; gap: 24px; }
.qr-card { padding: 24px 22px 20px; border: 1px solid rgba(255, 226, 171, .38); border-radius: 20px; background: rgba(255, 249, 235, .98); box-shadow: 0 16px 34px rgba(45, 20, 9, .2); color: #623a25; }
.qr-image-wrap { position: relative; display: grid; width: 180px; height: 180px; place-items: center; overflow: hidden; margin: 0 auto 19px; border: 7px solid #fff; border-radius: 12px; background: #f6eadb; }
.qr-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.qr-card.has-qr .qr-image { opacity: 1; }
.qr-card.has-qr .qr-placeholder { opacity: 0; }
.qr-placeholder { display: grid; place-items: center; gap: 8px; padding: 18px; color: #9a6f58; font-size: 13px; line-height: 1.4; transition: opacity .2s ease; }
.qr-placeholder strong { display: grid; width: 55px; height: 55px; place-items: center; border: 2px dashed #c69d7e; border-radius: 14px; color: #b46a53; font-family: "STKaiti", "KaiTi", serif; font-size: 27px; }
.qr-card h3 { margin: 0; font-size: 18px; }

.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 70px 0; }
.contact-section .eyebrow { margin-bottom: 9px; }
.contact-section h2 { margin: 0; }
.email-link { display: inline-flex; align-items: center; gap: 20px; padding: 17px 22px; border-bottom: 2px solid #a55a38; color: #844225; font-size: 17px; font-weight: 800; transition: color .2s ease, transform .2s ease; }
.email-link:hover { color: #df7358; transform: translateY(-2px); }
.email-link span { font-size: 24px; }

footer { display: flex; justify-content: center; gap: 22px; padding: 22px 0 31px; border-top: 1px solid #ead7bf; color: #95745e; font-size: 12px; }
footer a:hover { color: #ae5b3b; text-decoration: underline; }

@keyframes petal-drift { 0% { transform: translate3d(0, -30px, 0) rotate(32deg); opacity: 0; } 10%, 86% { opacity: .72; } 100% { transform: translate3d(54px, 670px, 0) rotate(320deg); opacity: 0; } }

@media (max-width: 760px) {
  .topbar, .hero-content, .game-section, .contact-section, footer { width: min(100% - 32px, 560px); }
  .topbar { height: 67px; padding-top: 7px; }
  .top-logo img { width: 104px; }
  .hero { min-height: 245px; }
  .hero::before { top: 48px; height: 166px; }
  .hero-content { min-height: 178px; padding: 0 0 8px; }
  .hero-copy { max-width: 100%; }
  h1 { font-size: 34px; }
  .hero-game-type { font-size: 13px; }
  .top-apply { margin-top: 11px; padding: 8px 13px; font-size: 13px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { min-height: auto; padding: 23px; }
  .feature-icon { float: left; margin: 0 17px 16px 0; }
  .feature-card p { clear: both; }
  .game-section { padding: 72px 0; }
  .showcase-section { padding: 12px 0 72px; }
  .showcase-grid { grid-template-columns: 1fr; width: min(100% - 32px, 560px); gap: 16px; }
  .screenshot-frame { height: min(58vw, 315px); }
  .beta-section { padding: 68px 16px; }
  .qr-grid { grid-template-columns: minmax(220px, 285px); }
  .contact-section { align-items: flex-start; flex-direction: column; padding: 55px 0; }
  .email-link { padding-left: 0; }
  footer { flex-direction: column; gap: 10px; text-align: center; }
}

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