@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');
/* Everything laid over the city is cut from the same cream card as Maimo's photographs: square tiles with a hard
   ink shadow, pictures made of big pixels, very few words. */
:root { --ink: #1e1b1c; --paper: #f4f1e8; --text: #f6f3ea; --dim: #6f6a62; --lit: #ffcf5a; --accent: #d9573a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --dot: "DotGothic16", ui-monospace, monospace; --sans: "Hiragino Sans", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a0c10; color: var(--text); font-family: var(--mono); -webkit-font-smoothing: antialiased;
  overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#stage { position: fixed; inset: 0; display: block; touch-action: none; }
[hidden] { display: none !important; }

/* ---- the frame over the city ---- */
#hud { position: fixed; inset: 0; pointer-events: none; }
/* The lower edge is darkened a little, so the labels read over pale paint. */
#hud::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.4), transparent); }
#hud > * { pointer-events: auto; }
/* A tile: the icon is twelve squares by twelve, shown as large as the tile allows. */
.brand i, .corner button i, .menu button i { display: block; background: var(--paper) var(--pic) center / 62% no-repeat; image-rendering: pixelated; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s steps(2), box-shadow .1s steps(2); }
.brand { position: absolute; left: 22px; top: 20px; display: flex; align-items: center; gap: 12px; font: 400 23px var(--dot); letter-spacing: .06em; text-shadow: 2px 2px 0 var(--ink), 0 0 10px rgba(0,0,0,.5); }
.brand i { width: 36px; height: 36px; background-size: 80%; }
.menu button[data-id="about"] i { background-size: 78%; }
.day { position: absolute; left: 70px; top: 58px; padding: 1px 7px; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .16em; }
/* Today's luck, waiting in the diary: a small red ticket under the DAY one. */
.luck { position: absolute; left: 70px; top: 78px; padding: 1px 7px; background: var(--accent); color: var(--paper); font: 700 9px var(--mono); letter-spacing: .12em; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.luck b { font: 400 11px var(--dot); letter-spacing: 0; }
.luck.drawn { background: var(--paper); color: var(--ink); }
.corner { position: absolute; right: 22px; top: 20px; display: flex; gap: 12px; }
.corner button i { width: 40px; height: 40px; }
.corner button[aria-pressed="true"] i { background-color: var(--lit); }
.menu { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 16px; }
.menu button { display: grid; justify-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: 1px 1px 0 var(--ink), 0 0 8px rgba(0,0,0,.7); animation: pop .32s steps(5) backwards; }
.menu button:nth-child(1) { animation-delay: 1.5s; } .menu button:nth-child(2) { animation-delay: 1.58s; } .menu button:nth-child(3) { animation-delay: 1.66s; } .menu button:nth-child(4) { animation-delay: 1.74s; } .menu button:nth-child(5) { animation-delay: 1.82s; }
/* Only a small hop: the row must be there even where animations do not run. */
@keyframes pop { from { transform: translateY(18px); } }
.menu button i { width: 56px; height: 56px; }
.menu button:hover i, .corner button:hover i, .brand:hover i { transform: translate(-1px, -3px); box-shadow: 4px 6px 0 var(--ink); }
/* The place you are in: its tile is pressed down and lit. */
.menu button.here i { background-color: var(--lit); transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.menu button:focus-visible i, .corner button:focus-visible i, .brand:focus-visible i { outline: 3px solid var(--lit); outline-offset: 2px; }
.note { position: absolute; right: 22px; bottom: 20px; font-size: 11px; color: #d8d4c8; text-align: right; line-height: 1.8; white-space: nowrap; text-shadow: 0 0 4px rgba(0,0,0,.9); }
.note a { color: inherit; margin-left: 12px; text-decoration: none; border-bottom: 1px solid transparent; }
.note a:hover { border-bottom-color: currentColor; }
/* The language switch (public/shared/lang.js): two small cream tiles, the chosen one lit. At the top right of the
   ticket, and under the tiles of the corner once in. */
.lang-switch { display: inline-flex; box-shadow: 3px 3px 0 var(--ink); }
.lang-switch button { padding: 6px 8px; background: var(--paper); color: var(--ink); font: 700 11px var(--mono); letter-spacing: .04em; line-height: 1; }
.lang-switch button + button { border-left: 2px solid var(--ink); }
html[data-lang="en"] .lang-switch [data-set-lang="en"], html[data-lang="ja"] .lang-switch [data-set-lang="ja"] { background: var(--lit); cursor: default; }
#gate > .lang-switch { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; }
.hud-lang { position: absolute; right: 22px; top: 74px; }
/* The name of the place, one letter to a tile, each turned over in its turn. */
#big { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; opacity: 0; }
#big.show { opacity: 1; }
#big span { width: 30px; height: 34px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 700; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
#big.show span { animation: turn .34s steps(6) backwards; }
@keyframes turn { from { transform: scaleX(0); background: var(--ink); color: var(--ink); } 50% { transform: scaleX(.1); background: var(--ink); color: var(--ink); } }
#tag { position: absolute; left: 0; top: 0; padding: 3px 8px; background: var(--ink); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
#bubble { position: absolute; left: 0; top: 0; padding: 6px 12px; background: var(--paper); color: var(--ink); font: 400 16px var(--dot); white-space: nowrap; pointer-events: none; box-shadow: 3px 3px 0 var(--ink); }
/* Client Works: notes pinned up while the real work is on its way. */
.frames { position: absolute; left: 28px; top: 96px; width: min(520px, 56vw); height: 44vh; pointer-events: none !important; }
.frame { position: absolute; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(14px) rotate(var(--lean, 0deg)); transition: opacity .2s steps(4), transform .2s steps(4); }
.frames.show .frame { opacity: 1; transform: rotate(var(--lean, 0deg)); }
.frame header { padding: 5px 9px; border-bottom: 2px dashed var(--ink); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.frame p { margin: 10px; font: 400 17px var(--dot); letter-spacing: .04em; }

/* ---- Adventure: the world on a sheet of dots, pins for places, small pins for friends ---- */
.atlas { position: absolute; left: 28px; top: 84px; width: min(52vw, 660px); padding: 10px 12px 12px; background: var(--paper); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); display: grid; gap: 9px; }
.atlas header { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 2px dashed var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.atlas .sheet { position: relative; }
.atlas canvas { display: block; width: 100%; height: auto; }
#atlas-pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--paper); border: 3px solid var(--ink); }
.pin::after { content: ""; position: absolute; inset: -11px; }
.pin.visited { background: var(--accent); }
.pin.here { background: var(--lit); width: 18px; height: 18px; margin: -9px 0 0 -9px; animation: here 1s steps(2) infinite; }
@keyframes here { 50% { box-shadow: 0 0 0 4px rgba(217,87,58,.45); } }
/* A place whose game the player has cleared carries their star. */
.pin.stamped::before { content: "★"; position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--accent); text-shadow: 1px 1px 0 var(--paper), -1px -1px 0 var(--paper), 1px -1px 0 var(--paper), -1px 1px 0 var(--paper); }
.pin.friend { width: 9px; height: 9px; margin: -4px 0 0 -4px; border-width: 2px; background: #7fc8a9; }
.atlas .list { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas .list button { padding: 5px 9px; border: 2px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.atlas .list .visited { background: var(--accent); color: var(--paper); }
.atlas .list .here { background: var(--lit); }
.atlas .join { justify-self: start; padding: 9px 14px; background: var(--ink); color: var(--paper); font: 400 15px var(--dot); box-shadow: 3px 3px 0 var(--accent); }
/* ---- Games: the page of the story the stars have reached ---- */
.story { position: absolute; left: 28px; bottom: 118px; width: min(360px, 34vw); padding: 10px 13px 12px; display: grid; gap: 5px; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transform: rotate(-1.2deg); }
.story b { font-size: 10px; letter-spacing: .14em; padding-bottom: 6px; border-bottom: 2px dashed var(--ink); }
.story p { margin: 4px 0 0; font: 400 16px/1.45 var(--dot); }
.story small { font: 400 12px/1.5 var(--dot); color: var(--dim); }
.story span { font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.story span:last-child { color: var(--accent); font-weight: 700; }

/* ---- the card that opens on an item: cream paper ruled in squares ---- */
#modal { position: fixed; inset: 22px; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink);
  background-image: linear-gradient(rgba(30,27,28,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,27,28,.05) 1px, transparent 1px); background-size: 18px 18px; animation: card .24s steps(5); }
@keyframes card { from { transform: scaleX(.04); } }
#modal .text { padding: clamp(28px, 7vw, 86px); display: grid; align-content: start; gap: 18px; }
#modal h2 { margin: 0; font: 800 clamp(30px, 4.6vw, 54px)/1.15 var(--sans); }
#modal h2 small { display: block; margin-top: 8px; font-size: .42em; font-weight: 600; letter-spacing: .12em; color: var(--dim); }
#modal .lead { margin: 0; font: 400 17px/2 var(--sans); white-space: pre-line; }
#modal .status { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: 11px; letter-spacing: .2em; color: var(--dim); }
#modal .status b { padding: 2px 9px; background: var(--ink); color: var(--paper); letter-spacing: .04em; font: 400 14px var(--dot); }
#modal .go { justify-self: start; margin-top: 8px; padding: 13px 24px; background: var(--ink); color: var(--paper); font: 400 17px var(--dot); text-decoration: none; box-shadow: 4px 4px 0 var(--accent); }
#modal .links { display: flex; flex-wrap: wrap; gap: 10px; }
#modal .links a { padding: 9px 14px; border: 2px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
#modal .links a:hover { background: var(--ink); color: var(--paper); }
#modal .close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; background: var(--ink); color: var(--paper); font-size: 22px; line-height: 1; }
#modal .screen { display: grid; place-items: center; background: rgba(30,27,28,.07); }
#modal .screen canvas { width: min(34vw, 46vh); height: auto; image-rendering: pixelated; }
#modal .screen img { width: min(40vw, 60vh); height: auto; border: 10px solid #fff; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2deg); }

/* ---- the door: a ticket, held over the city while it is still a mosaic ---- */
#gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; }
.ticket { width: min(86vw, 330px); padding: 16px 20px 18px; display: grid; justify-items: center; gap: 14px; background: var(--paper); color: var(--ink); font-family: var(--dot); box-shadow: 8px 8px 0 var(--ink); animation: card .3s steps(6); }
.ticket .stub { width: 100%; display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px dashed var(--ink); font: 700 10px var(--mono); letter-spacing: .16em; }
.ticket canvas { width: 168px; height: 168px; image-rendering: pixelated; }
.ticket h2 { margin: 0; font-size: 21px; font-weight: 400; letter-spacing: .04em; text-align: center; line-height: 1.3; }
.ticket .load { display: flex; gap: 4px; }
.ticket .load i { width: 12px; height: 12px; border: 2px solid var(--ink); }
.ticket .load i.on { background: var(--ink); }
.ticket .answers { width: 100%; display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.ticket .answers button { padding: 14px 6px; font-size: 17px; border: 2px solid var(--ink); }
.ticket #yes { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.ticket .answers button:hover, .ticket .answers button:focus-visible { transform: translate(-1px, -2px); outline: none; }
.ticket p { margin: 0; font-size: 13px; letter-spacing: .2em; color: var(--dim); }
#gate.wait .answers { opacity: .35; pointer-events: none; }
#gate.leave .ticket { animation: taken .5s steps(8) forwards; }
@keyframes taken { to { transform: translateY(-120vh) rotate(-7deg); } }

/* ---- the day count, and the photograph ---- */
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flash .5s steps(6) forwards; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
#shot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 18px; background: rgba(10,12,16,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#shot img { max-width: min(86vw, 560px); max-height: 68vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); transform: rotate(-1.5deg); animation: develop .5s steps(8); }
@keyframes develop { from { transform: translateY(60px) rotate(5deg) scale(.86); } }
#shot .row { display: flex; gap: 12px; }
#shot .row > * { padding: 12px 20px; background: var(--paper); color: var(--ink); font: 700 14px var(--mono); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
#shot .row > :last-child { background: none; color: var(--text); box-shadow: none; border: 1px solid rgba(255,255,255,.5); }

/* ---- for people and machines that cannot see the picture ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#fallback { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; padding: 30px; text-align: center; line-height: 2; background: #0a0c10; }
#fallback a { color: var(--text); }

/* ---- phones held upright: everything within reach of a thumb ---- */
@media (max-width: 760px) {
  .brand { left: 14px; top: 14px; font-size: 20px; gap: 10px; } .brand i { width: 34px; height: 34px; }
  .day { left: 58px; top: 50px; }
  .luck { left: 58px; top: 69px; }
  .corner { right: 14px; top: 14px; gap: 10px; } .corner button i { width: 38px; height: 38px; }
  .hud-lang { right: 14px; top: 64px; }
  .menu { bottom: 40px; gap: 11px; } .menu button i { width: 54px; height: 54px; } .menu button { font-size: 9px; gap: 7px; }
  .note { left: 0; right: 0; bottom: 10px; max-width: none; display: flex; justify-content: center; gap: 8px; padding: 0 8px; font-size: 9px; letter-spacing: -.01em; text-align: center; }
  .note a { margin-left: 0; }
}
@media (max-width: 360px) {
  .note { gap: 5px; padding: 0 4px; font-size: 8.5px; }
  /* On a phone the lit tile in the row below already says where you are, and the top is full of floating things. */
  #big { display: none; }
  .frames { left: 16px; top: 124px; width: 76vw; height: 26vh; } .frame p { font-size: 15px; }
  .atlas { left: 12px; right: 16px; top: 66px; width: auto; padding: 8px 9px 10px; gap: 7px; }
  .atlas .list button { padding: 7px 9px; }
  /* Short on a phone, so it does not cover Maimo: the page number, the line, and the way to the island. */
  /* On a phone the story is one strip under Maimo's feet: the page reached, and the way to the passport. */
  .story { left: 12px; right: 16px; width: auto; bottom: 108px; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; transform: none; } .story b { border: 0; padding: 0; } .story p, .story small, #story-next { display: none; }
  #modal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; inset: 12px 16px 16px 12px; }
  #modal .text { padding: 56px 22px 14px; gap: 12px; }
  #modal .lead { font-size: 15px; line-height: 1.8; }
  #modal .screen canvas { width: min(52vw, 30vh); }
}
/* Keep clear of the notch and the home bar. */
@supports (padding: env(safe-area-inset-top)) {
  .brand, .corner, .day, .luck, #big { margin-top: env(safe-area-inset-top); }
  .menu, .note { margin-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .menu button, #big.show span, .ticket, #modal { animation: none; } }

/* ---- a walk with Maimo: the menu gives way to a row of poses and a shutter ---- */
body.walking .menu, body.walking .note, body.walking #big { display: none; }
#walkbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; justify-items: center; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
#walkbar > * { pointer-events: auto; }
#walk-hint { margin: 0 14px; padding: 7px 12px; max-width: min(92vw, 460px); background: var(--paper); color: var(--ink); font: 400 13px/1.45 var(--dot); box-shadow: 3px 3px 0 var(--ink); text-align: center; }
#poses { display: flex; gap: 9px; max-width: 100%; padding: 4px 14px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#poses::-webkit-scrollbar { display: none; }
#poses button { flex: none; display: grid; gap: 5px; justify-items: center; width: 56px; font: 700 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#poses button i { display: block; width: 54px; height: 54px; background: var(--paper) var(--art) center 62% / 132% no-repeat; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s steps(2); }
#poses button[data-wear] i { background-position: center 18%; background-size: 190%; }
#poses button[data-wear="none"] i { background-position: center 30%; background-size: 170%; }
#poses button[data-lock] { color: var(--lit); }
#poses button[data-lock] i { background-color: #b9b3a4; background-blend-mode: luminosity; opacity: .78; }
#walk-tabs { display: flex; gap: 0; box-shadow: 3px 3px 0 var(--ink); }
#walk-tabs button { display: flex; align-items: baseline; gap: 6px; padding: 7px 14px; background: var(--ink); color: var(--paper); font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
#walk-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
#walk-wish { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 7px 8px 7px 10px; max-width: min(92vw, 460px); background: var(--paper); color: var(--ink); font: 400 14px/1.35 var(--dot); box-shadow: 3px 3px 0 var(--ink); }
#walk-wish b { flex: none; padding: 3px 6px; background: var(--accent); color: #fff; font: 700 9px/1.4 var(--mono); letter-spacing: .12em; }
#walk-wish.done b { background: var(--ink); }
#wish-go { flex: none; padding: 8px 10px; background: var(--lit); color: var(--ink); font: 700 12px var(--mono); box-shadow: 2px 2px 0 var(--ink); }
#wish-go:active { transform: translate(2px, 2px); box-shadow: none; }
/* The tile that hangs over today's spot (or waits at the edge of the glass on the side the spot is). */
/* The mouse squeaking from where it hides (hide and seek): over it when it is in the picture, else at the edge. */
#peep { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
#peep b { display: block; padding: 3px 7px 4px; margin: -14px 0 0 -24px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 400 calc(11px + 9px * var(--near, 0)) var(--dot); white-space: nowrap; transform: rotate(var(--lean, -6deg)); }
#peep.go b { animation: peep .9s steps(6) forwards; }
@keyframes peep { 0% { opacity: 0; transform: translateY(6px) rotate(var(--lean, -6deg)) scale(.6); } 20% { opacity: 1; transform: translateY(0) rotate(var(--lean, -6deg)) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) rotate(var(--lean, -6deg)); } }
#poses .seek-card { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 6px 12px; background: var(--paper); color: var(--ink); text-align: left; font: 700 11px var(--mono); letter-spacing: .04em; }
#poses .seek-card i { width: 44px; height: 44px; background: var(--art) center / contain no-repeat; flex: 0 0 auto; }
#poses .seek-card span { display: grid; gap: 2px; }
#poses .seek-card small { font: 400 11px var(--sans); letter-spacing: 0; opacity: .8; }
#poses .seek-card b { font: 400 15px var(--dot); }
#beacon { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 3px; width: 44px; margin: -44px 0 0 -22px; will-change: transform; }
#beacon i { display: block; width: 36px; height: 36px; background: var(--lit) var(--pic) center / 62% no-repeat; image-rendering: pixelated; box-shadow: 3px 3px 0 var(--ink); }
#beacon span { padding: 1px 5px; background: var(--ink); color: var(--paper); font: 700 9px var(--mono); letter-spacing: .06em; white-space: nowrap; }
#beacon::after { content: ''; position: absolute; left: 50%; top: 18px; width: 8px; height: 8px; margin: -4px; background: var(--ink); transform: rotate(var(--turn, 0deg)) translateX(27px) rotate(45deg); opacity: 0; }
#beacon.out::after { opacity: 1; }
/* Whose map data the place is made from: small, in the corner, always there. */
#credit { position: absolute; left: 10px; bottom: calc(4px + env(safe-area-inset-bottom)); margin: 0; max-width: calc(100vw - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 8px var(--mono); letter-spacing: .02em; color: var(--text); opacity: .72; text-shadow: 0 1px 2px rgba(0,0,0,.8); pointer-events: none; }
body.walking #credit { bottom: auto; top: calc(128px + env(safe-area-inset-top)); }
#walk.wish { position: relative; }
#walk.wish::after { content: ''; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); animation: blip 1s steps(2) infinite; }
@keyframes blip { 50% { opacity: .25; } }
/* The stamp comes down beside Maimo, not over its face: below it on a tall screen, to its left on a wide one. */
#stamp { position: absolute; left: 0; right: 0; top: 50%; display: grid; place-items: center; pointer-events: none; }
@media (min-aspect-ratio: 1/1) { #stamp { right: auto; left: 7%; top: 30%; } }
#stamp > div { display: grid; gap: 4px; justify-items: center; padding: 14px 22px 12px; border: 5px solid var(--accent); outline: 2px solid var(--accent); outline-offset: 4px; background: rgba(244,241,232,.92); color: var(--accent); transform: rotate(-7deg); }
#stamp b { font: 700 26px/1.1 var(--mono); letter-spacing: .06em; }
#stamp span { font: 700 11px var(--mono); letter-spacing: .12em; }
#stamp em { font: 700 10px var(--mono); font-style: normal; letter-spacing: .16em; padding: 2px 8px; background: var(--accent); color: var(--paper); }
/* The stamp is there as soon as it is shown; coming down hard is an extra, for a browser that has the time. */
#stamp small { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 2px dashed var(--accent); font: 700 11px var(--mono); letter-spacing: .1em; }
#stamp small[hidden] { display: none; }
#stamp small img { width: 36px; height: 36px; image-rendering: pixelated; }
#stamp.go > div { animation: thump .34s steps(4); }
@keyframes thump { from { transform: rotate(-7deg) scale(2.2); opacity: .35; } 70% { transform: rotate(-7deg) scale(.94); opacity: 1; } to { transform: rotate(-7deg) scale(1); } }
#poses button[aria-pressed="true"] i { background-color: var(--lit); transform: translateY(-3px); }
.walk-row { display: flex; align-items: center; gap: 20px; }
#walk-shot i { display: block; width: 66px; height: 66px; background: var(--accent) var(--pic) center / 56% no-repeat; image-rendering: pixelated; box-shadow: 4px 4px 0 var(--ink); transition: transform .1s steps(2), box-shadow .1s steps(2); }
#walk-shot:active i { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
#walk-end, #walk-diary { min-width: 76px; padding: 11px 12px; background: var(--paper); color: var(--ink); font: 700 12px var(--mono); letter-spacing: .04em; text-align: center; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
#shot input { width: min(86vw, 560px); padding: 12px 14px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: 400 18px var(--dot); box-shadow: 3px 3px 0 var(--ink); -webkit-user-select: text; user-select: text; }
#shot input:focus { outline: 3px solid var(--lit); outline-offset: 2px; }
#shot-kept { margin: 0; font: 700 11px var(--mono); letter-spacing: .04em; color: var(--text); }
#shot-kept a { color: var(--lit); }
@media (max-width: 640px) { #shot { gap: 12px; } #shot img { max-height: 56vh; } }
#shot .row { flex-wrap: wrap; justify-content: center; }
#shot.tall img { max-height: 62vh; }
