﻿/* Prompt to Profit loot portal. Look follows poster 06: navy ink, pastel sky, green candles, gold coins. */
:root {
  --navy: #14213d;
  --navy-2: #1f2f55;
  --red: #df2935;
  --yellow: #ffbc13;
  --orange: #e38330;
  --green: #3fd14a;
  --green-d: #1f9e3a;
  --sky: #cfe7ff;
  --paper: #f7fbff;
  --glass: rgba(255, 255, 255, .78);
  --px: 'Silkscreen', monospace;
  --serif: 'Instrument Serif', serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --step: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--sky); color: var(--navy); font-family: var(--sans); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.tri { display: inline-block; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; vertical-align: 1px; }
.hearts { color: var(--red); letter-spacing: .02em; }
.y { color: var(--yellow); }
.kicker { font-family: var(--px); font-size: 14px; letter-spacing: .14em; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- HUD ---------- */
.hud { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px; background: rgba(247, 251, 255, .82); backdrop-filter: blur(10px); border-bottom: 3px solid var(--navy);
  font-family: var(--px); font-size: 14px; letter-spacing: .1em; }
.hud-logo img { height: 30px; }
.hud-mid { display: flex; align-items: center; gap: 10px; }
.hud-right { display: flex; align-items: center; gap: 14px; }
.loot-count { display: flex; align-items: center; gap: 8px; }
.loot-count img { width: 20px; image-rendering: auto; }
.loot-count b { font-weight: 700; }
.hud-btn { font-family: var(--px); font-size: 12px; letter-spacing: .1em; padding: 6px 10px; border: 2px solid var(--navy); background: #fff; }
.hud-btn:hover { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--px); font-weight: 700; font-size: 18px; letter-spacing: .1em;
  padding: 16px 26px; color: var(--navy); text-decoration: none; border: 3px solid var(--navy); clip-path: var(--step);
  box-shadow: inset 0 -6px 0 rgba(20, 33, 61, .22), inset 0 4px 0 rgba(255, 255, 255, .5); transition: transform .08s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(20, 33, 61, .22); }
.btn-yellow { background: var(--yellow); }
.btn-green { background: var(--green); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-sm { font-size: 14px; padding: 10px 16px; gap: 10px; }
.btn:disabled { filter: grayscale(1); opacity: .6; cursor: wait; }
.link-btn { margin-top: 10px; font-family: var(--px); font-size: 11px; letter-spacing: .1em; text-decoration: underline; opacity: .55; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 58px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  padding: 48px 6vw 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url(art/sky.webp) center / cover no-repeat, linear-gradient(#8cc4ff, var(--sky)); }
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--sky)); }
.lockup { line-height: .8; margin: 18px 0 10px; font-weight: 400; }
.lockup .px { display: block; font-family: var(--px); font-weight: 700; font-size: clamp(54px, 9.6vw, 138px); letter-spacing: .01em; }
.lockup .row2 { display: block; margin-top: -.06em; }
.lockup .to { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6vw, 84px); margin-right: 10px; }
.lockup .pf { font-family: var(--serif); font-size: clamp(80px, 13vw, 176px); letter-spacing: -.01em; }
.tag { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; }
.lede { max-width: 30em; margin: 22px 0 30px; font-size: 19px; }
.hero-art { position: relative; height: 560px; }
.hero-robot { position: absolute; width: min(400px, 80%); left: 50%; top: 50%; transform: translate(-50%, -50%); animation: bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 30px 30px rgba(20, 33, 61, .18)); }
@keyframes bob { 50% { transform: translate(-50%, calc(-50% - 16px)); } }
.hero-coin { position: absolute; width: 64px; animation: spin 2.2s steps(8) infinite, float 3s ease-in-out infinite; }
.hero-coin.c1 { left: 6%; top: 14%; }
.hero-coin.c2 { right: 4%; top: 32%; width: 48px; animation-delay: -.6s, -1s; }
.hero-coin.c3 { left: 18%; bottom: 10%; width: 40px; animation-delay: -1.2s, -2s; }
@keyframes spin { 0%, 100% { scale: 1 1; } 50% { scale: .25 1; } }
@keyframes float { 50% { translate: 0 -14px; } }
.bubble { position: absolute; right: 2%; top: 6%; background: #fff; border: 3px solid var(--navy); padding: 10px 14px; clip-path: var(--step);
  font-family: var(--px); font-size: 13px; letter-spacing: .06em; line-height: 1.4; }

