/* ===========================================================================
   TROPHY ROOM v2 · "My Base" — the look
   Flat, no gradients, no shadow ellipses. Nunito for labels; Grobold only in
   the small-caps title (Kid Kit). Every ambient loop runs on its own clock
   (durations and delays are set per element in my-base-art.js).
   =========================================================================== */
:root {
  --navy: #151c33; --navy-2: #1f2847; --navy-3: #2c3760; --ink: #fff; --muted: #8f9bc2; --gold: #ffd35c; --cream: #fdfaf2; --teal: #3fb3c4;
  --font: "Nunito", "Avenir Next Rounded", system-ui, sans-serif;
  --drawer: 118px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); color: var(--ink); font: 700 15px/1.3 var(--font); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.mb-app { position: fixed; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }

/* ── the stage: the room, under a camera ─────────────────────────────── */
.mb-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #171329; }
.mb-bd { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; pointer-events: none; }
.mb-room { position: absolute; left: 0; top: 0; width: 1440px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
.mb-room > div { position: absolute; left: 0; top: 0; width: 1440px; height: 1080px; }
.mb-a { position: absolute; display: block; pointer-events: none; }
.mb-disc { border-radius: 50%; }

/* the room's own furniture */
.mb-tro { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: grab; touch-action: none; }
.mb-tro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; -webkit-user-drag: none; user-select: none; }
.mb-tro.is-hung img { object-position: 50% 0; transform-origin: 50% 0; }
/* a hung treasure breathes on its hook. Uses the `rotate` property, not `transform`, so the
   tap-wobble (WAAPI on transform) and drag lift compose with it instead of replacing it.
   The art is vector now, so the turn stays sharp at every zoom. */
.mb-tro.is-hung:not(.is-drag) img { animation: mbHang 3.1s ease-in-out infinite alternate; }
.mb-tro.is-hung:nth-child(2n) img { animation-duration: 3.7s; animation-delay: -1.3s; }
.mb-tro.is-hung:nth-child(3n) img { animation-duration: 2.7s; animation-delay: -.6s; }
@keyframes mbHang { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
.mb-tro.is-drag { z-index: 5; cursor: grabbing; pointer-events: none; }
.mb-tro.is-drag img { transform: scale(1.06); }
.mb-items { z-index: 1; }
.mb-bell { position: absolute; left: 0; top: 0; width: 100px !important; height: 100px !important; transform-origin: 50% 97%; z-index: 2; pointer-events: auto; }
.mb-squash { position: absolute; inset: 0; transform-origin: 50% 97%; }
.mb-squash svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mb-bell .tr-aura { pointer-events: none; }
.mb-z { position: absolute; right: -6%; top: -4%; font: 900 22px/1 var(--font); color: #fff; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.mb-z.on { opacity: 1; }
.mb-z i { display: block; font-style: normal; animation: mbZ 2.6s ease-out infinite; }
@keyframes mbZ { from { transform: translate(0, 0) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translate(40%, -160%) scale(1.1); opacity: 0; } }
.mb-front { z-index: 3; }
.mb-fx { z-index: 4; }
.mb-fxe { position: absolute; pointer-events: none; }

/* where a dragged trophy will land: a flat bar on the surface (never a shadow), or a ring on a hook */
.mb-marker { position: absolute; left: 0; top: 0; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .7); opacity: 0; transition: opacity .15s ease; z-index: 1; pointer-events: none; }
.mb-hookmark { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .85); opacity: 0; transition: opacity .15s ease; z-index: 1; pointer-events: none; }
.mb-app:not(.is-dragging) .mb-hooks { opacity: .55; }

