:root {
  --paper: #eeeae0;
  --ink: #141214;
  --pink: #ff3ea5;
  --blue: #0078bf;
  --sign: #1d3f8f;
  --type: "Special Elite", "Courier New", monospace;
  --display: "Anton", Impact, sans-serif;
  --marker: "Permanent Marker", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- dream video ---------- */
#dream {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: grayscale(.2) contrast(1.3) saturate(1.6) blur(1.5px);
  opacity: .32;
  animation: trip 18s linear infinite;
  transition: opacity 1.2s;
}
body.at-intro #dream { opacity: .55; }
@keyframes trip { to { filter: grayscale(.2) contrast(1.3) saturate(1.6) blur(1.5px) hue-rotate(360deg); } }

/* ---------- menu ---------- */
#menu {
  position: fixed; top: 12px; right: 16px; z-index: 30;
  display: flex; gap: 14px; align-items: center;
  font-size: 13px; text-transform: lowercase;
}
#menu > * { background: var(--paper); padding: 2px 7px; box-shadow: 2px 2px 0 var(--ink); }
#menu a { text-decoration: none; }
#menu button:hover, #menu a:hover { text-decoration: line-through; }

/* ---------- intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 24px;
  padding: 16px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(238,234,224,.85) 30%, rgba(238,234,224,.25) 100%);
}
.name {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 17vw, 260px); line-height: .82; letter-spacing: -.01em;
  display: grid; color: var(--ink);
}
.name span:last-child { transform: translateX(.18em) rotate(-2deg); }
.intro-poem { max-width: 34ch; font-size: 15px; white-space: pre-line; margin: 0; }
.enter {
  font-family: var(--marker); font-size: 22px; color: var(--ink);
  border-bottom: 3px solid var(--ink); padding: 2px 4px;
}
.enter:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- walk ---------- */
#walk { position: fixed; inset: 0; z-index: 1; }
#street { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
#street.dragging { cursor: grabbing; }
#track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.copy { position: absolute; top: 0; height: 100%; }
.wall {
  position: absolute; inset: 0;
  background-size: 100% 100%;
  mix-blend-mode: multiply;  /* white of the photocopy lets the dream through */
  filter: sepia(.25);
}