/* ---------- Map ---------- */
.map { position: relative; padding: 40px 6vw 90px; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1; margin: 10px 0 12px; }
.sub { font-size: 18px; opacity: .85; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; min-height: 560px; }
.level { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.level .wick { width: 10px; height: 40px; background: var(--green-d); }
.level .body { position: relative; width: 100%; max-width: 190px; padding: 22px 14px 20px; border: 3px solid var(--navy); clip-path: var(--step);
  background: linear-gradient(90deg, #5fe36a, var(--green) 45%, var(--green-d)); color: var(--navy);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), inset 6px 0 0 rgba(255, 255, 255, .35); }
.level .num { font-family: var(--px); font-weight: 700; font-size: 34px; line-height: 1; }
.level .name { font-family: var(--serif); font-size: 26px; line-height: 1; margin: 6px 0 12px; }
.level .status { font-family: var(--px); font-size: 11px; letter-spacing: .1em; background: var(--navy); color: #fff; padding: 6px 8px; display: inline-block; }
.level .chest-btn { position: relative; width: 120px; margin-bottom: -6px; transition: transform .15s; }
.level .chest-btn img { width: 100%; filter: drop-shadow(0 10px 10px rgba(20, 33, 61, .2)); }
.level .robot-here { position: absolute; width: 70px; left: -80px; bottom: 0; animation: hop .9s ease-in-out infinite; pointer-events: none; }
@keyframes hop { 50% { translate: 0 -10px; } }
.level.live .chest-btn { animation: wiggle 2.6s ease-in-out infinite; }
.level.live .chest-btn:hover { transform: scale(1.08) rotate(-2deg); }
@keyframes wiggle { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -6deg; } 88% { rotate: 6deg; } 92% { rotate: -4deg; } 96% { rotate: 3deg; } }
.level.live .status { background: var(--red); animation: blink 1.2s steps(1) infinite; }
.level.done .status { background: var(--yellow); color: var(--navy); }
.level.done .body { cursor: pointer; }
.level.later .body { background: linear-gradient(90deg, #c9d3e3, #aab6cc 45%, #8e9bb5); }
.level.later .wick { background: #8e9bb5; }
.level.later .chest-btn { filter: grayscale(.9) brightness(.9); cursor: not-allowed; }
.level .quest-tag { margin-top: 10px; font-size: 14px; line-height: 1.3; }
.level .q-btn { margin-top: 12px; }
.lock-bubble { position: absolute; top: -8px; right: 8px; font-family: var(--px); font-size: 22px; }

/* ---------- Screens: home, team, levels (one shows at a time) ---------- */
.screen:not(.on) { display: none !important; }
.map { min-height: calc(100vh - 58px); }
.team-screen { position: relative; min-height: calc(100vh - 58px); padding: 28px 6vw 80px;
  background: url(art/sky.webp) center / cover no-repeat, linear-gradient(#8cc4ff, var(--sky)); }
.team-page { width: min(820px, 100%); margin: 0 auto; }
.team-page .quest-card { max-height: none; overflow: visible; }
.team-screen h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1; margin: 8px 0 18px; }
.back-link { display: inline-block; margin: 0 0 14px; font-family: var(--px); font-size: 12px; letter-spacing: .08em; }

/* ---------- Loot popup ---------- */
.quest-card.loot-pop { width: min(1080px, 100%); padding: 0; text-align: left; }
.loot-pop .loot-card { border: 0; clip-path: none; background: none; backdrop-filter: none; }
.quest .loot-pop .step h3 { font-family: var(--px); font-size: 18px; letter-spacing: .06em; line-height: 1.2; margin: 6px 0 12px; }
.loot-card { background: var(--glass); backdrop-filter: blur(8px); border: 3px solid var(--navy); clip-path: var(--step); padding: 34px clamp(18px, 4vw, 48px); }
.loot-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 3px dashed rgba(20, 33, 61, .25); }
.loot-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-top: 8px; }
.loot-head .build { margin-top: 8px; font-size: 18px; }
.tabs { display: flex; border: 3px solid var(--navy); }
.tabs button { font-family: var(--px); font-size: 13px; letter-spacing: .08em; padding: 10px 14px; }
.tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tabs-note { font-size: 13px; opacity: .7; margin-top: 6px; text-align: right; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.step { background: #fff; border: 3px solid var(--navy); padding: 22px; position: relative; }
.step.wide { grid-column: 1 / -1; }
.step-n { position: absolute; top: -16px; left: 18px; background: var(--yellow); border: 3px solid var(--navy); font-family: var(--px); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; padding: 3px 10px; }
.step h3 { font-family: var(--px); font-size: 18px; letter-spacing: .06em; margin: 6px 0 12px; }
.sprites { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.sprite { width: 104px; text-align: center; font-size: 12px; font-family: var(--px); letter-spacing: .04em; word-break: break-all; }
.sprite .box { height: 104px; display: grid; place-items: center; padding: 8px; border: 2px solid var(--navy);
  background: repeating-conic-gradient(#e9eef6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.sprite img { max-height: 86px; object-fit: contain; }
.how { padding-left: 22px; }
.how li { margin: 6px 0; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #eef3fb; padding: 1px 5px; }
.prompt-box { position: relative; margin-top: 4px; }
.prompt-box pre { max-height: 360px; overflow: auto; background: var(--navy); color: #e8efff; padding: 22px; font: 14px/1.55 ui-monospace, Consolas, monospace;
  white-space: pre-wrap; border: 3px solid var(--navy); }
.prompt-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.checks { list-style: none; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.checks input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 2px; border: 3px solid var(--navy); background: #fff; display: grid; place-items: center; }
.checks input:checked { background: var(--green); }
.checks input:checked::after { content: ""; width: 8px; height: 8px; background: var(--navy); }
.fixes { list-style: none; display: grid; gap: 10px; }
.fixes li { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #eef3fb; padding: 10px 12px; font-size: 15px; }
.fixes button { flex: none; font-family: var(--px); font-size: 11px; letter-spacing: .08em; border: 2px solid var(--navy); padding: 5px 8px; background: #fff; }
.fixes button:hover { background: var(--yellow); }

/* ---------- Footer ---------- */
.footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--navy); color: #fff; padding: 20px 28px; font-family: var(--px); font-size: 14px; letter-spacing: .1em; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--green) 0 16px, var(--yellow) 16px 32px); }
.footer img { height: 26px; }

/* ---------- Quest screen ---------- */
.quest { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 33, 61, .72); backdrop-filter: blur(6px); }
.quest[hidden] { display: none; }
.quest-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border: 4px solid var(--navy);
  clip-path: var(--step); padding: 34px clamp(18px, 4vw, 40px); text-align: center; animation: pop .25s steps(4); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.quest-x { position: absolute; top: 14px; right: 16px; font-size: 20px; width: 36px; height: 36px; border: 2px solid var(--navy); background: #fff; z-index: 2; }
.quest h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1; margin: 8px 0 18px; }
.brief-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; text-align: left; margin-bottom: 26px; }
.chest { width: 100%; }
.q-text { font-size: 19px; }
.q-rules { list-style: none; margin-top: 12px; }
.q-rules li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.dot { width: 10px; height: 10px; background: var(--red); flex: none; }
.fine { margin-top: 14px; font-size: 13px; opacity: .7; }
.scan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-right: 52px; gap: 12px; }
.rec { font-family: var(--px); font-size: 12px; color: var(--red); animation: blink 1s steps(1) infinite; }
.cam { position: relative; aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; }
.cam video, .cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.guide { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -45%); fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: .25; stroke-dasharray: .6 .4; pointer-events: none; transition: .2s; }
.cam.close .guide { stroke: var(--yellow); }
.cam.locked .guide { fill: rgba(223, 41, 53, .45); stroke: var(--red); stroke-dasharray: none; }
.corner { position: absolute; width: 26px; height: 26px; border: 5px solid var(--yellow); }
.corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 16px 0; }
.meter span { height: 22px; border: 3px solid var(--navy); background: #fff; transition: background .1s; }
.meter span.on { background: var(--red); }
.hint-row { display: flex; align-items: center; gap: 14px; text-align: left; }
.hint-row img { width: 58px; }
.hint { flex: 1; background: #fff; border: 3px solid var(--navy); padding: 10px 14px; font-family: var(--px); font-size: 14px; letter-spacing: .05em; min-height: 48px; }
.win { position: relative; }
.win > *:not(.rays) { position: relative; }
.rays { position: absolute; left: 50%; top: 150px; width: 700px; height: 700px; margin: -350px 0 0 -350px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 188, 19, .28) 0 10deg, transparent 10deg 20deg); border-radius: 50%;
  mask: radial-gradient(closest-side, #000 30%, transparent); animation: rot 12s linear infinite; }
@keyframes rot { to { rotate: 360deg; } }
.chest.big { width: 260px; margin: 0 auto 8px; animation: shake .5s steps(5) 1; }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 4px 0; } }
.win-art { position: relative; width: 260px; margin: 0 auto; }
.win-art .cheer { position: absolute; width: 130px; right: -120px; bottom: 10px; animation: hop .6s ease-in-out infinite; }
.win .kicker.y { color: var(--orange); }
.win .q-text { margin-bottom: 22px; }

/* coin burst + toast */
.fly-coin { position: fixed; z-index: 60; width: 34px; pointer-events: none; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%); background: var(--navy); color: #fff; border: 3px solid var(--yellow);
  font-family: var(--px); font-size: 14px; letter-spacing: .08em; padding: 12px 18px; transition: transform .2s steps(3); }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hud { padding: 10px 16px; }
  .hud-mid { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 16px 40px; min-height: 0; }
  .hero-art { height: 300px; order: -1; }
  .hero-robot { width: 220px; }
  .hud-btn { white-space: nowrap; }
  .bubble { right: 0; }
  .map, .team-screen { padding-left: 16px; padding-right: 16px; }
  .track { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
  .level { flex-direction: row; gap: 14px; align-items: center; text-align: left; }
  .level .wick { display: none; }
  .level .chest-btn { width: 96px; flex: none; margin: 0; }
  .level .body { max-width: none; margin: 0 !important; }
  .level .robot-here { left: -6px; bottom: auto; top: -36px; width: 52px; }
  .steps { grid-template-columns: 1fr; }
  .brief-row { grid-template-columns: 1fr; text-align: center; }
  .brief-row .chest { width: 150px; margin: 0 auto; }
  .q-rules li { justify-content: center; }
  .footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- team quests ---------- */
.team-tag { display: inline-block; margin-top: 12px; background: var(--navy); color: var(--yellow); font-family: var(--px); font-size: 12px; letter-spacing: .1em; padding: 5px 9px; }
.target { color: var(--red); }
.cam[hidden] { display: none; }
.cam.close .corner { border-color: #fff; }
.cam.locked .corner { border-color: var(--red); }
.beat { padding: 26px 18px; background: var(--navy); color: #fff; display: grid; gap: 22px; justify-items: center; }
.beat[hidden] { display: none; }
.beat-cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; width: 100%; max-width: 560px; }
.beat-cells span { aspect-ratio: 1; border: 3px solid #4a5a80; background: transparent; position: relative; transition: background .06s; }
.beat-cells span.hit { border-color: var(--yellow); }
.beat-cells span.hit::after { content: ""; position: absolute; inset: 30%; background: var(--yellow); }
.beat-cells span.now { background: rgba(255, 188, 19, .35); }
.beat-cells span.now.hit { background: var(--yellow); }
.beat-cells span.heard { box-shadow: inset 0 0 0 6px var(--green); }
.beat-cells span.good { background: var(--green); border-color: var(--green); }
.beat-cells span.miss { background: var(--red); border-color: var(--red); }
.beat-rounds { font-family: var(--px); font-size: 26px; letter-spacing: .3em; color: #4a5a80; }
.beat-rounds .on { color: var(--red); }

/* backup key: a question instead of the quest */
.bk-open { display: block; margin: 14px auto 0; font-family: var(--px); font-size: 12px; letter-spacing: .08em; padding: 9px 14px; border: 3px solid var(--navy); background: var(--yellow); }
.bk-open[hidden] { display: none; }
.bk-open:hover { background: #fff; }
.bk-q { font-size: clamp(20px, 3vw, 26px); font-weight: 700; max-width: 560px; margin: 0 auto; }
.bk-form { display: flex; gap: 12px; align-items: end; max-width: 520px; margin: 22px auto 0; text-align: left; }
.bk-form .field { flex: 1; margin: 0; }
.bk-sep { opacity: .4; margin: 0 6px; }
@media (max-width: 560px) { .bk-form { flex-direction: column; align-items: stretch; } }

/* ---------- team photo: flash + GOTCHA sticker, and the polaroid on the win screen ---------- */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: shutter .55s ease-out; }
@keyframes shutter { 0% { opacity: .95; } 100% { opacity: 0; } }
.gotcha { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; }
.gotcha[hidden] { display: none; }
.cam-load { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; background: var(--navy); }
.cam-load[hidden] { display: none; }
.cam-load i { width: 16px; height: 16px; background: var(--yellow); animation: camload .9s steps(2) infinite; }
.cam-load i:nth-child(2) { animation-delay: .15s; } .cam-load i:nth-child(3) { animation-delay: .3s; }
@keyframes camload { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-16px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cam-load i { animation: none; } }
.gotcha img { width: 34%; max-width: 150px; filter: drop-shadow(4px 4px 0 var(--navy)); }
.gotcha b { font-family: var(--px); font-size: clamp(30px, 8vw, 54px); letter-spacing: .06em; color: var(--yellow); -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--red); }
.gotcha.pop { animation: gotcha 1.7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes gotcha { 0% { transform: scale(0) rotate(-14deg); opacity: 0; } 18% { transform: scale(1.15) rotate(-5deg); opacity: 1; } 30% { transform: scale(1) rotate(-3deg); } 82% { transform: scale(1) rotate(-3deg); opacity: 1; } 100% { transform: scale(.9) rotate(-3deg); opacity: 0; } }
.polaroid-win { margin: 0 auto 14px; max-width: 340px; transform: rotate(-2.5deg); animation: develop 1.1s ease-out both; }
.polaroid-win[hidden] { display: none; }
.polaroid-win img { display: block; width: 100%; box-shadow: 6px 6px 0 var(--navy); border: 3px solid var(--navy); }
.polaroid-win figcaption { font-size: 13px; opacity: .8; margin-top: 8px; }
@keyframes develop { 0% { transform: translateY(-30px) rotate(-8deg); opacity: 0; filter: brightness(2.2) saturate(0); } 100% { transform: rotate(-2.5deg); opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .flash.go, .gotcha.pop, .polaroid-win { animation: none; } .gotcha.pop { opacity: 1; } }

/* ---------- backup key: three in a row ---------- */
.bk-steps { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.bk-steps span { width: 46px; height: 12px; border: 3px solid var(--navy); background: #fff; }
.bk-steps span.done { background: var(--green, #3fd14a); }
.bk-steps span.now { background: var(--yellow); }
.bk-rule { max-width: 460px; margin: 0 auto 6px; }
