:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #263e4e;
  background: #f8f2f3;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #4e677f;
  outline-offset: 5px;
}

.landscape {
  position: relative;
  isolation: isolate;
  min-height: max(640px, 100svh, min(56vw, 1120px));
  overflow: clip;
  background: linear-gradient(117deg, #edf2fc 0%, #fbf2f5 53%, #faf2e9 100%);
}

.landscape::after {
  position: absolute;
  z-index: 1;
  top: 0;
  inset-inline: 0;
  height: 158px;
  content: "";
  background: linear-gradient(#f7f1f4 0 31px, #f7f1f4ee 66px, #f7f1f400 100%);
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline: clamp(26px, 5.5vw, 94px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.1vw, 49px);
  min-height: 86px;
  border-bottom: 1px solid #455f772d;
}

.site-name {
  margin: 0;
  line-height: 1;
}

.site-name img {
  display: block;
  width: clamp(132px, 13vw, 178px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-button, .profile-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .58rem 1.15rem;
  border: 1px solid #fff8;
  border-radius: 999px;
  background: #f9fcff80;
  color: #314a60;
  cursor: pointer;
  font-size: .94rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .18s ease;
}
.profile-button:hover, .profile-back:hover { background: #fff; }

.scene, .ice-scene {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 900px);
  aspect-ratio: 3 / 2;
}
.ice-scene { z-index: 1; pointer-events: none; }
.art-definitions { position: absolute; pointer-events: none; }

.scene-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: saturate(.9);
}

.ice-background { display: none; }

.peach-bough-motion {
  transform-box: view-box;
  transform-origin: 905px 133px;
  animation: peach-breeze 5.6s ease-in-out infinite alternate;
}
@keyframes peach-breeze {
  from { transform: rotate(-.85deg); }
  to { transform: rotate(1.15deg); }
}
.sprig-motion {
  animation: leaflet-breeze 3.8s var(--phase) ease-in-out infinite alternate;
}
@keyframes leaflet-breeze {
  from { transform: rotate(-5deg); }
  to { transform: rotate(7deg); }
}
.farmer-motion-layer { visibility: hidden; }
.motion-ready .farmer-motion-layer { visibility: visible; }
.motion-ready .farmer-drawing { visibility: hidden; }
.farmer-motion-canvas { display: block; width: 100%; height: 100%; }

.drifting-mist { animation: morning-mist 19s ease-in-out infinite alternate; }
@keyframes morning-mist {
  from { opacity: .43; transform: translate(-47px, 4px); }
  to { opacity: .87; transform: translate(74px, -12px); }
}

.orchard-sun { animation: passing-sunlight 16s ease-in-out infinite alternate; }
@keyframes passing-sunlight {
  from { opacity: .17; transform: translate(32px, -13px); }
  to { opacity: .93; transform: translate(-42px, 35px); }
}

.ice-shimmer { animation: ice-light 10s ease-in-out infinite alternate; }
@keyframes ice-light {
  from { opacity: .16; transform: translateX(-18px); }
  to { opacity: .87; transform: translateX(19px); }
}

.stream-flow { animation: creek-flow 3.8s linear infinite; }
.stream-flow-next { animation-delay: -1.9s; }
@keyframes creek-flow {
  0% { opacity: 0; transform: translate(10px, -2px); }
  30%, 62% { opacity: .79; }
  100% { opacity: 0; transform: translate(-13px, 2px); }
}

.character-hit {
  fill: transparent;
  pointer-events: fill;
  cursor: pointer;
}

.character-art {
  transform-box: view-box;
  transform-origin: var(--pivot);
  transition: transform .2s ease-out;
  pointer-events: none;
}
.skater-art { --pivot: 176px 339px; }
.farmer-art { --pivot: 807px 489px; }
.hotspot:hover .character-art, .hotspot:focus-visible .character-art {
  transform: scale(1.02);
}
.hotspot:focus-visible { outline: 2px solid #476780; outline-offset: 5px; }

.swallow-motion { animation: swallow-flight 4.1s ease-in-out infinite alternate; }
@keyframes swallow-flight {
  from { transform: translateY(-2px); }
  to { transform: translateY(5px); }
}

.petal {
  transform-box: fill-box;
  transform-origin: center;
  fill: #d794a6;
  opacity: 0;
  animation: petal-fall var(--duration) var(--delay) linear infinite;
}
@keyframes petal-fall {
  0% { opacity: 0; transform: translate(0, -7px) rotate(-18deg); }
  13% { opacity: .66; }
  42% { transform: translate(-13px, 44px) rotate(52deg); }
  75% { opacity: .51; }
  100% { opacity: 0; transform: translate(var(--drift), 126px) rotate(146deg); }
}

.soil-impact, .falling-petals, .swallow-motion { pointer-events: none; }
.soil-turn { fill: #a07952; opacity: 0; }
.is-impact .soil-turn { animation: fresh-soil 570ms both; }
@keyframes fresh-soil {
  0% { opacity: 0; transform: translateY(1px); }
  24% { opacity: .63; transform: translate(-2px, -1.3px); }
  100% { opacity: 0; transform: translate(-2px, 1px); }
}
.dust {
  fill: url(#dust-tint);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.is-impact .dust { animation: soil-dust 790ms var(--wait) ease-out both; }
@keyframes soil-dust {
  0% { opacity: 0; transform: scale(.51); }
  23% { opacity: .83; }
  68% { opacity: .31; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.48); }
}

.field-foreground { pointer-events: none; }
.hoe-lip { opacity: 0; }
.is-embedded ~ .field-foreground .hoe-lip { opacity: 1; }
.foreground-shoot {
  transform-box: view-box;
  transform-origin: 878px 514px;
  animation: nearby-growth 4.5s ease-in-out infinite alternate;
}
@keyframes nearby-growth {
  from { transform: rotate(-3.5deg); }
  to { transform: rotate(5deg); }
}

.profile-page {
  min-height: 100svh;
  padding: 0 clamp(24px, 5.5vw, 94px) 3rem;
  background: radial-gradient(ellipse at 12% 0%, #e9effa, transparent 65%),
              linear-gradient(132deg, #f9f4f6, #fbf7f2);
}
.profile-header {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid #455f772d;
}
.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 228px);
  align-items: center;
  gap: clamp(25px, 6vw, 84px);
  max-width: 850px;
  margin: clamp(56px, 12vh, 130px) auto 0;
}
.profile-text h1 {
  margin: 0;
  color: #2f435b;
  font: 700 clamp(1.85rem, 3.6vw, 2.65rem)/1.25 var(--serif);
  letter-spacing: .06em;
}
.profile-rule {
  width: 68px;
  margin: 1rem 0 1.65rem;
  border: 0;
  border-top: 1px solid #8498aa;
}
.profile-text h2 { margin: 0; font: 700 1.16rem/1.45 var(--serif); }
.profile-portrait {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid #9ca6ae;
  border-radius: 50%;
  background: linear-gradient(146deg, #fcfafa, #eeeff3);
  box-shadow: inset 0 0 0 5px #fbf8f5, inset 0 0 0 6px #c4c5cb,
              0 4px 16px #5d647414;
  color: #566979;
  font-size: .875rem;
}
.profile-more { max-width: 850px; margin: 3.5rem auto 0; }

@media (max-width: 700px) {
  .landscape { min-height: 100svh; padding-top: 71px; }
  .landscape::after { height: 125px; }
  .site-header { inset-inline: 24px; min-height: 72px; }
  .scene, .ice-scene {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    aspect-ratio: auto;
    background: none;
    overflow: clip;
  }
  .ice-scene { height: clamp(257px, 57vw, 310px); }
  .scene { height: clamp(310px, 64vw, 385px); margin-top: -22px; }
  .scene, .ice-scene { mask-image: linear-gradient(transparent, #000 15%, #000 82%, transparent); }
  .ice-background { display: inline; }
  .scene-map {
    inset: auto;
    width: min(213%, 940px);
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .ice-map { inset: 63% auto auto 0; transform: translateY(-63%); }
  .field-map { inset: 83% 0 auto auto; transform: translateY(-83%); }
  .profile-header { min-height: 72px; }
  .profile-content {
    grid-template-columns: minmax(0, 1fr) clamp(82px, 26vw, 150px);
    align-items: start;
    gap: clamp(15px, 5vw, 35px);
  }
  .profile-text h1 { font-size: 1.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