/* the honour shelf */
.mb-honour { z-index: 1; }
.mb-chest { position: absolute; pointer-events: auto; cursor: pointer; }
.mb-chest svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mb-chest .mb-lid { transform-box: view-box; transform-origin: 10px 46px; }
.mb-chest.is-ghost { opacity: .7; }
.mb-stk { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 50%; }
.mb-stk svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mb-stk.is-ghost { border: 3px dashed rgba(138, 85, 48, .55); }
.mb-dark .mb-chest.is-ghost { opacity: .5; }
.mb-glint { position: absolute; right: -6%; top: -4%; width: 34%; height: 34%; color: #fff; opacity: 0; animation: mbGlint 5s ease-in-out infinite; pointer-events: none; }
@keyframes mbGlint { 0%, 84% { opacity: 0; transform: scale(.2) rotate(0deg); } 90% { opacity: 1; transform: scale(1) rotate(45deg); } 97%, 100% { opacity: 0; transform: scale(.3) rotate(90deg); } }
.mb-plate { position: absolute; width: 56px; display: grid; justify-items: center; gap: 1px; pointer-events: none; }
.mb-plate b { position: relative; width: 40px; height: 16px; border-radius: 4px; overflow: hidden; border: 2px solid var(--cream); }
.mb-plate b i { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.mb-plate span { font: 900 10px/1 var(--font); color: var(--cream); letter-spacing: .02em; white-space: nowrap; }

/* ── ambient life (the hunt's, renamed): transforms and opacity only ─── */
.mb-cloud { animation: mbDrift 40s ease-in-out infinite alternate; }
@keyframes mbDrift { from { transform: translateX(calc(var(--dx) * -1)); } to { transform: translateX(var(--dx)); } }
.mb-gull { animation: mbGlide 28s linear infinite; }
.mb-gull path { transform-origin: 50% 70%; animation: mbFlap .55s ease-in-out infinite alternate; }
@keyframes mbGlide { from { transform: translateX(0); } to { transform: translateX(var(--gx)); } }
@keyframes mbFlap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.mb-waves { animation: mbWaves 7s ease-in-out infinite alternate; }
@keyframes mbWaves { from { transform: translateX(0); } to { transform: translateX(var(--wx)); } }
.mb-shaft { background: rgba(255, 255, 255, .1); transform-origin: 50% 0; transform: skewX(-14deg); animation: mbShaft 6s ease-in-out infinite alternate; }
@keyframes mbShaft { from { opacity: .35; } to { opacity: 1; } }
.mb-bub { border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: mbRise 7s linear infinite; }
@keyframes mbRise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: .8; } to { transform: translateY(var(--ry)); opacity: 0; } }
.mb-weed { transform-origin: 50% 100%; animation: mbSway 4.5s ease-in-out infinite alternate; }
.mb-sway { transform-origin: 50% 100%; animation: mbSwayS 6s ease-in-out infinite alternate; }
@keyframes mbSway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes mbSwayS { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.mb-coral { transform-origin: 50% 100%; animation: mbSwayS 6s ease-in-out infinite alternate; }
.mb-fish { animation: mbSwim 30s linear infinite; }
@keyframes mbSwim { 0% { transform: translateX(0) scaleX(-1); } 48% { transform: translateX(var(--fx)) scaleX(-1); } 50% { transform: translateX(var(--fx)) scaleX(1); } 98% { transform: translateX(0) scaleX(1); } 100% { transform: translateX(0) scaleX(-1); } }
.mb-fish .mb-fin { transform-origin: 44px 17px; animation: mbTail .5s ease-in-out infinite alternate; }
@keyframes mbTail { from { transform: scaleY(.8); } to { transform: scaleY(1.1); } }
.mb-star { border-radius: 50%; background: #fff; animation: mbTwinkle 2.6s ease-in-out infinite alternate; }
@keyframes mbTwinkle { from { opacity: .2; } to { opacity: 1; } }
.mb-flame { transform-origin: 50% 100%; animation: mbFlame .45s ease-in-out infinite alternate; }
.mb-flame.b { animation-duration: .38s; animation-delay: -.2s; } .mb-flame.c { animation-duration: .52s; animation-delay: -.1s; }
@keyframes mbFlame { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.9, 1.12) skewX(4deg); } }
.mb-glow { border-radius: 50%; background: #ffb35c; opacity: .09; animation: mbGlow 1.3s ease-in-out infinite alternate; }
@keyframes mbGlow { from { opacity: .05; transform: scale(.96); } to { opacity: .12; transform: scale(1.04); } }
.mb-ember { border-radius: 50%; background: #ffc94a; animation: mbEmber 3s ease-out infinite; }
@keyframes mbEmber { from { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--ex), var(--ey)); opacity: 0; } }
.mb-hi { animation: mbTwinkle 2.2s ease-in-out infinite alternate; }
.mb-blink { animation: mbTwinkle 1.4s steps(2, jump-none) infinite alternate; }
.mb-ffly { border-radius: 50%; background: #fff3a0; animation: mbWander 9s ease-in-out infinite alternate, mbFblink 2.4s ease-in-out infinite; }
@keyframes mbWander { 0% { transform: translate(0, 0); } 33% { transform: translate(var(--wx), calc(var(--wy) * -1)); } 66% { transform: translate(calc(var(--wx) * -.6), var(--wy)); } 100% { transform: translate(calc(var(--wx) * .4), calc(var(--wy) * .5)); } }
@keyframes mbFblink { 0%, 100% { opacity: .15; } 40%, 60% { opacity: 1; } }
.mb-bfly { animation: mbWander 11s ease-in-out infinite alternate; }
.mb-bfly .mb-wing { transform-origin: 50% 50%; animation: mbWing .22s ease-in-out infinite alternate; }
@keyframes mbWing { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
.mb-shoot { height: 2px; border-radius: 2px; background: #fff; transform-origin: 0 50%; animation: mbShoot 11s ease-in infinite; }
@keyframes mbShoot { 0%, 88% { transform: translate(0, 0) rotate(18deg) scaleX(.2); opacity: 0; } 90% { opacity: 1; } 100% { transform: translate(var(--sx), var(--sy)) rotate(18deg) scaleX(1); opacity: 0; } }
.mb-frond { transform-origin: 50% 100%; animation: mbSway 5.5s ease-in-out infinite alternate; }
.mb-bulb { border-radius: 50% 50% 46% 46%; animation: mbBulb 2.2s ease-in-out infinite alternate; }
@keyframes mbBulb { from { opacity: .55; } to { opacity: 1; } }
.mb-reduce *, .mb-reduce *::before { animation: none !important; }
.mb-reduce .mb-shoot, .mb-reduce .mb-ember, .mb-reduce .mb-glint { display: none; }

/* ── chrome on the stage: round cream buttons, icons only ────────────── */
.mb-round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); color: var(--navy); box-shadow: 0 4px 0 rgba(21, 28, 51, .28); }
.mb-round svg { width: 30px; height: 30px; }
.mb-round:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(21, 28, 51, .28); }
.mb-round[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: 0 4px 0 rgba(21, 28, 51, .28); pointer-events: none; }
.mb-house { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 14px); }
.mb-zoom { position: absolute; z-index: 6; right: calc(env(safe-area-inset-right, 0px) + 14px); bottom: 14px; display: grid; gap: 12px; }
/* the shared chrome's back arrow, as the round cream button every v2 page has (no "Menu" word) */
html .pgc-root .pgc-btn.pgc-menu { width: 54px; height: 54px; min-width: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--navy); box-shadow: 0 4px 0 rgba(21, 28, 51, .28); }
html .pgc-root .pgc-btn.pgc-menu .pgc-label { display: none; }
html .pgc-root .pgc-btn.pgc-menu svg { width: 26px; height: 26px; stroke-width: 3.2; }

