@font-face {
  font-family: Chalk;
  src: url('/assets/chalk.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff1ce;
  --slate: #203f3b;
  --paper: #fff4da;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbefd6;
  color: var(--cream);
  font-family: Chalk,'Trebuchet MS',sans-serif;
}

button,a {
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: .16em;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #144d61;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


.hero {
  position: relative;
  width: 100%;
  max-width: 245dvh;
  margin-inline: auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #fbefd6;
}
/* Hidden until every picture of the scene is decoded, then one fade (shop.js revealShop). */
.hero .world { opacity: 0; transition: opacity .45s ease-out; }
.hero.revealed .world { opacity: 1; }

.world {
  position: absolute;
  transform-origin: top left;
}

.world > * { position: absolute; }
.world > img, .harbor, .harbor-frames, .logo { pointer-events: none; }
.harbor { object-fit: cover; }
/* The playing video is drawn into this canvas (shop.js): Windows window previews (Alt+Tab, the tab
   switcher) leave out a <video> element, which showed as a blank sky there. */
.harbor-frames { pointer-events: none; }
.logo { margin: 0; }
.logo img { display: block; width: 100%; height: auto; }

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: .65em;
}

.store-links a {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 1;
  border-radius: 1.5em;
  filter: drop-shadow(1px 3px 2px #304d3e85);
}
.store-links a { position: relative; -webkit-tap-highlight-color: transparent; }
.store-links img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Pressed: the gold bezel stays put and the cushion sinks into it, the game's press recipe
   (tools/art/button_pressed_bake.py) baked for each badge. The badge itself never moves. */
.store-links img.pressed { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.store-links a:active img.pressed, .store-links a.is-pressed img.pressed { opacity: 1; }
.download.stacked { grid-template-columns: 1fr; }

.small-print {
  display: grid;
  justify-items: center;
  padding: .72em .28em .36em;
  /* Paper in the counter's shade (tools/web/panel_light.py PAPER); ::after adds the panel's sun patch. */
  background: linear-gradient(122deg, #ecdfc2, #e3d4b3 82%, #d9c8a3);
  color: #353329;
  line-height: 1.12;
  transform: translate(-50%, -50%) rotate(-3deg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 1px #24302663, 1px 3px 4px #24302633;
}
.small-print::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--light-w);
  height: var(--light-h);
  transform: translate(-50%, -50%) rotate(3deg);
  background: var(--light) no-repeat var(--light-pos) / var(--light-size);
  mix-blend-mode: screen;
  pointer-events: none;
}
.small-print::before {
  content: "";
  position: absolute;
  top: .15em;
  left: 49%;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff0ab 5%, #c8a05a 42%, #856423 76%);
  box-shadow: 1px 2px 1px #67553480;
}
.small-print h2 {
  font-size: 1.13em;
  line-height: 1.12;
  font-weight: normal;
  margin: 0 0 .12em;
  padding: 0 .18em .09em;
  border-bottom: 1px solid #bda985;
}
.small-print div { white-space: nowrap; }
.small-print a {
  display: inline-grid;
  place-items: center;
  min-height: max(1.22em, var(--touch-height));
  color: #314c40;
  text-decoration-thickness: .04em;
  text-underline-offset: .13em;
}
.small-print a:hover { color: #683a20; }

/* The small print: privacy, terms and account deletion as paper notices over the blurred kiosk.
   /privacy, /terms and /delete-account open the homepage with the matching notice showing. */
dialog.notice {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(1.6rem, 6vh, 4rem) max(14px, env(safe-area-inset-right)) 2rem max(14px, env(safe-area-inset-left));
  border: 0; background: transparent; overflow-y: auto; overscroll-behavior: contain;
}
dialog.notice::backdrop { background: #142b2873; backdrop-filter: blur(7px) saturate(.9); -webkit-backdrop-filter: blur(7px) saturate(.9); }
dialog.notice[open] .paper { animation: notice-in .22s ease-out; }
@keyframes notice-in { from { opacity: 0; transform: translateY(10px) rotate(-.4deg); } }
@media (prefers-reduced-motion: reduce) { dialog.notice[open] .paper { animation: none; } }
.paper {
  position: relative; max-width: 40rem; margin: auto;
  padding: clamp(1.4rem, 5vw, 3rem); padding-top: clamp(1.6rem, 3.4vw, 2.4rem);
  background: #fffaec; color: #342c25;
  box-shadow: 0 2px 1px #19171073, 0 13px 36px #120f0c55;
  font: 1.0625rem/1.6 Georgia, "Times New Roman", serif; overflow-wrap: break-word;
}
.paper::before, .paper::after {
  content: ""; position: absolute; top: -8px; width: clamp(2.4rem, 6vw, 4.5rem); height: 18px;
  background: #e5cf99bd; background-image: repeating-linear-gradient(88deg, transparent 0 3px, #cfbd902a 3px 4px);
  box-shadow: 0 1px 1px #54391e33; pointer-events: none;
}
.paper::before { left: 6%; transform: rotate(-9deg); }
.paper::after { right: 6%; transform: rotate(7deg); }
.paper h1, .paper h2 { font-family: Chalk, Georgia, serif; color: #225c55; font-weight: 400; }
.paper h1 { margin: 0 2.2rem .6rem 0; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; text-wrap: balance; }
.paper h2 { margin: 1.5rem 0 .35rem; font-size: 1.6rem; line-height: 1.15; }
.paper p, .paper ul { margin: 0 0 .8rem; }
.paper ul { padding-left: 1.4em; }
.paper li + li { margin-top: .3em; }
.paper li::marker { color: #225c55; }
.paper .lead { color: #60574b; }
.paper a { color: #166158; text-decoration-thickness: .08em; text-underline-offset: .16em; overflow-wrap: anywhere; }
.paper a:focus-visible, .notice-close:focus-visible { outline: 3px solid #225c55; outline-offset: 3px; box-shadow: none; }
.notice-close {
  position: absolute; top: .55rem; right: .6rem; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; padding: 0 0 .15rem; border: 0; border-radius: 50%;
  background: transparent; color: #60574b; font: 2.1rem/1 Georgia, serif;
}
.notice-close:hover { color: #225c55; background: #f3edda; }
.paper:focus { outline: none; }
@media (max-width: 34rem) { .paper { font-size: 1rem; line-height: 1.55; } }
