:root {
  color-scheme: dark;
  --paper: #050810;
  --ink: #eef3f8;
  --muted: #9aabbc;
  --coral: #ff4f40;
  --coral-dark: #ff775f;
  --sea: #00e5cc;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 7px; }
.page-shell { width: min(1220px, 100%); margin: auto; padding: 0 24px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.brand img { width: 184px; height: auto; display: block; }
.header-note { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.welcome { display: grid; }
.welcome-copy { grid-row: 2; padding-top: 6px; }
.welcome-label { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.welcome-label span { color: var(--coral-dark); font-size: 19px; }
h1 { font-size: clamp(36px, 10vw, 54px); font-weight: 800; line-height: 1.3; letter-spacing: -1.8px; margin: 0; }
.period { display: inline-block; margin-left: -4px; }
.intro { margin: 20px 0 28px; font-size: 14px; line-height: 1.95; color: var(--muted); }
.enter-button { width: 100%; min-height: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 18px; background: var(--coral); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 650; box-shadow: 4px 4px 0 #6b282d; position: relative; transition: transform 140ms, box-shadow 140ms, background 140ms; }
.enter-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.button-corner { margin-left: auto; padding-left: 10px; font: 23px/1 monospace; }
.enter-button:hover { background: #ff775f; }
.enter-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #6b282d; }
.entry-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; text-align: center; letter-spacing: .25px; }
.harbor { width: min(100%, 610px); aspect-ratio: 640 / 570; position: relative; grid-row: 1; margin: -16px auto 20px; user-select: none; }
.landscape { display: block; width: 100%; height: 100%; }
.claw { position: absolute; width: 45%; top: 19%; left: 17%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.claw svg { width: 100%; display: block; overflow: visible; }
.claw-body { transform-origin: 8px 14px; }
.eyes { transition: transform 100ms; }
.speech-bubble { position: absolute; left: 25%; top: 11%; padding: 8px 12px; background: #172333; color: #dce9f0; font-size: clamp(11px, 1.6vw, 13px); line-height: 1.6; box-shadow: 3px 3px 0 #284256; white-space: nowrap; }
.speech-bubble::after { position: absolute; content: ""; width: 8px; height: 8px; bottom: -8px; left: 20px; background: #172333; }
.play-hint { position: absolute; inset: auto 0 6%; margin: 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.play-hint span { display: inline-block; margin-right: 4px; font-size: 18px; vertical-align: -1px; }
.scene-stamp { position: absolute; right: 7%; bottom: 1%; color: var(--muted); font: 10px "Courier New", monospace; }
.claw.is-waving .left-pincer { animation: wave 550ms steps(3, end) 2; transform-origin: 8px 6px; }
.claw.is-waving .claw-body { animation: hop 550ms steps(3, end) 2; }
@keyframes wave { 50% { transform: rotate(-8deg); } }
@keyframes hop { 50% { transform: translateY(-.3px); } }
.site-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 0 24px; margin-top: 32px; border-top: 1px solid #233041; color: var(--muted); font-size: 11px; }
.site-footer > span { padding-top: 13px; }
.entry-help { position: relative; max-width: 270px; }
.entry-help summary { list-style: none; min-height: 44px; cursor: pointer; padding: 12px 0 12px 12px; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.entry-help summary::-webkit-details-marker { display: none; }
.entry-help[open] summary span { transform: rotate(45deg); }
.entry-help p { position: absolute; bottom: 100%; right: 0; width: min(270px, calc(100vw - 48px)); margin: 0 0 8px; padding: 16px 18px; line-height: 1.9; background: #172333; border: 1px solid #3b5066; box-shadow: 3px 3px 0 #3b5066; font-size: 12px; z-index: 2; }
@media (min-width: 700px) {
  .page-shell { padding: 0 40px; }
  .site-header { height: 120px; }
  .welcome { min-height: 570px; grid-template-columns: 42% 58%; align-items: center; }
  .welcome-copy { grid-row: 1; padding: 0 0 35px; position: relative; z-index: 1; }
  .welcome-label { margin-bottom: 25px; }
  h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.34; letter-spacing: -2px; }
  .intro { font-size: 15px; margin: 23px 0 34px; }
  .enter-button { width: min(100%, 312px); min-height: 64px; }
  .entry-note { width: min(100%, 312px); font-size: 11px; }
  .harbor { grid-column: 2; width: 110%; max-width: 665px; margin: 0 0 15px -4%; }
  .play-hint { font-size: 12px; }
  .scene-stamp { font-size: 11px; }
  .site-footer { margin-top: 18px; padding: 22px 0 25px; font-size: 12px; }
}
@media (min-width: 1100px) and (min-height: 850px) {
  .welcome { min-height: 690px; }
}
@media (max-width: 359px) {
  .page-shell { padding: 0 20px; }
  .site-header { height: 86px; }
  .brand img { width: 158px; }
  .header-note { font-size: 10px; }
  .enter-button { font-size: 13px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .enter-button, .speech-bubble { border: 2px solid ButtonText; }
  .claw { forced-color-adjust: none; }
}
