@font-face { font-family: "Lilita"; src: url("fonts/lilita.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Patrick"; src: url("fonts/patrick.ttf") format("truetype"); font-display: swap; }

:root {
  --paper: #f6f0e2; --card: #fffaf0; --ink: #1d2a44; --ink-soft: #3b4566; --teal-text: #146868; --coral-text: #c4412a; --line: #1d2a44;
  --sun: #ffc93c; --sun-deep: #f0b21f; --teal: #1f8a8a; --coral: #e9684f; --leaf: #5aa469;
  --shadow: 4px 4px 0 var(--ink); --radius: 16px;
  --display: "Lilita", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--body);
  background-image: radial-gradient(rgba(29,42,68,.06) 1px, transparent 1px); background-size: 18px 18px; }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-text); text-underline-offset: 3px; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.hint, .small { font-size: .9rem; color: var(--ink-soft); }
.tagline { font-family: "Patrick", var(--body); font-size: 1.3rem; color: var(--coral); margin: -.4em 0 1em; }
.eyebrow { font-family: "Patrick", var(--body); font-size: 1.15rem; margin: 0 0 .3em; color: var(--teal); }

.top { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: 0 auto; padding: 12px 16px; }
.brand { font-family: var(--display); font-size: 1.7rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand-eye { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); position: relative; }
.brand-eye::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); right: 2px; top: 5px; }
.top-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--sun); }
.foot { text-align: center; font-size: .88rem; color: var(--ink-soft); padding: 24px 16px 40px; }
.foot p { margin: 0 0 .3em; }

.btn { display: inline-block; font: 400 1.15rem var(--display); letter-spacing: .02em; color: var(--ink); background: #fff; border: 3px solid var(--ink);
  border-radius: 999px; padding: 11px 24px; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .chip input:focus-visible + span, .swatch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-sun { background: var(--sun); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); box-shadow: 2px 2px 0 var(--ink); }
