/* Southern Finland Criminal Division — the market journey.
   Arrival → (explore the market) → submit → so close / confirmed → payoff. */
:root {
  --night: #0a1730;
  --navy: #0d2147;
  --ink: #142236;
  --frost: #eaf3fb;
  --mist: #b9c9de;
  --gold: #d8b46a;
  --gold-2: #f1d79a;
  --rose: #7b4a45;
  --cream: #efe6a6;
  --teal: #3fd6b6;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  color: var(--frost);
  background: var(--night);
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
a { color: var(--gold-2); }
button { font: inherit; }

/* ---- header ---- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 16px 18px 0;
}
.mark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.mark img { width: 40px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.mark-text { display: flex; flex-direction: column; font-family: "Cormorant Garamond", serif; line-height: 1.02; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.35); }
.mark-text b { font-weight: 600; font-size: 19px; letter-spacing: 0.08em; }
.mark-text small { font-family: "Jost", sans-serif; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; opacity: 0.85; }
.lang { font-size: 12px; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); align-self: start; padding-top: 4px; }
.lang i { font-style: normal; opacity: 0.5; }
.lang b { color: #fff; font-weight: 500; }
.top nav { grid-column: 1 / -1; display: flex; gap: 18px; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,0.18); margin-top: 6px; }
.top nav a { color: #fff; text-decoration: none; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }

/* ---- screens ---- */
.screen { display: none; position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
body[data-screen="arrive"] .screen-arrive,
body[data-screen="market"] .screen-market,
body[data-screen="confirmed"] .screen-confirmed,
body[data-screen="payoff"] .screen-payoff { display: block; animation: screen-in 0.45s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.kicker { margin: 0; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); }
.kicker::after { content: ""; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; opacity: 0.7; }

/* aurora shimmer over the photo */
.aurora { position: absolute; inset: 0 0 45% 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.55; }
.aurora span { position: absolute; left: -30%; width: 160%; height: 60%; border-radius: 50%; filter: blur(34px); }
.aurora span:first-child { top: 4%; background: linear-gradient(100deg, transparent 15%, rgba(63,255,180,0.55) 40%, rgba(40,200,190,0.45) 60%, transparent 85%); animation: drift 16s ease-in-out infinite alternate; }
.aurora span:last-child { top: 22%; background: linear-gradient(80deg, transparent 20%, rgba(90,150,255,0.35) 45%, rgba(160,110,255,0.3) 62%, transparent 82%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%) rotate(-6deg); } to { transform: translateX(6%) rotate(-1deg) scaleY(1.2); } }

.snow { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.85) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90px 120px, rgba(255,255,255,0.7) 50%, transparent 51%), radial-gradient(2.5px 2.5px at 150px 60px, rgba(255,255,255,0.55) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60px 170px, rgba(255,255,255,0.8) 50%, transparent 51%);
  background-size: 200px 200px; animation: snow 16s linear infinite; }
@keyframes snow { to { background-position: 40px 200px; } }

/* ---- 1 · arrival ---- */
.screen-arrive { overflow: visible; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 28px; }
.hero { background: #0e315b; }
.hero .bg { background-image: url(assets/hero-portrait.jpg); background-size: 100% auto; background-position: 50% 100%; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,14,32,0.7) 0%, rgba(6,14,32,0.35) 22%, rgba(6,14,32,0.1) 36%, rgba(6,14,32,0.05) 46%, rgba(6,14,32,0.05) 62%, rgba(6,14,32,0.55) 100%); }
.arrive-inner { position: relative; z-index: 2; padding: 138px 18px 0; max-width: 560px; }
.arrive-inner h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 40px; line-height: 0.98; margin: 8px 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.intro { margin: 0; max-width: 40ch; font-family: "Cormorant Garamond", serif; font-size: 16.5px; line-height: 1.3; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }

.card { position: relative; background: rgba(9, 22, 48, 0.86); border: 1px solid rgba(255,255,255,0.16); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* frosted form card resting in the snow */
.form-card { z-index: 2; margin: auto 16px 0; width: calc(100% - 32px); max-width: 440px; align-self: center; padding: 20px 20px 22px; text-align: center; color: var(--ink);
  background: linear-gradient(160deg, rgba(240,248,255,0.9), rgba(214,234,246,0.84)); border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 24px 60px rgba(4,12,30,0.45), inset 0 1px 0 rgba(255,255,255,0.9); }
.form-card::before { content: "❄"; position: absolute; top: 12px; right: 14px; font-size: 20px; color: rgba(31,90,120,0.35); }
.form-card::after { content: "❄"; position: absolute; bottom: 10px; left: 14px; font-size: 14px; color: rgba(31,90,120,0.22); }

#mystery-form p { margin: 0 0 14px; font-family: "Cormorant Garamond", serif; font-size: 20px; line-height: 1.25; padding: 0 18px; color: #12304f; }
#mystery-form strong { font-weight: 600; }
#stall-input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(18,48,79,0.18);
  background: #fff; color: var(--ink); font: inherit; font-size: 19px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-align: left;
}
#stall-input::placeholder { text-transform: none; letter-spacing: 0.02em; font-weight: 400; font-size: 16px; color: #7d8ea3; }
#stall-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(31,111,122,0.35); }
#stall-input.filled { animation: filled 1.2s ease-out; }
@keyframes filled { 0% { box-shadow: 0 0 0 0 rgba(216,180,106,0.9); } 100% { box-shadow: 0 0 0 16px rgba(216,180,106,0); } }
#mystery-form button {
  margin-top: 12px; width: 100%; height: 50px; border-radius: 999px; cursor: pointer; border: 0;
  background: linear-gradient(180deg, #23727d, #165560); color: #fff; box-shadow: 0 8px 20px rgba(22,85,96,0.35);
  font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase;
}
#mystery-form button:hover { filter: brightness(1.08); }
#response-message { margin: 0 !important; font-family: "Jost", sans-serif !important; font-size: 15.5px !important; font-weight: 500; padding: 0 !important; text-align: left; }
#response-message:not(:empty) { margin-top: 14px !important; padding: 12px 14px !important; border-radius: 10px; background: #fffdf6; }