.poster {
  position: absolute; display: block;
  transform: translate(-50%, 0) rotate(var(--r));
  box-shadow: 2px 3px 0 rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.25);
  background: #fff; padding: 5px;
  transition: transform .18s ease, box-shadow .18s ease;
  z-index: 2;
}
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.poster::before {  /* tape */
  content: ""; position: absolute; top: -9px; left: 50%; width: 46%; height: 18px;
  transform: translateX(-50%) rotate(calc(var(--r) * -1.5));
  background: rgba(255, 246, 200, .78); box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.poster:hover, .poster:focus-visible {
  transform: translate(-50%, -6px) rotate(0deg) scale(1.06);
  z-index: 5; outline: none;
  box-shadow: 4px 6px 0 var(--pink), 0 16px 30px rgba(0,0,0,.35);
}

.sticker {
  position: absolute; max-width: 24ch;
  transform: translate(-50%, 0) rotate(var(--r));
  font-size: 13px; line-height: 1.25; text-align: left;
  padding: 8px 10px; z-index: 3;
  background: #fffdf4; box-shadow: 1px 2px 0 rgba(0,0,0,.4);
}
.sticker.tag {
  background: none; box-shadow: none; padding: 0;
  font-family: var(--marker); font-size: 22px; line-height: 1;
  color: var(--pink); text-shadow: 1px 1px 0 rgba(0,0,0,.25);
  max-width: 16ch;
}
.sticker.blue { background: var(--blue); color: #fff; }
.sticker:hover { z-index: 6; transform: translate(-50%, 0) rotate(0) scale(1.08); }

#acid {
  position: absolute; inset: 0; z-index: 20; pointer-events: none;
  background-size: cover; background-position: center; opacity: 0;
}
#acid.go { animation: acid .9s steps(9) forwards; }
@keyframes acid {
  0% { opacity: 0; clip-path: inset(40% 0 40% 0); }
  20% { opacity: 1; clip-path: inset(10% 0 55% 0); filter: hue-rotate(90deg); }
  40% { clip-path: inset(0 0 0 0); filter: hue-rotate(200deg) invert(1); }
  60% { clip-path: inset(30% 0 10% 0); filter: hue-rotate(300deg); }
  80% { opacity: 1; clip-path: inset(0); filter: none; }
  100% { opacity: 0; clip-path: inset(0); }
}

.sign { position: absolute; left: 16px; bottom: 16px; z-index: 10; max-width: calc(100% - 32px); }
.plate {
  display: inline-grid; padding: 6px 14px 7px;
  background: var(--sign); color: #fff; border: 3px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--sign), 3px 4px 0 rgba(0,0,0,.4);
  font-family: var(--display); font-size: 26px; letter-spacing: .02em; text-transform: uppercase;
}
.plate small { font-family: var(--type); font-size: 11px; letter-spacing: .1em; }
/* Pamplona: white stone plaque, engraved dark capitals, Spanish block over Basque block */
.plate[data-style="iruna"] {
  display: inline-grid; gap: 0; text-align: center; text-transform: uppercase;
  padding: 7px 14px 8px; border-radius: 1px; border: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.05), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.04), transparent 35%),
    linear-gradient(160deg, #f4f1ea, #e6e2d8);
  color: #2a2a2e; font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 17px; letter-spacing: .14em; line-height: 1.25;
  box-shadow: inset 0 0 0 4px #efece4, inset 0 0 0 5px #6b6a66, 2px 3px 0 rgba(0,0,0,.28), 0 0 0 1px #cfcac0;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(0,0,0,.25);
}
.plate[data-style="iruna"] small {
  font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; color: #2a2a2e;
  border-top: 1px solid #6b6a66; margin-top: 5px; padding-top: 5px;
}
/* Basque coast: same stone, Basque name first, a little greener ink */
.plate[data-style="euskadi"] { }
/* Barcelona: white marble, rounded corners, four screws, small "CARRER DE" over the big name */
.plate[data-style="bcn"] {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center; text-transform: uppercase;
  padding: 10px 26px 11px; border: 0; border-radius: 9px;
  background:
    linear-gradient(115deg, transparent 40%, rgba(150,150,150,.12) 46%, transparent 52%),
    linear-gradient(160deg, #fbfaf7, #ecebe6);
  color: #111; font-family: "Josefin Sans", "Futura", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .2em; line-height: 1.05;
  box-shadow: 0 0 0 1px #c9c6be, 2px 3px 0 rgba(0,0,0,.28), 0 6px 14px rgba(0,0,0,.18);
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
  background-repeat: no-repeat;
}
.plate[data-style="bcn"]::before, .plate[data-style="bcn"]::after {  /* the four screws */
  content: ""; position: absolute; inset: 7px 9px; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #6b6b66 0 2.5px, transparent 3px) left top / 6px 6px no-repeat,
    radial-gradient(circle at 100% 0, #6b6b66 0 2.5px, transparent 3px) right top / 6px 6px no-repeat,
    radial-gradient(circle at 0 100%, #6b6b66 0 2.5px, transparent 3px) left bottom / 6px 6px no-repeat,
    radial-gradient(circle at 100% 100%, #6b6b66 0 2.5px, transparent 3px) right bottom / 6px 6px no-repeat;
}
.plate[data-style="bcn"] { position: relative; }
.plate[data-style="bcn"] small {
  order: -1; font-family: inherit; font-size: 12px; letter-spacing: .32em; color: #1b1b1b; margin-bottom: 4px;
}
.sign p { margin: 8px 0 0; font-size: 13px; background: var(--paper); display: inline-block; padding: 2px 6px; }

.corners { position: absolute; right: 16px; bottom: 58px; z-index: 10; display: flex; gap: 8px; }
.corners button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.corners button[aria-current="true"] { background: var(--pink); }
.next {
  position: absolute; right: 16px; bottom: 16px; z-index: 10;
  font-family: var(--marker); font-size: 20px; background: var(--paper); padding: 2px 10px;
  box-shadow: 2px 3px 0 var(--ink);
}
.next:hover { background: var(--pink); }
.hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 10;
  margin: 0; font-size: 12px; background: var(--paper); padding: 2px 8px; transition: opacity 1s;
}

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; }
.overlay .close { position: absolute; top: 12px; right: 16px; z-index: 3; font-size: 22px; }
#viewer { background: rgba(20, 18, 20, .94); color: var(--paper); display: grid; place-items: center; }
#viewer figure { margin: 0; position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 48px 56px; }
#viewer img { max-width: calc(100vw - 112px); max-height: calc(100vh - 96px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#viewer .prev, #viewer .nxt { position: absolute; top: 50%; transform: translateY(-50%); font-size: 46px; padding: 10px; color: var(--paper); }
#viewer .prev { left: 8px; } #viewer .nxt { right: 8px; }
#viewer .count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: .7; }
#viewer .more {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1;
}
#viewer .more[aria-expanded="true"] { background: var(--pink); transform: rotate(45deg); }
#v-card {
  position: absolute; left: 16px; bottom: 60px; z-index: 3;
  width: min(380px, calc(100% - 32px)); max-height: 60vh; overflow: auto;
  background: var(--paper); color: var(--ink); padding: 16px 18px;
  box-shadow: 4px 5px 0 var(--pink); transform: rotate(-1deg);
}
#v-card h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; margin: 0 0 8px; }
#v-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.35; white-space: pre-line; }
#v-status:empty, #v-story:empty { display: none; }
.status { display: inline-block; padding: 1px 6px; background: var(--ink); color: var(--paper); }
.status.disponible { background: var(--pink); color: var(--ink); }
.links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }

.paper { background: var(--paper); color: var(--ink); overflow: auto; }
#poem { display: grid; place-items: center; padding: 16px; }
#poem article { max-width: 520px; transform: rotate(-.6deg); }
#poem h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 6vw, 44px); line-height: 1; margin: 0 0 16px; }
#poem pre { font-family: var(--type); font-size: 17px; line-height: 1.45; white-space: pre-wrap; margin: 0 0 18px; }

.page-body { max-width: 980px; margin: 0 auto; padding: 56px 16px 64px; }
.page-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 9vw, 96px); line-height: .9; margin: 0 0 18px; text-transform: uppercase; }
.page-body h3 { font-family: var(--marker); font-weight: 400; font-size: 22px; margin: 28px 0 8px; }
.idx { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 32px; }
.idx li { break-inside: avoid; }
.idx button { text-align: left; padding: 3px 0; font-size: 14px; }
.idx button:hover { color: var(--pink); }
.idx small { opacity: .55; }
#idx-peek {
  position: fixed; z-index: 45; width: 160px; pointer-events: none;
  box-shadow: 3px 4px 0 var(--ink); transform: rotate(3deg);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.grid button { display: grid; gap: 6px; text-align: left; font-size: 13px; }
.grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 3px 4px 0 var(--ink); }
.about p { font-size: 17px; line-height: 1.5; max-width: 62ch; }
.about blockquote { margin: 24px 0; padding-left: 16px; border-left: 4px solid var(--pink); font-size: 17px; line-height: 1.5; max-width: 62ch; }

