/* V7 · The Collector's Edition. Premium, adult, warm: cream, light oak, ink; LEGO colour as accents. */
:root {
  --cream: #f4ede1; --paper: #fbf8f2; --oak: #c99b6a; --oak-d: #9a6b3e; --ink: #14181f; --ink-2: #3a414c; --muted: #7a7266;
  --red: #c91a09; --yellow: #f2cd37; --blue: #0055bf; --green: #237841; --orange: #fe8a18; --azure: #36aebf; --gold: #b8892f;
  --dark-blue: #0a3463; --dark-red: #720e0f; --sand-blue: #6074a1;
  --jhully: #8a4b23; --lizzie: #0a3463;
  --fh: "Nunito Sans", system-ui, sans-serif; --fn: "Rubik", system-ui, sans-serif; --fd: "Fredoka", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--cream); color: var(--ink); font-family: var(--fh); }
#viewport { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #fffaf1, var(--cream) 60%, #e9dcc6); }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; }
.plane { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 960px 540px; will-change: transform; }
#ui { position: absolute; inset: 0; pointer-events: none; }
#ui * { pointer-events: none; }
#ui button, #ui input, #ui label { pointer-events: auto; }

/* ---------- the box ---------- */
.box-wrap { position: absolute; left: 960px; top: 560px; width: 0; height: 0; perspective: 2200px; }
.box { position: absolute; left: -640px; top: -400px; width: 1280px; height: 800px; transform-style: preserve-3d; }
.tray { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(#efe4d1, #e2d3b8); box-shadow: inset 0 0 0 14px #d6c4a4, inset 0 30px 60px rgba(90,60,20,.25), 0 50px 90px rgba(60,40,10,.3); }
.bagslot { position: absolute; }
.lid { position: absolute; inset: -6px; border-radius: 12px; overflow: hidden; background: var(--ink); color: #fff;
  box-shadow: 0 50px 100px rgba(40,25,5,.35), inset 0 0 0 1px rgba(255,255,255,.08); transform-origin: 50% 0; }
.lid .stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: flex; }
.lid .stripe i { flex: 1; }
.lid .art { position: absolute; right: 40px; bottom: 40px; height: 470px; display: flex; align-items: flex-end; gap: 10px; }
.lid .art img { height: 100%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.5)); }
.lid .art img + img { height: 92%; }
.lid .glow { position: absolute; right: -100px; top: -200px; width: 1000px; height: 1000px; background: radial-gradient(closest-side, rgba(242,205,55,.22), rgba(242,205,55,0)); }
.lid .kicker { position: absolute; left: 80px; top: 80px; font: 800 18px var(--fh); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lid h1 { position: absolute; left: 76px; top: 190px; margin: 0; width: 680px; font: 900 96px/0.95 var(--fh); letter-spacing: -.02em; }
.lid h1 em { font-style: normal; color: var(--yellow); }
.lid .q { position: absolute; left: 80px; top: 430px; width: 560px; font: 600 34px/1.25 var(--fh); color: rgba(255,255,255,.82); }
.lid .age { position: absolute; left: 80px; top: 470px; display: flex; align-items: baseline; gap: 10px; }
.lid .age b { font: 700 64px var(--fn); }
.lid .age span { font: 800 15px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.lid .facts { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; display: flex; align-items: center; gap: 56px; padding: 0 80px; background: #0d1015; }
.lid .facts div { display: grid; gap: 4px; }
.lid .facts b { font: 700 34px var(--fn); }
.lid .facts span { font: 800 13px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.open-btn { position: absolute; left: 50%; top: 950px; transform: translateX(-50%); font: 800 24px var(--fh); letter-spacing: .04em; color: var(--ink);
  background: var(--yellow); border: 0; border-radius: 40px; padding: 18px 44px; cursor: pointer; box-shadow: 0 10px 0 #c4a21f, 0 20px 30px rgba(60,40,10,.25); }
.open-btn:active { transform: translate(-50%, 6px); box-shadow: 0 4px 0 #c4a21f; }
.open-btn:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

/* ---------- numbered bags ---------- */
.bag { position: absolute; width: 300px; height: 380px; border-radius: 16px 16px 22px 22px; overflow: hidden;
  background: linear-gradient(115deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.35) 30%, rgba(255,255,255,.6) 52%, rgba(255,255,255,.3) 70%, rgba(255,255,255,.65) 100%);
  box-shadow: 0 20px 40px rgba(60,40,10,.22), inset 0 0 0 2px rgba(255,255,255,.7); backdrop-filter: blur(2px); }
.bag::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 6px, rgba(220,210,190,.7) 6px 8px); }
.bag .num { position: absolute; left: 0; right: 0; top: 70px; text-align: center; font: 700 150px/1 var(--fn); color: var(--ink); opacity: .92; }
.bag .ttl { position: absolute; left: 20px; right: 20px; top: 240px; text-align: center; font: 800 26px/1.15 var(--fh); color: var(--ink-2); }
.bag .bits { position: absolute; left: 30px; right: 30px; bottom: 26px; height: 50px; }
.bag .bits i { position: absolute; width: 38px; height: 22px; border-radius: 4px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }

/* ---------- bricks and plates ---------- */
.brick { position: absolute; border-radius: 5px; box-shadow: inset 0 -7px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.28); }
.brick::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 11px; border-radius: 4px 4px 0 0;
  background: radial-gradient(ellipse 13px 10px at 50% 100%, var(--c) 99%, transparent 100%) 0 0 / var(--pitch, 34px) 11px repeat-x; filter: brightness(1.06); }
.plate { position: absolute; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.22), inset 0 2px 0 rgba(255,255,255,.35); }
.plate::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.15); }

