:root {
  color-scheme: dark;
  font-family: system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #fff8e8;
  background: #122f30;
  font-synthesis: none;
  --cream: #fdf4df;
  --ink: #193630;
  --mint: #c6e5b6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, main { width: 100%; height: 100%; margin: 0; overscroll-behavior: none; }
body { overflow: hidden; }
main { height: 100dvh; }
button, summary { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible { outline: 3px solid #f8d98e; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .7; }
#canvas { display: block; width: 100%; height: 100%; outline: none; background: #122f30; touch-action: none; }
.arrival { position: fixed; z-index: 2; inset: 0; display: grid; align-items: center; overflow: auto; isolation: isolate; }
.arrival-art { position: fixed; z-index: -2; inset: 0; background: #35666a url("./park.webp") no-repeat center; background-size: cover; }
.arrival::before { content: ""; position: fixed; z-index: -1; inset: 0; background: linear-gradient(90deg, #0e292c 4%, #112f31f5 24%, #133537bd 42%, #19363924 68%), linear-gradient(0deg,#10292e7d,transparent 45%); pointer-events: none; }
.cover { width: min(390px,100% - 44px); margin-left: clamp(24px,9vw,154px); padding-block: 28px; }
.masthead img { display: block; width: 50px; height: 50px; image-rendering: pixelated; margin-bottom: 12px; }
h1 { font-size: clamp(3.4rem,7.2vw,6.45rem); line-height: .98; letter-spacing: -.085em; margin: 0; white-space: nowrap; font-weight: 800; }
.masthead p { font-size: clamp(1rem,1.8vw,1.23rem); letter-spacing: -.035em; margin: 16px 0 29px; color: #dde7cd; }
.arrival-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.primary, .quiet, .tools-panel button, .touch-actions button {
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 680;
  min-height: 46px;
  padding: 9px 14px;
}
.primary { background: var(--mint); color: var(--ink); box-shadow: 0 5px 14px #10322977; }
.primary:hover { background: #daf1cb; }
.quiet { background: #183735b9; border-color: #527064; color: var(--cream); }
.quiet:hover { background: #2a5048; }
.status, .error, .touch-tip { margin: 15px 0 0; font-size: .94rem; line-height: 1.55; color: #d2ddcb; overflow-wrap: anywhere; }
.error { color: #ffdabb; margin-bottom: 12px; }
.touch-tip { display: none; }
.loading { width: min(100%,315px); }
.loading label { display: block; margin-bottom: 7px; font-size: 1rem; }
progress { width: 100%; height: 9px; accent-color: var(--mint); border: 0; }
progress::-webkit-progress-bar { background: #446761; border-radius: 10px; }
progress::-webkit-progress-value { background: #c6e5b6; border-radius: 10px; }
.browser-tools { position: fixed; z-index: 1; right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); }
.browser-tools summary, .tools-panel { border: 1px solid #6d97867a; background: #132f2eea; border-radius: 9px; }
summary { list-style: none; min-height: 40px; min-width: 76px; text-align: center; align-content: center; padding: 6px 10px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.tools-panel { position: absolute; right: 0; bottom: 48px; display: grid; gap: 5px; padding: 6px; width: 184px; }
.tools-panel button { background: #234844; min-height: 42px; }
.tools-panel button:hover, .touch-actions button:hover { background: #356055; }
.notice { position: fixed; z-index: 3; top: max(16px,env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 9px 14px; background: #183b36; color: var(--cream); border: 1px solid #668b73; border-radius: 10px; text-align: center; pointer-events: none; }
.touch-tools { pointer-events: none; position: fixed; inset: 0; z-index: 1; }
.stick { pointer-events: auto; position: absolute; bottom: max(20px,env(safe-area-inset-bottom)); left: max(20px,env(safe-area-inset-left)); width: 106px; height: 106px; border: 2px solid #d4e9c287; background: #172f2fb3; border-radius: 50%; touch-action: none; display: grid; place-items: center; }
.stick span { width: 40px; height: 40px; background: #c6e5b6b8; border-radius: 50%; pointer-events: none; }
.touch-actions { position: absolute; right: max(16px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); display: flex; align-items: end; gap: 6px; }
.touch-actions button { pointer-events: auto; background: #173b36e8; border-color: #c6e5b662; padding: 8px; touch-action: none; }
.touch-actions .touch-main { color: var(--ink); background: var(--mint); min-width: 55px; height: 55px; }
.no-script { position: fixed; inset: 0; z-index: 5; margin: 0; padding: 28px; background: #163632; }
@media (max-width: 760px) {
  .cover { margin-left: 24px; }
  .arrival-art { background-position: 62% center; }
  .arrival::before { background: linear-gradient(90deg,#122f30fb,#13353793 65%,#17363a24); }
}
@media (pointer: coarse) and (orientation: portrait) {
  .touch-tip { display: block; }
  .arrival { align-items: end; }
  .arrival-art { background-position: 56% 10%; background-size: auto 82%; }
  .arrival::before { background: linear-gradient(0deg,#102a2d 2%,#102a2de6 30%,transparent 71%); }
  .cover { margin: 0 22px max(18px,env(safe-area-inset-bottom)); width: auto; }
}
@media (max-height: 430px) {
  .masthead img { width: 34px; height: 34px; margin-bottom: 4px; }
  h1 { font-size: clamp(2.7rem,8vw,4.8rem); }
  .masthead p { margin: 8px 0 16px; }
  .cover { padding-block: 16px; }
}