/* ---------- available works: a flickering neon frame on the wall ---------- */
.poster.available { outline: 3px solid var(--pink); outline-offset: 3px; animation: neon 3.2s steps(1) infinite; }
.poster.available::after {
  content: "disponible"; position: absolute; right: -8px; bottom: -12px;
  font-family: var(--marker); font-size: 13px; color: #fff; background: var(--pink); padding: 0 6px;
  transform: rotate(-4deg);
}
html[lang="en"] .poster.available::after { content: "available"; }
@keyframes neon {
  0%, 100% { outline-color: var(--pink); box-shadow: 0 0 18px var(--pink), 2px 3px 0 rgba(0,0,0,.35); }
  7% { outline-color: transparent; box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
  9% { outline-color: var(--pink); box-shadow: 0 0 18px var(--pink), 2px 3px 0 rgba(0,0,0,.35); }
  52% { outline-color: transparent; box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
  54% { outline-color: var(--pink); box-shadow: 0 0 26px var(--pink), 2px 3px 0 rgba(0,0,0,.35); }
}
.idx .avail { background: var(--pink); color: var(--ink); padding: 0 5px; opacity: 1; }
.idx-filter { font-size: 13px; margin: 0 0 8px; }
.idx-filter button { border-bottom: 2px solid currentColor; }
.idx-filter button[aria-pressed="true"] { background: var(--pink); }

/* ---------- the label: crumpled painter's tape, marker writing ---------- */
.tape {
  position: absolute; left: 50%; bottom: 16px; z-index: 3;
  transform: translateX(-50%) rotate(-1.6deg);
  display: grid; justify-items: start; gap: 0;
  max-width: min(560px, calc(100% - 120px));
  padding: 7px 26px 8px; text-align: left;
  font-family: var(--marker); font-size: 14px; line-height: 1.2; color: #222;
  opacity: .9;
}
.tape::before {  /* the tape itself, displaced so it looks crumpled and torn */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 1px, transparent 1px 9px),
    linear-gradient(178deg, rgba(255,255,255,.35), rgba(0,0,0,.08) 60%, rgba(255,255,255,.2)),
    #e6dbb4;
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 2%, 91% 3%, 94% 0, 97% 9%, 100% 4%, 98% 50%, 100% 96%, 96% 100%, 93% 90%, 90% 100%, 8% 97%, 5% 100%, 2% 91%, 0 100%, 2% 50%);
  filter: url(#crumple);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.tape:hover { opacity: 1; }
#v-title { font-size: 17px; }
#v-meta { font-size: 13px; opacity: .85; }
#v-status:empty { display: none; }
#v-status { font-size: 13px; }
#v-status .disponible { color: #d4006a; }
#v-card {
  left: 50%; bottom: 80px; transform: translateX(-50%) rotate(1deg);
  width: min(420px, calc(100% - 32px));
}

/* ---------- church of poems ---------- */
#church { background: var(--paper); overflow: hidden; }
.church-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: sepia(.2); mix-blend-mode: multiply; }
.church-plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.postit {
  position: absolute; width: var(--s); height: var(--s);
  transform: translate(-50%, -50%) rotate(var(--r));
  padding: calc(var(--s) * .1); text-align: left;
  /* sun-bleached at the top, grimy, folded once, paper grain multiplied in */
  background:
    linear-gradient(172deg, rgba(255, 252, 240, calc(var(--fade) / 100%)) 0%, transparent 55%),
    linear-gradient(var(--ca), transparent 49.4%, rgba(0, 0, 0, .1) 50%, rgba(255, 255, 255, .35) 50.7%, transparent 51.6%),
    radial-gradient(circle at var(--gx) var(--gy), rgba(110, 80, 30, .16), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    color-mix(in srgb, var(--c) calc(100% - var(--fade)), #ece6d2);
  background-blend-mode: normal, normal, multiply, multiply, normal;
  box-shadow: 0 6px 10px -4px rgba(0,0,0,.45);
  /* a couple of pin holes / bites on some of them */
  -webkit-mask: radial-gradient(circle at var(--h1x) var(--h1y), transparent 0 calc(var(--s) * .025), #000 calc(var(--s) * .03)),
                radial-gradient(circle at var(--h2x) var(--h2y), transparent 0 calc(var(--s) * .04), #000 calc(var(--s) * .045));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at var(--h1x) var(--h1y), transparent 0 calc(var(--s) * .025), #000 calc(var(--s) * .03)),
        radial-gradient(circle at var(--h2x) var(--h2y), transparent 0 calc(var(--s) * .04), #000 calc(var(--s) * .045));
  mask-composite: intersect;
  overflow: hidden; transition: transform .15s;
}
.postit.torn1 { clip-path: polygon(0 0, 100% 0, 100% 86%, 93% 90%, 88% 100%, 0 100%); }
.postit.torn2 { clip-path: polygon(0 4%, 6% 0, 100% 0, 100% 100%, 9% 100%, 0 93%); }
.postit.torn3 { clip-path: polygon(0 0, 61% 0, 66% 5%, 72% 0, 100% 0, 100% 100%, 0 100%); }
/* the writing: marker ink sunk into the paper, a little bled and faded */
.postit .ink {
  display: block; font-family: var(--marker); font-size: calc(var(--s) * .12); line-height: 1.08;
  color: #232344; opacity: var(--inkop); mix-blend-mode: multiply;
  filter: url(#ink) blur(.25px); transform: rotate(calc(var(--r) * -.15)) skewX(-2deg);
}
.postit::after {  /* the curl at the bottom corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 22%; height: 22%;
  background: linear-gradient(135deg, transparent 48%, rgba(0,0,0,.2) 50%, rgba(255,255,255,.55) 62%);
}
.postit:hover { transform: translate(-50%, -54%) rotate(calc(var(--r) * -1)) scale(1.06); z-index: 5; }
.postit.peel { animation: peel .9s cubic-bezier(.5, 0, .9, .4) forwards; pointer-events: none; z-index: 6; }
@keyframes peel {
  0% { transform: translate(-50%, -50%) rotate(var(--r)); }
  25% { transform: translate(-50%, -62%) rotate(calc(var(--r) + 12deg)) skewY(-12deg) scale(1.1); }
  100% { transform: translate(calc(-50% + var(--dx)), 120vh) rotate(calc(var(--r) + 220deg)) skewY(20deg); opacity: .7; }
}
.church-sign { position: absolute; left: 16px; bottom: 16px; z-index: 4; }
.church-sign p { margin: 8px 0 0; font-size: 13px; background: var(--paper); display: table; padding: 2px 6px; }
.another { font-family: var(--marker); font-size: 15px; }
.another:hover { color: var(--pink); }
.credit {
  position: absolute; right: 16px; bottom: 12px; z-index: 4; max-width: 50%;
  font-size: 10px; background: var(--paper); padding: 1px 5px; text-decoration: none; opacity: .75;
}
.peeled {
  position: absolute; left: 50%; top: 50%; z-index: 8; transform: translate(-50%, -50%) rotate(-1deg);
  width: min(460px, calc(100% - 32px)); max-height: calc(100% - 120px); overflow: auto;
  background: var(--c, #fff59d); color: var(--ink); padding: 26px 26px 20px;
  box-shadow: 6px 8px 0 var(--ink); animation: drop .35s ease-out;
}
@keyframes drop { from { transform: translate(-50%, -46%) rotate(-6deg) scale(.9); opacity: 0; } }
.peeled h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 12px; }
.peeled pre { font-family: var(--type); font-size: 16px; line-height: 1.4; white-space: pre-wrap; margin: 0 0 14px; }
.peeled-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 14px 0 0; }
.order-btn {
  font-family: var(--marker); font-size: 17px; background: var(--ink); color: var(--paper);
  padding: 6px 14px; box-shadow: 3px 3px 0 var(--pink);
}
.order-btn:hover { background: var(--pink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- order form ---------- */
#order-form { display: grid; gap: 12px; max-width: 520px; width: 100%; min-width: 0; }
#order-form > *, #order-form label { min-width: 0; }
#order { overflow-x: hidden; }
.page-body { overflow-wrap: anywhere; }
.poem-pick { border: 2px solid var(--ink); padding: 8px 10px 10px; margin: 0; min-width: 0; background: #fffdf4; }
.poem-pick legend { font-size: 13px; padding: 0 4px; }
.poem-pick legend small { color: var(--pink); }
.ticks { max-height: 220px; overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.tick { display: flex !important; gap: 10px; align-items: center; font-family: var(--type); font-size: 15px; padding: 4px 2px; cursor: pointer; }
#order-form .tick input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0; padding: 0 !important;
  border: 2px solid var(--ink) !important; background: #fff; display: grid; place-items: center; }
#order-form .tick input:checked::after { content: "✗"; font-family: var(--marker); font-size: 20px; line-height: 1; color: #1d3f8f; transform: rotate(-8deg); }
.tick.any span { font-style: italic; }
#order-form label { display: grid; gap: 4px; font-size: 13px; }
#order-form input, #order-form select {
  width: 100%; min-width: 0; box-sizing: border-box;
  font: inherit; font-size: 16px; padding: 9px 10px; border: 2px solid var(--ink); background: #fffdf4; color: var(--ink); border-radius: 0;
}
#order-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
#order-form .order-btn { justify-self: start; margin-top: 6px; }
.order-lead { font-size: 17px; max-width: 52ch; line-height: 1.45; }
.order-pay { font-size: 13px; opacity: .75; margin: 0; }
.order-msg { font-family: var(--marker); font-size: 18px; margin: 0; }

#menu .try3d { background: var(--pink); font-family: var(--marker); animation: wobble 2.6s ease-in-out infinite; }
#music:not([hidden]) { animation: wobble 2.6s ease-in-out infinite; }
#music.playing { background: var(--pink); }
@keyframes wobble { 50% { transform: rotate(-6deg); } }

@media (max-width: 640px) {
  .tape { max-width: calc(100% - 32px); bottom: 64px; }
  #viewer .more { display: none; }
  .credit { max-width: 40%; bottom: auto; top: 48px; }
  #menu { gap: 10px; font-size: 12px; left: 16px; right: 16px; justify-content: flex-end; flex-wrap: wrap; }
  .plate { font-size: 20px; }
  .sign { bottom: 64px; }
  .hint { top: 52px; }
  .next { font-size: 16px; }
  .corners { bottom: 52px; }
  #viewer figure { padding: 48px 8px 64px; }
  #viewer img { max-width: calc(100vw - 16px); max-height: calc(100vh - 112px); }
}
@media (prefers-reduced-motion: reduce) {
  #dream { animation: none; }
  #acid.go { animation-duration: .01s; }
}

/* tap feedback: the poster is pressed into the wall, its tape flashes */
.poster.pressed, .sticker.pressed { animation: press .23s ease-out; z-index: 6; }
.poster.pressed { box-shadow: 0 0 0 4px var(--pink), 0 2px 4px rgba(0,0,0,.4); }
@keyframes press {
  0% { transform: translate(-50%, 0) rotate(var(--r)) scale(1); }
  40% { transform: translate(-50%, 3px) rotate(0deg) scale(.93); filter: brightness(1.15); }
  100% { transform: translate(-50%, -4px) rotate(0deg) scale(1.04); }
}

/* no blue box when tapping on phones; keyboard users still get a visible outline */
html { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible) { outline: none; }
.critter, .critter img, .corner, .buy-oval a, .deer, .poster, .sticker, .postit { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