/* ---------- the shelf (front view) ---------- */
.room { position: absolute; background-size: cover; background-position: center; filter: blur(4px) saturate(1.05); }
.shelf { position: absolute; height: 46px; border-radius: 3px; background: linear-gradient(180deg, #e2b886 0%, #c99b6a 35%, #a9784b 100%);
  box-shadow: 0 24px 34px rgba(80,50,20,.28), 0 2px 0 rgba(255,255,255,.4) inset; }
.shelf .top { position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: linear-gradient(#f0cfa3, #dcb27f); border-radius: 3px 3px 0 0; }
.shelf .led { position: absolute; left: 1%; right: 1%; top: 46px; height: 90px; background: linear-gradient(rgba(255,226,180,.55), rgba(255,226,180,0)); filter: blur(8px); }
.pool { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,238,205,.9), rgba(255,238,205,0)); }
.set { position: absolute; transform-origin: 50% 100%; filter: drop-shadow(0 16px 12px rgba(80,50,20,.3)); }
.plaque { position: absolute; transform: translateX(-50%); display: flex; gap: 14px; align-items: baseline; white-space: nowrap; padding: 9px 20px 10px;
  background: var(--paper); border-radius: 6px; box-shadow: 0 6px 14px rgba(80,50,20,.2); font: 800 23px var(--fh); color: var(--ink); }
.plaque b { font: 700 26px var(--fn); color: var(--ink); font-variant-numeric: tabular-nums; }
.plaque i { font-style: normal; font: 600 17px var(--fn); color: var(--muted); }
.callout { position: absolute; border: 4px dashed var(--ink-2); border-radius: 14px; }
.stamp { position: absolute; transform: translateX(-50%) rotate(-5deg); font: 700 26px var(--fn); letter-spacing: .22em; color: var(--red);
  border: 4px solid var(--red); border-radius: 8px; padding: 8px 18px 6px; background: rgba(251,248,242,.9); }
.qmark { position: absolute; font: 900 130px var(--fh); color: rgba(58,65,76,.55); }
.bokeh { position: absolute; border-radius: 40%; filter: blur(30px); opacity: .55; }
.leaf { position: absolute; border-radius: 50% 0; filter: blur(14px); opacity: .7; background: linear-gradient(135deg, #5f8a4c, #3d6a34); }

/* ---------- bubble ---------- */
.bubble { position: absolute; left: 0; top: 0; display: flex; gap: 14px; align-items: center; max-width: 560px; padding: 14px 26px 16px 14px; border-radius: 18px;
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 34px rgba(60,40,10,.22); border-left: 8px solid var(--c, var(--lizzie)); opacity: 0; pointer-events: none; z-index: 30; }
.bubble img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; box-shadow: 0 0 0 3px var(--c, var(--lizzie)); }
.bubble .who { display: block; font: 800 13px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: var(--c, var(--lizzie)); }
.bubble .txt { display: block; font: 800 28px/1.18 var(--fh); }
.bubble::after { content: ''; position: absolute; bottom: -16px; left: var(--tail, 60px); width: 30px; height: 18px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 25% 100%); }

/* ---------- the question & the race ---------- */
.headline { position: absolute; left: 0; right: 0; text-align: center; font: 900 76px/1.02 var(--fh); letter-spacing: -.015em; color: var(--ink); }
.headline .kicker { display: block; font: 800 18px var(--fh); letter-spacing: .3em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.card { position: absolute; width: 330px; height: 430px; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 50px rgba(60,40,10,.18); }
.card .pic { position: absolute; left: 20px; right: 20px; top: 20px; height: 270px; display: grid; place-items: end center; }
.card .pic img { max-width: 290px; max-height: 270px; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(80,50,20,.25)); }
.card .nm { position: absolute; left: 24px; right: 24px; top: 306px; font: 900 26px/1.1 var(--fh); }
.card .pcs { position: absolute; left: 24px; top: 344px; font: 700 22px var(--fn); color: var(--muted); }
.mystery { width: 200px; height: 240px; border-radius: 10px; background: linear-gradient(135deg, #2a2f38, #14181f); display: grid; place-items: center; color: rgba(255,255,255,.85);
  font: 900 120px var(--fh); box-shadow: 0 16px 20px rgba(0,0,0,.25); }
.pick { position: absolute; left: 24px; right: 24px; bottom: -34px; height: 60px; border: 0; border-radius: 12px; cursor: pointer; font: 800 20px var(--fh); color: #fff;
  background: var(--blue); box-shadow: 0 7px 0 #003b86; }
.pick:hover { filter: brightness(1.08); }
.pick.on { background: var(--yellow); color: var(--ink); box-shadow: 0 7px 0 #c4a21f; }
.timer { position: absolute; left: 50%; width: 520px; height: 8px; margin-left: -260px; border-radius: 4px; background: rgba(20,24,31,.12); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; }
.lane-name { position: absolute; font: 900 26px/1.05 var(--fh); text-align: right; }
.lane-name small { display: block; font: 600 17px var(--fn); color: var(--muted); }
.lane-thumb { position: absolute; display: grid; place-items: center; }
.lane-thumb img { max-width: 110px; max-height: 120px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(80,50,20,.25)); }
.lane-val { position: absolute; font: 700 30px var(--fn); font-variant-numeric: tabular-nums; }
.note { position: absolute; font: 600 18px/1.4 var(--fh); color: var(--muted); }
.note b { color: var(--ink-2); }
.winner { position: absolute; display: grid; gap: 6px; }
.winner .lbl { font: 800 22px var(--fh); color: var(--ink-2); }
.verdict { position: absolute; left: 50%; transform: translateX(-50%); font: 800 24px var(--fh); padding: 10px 22px; border-radius: 30px; background: var(--ink); color: #fff; white-space: nowrap; }

/* ---------- HUD ---------- */
#hud { position: fixed; left: 0; right: 0; top: 0; display: flex; padding: 16px 18px; z-index: 50; pointer-events: none; }
#hud .grow { flex: 1; }
.hud-btn { pointer-events: auto; font: 800 14px var(--fh); letter-spacing: .04em; height: 38px; padding: 0 16px; border-radius: 20px; border: 1px solid rgba(20,24,31,.18);
  background: rgba(251,248,242,.75); color: var(--ink); cursor: pointer; backdrop-filter: blur(8px); }
.hud-btn:hover { background: #fff; }
.hud-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
#progress { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 50; }
#progress i { width: 22px; height: 22px; border-radius: 50%; background: rgba(20,24,31,.12); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); transition: background .4s; }
#progress i.on { box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), inset 0 2px 0 rgba(255,255,255,.35); }

/* dolls (V6/js/rig.js) */
.rig { position: absolute; left: 0; top: 0; }
.rig .rig-body { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 50% 100%; }
.rig .pose { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); max-width: none; user-select: none; pointer-events: none; filter: drop-shadow(0 12px 10px rgba(80,50,20,.3)); }
.rig-shadow { position: absolute; left: 0; top: -12px; height: 24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(80,50,20,.35), transparent); }
.rig-props { position: absolute; inset: 0; pointer-events: none; }
/* the data card: a manual page that slides in when there is a number to explain */
.datacard { position: absolute; display: grid; align-content: end; gap: 10px; padding: 36px 40px; border-radius: 18px; background: #e3ebf2;
  box-shadow: 0 30px 60px rgba(60,40,10,.2); }
.datacard .step { position: absolute; left: 40px; top: 32px; font: 800 16px var(--fh); letter-spacing: .26em; text-transform: uppercase; color: var(--blue); }
.datacard .lbl { font: 900 34px/1.1 var(--fh); color: var(--ink); }
.datacard .sub { font: 600 20px/1.35 var(--fh); color: var(--ink-2); }

/* ---------- V7 additions ---------- */
html.free, html.free body { overflow-y: auto; height: auto; }
#scroller { height: 0; }
.layer { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#ui .layer { pointer-events: none; }
.flash { position: absolute; left: -900px; top: -700px; width: 3720px; height: 2480px; background: #fffaf0; pointer-events: none; z-index: 25; }
.open-btns { position: absolute; left: 0; right: 0; top: 930px; display: grid; justify-items: center; gap: 14px; z-index: 5; }
.open-btns .open-btn { position: static; transform: none; }
.open-alt { font: 700 17px var(--fh); color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.datacard .nt { font: 600 15px/1.4 var(--fh); color: var(--muted); }
.recipe-chip { position: absolute; left: 40px; top: 90px; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 14px;
  background: var(--paper); box-shadow: 0 16px 30px rgba(60,40,10,.18); z-index: 22; }
.recipe-chip i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; font: 700 22px var(--fn); font-style: normal; color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); }
.recipe-chip span { font: 900 22px/1.1 var(--fh); }
.recipe-chip small { display: block; font: 800 12px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.recipe-chip b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 700 18px var(--fn); }
.unit-row { position: absolute; display: flex; align-items: center; gap: 22px; }
.unit-lbl { position: absolute; font: 900 30px/1.1 var(--fh); }
.unit-lbl small { display: block; font: 600 17px var(--fh); color: var(--ink-2); margin-top: 4px; text-shadow: 0 0 6px rgba(251,248,242,.9); }
.unit-say { position: absolute; font: 900 40px/1.05 var(--fh); }
.unit-say em { font-style: normal; color: var(--red); }

/* ---------- bags 2–7 ---------- */
.fig { position: absolute; transform-origin: 50% 100%; filter: drop-shadow(0 14px 12px rgba(80,50,20,.3)); }
.boxart { position: absolute; border-radius: 6px; box-shadow: 0 18px 30px rgba(60,40,10,.3); }
.focus-say { position: absolute; display: grid; gap: 8px; }
.focus-say b { font: 900 38px/1.08 var(--fh); color: var(--ink); }
.focus-say span { font: 700 22px/1.3 var(--fh); color: var(--ink-2); }
.focus-say small { font: 600 15px/1.45 var(--fh); color: var(--muted); }

/* bag 3: the display case */
.vitrine { position: absolute; border-radius: 10px; background: linear-gradient(180deg, #fbf6ec, #efe4d0); border: 26px solid #c99b6a;
  box-shadow: inset 0 0 0 3px #a9784b, inset 0 30px 60px rgba(90,60,20,.18), 0 40px 70px rgba(60,40,10,.25); }
.vglass { position: absolute; border-radius: 3px; background: linear-gradient(rgba(200,230,255,.85), rgba(160,200,230,.35)); box-shadow: 0 10px 18px rgba(60,40,10,.18); }
.vled { position: absolute; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(255,236,190,.85), rgba(255,236,190,0) 70%); }
.shelf-tag { position: absolute; transform: translateX(-50%); white-space: nowrap; font: 800 18px var(--fh); color: var(--ink-2);
  background: var(--paper); border-radius: 6px; padding: 6px 14px; box-shadow: 0 4px 10px rgba(60,40,10,.15); }
.shelf-tag b { font: 700 20px var(--fn); color: var(--green); margin-right: 8px; }
.pedestal-light { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,240,205,.95), rgba(255,240,205,0)); }
.hotspot { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; cursor: pointer; border: 5px solid #fff;
  background: rgba(35,120,65,.25); box-shadow: 0 0 0 6px rgba(35,120,65,.4); animation: pulse 1s ease-in-out infinite; }
.hotspot:focus-visible { outline: 4px solid var(--ink); }
@keyframes pulse { 50% { transform: scale(1.15); box-shadow: 0 0 0 14px rgba(35,120,65,.12); } }
.magnifier { position: absolute; border-radius: 50%; border: 8px solid #fff; background-color: var(--paper); background-repeat: no-repeat;
  box-shadow: 0 16px 34px rgba(60,40,10,.3), inset 0 0 0 2px rgba(20,24,31,.2); }
.leader { position: absolute; height: 3px; background: var(--ink-2); transform-origin: 0 50%; }
.mag-label { position: absolute; transform: translateX(-50%); padding: 8px 18px 10px; border-radius: 10px; font: 900 26px var(--fh); white-space: nowrap; }
.mag-label.yes { background: var(--green); color: #fff; }
.mag-label.no { background: #d9dde1; color: var(--ink-2); }

/* bag 4: the time ruler and price tags */
.ruler { position: absolute; border-radius: 8px; background: linear-gradient(#e2b886, #b9875a); box-shadow: 0 8px 16px rgba(80,50,20,.25); }
.tick { position: absolute; width: 3px; height: 18px; margin-left: -1px; background: rgba(20,24,31,.35); }
.tick.big { height: 30px; background: var(--ink-2); }
.tick span { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); font: 700 22px var(--fn); color: var(--ink-2); }
.pricetag { position: absolute; display: grid; gap: 4px; justify-items: start; padding: 18px 24px 20px 30px; background: var(--paper); border-radius: 6px 18px 18px 6px;
  box-shadow: 0 20px 40px rgba(60,40,10,.22); border-left: 10px solid var(--ink); white-space: nowrap; }
.pricetag .when { font: 800 15px var(--fh); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pricetag b { font: 700 72px/1 var(--fn); color: var(--ink); }
.pricetag .usd { font: 700 26px var(--fn); color: var(--red); }
.pricetag .what { font: 700 18px var(--fh); color: var(--ink-2); }
.pricetag.sale { border-left-color: var(--red); }
.pricetag.sale b { color: var(--red); }
.year-run { position: absolute; width: 1920px; text-align: center; font: 700 200px/1 var(--fn); color: rgba(20,24,31,.12); pointer-events: none; }
.tile { position: absolute; width: 90px; height: 14px; border-radius: 4px; background: linear-gradient(#ffe08a, #b8892f); box-shadow: inset 0 -3px 0 rgba(90,60,10,.4), 0 2px 0 rgba(0,0,0,.15); }
.stack-lbl { position: absolute; width: 150px; text-align: center; font: 700 17px var(--fh); color: var(--muted); }
.stack-lbl b { display: block; font: 700 26px var(--fn); color: var(--ink); }

/* bag 5: the guess and the wall */
.guess-brick { position: absolute; width: 330px; height: 110px; border: 0; border-radius: 12px; cursor: pointer; font: 900 30px var(--fh); color: #fff;
  background: var(--azure); box-shadow: inset 0 -10px 0 rgba(0,0,0,.18), 0 14px 24px rgba(60,40,10,.2); }
.guess-brick::before { content: ''; position: absolute; left: 18px; right: 18px; top: -12px; height: 14px;
  background: radial-gradient(ellipse 15px 12px at 50% 100%, var(--azure) 99%, transparent 100%) 0 0 / 50px 14px repeat-x; }
.guess-brick.on { background: var(--yellow); color: var(--ink); }
.guess-brick:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.wallbox { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(60,40,10,.3)); }
.wall-count { position: absolute; display: flex; align-items: baseline; gap: 12px; }
.wall-count b { font: 700 110px/1 var(--fn); color: var(--ink); font-variant-numeric: tabular-nums; }
.wall-count span { font: 800 32px var(--fh); color: var(--muted); }

/* bag 6: the grail */
.spotcone { position: absolute; pointer-events: none; background: linear-gradient(rgba(255,226,160,.5), rgba(255,226,160,.08)); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(10px); }
.pedestal { position: absolute; border-radius: 8px 8px 0 0; background: linear-gradient(90deg, #3a2a16, #6b5130 40%, #4d391f 60%, #2a1d0e); box-shadow: inset 0 6px 0 rgba(255,220,140,.3); }
.fig.gold-off { filter: brightness(.25) sepia(1) saturate(1.4); }
.fig.gold { filter: sepia(1) saturate(3.2) hue-rotate(-12deg) brightness(1.08) drop-shadow(0 0 26px rgba(248,187,61,.8)); }
.gold-count { position: absolute; width: 1920px; text-align: center; font: 800 34px var(--fh); color: #f6e3b0; }
.gold-count b { font: 700 110px var(--fn); color: #f8bb3d; margin-right: 10px; }
.estimate { position: absolute; display: grid; gap: 6px; padding: 22px 28px; border-radius: 14px; background: rgba(251,248,242,.95); border: 3px dashed #b8892f; }
.estimate .eyebrow { font: 800 15px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: #8a6a2a; }
.estimate b { font: 700 54px var(--fn); color: #b8892f; }
.estimate .nt { font: 600 16px/1.4 var(--fh); color: var(--muted); }

/* bag 7: the end */
.gold-glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(248,200,90,.75), rgba(248,200,90,0)); pointer-events: none; }
.ing-lbl { position: absolute; display: flex; align-items: center; gap: 12px; white-space: nowrap; font: 900 28px var(--fh); background: rgba(251,248,242,.92); padding: 6px 18px 6px 6px; border-radius: 12px; box-shadow: 0 8px 18px rgba(60,40,10,.15); }
.ing-lbl i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font: 700 20px var(--fn); font-style: normal; }
.ing-lbl i { color: #fff !important; }
.headline.final { font-size: 80px; }
.headline .gold { color: #b8892f; }
.endscreen { position: absolute; left: 0; right: 0; top: 960px; display: flex; justify-content: center; gap: 18px; }
.endscreen .open-btn { position: static; transform: none; }
.endscreen .ghost { font: 800 20px var(--fh); padding: 16px 28px; border-radius: 40px; border: 2px solid rgba(20,24,31,.25); background: rgba(251,248,242,.85); cursor: pointer; }
.compare { position: absolute; left: 50%; top: 50%; z-index: 40; width: 960px; transform: translate(-50%, -50%) scale(.92); opacity: 0; pointer-events: none;
  background: var(--paper); border-radius: 20px; padding: 32px 40px; box-shadow: 0 40px 80px rgba(40,25,5,.35); transition: opacity .25s, transform .25s; }
#ui .compare:not(.open) * { pointer-events: none; }
.compare.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.compare h2 { margin: 0 0 14px; font: 900 44px var(--fh); }
.compare label { display: flex; gap: 16px; align-items: center; font: 700 24px var(--fh); }
.compare input { width: 190px; font: 700 30px var(--fn); padding: 6px 12px; border: 2px solid var(--ink); border-radius: 10px; }
.compare .x { position: absolute; right: 18px; top: 12px; border: 0; background: none; font-size: 40px; cursor: pointer; }
.compare .row { display: grid; grid-template-columns: 230px 1fr 110px; gap: 14px; align-items: center; margin-top: 16px; }
.compare .who { font: 900 22px/1.1 var(--fh); }
.compare .who small { display: block; font: 600 14px var(--fh); color: var(--muted); }
.compare .mbs { display: flex; flex-wrap: wrap; gap: 3px; }
.compare .mb { width: 14px; height: 11px; border-radius: 2px; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.compare b { font: 700 26px var(--fn); text-align: right; }
.compare .pct { font: 600 18px var(--fh); color: var(--muted); margin: 18px 0 0; }

.note.pill { white-space: nowrap; background: rgba(251,248,242,.92); padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 14px rgba(60,40,10,.12); }
.boxwall { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; opacity: 0; }
#pauseTag { position: fixed; left: 50%; bottom: 52px; transform: translate(-50%, 10px); z-index: 50; padding: 10px 20px; border-radius: 24px; pointer-events: none;
  font: 800 15px var(--fh); letter-spacing: .04em; color: #fff; background: rgba(20,24,31,.82); opacity: 0; transition: opacity .2s, transform .2s; }
body.paused #pauseTag { opacity: 1; transform: translate(-50%, 0); }
#viewport { cursor: pointer; }
#pauseTag span { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
#seekTag { position: fixed; top: 50%; margin-top: -48px; z-index: 50; display: flex; align-items: center; gap: 10px; height: 96px; padding: 0 30px; border-radius: 48px;
  background: rgba(20,24,31,.78); color: #fff; opacity: 0; pointer-events: none; }
#seekTag.back { left: 6%; } #seekTag.fwd { right: 6%; }
#seekTag b { font: 700 34px var(--fn); } #seekTag i { font: 900 40px var(--fh); font-style: normal; color: var(--yellow); }

/* ---------- collector cards ---------- */
#btnCards { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
#btnCards b { font: 700 16px var(--fn); }
.cc-ico { width: 14px; height: 18px; border-radius: 3px; background: linear-gradient(#f8d36a, #b8892f); box-shadow: 2px 2px 0 rgba(20,24,31,.25); }
.cc-wrap, .cc-album { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(20,14,6,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s; perspective: 1400px; }
.cc-wrap.show, .cc-album.show { opacity: 1; pointer-events: auto; }
.ccard { width: min(340px, 82vw); padding: 16px 18px 18px; border-radius: 18px; text-align: center; background: linear-gradient(#fffaf0, #f3e3c2); border: 7px solid #b8892f;
  box-shadow: 0 0 0 3px #fff6dc inset, 0 30px 70px rgba(0,0,0,.45); font-family: var(--fh); color: var(--ink); }
.cc-no { margin: 0; font: 800 12px var(--fh); letter-spacing: .16em; text-transform: uppercase; color: #8a6a2a; }
.cc-art { position: relative; height: 210px; margin: 10px 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--cc, #b8892f) 22%, #fff) 70%); border: 3px solid rgba(20,24,31,.12); }
.cc-art img { max-width: 86%; max-height: 190px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.25)); }
.cc-art span { font: 900 90px var(--fh); color: rgba(20,24,31,.18); }
.cc-boxes { display: flex; align-items: flex-end; justify-content: center; } .cc-boxes img { width: 34%; margin: 0 -3%; }
.ccard h4 { margin: 4px 0; font: 900 26px/1.1 var(--fh); }
.cc-meta { display: flex; gap: 10px; justify-content: center; align-items: baseline; margin: 6px 0; font: 700 15px var(--fn); color: var(--ink-2); }
.cc-rare { color: #e2a400; letter-spacing: .08em; } .cc-rare i { font-style: normal; color: #d8c8a6; }
.cc-fact { margin: 8px 4px 10px; font: 600 15px/1.4 var(--fh); color: var(--ink-2); }
.cc-won { margin: 4px 0 12px; font: 900 15px var(--fh); color: var(--green); }
.cc-keep { font: 800 17px var(--fh); padding: 12px 24px; border: 0; border-radius: 30px; cursor: pointer; color: var(--ink); background: var(--yellow); box-shadow: 0 5px 0 #c4a21f; }
.cc-keep:focus-visible, #btnCards:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.answer-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; padding: 12px 24px; border-radius: 26px; background: rgba(20,24,31,.85);
  color: #fff; font: 800 18px var(--fh); opacity: 0; visibility: hidden; pointer-events: none; }
.cc-sheet { position: relative; max-width: min(1100px, 94vw); max-height: 90vh; overflow: auto; padding: 26px 30px; border-radius: 20px; background: var(--paper); text-align: center; }
.cc-sheet h2 { margin: 0; font: 900 34px var(--fh); } .cc-sheet .sub { margin: 6px 0 18px; font: 600 17px var(--fh); color: var(--ink-2); }
.cc-sheet .x { position: absolute; right: 16px; top: 10px; border: 0; background: none; font-size: 36px; cursor: pointer; }
.cc-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.ccard.small { width: 280px; box-shadow: 0 10px 24px rgba(60,40,10,.2); } .ccard.small .cc-art { height: 170px; } .ccard.small .cc-art img { max-height: 150px; }
.ccard.locked { filter: grayscale(1); opacity: .6; border-style: dashed; }
.cc-stack { display: grid; justify-items: center; gap: 14px; }
.cc-stack .cc-won { margin: 0; text-align: center; color: #fff; font: 900 34px var(--fh); text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.cc-stack .cc-won small { display: block; margin-top: 4px; font: 700 17px var(--fh); color: #f8d36a; }
.cc-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 0 40%, rgba(255,255,255,.75) 50%, transparent 60% 100%);
  transform: translateX(var(--shine, -60%)); }
.cc-wrap { transition: opacity .6s; }
.cc-wrap { background: rgba(20,14,6,.68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* bag 3: find the differences */
.find-area { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; padding: 0; background: transparent; cursor: crosshair; }
.find-area:focus-visible { outline: none; }
.find-frame { position: absolute; border: 4px dashed rgba(35,120,65,.7); border-radius: 26px; pointer-events: none; }
.find-frame span { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); white-space: nowrap; padding: 6px 16px; border-radius: 20px;
  background: var(--green); color: #fff; font: 800 17px var(--fh); }
.find-name { position: absolute; transform: translateX(-50%); white-space: nowrap; font: 800 20px var(--fh); color: var(--ink-2); }
.find-count { position: absolute; left: 0; width: 1920px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.find-count i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--green); background: rgba(255,255,255,.7); }
.find-count i.on { background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.find-count b { margin-left: 8px; font: 800 22px var(--fh); color: var(--ink); }
.find-ring { position: absolute; border-radius: 50%; border: 5px solid var(--green); box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(35,120,65,.5); pointer-events: none; }
.find-miss { position: absolute; margin: -24px 0 0 -14px; font: 900 44px/1 var(--fh); color: var(--red); text-shadow: 0 0 6px #fff; pointer-events: none; }
.find-lbl { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 6px 16px 6px 6px; border-radius: 12px; background: var(--paper);
  box-shadow: 0 8px 18px rgba(60,40,10,.18); font: 900 24px var(--fh); color: var(--ink); }
.find-lbl i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: #fff; font: 700 18px var(--fn); font-style: normal; }

/* bag 1: the missing piece */
.slot-cone { position: absolute; pointer-events: none; background: linear-gradient(rgba(255,232,170,.0), rgba(255,226,150,.45) 70%, rgba(255,226,150,.15));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(8px); }
.dust-mark { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,246,228,.95), rgba(255,246,228,0)); }
.riser { position: absolute; border-radius: 6px 6px 3px 3px; background: linear-gradient(rgba(255,255,255,.85), rgba(214,232,244,.55)); border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 -6px 10px rgba(120,160,190,.25), 0 6px 14px rgba(80,50,20,.18); display: grid; place-items: center; }
.riser span { font: 800 12px var(--fh); letter-spacing: .18em; text-transform: uppercase; color: rgba(90,110,130,.85); }
.ghost-wrap { position: absolute; transform-origin: 50% 100%; }
.ghost-box { position: absolute; left: 0; top: 0; border-radius: 10px; border: 3px dashed rgba(184,137,47,.95);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 12px, rgba(255,248,230,.3) 12px 24px);
  box-shadow: 0 0 46px rgba(248,200,90,.6), inset 0 0 30px rgba(255,255,255,.7); animation: ghostFloat 3.2s ease-in-out infinite; }
@keyframes ghostFloat { 50% { transform: translateY(-8px); box-shadow: 0 0 62px rgba(248,200,90,.8), inset 0 0 30px rgba(255,255,255,.7); } }
.ghost-lid { position: absolute; left: 0; right: 0; top: 26px; border-top: 2px dashed rgba(184,137,47,.6); }
.ghost-logo { position: absolute; left: 12px; top: 6px; width: 34px; height: 34px; margin-top: -2px; border-radius: 4px; display: grid; place-items: center;
  background: rgba(201,26,9,.85); color: #fff; font: 900 22px var(--fh); box-shadow: inset 0 0 0 2px #f2cd37; transform: scale(.7); transform-origin: 0 0; }
.ghost-box .stamp { font-size: 22px; background: rgba(251,248,242,.9); }
.sparkle { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 10%, #ffe08a 10% 15%, transparent 15% 35%, #ffe08a 35% 40%, transparent 40% 60%, #ffe08a 60% 65%, transparent 65% 85%, #ffe08a 85% 90%, transparent 90%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); background: #ffe08a; animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0deg); filter: brightness(1); } 50% { transform: scale(1) rotate(45deg); filter: brightness(1.3); } }
/* tears */
.rig .tears { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; }
.rig.crying .tears { opacity: 1; }
.rig .tears span { position: absolute; }
.rig .tears span::before { content: ''; position: absolute; left: -1.5px; top: 1px; width: 3px; height: 26px; border-radius: 2px; background: linear-gradient(rgba(150,210,255,.9), rgba(150,210,255,0)); }
.rig .tears i { position: absolute; left: 0; top: 0; width: 7px; height: 10px; margin-left: -3.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff, #a9dcff 45%, #3f9be6); box-shadow: 0 0 4px rgba(255,255,255,.9); animation: tear 1.1s ease-in infinite; }
.rig .tears span + span i { animation-delay: .55s; }
@keyframes tear { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(2px) scale(1); } 100% { transform: translateY(48px) scale(.8); opacity: 0; } }

/* bag 2: why — two acts on a baseplate, then the jump */
.baseplate { position: absolute; border-radius: 12px; background:
  radial-gradient(circle at 50% 42%, rgba(255,255,255,.32) 0 6px, transparent 7px) 0 0 / 30px 30px,
  radial-gradient(circle at 50% 55%, rgba(0,0,0,.22) 0 9px, transparent 10px) 0 0 / 30px 30px, #4a9a44;
  box-shadow: 0 30px 60px rgba(40,70,30,.3), inset 0 -8px 0 rgba(0,0,0,.18); }
.gridbox { position: absolute; object-fit: fill; border-radius: 6px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); }
.gridbox.tint-a { filter: hue-rotate(250deg) saturate(.9) drop-shadow(0 8px 8px rgba(0,0,0,.3)); }
.gridbox.tint-b { filter: hue-rotate(70deg) saturate(.9) drop-shadow(0 8px 8px rgba(0,0,0,.3)); }
.gridbox.sw { object-fit: cover; background: #222; }
.scan-beam { position: absolute; pointer-events: none; background: linear-gradient(90deg, rgba(255,240,170,0), rgba(255,240,170,.75), rgba(255,240,170,0)); mix-blend-mode: screen; }
.why-side b { display: block; font: 900 40px/1.1 var(--fh); color: var(--ink); }
.why-side b em { font-style: normal; color: var(--red); }
.why-side small { display: block; margin-top: 12px; font: 600 18px/1.4 var(--fh); color: var(--ink-2); }
.why-side.jump b { font-size: 26px; color: var(--muted); letter-spacing: .02em; }
.why-side.jump span { display: block; font: 900 38px var(--fh); color: var(--ink); }
.heart { position: absolute; transform-style: preserve-3d; }
.heart .plate { box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.sw-badge { position: absolute; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #fff6cf, #f2cd37 60%, #c9961a);
  box-shadow: 0 0 0 4px #fff, 0 10px 22px rgba(60,40,10,.3), 0 0 26px rgba(242,205,55,.8); }
.sw-badge img { position: absolute; left: 50%; top: 8%; height: 190%; transform: translateX(-50%); }
.why-side { position: absolute; }

/* bag 2: why — the flow from the catalogue to the wishes */
.flowchart { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.flowchart .seg { filter: drop-shadow(0 4px 6px rgba(60,40,10,.18)); }
.flow-head { position: absolute; text-align: center; white-space: nowrap; }
.flow-head b { display: block; font: 900 24px var(--fh); color: var(--ink); }
.flow-head span { display: block; margin-top: 4px; font: 700 16px var(--fh); color: var(--muted); letter-spacing: .04em; }
.flow-lab { position: absolute; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.flow-lab span { font: 800 22px var(--fh); color: var(--ink-2); }
.flow-lab b { font: 700 30px var(--fn); color: var(--ink); font-variant-numeric: tabular-nums; }
.flow-lab.other span { font-weight: 700; color: var(--muted); }
.flow-tie { position: absolute; border-right: 3px solid var(--ink-2); border-top: 3px solid var(--ink-2); border-bottom: 3px solid var(--ink-2);
  border-radius: 0 10px 10px 0; display: flex; align-items: center; }
.flow-tie span { margin-left: -6px; padding: 6px 14px; border-radius: 20px; background: var(--ink); color: #fff; font: 800 18px var(--fh); white-space: nowrap; transform: translateX(-100%); }
.flow-stream { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.flow-stream i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff6cf;
  box-shadow: 0 0 10px 3px rgba(242,194,48,.9); offset-rotate: 0deg; animation: flowDot 3.5s linear infinite; }
@keyframes flowDot { from { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.flow-call { position: absolute; width: 330px; }
.flow-call em { display: block; font: 700 96px/1 var(--fn); font-style: normal; color: #d9a400; }
.flow-call b { display: block; margin-top: 6px; font: 900 34px/1.15 var(--fh); color: var(--ink); }
.flow-call small { display: block; margin-top: 12px; font: 600 16px/1.45 var(--fh); color: var(--ink-2); }

/* bag 2: the galaxy of collectors */
.night { position: absolute; left: -1500px; top: -900px; width: 5000px; height: 2900px; pointer-events: none;
  background: radial-gradient(ellipse 1100px 600px at 2560px 1460px, #1c2547, #0d1224 60%, #070a14); }
.sky { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.sky-head { position: absolute; max-width: 1560px; }
.sky-head span { display: block; font: 800 16px var(--fh); letter-spacing: .22em; text-transform: uppercase; color: #9fb0d8; }
.sky-head b { display: block; margin-top: 10px; font: 900 54px/1.08 var(--fh); color: #fff; }
.sky-head b i { font-style: normal; font-family: var(--fn); color: #ffe7a0; font-variant-numeric: tabular-nums; }
.sky-head b em { font-style: normal; }
.sky-head small { display: block; margin-top: 12px; font: 600 19px var(--fh); color: #8e9cc0; }
.sky-set { position: absolute; display: flex; align-items: center; gap: 28px; }
.sky-set .ph { width: 180px; height: 150px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sky-set img { max-width: 160px; max-height: 128px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.sky-set b { display: block; font: 900 46px var(--fh); }
.sky-set b i { font-style: normal; font-family: var(--fn); font-variant-numeric: tabular-nums; }
.sky-set span { display: block; margin-top: 2px; font: 800 30px var(--fh); color: #fff; }
.sky-set small { display: block; margin-top: 8px; font: 600 18px var(--fh); color: #8e9cc0; }
.sky-tally { position: absolute; display: grid; gap: 8px; }
.sky-tally div { display: flex; justify-content: space-between; align-items: center; gap: 26px; min-width: 330px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.06); font: 700 19px var(--fh); color: #c9d2ea; }
.sky-tally div span { display: flex; align-items: center; gap: 10px; }
.sky-tally div i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.sky-tally div b { font: 700 22px var(--fn); color: #fff; }

.sky-head b em { color: var(--c, #ffd23f); }
.sky-set .ph { background: rgba(255,255,255,.94); }
.top-tile { position: absolute; width: 290px; }
.top-tile .ph { position: relative; height: 180px; border-radius: 14px; background: rgba(255,255,255,.94); display: grid; place-items: center; overflow: hidden; }
.top-tile .ph img { max-width: 92%; max-height: 92%; }
.top-tile .ph i { position: absolute; left: 10px; top: 8px; font: 700 22px var(--fn); font-style: normal; color: #14181f; }
.top-tile b { display: block; margin-top: 10px; font: 900 24px var(--fh); color: #fff; }
.top-tile span { display: block; margin-top: 2px; font: 700 18px var(--fh); color: #9fb0d8; }
.top-tile.sw .ph { box-shadow: 0 0 0 4px #ffd23f, 0 0 34px rgba(255,210,63,.55); }
.top-tile.sw span { color: #ffd23f; }

/* the chapter path (top centre): every chapter, clickable, with back / forward */
#progress { display: none; }
#chapters { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 51; display: flex; align-items: center; gap: 4px; padding: 5px 8px;
  border-radius: 26px; background: rgba(251,248,242,.86); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(30,20,5,.14); pointer-events: auto; }
#chapters ol { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
#chapters li { position: relative; }
#chapters li + li::before { content: ''; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: rgba(20,24,31,.2); }
#chapters li.done + li::before, #chapters li.cur::before { background: rgba(20,24,31,.45); }
#chapters li button { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border: 0; border-radius: 16px; background: none; cursor: pointer;
  font: 700 13px var(--fh); color: #7b7f86; white-space: nowrap; transition: background .2s, color .2s; }
#chapters li button:hover { background: rgba(255,255,255,.9); color: var(--ink); }
#chapters li button i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); box-sizing: border-box; transition: background .3s, box-shadow .3s; }
#chapters li.done button i { background: var(--c); }
#chapters li.cur button { background: #fff; color: var(--ink); font-weight: 900; }
#chapters li.cur button i { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
#chapters .nav-step { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; cursor: pointer; font: 900 22px/1 var(--fh); color: var(--ink-2); }
#chapters .nav-step:hover { background: #fff; }
#chapters button:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
@media (max-width: 1500px) { #chapters li:not(.cur) button span { display: none; } #chapters li button { padding: 5px 7px; } }

/* motion kit */
.kit-piece { position: absolute; left: 0; top: 0; border-radius: 4px; pointer-events: none;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.4), 0 5px 10px rgba(40,25,5,.22); }
.kit-piece.round { border-radius: 50%; }
.kit-piece.round::after { content: ''; position: absolute; inset: 24%; border-radius: 50%; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18); }
.kit-piece:not(.round)::before, .kit-piece:not(.round)::after { content: ''; position: absolute; top: -5px; width: 11px; height: 6px;
  background: inherit; border-radius: 3px 3px 0 0; filter: brightness(1.1); }
.kit-piece:not(.round)::before { left: 4px; } .kit-piece:not(.round)::after { right: 4px; }
.kit-burst { position: absolute; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,250,225,1), rgba(255,226,140,.55) 40%, rgba(255,226,140,0) 72%); }

/* the guess cards are a little shorter, so the question above and Lizzie's bubble below never touch them */
.card { height: 400px; } .card .pic { height: 240px; } .card .pic img { max-height: 240px; }
.card .nm { top: 276px; } .card .pcs { top: 314px; }

#btnSound.asleep { background: var(--yellow); border-color: #c4a21f; animation: pulseBtn 1.4s ease-in-out infinite; }
@keyframes pulseBtn { 50% { transform: scale(1.06); } }

/* bag 4: the hunt — shop window, corridor of years, auction, gold stack */
.floor-line { position: absolute; height: 10px; border-radius: 5px; background: linear-gradient(#d8b98e, #b98d5c); box-shadow: 0 6px 14px rgba(80,50,20,.18); }
.shop { position: absolute; border-radius: 16px 16px 4px 4px; background: #8a2b1f; box-shadow: 0 30px 60px rgba(60,30,10,.3), inset 0 0 0 10px #a8392a; overflow: hidden; }
.shop-sign { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #f2cd37 0 40px, #fff4cf 40px 80px);
  font: 900 26px var(--fh); letter-spacing: .08em; text-transform: uppercase; color: #6b1c12; box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.shop-glass { position: absolute; left: 24px; right: 24px; top: 84px; bottom: 24px; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 30%, #fff7dc, #f3dfae 60%, #d9bd84); box-shadow: inset 0 0 40px rgba(255,255,255,.7); }
.shop-shelf { position: absolute; left: 24px; right: 24px; top: 460px; height: 18px; background: #c99b6a; box-shadow: 0 6px 10px rgba(0,0,0,.2); }
.shutter { position: absolute; left: 24px; right: 24px; top: 84px; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(#9aa0a8 0 14px, #7d838b 14px 18px); box-shadow: inset 0 -6px 0 #5d636b; }
.shop .stamp { transform: translateX(-50%) rotate(-8deg); background: rgba(251,248,242,.95); font-size: 30px; }
.boxart.travel { border-radius: 4px; }
.year-post { position: absolute; width: 4px; height: 260px; margin-left: -2px; background: rgba(20,24,31,.18); }
.year-post span { position: absolute; left: 10px; top: -6px; font: 700 26px var(--fn); color: rgba(20,24,31,.5); }
.year-post.big { width: 6px; background: rgba(20,24,31,.35); } .year-post.big span { font-size: 40px; color: var(--ink); }
.year-ghost { position: absolute; font: 700 300px/1 var(--fn); color: rgba(20,24,31,.08); filter: blur(5px); pointer-events: none; }
.year-run2 { position: absolute; width: 1920px; text-align: center; }
.year-run2 b { display: block; font: 700 120px/1 var(--fn); color: var(--ink); font-variant-numeric: tabular-nums; }
.year-run2 span { display: block; margin-top: 6px; font: 800 18px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.podium { position: absolute; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, #3a2a1a, #6b4e31 45%, #4a3520); box-shadow: inset 0 6px 0 rgba(255,220,150,.35); }
.gavel { position: absolute; width: 150px; height: 40px; transform-origin: 110% 50%; }
.gavel::before { content: ''; position: absolute; left: 0; top: 0; width: 70px; height: 40px; border-radius: 8px; background: linear-gradient(#8a5a2b, #5e3a18); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); }
.gavel::after { content: ''; position: absolute; left: 60px; top: 14px; width: 120px; height: 12px; border-radius: 6px; background: #6e4520; }
.pricetag.big b { font-size: 92px; }
.pricetag.big .usd { font-size: 24px; color: var(--ink-2); }
.gstack { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.gold-brick { position: absolute; border-radius: 6px; background: linear-gradient(#ffe48e, #e0a91f 55%, #b8892f);
  box-shadow: inset 0 -6px 0 rgba(120,80,10,.35), inset 0 3px 0 rgba(255,255,255,.55), 0 4px 6px rgba(80,50,10,.25); }
.gold-brick::before { content: ''; position: absolute; left: 14px; right: 14px; top: -9px; height: 10px;
  background: radial-gradient(ellipse 15px 10px at 50% 100%, #ffd863 98%, transparent 100%) 0 0 / 53px 10px repeat-x; }
.gstack-count { position: absolute; width: 1920px; text-align: center; }
.gstack-count b { display: block; font: 700 110px/1 var(--fn); color: #c98c00; font-variant-numeric: tabular-nums; }
.gstack-count span { font: 800 20px var(--fh); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack-lbl2 { position: absolute; font: 700 17px var(--fh); color: var(--ink-2); white-space: nowrap; }
.stack-lbl2 b { display: block; font: 700 26px var(--fn); color: var(--ink); }

/* bag 6: the grail — a museum at night */
.museum-vignette { position: absolute; left: -1500px; top: -900px; width: 5000px; height: 2900px; pointer-events: none;
  background: radial-gradient(ellipse 900px 620px at 2460px 1440px, rgba(0,0,0,0), rgba(18,10,4,.55) 70%, rgba(10,6,2,.8)); }
.spotcone.grail { background: linear-gradient(rgba(255,226,160,.55), rgba(255,226,160,.12) 85%, rgba(255,226,160,0)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(12px); }
.pedestal.grail { border-radius: 10px 10px 0 0; background: linear-gradient(90deg, #2c2014, #6b5130 40%, #8a6a40 52%, #4d391f 70%, #22180c); box-shadow: inset 0 8px 0 rgba(255,220,140,.35), 0 -2px 30px rgba(255,200,110,.25); }
.gold-pool { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255,214,120,.65), rgba(255,214,120,0)); filter: blur(4px); }
.dust-beam { position: absolute; pointer-events: none; }
.dust-beam i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,236,190,.9); box-shadow: 0 0 6px rgba(255,220,150,.9); animation: dustFloat 8s linear infinite; }
@keyframes dustFloat { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 50% { transform: translate(14px, -60px); } 85% { opacity: .7; } 100% { transform: translate(-10px, -120px); opacity: 0; } }
.grail-clip { position: absolute; overflow: hidden; perspective: 900px; }
.grail-fig { transform-origin: 50% 100%; }
.grail-sheen { position: absolute; pointer-events: none; --sx: -80%; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 0, rgba(255,246,210,.5) 50%, transparent 100%) var(--sx) 0 / 28% 100% no-repeat; }
.fig.grail-shadow { filter: brightness(0) drop-shadow(0 0 10px rgba(255,190,80,.55)) blur(1px); }
.grail-only { position: absolute; transform: translateX(-50%); display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.grail-only b { font: 700 64px/1 var(--fn); color: #f8bb3d; text-shadow: 0 0 18px rgba(248,187,61,.6); }
.grail-only span { font: 800 20px var(--fh); letter-spacing: .2em; text-transform: uppercase; color: #f6e3b0; }

.gold-sweep { position: absolute; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 40%, rgba(255,250,220,.75) 50%, transparent 60%); }
.stack-lbl2.c { transform: translateX(-50%); text-align: center; }
.gold-brick { transform-origin: 50% 100%; }

/* the controls fade out while the film plays and the mouse rests */
#hud .hud-btn, #chapters { transition: opacity .5s, transform .5s; }
body.idle #chapters { opacity: 0; transform: translate(-50%, -14px); pointer-events: none; }
body.idle #hud .hud-btn { opacity: 0; pointer-events: none; }
body.idle #viewport { cursor: none; }
