:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #20352b;
  background: #edf5f0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: #20352b;
  --muted: #52665a;
  --yellow: #ffda4b;
}

* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #1f7161; outline-offset: 5px; }
[hidden] { display: none !important; }

.page-shell {
  min-height: 100svh;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.wordmark > img { object-fit: contain; }
.wordmark-en { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; }
.official-link { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; }
.official-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 0 32px;
  position: relative;
}

.title-group { position: relative; z-index: 2; }
.greeting { margin: 0 0 15px; font-size: 13px; color: var(--muted); }
h1 { position: relative; margin: 0; font-size: 64px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
h1::after { content: ""; position: absolute; height: 13px; bottom: 4px; left: 3%; right: 3%; background: var(--yellow); z-index: -1; transform: rotate(-1deg); }
.subtitle { margin: 20px 0 0; font-size: 21px; font-weight: 600; color: var(--muted); }

.mascot-scene { position: relative; width: min(580px, 100%); height: 302px; margin: 12px 0 4px; flex: 0 0 auto; }
.mascot { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; object-fit: contain; animation: float 4s ease-in-out infinite; }
.cloud { position: absolute; object-fit: contain; width: 255px; height: auto; pointer-events: none; }
.cloud-left { left: -155px; top: 20px; transform: rotate(-8deg); animation: cloud-drift 14s ease-in-out infinite alternate; }
.cloud-right { right: -162px; top: 115px; width: 220px; transform: rotate(12deg); animation: cloud-drift 17s ease-in-out infinite alternate-reverse; }
.entry { position: relative; z-index: 2; }
.enter-button { display: inline-flex; justify-content: center; align-items: center; gap: 36px; min-width: 218px; height: 54px; padding: 0 24px; background: var(--yellow); border: 1px solid #dab52c; border-radius: 6px; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 #dbc242; transition: background 160ms, transform 160ms, box-shadow 160ms; }
.enter-button:hover { background: #ffe271; transform: translateY(-2px); box-shadow: 0 6px 0 #dbc242; }
.enter-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #dbc242; }
.countdown-controls { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; color: var(--muted); margin-top: 7px; }
.countdown-controls progress { appearance: none; width: 32px; height: 3px; border: none; border-radius: 2px; background: #ccdacf; color: #52785f; }
progress::-webkit-progress-bar { background: #ccdacf; border-radius: 2px; }
progress::-webkit-progress-value { background: #52785f; border-radius: 2px; transition: width 250ms linear; }
progress::-moz-progress-bar { background: #52785f; }
#pause { width: 36px; height: 36px; border: 0; border-radius: 4px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; cursor: pointer; }
#pause:hover { background: #dde9e0; }
#pause:disabled { cursor: default; opacity: .4; }

.footer { max-width: 1440px; width: 100%; margin: 0 auto; min-height: 62px; border-top: 1px solid #ceddd3; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.transition { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; visibility: hidden; }
.plane { position: absolute; top: 50%; left: 0; width: min(1100px, 110vw); height: auto; transform: translate(-150%, -50%); filter: drop-shadow(-20px 35px 22px #1b372c24); }
.plane-shadow { position: absolute; top: 48%; left: 0; width: 75vw; height: 20vh; background: #314735; opacity: 0; filter: blur(40px); transform: translateX(-120%); }
.wipe { position: absolute; inset: 0; background: #fff; opacity: 0; }
body[data-state="flying"] .transition { visibility: visible; pointer-events: auto; }
body[data-state="flying"] .plane { animation: flyby 1900ms cubic-bezier(.45, .05, .6, 1) both; }
body[data-state="flying"] .plane-shadow { animation: flyby-shadow 1900ms ease-in both; }
body[data-state="flying"] .wipe { animation: wipe 1900ms linear both; }
body[data-state="flying"] .page-shell { animation: page-recede 1900ms ease-in both; }
body[data-motion="reduced"][data-state="flying"] .plane,
body[data-motion="reduced"][data-state="flying"] .plane-shadow { display: none; }
body[data-motion="reduced"][data-state="flying"] .wipe { animation: fade-in 180ms linear both; }
body[data-motion="reduced"][data-state="flying"] .page-shell { animation: none; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes cloud-drift { from { translate: -10px 0; } to { translate: 10px 8px; } }
@keyframes flyby {
  0% { transform: translate(-135%, -45%) rotate(-12deg) scale(.45); }
  32% { transform: translate(-45%, -48%) rotate(-8deg) scale(.85); }
  68% { transform: translate(10vw, -50%) rotate(-5deg) scale(1.6); }
  100% { transform: translate(180vw, -62%) rotate(-3deg) scale(2.4); }
}
@keyframes flyby-shadow { 0% { opacity: 0; transform: translateX(-120%); } 55% { opacity: .13; } 100% { opacity: 0; transform: translateX(180vw); } }
@keyframes wipe { 0%, 58% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes page-recede { 0%, 40% { transform: scale(1); } 100% { transform: scale(.97); } }
@keyframes fade-in { to { opacity: 1; } }

@media (min-height: 950px) and (min-width: 700px) {
  .mascot-scene { height: 360px; margin-top: 20px; }
  .main { padding-bottom: 65px; }
}
@media (max-width: 600px) {
  .page-shell { padding: 0 22px; }
  .header { min-height: 76px; gap: 12px; }
  .wordmark { gap: 7px; font-size: 12px; }
  .wordmark > img { width: 30px; height: 32px; }
  .wordmark-en { font-size: 7px; }
  .official-link { font-size: 11px; gap: 4px; }
  .main { padding: 28px 0; }
  .greeting { font-size: 12px; margin-bottom: 19px; }
  h1 { font-size: 42px; }
  h1::after { height: 9px; }
  .subtitle { font-size: 18px; margin-top: 16px; }
  .mascot-scene { height: 265px; margin-top: 18px; }
  .cloud-left { width: 180px; left: -126px; top: 6px; }
  .cloud-right { width: 145px; right: -105px; top: 140px; }
  .footer { min-height: 60px; font-size: 9px; gap: 10px; }
  .footer > :first-child { font-size: 8px; }
  .plane { width: 180vw; }
}
@media (max-width: 350px) {
  .page-shell { padding: 0 16px; }
  h1 { font-size: 34px; }
  .official-link { font-size: 10px; }
}
@media (max-width: 300px) {
  h1 { font-size: 31px; }
}
@media (max-height: 720px) and (min-width: 600px) {
  .header { min-height: 70px; }
  .main { padding: 10px 0 20px; }
  .mascot-scene { height: 230px; }
  h1 { font-size: 56px; }
  .footer { min-height: 50px; }
}
@media (max-height: 760px) and (max-width: 600px) {
  .header { min-height: 64px; }
  .main { padding: 12px 0; }
  .greeting { margin-bottom: 10px; }
  .subtitle { margin-top: 12px; }
  .mascot-scene { height: 190px; margin-top: 10px; }
  .cloud-right { top: 90px; }
  .footer { min-height: 48px; }
}
@media (max-height: 620px) and (max-width: 600px) {
  .main { padding: 8px 0; }
  .mascot-scene { height: 160px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .header { min-height: 50px; }
  .main { padding: 8px 0; }
  .greeting { display: none; }
  h1 { font-size: 36px; }
  h1::after { height: 8px; }
  .subtitle { font-size: 14px; margin-top: 8px; }
  .mascot-scene { height: 115px; margin-top: 8px; }
  .enter-button { height: 42px; }
  .countdown-controls { min-height: 36px; margin-top: 3px; }
  .footer { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body[data-state="flying"] .wipe { opacity: 1; }
}
