:root {
  /* Flappy Pinball mockup palette */
  --sky: #2f9be9;
  --ink: #14161f;
  --navy: #23305a;
  --gold: #ffd23a;
  --gold-d: #e89400;
  --green: #3fbf2e;
  --green-d: #23851a;
  --card: #fff8e6;
  --font: "Lilita One", "Arial Black", "Arial Rounded MT Bold", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--sky); overflow: hidden; }
body { font-family: var(--font); color: var(--ink); touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; }   /* v0.17.3: safe areas are added to the bars (--sat / --sab), see chrome.js */
#game { display: block; position: absolute; inset: 0; }
#hits { position: absolute; inset: 0; pointer-events: none; }
#hits button {
  position: absolute; pointer-events: auto; background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; border-radius: 18px; color: transparent; font-size: 1px; touch-action: none;
}
#hits button:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }

/* Fix list 25 Oct (#3): every notification is the one black pill (the Perch compact pill's size),
   dropping over the top bar: toasts, admin messages, the purchase bar and the Perch alerts */
#toasts { position: fixed; z-index: 95; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 4px); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.toast, .toast-bar { max-width: calc(100vw - 24px); box-sizing: border-box; background: #000; color: #fff; border: 0; border-radius: 99px; padding: 5px 16px; font: 400 13px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-text-stroke: 0; box-shadow: none; }
.toast { animation: toast 2s forwards; }
.toast.gold { color: #ffd23a; } .toast.green { color: #7be35a; }
@keyframes toast { 0% { transform: translateY(-140%); opacity: 0 } 12% { transform: translateY(0); opacity: 1 } 82% { opacity: 1; transform: translateY(0) } 100% { opacity: 0; transform: translateY(-140%) } }

/* Modals styled like the mockup UI: chunky ink outline, sky header, gold title */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: #061a33b8; }
.modal[hidden] { display: none; }
.card {
  width: min(420px, 100%); max-height: 90dvh; overflow: auto; text-align: center;
  background: var(--card); border: 6px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 #0007;
  animation: pop .38s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } }
.card header {
  background: linear-gradient(#56b9ff, #2a86e0); border-bottom: 5px solid var(--ink); padding: 14px 12px 10px;
  border-radius: 18px 18px 0 0;
}
.card h2 {
  margin: 0; font-weight: 400; font-size: clamp(30px, 8vmin, 46px); color: var(--gold); letter-spacing: 1px;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card p { margin: 0; font-size: 18px; line-height: 1.3; color: #2b3150; font-family: system-ui, sans-serif; font-weight: 700; }
.card .big { font-size: 54px; color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.btn {
  font-family: var(--font); font-size: 26px; color: #fff; padding: 12px 34px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(#7be05a, var(--green)); border: 5px solid var(--ink); box-shadow: 0 6px 0 var(--green-d), 0 8px 0 var(--ink);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
}
.btn.gold { background: linear-gradient(#ffe066, var(--gold)); box-shadow: 0 6px 0 var(--gold-d), 0 8px 0 var(--ink); }
.btn.slim { font-size: 18px; padding: 8px 18px; }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--green-d), 0 3px 0 var(--ink); }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.house { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font); font-size: 22px; color: var(--ink); }
.house img { width: 100%; max-width: 110px; transition: transform .2s; }
.house:hover img { transform: scale(1.06) rotate(-3deg); }
.house[disabled] { cursor: default; }
.house .amt { color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; font-size: 26px; min-height: 32px; }
.house.picked img { filter: drop-shadow(0 0 14px #ffd23a); transform: scale(1.1); }
.house.other { opacity: .55; }
.reveal { width: 180px; height: 150px; display: grid; place-items: center; background: radial-gradient(#fff6c8, #ffd23a 60%, #f39a00); border: 5px solid var(--ink); border-radius: 22px; }
.reveal canvas { width: 165px; height: 110px; image-rendering: pixelated; }
.menu { display: flex; flex-direction: column; gap: 12px; width: 100%; }
table.odds { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-weight: 700; font-size: 15px; color: #2b3150; }
table.odds td { padding: 6px 4px; border-bottom: 2px dashed #0002; text-align: left; }
table.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 14px !important; opacity: .9; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* RAID screen: Sidd's concept is the plate; everything is placed in its 853x1844 space via --u */
.raid { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; background: #3eaef0; }
.raid[hidden] { display: none; }
.raid-stage {
  position: relative; background: url("assets/raid_screen.webp") center / 100% 100% no-repeat; --u: 0.45px;
  animation: raidIn .35s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes raidIn { from { transform: scale(.85); opacity: 0 } }
.raid-stage.swap .raid-owner, .raid-stage.swap .raid-revenge { animation: swapIn .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes swapIn { from { transform: translateY(-50%) scale(.6); opacity: 0 } }
.raid-owner { position: absolute; left: calc(var(--u) * 296); width: calc(var(--u) * 410); top: calc(var(--u) * 282); transform: translateY(-50%);
  text-align: center; font-size: calc(var(--u) * 44); color: #fff; white-space: nowrap; letter-spacing: calc(var(--u) * 0.5);
  -webkit-text-stroke: calc(var(--u) * 9) #10173a; paint-order: stroke fill; }
.raid-shield { position: absolute; left: calc(var(--u) * 660); top: calc(var(--u) * 196); display: flex; flex-direction: column; align-items: center;
  font-size: calc(var(--u) * 18); color: #fff; -webkit-text-stroke: calc(var(--u) * 5) #10173a; paint-order: stroke fill; }
.raid-shield[hidden] { display: none; }
.raid-target { position: absolute; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; color: transparent; }
.raid-target:disabled { cursor: default; }
.raid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* v0.9: cloud transition + raid coin HUD */
.cloud-transition { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: auto; }
.raid-hud { position: absolute; right: calc(var(--u) * 10); top: calc(var(--u) * 8); height: calc(var(--u) * 54); min-width: calc(var(--u) * 170);
  display: flex; align-items: center; gap: calc(var(--u) * 8); padding: 0 calc(var(--u) * 18) 0 calc(var(--u) * 4);
  background: linear-gradient(#2c3c74, #1b2550); border: calc(var(--u) * 5) solid #10173a; border-radius: 999px;
  color: #fff; font-size: calc(var(--u) * 30); -webkit-text-stroke: calc(var(--u) * 6) #10173a; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.raid-hud img { width: calc(var(--u) * 56); margin-left: calc(var(--u) * -6); }
.raid-hud.pump { animation: hudPump .25s; }
@keyframes hudPump { 50% { transform: scale(1.12); } }

/* v0.10: victim header, pet hint, shield badge, result card */
.raid-owner { font-size: calc(var(--u) * 40); }
.raid-revenge { position: absolute; left: calc(var(--u) * 120); top: calc(var(--u) * 352); padding: calc(var(--u) * 4) calc(var(--u) * 14);
  background: #e8322e; border: calc(var(--u) * 4) solid #5a0b0b; border-radius: calc(var(--u) * 12); transform: rotate(-6deg);
  font-size: calc(var(--u) * 24); color: #fff; -webkit-text-stroke: calc(var(--u) * 5) #5a0b0b; paint-order: stroke fill; }
.raid-revenge[hidden] { display: none; }
.raid-shield .sb canvas { width: calc(var(--u) * 70); display: block; }
.raid-shield.broken { animation: shieldBreak .5s forwards; }
@keyframes shieldBreak { 30% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.raid-pethint { position: absolute; left: calc(var(--u) * 120); right: calc(var(--u) * 120); top: calc(var(--u) * 392); display: flex; align-items: center; gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 4) calc(var(--u) * 18) calc(var(--u) * 4) calc(var(--u) * 6); background: rgba(16, 23, 58, .82); border: calc(var(--u) * 4) solid #fff;
  border-radius: 999px; color: #fff; font: 700 calc(var(--u) * 22)/1.2 system-ui, sans-serif; animation: hintIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.raid-pethint b { color: #ffd23a; }
.raid-pethint canvas { width: calc(var(--u) * 64); flex: none; }
.raid-pethint[hidden] { display: none; }
.raid-stage.attacking .raid-pethint { opacity: 0; transition: opacity .3s; }
@keyframes hintIn { from { transform: translateY(calc(var(--u) * -20)) scale(.8); opacity: 0; } }
.raid-petwin { display: flex; align-items: center; gap: calc(var(--u) * 10); background: #fff1f8; border: calc(var(--u) * 4) solid #ff5fb4; border-radius: calc(var(--u) * 20); padding: calc(var(--u) * 6) calc(var(--u) * 14); }
.raid-petwin canvas { width: calc(var(--u) * 90); display: block; }
.raid-petmiss { font-size: calc(var(--u) * 22) !important; opacity: .8; }
.pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 50vh; overflow: auto; }
.pet { display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.pet canvas { width: 72px; }
.pet small { opacity: .7; font-size: 11px; }

/* v0.11: multiplier chip + picker tray (sized in CSS px, independent of the art scale) */
#hits .mult-chip {
  color: #fff; font-family: var(--font); border-radius: 50%; display: grid; place-items: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #5fb6ff, #1f5fd0 70%, #173f96); border: 3px solid #ffd23a;
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px #0b2a66; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
#hits .mult-chip b { font-weight: 400; transform: translateY(-6%); }
#hits .mult-chip i { position: absolute; bottom: 6%; font-style: normal; font-size: 40%; -webkit-text-stroke: 0; color: #ffe27a; }
#hits .mult-chip:active { transform: translateY(2px); }
#hits .mult-chip.bump { animation: chipBump .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes chipBump { 40% { transform: scale(1.2); } }
.mult-tray {
  position: absolute; z-index: 12; width: max-content; max-width: calc(100% - 32px); padding: 10px 12px 12px;
  background: linear-gradient(#2c3c74, #1b2550); border: 4px solid #ffd23a; border-radius: 18px;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px #0008; color: #fff; text-align: center; animation: pop .25s cubic-bezier(.2, 1.6, .4, 1);
}
.mt-head { font-size: 20px; color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; letter-spacing: 1px; }
.mt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.mt-opt {
  min-width: 48px; min-height: 48px; border-radius: 14px; font-family: var(--font); font-size: 22px; color: #fff; cursor: pointer;
  background: linear-gradient(#4f8fe8, #2459b8); border: 3px solid var(--ink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
.mt-opt.on { background: linear-gradient(#ffe066, var(--gold-d)); transform: translateY(-2px); box-shadow: 0 0 0 3px #fff; }
.mt-opt:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mt-info { font: 700 14px/1.35 system-ui, sans-serif; color: #dfe8ff; }
.mt-info b { color: var(--gold); font-family: var(--font); font-weight: 400; font-size: 17px; }
.mt-info small { opacity: .75; }
.preview-tag { align-self: center; padding: 2px 12px !important; border-radius: 999px; background: #2459b8; color: #fff !important; font-size: 13px !important; letter-spacing: 1px; }

/* v0.11: reward cards (bird reveal, raid result): navy surface, gold frame, one headline,
   one amount or result, one yellow CTA */
.card.reward {
  background: linear-gradient(#22346c, #131c42); border: 5px solid #ffd23a; box-shadow: 0 0 0 4px var(--ink), 0 12px 0 4px #0008;
  padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff;
}
.r-step { font: 700 13px system-ui, sans-serif; color: #bcd0ff; letter-spacing: 1px; }
.r-head { margin: 0; font-weight: 400; font-size: clamp(28px, 7.5vmin, 40px); color: var(--gold); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.r-name { font-size: 34px; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.r-sub { margin: 0; font: 700 15px/1.35 system-ui, sans-serif !important; color: #cfdcff !important; }
.r-amt { display: flex; align-items: center; gap: 8px; font-size: 48px; color: #ffe066; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }
.r-amt img { width: 46px; }
.r-bird { width: 180px; height: 132px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(#fff6c8 0, #ffd23a33 55%, transparent 70%); }
.r-bird canvas { width: 165px; height: 110px; image-rendering: pixelated; }
.card.reward .btn { margin-top: 6px; color: var(--ink); -webkit-text-stroke: 0; }

/* v0.11: raid UI layers (choose / locked / skip) and the single result card */
.raid-target:focus-visible { outline: 4px solid #fff; }
.raid-choose { position: absolute; left: 0; right: 0; top: calc(var(--u) * 1420); display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 22); }
.raid-choose[hidden] { display: none; }
.raid-reward { display: flex; align-items: center; gap: calc(var(--u) * 12); padding: calc(var(--u) * 8) calc(var(--u) * 14) calc(var(--u) * 8) calc(var(--u) * 8);
  background: linear-gradient(#2c3c74, #1b2550); border: calc(var(--u) * 5) solid #ffd23a; border-radius: 999px; box-shadow: 0 0 0 calc(var(--u) * 4) #10173a; }
.raid-reward img { width: calc(var(--u) * 64); }
.raid-reward span { display: flex; flex-direction: column; line-height: 1; }
.raid-reward small { font: 800 calc(var(--u) * 20) system-ui, sans-serif; color: #cfdcff; letter-spacing: calc(var(--u) * 1); }
.raid-reward b { font-weight: 400; font-size: calc(var(--u) * 46); color: #ffe066; -webkit-text-stroke: calc(var(--u) * 7) #10173a; paint-order: stroke fill; }
.raid-reward em { font-style: normal; font-size: calc(var(--u) * 30); color: #fff; background: #2459b8; border: calc(var(--u) * 4) solid #10173a; border-radius: 999px;
  padding: calc(var(--u) * 2) calc(var(--u) * 14); -webkit-text-stroke: calc(var(--u) * 5) #10173a; paint-order: stroke fill; }
.raid-prompt { font-size: calc(var(--u) * 64); color: #fff; -webkit-text-stroke: calc(var(--u) * 13) #10173a; paint-order: stroke fill; text-shadow: 0 calc(var(--u) * 8) 0 #10173a;
  animation: promptPulse 1.4s ease-in-out infinite; }
@keyframes promptPulse { 50% { transform: scale(1.04); } }
.raid-actions { display: flex; align-items: center; gap: calc(var(--u) * 18); }
.raid-switch { font-family: var(--font); font-size: calc(var(--u) * 38); color: #fff; min-height: 44px; padding: calc(var(--u) * 14) calc(var(--u) * 34); cursor: pointer;
  background: linear-gradient(#5fa6ff, #2459b8); border: calc(var(--u) * 6) solid #10173a; border-radius: calc(var(--u) * 30); box-shadow: 0 calc(var(--u) * 8) 0 #10173a;
  -webkit-text-stroke: calc(var(--u) * 6) #10173a; paint-order: stroke fill; display: flex; align-items: center; gap: calc(var(--u) * 10); }
.raid-switch small { font: 800 calc(var(--u) * 20) system-ui, sans-serif; -webkit-text-stroke: 0; background: #10173a; color: #ffe066; padding: calc(var(--u) * 4) calc(var(--u) * 10); border-radius: 999px; }
.raid-switch:disabled { filter: grayscale(.8) brightness(.85); cursor: default; }
.raid-switch:not(:disabled):active { transform: translateY(calc(var(--u) * 6)); box-shadow: 0 calc(var(--u) * 2) 0 #10173a; }
.raid-help { width: max(44px, calc(var(--u) * 84)); height: max(44px, calc(var(--u) * 84)); border-radius: 50%; cursor: pointer; font-family: var(--font); font-size: calc(var(--u) * 46);
  color: #fff; background: linear-gradient(#5b62c9, #343a8f); border: calc(var(--u) * 6) solid #10173a; -webkit-text-stroke: calc(var(--u) * 5) #10173a; paint-order: stroke fill; }
.raid-switch:focus-visible, .raid-help:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.raid-locked { position: absolute; left: 0; right: 0; top: calc(var(--u) * 1500); text-align: center; font-size: calc(var(--u) * 66); color: #ffd23a;
  -webkit-text-stroke: calc(var(--u) * 13) #10173a; paint-order: stroke fill; text-shadow: 0 calc(var(--u) * 8) 0 #10173a; animation: lockedIn .3s cubic-bezier(.2, 1.8, .4, 1); pointer-events: none; }
.raid-locked[hidden] { display: none; }
@keyframes lockedIn { from { transform: scale(1.8); opacity: 0; } }
.raid-skip { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; color: #ffffffcc; font-family: var(--font); font-size: calc(var(--u) * 30);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--u) * 420); -webkit-text-stroke: calc(var(--u) * 5) #10173a; paint-order: stroke fill; }
.raid-skip[hidden] { display: none; }
.raid-shield.shield-in { animation: shieldReveal .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes shieldReveal { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.35); } }
.raid-result { position: absolute; left: calc(var(--u) * 90); right: calc(var(--u) * 90); top: calc(var(--u) * 1130); padding: calc(var(--u) * 30) calc(var(--u) * 30) calc(var(--u) * 36);
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 10); text-align: center; color: #fff;
  background: linear-gradient(#22346c, #131c42); border: calc(var(--u) * 7) solid #ffd23a; border-radius: calc(var(--u) * 36);
  box-shadow: 0 0 0 calc(var(--u) * 6) #10173a, 0 calc(var(--u) * 16) 0 calc(var(--u) * 6) rgba(0, 0, 0, .45); animation: pop .38s cubic-bezier(.2, 1.6, .4, 1); }
.raid-result[hidden] { display: none; }
.raid-result h3 { margin: 0; font-weight: 400; font-size: calc(var(--u) * 56); color: #ffd23a; -webkit-text-stroke: calc(var(--u) * 10) #10173a; paint-order: stroke fill; }
.raid-result.blocked h3 { color: #bfe9ff; }
.rc-icon canvas { width: calc(var(--u) * 110); display: block; }
.rc-amt { display: flex; align-items: center; gap: calc(var(--u) * 12); font-size: calc(var(--u) * 92); line-height: 1; color: #ffe066; -webkit-text-stroke: calc(var(--u) * 13) #10173a; paint-order: stroke fill; }
.rc-amt img { width: calc(var(--u) * 84); }
.rc-sub { margin: 0; font: 700 calc(var(--u) * 26)/1.3 system-ui, sans-serif; color: #cfdcff; }
.rc-math { margin: 0; font: 700 calc(var(--u) * 20) system-ui, sans-serif; color: #8fa6dd; }
.raid-result .raid-petwin { background: #ffffff14; border-color: #ff8fc8; color: #fff; }
.raid-result .raid-petwin p { margin: 0; font: 700 calc(var(--u) * 24)/1.3 system-ui, sans-serif; }
.raid-result .raid-petmiss { margin: 0; font: 700 calc(var(--u) * 22)/1.3 system-ui, sans-serif; color: #a9bbe8; }
.raid-result .btn { font-size: max(22px, calc(var(--u) * 46)); padding: calc(var(--u) * 16) calc(var(--u) * 90); color: #10173a; -webkit-text-stroke: 0; margin-top: calc(var(--u) * 8); }

/* =====================================================================================
   Flappy Island shell (v0.14): screens, design-space stages, HUD layers, nav, race, base,
   birds, shop, trophy road, world map. Stages place children with calc(var(--u) * px).
   ===================================================================================== */
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--sky); }
.screen[hidden] { display: none; }
.screen.overlay { z-index: 12; background: #061a33cc; }
.stage { position: absolute; --u: 0.35px; font-size: calc(var(--u) * 30); }
.home-stage { background: url("assets/home.webp") center / 100% 100% no-repeat; }
.base-stage { background: url("assets/base.webp") center / 100% 100% no-repeat; }
.stage > * { position: absolute; }
.base-canvas { left: 0; top: 0; pointer-events: none; }

/* live numbers drawn over the baked ones */
.hud-num { display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #232b3a; color: #fff; font-size: calc(var(--u) * 36); letter-spacing: calc(var(--u) * 1); -webkit-text-stroke: calc(var(--u) * 2) #0d1220; paint-order: stroke fill; }
.hud-num.balls { background: #1e2738; }
.hud-world { display: flex; align-items: center; justify-content: center; background: #044923; color: #fff; border-radius: 999px; font: 700 calc(var(--u) * 22) system-ui, sans-serif; letter-spacing: calc(var(--u) * 1); }
.hud-trophy { display: flex; align-items: center; justify-content: center; background: linear-gradient(#ffe85a, #f9b602); color: #fff; border-radius: 999px; font-size: calc(var(--u) * 34); -webkit-text-stroke: calc(var(--u) * 6) #5a3a00; paint-order: stroke fill; }
.hud-bird { display: flex; align-items: center; justify-content: center; background: #f5f0ee; color: #1b2a4a; border-radius: 999px; font-size: calc(var(--u) * 30); letter-spacing: calc(var(--u) * 1); white-space: nowrap; overflow: hidden; border: calc(var(--u) * 4) solid #14161f; }
.hud-worldname { display: flex; align-items: center; justify-content: center; background: #3fbf2e; color: #fff; border-radius: 999px; font-size: calc(var(--u) * 36); -webkit-text-stroke: calc(var(--u) * 5) #1b4a12; paint-order: stroke fill; }
.hud-worldnum { display: flex; align-items: center; justify-content: center; background: #0d1a3a; color: #fff; border-radius: 999px; font: 800 calc(var(--u) * 20) system-ui, sans-serif; }
.home-bird { display: grid; place-items: center; pointer-events: none; }
.home-bird canvas { width: 100% !important; height: auto !important; filter: drop-shadow(0 calc(var(--u) * 8) 0 #0003); animation: hover 2.4s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(calc(var(--u) * -18)) rotate(4deg) } }
.hit { background: transparent; border: 0; padding: 0; cursor: pointer; color: transparent; font-size: 1px; border-radius: calc(var(--u) * 24); }
.hit.round { border-radius: 50%; }
.hit:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.hit.play:active { background: #ffffff22; }

/* chest slots (home) */

/* bottom nav */
.navbar { left: calc(var(--u) * 100); right: calc(var(--u) * 100); bottom: calc(var(--u) * 10); height: calc(var(--u) * 150); display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--u) * 16); z-index: 3; }
.home-stage .navbar { left: calc(var(--u) * 108); right: calc(var(--u) * 118); bottom: calc(var(--u) * 8); height: calc(var(--u) * 142); }
.base-stage .navbar { left: calc(var(--u) * 24); right: calc(var(--u) * 24); bottom: calc(var(--u) * 10); height: calc(var(--u) * 160); gap: calc(var(--u) * 10); }
.navbar button { position: relative; overflow: hidden; border-radius: calc(var(--u) * 26); border: calc(var(--u) * 6) solid #14161f; background: linear-gradient(#f4f4f4, #a6dbf8); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: calc(var(--u) * 6); cursor: pointer; font-family: var(--font); color: #fff; font-size: calc(var(--u) * 28); -webkit-text-stroke: calc(var(--u) * 5) #14161f; paint-order: stroke fill; box-shadow: 0 calc(var(--u) * 6) 0 #14161f; }
.navbar button.on { background: linear-gradient(#0296fa, #027ffa); transform: translateY(calc(var(--u) * -8)); }
.navbar button.on .ico { filter: drop-shadow(0 0 calc(var(--u) * 6) #fff8); }
/* icons are the mockup's own nav art (assets/ui/nav_*.webp); the opaque ones carry the pale button face */
.navbar .ico { width: 92%; flex: 1; margin-top: calc(var(--u) * 4); background: center top / 100% auto no-repeat; border-radius: calc(var(--u) * 14) calc(var(--u) * 14) 0 0; }
.nav-shop .ico { background-image: url("assets/ui/nav_shop.webp"); } .nav-birds .ico { background-image: url("assets/ui/nav_birds.webp"); }
.nav-home .ico { background-image: url("assets/ui/nav_home.png"); background-size: 78% auto; background-position: center 30%; }
.nav-pinball .ico { background-image: url("assets/ui/nav_pinball.webp"); background-size: auto 100%; }
.nav-base .ico { background-image: url("assets/ui/nav_base.webp"); }
.navbar button.on .ico { box-shadow: inset 0 0 0 calc(var(--u) * 3) #ffffff66; border-radius: calc(var(--u) * 14); }
.navbar button.on.nav-home .ico { box-shadow: none; }
.navbar .badge { position: absolute; top: calc(var(--u) * -14); right: calc(var(--u) * -10); background: #ff3b3b; border: calc(var(--u) * 4) solid #14161f; border-radius: 999px; min-width: calc(var(--u) * 44); padding: 0 calc(var(--u) * 8); font-size: calc(var(--u) * 24); }

/* ---------- race ---------- */
#s-race { background: #063b6e; touch-action: none; }
.race-stage { overflow: hidden; background: transparent; z-index: 1; }
.race-canvas { position: absolute; left: 0; top: 0; }
.race-hud { position: absolute; inset: 0; pointer-events: none; }
.race-hud > * { position: absolute; }
.race-roster .rr { width: 36px; height: 26px; display: grid; place-items: center; transition: opacity .3s, filter .3s; }
.race-roster .rr canvas { width: 36px !important; height: auto !important; }
.race-roster .rr.out { opacity: .22; filter: grayscale(1); }
.race-roster .rr.you { outline: 2px solid #ffd23a; outline-offset: -1px; border-radius: 6px; }
.race-feed { left: 0; right: 0; bottom: 20%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.race-feed .fe { display: flex; align-items: center; gap: 8px; background: #1a1a1fde; border-radius: 14px; padding: 6px 16px; color: #fff; font: 700 17px system-ui, sans-serif; transition: opacity .3s; }
.race-feed .fe canvas { width: 30px !important; height: auto !important; filter: grayscale(.6); }
.race-feed .fe b { color: #ff5a5a; }
.race-hint { left: 0; right: 0; bottom: 8%; text-align: center; color: #fff; font-size: 30px; -webkit-text-stroke: 5px #14161f; paint-order: stroke fill; }
.race-hint[hidden] { display: none; }
.race-hint .tap { display: block; margin: 0 auto 8px; width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff9; animation: tapRing 1.1s ease-out infinite; }
@keyframes tapRing { 0% { transform: scale(.5); opacity: 1 } 100% { transform: scale(1.3); opacity: 0 } }
.race-banner { left: 0; right: 0; top: 34%; text-align: center; color: #fff; }
.race-banner[hidden] { display: none; }
.race-banner b { display: block; font-size: clamp(44px, 12vmin, 96px); color: var(--gold); -webkit-text-stroke: 8px #14161f; paint-order: stroke fill; text-shadow: 0 6px 0 #14161f; }
.race-banner span { font-size: clamp(20px, 5vmin, 34px); -webkit-text-stroke: 5px #14161f; paint-order: stroke fill; }
.race-banner.in { animation: bannerIn .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bannerIn { from { transform: scale(.3); opacity: 0 } }
.race-pausecard, .race-result { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: #061a33b8; pointer-events: auto; z-index: 5; }
.race-pausecard[hidden], .race-result[hidden] { display: none; }
.race-pausecard .body { gap: 14px; }
.rs { width: min(430px, 100%); text-align: center; padding: 22px 20px 24px; background: linear-gradient(#1b2a5a, #0f1a3c); border: 6px solid var(--gold); border-radius: 28px; color: #fff; box-shadow: 0 12px 0 #0007; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rs-place { font-size: 64px; color: #fff; -webkit-text-stroke: 9px #10173a; paint-order: stroke fill; }
.rs-place.win { color: var(--gold); }
.rs-sub { font: 700 18px system-ui, sans-serif; color: #cfdcff; }
.rs-rewards { display: flex; gap: 22px; justify-content: center; }
.rs-r { display: flex; align-items: center; gap: 8px; font-size: 44px; color: #ffe066; -webkit-text-stroke: 7px #10173a; paint-order: stroke fill; }
.rs-r img { width: 44px; }
.rs-chest { display: flex; align-items: center; gap: 12px; background: #ffffff14; border: 3px solid #ffd23a; border-radius: 16px; padding: 8px 14px; text-align: left; font: 700 15px system-ui, sans-serif; color: #fff; }
.rs-chest .ch { width: 46px; height: 40px; border-radius: 8px; background: #d98312; border: 3px solid #3a1d0c; flex: none; }
.rs-chest.silver .ch { background: #5e7fa8; } .rs-chest.bronze .ch { background: #8a4a1e; }
.rs-chest small { display: block; opacity: .75; }
.rs-note { margin: 0; font: 700 14px system-ui, sans-serif; color: #8fa6dd; }
.rs-mastery { display: flex; align-items: center; gap: 12px; width: 100%; background: #ffffff10; border-radius: 16px; padding: 8px 12px; font: 700 15px system-ui, sans-serif; text-align: left; }
.rs-mastery .mb canvas { width: 64px !important; height: auto !important; }
.rs-mastery > div { flex: 1; }
.rs-mastery .bar, .wb-bar { flex: none; height: 12px; background: #0d1a3a; border-radius: 999px; overflow: hidden; margin: 4px 0; border: 2px solid #0008; }
.rs-mastery .bar i, .wb-bar i { display: block; height: 100%; background: linear-gradient(#8ef05a, #3fbf2e); border-radius: 999px; transition: width .6s; }
.rs-mastery small { opacity: .7; }
.rs-actions { display: flex; gap: 12px; margin-top: 6px; }
.rs-actions .btn { font-size: 22px; padding: 10px 22px; white-space: nowrap; }

/* ---------- base ---------- */
@keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

/* ---------- birds / shop ---------- */

.hud-num, .hud-world, .hud-trophy, .hud-bird, .hud-worldname, .hud-worldnum, .shield-box, .base-canvas, .home-bird, .base-panel { pointer-events: none; }
.raid-revenge.friend { background: #2f8be6; border-color: #0b2a5a; -webkit-text-stroke-color: #0b2a5a; }
/* v0.15 world palettes (stand-ins from tools/gen_world_art.py) */
.base-stage[data-world="2"] { background-image: url("assets/w2/base.webp"); }
.base-stage[data-world="3"] { background-image: url("assets/w3/base.webp"); }
/* ---- v0.15 shared modal (P05): visible close, readable text ---- */
.card header { position: relative; padding-left: 52px; padding-right: 52px; }
.card .xbtn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(#ff6b5e, #d92b20); border: 4px solid var(--ink); color: #fff; font: 22px/1 var(--font); cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; padding: 0; }
.card .xbtn:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.card .note, .card small { font-size: 14px; line-height: 1.35; color: #3b4266; font-family: system-ui, sans-serif; font-weight: 700; }
.card .btn { min-height: 44px; }
.bird-sprite { image-rendering: pixelated; }
.btn.danger { background: linear-gradient(#ff7b6e, #d92b20); box-shadow: 0 6px 0 #8f1810, 0 8px 0 var(--ink); }

/* ---------- v0.15 sheet screens: Shop, Birds, Trophy Road, World Map (clean sky, readable) ---------- */
.sheet-stage, .birds-stage { background: url("assets/bg_sky.webp") center / 100% 100% no-repeat; }
.screen.overlay { background: #0b3a6a; }
.sheet-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 calc(var(--u) * 30); }
.sheet-head .sh-title { flex: 1; text-align: center; min-width: 0; }
.sheet-head h1 { margin: 0; font-weight: 400; font-size: max(26px, calc(var(--u) * 84)); line-height: 1; color: var(--gold); -webkit-text-stroke: max(5px, calc(var(--u) * 12)) var(--ink); paint-order: stroke fill; text-shadow: 0 max(3px, calc(var(--u) * 8)) 0 var(--ink); }
.sheet-head .sh-sub { font: 800 max(12px, calc(var(--u) * 22)) system-ui, sans-serif; color: #fff; text-shadow: 0 1px 0 #0b2a55, 0 0 6px #0b2a55; margin-top: 4px; }
.sq { flex: none; width: max(44px, calc(var(--u) * 110)); height: max(44px, calc(var(--u) * 110)); border-radius: 14px; border: 4px solid var(--ink); color: #fff; font: 700 max(22px, calc(var(--u) * 54))/1 system-ui, sans-serif; cursor: pointer; background: linear-gradient(#6fd0ff, #1f86e6); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; padding: 0; }
.sq.close { background: linear-gradient(#ff8a8a, #d83a3a); }
.sq:focus-visible, .pill:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.sheet-pills { position: absolute; left: 0; right: 0; top: calc(100% + 4px); display: flex; justify-content: center; gap: 10px; }
.shop-stage .sheet-head { flex-wrap: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 2px 6px 2px 4px; border-radius: 999px; border: 3px solid var(--ink); background: #232b3a; color: #fff; font: 400 max(16px, calc(var(--u) * 34)) var(--font); cursor: pointer; }
.pill img { width: max(26px, calc(var(--u) * 54)); }
.pill .plus { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(#7be05a, var(--green)); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 20px; scrollbar-width: thin; }
.shop-stage .sheet-body { top: calc(var(--u) * 330) !important; height: calc(var(--u) * 1420) !important; }
.shop-sec { border-radius: 18px; padding: 8px; transition: background .3s; }
.shop-sec h2 { margin: 0 0 6px 4px; font-weight: 400; font-size: max(18px, calc(var(--u) * 40)); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.shop-sec.focus { animation: secFocus 1.6s ease-out; }
@keyframes secFocus { 0%, 40% { background: #ffd23a99; box-shadow: 0 0 0 4px #fff; } 100% { background: transparent; box-shadow: none; } }
.shop-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.offer { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 18px; border: 4px solid var(--ink); background: linear-gradient(#fff8e6, #ffe9b8); color: #1e2a4a; box-shadow: 0 4px 0 #0005; }
.offer img { grid-row: 1; width: 52px; height: 52px; object-fit: contain; }
.offer .o-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer .o-txt b { font: 400 18px var(--font); }
.offer .o-txt small { font: 700 14px/1.3 system-ui, sans-serif; color: #3b4266; }
.offer .btn { grid-column: 1 / -1; font-size: 18px; padding: 8px 14px; min-height: 44px; }
.offer.off { filter: saturate(.4); }
.offer .btn[disabled] { filter: grayscale(1); opacity: .8; cursor: default; }
.sheet-foot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.sheet-foot small { font: 800 max(13px, calc(var(--u) * 22)) system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #0b2a55; }
.sheet-foot .btn { font-size: max(20px, calc(var(--u) * 40)); }
.road-count { position: absolute; left: 0; right: 0; top: calc(100% + 2px); text-align: center; color: #fff; font-size: max(16px, calc(var(--u) * 36)); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.road-count b { color: var(--gold); }
.road-list { padding-top: 6px; }
.ms { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; border: 4px solid var(--ink); background: linear-gradient(#eaf4ff, #bfd9f7); color: #1e2a4a; }
.ms-ico { width: max(52px, calc(var(--u) * 130)); height: max(52px, calc(var(--u) * 130)); object-fit: cover; border-radius: 12px; border: 3px solid #fff; }
.ms-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms .at { align-self: flex-start; background: #1f86e6; color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 15px; }
.ms b { font: 400 max(17px, calc(var(--u) * 36)) var(--font); }
.ms small { font: 700 14px/1.3 system-ui, sans-serif; color: #3b4266; }
.ms .ms-active { font: 800 13px system-ui, sans-serif; color: #1d7a12; font-style: normal; }
.ms .state { font: 800 14px system-ui, sans-serif; color: #2a8a1e; white-space: nowrap; }
.ms.locked { background: linear-gradient(#dfe6f0, #b8c6da); } .ms.locked .state { color: #4a5680; } .ms.locked .ms-ico { filter: saturate(.5); }
.ms.claimable { border-color: var(--gold); background: linear-gradient(#fff6c8, #ffd23a); animation: pulse 1.4s ease-in-out infinite; }
.ms.next { box-shadow: 0 0 0 4px var(--gold); } .ms.next .state { color: #c46f00; }
.ms .btn { font-size: 18px; padding: 8px 14px; }
.ms-you { align-self: center; background: #ffd23a; border: 4px solid var(--ink); border-radius: 999px; padding: 4px 18px; color: #fff; font-size: 20px; -webkit-text-stroke: 4px #5a3a00; paint-order: stroke fill; }
.map-list { gap: 16px; }
.world { position: relative; flex: 1 1 0; min-height: 132px; border-radius: 20px; border: 4px solid var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #6fc6f4; }
.world .wart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world.locked .wart { filter: grayscale(.4) brightness(.7); }
.world .lock { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: max(40px, calc(var(--u) * 110)); filter: drop-shadow(0 3px 0 #0008); }
.world.current { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold); }
.world .wlabel { position: relative; background: #10173add; padding: 8px 14px; display: flex; flex-direction: column; gap: 4px; font-size: max(18px, calc(var(--u) * 38)); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.world .ok { color: #8ef05a; font-size: 16px; } .world .lk { color: #dfe8ff; font: 800 14px system-ui, sans-serif; -webkit-text-stroke: 0; }
.world .wprog small { font: 800 14px system-ui, sans-serif; -webkit-text-stroke: 0; color: #ffd23a; }
.world .wb-bar { height: 10px; border-radius: 99px; background: #0b1a3a; overflow: hidden; } .world .wb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6fdc4a, #ffd23a); }
.world .tag { position: absolute; top: 10px; left: 10px; background: #e8322e; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: 15px; -webkit-text-stroke: 3px #5a0b0b; paint-order: stroke fill; }

.sq.info { background: linear-gradient(#ffe066, var(--gold-d)); color: var(--ink); }
.flock-body { gap: 10px; }
.flock-set { background: #0b2a55aa; border: 3px solid #ffffff55; border-radius: 18px; padding: 8px; }
.flock-set h2 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-weight: 400; font-size: max(18px, calc(var(--u) * 40)); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.flock-set h2 small { font: 800 13px system-ui, sans-serif; -webkit-text-stroke: 0; color: #ffd23a; }
.flock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bird-tile { position: relative; min-height: 112px; border-radius: 14px; border: 3px solid var(--ink); background: linear-gradient(#5fd0ff, #1f86e6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px; color: #fff; font: 400 max(13px, calc(var(--u) * 26)) var(--font); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; cursor: pointer; }
.bird-tile:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.bird-tile.r2 { background: linear-gradient(#b48cff, #6a3fd0); } .bird-tile.r3 { background: linear-gradient(#ffd56a, #f08a00); }
.bird-tile .art canvas { max-width: 100%; height: auto; }
.bird-tile .rar { font: 800 11px system-ui, sans-serif; -webkit-text-stroke: 0; color: #fff; opacity: .95; letter-spacing: .5px; }
.bird-tile.equipped { box-shadow: 0 0 0 3px #fff, 0 0 12px 3px #fff; }
.bird-tile .eq { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: #fff; color: #1f86e6; border: 2px solid var(--ink); border-radius: 99px; padding: 0 6px; font: 800 11px system-ui, sans-serif; -webkit-text-stroke: 0; white-space: nowrap; }
.bird-tile .newb { position: absolute; top: -6px; right: -4px; background: #e8322e; color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 6px; font: 800 11px system-ui, sans-serif; -webkit-text-stroke: 0; animation: pulse 1.2s infinite; }
.bird-tile .dup { position: absolute; top: 2px; left: 4px; font: 800 11px system-ui, sans-serif; -webkit-text-stroke: 0; color: #fff; }
.bird-tile .stars { display: flex; gap: 2px; }
.bird-tile .stars i { width: 13px; height: 13px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #0b2a55; }
.bird-tile .stars i.on { background: var(--gold); }
.bird-tile.locked { background: linear-gradient(#3a4f88, #1a2550); }
.flock-foot { display: flex; align-items: center; gap: 10px; background: #10173aee; border: 3px solid var(--gold); border-radius: 999px; padding: 6px 8px 6px 14px; color: #fff; font: 800 14px system-ui, sans-serif; }
.flock-foot img { width: 30px; } .flock-foot span { flex: 1; } .flock-foot .btn { font-size: 16px; padding: 6px 14px; }
.bird-sheet { min-height: 130px; display: grid; place-items: center; background: radial-gradient(#ffffff, #bfe6ff 70%); border: 4px solid var(--ink); border-radius: 18px; width: 100%; }
.rar-chip { display: inline-block; padding: 1px 10px; border-radius: 99px; color: #fff; background: #1f86e6; border: 2px solid var(--ink); font-size: 14px; }
.rar-chip.r2 { background: #7b3fe4; } .rar-chip.r3 { background: #f08a00; }

/* ---------- v0.15 home ---------- */
#s-home { background: linear-gradient(#4ac7fd 0, #4ac7fd 12%, #9ad0fe 88%, #9ad0fe 100%); }
#s-base { background: linear-gradient(#2ec1fd 0, #2ec1fd 12%, #129bf8 88%, #129bf8 100%); }
#s-shop, #s-birds, #s-trophyroad, #s-worldmap { background: linear-gradient(#2d96e7 0, #2d96e7 12%, #08bffe 88%, #08bffe 100%); }
.hud-world { white-space: nowrap; overflow: hidden; font-size: calc(var(--u) * 19) !important; }
.hit.plus { border-radius: 50%; }
.offer-tag { display: grid; place-items: center; border-radius: 999px; border: calc(var(--u) * 4) solid #14161f; background: linear-gradient(#7be05a, #2f9a1f); color: #fff; font-size: calc(var(--u) * 24); -webkit-text-stroke: calc(var(--u) * 4) #14161f; paint-order: stroke fill; pointer-events: none; }
.offer-tag[hidden] { display: none; }
.offer-tag.done, .offer-tag.starter { background: linear-gradient(#cfd6e4, #8a94aa); }
.offer-tag.fest { background: linear-gradient(#56b9ff, #2a86e0); }
.chest-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 20); }
.chest-slot { position: relative; overflow: hidden; border-radius: calc(var(--u) * 22); border: calc(var(--u) * 5) solid #0d2c6a; background: linear-gradient(#1d6fd6, #1456b8); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 4); padding: 0 calc(var(--u) * 8) calc(var(--u) * 8); cursor: pointer; color: #fff; text-align: center; font-family: var(--font); font-size: calc(var(--u) * 26); -webkit-text-stroke: calc(var(--u) * 4) #0d2c6a; paint-order: stroke fill; }
.chest-slot:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.chest-slot .chest-art { width: 100%; aspect-ratio: 186 / 123; background: url("assets/ui/chest_gold.webp") center / 100% 100% no-repeat; }
.chest-slot.silver .chest-art { background-image: url("assets/ui/chest_blue.webp"); } .chest-slot.bronze .chest-art { background-image: url("assets/ui/chest_bronze.webp"); }
.chest-slot.gold { background: linear-gradient(#f9c21a, #f08a00); }
.chest-slot.silver { background: linear-gradient(#4aa6ff, #1a62d6); }
.chest-slot.bronze { background: linear-gradient(#d98a3c, #9a4e14); }
.chest-slot .cta { width: 100%; border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 2) calc(var(--u) * 4); font-weight: 400; font-size: max(10px, calc(var(--u) * 24)); background: linear-gradient(#ffe066, #ffb400); border: calc(var(--u) * 3) solid #5a3a00; -webkit-text-stroke: calc(var(--u) * 4) #5a3a00; white-space: nowrap; }
.chest-slot .sub { font: 800 max(9px, calc(var(--u) * 17))/1.1 system-ui, sans-serif; -webkit-text-stroke: 0; color: #fff; text-shadow: 0 1px 0 #0008; white-space: nowrap; }
.chest-slot.opening .cta { background: #0d2c6a; border-color: #0d2c6a; -webkit-text-stroke: 0; font: 800 max(10px, calc(var(--u) * 24)) system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.chest-slot.ready .chest-art { animation: chestShake 1.2s ease-in-out infinite; }
.chest-slot.ready .cta { animation: pulse 1s ease-in-out infinite; }
/* empty = an open cradle waiting for a chest; locked = padlock card (V08) */
.chest-slot.empty { background: #1a5fc0; border-style: dashed; border-color: #9fd0ff; justify-content: center; cursor: default; }
.chest-slot.empty .chest-art { background-image: url("assets/ui/chest_gold.webp"); filter: brightness(0) invert(1); opacity: .22; }
.chest-slot.empty .cta { background: none; border: 0; -webkit-text-stroke: 0; color: #cfe6ff; font: 800 max(10px, calc(var(--u) * 20)) system-ui, sans-serif; }
.chest-slot.locked { background: #23315e; border-color: #0d1a3a; cursor: default; justify-content: center; }
.chest-slot.locked .chest-art { background-image: url("assets/ui/chest_locked.webp"); opacity: .85; }
.chest-slot.locked .cta { display: none; }
.chest-slot.locked .sub { color: #ffd23a; white-space: normal; line-height: 1.1; }
.chest-slot .sub { white-space: normal; }
.raid-banner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: calc(var(--u) * 6) calc(var(--u) * 12); background: #10173af2; border: calc(var(--u) * 5) solid #ff5fb4; border-radius: calc(var(--u) * 24); padding: calc(var(--u) * 10) calc(var(--u) * 16); color: #fff; font: 700 max(12px, calc(var(--u) * 26))/1.2 system-ui, sans-serif; z-index: 2; box-shadow: 0 calc(var(--u) * 8) 0 #0006; }
.raid-banner[hidden] { display: none; }
.raid-banner .rb-ico { grid-row: 1 / 3; font-size: max(18px, calc(var(--u) * 60)); }
.raid-banner .rb-txt { font-size: max(12px, calc(var(--u) * 28)); }
.raid-banner .rb-txt b { color: #ffd23a; }
.raid-banner .rb-acts { display: flex; gap: calc(var(--u) * 10); align-items: center; }
.raid-banner .btn { font-size: max(13px, calc(var(--u) * 26)); padding: calc(var(--u) * 6) calc(var(--u) * 18); min-height: max(32px, calc(var(--u) * 64)); }
.raid-banner .rb-x { margin-left: auto; width: max(32px, calc(var(--u) * 64)); height: max(32px, calc(var(--u) * 64)); border-radius: 50%; border: 3px solid #fff8; background: none; color: #fff; font: 700 16px system-ui; cursor: pointer; }

/* ---------- v0.15 chest opening sequence (P01) ---------- */
.chestfx { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(#1d6fd6ee, #061a33f2); color: #fff; animation: fadeIn .2s; touch-action: none; }
.chestfx.out { opacity: 0; transition: opacity .2s; }
@keyframes fadeIn { from { opacity: 0 } }
.cf-stage { position: relative; width: min(420px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cf-name, .cf-title { font-size: 34px; color: var(--gold); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); margin: 0; font-weight: 400; }
.cf-title { font-size: 44px; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.cf-chest { width: 62%; position: relative; z-index: 1; }
.cf-chest img { width: 100%; display: block; filter: drop-shadow(0 8px 0 #0006); }
.cf-chest.lift { animation: cfLift .3s ease-out forwards; }
.cf-chest.open img { animation: cfOpen .45s ease-out forwards; }
@keyframes cfLift { to { transform: translateY(-18px) scale(1.06); } }
@keyframes cfOpen { 0% { transform: rotate(0) } 25% { transform: rotate(-6deg) scale(1.05) } 50% { transform: rotate(6deg) scale(1.1); filter: brightness(1.6) drop-shadow(0 0 24px #fff6c8); } 100% { transform: scale(1.12); filter: brightness(1.25) drop-shadow(0 0 30px #ffd23a); } }
.cf-glow { position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.2); border-radius: 50%; background: repeating-conic-gradient(#fff6c855 0 10deg, transparent 10deg 20deg); opacity: 0; pointer-events: none; }
.cf-glow.on { animation: cfGlow .45s ease-out forwards, spin 8s linear infinite; }
@keyframes cfGlow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes spin { to { rotate: 360deg; } }
.cf-cards { display: flex; gap: 12px; justify-content: center; min-height: 140px; flex-wrap: wrap; }
.cf-card { width: 132px; padding: 10px 6px; border-radius: 18px; border: 4px solid var(--ink); background: linear-gradient(#3aa0ff, #1456b8); display: flex; flex-direction: column; align-items: center; gap: 2px; animation: cfCard .28s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 6px 0 #0006; }
.cf-card.still { animation: none; }
@keyframes cfCard { from { transform: translateY(60px) scale(.3); opacity: 0 } }
.cf-card img { width: 64px; height: 64px; object-fit: contain; }
.cf-card b { font-size: 30px; font-weight: 400; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.cf-card small { font: 800 14px system-ui, sans-serif; color: #dfe8ff; }
.cf-progress { font: 800 14px system-ui, sans-serif; background: #0008; border-radius: 99px; padding: 4px 14px; min-height: 1em; }
.cf-progress:empty { visibility: hidden; }
.cf-skip { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 3px solid #fff8; background: #0008; color: #fff; font: 800 15px system-ui, sans-serif; cursor: pointer; }
.cf-receipt { font: 700 13px system-ui, sans-serif; color: #cfe0ff; margin: 0; }
.cf-great { min-width: 220px; }
.cf-fly { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 45; pointer-events: none; }
.cf-burst { position: absolute; inset: -40px; background: radial-gradient(#fff6c866, transparent 60%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cf-glow.on, .chest-slot.ready .chest-art, .chest-slot.ready .cta { animation: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }
@keyframes chestShake { 0%, 70%, 100% { transform: rotate(0) } 75% { transform: rotate(-5deg) } 85% { transform: rotate(5deg) } 95% { transform: rotate(-2deg) } }
/* ---------- v0.15 base build sheet (P04) ---------- */
.build-sheet { z-index: 4; display: grid; grid-template-columns: auto 1fr; gap: calc(var(--u) * 18); align-items: center; padding: calc(var(--u) * 22); border-radius: calc(var(--u) * 30); border: calc(var(--u) * 6) solid #14161f; background: linear-gradient(#fffaf0, #ffe9b8); box-shadow: 0 calc(var(--u) * 10) 0 #0007; color: #1e2a4a; animation: sheetUp .25s cubic-bezier(.2, 1.3, .4, 1); }
.build-sheet[hidden] { display: none; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0 } }
.bs-thumb { width: calc(var(--u) * 250); height: calc(var(--u) * 250); border-radius: 50%; border: calc(var(--u) * 6) solid #14161f; background: #8fd6ff; }
.bs-body { display: flex; flex-direction: column; gap: calc(var(--u) * 10); min-width: 0; }
.bs-body h3 { margin: 0; font-weight: 400; font-size: max(20px, calc(var(--u) * 56)); color: #1e2a4a; padding-right: calc(var(--u) * 80); }
.bs-stage { font-size: max(16px, calc(var(--u) * 40)); }
.bs-trophy { font: 800 max(14px, calc(var(--u) * 32)) system-ui, sans-serif; color: #a86a00; }
.bs-body small { font: 700 max(13px, calc(var(--u) * 26)) system-ui, sans-serif; color: #3b4266; }
.bs-pips { display: flex; gap: calc(var(--u) * 10); }
.bs-pips i { width: max(14px, calc(var(--u) * 34)); height: max(14px, calc(var(--u) * 34)); border-radius: 50%; background: #1e2a4a; border: 3px solid #14161f; }
.bs-pips i.on { background: #ffd23a; } .bs-pips i.next { background: #fff; box-shadow: 0 0 0 3px #ffd23a; animation: pulse 1s infinite; }
.bs-cta { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: max(18px, calc(var(--u) * 44)) !important; min-height: 44px; }
.bs-cta img { width: max(22px, calc(var(--u) * 46)); }
.btn.poor, .btn[disabled].bs-cta { filter: grayscale(.85); opacity: .85; cursor: not-allowed; }
.bs-short { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 800 max(13px, calc(var(--u) * 26)) system-ui, sans-serif; color: #c0392b; }
.bs-short .btn { font-size: 15px; padding: 6px 12px; }
.bs-max { font-size: max(20px, calc(var(--u) * 44)); color: #2a8a1e; }
.bs-x { position: absolute; top: calc(var(--u) * 14); right: calc(var(--u) * 14); width: max(44px, calc(var(--u) * 90)); height: max(44px, calc(var(--u) * 90)); border-radius: 12px; border: 4px solid #14161f; background: linear-gradient(#ff8a8a, #d83a3a); color: #fff; font: 700 20px system-ui; cursor: pointer; }
.rs-rewards { flex-wrap: wrap; justify-content: center; }

/* ---------- v0.15 race HUD: top row pause | score | N left, roster on its own row (V03) ---------- */
.race-top { left: 10px; right: 10px; top: 10px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 8px; }
.race-pause { position: static; width: 48px; height: 48px; pointer-events: auto; border-radius: 14px; border: 4px solid #0d2c6a; background: linear-gradient(#6fd0ff, #1f86e6); color: #fff; font: 700 20px system-ui, sans-serif; cursor: pointer; }
.race-pause:focus-visible { outline: 4px solid #fff; }
.race-score { text-align: center; font-size: clamp(40px, 10vmin, 80px); line-height: 1; color: #fff; -webkit-text-stroke: 6px #14161f; paint-order: stroke fill; text-shadow: 0 5px 0 #14161f; }
.race-left { color: #fff; font-size: clamp(18px, 4.5vmin, 26px); -webkit-text-stroke: 5px #14161f; paint-order: stroke fill; background: #0006; border-radius: 99px; padding: 4px 12px; white-space: nowrap; }
.race-roster { left: 50%; transform: translateX(-50%); top: 74px; display: grid; grid-template-columns: repeat(10, minmax(0, 32px)); gap: 2px; padding: 3px 6px; border-radius: 12px; background: #0004; max-width: calc(100% - 20px); }
.race-roster .rr { width: 100%; aspect-ratio: 32 / 26; height: auto; }
.race-roster .rr canvas { width: 100% !important; }
.race-count { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; pointer-events: none; font-size: clamp(90px, 30vmin, 200px); color: var(--gold); -webkit-text-stroke: 10px #14161f; paint-order: stroke fill; text-shadow: 0 8px 0 #14161f; }
.race-count[hidden] { display: none; }
.race-count.in { animation: countIn .45s ease-out; }
@keyframes countIn { from { transform: scale(1.8); opacity: 0 } 40% { opacity: 1 } to { transform: scale(1); } }
#s-race { background: linear-gradient(#0aa3fa 0, #0aa3fa 50%, #dc723e 50%); }
.rs-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rs-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: #ffffff12; border-radius: 12px; padding: 6px 10px; text-align: left; font: 700 15px system-ui, sans-serif; }
.rs-row .rs-ico { display: grid; place-items: center; font-size: 22px; } .rs-row .rs-ico img { width: 30px; }
.rs-row small { display: block; font-size: 13px; color: #b7c6ee; font-weight: 700; }
.rs-row em { font: 400 24px var(--font); font-style: normal; color: #ffe066; -webkit-text-stroke: 4px #10173a; paint-order: stroke fill; white-space: nowrap; }
.rs-row .ch { width: 30px; height: 24px; border-radius: 6px; background: #d98312; border: 3px solid #3a1d0c; } .rs-row .ch.silver { background: #5e7fa8; } .rs-row .ch.bronze { background: #8a4a1e; } .rs-row .ch.none { background: #ffffff22; border-style: dashed; border-color: #ffffff55; }
.rs-actions { flex-direction: column; align-items: center; width: 100%; } .rs-actions .btn.gold { width: 100%; }
/* ---------- v0.15 first-session guide ---------- */
.guide-ring { position: fixed; z-index: 35; border-radius: 18px; border: 4px solid #ffd23a; box-shadow: 0 0 0 4px #14161f, 0 0 24px 6px #ffd23acc; pointer-events: none; animation: ringPulse 1.1s ease-in-out infinite; transition: left .2s, top .2s, width .2s, height .2s; }
.guide-ring[hidden], .guide-bubble[hidden] { display: none; }
@keyframes ringPulse { 50% { transform: scale(1.05); box-shadow: 0 0 0 4px #14161f, 0 0 36px 12px #ffd23a; } }
.guide-bubble { position: fixed; z-index: 36; left: 50%; transform: translateX(-50%); bottom: max(16px, 14vh); width: min(380px, calc(100vw - 32px)); background: #fffaf0; border: 4px solid #14161f; border-radius: 18px; padding: 10px 14px; box-shadow: 0 6px 0 #0007; color: #1e2a4a; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.guide-bubble.top { bottom: auto; top: 30vh; }
.gb-step { font: 400 14px var(--font); color: #1f86e6; letter-spacing: .5px; }
.gb-text { margin: 2px 0 6px; font: 700 15px/1.35 system-ui, sans-serif; }
.gb-acts { display: flex; justify-content: flex-end; }
.gb-skip { min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 2px solid #1e2a4a55; background: none; font: 800 13px system-ui, sans-serif; color: #4a5680; cursor: pointer; }
/* v0.15 audit fixes (320 px phones) */
.flock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bird-tile .art { width: 100%; display: grid; place-items: center; }
.bird-tile .art canvas { max-width: 92% !important; height: auto !important; }
.bird-tile b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .btn { font-size: clamp(17px, 5.6vw, 26px); }
.card .btn.slim { font-size: clamp(14px, 4.4vw, 18px); }
.sheet-foot .btn { font-size: clamp(16px, 5vw, 28px) !important; white-space: nowrap; }
@media (max-width: 360px), (max-height: 640px) { .sheet-foot small { display: none; } }
.cf-name { position: relative; z-index: 2; }
.chest-slot.ready .cta { background: linear-gradient(#7be05a, #2f9a1f); border-color: #14461a; -webkit-text-stroke-color: #14461a; }
table.odds .btn.slim { padding: 6px 10px; white-space: nowrap; }
/* the guide never blocks the thing it points at: only SKIP takes taps */
.guide-bubble { pointer-events: none; }
.guide-bubble .gb-skip { pointer-events: auto; }
.guide-bubble.raid { top: max(8px, 1vh); bottom: auto; opacity: .95; }

/* ---------- v0.16 base: one opaque build panel, clear cards, shield widget ---------- */
.base-panel { z-index: 2; background: linear-gradient(#1d4f9c, #0f2d63 22%, #0b2350); border-top: calc(var(--u) * 6) solid #14161f; border-radius: calc(var(--u) * 36) calc(var(--u) * 36) 0 0; box-shadow: 0 calc(var(--u) * -8) 0 #0003; }
.bp-head { z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 6); padding: 0 calc(var(--u) * 10); color: #fff; }
.bp-head .wb-head { display: flex; justify-content: space-between; align-items: baseline; font-size: max(14px, calc(var(--u) * 34)); -webkit-text-stroke: calc(var(--u) * 5) #0a1a3a; paint-order: stroke fill; }
.bp-head .wb-count { color: var(--gold); font-size: max(12px, calc(var(--u) * 28)); }
.bp-head .wb-bar { height: max(8px, calc(var(--u) * 18)); margin: 0; background: #071634; border: 2px solid #0008; }
.bp-head .wb-goal { font: 700 max(11px, calc(var(--u) * 22)) system-ui, sans-serif; color: #cfe6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-head .wb-goal b { color: #ffd23a; }
.bp-head .wb-claim { position: absolute; right: calc(var(--u) * 6); top: 0; font-size: max(14px, calc(var(--u) * 26)) !important; pointer-events: auto; }
.bcards { z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(var(--u) * 10); align-items: stretch; }
.bcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 4); padding: calc(var(--u) * 8) calc(var(--u) * 6); background: linear-gradient(#f7fbff, #dceaff); border: calc(var(--u) * 5) solid #14161f; border-radius: calc(var(--u) * 22); cursor: pointer; font-family: var(--font); color: #1e2a4a; box-shadow: 0 calc(var(--u) * 6) 0 #0006; transition: transform .15s; }
.bcard:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.bcard.sel { border-color: #ffd23a; box-shadow: 0 0 0 calc(var(--u) * 6) #ffd23a, 0 calc(var(--u) * 6) 0 #0006; transform: translateY(calc(var(--u) * -10)); }
.bcard.done { background: linear-gradient(#f2fff0, #d4f5cc); }
.bcard.damaged { background: linear-gradient(#fff1f1, #ffd6d6); border-color: #8f1810; }
.bcard.shake { animation: shake .4s; }
.bcard .bc-name { font-weight: 400; font-size: max(10px, calc(var(--u) * 24)); white-space: nowrap; letter-spacing: 0; }
.bcard .thumb { width: 80%; aspect-ratio: 1; border-radius: 50%; border: calc(var(--u) * 4) solid #14161f; background: #8fd6ff; }
.bcard .bc-stage { font: 800 max(9px, calc(var(--u) * 17)) system-ui, sans-serif; color: #3b4266; white-space: nowrap; }
.bcard.done .bc-stage { color: #1d7a12; } .bcard.damaged .bc-stage { color: #b0281b; }
.bcard .pips { display: flex; gap: calc(var(--u) * 4); }
.bcard .pips i { width: calc(var(--u) * 18); height: calc(var(--u) * 18); border-radius: 50%; background: #c6d2e8; border: calc(var(--u) * 2) solid #14161f; }
.bcard .pips i.on { background: #ffd23a; }
.bcard .cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 4); width: 100%; min-height: max(28px, calc(var(--u) * 58)); border-radius: 999px; border: calc(var(--u) * 4) solid #5a3a00; background: linear-gradient(#ffe066, #ffb400); color: #fff; font-family: var(--font); font-size: max(11px, calc(var(--u) * 26)); -webkit-text-stroke: calc(var(--u) * 4) #5a3a00; paint-order: stroke fill; cursor: pointer; white-space: nowrap; padding: 0 calc(var(--u) * 4); }
.bcard .cta img { width: max(12px, calc(var(--u) * 28)); }
.bcard .cta.poor { background: linear-gradient(#e2e6ee, #b7bfcd); border-color: #4a5268; -webkit-text-stroke-color: #4a5268; }
.bcard .cta.max { background: #3fbf2e; border-color: #14461a; -webkit-text-stroke-color: #14461a; cursor: default; }
.bcard .cta.repair { background: linear-gradient(#ff8a8a, #d83a3a); border-color: #5a0b0b; -webkit-text-stroke-color: #5a0b0b; }
.bcard .cta:active:not(.max) { transform: scale(.94); }
.shield-box { z-index: 2; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: calc(var(--u) * 8); padding: calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * 6) calc(var(--u) * 8); background: #10234eee; border: calc(var(--u) * 5) solid #14161f; border-radius: 999px; color: #fff; }
.shield-box .sb-ico { grid-row: 1 / 3; display: grid; } .shield-box .sb-ico canvas { width: calc(var(--u) * 56) !important; height: calc(var(--u) * 56) !important; }
.shield-box .sb-num { font-weight: 400; font-size: max(12px, calc(var(--u) * 30)); line-height: 1; -webkit-text-stroke: calc(var(--u) * 4) #0a1a3a; paint-order: stroke fill; }
.shield-box .sb-pips { display: flex; gap: calc(var(--u) * 5); }
.shield-box .sb-pips i { width: calc(var(--u) * 20); height: calc(var(--u) * 24); clip-path: polygon(50% 0, 100% 18%, 92% 65%, 50% 100%, 8% 65%, 0 18%); background: #2a3f78; }
.shield-box .sb-pips i.on { background: linear-gradient(#9fe2ff, #2a8ce6); }
.base-stage[data-world="2"] .hud-worldname { background: #e8862a; } .base-stage[data-world="3"] .hud-worldname { background: #4aa6d8; }
.base-stage .navbar { z-index: 4; }
.build-sheet { z-index: 5; }
/* every screen's nav sits on an opaque strip so the mockup's baked nav never shows through */
.nav-back { left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(#ffffff, #dff1ff); border-top: calc(var(--u) * 5) solid #14161f; pointer-events: none; }
.navbar { z-index: 3; }
.home-stage .nav-back { height: calc(var(--u) * 172); }
.base-stage .nav-back { display: none; }
.sheet-stage .nav-back, .birds-stage .nav-back { height: calc(var(--u) * 180); }

/* v0.16 race: the canvas fills the screen; overlays dim the whole screen, not just the column */
.race-canvas { position: absolute; left: 0; top: 0; }
.race-pausecard, .race-result { position: fixed; }

/* =====================================================================================
   v0.16 SHARED CHROME (Roby's UI review, 23 Oct): one top bar + one nav on every screen, same
   size everywhere (--k = one phone point, set by src/chrome.js), pinned to the screen edges.
   ===================================================================================== */
#app { --k: 1px; --colw: 390px; --colx: 0px; }
.topbar { position: absolute; z-index: 9; top: 0; left: var(--colx); width: var(--colw); padding: calc(var(--k) * 8) calc(var(--k) * 10) 0; display: flex; flex-direction: column; align-items: stretch; gap: calc(var(--k) * 6); pointer-events: none; }
.topbar[hidden], .navbar2[hidden], .topbar [hidden] { display: none !important; }
.topbar > * { pointer-events: auto; }
.tb-row1 { display: grid; grid-template-columns: calc(var(--k) * 48) 1fr calc(var(--k) * 48); align-items: center; gap: calc(var(--k) * 8); height: calc(var(--k) * 48); }
.tb-pills { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--k) * 8); min-width: 0; }
.tb-sq { width: calc(var(--k) * 48); height: calc(var(--k) * 48); padding: calc(var(--k) * 6); border-radius: calc(var(--k) * 14); border: calc(var(--k) * 3) solid #14161f; background: linear-gradient(#6fd0ff, #1f86e6 60%, #1767c4); box-shadow: inset 0 calc(var(--k) * 2) 0 #ffffff88, 0 calc(var(--k) * 3) 0 #14161f; cursor: pointer; display: grid; place-items: center; }
.tb-sq svg { width: 100%; height: 100%; display: block; }
.tb-sq:active { transform: translateY(calc(var(--k) * 2)); box-shadow: inset 0 calc(var(--k) * 2) 0 #ffffff88, 0 calc(var(--k) * 1) 0 #14161f; }
.tb-sq:focus-visible, .cpill button:focus-visible, .pbar:focus-visible, .tb-caption:focus-visible, .tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tb-left[data-kind="profile"] { padding: calc(var(--k) * 4); }
.tb-bird { display: grid; place-items: center; width: 100%; height: 100%; }
.tb-bird canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; }
/* currency pill: icon | number | +  (fixed columns: nothing can overlap) */
.cpill { position: relative; display: grid; grid-template-columns: calc(var(--k) * 30) minmax(0, 1fr) calc(var(--k) * 30); align-items: center; height: calc(var(--k) * 34); padding: 0 calc(var(--k) * 2); border-radius: 999px; background: linear-gradient(#3a4664, #1e2638); border: calc(var(--k) * 3) solid #14161f; box-shadow: inset 0 calc(var(--k) * -3) 0 #0006; min-width: 0; }
.cpill.noplus { grid-template-columns: calc(var(--k) * 30) minmax(0, 1fr) calc(var(--k) * 8); }
.cp-ico { width: calc(var(--k) * 38); height: calc(var(--k) * 38); object-fit: contain; margin-left: calc(var(--k) * -10); filter: drop-shadow(0 calc(var(--k) * 2) 0 #0006); }
.cp-num { font-weight: 400; color: #fff; font-size: calc(var(--k) * 19); line-height: 1; text-align: center; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; -webkit-text-stroke: calc(var(--k) * 3.5) #14161f; paint-order: stroke fill; padding: 0 calc(var(--k) * 2); }
.cp-plus { width: calc(var(--k) * 28); height: calc(var(--k) * 28); padding: calc(var(--k) * 4); border-radius: 50%; border: calc(var(--k) * 2.5) solid #14161f; background: radial-gradient(circle at 40% 30%, #8ef05a, #2f9a1f 75%); cursor: pointer; display: grid; place-items: center; justify-self: end; margin-right: calc(var(--k) * -2); }
.cp-plus svg { width: 100%; height: 100%; display: block; }
.cpill.pump .cp-num, .shchip.pump .sh-num { animation: numPump .35s cubic-bezier(.2, 1.8, .4, 1); }
.cpill.pump .cp-ico { animation: icoPump .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes numPump { 40% { transform: scale(1.35); color: #ffe066; } }
@keyframes icoPump { 40% { transform: scale(1.3) rotate(-8deg); } }
/* row 2: shield chip + progress bar */
.tb-row2 { display: flex; align-items: center; gap: calc(var(--k) * 8); height: calc(var(--k) * 38); }
.pbar { position: relative; flex: 1; min-width: 0; height: calc(var(--k) * 34); display: grid; grid-template-columns: calc(var(--k) * 34) minmax(0, 1fr) auto; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font); }
.pbar.level { cursor: default; grid-template-columns: calc(var(--k) * 34) minmax(0, 1fr); }
.pb-cup, .pb-star { position: relative; z-index: 2; width: calc(var(--k) * 44); height: calc(var(--k) * 44); margin: calc(var(--k) * -6) 0 calc(var(--k) * -4) calc(var(--k) * -6); object-fit: contain; filter: drop-shadow(0 calc(var(--k) * 2) 0 #0006); }
.pb-star { display: grid; place-items: center; }
.pb-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pb-lvl { position: relative; font-weight: 400; color: #fff; font-size: calc(var(--k) * 16); -webkit-text-stroke: calc(var(--k) * 3) #5a3a00; paint-order: stroke fill; margin-top: calc(var(--k) * 3); }
.pb-track { position: relative; height: calc(var(--k) * 26); margin-left: calc(var(--k) * -10); border-radius: 999px; background: #1d2747; border: calc(var(--k) * 3) solid #14161f; box-shadow: inset 0 calc(var(--k) * 3) 0 #0008; overflow: hidden; display: grid; place-items: center; }
.pb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(#ffe66b, #fcbe05 55%, #f0a400); box-shadow: inset 0 calc(var(--k) * 3) 0 #ffffff88; transition: width .6s cubic-bezier(.2, 1, .3, 1); }
.pbar.level .pb-fill { background: linear-gradient(#9fe7ff, #39a8f0 55%, #1f7ad6); }
.pb-label { position: relative; z-index: 1; font-weight: 400; color: #fff; font-size: calc(var(--k) * 16); line-height: 1; white-space: nowrap; -webkit-text-stroke: calc(var(--k) * 3) #14161f; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.pb-end { position: relative; z-index: 2; width: calc(var(--k) * 46); height: calc(var(--k) * 40); object-fit: contain; margin-left: calc(var(--k) * -12); margin-right: calc(var(--k) * -4); filter: drop-shadow(0 calc(var(--k) * 2) 0 #0006); }
.pbar.claim .pb-end { animation: chestWiggle 1.4s ease-in-out infinite; }
.pbar.claim::after { content: attr(data-n); }
.pbar .pb-end[data-n]:not([data-n=""]) { filter: drop-shadow(0 0 calc(var(--k) * 6) #ffe066) drop-shadow(0 calc(var(--k) * 2) 0 #0006); }
@keyframes chestWiggle { 0%, 70%, 100% { transform: rotate(0) } 76% { transform: rotate(-9deg) scale(1.08) } 86% { transform: rotate(8deg) scale(1.08) } 94% { transform: rotate(-3deg) } }
.pbar.bump .pb-cup, .pbar.bump .pb-star { animation: icoPump .45s cubic-bezier(.2, 1.8, .4, 1); }
.shchip { flex: none; display: flex; align-items: center; gap: calc(var(--k) * 4); height: calc(var(--k) * 34); padding: 0 calc(var(--k) * 10) 0 calc(var(--k) * 2); border-radius: 999px; background: linear-gradient(#22346c, #131c42); border: calc(var(--k) * 3) solid #14161f; color: #fff; }
.sh-ico canvas { width: calc(var(--k) * 34) !important; height: calc(var(--k) * 34) !important; margin-left: calc(var(--k) * -6); display: block; filter: drop-shadow(0 calc(var(--k) * 2) 0 #0006); }
.sh-txt { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--k) * 1); }
.sh-num { font-weight: 400; font-size: calc(var(--k) * 15); line-height: 1; -webkit-text-stroke: calc(var(--k) * 3) #14161f; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.sh-pips { display: flex; gap: calc(var(--k) * 2); }
.sh-pips i { width: calc(var(--k) * 7); height: calc(var(--k) * 8); clip-path: polygon(50% 0, 100% 18%, 92% 65%, 50% 100%, 8% 65%, 0 18%); background: #3a4f88; }
.sh-pips i.on { background: linear-gradient(#bff0ff, #39a8f0); }
.tb-caption { align-self: center; display: flex; align-items: center; gap: calc(var(--k) * 6); height: calc(var(--k) * 26); padding: 0 calc(var(--k) * 14) 0 calc(var(--k) * 4); border-radius: 999px; border: calc(var(--k) * 3) solid #14161f; background: linear-gradient(#5fd25a, #2f9a1f); cursor: pointer; color: #fff; font-family: var(--font); box-shadow: 0 calc(var(--k) * 2) 0 #14161f; }
.tb-caption[data-world="2"] { background: linear-gradient(#ffad5a, #e0661d); } .tb-caption[data-world="3"] { background: linear-gradient(#7fd0f5, #2f8fd0); }
.tb-caption small { font: 800 calc(var(--k) * 10) system-ui, sans-serif; background: #14161fcc; border-radius: 999px; padding: calc(var(--k) * 2) calc(var(--k) * 7); letter-spacing: .5px; }
.tb-caption b { font-weight: 400; font-size: calc(var(--k) * 15); -webkit-text-stroke: calc(var(--k) * 3) #14161f; paint-order: stroke fill; letter-spacing: .5px; }

/* ---- bottom nav (Monopoly GO style): calm tabs, the active one raised + blue with its icon popping out ---- */
.navbar2 { position: absolute; z-index: 9; bottom: 0; left: var(--colx); width: var(--colw); height: calc(var(--k) * 74); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: calc(var(--k) * 4); padding: 0 calc(var(--k) * 6) calc(var(--k) * 6); background: linear-gradient(#ffffff, #d7ecff); border-top: calc(var(--k) * 3) solid #14161f; box-shadow: 0 calc(var(--k) * -4) 0 #0002; }
.navbar2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--k) * 4); background: linear-gradient(#ffffff, #ffffff00); pointer-events: none; }
.tab { position: relative; height: calc(var(--k) * 62); border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-family: var(--font); }
.tab-face { position: absolute; left: 0; right: 0; top: calc(var(--k) * 2); bottom: calc(var(--k) * 18); display: grid; place-items: center; border-radius: calc(var(--k) * 14); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1), background .2s; }
.tab-ico { width: 82%; height: 92%; object-fit: contain; filter: drop-shadow(0 calc(var(--k) * 2) 0 #0004); transition: transform .3s cubic-bezier(.2, 1.7, .4, 1); }
.tab-lbl { position: relative; z-index: 1; color: #fff; font-size: calc(var(--k) * 13); line-height: 1; letter-spacing: .3px; -webkit-text-stroke: calc(var(--k) * 3) #14161f; paint-order: stroke fill; transition: transform .2s; }
.tab:not(.on) .tab-ico { opacity: .92; }
.tab:active .tab-face { transform: translateY(calc(var(--k) * 2)) scale(.94); }
.tab.on .tab-face { top: calc(var(--k) * -16); bottom: calc(var(--k) * -2); background: linear-gradient(#5bc3ff, #0b84f0 55%, #0a63c4); border: calc(var(--k) * 3) solid #14161f; box-shadow: inset 0 calc(var(--k) * 3) 0 #ffffffaa, 0 calc(var(--k) * 4) 0 #14161f; }
.tab.on .tab-ico { width: 118%; height: 118%; transform: translateY(calc(var(--k) * -16)); filter: drop-shadow(0 calc(var(--k) * 4) 0 #0005); }
.tab.on .tab-lbl { font-size: calc(var(--k) * 14); transform: translateY(calc(var(--k) * -1)); }
.tab-badge { position: absolute; z-index: 2; top: calc(var(--k) * -6); right: 6%; min-width: calc(var(--k) * 20); height: calc(var(--k) * 20); padding: 0 calc(var(--k) * 5); border-radius: 999px; background: #ff3b3b; border: calc(var(--k) * 2.5) solid #14161f; color: #fff; font-size: calc(var(--k) * 12); line-height: calc(var(--k) * 15); -webkit-text-stroke: calc(var(--k) * 2) #14161f; paint-order: stroke fill; }
.tab.on .tab-badge { top: calc(var(--k) * -22); }
@media (prefers-reduced-motion: reduce) { .tab-face, .tab-ico { transition: none; } }
/* the old per-screen navs and baked-nav cover strips are gone */
.navbar, .nav-back { display: none !important; }

/* ---- live side tiles (Home + Pinball share them) ---- */
.ltile { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; }
.ltile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; transition: filter .2s; }
.ltile:active > img { transform: scale(.96); }
.ltile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 12px; }
.lt-tag { position: absolute; z-index: 2; right: -14%; top: -7%; padding: 0.18em 0.6em 0.12em; border-radius: 999px; border: 0.12em solid #14161f; color: #fff; font-family: var(--font); line-height: 1; -webkit-text-stroke: 0.14em #14161f; paint-order: stroke fill; box-shadow: 0 0.12em 0 #14161f; white-space: nowrap; }
.lt-tag.free { background: linear-gradient(#8ef05a, #2f9a1f); animation: pulse 1.2s ease-in-out infinite; }
.lt-tag.preview { right: auto; top: auto; left: 50%; bottom: 3%; transform: translateX(-50%); background: linear-gradient(#5bc3ff, #1f7ad6); }
.ltile.claimed > img { filter: saturate(.25) brightness(.78); }
.lt-done { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; align-content: center; gap: 2%; pointer-events: none; }
.lt-done .ico-svg { width: 62%; aspect-ratio: 1; display: block; filter: drop-shadow(0 0.1em 0 #0007); animation: stampIn .45s cubic-bezier(.2, 1.8, .4, 1); }
.lt-done .ico-svg svg { width: 100%; height: 100%; display: block; }
.lt-done b { font-weight: 400; color: #fff; padding: 0.1em 0.5em; border-radius: 999px; background: #1d7a12; border: 0.12em solid #14161f; -webkit-text-stroke: 0.14em #14161f; paint-order: stroke fill; letter-spacing: .03em; }
@keyframes stampIn { from { transform: scale(2.2) rotate(-18deg); opacity: 0 } 60% { transform: scale(.9) rotate(4deg); opacity: 1 } }
.ltile[hidden] { display: none; }

/* ---- chest slots: one family (ready / opening / queued / empty / locked) ---- */
.chest-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--u) * 16); }
.cslot { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: calc(var(--u) * 8) calc(var(--u) * 8) calc(var(--u) * 10); border-radius: calc(var(--u) * 26); border: calc(var(--u) * 6) solid #0d2c6a; background: linear-gradient(#2a8cf0, #155fc4); box-shadow: inset 0 calc(var(--u) * 5) 0 #ffffff40, 0 calc(var(--u) * 6) 0 #0b2350; cursor: pointer; font-family: var(--font); color: #fff; overflow: visible; }
.cslot:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.cs-art { position: relative; width: 112%; height: 100%; min-height: 0; display: grid; place-items: center; margin-top: calc(var(--u) * -18); }
.cs-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 6) 0 #0006); }
.cs-label { width: 100%; height: calc(var(--u) * 52); display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 6); border-radius: calc(var(--u) * 16); border: calc(var(--u) * 4) solid #0d2c6a; background: #0d2c6a; color: #fff; font-size: calc(var(--u) * 26); line-height: 1; white-space: nowrap; overflow: hidden; -webkit-text-stroke: calc(var(--u) * 4) #0d2c6a; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.cs-label .ico-svg { width: calc(var(--u) * 34); height: calc(var(--u) * 34); flex: none; } .cs-label .ico-svg svg { width: 100%; height: 100%; display: block; }
.cs-sub { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 66); text-align: center; font: 800 calc(var(--u) * 18)/1.05 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 0 #0009; padding: 0 calc(var(--u) * 6); }
.cslot.ready { background: radial-gradient(circle at 50% 35%, #fff6b0, #ffd23a 45%, #f08a00); border-color: #6a3a00; box-shadow: inset 0 calc(var(--u) * 5) 0 #ffffff80, 0 calc(var(--u) * 6) 0 #6a3a00, 0 0 calc(var(--u) * 24) #ffd23a; }
.cslot.ready .cs-art img { animation: chestWiggle 1.6s ease-in-out infinite; }
.cslot.ready .cs-label { background: linear-gradient(#8ef05a, #2f9a1f); border-color: #14461a; -webkit-text-stroke-color: #14461a; font-size: calc(var(--u) * 30); animation: pulse 1s ease-in-out infinite; }
.cslot.ready::before { content: ""; position: absolute; inset: 8%; background: repeating-conic-gradient(#ffffff55 0 12deg, transparent 12deg 30deg); border-radius: 50%; animation: spin 9s linear infinite; pointer-events: none; mask: radial-gradient(#000 30%, transparent 70%); -webkit-mask: radial-gradient(#000 30%, transparent 70%); }
.cslot.opening .cs-label { background: #0b2350; border-color: #0b2350; }
.cslot.queued .cs-art img, .cslot.closed .cs-art img { filter: saturate(.75) brightness(.92) drop-shadow(0 calc(var(--u) * 6) 0 #0006); }
.cslot.queued .cs-label, .cslot.closed .cs-label { font-size: calc(var(--u) * 22); background: #0b2350; }
.cslot.empty { background: #1957b8; border-style: dashed; border-color: #8cc4ff; box-shadow: inset 0 calc(var(--u) * 5) 0 #ffffff26; cursor: default; }
.cslot.empty .cs-art img { filter: brightness(0) invert(1); opacity: .22; }
.cslot.empty .cs-label { background: none; border-color: transparent; font: 800 calc(var(--u) * 20)/1.05 system-ui, sans-serif; -webkit-text-stroke: 0; color: #dcecff; white-space: normal; text-align: center; height: calc(var(--u) * 52); }
.cslot.locked { background: #1d2b58; border-color: #0b1530; box-shadow: inset 0 calc(var(--u) * 5) 0 #ffffff14; cursor: default; }
.cslot.locked .cs-art .ico-svg { width: 46%; aspect-ratio: 1; opacity: .9; } .cslot.locked .cs-art .ico-svg svg { width: 100%; height: 100%; display: block; }
.cslot.locked .cs-label { background: none; border-color: transparent; -webkit-text-stroke: 0; color: #ffd23a; font: 800 calc(var(--u) * 19)/1.05 system-ui, sans-serif; white-space: normal; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cslot.ready .cs-art img, .cslot.ready::before, .cslot.ready .cs-label { animation: none; } }

/* ---- incoming-raid card (Home): the attacker's face, what was hit, the actions; docked under the top bar ---- */
.raidcard { z-index: 3; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: calc(var(--u) * 16); row-gap: calc(var(--u) * 10); padding: calc(var(--u) * 14) calc(var(--u) * 18) calc(var(--u) * 16); border-radius: calc(var(--u) * 30); border: calc(var(--u) * 6) solid #14161f; background: linear-gradient(#2c3c74, #141d45); box-shadow: 0 calc(var(--u) * 8) 0 #0007; color: #fff; animation: raidcardIn .45s cubic-bezier(.2, 1.5, .4, 1); }
.raidcard[hidden] { display: none; }
@keyframes raidcardIn { from { transform: translateY(-30%) scale(.9); opacity: 0 } }
.rc-face { grid-row: 1 / 3; position: relative; width: calc(var(--u) * 132); height: calc(var(--u) * 132); }
.rc-face canvas { width: 100% !important; height: 100% !important; border-radius: 50%; border: calc(var(--u) * 6) solid #14161f; display: block; background: #fff; }
.rc-face .rc-boom { position: absolute; right: calc(var(--u) * -14); bottom: calc(var(--u) * -10); width: calc(var(--u) * 58); height: calc(var(--u) * 58); }
.rc-face .rc-boom svg { width: 100%; height: 100%; }
.rc-text { min-width: 0; font: 700 calc(var(--u) * 28)/1.2 system-ui, sans-serif; }
.rc-text b { color: #ffd23a; font-family: var(--font); font-weight: 400; font-size: calc(var(--u) * 34); -webkit-text-stroke: calc(var(--u) * 5) #14161f; paint-order: stroke fill; }
.rc-text small { display: flex; align-items: center; gap: calc(var(--u) * 6); font: 800 calc(var(--u) * 24) system-ui, sans-serif; color: #ffb3b3; margin-top: calc(var(--u) * 4); }
.rc-text small img { width: calc(var(--u) * 30); }
.rc-x { grid-row: 1; grid-column: 3; align-self: start; width: max(30px, calc(var(--u) * 64)); height: max(30px, calc(var(--u) * 64)); border-radius: 50%; border: calc(var(--u) * 4) solid #ffffff66; background: #ffffff14; display: grid; place-items: center; cursor: pointer; padding: calc(var(--u) * 12); }
.rc-x svg { width: 100%; height: 100%; }
.rc-acts { grid-column: 2 / 4; display: flex; gap: calc(var(--u) * 12); }
.rc-acts .btn { flex: 1; font-size: max(13px, calc(var(--u) * 28)); padding: calc(var(--u) * 8) calc(var(--u) * 10); min-height: max(34px, calc(var(--u) * 70)); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--u) * 8); }
.rc-acts .btn small { font: 800 calc(var(--u) * 18) system-ui, sans-serif; -webkit-text-stroke: 0; background: #14161fcc; color: #fff; border-radius: 999px; padding: calc(var(--u) * 2) calc(var(--u) * 10); }
.rc-acts .btn .ico-svg { width: calc(var(--u) * 36); height: calc(var(--u) * 36); } .rc-acts .btn .ico-svg svg { width: 100%; height: 100%; display: block; }

/* ---- v0.16 Home ---- */
.home-bird { display: grid; place-items: end center; pointer-events: none; }
.home-bird .hb-bob { position: relative; width: 100%; animation: heroBob 1.6s ease-in-out infinite; }
.home-bird canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; filter: drop-shadow(0 calc(var(--u) * 8) 0 #0003); }
.home-bird .hb-shadow { position: absolute; left: 30%; right: 30%; bottom: calc(var(--u) * -30); height: calc(var(--u) * 16); border-radius: 50%; background: #0003; animation: heroShadow 1.6s ease-in-out infinite; }
@keyframes heroBob { 0%, 100% { transform: translateY(0) rotate(-4deg) } 50% { transform: translateY(calc(var(--u) * -22)) rotate(3deg) } }
@keyframes heroShadow { 0%, 100% { transform: scaleX(1); opacity: .9 } 50% { transform: scaleX(.75); opacity: .5 } }
@media (prefers-reduced-motion: reduce) { .home-bird .hb-bob, .home-bird .hb-shadow { animation: none; } }
table.odds.friends td:first-child { display: flex; align-items: center; gap: 8px; }
.fr-face canvas { width: 34px !important; height: 34px !important; border-radius: 50%; border: 2px solid #14161f; display: block; }
.lockmini { font: 800 12px system-ui, sans-serif; color: #4a5680; }
/* v0.16: on tall phones the art starts below the top bar: its top fades into the matching sky */
#s-home { background: #0cb5fe; }
#s-base { background: #08b7fe; }
#s-shop, #s-birds, #s-trophyroad, #s-worldmap { background: #2d96e7; }
.home-stage::before, .base-stage::before, .sheet-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * 300); pointer-events: none; z-index: 0; }
.home-stage::before { background: linear-gradient(#0cb5fe 0, #0cb5fe 30%, #0cb5fe00); }
.base-stage::before { background: linear-gradient(#08b7fe 0, #08b7fe 30%, #08b7fe00); }
.sheet-stage::before { background: linear-gradient(#2d96e7 0, #2d96e7 30%, #2d96e700); }
.home-stage { background-size: 100% 100%; }
/* pills: tighter zones so 12,500 / 99,999 always fit */
.cpill { grid-template-columns: calc(var(--k) * 26) minmax(0, 1fr) calc(var(--k) * 26); }
.cp-num { font-size: calc(var(--k) * 17); -webkit-text-stroke-width: calc(var(--k) * 3); }
.cp-plus { width: calc(var(--k) * 26); height: calc(var(--k) * 26); }
.cp-ico { width: calc(var(--k) * 34); height: calc(var(--k) * 34); margin-left: calc(var(--k) * -8); }
.tb-left[data-kind="profile"] { padding: calc(var(--k) * 1); }
.tb-left[data-kind="profile"] .tb-bird canvas { transform: scale(1.18); }
.fly-ico { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; object-fit: contain; filter: drop-shadow(0 2px 0 #0006); will-change: transform; }
/* ---- v0.16 Base: build sheet with one CTA that never overflows ---- */
.build-sheet { grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; row-gap: calc(var(--u) * 14); }
.build-sheet .bs-thumb { grid-row: 1 / 3; }
.build-sheet .bs-cta, .build-sheet .bs-max { grid-column: 2; width: 100%; min-width: 0; }
.bs-cta { flex-direction: column; gap: 0; padding: calc(var(--u) * 10) calc(var(--u) * 14) !important; font-size: max(17px, calc(var(--u) * 40)) !important; line-height: 1.05; overflow: hidden; }
.bs-cta-main { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--u) * 10); white-space: nowrap; }
.bs-cta-main img { width: max(20px, calc(var(--u) * 42)); }
.bs-cta .ico-svg { width: max(20px, calc(var(--u) * 44)); height: max(20px, calc(var(--u) * 44)); display: inline-block; } .bs-cta .ico-svg svg { width: 100%; height: 100%; display: block; }
.bs-cta small { font: 800 max(11px, calc(var(--u) * 22)) system-ui, sans-serif; -webkit-text-stroke: 0; color: #fff; opacity: .95; margin-top: calc(var(--u) * 2); }
.bs-cta.getcoins { background: linear-gradient(#5fd0ff, #1f86e6); box-shadow: 0 6px 0 #0b4f9a, 0 8px 0 var(--ink); }
.bs-trophy { display: flex; align-items: center; gap: calc(var(--u) * 8); }
.bs-trophy img { width: max(18px, calc(var(--u) * 40)); }
.bs-stage.dmg { color: #b0281b; }
.bs-max { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 10); color: #2a8a1e; }
.bs-max .ico-svg { width: max(22px, calc(var(--u) * 48)); height: max(22px, calc(var(--u) * 48)); } .bs-max .ico-svg svg { width: 100%; height: 100%; display: block; }
.bs-x { display: grid; place-items: center; padding: calc(var(--u) * 18); } .bs-x svg { width: 100%; height: 100%; }
.bcard .cta .ico-svg { width: max(12px, calc(var(--u) * 28)); height: max(12px, calc(var(--u) * 28)); display: inline-block; } .bcard .cta .ico-svg svg { width: 100%; height: 100%; display: block; }
.bcard .cta.max { gap: calc(var(--u) * 4); }
.wb-goal b { color: #ffd23a; }
.shield-box { display: none !important; }
/* v0.16: landmark cards stay readable on 320 px phones (QA V02) */
@media (max-width: 360px) {
  .bcards { overflow-x: auto; grid-template-columns: repeat(5, 96px); scrollbar-width: none; padding-bottom: 4px; }
  .bcards::-webkit-scrollbar { display: none; }
  .bcard .bc-name { font-size: 12px; } .bcard .bc-stage { font-size: 10px; } .bcard .cta { font-size: 13px; min-height: 32px; }
}

/* ---- v0.16 pinball: live tiles on the cabinet + the multiplier dial ---- */
#hits .ltile { pointer-events: auto; color: transparent; font-size: inherit; }
#hits .mult-chip { overflow: visible; isolation: isolate; touch-action: manipulation; background: none; border: 0; box-shadow: none; border-radius: 50%; }
#hits .mult-chip .dial-face { position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 38% 30%, #ffe680, #ffb21c 58%, #d97a00);
  box-shadow: 0 0 0 3px var(--ink), 0 5px 0 3px #8a4a00, inset 0 -5px 0 rgba(0,0,0,.18); transition: transform .1s; }
#hits .mult-chip:active .dial-face { transform: translateY(3px); box-shadow: 0 0 0 3px var(--ink), 0 2px 0 3px #8a4a00; }
#hits .mult-chip .dial-ring { position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #1d2b55 56%, #0e1630 57%); box-shadow: 0 0 0 2px var(--ink); }
#hits .mult-chip .dial-tick { position: absolute; left: 50%; top: 50%; width: 7%; height: 7%; margin: -3.5% 0 0 -3.5%; border-radius: 50%;
  background: #7186c4; transform: rotate(var(--a)) translateY(-640%); transition: background .2s, box-shadow .2s; }
#hits .mult-chip .dial-tick.on { background: #ffe27a; box-shadow: 0 0 6px #ffd23a; }
#hits .mult-chip .dial-knob { position: absolute; inset: 0; border-radius: 50%; z-index: 1; transform: rotate(var(--turn, -135deg));
  transition: transform .32s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
#hits .mult-chip .dial-knob::before { content: ''; position: absolute; left: 50%; top: 5%; width: 10%; height: 18%; margin-left: -5%; border-radius: 4px;
  background: #fff; box-shadow: 0 0 0 2px var(--ink); }
#hits .mult-chip b { position: relative; z-index: 2; font-size: 100%; transform: translateY(2%); color: #fff; -webkit-text-stroke: 4px var(--ink); }
#hits .mult-chip small { position: absolute; z-index: 2; bottom: 12%; font-size: 30%; letter-spacing: .06em; color: #7a3d00; -webkit-text-stroke: 0; font-family: var(--font); }
#hits .mult-chip b.roll-out { position: absolute; animation: rollOutUp .26s ease-in forwards; }
#hits .mult-chip b.roll-out.down { animation-name: rollOutDown; }
#hits .mult-chip b.roll-in.up { animation: rollInUp .26s cubic-bezier(.2, 1.4, .4, 1); }
#hits .mult-chip b.roll-in.down { animation: rollInDown .26s cubic-bezier(.2, 1.4, .4, 1); }
#hits .mult-chip:active { transform: none; }
@keyframes rollOutUp { to { transform: translateY(-70%); opacity: 0; } }
@keyframes rollOutDown { to { transform: translateY(70%); opacity: 0; } }
@keyframes rollInUp { from { transform: translateY(70%); opacity: 0; } }
@keyframes rollInDown { from { transform: translateY(-70%); opacity: 0; } }
.shchip.pump .sh-ico { animation: icoPump .35s cubic-bezier(.2, 1.8, .4, 1); }
#s-pinball { background: #0cb5fe; }

/* ---- v0.16 chest opening: balance row, big hd chest, rays on the chest, nothing cut ---- */
.chestfx { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: radial-gradient(circle at 50% 46%, #2b86ef, #0b3a7a 60%, #051428); overflow: hidden; padding: max(10px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.cf-balance { width: min(var(--colw, 390px), 100%); display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--k, 1px) * 10); padding: calc(var(--k, 1px) * 8) calc(var(--k, 1px) * 6) 0; box-sizing: border-box; z-index: 3; }
.cf-stage { --cs: min(68vw, 40vh, 300px); flex: 1; width: min(var(--colw, 390px), 100%); justify-content: center; gap: min(2.2vh, 16px); min-height: 0; }
.cf-chestwrap { position: relative; width: var(--cs); height: calc(var(--cs) * .82); display: grid; place-items: center; }
.cf-chest { width: 100%; z-index: 1; }
.cf-chest img { width: 100%; height: auto; }
.cf-chest.shake img { animation: cfShake .52s ease-in-out; }
.cf-chest.open img { animation: cfOpen2 .38s ease-out forwards; }
.chestfx.summary .cf-chest.open img { animation: none; transform: scale(1.06); filter: brightness(1.15) drop-shadow(0 0 26px #ffd23a); }
@keyframes cfShake { 0%, 100% { transform: none } 15% { transform: translateY(-6%) rotate(-5deg) } 30% { transform: translateY(-8%) rotate(5deg) } 45% { transform: translateY(-8%) rotate(-6deg) } 60% { transform: translateY(-6%) rotate(6deg) } 80% { transform: translateY(-3%) scale(1.04, .96) } }
@keyframes cfOpen2 { 0% { transform: scale(1.04, .94) } 40% { transform: scale(1.18); filter: brightness(1.9) drop-shadow(0 0 30px #fff6c8) } 100% { transform: scale(1.06); filter: brightness(1.15) drop-shadow(0 0 26px #ffd23a) } }
.cf-rays { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0; scale: .2;
  background: radial-gradient(circle, #fff6c8aa 0 12%, transparent 46%), repeating-conic-gradient(from 0deg, #fff6c840 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); }
.cf-rays.on { animation: cfRays .5s cubic-bezier(.2, 1.4, .4, 1) forwards, spin 14s linear infinite; }
@keyframes cfRays { to { opacity: 1; scale: 1; } }
.cf-name, .cf-title { font-size: clamp(26px, 8vw, 40px); position: relative; z-index: 2; }
.cf-cards { min-height: calc(min(30vw, 120px) + 40px); gap: 12px; flex-wrap: nowrap; z-index: 2; }
.cf-card { width: min(36vw, 140px); background: linear-gradient(#ffd85a, #f39a12); border-color: var(--ink); }
.cf-card.balls { background: linear-gradient(#7fd0ff, #2a7fe0); }
.cf-card img { width: min(16vw, 64px); height: min(16vw, 64px); }
.cf-card small { color: #2b1800; font-weight: 900; }
.cf-card.balls small { color: #0e1630; }
.cf-note { font: 700 13px system-ui, sans-serif; color: #cfe0ff; margin: 0; }
.cf-great { min-width: min(240px, 70vw); font-size: 24px; }
.cf-skip { background: none; border: 0; color: #fff9; letter-spacing: .08em; font-size: 13px; }
.cf-receipt, .cf-progress, .cf-glow { display: none; }
/* v0.16: the race banner is sized from the play column, never wider than it */
.race-banner b { font-size: min(96px, calc(var(--colw, 390px) * .13)); -webkit-text-stroke-width: min(8px, calc(var(--colw, 390px) * .018)); white-space: nowrap; }
.race-banner span { font-size: min(34px, calc(var(--colw, 390px) * .055)); }
.rs-row .ch.lost { filter: grayscale(.7) brightness(.8); position: relative; }
.rs-row .ch.lost::after { content: ''; position: absolute; inset: 20% -10%; border-top: 4px solid #ff4d4d; transform: rotate(-25deg); top: 50%; }

/* ---- v0.16 sheets (Shop, Flock, Trophy Road, World Map): one header style, chrome owns back ---- */
.sheet-body { scrollbar-width: none; } .sheet-body::-webkit-scrollbar { display: none; }
.sheet-head .sq.back, .sheet-head .sq.close, .sheet-pills { display: none; }
.shop-stage .sheet-body { top: calc(var(--u) * 240) !important; height: calc(var(--u) * 1520) !important; }
.sheet-head .sh-sub:empty, .sheet-head .sh-sub:blank { display: none; }
.btn.green { background: linear-gradient(#7ee05a, #2fa52a); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; box-shadow: 0 5px 0 #1a6416, 0 0 0 3px var(--ink); border: 0; }
.road-go { display: inline-flex; align-items: center; gap: 10px; }
.road-go .ico-svg, .road-go .ico-svg svg { width: 1.3em; height: 1.3em; display: block; }
.flock-hint { position: absolute; box-sizing: border-box; font-size: max(13px, calc(var(--u) * 30)); }
.flock-hint .btn { font-size: max(15px, calc(var(--u) * 34)); }

/* trophy road flow header */
.road-flow { position: absolute; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(var(--u) * 18); padding: calc(var(--u) * 14) calc(var(--u) * 22); box-sizing: border-box;
  background: linear-gradient(#1d2b55, #10173a); border: 4px solid var(--ink); border-radius: calc(var(--u) * 40); box-shadow: 0 6px 0 #0b1636; }
.rf-cup { width: calc(var(--u) * 100); height: calc(var(--u) * 100); object-fit: contain; }
.rf-mid { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf-track { position: relative; height: calc(var(--u) * 54); border-radius: 999px; background: #0b1230; border: 3px solid var(--ink); overflow: hidden; }
.rf-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ffe680, #ffb21c); border-radius: 999px; transition: width .5s; }
.rf-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 400; color: #fff; font-size: max(16px, calc(var(--u) * 36)); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.rf-next { font: 800 max(12px, calc(var(--u) * 24)) system-ui, sans-serif; color: #cfe0ff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-goal { width: calc(var(--u) * 110); height: calc(var(--u) * 110); display: grid; place-items: center; }
.rf-goal .ms-ico { width: 100%; height: 100%; }

/* composed reward icons: everything fits inside its square, nothing cropped */
.ms-ico { position: relative; width: max(56px, calc(var(--u) * 130)); height: max(56px, calc(var(--u) * 130)); border-radius: 16px; background: radial-gradient(circle at 50% 40%, #5fb6ff, #1f5fd0); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 #0003; overflow: visible; object-fit: unset; flex: none; }
.ms-ico > * { position: absolute; }
.ms-ico .i1, .ms-ico .i2, .ms-ico .i3 { width: 52%; height: 52%; object-fit: contain; filter: drop-shadow(0 2px 0 #0006); }
.ms-ico .i1 { left: 8%; top: 36%; } .ms-ico .i2 { left: 24%; top: 12%; } .ms-ico .i3 { left: 42%; top: 38%; }
.ms-ico.k-coins300 { background: radial-gradient(circle at 50% 40%, #ffe680, #f39a12); }
.ms-ico .i-bird { left: 12%; top: 14%; width: 72% !important; height: auto !important; image-rendering: pixelated; }
.ms-ico .i-chest { left: 8%; top: 14%; width: 80%; height: 72%; object-fit: contain; }
.ms-ico .i-badge { left: 10%; top: 10%; width: 80% !important; height: 80% !important; }
.ms-ico .i-plus { right: -8%; bottom: -8%; width: 40%; height: 40%; display: grid; place-items: center; background: #3fbf3a; border: 3px solid var(--ink); border-radius: 50%; }
.ms-ico .i-plus svg { width: 70%; height: 70%; }
.ms-ico .i-tag { right: -10%; bottom: -8%; padding: 1px 6px; border-radius: 999px; background: #3fbf3a; border: 3px solid var(--ink); color: #fff; font-size: max(12px, calc(var(--u) * 26)); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.ms .at { display: inline-flex; align-items: center; gap: 4px; background: #10173a; }
.ms .at img { width: 1.1em; height: 1.1em; object-fit: contain; }
.ms { background: linear-gradient(#ffffff, #dbe9fb); }
.ms.claimable { animation: none; background: linear-gradient(#fffbe6, #ffefb0); border-color: var(--ink); box-shadow: 0 0 0 4px #ffd23a, 0 0 22px #ffd23acc; }
.ms.claimable .ms-ico { animation: icoBob 1.2s ease-in-out infinite; }
@keyframes icoBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.ms-claim { font-size: max(18px, calc(var(--u) * 36)) !important; padding: 10px 18px !important; }
.ms-done { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.ms-done .ico-svg, .ms-done .ico-svg svg { width: max(38px, calc(var(--u) * 86)); height: max(38px, calc(var(--u) * 86)); display: block; }
.ms-done b { font: 400 max(15px, calc(var(--u) * 30)) var(--font); color: #2a8a1e; letter-spacing: .03em; }
.ms.claimed { background: linear-gradient(#f2fff0, #d6f5cf); }
.ms.burst .ms-done { animation: stampIn .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes stampIn { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.ms.burst { animation: cardFlash .6s ease-out; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 6px #fff, 0 0 40px #ffd23a; } }
.ms .lk { display: inline-flex; align-items: center; gap: 4px; }
.ms .lk .ico-svg svg, .world .ico-svg svg { width: 1.3em; height: 1.3em; display: block; }
.ms-you { display: inline-flex; align-items: center; gap: 6px; }
.ms-you img { width: 1.3em; height: 1.3em; object-fit: contain; }
.world .ok, .world .lk { display: inline-flex; align-items: center; gap: 6px; }
.world .lock .ico-svg svg { width: 1em; height: 1em; }
/* v0.16: Trophy Road / World Map are full screens under the shared top bar now */
.screen.overlay#s-trophyroad, .screen.overlay#s-worldmap { z-index: auto; }
.rf-track { height: max(26px, calc(var(--u) * 54)); }


/* ---- v0.16 RAID header: live logo + victim card over the clean island plate ---- */
.raid-logo { position: absolute; left: calc(var(--u) * 137); top: calc(var(--u) * 54); width: calc(var(--u) * 579); pointer-events: none; animation: logoIn .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes logoIn { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.raid-card { position: absolute; left: calc(var(--u) * 200); top: calc(var(--u) * 238); width: calc(var(--u) * 525); height: calc(var(--u) * 124); box-sizing: border-box;
  border-radius: calc(var(--u) * 30); background: linear-gradient(#ffffff, #dcecff); border: calc(var(--u) * 6) solid #10173a;
  box-shadow: 0 calc(var(--u) * 7) 0 #10173a, inset 0 calc(var(--u) * -6) 0 #b9d4f5; }
.rc-av { position: absolute; left: calc(var(--u) * -76); top: 50%; width: calc(var(--u) * 152); height: calc(var(--u) * 152); transform: translateY(-50%); box-sizing: border-box;
  border-radius: 50%; background: radial-gradient(circle, #9fdcff, #3b9cf0); border: calc(var(--u) * 10) solid #fff; box-shadow: 0 0 0 calc(var(--u) * 6) #10173a;
  display: grid; place-items: center; overflow: hidden; }
.rc-av canvas { width: 78%; height: auto; image-rendering: pixelated; }
.rc-world { position: absolute; left: calc(var(--u) * 100); right: calc(var(--u) * 26); bottom: calc(var(--u) * 10); height: calc(var(--u) * 40);
  display: grid; place-items: center; border-radius: 999px; background: #1b2a66; color: #fff; font: 800 calc(var(--u) * 22)/1 system-ui, sans-serif; letter-spacing: .04em; }
.raid-owner { left: calc(var(--u) * 300) !important; width: calc(var(--u) * 410) !important; top: calc(var(--u) * 278) !important; z-index: 1; }
.rc-av.face canvas { visibility: hidden; }
.raid-shield { left: calc(var(--u) * 742) !important; top: calc(var(--u) * 246) !important; }

/* ---- v0.17 Home: full width, hovering hero, claimed tiles keep their names ---- */
.navbar2 { left: 0; width: 100%; padding-left: calc(var(--colx) + var(--k) * 6); padding-right: calc(var(--colx) + var(--k) * 6); box-sizing: border-box; }
.home-bird .hb-shadow { bottom: calc(var(--u) * -96); left: 32%; right: 32%; background: #0004; }
.ltile.claimed > img { filter: saturate(.35) brightness(.86); }
.lt-done { inset: 0 0 30% 0; gap: 0; }
.lt-done .ico-svg { width: 56%; }
.lt-done b { position: absolute; top: -8%; left: 50%; transform: translateX(-50%); font-size: 0.9em; white-space: nowrap; box-shadow: 0 0.12em 0 #14161f; }

/* ---- v0.17 raid result: victim face on every card, a block is the shield's moment ---- */
.raid-result { top: calc(var(--u) * 1100); overflow: visible; }
.raid-result .rc-face { position: absolute; left: calc(var(--u) * -30); top: calc(var(--u) * -56); width: calc(var(--u) * 132); height: calc(var(--u) * 132); border-radius: 50%;
  background: radial-gradient(circle, #9fdcff, #3b9cf0); border: calc(var(--u) * 8) solid #fff; box-shadow: 0 0 0 calc(var(--u) * 6) #10173a; display: grid; place-items: center; overflow: hidden; animation: faceIn .4s cubic-bezier(.2, 1.7, .4, 1); }
.raid-result .rc-face canvas { width: 100%; height: 100%; display: block; }
@keyframes faceIn { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.raid-result.blocked { border-color: #8fd8ff; background: linear-gradient(#22406e, #121b3a); padding-top: calc(var(--u) * 110); }
.raid-result.blocked .rc-icon { position: absolute; left: 50%; top: calc(var(--u) * -95); transform: translateX(-50%); animation: shieldDrop .5s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 0 calc(var(--u) * 24) #8fd8ffcc); }
.raid-result.blocked .rc-icon canvas { width: calc(var(--u) * 190); }
@keyframes shieldDrop { from { transform: translateX(-50%) translateY(calc(var(--u) * -120)) scale(.4); opacity: 0; } }
.raid-result.blocked h3 { color: #bfe9ff; font-size: calc(var(--u) * 64); }
.raid-result.blocked .rc-amt { font-size: calc(var(--u) * 64); color: #cfe6ff; }
.raid-result.blocked .rc-amt img { width: calc(var(--u) * 60); filter: saturate(.55); }
.raid-result .rc-sub.still { font-size: calc(var(--u) * 22); color: #9fb4e6; margin-top: calc(var(--u) * -6); }
.btn.sad { background: linear-gradient(#cfe2ff, #8fb2e8); color: #10173a !important; box-shadow: 0 calc(var(--u) * 8) 0 #4c6aa8, 0 0 0 calc(var(--u) * 5) #10173a; border: 0; }

/* ---- v0.17 race lobby: the roster strip fills as each Flappy lands ---- */
.race-roster .rr.wait { opacity: .18; filter: grayscale(1) brightness(1.6); }
.race-roster .rr.pop { animation: rrPop .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes rrPop { 0% { transform: scale(.3) translateY(-40%); } 60% { transform: scale(1.35); } }
.race-count.word { font-size: clamp(56px, 18vmin, 130px); }

/* ---- v0.17 chest won: hero on the race result, then it lands in its Home slot ---- */
.rs.has-hero { position: relative; padding-top: 92px; margin-top: 70px; }
.rs-hero { position: absolute; left: 50%; top: -86px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.rs-hero::before { content: ''; position: absolute; left: 50%; top: 40%; width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(#fff6c855 0 10deg, transparent 10deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 65%); mask: radial-gradient(circle, #000 25%, transparent 65%); animation: spin 10s linear infinite; }
.rs-hero img { width: 150px; filter: drop-shadow(0 8px 0 #0006) drop-shadow(0 0 18px #ffd23aaa); animation: heroChest .7s cubic-bezier(.2, 1.6, .4, 1) .15s both, heroBobC 1.6s ease-in-out .9s infinite; }
.rs-hero b { font-weight: 400; font-size: 26px; color: var(--gold); -webkit-text-stroke: 6px #10173a; paint-order: stroke fill; white-space: nowrap; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) .45s both; }
.rs-hero.lost img { filter: grayscale(.85) brightness(.7) drop-shadow(0 6px 0 #0006); animation: heroChest .7s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
.rs-hero.lost::before { display: none; }
.rs-hero.lost b { color: #ff9c9c; font-size: 22px; }
@keyframes heroChest { from { transform: translateY(90px) scale(.2) rotate(-14deg); opacity: 0; } 60% { transform: translateY(-12px) scale(1.12) rotate(4deg); opacity: 1; } }
@keyframes heroBobC { 50% { transform: translateY(-6px) rotate(-2deg); } }
.rs-row .rs-ico img { width: 34px; } .rs-row .rs-ico img.lost { filter: grayscale(1) brightness(.7); }

.chest-arrive { position: fixed; inset: 0; z-index: 38; cursor: pointer; }
.chest-arrive img { position: absolute; z-index: 1; filter: drop-shadow(0 10px 0 #0006); transform-origin: 50% 70%; }
.chest-arrive b { position: absolute; left: 0; right: 0; top: calc(40% + min(25vw, 130px) * .55); text-align: center; z-index: 1; font-weight: 400; font-size: 30px; color: var(--gold); -webkit-text-stroke: 7px #10173a; paint-order: stroke fill; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.chest-arrive.go b { opacity: 0; transition: opacity .15s; }
.ca-rays { position: absolute; left: 50%; top: 40%; width: 120vmin; height: 120vmin; translate: -50% -50%; border-radius: 50%; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle, #fff6c899 0 10%, transparent 45%), repeating-conic-gradient(#fff6c855 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 60%); mask: radial-gradient(circle, #000 15%, transparent 60%); animation: spin 12s linear infinite; }
.chest-arrive.rays .ca-rays { opacity: 1; }
.ca-poof { position: absolute; width: 10px; height: 10px; z-index: 2; }
.ca-poof::before, .ca-poof::after { content: ''; position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, #ffffffee, #dfe8f5aa 50%, transparent 70%); animation: poofOut .6s ease-out forwards; }
.ca-poof::after { animation-delay: .08s; left: -40px; top: -90px; width: 100px; height: 100px; }
@keyframes poofOut { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cslot.incoming .cs-art { visibility: hidden; }
.cslot.landed { animation: slotLand .5s cubic-bezier(.2, 1.8, .4, 1); }
.cslot.landed::after { content: ''; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, #fff6c8cc, transparent 60%); animation: poofOut .5s ease-out forwards; pointer-events: none; }
@keyframes slotLand { 0% { transform: scale(1.12, .86); } 50% { transform: scale(.96, 1.06); } }

/* ---- v0.17 nav: edge to edge, piano-key wave ---- */
.navbar2 { padding-left: calc(var(--colx) + var(--k) * 2); padding-right: calc(var(--colx) + var(--k) * 2); gap: calc(var(--k) * 2); }
.navbar2.piano .tab-face { animation: keyPress .34s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 60ms) both; }
.navbar2.piano .tab-lbl { animation: keyLbl .34s ease-out calc(var(--i) * 60ms) both; }
@keyframes keyPress { 0% { transform: none; } 30% { transform: translateY(calc(var(--k) * 7)) scaleY(.9); filter: brightness(.88); } 65% { transform: translateY(calc(var(--k) * -4)); } 100% { transform: none; } }
@keyframes keyLbl { 30% { transform: translateY(calc(var(--k) * 4)); } }
.tab:active .tab-face { transform: translateY(calc(var(--k) * 6)) scaleY(.9); filter: brightness(.9); transition: transform .06s; }
@media (prefers-reduced-motion: reduce) { .navbar2.piano .tab-face, .navbar2.piano .tab-lbl { animation: none; } }

/* ---- v0.17.1: Sidd's hi-res UI pack — glossy buttons + the bottom bar from Roby's reference ---- */
.cp-plus { border: 0; padding: 0; border-radius: 0; background: url("assets/ui/hd/btn_plus.webp") center / contain no-repeat; width: calc(var(--k) * 30) !important; height: calc(var(--k) * 30) !important; filter: drop-shadow(0 calc(var(--k) * 1.5) 0 #0006); }
.cp-plus svg { display: none; }
.cp-plus:active { transform: scale(.9); }
.tb-left[data-kind="back"] { padding: 0; border: 0; box-shadow: none; background: url("assets/ui/hd/btn_back.webp") center / contain no-repeat; filter: drop-shadow(0 calc(var(--k) * 3) 0 #0005); }
.tb-left[data-kind="back"] svg { display: none; }
.tb-left[data-kind="back"]:active { transform: translateY(calc(var(--k) * 2)) scale(.96); filter: none; }
.card .xbtn { border: 0; background: url("assets/ui/hd/btn_close.webp") center / contain no-repeat; color: transparent; font-size: 0; box-shadow: none; filter: drop-shadow(0 2px 0 #0005); }
.rc-x { border: 0; background: url("assets/ui/hd/btn_close.webp") center / contain no-repeat; padding: 0; }
.rc-x svg { display: none; }
.home-swap { position: absolute; pointer-events: none; object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 5) 0 #0005); }

/* bottom bar: the delivered strip (dark top rule, white → sky blue), the selected tab is a tall
   blue key that rises above the rule; every icon is the same size, inside its key */
.navbar2 { background: url("assets/ui/hd/nav_bar_bg.webp") center top / 100% 100% no-repeat, linear-gradient(#ffffff00 0 12%, #ffffff 12%, #8fdcf8); border-top: 0; box-shadow: none; height: calc(var(--k) * 80); padding-bottom: calc(var(--k) * 4); }
.navbar2::before { display: none; }
.tab { height: calc(var(--k) * 66); }
.tab-face { top: calc(var(--k) * 8); bottom: calc(var(--k) * 18); }
.tab-ico { width: 74%; height: 100%; }
.tab.on .tab-face { top: calc(var(--k) * -10); bottom: calc(var(--k) * -6); left: calc(var(--k) * -3); right: calc(var(--k) * -3); border-radius: calc(var(--k) * 14) calc(var(--k) * 14) 0 0; border: calc(var(--k) * 3.5) solid #14161f; border-bottom: 0;
  background: linear-gradient(#63c9ff, #2e93ec 55%, #1f7fe0); box-shadow: inset 0 calc(var(--k) * 3) 0 #ffffffaa, inset calc(var(--k) * 3) 0 0 #ffffff33; padding-bottom: calc(var(--k) * 24); }
.tab.on .tab-face::before { content: ''; position: absolute; left: calc(var(--k) * 5); top: calc(var(--k) * 4); width: calc(var(--k) * 8); height: calc(var(--k) * 6); border-radius: 50%; background: #ffffffcc; }
.tab.on .tab-ico { width: 74%; height: calc(100% - var(--k) * 4); transform: translateY(calc(var(--k) * -8)); filter: drop-shadow(0 calc(var(--k) * 2) 0 #0005); }
.tab-lbl { font-size: calc(var(--k) * 14); }
.tab.on .tab-lbl { font-size: calc(var(--k) * 14); transform: none; }
.tab.on .tab-badge { top: calc(var(--k) * -16); }

/* ---- v0.17.2: smaller nav (its own scale, --nk), Home art covers the screen ---- */
.home-stage .lt-starter, .home-stage .lt-daily { translate: calc(var(--u) * var(--edge-l, 0)) calc(var(--u) * var(--edge-t, 0)); }
.home-stage .lt-friends, .home-stage .lt-fest { translate: calc(var(--u) * var(--edge-r, 0) * -1) calc(var(--u) * var(--edge-t, 0)); }
.home-stage .raidcard { translate: 0 calc(var(--u) * var(--edge-t, 0)); }
#s-home { overflow: hidden; }
/* wide desktop windows: outside the play column, a soft blurred copy of the same scene */
#s-home::after { content: ''; position: absolute; inset: -40px; z-index: -1; background: url("assets/home.webp") center 70% / cover no-repeat; filter: blur(18px) saturate(1.1) brightness(.92); }
#s-home { isolation: isolate; }
/* icons sized by height (tabs are wide on desktop), never by the tab's width */
.tab-ico { width: auto !important; height: calc(var(--k) * 42) !important; max-width: 92%; object-fit: contain; }
.tab.on .tab-ico { height: calc(var(--k) * 50) !important; }
.tab-lbl { font-size: calc(var(--k) * 15); }
.tab.on .tab-lbl { font-size: calc(var(--k) * 15); }
.home-stage .raidcard { margin-left: calc(var(--u) * var(--edge-l, 0)); width: calc(var(--u) * (702 - var(--edge-l, 0) - var(--edge-r, 0))) !important; }


/* ==== v0.17.3 one scale for the whole app ====
   Sizes (in --k phone points): S 26–30 (+ buttons, pill icons) · M 40–48 (top-bar buttons, nav
   icons, trophy-bar cup / chest) · L 72+ (slot chests, side tiles). Same outline weight per size. */
.topbar { padding-top: calc(var(--sat, 0px) + var(--k) * 8); }
.navbar2 { height: calc(var(--k) * 62 + var(--sab, 0px)); padding: 0 calc(var(--colx) + var(--k) * 4) var(--sab, 0px); gap: calc(var(--k) * 4);
  grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tab { height: calc(var(--k) * 54); }
.tab-face { top: calc(var(--k) * 6); bottom: calc(var(--k) * 14); left: 0; right: 0; }
.tab-ico { width: auto !important; height: calc(var(--k) * 38) !important; max-width: 90%; object-fit: contain; }
.tab.on .tab-face { top: calc(var(--k) * -12); bottom: calc(var(--k) * -4); left: calc(var(--k) * 2); right: calc(var(--k) * 2); border-width: calc(var(--k) * 3); padding-bottom: calc(var(--k) * 18); }
.tab.on .tab-ico { height: calc(var(--k) * 44) !important; transform: translateY(calc(var(--k) * -6)); }
.tab-lbl, .tab.on .tab-lbl { font-size: calc(var(--k) * 12.5); -webkit-text-stroke-width: calc(var(--k) * 3); }
.tab-badge { min-width: calc(var(--k) * 18); height: calc(var(--k) * 18); font-size: calc(var(--k) * 11); line-height: calc(var(--k) * 13); right: 12%; }
.tab.on .tab-badge { top: calc(var(--k) * -18); }
/* wide windows: tabs keep a phone-like width, centred under the play column */
@media (min-aspect-ratio: 3/4) { .navbar2 { grid-template-columns: repeat(5, minmax(0, calc(var(--colw) / 5))); justify-content: center; } }

/* ---- v0.17.3 reward chest slots: one flat tile per slot on the clean tray (mockup style) ---- */
.home-stage .chest-row { gap: calc(var(--u) * 14); }
.home-stage .cslot { padding: calc(var(--u) * 10) calc(var(--u) * 10) calc(var(--u) * 12); border-radius: calc(var(--u) * 22); border: calc(var(--u) * 5) solid #0c3d8c;
  background: linear-gradient(#3aa4f8, #1f74dc); box-shadow: inset 0 calc(var(--u) * 4) 0 #ffffff40; grid-template-rows: minmax(0, 1fr) calc(var(--u) * 48); gap: calc(var(--u) * 6); }
.home-stage .cslot::before { display: none; }
.home-stage .cs-art { width: 92%; height: 100%; margin: 0; }
.home-stage .cs-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 5) 0 #0005); }
.home-stage .cs-label { width: 100%; height: calc(var(--u) * 48); border: 0; border-radius: 999px; background: #0b2350; font-size: calc(var(--u) * 26); -webkit-text-stroke: calc(var(--u) * 4) #0b2350; animation: none; }
.home-stage .cs-label .ico-svg { width: calc(var(--u) * 30); height: calc(var(--u) * 30); }
.home-stage .cslot.ready { background: linear-gradient(#ffe46a, #ffbe1f 60%, #f39a12); border-color: #7a4500; box-shadow: inset 0 calc(var(--u) * 4) 0 #ffffffa0; }
.home-stage .cslot.ready .cs-label { background: linear-gradient(#8ef05a, #2f9a1f); -webkit-text-stroke-color: #14461a; font-size: calc(var(--u) * 28); box-shadow: inset 0 calc(var(--u) * -3) 0 #0003; }
.home-stage .cslot.queued .cs-label, .home-stage .cslot.closed .cs-label { font-size: calc(var(--u) * 21); }
.home-stage .cslot.empty, .home-stage .cslot.locked { background: #0c3d8c38; border: calc(var(--u) * 4) dashed #ffffff7a; box-shadow: none; grid-template-rows: minmax(0, 1fr) auto; }
.home-stage .cslot.empty .cs-art { visibility: hidden; }
.home-stage .cslot.empty .cs-label, .home-stage .cslot.locked .cs-label { height: auto; min-height: calc(var(--u) * 48); background: none; color: #ffffff; -webkit-text-stroke: 0;
  font: 800 calc(var(--u) * 21)/1.1 system-ui, sans-serif; white-space: normal; text-align: center; text-shadow: 0 calc(var(--u) * 2) 0 #0c3d8c; }
.home-stage .cslot.empty .cs-label { position: absolute; inset: 0; display: grid; place-items: center; }
.home-stage .cslot.locked { border-color: #ffffff4d; }
.home-stage .cslot.locked .cs-art .ico-svg { width: 40%; filter: grayscale(1) brightness(2.2); opacity: .55; }
.home-stage .cslot.locked .cs-label { color: #e7f2ff; opacity: .85; }
/* claimed tiles: quiet, not stamped */
.ltile.claimed > img { filter: saturate(.25) brightness(.8) contrast(.9); opacity: .85; }
.lt-tag.free { right: -6%; top: -5%; font-size: .72em; padding: .12em .5em .08em; }

/* ---- v0.17.3 incoming-raid card: compact, one row ---- */
.home-stage .raidcard { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; column-gap: calc(var(--u) * 16); padding: calc(var(--u) * 14) calc(var(--u) * 16); border-width: calc(var(--u) * 5); border-radius: calc(var(--u) * 26); align-items: center; }
.home-stage .raidcard .rc-face { grid-row: auto; width: calc(var(--u) * 104); height: calc(var(--u) * 104); }
.home-stage .raidcard .rc-face canvas { border: calc(var(--u) * 5) solid #fff; box-shadow: 0 0 0 calc(var(--u) * 4) #14161f; background: radial-gradient(circle, #cfe9ff, #7cc4ff); }
.home-stage .rc-text { display: flex; flex-direction: column; gap: calc(var(--u) * 6); font: 700 calc(var(--u) * 27)/1.15 system-ui, sans-serif; }
.home-stage .rc-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-stage .rc-text b { font-size: calc(var(--u) * 31); }
.home-stage .rc-why { display: flex; align-items: center; gap: calc(var(--u) * 8); margin: 0; font: 800 calc(var(--u) * 23)/1 system-ui, sans-serif; color: #9fd8ff; }
.home-stage .rc-why img { width: calc(var(--u) * 28); }
.rc-shield canvas { width: calc(var(--u) * 34) !important; height: calc(var(--u) * 34) !important; display: block; }
.home-stage .rc-acts { grid-column: auto; display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--u) * 8); }
.home-stage .rc-x { position: absolute; right: calc(var(--u) * -18); top: calc(var(--u) * -18); width: calc(var(--u) * 52); height: calc(var(--u) * 52); }
.home-stage .rc-btn { flex: none !important; font-size: calc(var(--u) * 26) !important; min-height: 0 !important; height: calc(var(--u) * 60); padding: 0 calc(var(--u) * 22) !important; border-radius: calc(var(--u) * 18); }
.home-stage .rc-btn .ico-svg { width: calc(var(--u) * 30); height: calc(var(--u) * 30); }
.home-stage .rc-line { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; }
.home-stage .rc-text { font-size: calc(var(--u) * 25); }
.home-stage .rc-text b { font-size: calc(var(--u) * 28); }
.home-stage .cslot.locked .cs-label { font-size: calc(var(--u) * 17); letter-spacing: -.01em; }
.home-stage .cslot.locked .cs-art .ico-svg { width: 46%; opacity: .7; }
.home-stage .cslot.empty .cs-label { font-size: calc(var(--u) * 19); }
.home-stage .cslot.locked .cs-label { font-size: calc(var(--u) * 19); opacity: .9; }

/* ---- v0.17.3 Base: blurred scene outside the play column, tidy panel, consistent cards ---- */
#s-base, #s-home { isolation: isolate; overflow: hidden; }
#s-base { background: #0aa0e6; }
#s-base::after { content: ''; position: absolute; inset: -40px; z-index: -1; background: url("assets/base.webp") center 40% / cover no-repeat; filter: blur(18px) saturate(1.1) brightness(.92); }
#s-base[data-world="2"]::after { background-image: url("assets/w2/base.webp"); } #s-base[data-world="3"]::after { background-image: url("assets/w3/base.webp"); }
.bp-head { gap: calc(var(--u) * 8); }
.bp-head .wb-head { font-size: calc(var(--u) * 32); }
.bp-head .wb-count { font-size: calc(var(--u) * 26); }
.wb-foot { display: flex; align-items: center; gap: calc(var(--u) * 12); min-height: calc(var(--u) * 44); }
.wb-foot .wb-goal { flex: 1; min-width: 0; font-size: calc(var(--u) * 22); }
.bp-head .wb-claim { position: static; flex: none; height: calc(var(--u) * 50); min-height: 0; padding: 0 calc(var(--u) * 24); font-size: calc(var(--u) * 26) !important; border-radius: calc(var(--u) * 16); box-shadow: 0 calc(var(--u) * 5) 0 #8a4a00; }
/* landmark cards: same outline weight, padding and button height as the rest of the app */
.bcards { gap: calc(var(--u) * 12); }
.bcard { padding: calc(var(--u) * 12) calc(var(--u) * 8) calc(var(--u) * 10); gap: calc(var(--u) * 6); border-width: calc(var(--u) * 4); border-radius: calc(var(--u) * 20); box-shadow: 0 calc(var(--u) * 5) 0 #0006; }
.bcard .bc-name { font-size: calc(var(--u) * 23); }
.bcard .thumb { width: 72%; border-width: calc(var(--u) * 4); }
.bcard .bc-stage { font-size: calc(var(--u) * 18); }
.bcard .pips i { width: calc(var(--u) * 16); height: calc(var(--u) * 16); }
.bcard .cta { min-height: 0; height: calc(var(--u) * 54); border-width: calc(var(--u) * 3.5); font-size: calc(var(--u) * 25); }
.bcard .cta img, .bcard .cta .ico-svg { width: calc(var(--u) * 26) !important; height: calc(var(--u) * 26) !important; }
@media (max-width: 360px) {
  .bcards { grid-template-columns: repeat(5, 92px); gap: 8px; }
  .bcard .bc-name { font-size: 12px; } .bcard .bc-stage { font-size: 10px; } .bcard .cta { font-size: 13px; height: 30px; }
  .bcard .pips i { width: 8px; height: 8px; } .bcard .cta img, .bcard .cta .ico-svg { width: 14px !important; height: 14px !important; }
}
@media (max-width: 360px) { .bcard .thumb { width: 54%; } .bcard { gap: 3px; padding: 6px 5px; } }
/* every art screen: a soft blurred copy of its scene outside the play column (no flat blue) */
#s-shop, #s-birds, #s-trophyroad, #s-worldmap { isolation: isolate; overflow: hidden; }
#s-shop::after, #s-birds::after, #s-trophyroad::after, #s-worldmap::after { content: ''; position: absolute; inset: -40px; z-index: -1;
  background: url("assets/bg_sky.webp") center / cover no-repeat; filter: blur(16px) saturate(1.1) brightness(.95); }
/* v0.17.3: sheet text scales with the screen like everything else (smaller floors on small phones) */
.ms b { font-size: max(14px, calc(var(--u) * 34)); }
.ms small { font-size: max(11.5px, calc(var(--u) * 24)); }
.ms .at { font-size: max(11px, calc(var(--u) * 22)); }
.ms .state, .ms-done b { font-size: max(11px, calc(var(--u) * 24)); }
.ms-ico { width: max(46px, calc(var(--u) * 120)); height: max(46px, calc(var(--u) * 120)); }
.ms-done .ico-svg, .ms-done .ico-svg svg { width: max(30px, calc(var(--u) * 76)); height: max(30px, calc(var(--u) * 76)); }
.ms-claim { font-size: max(15px, calc(var(--u) * 32)) !important; }
.home-stage .cslot.locked .cs-label { font-size: calc(var(--u) * 22); }
@media (max-width: 360px) { .bcard .thumb { width: 44%; } }
/* v0.19.2: Home per world (fix list #7) */
.home-stage[data-world="2"] { background-image: url("assets/w2/home.webp"); }
.home-stage[data-world="3"] { background-image: url("assets/w3/home.webp"); }
#s-home[data-world="2"]::after { background-image: url("assets/w2/home.webp"); }
#s-home[data-world="3"]::after { background-image: url("assets/w3/home.webp"); }