/* ── the drawer ──────────────────────────────────────────────────────── */
.mb-drawer { position: relative; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px) calc(env(safe-area-inset-left, 0px) + 14px); background: var(--navy); --side: 0;
  transition: background-color .2s ease; }
.mb-drawer.is-drop { background: var(--navy-3); }
.mb-drawer.is-drop::after { content: ""; position: absolute; inset: 6px; border-radius: 20px; border: 3px dashed rgba(255, 255, 255, .5); pointer-events: none; }
.mb-purse { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 8px 10px; border-radius: 18px; background: var(--navy-2); }
.mb-purse .mb-coin-i { width: 30px; height: 30px; }
.mb-purse b { font-size: 18px; font-weight: 900; line-height: 1; }
.mb-strip { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 6px 2px; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x; }
.mb-strip::-webkit-scrollbar { display: none; }
.mb-tile { position: relative; flex: none; width: 88px; height: 88px; border-radius: 20px; background: var(--navy-2); display: grid; place-items: center; touch-action: pan-x; transition: background-color .2s ease; }
.mb-tile img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.mb-tile.is-own { background: #2f3a66; }
.mb-tile.is-own:not(.is-on) { cursor: grab; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22); }
.mb-tile.is-on img { opacity: .45; }
.mb-tile.is-new { box-shadow: inset 0 0 0 4px var(--gold); }
.mb-check { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: #6AB845; color: #fff; display: grid; place-items: center; }
.mb-check svg { width: 18px; height: 18px; }
.mb-tile.is-lock img { opacity: .62; }
.mb-tile.can-buy { box-shadow: inset 0 0 0 3px var(--gold); }
.mb-tile.can-buy img { opacity: 1; }
.mb-chip { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 2px 8px 2px 4px; border-radius: 999px; background: var(--cream); color: var(--navy); font: 900 14px/1 var(--font); white-space: nowrap; }
.mb-chip .mb-coin-i { width: 18px; height: 18px; }
.mb-sep { flex: none; width: 4px; height: 56px; border-radius: 2px; background: var(--navy-3); margin: 0 4px; }
.mb-empty { flex: none; width: 88px; height: 88px; border-radius: 20px; border: 3px dashed var(--navy-3); display: grid; place-items: center; }
.mb-empty .mb-coin-i { width: 36px; height: 36px; opacity: .6; }

/* a phone on its side: the drawer is a column on the right */
@media (orientation: landscape) and (max-height: 520px) {
  .mb-app { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) auto; }
  .mb-drawer { --side: 1; flex-direction: column; width: calc(env(safe-area-inset-right, 0px) + 112px); padding: calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-right, 0px) + 10px) 8px 10px; }
  .mb-purse { width: 100%; grid-auto-flow: column; justify-content: center; align-items: center; gap: 6px; padding: 6px; }
  .mb-purse .mb-coin-i { width: 24px; height: 24px; }
  .mb-strip { flex-direction: column; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; width: 100%; padding: 2px 0 8px; gap: 12px; }
  .mb-tile { width: 84px; height: 84px; touch-action: pan-y; }
  .mb-sep { width: 56px; height: 4px; margin: 2px 0; }
  .mb-house { right: 12px; top: 10px; width: 46px; height: 46px; }
  .mb-zoom { right: 12px; bottom: 10px; gap: 8px; }
  .mb-zoom .mb-round { width: 46px; height: 46px; }
  html .pgc-root .pgc-btn.pgc-menu { width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
}
@media (max-width: 480px) {
  .mb-tile { width: 76px; height: 76px; border-radius: 18px; }
  .mb-purse { min-width: 54px; padding: 6px 8px; }
  .mb-drawer { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mb-zoom .mb-round, .mb-house { width: 48px; height: 48px; }
}

/* ── the buy sheet ───────────────────────────────────────────────────── */
.mb-sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 30, .55); }
.mb-card { position: relative; width: min(100%, 360px); background: var(--cream); color: var(--navy); border-radius: 28px; padding: 24px 22px 22px; display: grid; justify-items: center; gap: 10px; text-align: center; box-shadow: 0 8px 0 rgba(0, 0, 0, .18); }
.mb-card h2 { margin: 0; font: 900 24px/1.1 var(--font); }
.mb-buyart { width: 150px; height: 150px; display: grid; place-items: center; }
.mb-buyart img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mb-x { position: absolute; top: -14px; right: -10px; width: 48px; height: 48px; background: #fff; }
.mb-x svg { width: 22px; height: 22px; }
.mb-get { display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 26px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 900 26px/1 var(--font); text-decoration: none; box-shadow: 0 5px 0 #c48a1c; }
.mb-get:active { transform: translateY(3px); box-shadow: 0 2px 0 #c48a1c; }
.mb-get .mb-coin-i { width: 34px; height: 34px; }
.mb-get svg:last-child:not(.mb-coin-i) { width: 30px; height: 30px; }
.mb-earn { background: #6AB845; color: #fff; box-shadow: 0 5px 0 #4b8a2e; padding: 10px 34px; }
.mb-earn svg { width: 44px; height: 44px; }
.mb-need { display: flex; align-items: center; gap: 6px; margin: 0; font: 900 26px/1 var(--font); }
.mb-need svg { width: 28px; height: 28px; }
.mb-math { display: flex; align-items: center; gap: 4px; margin: 0; color: #5b6580; font-weight: 800; }
.mb-math .mb-coin-i { width: 18px; height: 18px; }

/* ── the toast ───────────────────────────────────────────────────────── */
.mb-toast { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--cream); color: var(--navy); font: 900 16px/1.2 var(--font); box-shadow: 0 4px 0 rgba(21, 28, 51, .25); white-space: nowrap; pointer-events: none; max-width: calc(100vw - 150px); }
.mb-toast svg { width: 24px; height: 24px; flex: none; }
.mb-tchest svg { width: 30px; height: 26px; }

/* ── the picker: six postcards, kid-first ────────────────────────────── */
.mb-picker { position: fixed; inset: 0; z-index: 15; overflow-y: auto; overflow-x: hidden; background: var(--navy); display: grid; align-content: start; justify-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 22px); }
.mb-ptitle { margin: 4px 0 14px; position: relative; }
.mb-ptitle .kk-word { font-size: clamp(54px, 9vw, 92px); }
.mb-ptitle .kk-kicker { font-size: clamp(26px, 4.4vw, 44px); }
.mb-grid { width: min(100%, 1180px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mb-pc { position: relative; display: grid; gap: 8px; justify-items: center; padding: 0; border-radius: 22px; color: var(--ink); }
.mb-pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 7px solid var(--cream); box-shadow: 0 6px 0 rgba(0, 0, 0, .28); transition: transform .2s ease; }
.mb-pc:active .mb-pic { transform: translateY(3px) scale(.98); }
.mb-mini { position: absolute; inset: 0; container-type: size; }
.mb-mini * { animation: none !important; }
.mb-minibd { position: absolute; inset: 0; }
.mb-miniroom { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mb-miniroom .mb-a { position: absolute; }
.mb-pname { font: 900 clamp(16px, 2vw, 21px)/1 var(--font); }
.mb-here { position: absolute; top: -10px; right: -8px; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); display: none; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.mb-here svg { width: 26px; height: 26px; }
.mb-pc.is-here .mb-here { display: grid; }
.mb-pc.is-here .mb-pic { border-color: var(--gold); }
.mb-pc.is-lure .mb-pic { animation: mbLure 2.4s ease-in-out infinite; }
@keyframes mbLure { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-6px) rotate(.6deg); } }
@media (max-width: 700px) { .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .mb-pic { border-width: 5px; border-radius: 16px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .mb-picker { padding-left: calc(env(safe-area-inset-left, 0px) + 74px); padding-right: calc(env(safe-area-inset-right, 0px) + 16px); }
  .mb-ptitle { margin: 0 0 8px; } .mb-ptitle .kk-word { font-size: 48px; } .mb-ptitle .kk-kicker { font-size: 24px; }
  .mb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 640px); }
  .mb-pic { border-width: 4px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mb-pc.is-lure .mb-pic, .mb-z i, .mb-glint, .mb-tro.is-hung img { animation: none; } }

/* hunt-only finds (2026-10-11): a chest badge instead of a price; the card says which room */
.mb-tile.is-hunt img { opacity: .55; filter: saturate(.6); }
.mb-chip-hunt { padding: 3px 6px; }
.mb-chip-hunt svg { width: 20px; height: 16px; display: block; }
.mb-hunt-where { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mb-hunt-where .mb-tchest svg { width: 28px; height: 22px; display: block; }
.mb-hunt-sky { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; display: inline-block; }
/* the gamepad's buttons were drawn white on its white body: invisible on the green "go play" button */
.mb-earn svg path { stroke: #6AB845; }
.mb-earn svg circle { fill: #6AB845; }

/* ── the play strip (2026-10-11): a placed instrument you tap opens this in the drawer's place ──
   Your bell's scale on 8 big keys in Chroma note colours, chord pads to strum, drum pads for the
   DJ desk. Flat: no gradients, no shadow ellipses; Nunito letters; the close button is an icon. */
.mb-app.is-playing .mb-drawer { display: none; }
.mb-play { position: relative; z-index: 8; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art body x"; align-items: center; gap: 14px;
  padding: 12px calc(env(safe-area-inset-right, 0px) + 14px) calc(env(safe-area-inset-bottom, 0px) + 12px) calc(env(safe-area-inset-left, 0px) + 14px);
  background: var(--navy); touch-action: none; user-select: none; -webkit-user-select: none; }
.mb-play-art { grid-area: art; width: 84px; height: 84px; border-radius: 22px; background: var(--navy-2); display: grid; place-items: center; }
.mb-play-art img { width: 80%; height: 80%; object-fit: contain; transform-origin: 50% 100%; pointer-events: none; -webkit-user-drag: none; }
.mb-play-x { grid-area: x; align-self: start; }
.mb-play-body { grid-area: body; display: grid; gap: 10px; width: 100%; max-width: 980px; justify-self: center; min-width: 0; }
.mb-keys { display: flex; gap: 8px; height: clamp(124px, 23vh, 200px); align-items: flex-end; }
.mb-key { position: relative; flex: 1 1 0; min-width: 0; height: var(--h, 100%); border-radius: 18px; background: var(--c); color: var(--ink); display: grid; align-items: end; justify-items: center;
  padding: 0 0 12px; touch-action: none; transition: transform .1s ease, filter .1s ease; }
.mb-key b { position: relative; font: 900 clamp(18px, 2.6vw, 30px)/1 var(--font); pointer-events: none; }
.mb-key.is-on { transform: translateY(4px) scale(.97); filter: brightness(1.18) saturate(1.1); }
/* the xylophone: bars that shorten as they climb, two nails each */
.mb-play[data-look="bars"] .mb-keys { align-items: center; }
.mb-play[data-look="bars"] .mb-key { border-radius: 14px; align-items: center; padding: 0; }
.mb-play[data-look="bars"] .mb-key::before, .mb-play[data-look="bars"] .mb-key::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(21, 28, 51, .32); }
.mb-play[data-look="bars"] .mb-key::before { top: 9%; } .mb-play[data-look="bars"] .mb-key::after { bottom: 9%; }
/* pianos and the DJ desk: keys side by side */
.mb-play[data-look="keys"] .mb-keys { gap: 5px; }
.mb-play[data-look="keys"] .mb-key { border-radius: 6px 6px 18px 18px; }
/* strings: a string runs down each key */
.mb-play[data-look="strings"] .mb-key::before { content: ""; position: absolute; top: 10px; bottom: 50px; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: currentColor; opacity: .4; transition: opacity .1s ease; }
.mb-play[data-look="strings"] .mb-key.is-on::before { opacity: .9; }
/* pipes (trumpet, recorder, bagpipe): round-ended, a finger hole near the top */
.mb-play[data-look="pipes"] .mb-key { border-radius: 999px; }
.mb-play[data-look="pipes"] .mb-key::before { content: ""; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: rgba(21, 28, 51, .3); }
/* chord pads to strum: a finger slides across the four strings */
.mb-chords, .mb-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: clamp(66px, 11vh, 96px); }
.mb-pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mb-chord { position: relative; border-radius: 18px; background: var(--c); color: var(--ink); display: grid; place-items: center; overflow: hidden; touch-action: none; transition: filter .1s ease; }
.mb-chord.is-on { filter: brightness(1.15); }
.mb-strings { position: absolute; inset: 10px 8%; display: flex; justify-content: space-between; pointer-events: none; }
.mb-strings i { width: 4px; border-radius: 2px; background: currentColor; opacity: .38; transition: opacity .12s ease, transform .12s ease; }
.mb-strings i.is-on { opacity: 1; transform: scaleX(1.8); }
.mb-chord b { position: relative; padding: 2px 10px; border-radius: 12px; background: var(--c); font: 900 clamp(20px, 2.8vw, 30px)/1 var(--font); pointer-events: none; }
.mb-pad { border-radius: 18px; background: var(--navy-2); display: grid; place-items: center; touch-action: none; transition: background-color .1s ease, transform .1s ease; }
.mb-pad svg { width: 44px; height: 44px; pointer-events: none; }
.mb-pad[data-pad="kick"] { color: var(--gold); } .mb-pad[data-pad="clap"] { color: #EA6BA3; }
.mb-pad.is-on { background: var(--navy-3); transform: scale(.97); }
@media (max-width: 700px) {
  .mb-play { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art . x" "body body body"; gap: 10px; padding-top: 10px; }
  .mb-play-art { width: 60px; height: 60px; border-radius: 18px; }
  .mb-keys { gap: 6px; height: clamp(150px, 28vh, 230px); }
  .mb-play[data-look="keys"] .mb-keys { gap: 4px; }
  .mb-key { border-radius: 14px; padding-bottom: 10px; }
  .mb-key b { font-size: 19px; }
  .mb-chords, .mb-pads { gap: 8px; height: 72px; }
  .mb-play[data-look="strings"] .mb-key::before { bottom: 42px; }
}
/* a phone on its side: the strip goes under the room (the drawer's column steps away) */
@media (orientation: landscape) and (max-height: 520px) {
  .mb-app.is-playing { grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
  .mb-play { padding-top: 8px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); gap: 10px; }
  .mb-play-art { width: 56px; height: 56px; border-radius: 16px; }
  .mb-keys { height: clamp(96px, 30vh, 140px); }
  .mb-chords, .mb-pads { height: 54px; gap: 8px; }
  .mb-play-x { width: 46px; height: 46px; }
}
.mb-reduce .mb-key.is-on, .mb-reduce .mb-pad.is-on { transform: none; }
.mb-reduce .mb-strings i.is-on { transform: none; }