/* checking records */
.checking { display: none; position: absolute; inset: 0; z-index: 3; border-radius: 18px; background: rgba(9, 22, 48, 0.95); color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.checking b { font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 600; }
.checking small { color: var(--mist); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(63,214,182,0.25); border-top-color: var(--teal); animation: spin 0.9s linear infinite; margin-bottom: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
body.is-checking .checking { display: flex; }
body.is-checking #response-message { visibility: hidden; }

/* so close */
.so-close { display: none; margin: -2px 0 10px; }
.so-close-fi { display: block; font-family: "Parisienne", cursive; font-size: 40px; line-height: 1; color: #9a3b33; }
.so-close-en { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; color: #12304f; }
body[data-result="miss"] .so-close { display: block; animation: pop 0.5s ease-out; }
body[data-result="miss"] #response-message:not(:empty) { border-left: 4px solid #c0392b; }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.form-card.shake { animation: shake 0.5s; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--gold-2); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.form-card .link-btn { color: #165560; }
.link-btn.light { color: #fff; position: relative; z-index: 3; }
.after-miss { display: none; }
body[data-result="miss"] .after-miss { display: block; }

.scroll-cue { position: relative; z-index: 2; align-self: center; margin-top: 18px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.scroll-cue i { display: block; text-align: center; font-style: normal; font-size: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* the big market, leading on from the home scene */
.teaser { position: relative; padding: 40px 16px 44px; background: linear-gradient(180deg, #0b1838, #0a1730); }
.teaser-head { max-width: 1100px; margin: 0 auto 18px; }
.teaser-head h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 36px; margin: 8px 0 6px; line-height: 1; }
.teaser-head .sub { margin: 0; color: #dfe8f4; max-width: 40ch; }
.teaser-map { position: relative; display: block; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #0a1730; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.teaser-map img { display: block; width: 100%; height: auto; transition: transform 0.6s ease; }
.teaser-map:hover img, .teaser-map:focus-visible img { transform: scale(1.025); }
.tpin { position: absolute; transform: translate(-50%, -100%); width: 32px; height: 32px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: rgba(9,20,44,0.92); border: 1.5px solid rgba(255,255,255,0.85); color: #fff; display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.tpin::after { content: attr(data-l); rotate: 45deg; font-size: 17px; line-height: 1; }
.teaser-cta { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; padding: 12px 22px; border-radius: 999px; background: rgba(9,22,48,0.82); border: 1px solid rgba(241,215,154,0.75); color: var(--gold-2); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.teaser-cta i { font-style: normal; margin-left: 6px; }

/* ---- 2 · market ---- */
.screen-market { background: #0b1730; }
.market-head { position: relative; padding: 156px 18px 26px; }
.market-head .bg { background-position: center 60%; }
.market-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,14,32,0.85) 0%, rgba(6,14,32,0.4) 45%, rgba(11,23,48,1) 100%); }
.market-head > *:not(.bg) { position: relative; z-index: 2; }
.back { background: none; border: 0; color: #fff; padding: 0; margin-bottom: 18px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.market-head h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 38px; margin: 8px 0 6px; line-height: 1; }
.market-head .sub { margin: 0; max-width: 32ch; color: #dfe8f4; }

.map-wrap { position: relative; padding: 0 0 26px; }
.map-scroll { position: relative; margin: 0 12px; height: 72vh; max-height: 640px; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; background: #0a1730; box-shadow: 0 16px 40px rgba(0,0,0,0.5); scrollbar-width: none; overscroll-behavior: contain; }
.map-scroll[data-zoom="0"] { height: auto; overflow: hidden; }
.map-scroll::-webkit-scrollbar { display: none; }
#market-map { width: 100%; height: auto; display: block; }
.zoom { position: absolute; top: 12px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(9,22,48,0.85); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.map-hint { margin: 10px 18px 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }

.street { font-family: "Jost", sans-serif; font-weight: 500; letter-spacing: 3px; fill: rgba(255,255,255,0.75); text-transform: uppercase; }
.stall { cursor: pointer; outline: none; }
.stall .badge rect { fill: rgba(9,20,44,0.88); stroke: rgba(255,255,255,0.6); stroke-width: 2; }
.stall .badge path { fill: rgba(9,20,44,0.9); }
.stall .badge text { font-family: "Jost", sans-serif; font-size: 25px; font-weight: 600; fill: #fff; letter-spacing: 0.02em; }
.stall:hover .badge rect, .stall:focus .badge rect { stroke: var(--gold-2); stroke-width: 3; }
.stall .hut-glow { opacity: 0; transition: opacity 0.3s; }
.stall.picked .hut-glow { opacity: 0.6; }
.stall.solved .hut-glow { opacity: 1; }
.stall.picked .badge rect, .stall.picked .badge path { fill: var(--gold); stroke: #fff; }
.stall.picked .badge text { fill: #1b1405; }
.stall.solved .badge rect, .stall.solved .badge path { fill: #3fd6b6; stroke: #fff; stroke-width: 3; }
.stall.solved .badge text { fill: #062420; }
.stall.solved .hut-glow { animation: solved-glow 1.6s ease-in-out infinite alternate; }
@keyframes solved-glow { to { opacity: 0.55; } }
.area-pin { cursor: pointer; outline: none; }
.area-pin path { fill: rgba(9,20,44,0.92); stroke: rgba(255,255,255,0.8); stroke-width: 2; }
.area-pin:hover path, .area-pin:focus path { stroke: var(--gold-2); }
.pin-letter { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; fill: #fff; }
.pin-sub { font-family: "Jost", sans-serif; font-size: 8.5px; letter-spacing: 1.5px; fill: rgba(255,255,255,0.8); }
.map-scroll[data-zoom="0"] .badge { display: none; }
.map-scroll:not([data-zoom="0"]) .area-pins { display: none; }
.map-scroll[data-zoom="0"] .street { font-size: 22px; }
.facility .wc { font-family: "Jost", sans-serif; font-size: 10px; font-weight: 600; fill: #fff; }
.fairy .bulb1 { animation: twinkle 2.4s ease-in-out infinite alternate; }
.fairy .bulb2 { animation: twinkle 3.2s ease-in-out infinite alternate-reverse; }
.tree-light:nth-child(3n) { animation: twinkle 1.8s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 0.35; } }
.smoke { animation: smoke 5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes smoke { 50% { transform: translateY(-4px) scaleY(1.1); opacity: 0.15; } }

.sheet-hours { margin: -6px 0 12px !important; font-size: 12.5px; letter-spacing: 0.04em; color: var(--mist) !important; }
.sheet-thumbs { display: flex; gap: 8px; margin-bottom: 16px; }
.sheet-thumbs button { width: 64px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; }
.sheet-thumbs button.on { border-color: var(--gold); }
.sheet-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.solved-banner { display: none; margin: 0 18px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(63,214,182,0.14); border: 1px solid rgba(63,214,182,0.5); align-items: center; gap: 12px; }
.solved-banner .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #06231d; font-weight: 700; }
.solved-banner p { margin: 0; font-size: 14px; }
body[data-result="hit"] .solved-banner { display: flex; }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto; background: #0d1d3d; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,0.5); transform: translateY(105%); transition: transform 0.35s ease; overflow: hidden; }
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.5); color: #fff; font-size: 24px; cursor: pointer; }
.sheet { max-height: 100vh; max-height: 100svh; overflow-y: auto; }
.sheet-photo { aspect-ratio: 4 / 3; max-height: 52vh; max-height: 52svh; overflow: hidden; background: #0a1730; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.sheet-body { padding: 16px 20px 26px; }
.sheet-ref { margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); }
.sheet-body h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 30px; margin: 4px 0 6px; line-height: 1.05; }
.sheet-body p { margin: 0 0 16px; color: #dfe8f4; }
.use-ref { width: 100%; height: 52px; border-radius: 12px; border: 0; background: #fbf8ee; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; }

/* ---- 3 · confirmed ---- */
.screen-confirmed .bg { background-position: 50% 0; background-size: auto 62%; background-repeat: no-repeat; background-color: #07122a; }
.screen-confirmed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,14,32,0.25) 0%, rgba(6,14,32,0.15) 30%, rgba(7,18,42,0.95) 62%); }
.confirmed-card { position: relative; z-index: 2; margin: 170px 18px 30px; padding: 26px 20px 20px; text-align: center; border-color: rgba(63,214,182,0.45); }
.ring { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; box-shadow: 0 0 30px rgba(63,214,182,0.45), inset 0 0 20px rgba(63,214,182,0.25); animation: ring-in 0.8s cubic-bezier(.2,1.4,.4,1); }
.ring span { font-size: 40px; color: var(--teal); }
@keyframes ring-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.confirmed-card .kicker::after { display: none; }
.big-ref { margin: 6px 0 12px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 78px; line-height: 1; color: #fff; text-shadow: 0 0 26px rgba(241,215,154,0.6); animation: pop 0.6s 0.2s both; }
.confirmed-copy { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fbf8ee; color: #0f6b2f; font-weight: 500; text-align: left; }
.gold-btn { width: 100%; height: 54px; border-radius: 12px; border: 1px solid var(--gold); background: linear-gradient(180deg, #5a4420, #3a2c14); color: var(--gold-2); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }

/* ---- 4 · payoff ---- */
.screen-payoff { display: none; padding: 128px 18px 30px; background: #120c07; }
body[data-screen="payoff"] .screen-payoff { display: flex; flex-direction: column; justify-content: flex-end; }
.desk-bg { background-image: url(assets/desk-portrait.jpg); background-position: 50% 0; }
.screen-payoff::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0) 18%, rgba(10,8,6,0) 50%, rgba(10,8,6,0.25) 100%); }
.screen-payoff .note { width: 100%; max-width: 380px; margin: 0 auto 6px; box-shadow: 0 30px 50px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.35); }
.note { position: relative; z-index: 2; padding: 26px 22px 30px; border-radius: 6px; color: #2a2118; transform: rotate(-1.5deg);
  background: #f6eedb linear-gradient(180deg, rgba(255,255,255,0.4), rgba(0,0,0,0.04)); box-shadow: 0 24px 50px rgba(0,0,0,0.55); animation: note-in 0.9s ease-out; }
@keyframes note-in { from { transform: translateY(40px) rotate(-5deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
.note-lion { width: 34px; display: block; }
.note-kicker { margin: 6px 0 14px; font-family: "Cormorant Garamond", serif; font-weight: 600; letter-spacing: 0.18em; color: #1d84cc; font-size: 14px; }
.note-hand { margin: 0; font-family: "Parisienne", cursive; font-size: 34px; color: #23314f; }
.note-big { margin: 6px 0 12px; font-family: "Cormorant Garamond", serif; font-size: 34px; line-height: 1.05; font-weight: 600; }
.note-big em { font-weight: 500; color: #7b4a45; }
.note-small { margin: 0 0 20px; font-size: 15px; }
.note-sign { margin: 0; font-family: "Parisienne", cursive; font-size: 30px; color: #23314f; }
.note-role { margin: 0; padding-right: 80px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6a5a48; }
.seal { position: absolute; right: 18px; bottom: 22px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c8413f, #8e1f22); box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 -4px 8px rgba(0,0,0,0.3); transform: rotate(12deg); }
.seal img { width: 30px; opacity: 0.75; }

/* ---- footer ---- */
.foot { padding: 20px 18px 28px; text-align: center; font-size: 12.5px; color: var(--mist); background: #071027; border-top: 1px solid rgba(255,255,255,0.08); }
.foot p { margin: 0 0 6px; }
.foot b { color: #fff; font-weight: 500; }

@media (min-width: 760px) {
  .hero .bg { background-image: url(assets/hero-wide.jpg); background-size: cover; background-position: 50% 40%; }
  .hero::before { background: linear-gradient(90deg, rgba(6,14,32,0.7) 0%, rgba(6,14,32,0.35) 28%, rgba(6,14,32,0) 50%), linear-gradient(180deg, rgba(6,14,32,0.6) 0%, rgba(6,14,32,0) 26%, rgba(6,14,32,0) 70%, rgba(6,14,32,0.5) 100%); }
  .arrive-inner { padding: 150px 48px 0; }
  .intro { max-width: 32ch; }
  .arrive-inner h1 { font-size: 64px; }
  .intro { font-size: 20px; }
  .form-card { margin-bottom: 8px; }
  .teaser { padding: 56px 32px 64px; }
  .teaser-head h2 { font-size: 46px; }
  .confirmed-card { max-width: 480px; margin-left: auto; margin-right: auto; }
  .desk-bg { background-image: url(assets/desk-wide.jpg); background-position: 50% 50%; }
  .screen-payoff { justify-content: flex-end; align-items: flex-end; padding: 150px 6vw 7vh; }
  .screen-payoff .note { max-width: 420px; margin: 0 4vw 0 0; transform: rotate(-3deg); }
  .map-scroll { max-width: 1100px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .snow, .fairy circle, .tree-light, .smoke, .stall.solved .hut-glow, .spinner { animation: none !important; }
  .screen, .note, .ring, .big-ref, .so-close, .form-card.shake, .scroll-cue i { animation: none !important; }
}

/* ---- confirmed stall card ---- */
.sheet-body { position: relative; }
.reveal-stamp { display: none; position: absolute; top: -30px; right: 18px; z-index: 3; padding: 6px 12px; border: 3px solid #3fd6b6; border-radius: 6px; background: rgba(6,24,32,0.85); color: #3fd6b6; font-family: "Jost", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.1; text-align: center; transform: rotate(-6deg); }
.reveal-stamp small { font-size: 10px; letter-spacing: 0.18em; }
.reveal-btn { display: none; }
.sheet[data-mode="reveal"] .reveal-stamp { display: block; animation: stamp-in 0.4s cubic-bezier(.2,1.4,.4,1); }
.sheet[data-mode="reveal"] .reveal-btn { display: block; }
.sheet[data-mode="reveal"] .use-ref { display: none; }
.sheet[data-mode="reveal"] .sheet-ref { color: #3fd6b6; }
.sheet[data-mode="reveal"] { box-shadow: 0 -20px 60px rgba(63,214,182,0.25), 0 -20px 50px rgba(0,0,0,0.5); }
.sheet[data-mode="reveal"] .sheet-photo { position: relative; }
.sheet[data-mode="reveal"] .sheet-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(255,214,120,0.35), transparent 60%); }
.sheet[data-mode="moved"] .sheet-ref::after { content: " · Moved"; color: var(--gold-2); }
@keyframes stamp-in { from { transform: rotate(-6deg) scale(1.8); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }

.stall.solved .hut-glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal-stamp { animation: none !important; } }
.stall .hut-ring { fill: none; stroke: #3fd6b6; stroke-width: 6; opacity: 0; }
.stall.solved .hut-ring { opacity: 1; filter: drop-shadow(0 0 10px #3fd6b6); animation: ring-pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .stall.solved .hut-ring { animation: none !important; } }

/* short phones (iPhone SE and similar): keep the question, box and Submit on the first screen */
@media (max-width: 759px) and (max-height: 700px) {
  .mark img { width: 34px; }
  .mark-text b { font-size: 17px; }
  .top nav { padding-top: 8px; margin-top: 4px; gap: 14px; }
  .arrive-inner { padding-top: 124px; }
  .hero::before { background: linear-gradient(180deg, rgba(6,14,32,0.85) 0%, rgba(6,14,32,0.72) 30%, rgba(6,14,32,0.25) 46%, rgba(6,14,32,0.05) 60%, rgba(6,14,32,0.55) 100%); }
  .arrive-inner h1 { font-size: 31px; margin: 6px 0 8px; }
  .intro { font-size: 14.5px; line-height: 1.25; }
  .form-card { padding: 14px 16px 16px; }
  #mystery-form p { font-size: 17px; margin-bottom: 10px; }
  #stall-input, #mystery-form button { height: 44px; }
  #mystery-form button { margin-top: 10px; }
  .scroll-cue { margin-top: 10px; }
  .sheet-photo { max-height: 34vh; max-height: 34svh; }
  .sheet-body { padding: 12px 18px 18px; }
  .sheet-body h3 { font-size: 26px; }
  .confirmed-card { margin-top: 112px; padding: 18px 16px 16px; }
  .ring { width: 60px; height: 60px; margin-bottom: 8px; }
  .ring span { font-size: 30px; }
  .big-ref { font-size: 54px; margin-bottom: 8px; }
  .screen-payoff { padding-top: 112px; }
  .note { padding: 18px 18px 22px; }
  .note-hand { font-size: 28px; }
  .note-big { font-size: 27px; }
  .seal { width: 56px; height: 56px; }
}
