/* DV71 LAVA LOADER · Ember Cut render queue · Stage 2 of 3: the WebGL2 wax over the CSS lamp (the fallback). Desktop sizes in concept px × --u (1600×1000 = the concept);
   phones (≤ 640 px) get their own layout with the lamp standing upright. The theme is the page's own (dark). */
:root {
  --u: max(min(0.0625vw, 0.1svh), 0.72px);
  --ink: #eef1ef; --mut: #93a09f; --mut2: #6f7c7b; --line: rgba(238, 241, 239, .08);
  --amber: #ffb867; --amber-d: #e98b3f; --pct: #ffd9ab; --pct2: #d9a77a;
  --red: #ff8a73; --green: #b8e6a1;
  --page: #0a1110;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased;
  background: radial-gradient(90% 80% at 50% 45%, #13211f 0%, #0a1110 55%, #050807 100%) fixed, var(--page);
  overflow-x: hidden; min-height: 100svh; display: flex; flex-direction: column;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: #2b1606; padding: 15px 16px; min-height: 44px; border-radius: 10px; font: 600 14px/1 'Inter'; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* page light: a broad warm wash behind the card that follows the lamp's heat (opacity only: its own layer) */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-warm { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 80vmax; margin: -40vmax 0 0 -60vmax; display: block;
  background: radial-gradient(closest-side, rgba(255, 140, 50, .085), rgba(255, 120, 40, .03) 55%, transparent 100%);
  opacity: var(--heat, 1); will-change: opacity; transition: opacity .8s ease; }

/* ---------- nav ---------- */
.app { position: relative; z-index: 4; height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; border-bottom: 1px solid var(--line); font: 500 13px/1 'Inter'; color: var(--mut); }
.logo { color: var(--ink); font-weight: 600; letter-spacing: .02em; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.logo i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #ffb867, #c2502a); display: block; box-shadow: 0 0 14px rgba(255, 140, 60, .35); }
.app nav { display: flex; gap: 8px; }
.app nav a { padding: 0 10px; min-height: 44px; display: flex; align-items: center; border-radius: 10px; transition: color .2s; }
.app nav a:hover { color: var(--ink); }
.app nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- stage + card ---------- */
.stage { position: relative; z-index: 2; flex: 1 0 auto; overflow-x: clip; max-width: 100vw; display: flex; align-items: center; justify-content: center; padding: calc(28 * var(--u)) 16px; }
.card {
  position: relative; width: min(calc(1180 * var(--u)), 100% - 0px); border-radius: calc(30 * var(--u));
  padding: calc(36 * var(--u)) calc(46 * var(--u)) calc(30 * var(--u));
  background: linear-gradient(180deg, rgba(30, 44, 42, .72), rgba(16, 24, 23, .84));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 1px 0 rgba(255, 255, 255, .08) inset, 0 50px 100px -30px rgba(0, 0, 0, .8);
  display: grid; grid-template-columns: 1fr auto auto auto auto; column-gap: calc(44 * var(--u));
  grid-template-areas: "hd hd hd hd st" "lamp lamp lamp lamp lamp" "pct s1 s2 s3 btns" "msg msg msg msg msg" "queue queue queue queue queue";
  align-items: end;
}
.hd { grid-area: hd; display: flex; align-items: center; gap: calc(18 * var(--u)); min-width: 0; align-self: center; position: relative; z-index: 3; }
.thumb { flex: none; width: calc(88 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(10 * var(--u)); position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; background: linear-gradient(180deg, #f7c27d 0%, #e9775a 45%, #3c2a4a 46%, #1c1b2e 100%); }
.thumb::after { content: ''; position: absolute; left: 50%; top: 30%; width: 32%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #fff3d6; box-shadow: 0 0 18px 6px rgba(255, 200, 120, .6); }
.thumb[data-kind="teal"] { background: linear-gradient(160deg, #6fa7b3 0%, #3a5a66 40%, #172a33 100%); }
.thumb[data-kind="teal"]::after { top: auto; bottom: 18%; width: 60%; height: 22%; aspect-ratio: auto; border-radius: 3px; background: rgba(230, 250, 255, .55); box-shadow: none; }
.thumb[data-kind="violet"] { background: linear-gradient(160deg, #a37bb5 0%, #6a4a7a 40%, #2a1d36 100%); }
.thumb[data-kind="violet"]::after { top: 24%; width: 24%; background: #ffe9c4; box-shadow: 0 0 14px 4px rgba(255, 210, 160, .45); }
.hd-t { min-width: 0; }
h1 { margin: 0 0 calc(6 * var(--u)); font: 600 max(15px, calc(17 * var(--u)))/1.3 'Inter'; letter-spacing: -.005em; }
.meta { margin: 0; font: 500 max(11.5px, calc(12.5 * var(--u)))/1.4 'JetBrains Mono', monospace; color: var(--mut); }
.st { grid-area: st; align-self: center; justify-self: end; position: relative; z-index: 3; display: flex; gap: 9px; align-items: center;
  font: 600 max(10.5px, calc(11.5 * var(--u)))/1 'Inter'; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; display: block; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.card[data-state="paused"] .st { color: #c9b9a2; } .card[data-state="paused"] .st i { animation: none; box-shadow: none; opacity: .7; }
.card[data-state="done"] .st { color: var(--green); } .card[data-state="done"] .st i { animation: none; }
.card[data-state="error"] .st { color: var(--red); } .card[data-state="error"] .st i { animation: none; }

/* ---------- the lamp ---------- */
.lampwrap { grid-area: lamp; position: relative; margin: calc(22 * var(--u)) 0 calc(14 * var(--u)); z-index: 1; }
.lamp { position: relative; height: calc(250 * var(--u)); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 999px; z-index: 2; }
.lamp:focus-visible { outline-offset: 6px; }
#cv { position: absolute; left: calc(-1 * var(--gm)); top: calc(-1 * var(--gm)); width: calc(100% + 2 * var(--gm)); height: calc(100% + 2 * var(--gm));
  --gm: calc(110 * var(--u)); pointer-events: none; z-index: 1; display: block; }
.hint { position: absolute; right: calc(60 * var(--u)); bottom: calc(-12 * var(--u)); margin: 0; font: 500 11px/1 'Inter'; letter-spacing: .04em; color: var(--mut2); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 2; }
.lamp:hover ~ .hint { opacity: 1; }

/* ---------- stats + buttons ---------- */
.pct { grid-area: pct; position: relative; z-index: 3; font: 400 calc(92 * var(--u))/0.8 'Instrument Serif', serif; letter-spacing: -.03em; color: var(--pct);
  text-shadow: 0 0 34px rgba(255, 140, 50, .3); white-space: nowrap; font-variant-numeric: lining-nums; align-self: end; }
.pct small { font-size: .42em; color: var(--pct2); letter-spacing: 0; margin-left: .04em; }
.card[data-state="error"] .pct { color: #e9b2a4; text-shadow: none; }
.card[data-state="paused"] .pct { text-shadow: 0 0 24px rgba(255, 140, 50, .12); }
.stat { position: relative; z-index: 3; padding-bottom: calc(4 * var(--u)); white-space: nowrap; }
.s1 { grid-area: s1; } .s2 { grid-area: s2; } .s3 { grid-area: s3; }
.stat .l { font: 600 max(10px, calc(10.5 * var(--u)))/1 'Inter'; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); margin-bottom: calc(9 * var(--u)); }
.stat .v { font: 500 max(15px, calc(18 * var(--u)))/1 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.btns { grid-area: btns; position: relative; z-index: 3; display: flex; gap: 10px; }
.btn { height: max(44px, calc(46 * var(--u))); padding: 0 calc(20 * var(--u)) 0 calc(17 * var(--u)); border-radius: 999px; border: 0; cursor: pointer;
  font: 600 max(13.5px, calc(14 * var(--u)))/1 'Inter'; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 44px;
  color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transition: background-color .2s, box-shadow .2s, transform .15s, opacity .2s; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.btn:active { transform: scale(.96); }
.btn:disabled { cursor: not-allowed; opacity: .38; transform: none; background: rgba(255, 255, 255, .05); }
.btn.pri { color: #2b1606; background: linear-gradient(180deg, #ffc27a, #e98b3f); box-shadow: 0 6px 20px -6px rgba(255, 140, 50, .6), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.btn.pri:hover { background: linear-gradient(180deg, #ffd093, #f39a4c); box-shadow: 0 8px 26px -6px rgba(255, 140, 50, .8), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.btn.pri svg { stroke-width: 2; }
#pause .ic-play { display: none; fill: currentColor; stroke: none; }
#pause[aria-pressed="true"] .ic-pause { display: none; } #pause[aria-pressed="true"] .ic-play { display: inline; }
#primary .ic-next { display: none; }
#primary[data-kind="next"] .ic-restart, #primary[data-kind="retry"] .ic-next { display: none; } #primary[data-kind="next"] .ic-next { display: inline; }
.card[data-state="error"] #pause .ic-pause, .card[data-state="error"] #pause .ic-play { display: none; }
.msg { grid-area: msg; position: relative; z-index: 3; margin: 0; font: 500 13.5px/1.45 'Inter'; color: var(--red); min-height: 0; }
.msg:empty { display: none; }
.msg:not(:empty) { margin-top: calc(16 * var(--u)); display: flex; gap: 10px; align-items: center; }
.msg:not(:empty)::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 10px var(--red); }

/* ---------- queue ---------- */
.queue { grid-area: queue; position: relative; z-index: 3; margin-top: calc(24 * var(--u)); border-top: 1px solid var(--line); padding-top: calc(10 * var(--u)); }
.q-hd { display: flex; align-items: center; justify-content: space-between; }
.q-hd h2 { margin: 0; font: 600 max(10px, calc(10.5 * var(--u)))/1 'Inter'; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.tog { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 0 0 10px; border: 0; background: none; cursor: pointer; font: 500 13px/1 'Inter'; color: #c3cbc9; border-radius: 10px; }
.tog i { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; position: relative; display: block; transition: background-color .25s, box-shadow .25s; }
.tog i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c9d1cf; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background-color .25s; }
.tog:hover i { background: rgba(255, 255, 255, .16); }
.tog[aria-checked="true"] i { background: linear-gradient(180deg, #ffc27a, #e98b3f); box-shadow: 0 0 12px rgba(255, 140, 50, .45); }
.tog[aria-checked="true"] i::after { transform: translateX(16px); background: #2b1606; }
#queue { list-style: none; margin: calc(2 * var(--u)) 0 0; padding: 0; }
.qi { display: flex; align-items: center; gap: 14px; padding: calc(8 * var(--u)) 0; font: 500 max(13px, calc(13.5 * var(--u)))/1.25 'Inter'; color: #c3cbc9; }
.qi .n { flex: none; width: 40px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #3a5a66, #172a33); }
.qi .n.b { background: linear-gradient(135deg, #6a4a7a, #2a1d36); } .qi .n.c { background: linear-gradient(135deg, #f0a46a, #3c2a4a); }
.qi em { font-style: normal; color: var(--mut); margin-left: auto; font: 500 12px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.qi.done { color: var(--mut); } .qi.done em { color: var(--green); }
.qi.empty { color: var(--mut2); }

/* ---------- footer caption ---------- */
.foot { position: relative; z-index: 2; flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 48px 40px; pointer-events: none; }
.cap { font: 500 13px/1.45 'Inter', sans-serif; letter-spacing: .02em; }
.cap b { display: block; font: 600 12px/1 'Inter'; letter-spacing: .22em; text-transform: uppercase; color: rgba(238, 241, 239, .55); margin-bottom: 8px; }
.cap span { font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.cap i { display: block; font-style: normal; color: rgba(238, 241, 239, .55); margin-top: 4px; font-size: 13px; }
.brandmark { font: 600 11px/1 'Inter'; letter-spacing: .3em; text-transform: uppercase; color: rgba(238, 241, 239, .38); padding-bottom: 6px; white-space: nowrap; }

/* ---------- toast ---------- */
.toast { position: fixed; right: 24px; top: 80px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-radius: 16px; max-width: calc(100vw - 32px);
  background: rgba(24, 34, 32, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 20px 50px -10px rgba(0, 0, 0, .7); font: 500 13px/1.35 'Inter';
  animation: tin .35s cubic-bezier(.2, .9, .3, 1.2); }
.toast[hidden] { display: none; }
.toast > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast b { display: block; font-weight: 600; } .toast span { color: var(--mut); }
.toast-x { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--mut); flex: none; }
.toast-x:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.toast-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- no-WebGL fallback: a frosted tube with a warm fill and soft wax ---------- */
.fb { display: none; }
.no-fx #cv { display: none; }
.no-fx .fb { display: block; position: absolute; inset: 6% 0; }
.fb-glass { position: absolute; inset: 0 6%; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, rgba(200, 230, 228, .14), rgba(6, 16, 19, .9) 30%, rgba(6, 16, 19, .95) 70%, rgba(200, 230, 228, .1));
  box-shadow: 0 0 0 1px rgba(220, 240, 238, .35) inset, 0 0 60px rgba(255, 140, 50, calc(.35 * var(--heat, 1))); backdrop-filter: blur(6px); }
.fb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, .68) * 100%); background: radial-gradient(120% 60% at 50% 100%, #ffd27a, #f08a2c 35%, rgba(90, 60, 50, .6) 75%); transition: width .5s linear; overflow: hidden; }
.fb-fill i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fff0c0, #ffb347 45%, #d8561c 80%, transparent 82%); }
.fb-fill i:nth-child(1) { left: 8%; top: 22%; width: 13%; aspect-ratio: .8; } .fb-fill i:nth-child(2) { left: 30%; top: 40%; width: 9%; aspect-ratio: .9; }
.fb-fill i:nth-child(3) { left: 48%; top: 14%; width: 16%; aspect-ratio: .75; } .fb-fill i:nth-child(4) { left: 70%; top: 46%; width: 11%; aspect-ratio: .85; }
.fb-fill i:nth-child(5) { left: 86%; top: 26%; width: 8%; aspect-ratio: .8; }
.fb-cold { position: absolute; right: 0; bottom: 0; height: 14%; left: calc(var(--p, .68) * 100%); background: #62412a; }
.fb-cap { position: absolute; top: -4%; bottom: -4%; width: 9%; border-radius: 22%; background: linear-gradient(180deg, #5d6166, #d0d2d5 22%, #8a8e92 50%, #2c2f33 100%); box-shadow: inset -6px 0 0 #c9ae74; }
.fb-cap:first-of-type { left: 0; } .fb-cap:last-of-type { right: 0; box-shadow: inset 6px 0 0 #c9ae74; }
/* failed: the fallback lamp goes cold red, as the WebGL wax does */
.card[data-state="error"] .fb-fill { background: radial-gradient(120% 60% at 50% 100%, #b4483a, #6e2a24 40%, rgba(60, 30, 30, .6) 80%); }
.card[data-state="error"] .fb-fill i { background: radial-gradient(circle at 45% 40%, #d98a7a, #8f3a30 50%, #4a1d1a 80%, transparent 82%); }
.card[data-state="error"] .fb-glass { box-shadow: 0 0 0 1px rgba(220, 240, 238, .3) inset, 0 0 46px rgba(255, 70, 50, .16); }

/* ---------- portrait tablets / narrow laptops: stats wrap ---------- */
@media (max-width: 1100px) and (min-width: 641px) {
  :root { --u: max(min(0.0625vw, 0.1svh), 0.74px); }
  .card { width: min(100%, 900px); grid-template-columns: 1fr 1fr 1fr auto; column-gap: 28px;
    grid-template-areas: "hd hd hd st" "lamp lamp lamp lamp" "pct pct pct btns" "s1 s2 s3 ." "msg msg msg msg" "queue queue queue queue"; }
  .stat { margin-top: 22px; }
  .lamp { height: clamp(150px, 22vw, 230px); }
}
/* portrait tablets: the lamp stands upright and tall beside the numbers (hero scale, like the phone) */
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) and (min-height: 900px) {
  :root { --u: 0.9px; --lw: clamp(190px, 27vw, 260px); }
  .stage { align-items: flex-start; padding-top: 4svh; }
  .card { width: min(100%, 860px); padding: 34px 36px 30px; column-gap: 36px;
    grid-template-columns: var(--lw) 1fr; grid-template-rows: auto auto auto auto auto auto 1fr auto auto auto;
    grid-template-areas: "hd hd" "lamp st" "lamp pct" "lamp s1" "lamp s2" "lamp s3" "lamp btns" "msg msg" "queue queue" "queue queue"; align-items: start; }
  .lampwrap { margin: 26px 0 0; }
  .lamp { height: clamp(520px, 52svh, 760px); }
  #cv { --gm: 80px; }
  .st { justify-self: start; margin-top: 44px; }
  .pct { font-size: 120px; margin-top: 18px; }
  .stat { margin-top: 26px; } .stat .v { font-size: 22px; } .stat .l { font-size: 11px; }
  .btns { align-self: end; margin-top: 26px; }
  .hint { display: none; }
}

/* ---------- phones: the lamp stands upright beside the numbers ---------- */
@media (max-width: 640px) {
  :root { --lw: clamp(128px, 39vw, 168px); }
  body { background: radial-gradient(120% 70% at 30% 45%, #13211f 0%, #0a1110 55%, #050807 100%) fixed, var(--page); }
  .app { height: 56px; padding: 0 18px; } .app nav { display: none; }
  .stage { align-items: flex-start; padding: 12px 12px 20px; }
  .card { width: 100%; border-radius: 26px; padding: 18px 18px 18px; column-gap: 16px;
    grid-template-columns: var(--lw) 1fr; grid-template-rows: auto auto auto auto auto auto 1fr auto auto auto;
    grid-template-areas: "hd hd" "lamp st" "lamp pct" "lamp s1" "lamp s2" "lamp s3" "lamp ." "btns btns" "msg msg" "queue queue"; align-items: start; }
  .hd { gap: 14px; align-items: flex-start; }
  .thumb { width: 60px; height: 42px; border-radius: 9px; }
  h1 { font-size: 16px; margin-bottom: 4px; } .meta { font-size: 11.5px; }
  .lampwrap { margin: 14px 0 0; align-self: stretch; }
  .lamp { height: clamp(330px, calc(100svh - 404px), 470px); }
  #cv { --gm: 44px; }
  .hint { display: none; }
  .st { justify-self: start; margin-top: 30px; font-size: 10.5px; }
  .pct { font-size: clamp(66px, 21vw, 84px); margin-top: 14px; align-self: start; }
  .stat { margin-top: 18px; padding: 0; }
  .stat .l { font-size: 10px; margin-bottom: 7px; } .stat .v { font-size: 15px; }
  .btns { margin-top: 16px; } .btns .btn { flex: 1; justify-content: center; height: 48px; }
  .msg:not(:empty) { margin-top: 14px; }
  .queue { margin-top: 18px; }
  .qi { gap: 12px; } .qi em { font-size: 11px; }
  .foot { padding: 4px 22px 26px; }
  .cap span { font-size: 15px; } .cap i { display: none; } .brandmark { display: none; }
  .toast { left: 12px; right: 12px; top: 64px; }
  /* upright fallback lamp */
  .no-fx .fb { inset: 0 3%; }
  .fb-glass { inset: 11% 6% 13%; }
  .fb-fill { top: auto; right: 0; width: auto; height: calc(var(--p, .68) * 100%); transition: height .5s linear;
    background: radial-gradient(90% 70% at 50% 100%, #ffd27a, #f08a2c 40%, rgba(90, 60, 50, .55) 85%); }
  .fb-fill i:nth-child(1) { left: 14%; top: 10%; width: 34%; } .fb-fill i:nth-child(2) { left: 56%; top: 22%; width: 26%; }
  .fb-fill i:nth-child(3) { left: 24%; top: 38%; width: 44%; } .fb-fill i:nth-child(4) { left: 60%; top: 58%; width: 24%; }
  .fb-fill i:nth-child(5) { left: 18%; top: 64%; width: 22%; }
  .fb-cold { display: none; }
  .fb-cap { left: 0; right: 0; width: auto; top: auto; bottom: auto; height: 12%; border-radius: 18% / 34%;
    background: linear-gradient(90deg, #5d6166, #d0d2d5 22%, #8a8e92 50%, #2c2f33 100%); box-shadow: inset 0 -6px 0 #c9ae74; }
  .fb-cap:first-of-type { top: 0; } .fb-cap:last-of-type { bottom: 0; right: 0; height: 14%; box-shadow: inset 0 6px 0 #c9ae74; }
}
@media (max-width: 360px) {
  :root { --lw: 118px; }
  .card { padding: 16px 14px; column-gap: 12px; }
  .pct { font-size: 60px; } .stat .v { font-size: 13.5px; } .st { letter-spacing: .14em; }
  .btn { padding: 0 12px; }
}
/* short landscape phones: keep the desktop layout but compact */
@media (max-height: 520px) and (min-width: 641px) {
  :root { --u: 0.62px; }
  .stage { padding: 12px 16px; }
  .lamp { height: 150px; }
  .foot { padding-bottom: 16px; } .cap i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st i { animation: none; }
  .bg-warm, .tog i, .tog i::after, .btn, .fb-fill { transition: none; }
  .toast { animation: none; }
}