.btn-big { font-size: 1.35rem; padding: 14px 30px; width: 100%; max-width: 420px; }
.btn-small { font-size: .95rem; padding: 6px 14px; border-width: 2px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; margin: 22px auto; max-width: 640px; }
.card.wide { max-width: none; }
.alert { background: #fff1c9; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.err { color: #a3271a; font-weight: 600; font-size: .92rem; margin: .3em 0 0; }

/* home */
.hero { display: grid; gap: 22px; padding: 14px 0 6px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4rem); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; font-size: .98rem; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 4px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); transform: rotate(1.2deg); }
.sticker { position: absolute; left: -6px; bottom: -14px; background: var(--coral); color: #fff; font: 1.15rem var(--display); padding: 8px 16px; border: 3px solid var(--ink); border-radius: 999px; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); }
.how { display: grid; gap: 12px; margin: 34px 0 8px; }
.how div { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px 6px 62px; position: relative; }
.how b { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font: 1.3rem/32px var(--display); text-align: center; }
.how h3 { margin-bottom: .15em; }
.how p { font-size: .95rem; color: var(--ink-soft); }

/* form */
.form-card { scroll-margin-top: 12px; }
.field { margin: 0 0 16px; }
label, legend { font-weight: 700; display: block; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
input[type=text], input[type=email], select { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { margin: 0; font-weight: 500; }
.chip input, .swatch input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.swatch { margin: 0; position: relative; }
.swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--teal); }
.swatch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.more { border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; }
.more summary { font-weight: 700; cursor: pointer; }
.more[open] summary { margin-bottom: 14px; }
.photo-start { border: 2px dashed var(--ink); border-radius: 14px; padding: 14px 14px 4px; margin: 0 0 18px; background: #fff; }
.photo-title { margin: 0 0 10px; }
.photo-title b { font: 1.2rem var(--display); display: block; }
.photo-title span { font-size: .92rem; color: var(--ink-soft); }
.photo-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.photo-btns .btn { box-shadow: 2px 2px 0 var(--ink); }
.photo-start .check { margin-bottom: 10px; }
.photo-status { font-weight: 600; font-size: .95rem; }
.photo-start.busy .photo-btns { opacity: .5; pointer-events: none; }
/* photo first */
textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); resize: vertical; min-height: 84px; }
.photo-start { padding: 16px 14px 6px; }
.photo-take { font-size: 1.4rem; }
.photo-or { margin: 0 0 10px; }
.photo-or .linklike { display: inline; font-weight: 600; margin: 0; }
.photo-chosen { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.photo-chosen img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; flex: none; }
.photo-chosen b { display: block; font: 1.15rem var(--display); }
.photo-chosen .linklike { margin: 0; font-weight: 500; }
.quick-go .photo-status { margin: 0 0 8px; }
.reveal { text-align: center; }
.reveal-pic { width: 190px; height: 216px; margin: 4px auto 6px; border: 3px solid var(--ink); border-radius: 18px; background: #f4eddc; display: grid; place-items: center; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.reveal-pic img { width: 100%; height: 100%; object-fit: contain; }
.reveal-pic span { color: var(--ink-soft); font-size: .9rem; }
.reveal-pic.pop { animation: previewpop .25s; }
.reveal-title { font: 1.7rem/1.1 var(--display); margin: 10px 0 8px; }
.reveal-title span { color: var(--coral); overflow-wrap: anywhere; }
.read-summary { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.read-summary li { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 11px; font-size: .88rem; }
.asks { background: #fff1c9; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px 4px; margin: 0 0 16px; }
.ask-q { font-weight: 700; margin: 0 0 10px; }
.ask-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.ask-row .btn { box-shadow: 2px 2px 0 var(--ink); min-width: 96px; font-size: 1.05rem; padding: 8px 18px; }
.ask-swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.form-card .btn-big { display: block; margin: 0 auto 10px; }
.amount { font: 2.2rem var(--display); margin: 0 0 .2em; }

.preview { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--card); margin: 0 -18px 14px; padding: 8px 18px; border-bottom: 2px dashed rgba(29,42,68,.25); }
.preview-pic { width: 84px; height: 96px; flex: none; border: 2px solid var(--ink); border-radius: 12px; background: #f4eddc; display: grid; place-items: center; overflow: hidden; }
.preview-pic img { width: 100%; height: 100%; object-fit: contain; }
.preview-pic span { font-size: .68rem; text-align: center; color: var(--ink-soft); padding: 4px; line-height: 1.2; }
.preview-pic.pop { animation: previewpop .25s; }
@keyframes previewpop { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.preview p { margin: 0; }
.preview b { display: block; font: 1.5rem/1.1 var(--display); color: var(--coral); overflow-wrap: anywhere; }
.preview p span { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.stepnav { display: flex; gap: 10px; justify-content: space-between; position: sticky; bottom: 0; background: var(--card); padding: 10px 0 4px; margin-top: 4px; }
.stepnav .btn { box-shadow: 2px 2px 0 var(--ink); }
.stepnav .btn-sun { flex: 1; }
.few.short .swatch:nth-child(n+11) { display: none; }
.more-colours { font-size: .88rem; align-self: center; }
.few { display: contents; }
.few .swatches { margin-bottom: 4px; }
.few.short .swatches .swatch:nth-child(n+11) { display: none; }

/* making */
.making, .order { padding: 34px 18px; }
.crowd-loader { display: flex; justify-content: center; gap: 6px; height: 54px; align-items: flex-end; margin: 6px 0 18px; }
.crowd-loader i { width: 14px; height: 30px; border-radius: 7px 7px 3px 3px; background: var(--teal); border: 2px solid var(--ink); position: relative; animation: bob 1.1s calc(var(--i) * .09s) infinite ease-in-out; }
.crowd-loader i::before { content: ""; position: absolute; left: 50%; top: -13px; width: 12px; height: 12px; margin-left: -8px; border-radius: 50%; background: #e8c4a0; border: 2px solid var(--ink); }
.crowd-loader i:nth-child(3n) { background: var(--sun); } .crowd-loader i:nth-child(4n) { background: var(--coral); } .crowd-loader i:nth-child(5n) { background: #8a5cb8; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* game */
.game-page main { padding-bottom: 40px; }
.game-page .top { padding: 8px 16px; }
.game-page .brand { font-size: 1.35rem; }
.game-page .brand-eye { width: 21px; height: 21px; border-width: 2px; }
.game-page .brand-eye::after { width: 7px; height: 7px; top: 4px; }
.game { margin: 0 -16px; }
.stage { position: relative; height: calc(100dvh - 58px); min-height: 420px; max-height: 900px; overflow: hidden; overflow: clip; background: #dfd6c0;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.board { position: absolute; left: 0; top: 0; width: 1200px; transform-origin: 0 0; will-change: transform; }
.board.glide { transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.board img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.startcard { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 7; background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow), 0 -10px 40px rgba(29,42,68,.25); padding: 14px 14px 10px; text-align: center; animation: rise .4s cubic-bezier(.2, .8, .2, 1); max-width: 460px; margin: 0 auto; }
.startcard .eyebrow { margin: 0 0 6px; font-size: 1.05rem; }
.startcard .wanted { margin-bottom: 10px; }
.startcard .wanted img { width: 92px; height: 106px; }
.startcard .btn-big { margin: 0 0 8px; max-width: none; }
.startcard .small { margin: 0; }
.btn-wide { display: block; width: 100%; text-align: center; font-size: 1.05rem; padding: 10px 16px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); margin: 0 0 8px; }
.daily-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: #e3f3ea; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin: 2px 0 10px; text-decoration: none; color: var(--ink); font-size: .85rem; line-height: 1.25; }
.daily-card b { display: block; font: 1.05rem var(--display); }
.daily-card i { font: 1rem var(--display); font-style: normal; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 14px; flex: none; }
.more-actions { margin-top: 4px; }
.more-actions summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink-soft); padding: 6px 0; list-style: none; }
.more-actions summary::-webkit-details-marker { display: none; }
.more-actions summary::after { content: " ▾"; }
.more-actions[open] summary::after { content: " ▴"; }
.sheet-body #next-crowd { font-weight: 600; color: var(--teal); margin: 0 0 10px; }
.stage.shake { animation: shake .28s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; aspect-ratio: 1; }
.mark-miss { width: 1.1%; background: rgba(233,104,79,.9); border: 2px solid #fff; animation: fade 1.4s forwards; }
.mark-decoy { border: 3px dashed var(--ink); background: rgba(255,255,255,.3); animation: pop .3s; }
.mark-target { border: 5px solid var(--coral); box-shadow: 0 0 0 3px #fff, 0 0 0 2400px rgba(29,42,68,.4); animation: pop .45s; }
.stage.bonus .mark-target { box-shadow: 0 0 0 3px #fff; }
.mark b { position: absolute; left: 50%; top: -1.3em; transform: translateX(-50%); font: 11px var(--display); background: var(--ink); color: #fff; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.mark-target b { background: var(--coral); font-size: 13px; }
.hintbox { position: absolute; border: 4px dashed var(--sun); outline: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 0 0 2400px rgba(29,42,68,.62); animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fade { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.who { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font: inherit; color: var(--ink); text-align: left; max-width: 46%; }
.who img { width: 40px; height: 46px; object-fit: cover; object-position: 50% 20%; border-radius: 9px; background: #f4eddc; flex: none; }
.who span { font-size: .72rem; line-height: 1.1; color: var(--ink-soft); min-width: 0; }
.who b { display: block; font: 1.05rem/1.1 var(--display); color: var(--coral); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { background: var(--ink); color: var(--sun); border-radius: 14px; padding: 4px 14px 5px; text-align: center; font: 1.55rem/1.05 var(--display); font-variant-numeric: tabular-nums; min-width: 96px; box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.clock small { display: block; font: 600 .62rem/1.1 var(--body); color: #cfd6e6; letter-spacing: .04em; text-transform: uppercase; }
.clock.hit { animation: hit .5s; }
@keyframes hit { 0% { background: var(--coral); transform: scale(1.14); } 100% { background: var(--ink); transform: scale(1); } }
.hud-btn { background: var(--sun); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); padding: 6px 12px; font: 1rem/1.1 var(--display); color: var(--ink); cursor: pointer; }
.hud-btn small { display: block; font: 600 .62rem var(--body); }
.hud-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hud-quiet { background: var(--card); font-size: .85rem; padding: 6px 10px; }
.hud-sound { font-size: 1.1rem; padding: 4px 11px; }
.hud-sound.off { opacity: .45; text-decoration: line-through; }
.streak { background: #fff1c9; border: 2px solid var(--ink); border-radius: 14px; padding: 7px 10px 6px; margin: 0 0 8px; }
.streak p { margin: 4px 0 0; font-weight: 600; font-size: .88rem; display: inline; }
.streak .linklike { margin-left: 6px; }
.streak .linklike { font-size: .88rem; color: var(--teal); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots { margin-bottom: 4px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.dots i.on { background: var(--coral); }
.dots i.today { box-shadow: 0 0 0 3px var(--sun); }
.hud-btn.pulse { animation: pulse 1s 3; }          /* three beats, then still: easy to hit one-handed */
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 2px 2px 0 var(--ink); } 50% { transform: scale(1.12); box-shadow: 2px 2px 0 var(--ink), 0 0 0 8px rgba(255,201,60,.45); } }
.verdict { font: 1.3rem/1.15 var(--display); margin: 0 0 6px; }
.verdict.won { color: var(--teal); } .verdict.lost { color: var(--ink-soft); }
.share-small { margin-top: -2px; }
.share-small .btn { font-size: .8rem; padding: 5px 11px; box-shadow: 1px 1px 0 var(--ink); }
.sheet-links { font-size: .85rem; margin: 12px 0 0; color: var(--ink-soft); }
.sheet-body #next-crowd { margin: 8px 0 0; }
.fit { position: absolute; right: 8px; bottom: 96px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }

.tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(255,250,240,.94); border-top: 2px solid var(--ink); padding: 4px 0 6px; }
.tray-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 0 10px 3px; }
.tray-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 10px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.tray-chips::-webkit-scrollbar { display: none; }
.chip-la { flex: none; width: 46px; height: 54px; border: 2px solid var(--ink); border-radius: 10px; background-color: #fffaf0; background-repeat: no-repeat; cursor: pointer; filter: grayscale(.85); opacity: .75; position: relative; padding: 0; }
.chip-la.got { filter: none; opacity: 1; border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf); }
.chip-la::before { content: attr(data-n); position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); color: #fff; font: 10px/15px var(--display); text-align: center; }
.chip-la.got::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.6-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }

.toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 5; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 16px; font-weight: 600; font-size: .92rem; width: max-content; max-width: 88%; text-align: center; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.float { position: absolute; transform: translate(-50%, -100%); font: 1.5rem var(--display); animation: floatup 1.05s forwards; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.float.bad { color: #c5351f; }
@keyframes floatup { 0% { opacity: 0; margin-top: 6px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }
.confetto { position: absolute; top: 46%; width: 10px; height: 14px; border-radius: 2px; animation: burst 1.7s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 420px)) rotate(calc(var(--r) * 2)); opacity: 0; } }

.overlay { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 14px; background: rgba(246,240,226,.7); overflow: auto; }
.overlay-card { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; width: min(440px, 100%); text-align: center; }
.overlay-card .btn-big { margin: 4px 0 10px; }
.overlay-card .small { margin: 0; }
.overlay-card .linklike { display: block; margin: 6px auto 0; font-size: .9rem; }
.wanted { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 12px; }
.wanted img { width: 104px; height: 120px; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--ink); border-radius: 14px; background: #f4eddc; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); flex: none; }
.wanted h1, .wanted h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); margin: 0 0 .15em; overflow-wrap: anywhere; }
.wanted h1 span, .wanted h2 span { color: var(--coral); }
.wanted p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.wanted-big { flex-direction: column; text-align: center; }
.wanted-big img { width: 170px; height: 196px; transform: none; }
.dare { background: #fff1c9; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; margin: 0 0 12px; font-size: .98rem; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; max-height: 78%; display: flex; flex-direction: column; background: var(--card); border-top: 3px solid var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(29,42,68,.3); animation: rise .35s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
@keyframes rise { from { transform: translateY(100%); } }
.sheet-handle { background: none; border: 0; padding: 10px 0 6px; cursor: pointer; flex: none; }
.sheet-handle i { display: block; width: 48px; height: 5px; border-radius: 3px; background: rgba(29,42,68,.3); margin: 0 auto; }
.sheet-body { overflow-y: auto; padding: 0 18px 18px; text-align: center; -webkit-overflow-scrolling: touch; }
.sheet-body h2 { margin: 0; }
.stars { font-size: 1.35rem; letter-spacing: .12em; color: var(--sun-deep); margin: 0; line-height: 1.1; -webkit-text-stroke: 1.5px var(--ink); }
.big-time { font: 2.5rem/1 var(--display); color: var(--coral); margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.sheet-body .small { margin-bottom: 8px; }
.sheet-body h2 { font-size: 1.45rem; }
.sheet-handle { padding: 7px 0 3px; }
.sheet-body .btn-big { font-size: 1.25rem; padding: 11px 24px; margin-bottom: 8px; }
.sheet-body .btn-wide { padding: 8px 14px; font-size: 1rem; }
.daily-card { padding: 7px 10px; margin-bottom: 4px; }
/* the result has the time on it: the bar at the top steps aside so the person can sit higher */
.stage.result-open .hud { display: none; }
.namebar { text-align: left; margin: 0 0 12px; }
.namebar label { font-size: .88rem; margin-bottom: 4px; }
.namebar input { padding: 10px 12px; }
.namebar .btn { box-shadow: 2px 2px 0 var(--ink); padding: 8px 18px; font-size: 1.05rem; }
.rank { font: 1.15rem var(--display); color: var(--teal); margin: 0 0 12px; }
.sheet-body .btn-big { margin: 0 auto 10px; display: block; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.next .btn-ink { grid-column: 1 / -1; }
.next .btn { font-size: .92rem; line-height: 1.15; padding: 9px 10px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); text-align: center; }
.sheet-peek { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 4; background: var(--coral); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 1rem var(--display); padding: 7px 20px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }

.ready-banner { background: #e3f3ea; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px 2px; margin: 0 0 10px; text-align: center; font-size: .95rem; }
.ready-banner p { margin: 0 0 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 12px; }
.share-row .btn { font-size: .95rem; padding: 7px 14px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.share-wa { background: #25d366; } .share-fb { background: #1877f2; color: #fff; } .share-x { background: #111; color: #fff; }
.board-card h2 { text-align: center; }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px dashed rgba(29,42,68,.25); }
.leaders li b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 1rem/30px var(--display); text-align: center; flex: none; }
.leaders li:first-child b { background: var(--sun); color: var(--ink); }
.leaders li span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders li em { font: 1.1rem var(--display); font-style: normal; font-variant-numeric: tabular-nums; }
.leaders li.me { background: #fff1c9; border-radius: 10px; }
.cta-card { text-align: center; }
.today-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin: 26px 0 0; text-decoration: none; box-shadow: 4px 4px 0 var(--sun); }
.today-link b { font: 1.3rem var(--display); display: block; }
.today-link span { font-size: .92rem; color: #cfd6e6; }
.today-link i { font: 1.1rem var(--display); font-style: normal; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 6px 16px; flex: none; }
@media (min-width: 760px) {
  .game { margin: 0; }
  .stage { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); height: min(76vh, 760px); }
  .sheet { left: 50%; right: auto; width: 460px; transform: translateX(-50%); border: 3px solid var(--ink); border-bottom: 0; }
  @keyframes rise { from { transform: translate(-50%, 100%); } }
}

.upsell { margin: 40px 0 10px; text-align: center; }
.prices { display: grid; gap: 16px; margin: 18px 0 12px; }
.price { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px 16px; position: relative; box-shadow: var(--shadow); }
.price-pick { background: #fff7dc; }
.price p { color: var(--ink-soft); font-size: .95rem; }
.price .amount { color: var(--ink); font-size: 2.4rem; }
.tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--coral); color: #fff; font: .95rem var(--display); padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.report { margin-top: 26px; font-size: .85rem; }

.prose h2 { margin-top: 1.2em; } .prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid rgba(29,42,68,.2); white-space: nowrap; }
.mail { border-top: 2px solid var(--ink); padding-top: 10px; } .mail pre { white-space: pre-wrap; word-break: break-word; font-size: .88rem; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 1.1fr; gap: 40px; padding-top: 30px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 30px 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- make form: one tick, a progress panel, the scene chip ---------- */
.label-hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.check.tick { border: 2px solid transparent; border-radius: 12px; padding: 8px 10px; margin: 0 -10px 12px; transition: border-color .2s, background .2s; }
.check.tick-needed { border-color: var(--coral); background: #fde6e0; }
.check.tick-needed input { outline: 3px solid var(--coral); outline-offset: 2px; }
.check.tick-shake { animation: tickshake .45s; }
@keyframes tickshake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } 100% { transform: none; } }
.reading { text-align: center; padding: 18px 4px 10px; }
.reading img { width: 96px; height: 96px; object-fit: cover; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); margin: 0 auto 14px; display: block; }
.reading-bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin: 0 auto 12px; max-width: 320px; }
.reading-bar i { display: block; height: 100%; width: 0; background: var(--sun); }
.reading p { font: 1.15rem var(--display); margin: 0; min-height: 1.5em; }
.read-summary .chip-scene { padding: 0; border: 0; background: none; }
.scene-chip { background: #fff7dc; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.scene-chip u { color: var(--teal); font-weight: 700; }
.scene-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 14px; }
.scene-pick .btn { font-size: .92rem; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); }
.scene-pick .btn[aria-pressed="true"] { background: var(--sun); }
.scene-pick .btn-their { background: #e3f3f1; }
.read-said { font-size: .9rem; color: var(--ink-soft); margin: -6px 0 10px; }
.read-said b { color: var(--ink); }
.btn.pulse-once { animation: pulseonce .9s 1; }
@keyframes pulseonce { 40% { transform: scale(1.07); box-shadow: 4px 4px 0 var(--ink), 0 0 0 10px rgba(255,201,60,.5); } }

/* ---------- the hunt: toasts sit at the bottom, clear of the Hint button ---------- */
.toast { top: auto; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 112px); }
.stage.bonus .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.stage.result-open .toast { display: none; }

/* ---------- maker's first screen: send, copy, have a go ---------- */
.send-row { display: flex; gap: 8px; align-items: stretch; margin: 0 0 8px; }
.send-row .btn-big { flex: 1; margin: 0; }
.btn-copy { flex: none; padding: 8px 12px; font-size: .95rem; border-radius: 16px; width: 92px; line-height: 1.1; }
.send-row .btn-big { font-size: 1.3rem; padding: 10px 12px; }
.clock-rule { margin: 6px 0 4px !important; }

/* ---------- result sheet: share first, then the bonus, then a quiet print card ---------- */
.share-more { font-size: .9rem; margin: -2px 0 10px; color: var(--ink-soft); }
.share-more .linklike { display: inline; margin: 0; font-weight: 600; }
.btn-bonus { display: block; margin: 0 auto 10px; background: #e3f3f1; }
.print-card { display: flex; align-items: center; gap: 10px; text-align: left; text-decoration: none; color: var(--ink); background: #fff7dc; border: 2px solid var(--ink); border-radius: 14px; padding: 6px 10px; margin: 0 0 12px; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.print-card img { width: 34px; height: 40px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--ink); flex: none; }
.print-card span { flex: 1; }
.print-card i { font-style: normal; font: 1.4rem var(--display); color: var(--teal); }

/* ---------- the print offer: one tile first, the others folded ---------- */
.prices-one { max-width: 360px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr !important; }
.price-line { margin: -6px 0 8px; font-weight: 600; color: var(--ink) !important; }
.by-date { color: var(--coral) !important; font-weight: 700; }
.other-options { margin: 4px auto 12px; max-width: 760px; }
.other-options summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); padding: 6px 0; }
.other-options .prices { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- round 2: the line and banner on the reveal card ---------- */
.btn-outline { display: block; width: 100%; max-width: 420px; margin: 2px auto 12px; background: transparent; border: 2px dashed var(--ink); box-shadow: none; font-size: 1.1rem; padding: 9px 14px; color: var(--ink); }
.btn-outline:hover { box-shadow: none; background: #fff7dc; }
.line-box { text-align: left; max-width: 420px; margin: 0 auto 12px; background: #fff7dc; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px 2px; }
.line-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.line-idea { box-shadow: 1px 1px 0 var(--ink); font-size: .88rem; padding: 4px 10px; background: #fff; }
.line-idea[aria-pressed="true"] { background: var(--sun); }
.line-box .field { margin-bottom: 10px; }
.made-line { display: inline-block; background: #fff7dc; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: .9rem; margin: 0 4px 10px; }
@media (max-width: 420px) {
  .reveal-pic { width: 150px; height: 170px; }
  .reveal-title { font-size: 1.5rem; margin: 6px 0 6px; }
}

/* ---------- round 2: the hunt view ---------- */
.backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(18px) saturate(.8) brightness(.82); pointer-events: none; }
.board.blurred img { filter: blur(5px) brightness(.82) saturate(.9); }  /* the crowd and the scene read; no one can be matched to the card */
.hud-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 40%; }
.pinned { margin: 0; background: rgba(29,42,68,.88); color: #fff; font-size: .74rem; font-weight: 600; line-height: 1.25; border-radius: 10px; padding: 5px 8px; text-align: center; pointer-events: none; }
.page-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 16px; font-weight: 600; font-size: .95rem; width: max-content; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); pointer-events: none; animation: fadein .2s; }
.made-lines { margin: -2px 0 6px; }
.made-lines .made-line { margin-bottom: 4px; font-size: .82rem; }

/* the maker's send panel: one big send, then three equal ways */
.send-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 8px; }
.send-three .btn { font-size: .9rem; padding: 8px 4px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); text-align: center; text-decoration: none; line-height: 1.15; }
#wa-maker { background: #d7f5e2; }

/* the result sheet: one send, two next steps, the print line, the rest folded */
.sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.sheet-two .btn-wide { margin: 0; font-size: .92rem; line-height: 1.15; padding: 9px 8px; }
.sheet-two .btn-bonus { margin: 0; }
.more-actions .share-more { margin: 4px 0 10px; }

/* the print offer: their poster on a wall, then the two ways to have it */
.upsell .for-other { display: none; }
.upsell.other .for-other { display: revert; }
.upsell.other .for-maker { display: none; }
.wall { position: relative; margin: 14px auto 18px; max-width: 440px; padding: 28px 22px 34px; border-radius: var(--radius); border: 3px solid var(--ink);
  background: linear-gradient(180deg, #efe6d3 0%, #e4d8bf 78%, #cdbd9c 78.5%, #d8c9a8 100%); box-shadow: var(--shadow); }
.wall .frame { background: #23262d; padding: 7px; box-shadow: 0 10px 22px rgba(29,42,68,.35), 0 2px 4px rgba(0,0,0,.3); margin: 0 auto; max-width: 340px; }
.wall .mount { background: #fbfaf6; padding: 9%; padding: clamp(10px, 6%, 22px); }
.wall .mount img { display: block; width: 100%; height: auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.size-tag { position: absolute; right: 12px; bottom: 8px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; font-size: .8rem; font-weight: 700; padding: 2px 10px; }
.prices-two { max-width: 760px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prices-two { grid-template-columns: 1fr 1fr; } }
.price h3 { font-size: 1.35rem; }
.etsy-note { font-size: .92rem; font-weight: 600; color: var(--ink); margin: 0 auto 12px; max-width: 520px; }

/* ---------- round 3 ---------- */
/* + and Fit at the bottom left: the FIND card is printed in the picture's bottom-right corner */
.fit { left: 8px; right: auto; }
.rules-line { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 2px 0 4px !important; }
.startcard .rules-line + .small { margin-bottom: 2px; }
/* the words box sits straight under the photo */
.about-field { margin: 0 0 8px; }
.about-field textarea { min-height: 4.6em; }
/* skin, hair colour and a moustache: chips on the reveal card, one tap to the engine's own swatches */
.look-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 5px; margin: -8px 0 12px; }
.look-chip { background: #fff7dc; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; font: inherit; font-size: .84rem; color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.look-chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); display: inline-block; }
.look-chip u { color: var(--teal); font-weight: 700; }
.look-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -4px 0 14px; }
.look-pick .ask-swatch[aria-pressed="true"] { outline: 3px solid var(--sun); outline-offset: 2px; }
.look-pick .btn { font-size: .92rem; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); }
.look-pick .btn[aria-pressed="true"] { background: var(--sun); }
/* how much of the line and the banner is left */
.count { float: right; margin-left: 8px; font-weight: 600; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.count.full { color: var(--coral); }
/* the line and the banner, each on its own line */
.made-lines { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.made-lines .made-line { display: block; margin: 0; max-width: 100%; }
/* a clean run on the board */
.leaders li em .clean { font: 600 .72rem var(--body, inherit); color: var(--teal); letter-spacing: .02em; }
/* a receiver's two choices */
.print-other { margin: 0 0 12px; }
.print-other .print-card { margin-bottom: 6px; }
.or-own { display: block; font-weight: 600; color: var(--teal); font-size: .95rem; }
.or-own-line { margin: 4px 0 10px; }
/* one step on Etsy */
.etsy-step h1 { margin-top: 0; text-align: center; }
.etsy-poster img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 10px; margin: 0 0 14px; }
.etsy-label { margin-bottom: 4px; }
.etsy-note { width: 100%; font: 1rem/1.4 var(--body); padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fffdf6; color: var(--ink); resize: none; margin: 0 0 12px; }
.etsy-step .btn-big { display: block; margin: 0 auto 8px; }
.etsy-how { text-align: center; font-weight: 600; margin: 0 0 10px; }
/* the poster code: one line on Etsy and the print offer */
.poster-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0 0 8px; }
.poster-code-label { font-weight: 600; }
.poster-code-value { font: 1.45rem/1.2 var(--display, inherit); letter-spacing: .06em; padding: 4px 12px; border: 2px dashed var(--ink); border-radius: 10px; background: #fffdf6; user-select: all; -webkit-user-select: all; }
.poster-code .code-copy { width: auto; margin: 0; }
.etsy-words { margin: 4px 0 10px; }
.etsy-words summary { cursor: pointer; text-align: center; font-weight: 600; margin-bottom: 8px; }
.upsell .poster-code { margin-top: 14px; }
.upsell .code-how { text-align: center; margin: 0 0 12px; }


/* ================================================================ the UX revision (Nov 2026)
   One brand, more discipline: a type scale, one yellow primary per view, 44px targets, a 720px column
   under the hero, a hunt that fills its stage, and the printed key with its ten in the game. */
:root { --gutter: 16px; --gap: 32px; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.lede { font-size: 1.125rem; line-height: 1.4; text-wrap: balance; }
.hint, .small { font-size: .9375rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
main { padding-left: var(--gutter); padding-right: var(--gutter); }
.top { padding-left: var(--gutter); padding-right: var(--gutter); }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 8px; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.foot { font-size: .875rem; color: var(--ink-soft); }
.foot-links a { display: inline-block; padding: 12px 8px; font-size: .875rem; color: var(--ink-soft); }
.making-page .foot, .etsy-page .foot .foot-links a[href$="outbox"] { display: none; }

/* buttons: one primary size, real targets, a ring you can see on yellow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-align: center; }
.btn-big { min-height: 56px; font-size: 1.25rem; width: 100%; max-width: 440px; padding: 12px 24px; }
.btn-ghost { background: var(--card); border-width: 2px; box-shadow: 2px 2px 0 var(--ink); font-size: 1.05rem; }
.btn-small { min-height: 44px; font-size: 1rem; padding: 8px 16px; }
.linklike { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 8px; color: var(--ink-soft); }
.btn[aria-disabled="true"] { cursor: pointer; }
.btn-outline { display: flex; min-height: 48px; border-style: solid; border-width: 2px; background: var(--card); font-size: 1.05rem; }
.disclose > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 4px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); border-top: 2px dashed rgba(29,42,68,.25); }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after { content: ""; width: 10px; height: 10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); margin: 0 6px 4px; transition: transform .15s; }
.disclose[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }

/* ---------- home: the first screen ---------- */
.home-page .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px 0 8px; text-align: left; }
.hero-h1 { font-size: clamp(2rem, 8.6vw, 2.4rem); line-height: 1.02; margin: 0 0 12px; text-wrap: initial; }
.hero-h1 span { display: block; }
.hero .lede { max-width: 30ch; margin: 0 0 16px; color: var(--ink-soft); }
.hero-cta { margin: 0 0 24px; max-width: 440px; }
.hero-art { margin: 0; }
.hero-pic { position: relative; max-width: 640px; margin: 0 auto; }
.hero-art img { transform: none; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.sticker { left: auto; bottom: auto; top: -12px; right: -6px; background: var(--sun); color: var(--ink); font-size: 1rem; padding: 6px 14px; transform: rotate(4deg); }
.tagline { display: none; color: var(--coral-text); text-align: center; margin: 14px 0 0; font-size: 1.3rem; }
.hero .ticks { margin: 20px 0 0; font-size: .9375rem; }
.hero .ticks li:nth-child(3) { display: none; }
.column { max-width: 720px; margin: 0 auto; }
.column > .card, .column > .today-link { margin-top: var(--gap); margin-bottom: 0; }
.form-card { padding: 20px 16px; scroll-margin-top: 8px; }

/* how it works: one compact card, three rows */
.how.card { display: block; padding: 20px 16px; max-width: none; }
.how-title { font-size: 1.5rem; margin-bottom: 12px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; }
.how-steps div { background: none; border: 0; padding: 0; position: static; }
.how-steps b { position: static; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font: 1.1rem/28px var(--display); text-align: center; }
.how-steps h3 { font-size: 1.1rem; margin: 4px 0 2px; }
.how-steps p { margin: 0; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }

/* Today's crowd: a paper card, not a navy slab */
.today-link { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 14px 16px; }
.today-link b { font-size: 1.25rem; }
.today-link span { color: var(--ink); font-size: .9375rem; line-height: 1.35; display: block; }
.today-link i.btn { font: 1rem var(--display); font-style: normal; padding: 8px 16px; min-height: 44px; background: var(--sun); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.today-link i.btn span { display: inline; font-size: inherit; }

/* ---------- the maker form ---------- */
.photo-start { padding: 0; margin: 0 0 16px; border: 0; background: none; }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px; margin: 0; border: 2px dashed var(--ink); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 500; }
.photo-start.dragging .photo-drop { background: #fff7dc; border-color: var(--teal); }
.photo-take { font-size: 1.25rem; margin: 0; pointer-events: none; }
.photo-or { font-size: .9375rem; color: var(--ink-soft); text-decoration: underline; }
.photo-chosen { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin: 0; }
.from-row { margin: -6px 0 8px; }
.from-row .linklike { padding-left: 0; font-weight: 600; color: var(--teal-text); }
.privacy { margin: 0 0 4px; }
.check.tick.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 0; margin: 0 0 12px; }
.check.tick.consent.tick-needed { padding: 12px 10px; margin: 0 -10px 12px; }
.consent input { width: 24px; height: 24px; margin-top: 0; }
.terms-link { display: inline-block; padding: 10px 4px; margin: -10px 0; }
.go-need { text-align: center; font-size: .875rem; color: var(--ink-soft); margin: -2px 0 6px; }
.quick-go .center, .steps .center { margin: 0; }
.reading-bar i { transition: width .4s; }

/* the reveal: the figure, one line of what we read, the button, then "Tweak the look" */
.reveal { text-align: center; }
.reveal-pic { width: 200px; height: 228px; margin: 0 auto 12px; }
.read-summary { display: block; font-size: 1rem; line-height: 1.4; margin: 0 0 14px; text-wrap: balance; }
.reveal .btn-big { margin: 0 auto 12px; }
.read-said { margin: 0 0 8px; }
.tweak { text-align: left; margin: 8px 0 0; }
.tweak-rows { display: grid; gap: 6px; padding: 6px 0 4px; }
.tweak-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; text-align: left; }
.tweak-row:disabled { cursor: default; }
.tweak-label { font-weight: 700; }
.tweak-value { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tweak-value b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tweak-value i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.tweak-go { color: var(--teal-text); font-weight: 700; white-space: nowrap; }
.look-chips { display: grid; gap: 6px; margin: 0; }
.scene-pick, .look-pick { margin: 2px 0 6px; }
.line-box { max-width: none; margin: 0; }
.reveal .asks { text-align: center; }

/* ---------- the drawing page: one card in the middle, one bar ---------- */
.making-page main { display: grid; place-items: center; min-height: calc(100dvh - 140px); padding-bottom: 24px; }
.making-page .making { width: 100%; max-width: 560px; margin: 0; }
.making-thumb { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); display: block; margin: 0 auto 8px; }
.making h1 { font-size: 1.75rem; }
.making-bar { margin: 4px auto 12px; }
.making-bar i { transition: none; }
.making-time { font-weight: 600; margin: 0 0 6px; }
.making-note { color: var(--ink-soft); font-size: .9375rem; margin: 0; min-height: 1.4em; }

/* ---------- the game ---------- */
body.hunting { overflow: hidden; overscroll-behavior: none; }
.hud { padding: 8px; align-items: flex-start; }
.who { max-width: 38%; min-height: 48px; }
.who span { font-size: .75rem; }
.hud-right { flex-direction: row; align-items: flex-start; gap: 6px; }
.hud-sound { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.hud-btn { min-height: 48px; min-width: 64px; }
.hud-btn small { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.clock small { font-size: .75rem; }
.fake-count span { font: 1.55rem/1.05 var(--display); }
.fake-count b { font-weight: 400; color: var(--sun); }
.pinned { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9375rem; padding: 8px 14px; border-radius: 999px; }
.toast { top: 72px; bottom: auto; max-width: 90%; font-size: 1rem; line-height: 1.3; padding: 8px 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast[hidden] { display: none !important; }
.stage.bonus .toast { bottom: auto; }
.zoombar { position: absolute; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.zoombar .fit { position: static; width: 48px; height: 48px; }
.stage.bonus .zoombar { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.stage:has(.tray:not([hidden])) .zoombar { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.stage.bonus:not(:has(.tray)) .zoombar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.hintbox { border: 4px dashed var(--sun); outline: 0; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2400px rgba(29,42,68,.62); }
/* the printed key's ten, ticked off as the fakes are found */
.keyticks { position: absolute; inset: 0; pointer-events: none; }
.ktick { position: absolute; border-radius: 6px; }
.ktick.got { box-shadow: 0 0 0 3px var(--leaf); background: rgba(90,164,105,.16); animation: fadein .3s; }
.ktick.got::after { content: ""; position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.6-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* the start card: in the middle of the stage, one primary */
.startcard { top: 50%; bottom: auto; translate: 0 -50%; max-height: calc(100% - 24px); overflow-y: auto; padding: 16px 16px 12px; }
.startcard .wanted p { font-size: .9375rem; }
.rules-line { font-size: .875rem; font-weight: 500; color: var(--ink-soft); margin: 0 0 10px !important; }
.startcard .small { font-size: .875rem; }
.day-pill { display: inline-block; font-size: .875rem; font-weight: 600; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 4px 12px; margin: 0 0 4px; }
.day-same { font-size: .875rem; color: var(--ink-soft); margin: 0 0 8px; }
.wanted-ready h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
.btn-wa { display: flex; width: 100%; min-height: 48px; margin: 0 0 8px; background: #25d366; color: var(--ink); font-size: 1rem; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.send-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.send-two .btn { font-size: 1rem; padding: 8px 6px; white-space: nowrap; text-decoration: none; }
.startcard .btn-wide { min-height: 48px; display: flex; margin: 0; font-size: 1.05rem; }
.first-note { margin: 4px 0 4px !important; font-size: .875rem; }
.quiet-row { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; font-weight: 600; color: var(--teal-text); text-decoration: none; }
.quiet-row:hover { text-decoration: underline; }

/* the result sheet: everything reachable, a fade says there is more */
.sheet { max-height: min(85dvh, 85%); }
.sheet-handle { height: 44px; padding: 0; display: grid; place-items: center; width: 100%; }
.sheet-body { padding: 0 16px 16px; }
.sheet-body.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 12px), transparent); mask-image: linear-gradient(#000 calc(100% - 12px), transparent); }
.sheet-body h2 { font-size: 1.5rem; }
.sheet-body .btn-big { margin: 4px auto 10px; }
.name-row { display: flex; gap: 8px; margin: 0 0 10px; }
.name-row .namebar { flex: 1; margin: 0; }
.name-row .namebar input { height: 48px; padding: 8px 12px; }
.name-row .btn { flex: 1 0 auto; min-height: 48px; white-space: nowrap; }
.name-row .namebar:not([hidden]) + .btn { flex: none; }
.sheet-two { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 6px; }
.sheet-two .btn { min-height: 48px; white-space: nowrap; font-size: 1rem; padding: 8px 10px; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.sheet-two:has(> .btn[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 389px) { .sheet-two { grid-template-columns: 1fr; } }
.print-row { margin: 0; }
.or-own.btn-outline { max-width: none; margin: 0 0 6px; }
.print-other { margin: 0 0 4px; }
.more-actions { margin-top: 4px; }
.more-actions > summary { justify-content: center; gap: 10px; font-size: 1rem; color: var(--ink-soft); }
.more-actions summary::after { content: ""; }
.more-actions[open] summary::after { content: ""; }
.share-more .linklike { display: inline-flex; }
.next .btn { min-height: 48px; }
.leaders li.me-edit { cursor: pointer; min-height: 48px; }
.me-input { flex: 1; font: inherit; font-weight: 600; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; min-height: 40px; }

/* ---------- the print offer: the code beside its button, the rest folded ---------- */
.upsell { max-width: 720px; margin: 48px auto 10px; }
.prices-one { max-width: 440px; }
.price-pick { padding-top: 28px; }
.tag { top: -16px; }
.price .poster-code { margin: 12px 0 4px; }
.price .poster-code-label { flex-basis: 100%; text-align: center; }
.price .poster-code .code-copy { min-width: 88px; }
.price .code-how { font-size: .9375rem; margin: 0 0 12px; color: var(--ink-soft); }
.price .btn-big { margin: 0 auto; }
.pay-note { text-align: center; font-size: .9375rem; color: var(--ink-soft) !important; margin: 8px 0 0; }
.other-options { max-width: 440px; margin: 12px auto; text-align: left; }
.other-options .prices { grid-template-columns: 1fr; }
.trust-row { text-align: center; font-size: .875rem; color: var(--ink-soft); max-width: 440px; margin: 8px auto 0; }
.trust-row span { display: inline-block; }
.trust-row span + span::before { content: "·"; margin: 0 8px; }
.report button, .report .linklike { display: inline-block; padding: 12px 8px; font-size: .875rem; }

/* ---------- one step on Etsy ---------- */
.step-pill { display: table; margin: 0 auto 8px; font-size: .875rem; font-weight: 600; background: var(--sun); border-radius: 999px; padding: 4px 12px; }
.etsy-step .btn-big { font-size: clamp(1.05rem, 4.6vw, 1.25rem); white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.etsy-trust { text-align: center; font-size: .9375rem; color: var(--ink-soft); margin: 4px 0 8px; }
.etsy-links { display: flex; flex-direction: column; align-items: center; margin: 0; }
.etsy-links .linklike { color: var(--teal-text); }
.etsy-words > summary { justify-content: center; gap: 10px; }

@media (min-width: 520px) {
  :root { --gutter: 24px; }
  h2 { font-size: 1.75rem; }
  .home-page .hero { text-align: center; justify-items: center; }
  .hero-h1 { font-size: 2.75rem; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { margin-left: auto; margin-right: auto; }
  .hero-art { width: 100%; }
  .tagline { display: block; }
  .hero .ticks li:nth-child(3) { display: list-item; }
  .hero .ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
  .card, .form-card, .how.card { padding: 28px; }
  .reveal-pic { width: 240px; height: 272px; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how-steps li { flex-direction: column; align-items: center; text-align: center; }
  .how-title { text-align: center; }
}
@media (min-width: 760px) {
  .stage { height: auto; aspect-ratio: var(--ratio); width: 100%; max-height: calc(100dvh - 120px); min-height: min(560px, calc(100dvh - 120px)); }
  .sheet { width: 520px; max-height: 85%; }
  .hud-btn { min-height: 52px; min-width: 72px; }
  .hud-sound { width: 48px; height: 48px; }
  .who { max-width: 220px; }
  .who.big img { width: 72px; height: 84px; }
  .reveal:not([hidden]) { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; text-align: left; }
  .reveal-pic { margin: 0; }
  .reveal .btn-big { margin-left: 0; }
  .reveal .read-summary { text-wrap: pretty; }
  .startcard.maker-card, .startcard:has(#launch-btn) { max-width: 560px; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --gap: 48px; }
  h2 { font-size: 2rem; }
  .home-page .hero { grid-template-columns: 1fr 1.15fr; column-gap: 48px; align-items: center; text-align: left; justify-items: stretch; padding-top: 32px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 2; grid-row: 1 / span 2; }
  .hero .ticks { grid-column: 1; grid-row: 2; justify-content: flex-start; flex-direction: column; align-self: start; margin-top: 0; }
  .hero-h1 { font-size: 3.25rem; }
  .hero .lede { font-size: 1.25rem; margin-left: 0; }
  .hero-cta { margin-left: 0; margin-bottom: 20px; }
  .hero-art img { transform: rotate(-1deg); }
  .hero-pic { max-width: 560px; }
}
.etsy-paste { display: block; width: 100%; max-width: 360px; height: auto; margin: 8px auto 10px; border: 2px solid var(--ink); border-radius: 10px; }
/* nothing under 14px but the uppercase HUD captions */
.made-lines .made-line, .size-tag, .count, .daily-card, .look-chip, .share-small .btn, .sheet-links, .read-said,
.leaders li em .clean, .preview-pic span, .alert, .err, .streak p, .streak .linklike, .more-colours { font-size: .875rem; }
.etsy-step { padding-top: 16px; }
.etsy-step h1 { font-size: 1.75rem; margin-bottom: 10px; }
.etsy-poster img { width: auto; max-width: 100%; max-height: 30vh; margin: 0 auto 12px; }
.etsy-step .etsy-how { font-size: .9375rem; }
.stage.result-open .zoombar { display: none; }

/* ================================================================ alive (Nov 2026)
   The home page explains itself and moves a little: a line saying what the game is, a second way in,
   a magnifying glass at work on the sample crowd, snow at Christmas, the film, and things easing in.
   Transforms and opacity only; prefers-reduced-motion stops all of it (the rule above, and home.js). */
.hero-what { max-width: 34ch; margin: -4px 0 18px; font-size: 1rem; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; max-width: 440px; }
.hero-ctas .hero-cta { margin: 0; flex: 1 1 auto; width: auto; padding-left: 16px; padding-right: 16px; }
.hero-try { flex: none; min-height: 48px; font-size: 1.05rem; padding: 10px 14px; }
.hero-try span { transition: transform .2s; }
.hero-try:hover span { transform: translateX(3px); }
@media (max-width: 349px) { .hero-ctas { flex-direction: column; align-items: stretch; } }
@media (min-width: 520px) {
  .hero-what { margin-left: auto; margin-right: auto; }
  .hero-ctas { margin-left: auto; margin-right: auto; }
  .hero-try { padding: 10px 20px; font-size: 1.1rem; }
}
@media (min-width: 900px) {
  .hero-what { margin-left: 0; font-size: 1.0625rem; }
  .hero-ctas { margin-left: 0; margin-bottom: 20px; }
}

/* buttons press in under a finger as well as a mouse */
.btn { transition: transform .12s cubic-bezier(.3, 1.4, .5, 1), box-shadow .12s; }
.btn:active { transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--ink); transition-duration: .05s; }

/* the living sample: a frame of fixed shape the glass works inside */
.hero-frame { position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink); background: #e8edf2; -webkit-user-select: none; user-select: none; }
.hero-frame > picture { display: block; aspect-ratio: 1200 / 630; }
.hero-art .hero-frame > picture img { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.hero-stage { position: relative; touch-action: pan-y pinch-zoom; }
@media (min-width: 900px) { .hero-stage { transform: rotate(-1deg); } }
/* the glass is above the picture, not in it: it may hang over the frame's edge as a real one would */
.glass-layer { position: absolute; inset: 3px; z-index: 2; opacity: 0; transition: opacity .5s; pointer-events: none; }
.glass-layer.live { opacity: 1; }
.glass-on { cursor: none; }
.glass { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: auto; touch-action: none; }
.glass-body { position: absolute; inset: 0; }
.glass-view { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #e8edf2;
  border: 5px solid #f2b632; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 4px 6px 0 rgba(29,42,68,.35); }
.glass-view::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 34%); }
.glass-img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.hero-art .glass-img { border: 0; box-shadow: none; border-radius: 0; display: block; }
.glass-handle { position: absolute; left: 83%; top: 83%; width: 14%; height: 46%; min-width: 14px; border-radius: 8px; background: linear-gradient(90deg, #a5582c, #c9733d 45%, #8d4520);
  border: 2px solid var(--ink); transform: rotate(-45deg); transform-origin: 50% 0; z-index: -1; }
.glass-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 4px solid var(--coral); box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%) scale(0); opacity: 0; }
.glass.fake .glass-ring, .glass.found .glass-ring { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.glass.fake .glass-ring { border: 3px dashed var(--ink); box-shadow: 0 0 0 2px rgba(255,255,255,.8); transform: translate(-50%, -50%) scale(1); opacity: 1; }
.glass.found .glass-ring { border-color: var(--leaf); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); transform: translate(-50%, -50%) scale(1); opacity: 1; }
.glass.fake .glass-body { animation: glassshake .42s; }
.glass.found .glass-body { animation: glasspop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes glassshake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-3deg); } 40% { transform: translateX(5px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes glasspop { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
.glass-tag { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; }
.glass-tag span { display: block; font: 1rem/1 var(--display); letter-spacing: .01em; padding: 7px 12px 6px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); background: #fff; color: var(--ink); transform: scale(0); }
.glass-tag.on { visibility: visible; }
.glass-tag.on span { animation: tagpop .38s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.glass-tag.fake span { background: var(--coral); color: #fff; }
.glass-tag.found span { background: var(--sun); font-size: 1.1rem; }
@keyframes tagpop { from { transform: scale(.2); } to { transform: scale(1); } }
.glass-fx { position: absolute; inset: 0; }
.glass-bit { position: absolute; width: 7px; height: 10px; margin: -5px 0 0 -3px; border-radius: 2px; border: 1px solid rgba(29,42,68,.4); animation: glassbit 1.2s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes glassbit { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .glass-tag.on span { transform: none; } }
@media (hover: none) { .glass-on { cursor: auto; } }

/* snow, behind the hero only, across the whole width of the screen */
.home-page { overflow-x: clip; }
.hero { position: relative; }
.hero > :not(.snow) { position: relative; z-index: 1; }
.snow { position: absolute; z-index: 0; top: -80px; bottom: 0; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 80px); pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.snow.on { opacity: 1; }

/* the film in How it works */
.how-video { margin: 0 auto 18px; max-width: 520px; }
.how-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  background: var(--ink) radial-gradient(circle at 50% 45%, #2d3d60, var(--ink) 70%); object-fit: cover; }

/* sections ease in as they arrive */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* the reveal card's cartoon arrives with a bounce */
.reveal-pic.pop-in img, .preview-pic.pop-in img { animation: cartoonpop .6s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 90%; }
@keyframes cartoonpop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; } }

/* the find in the game: a star and a burst from the person */
.starpop { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.starpop b { position: absolute; left: -40px; top: -44px; width: 80px; text-align: center; font: 72px/1 var(--display); color: var(--sun); -webkit-text-stroke: 3px var(--ink); animation: starpop 1.1s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.starpop i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--sun); animation: starring .8s ease-out forwards; }
@keyframes starpop { 0% { transform: scale(0) rotate(-40deg); } 35% { transform: scale(1.3) rotate(10deg); } 55% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: translateY(-70px) scale(.8); opacity: 0; } }
@keyframes starring { from { transform: scale(.3); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.stars span { display: inline-block; animation: starin .45s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.stars span:nth-child(2) { animation-delay: .15s; } .stars span:nth-child(3) { animation-delay: .3s; }
@keyframes starin { from { transform: scale(0) rotate(-60deg); } to { transform: none; } }
