:root {
  --bg: #000000;
  --card: #151518;
  --ink: #f4f2ee;
  --soft: rgba(244, 242, 238, 0.56);
  --line: rgba(244, 242, 238, 0.1);
  --accent: #ffd23f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.mb { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; width: min(340px, 100%); padding: 16px 14px 14px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, #ffffff), var(--card) 36%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -36px color-mix(in srgb, var(--accent) 45%, transparent); }
.mb__head { display: grid; gap: 2px; padding: 0 4px; }
.mb__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; }
.mb__head span { font-size: 12px; line-height: 15px; color: var(--soft); }

.mb__items { display: grid; gap: 5px; }
.mb__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 10px 0 6px; border-radius: 15px; text-align: left; background: rgba(244, 242, 238, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, box-shadow 0.25s; }
.mb__item[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 60%, transparent); }
.mb__item:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.mb__tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(244, 242, 238, 0.07); color: var(--soft); transition: background-color 0.25s, color 0.25s; }
.mb__item[aria-pressed="true"] .mb__tile { background: var(--accent); color: #17130a; }
.mb__tile svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.mb__name { display: grid; gap: 1px; min-width: 0; }
.mb__name b { font-size: 13.500px; line-height: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb__name i { font-style: normal; font-size: 11.500px; line-height: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb__price { font-size: 13.500px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mb__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.500px rgba(244, 242, 238, 0.3); transition: background-color 0.2s, box-shadow 0.2s; }
.mb__item[aria-pressed="true"] .mb__box { background: var(--accent); box-shadow: none; }
.mb__box svg { display: block; width: 16px; height: 16px; fill: none; stroke: #17130a; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.mb__box path, .mb__face path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.mb__deal { display: grid; gap: 7px; padding: 0 4px; }
.mb__track { position: relative; height: 8px; border-radius: 4px; background: rgba(244, 242, 238, 0.1); overflow: hidden; }
.mb__fill { position: absolute; inset: 0; border-radius: 4px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0.3333); }
.mb__notch { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--card); }
.mb__sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent); opacity: 0; }
.mb__hint { display: block; height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 640; color: var(--soft); white-space: nowrap; }
.mb__hint span { display: block; }
.mb[data-level="3"] .mb__hint { color: var(--accent); }

.mb__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-left: 4px; }
.mb__sum { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.mb__sum strong { font-size: 24px; line-height: 28px; font-weight: 760; font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb__was { position: relative; display: block; order: 2; font-size: 12.500px; font-weight: 640; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; }
.mb__was i { position: absolute; left: -2px; right: -2px; top: 50%; height: 1.500px; margin-top: -0.750px; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.mb__add { position: relative; width: 132px; height: 46px; border-radius: 23px; background: var(--ink); color: #131316; overflow: hidden; box-shadow: inset 0 -3px 6px rgba(19, 19, 22, 0.14), 0 14px 22px -14px rgba(244, 242, 238, 0.5); transition: background-color 0.3s; }
.mb__add.is-done { background: var(--accent); }
.mb__add:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.mb__face { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 720; white-space: nowrap; opacity: 0; }
.mb__face[data-face="add"] { opacity: 1; }
.mb__face svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f4f2ee; stroke: #000000; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }

@media (max-width: 350px) { .mb__add { width: 120px; } .mb__sum strong { font-size: 22px; } }
@media (max-height: 380px) { .mb { gap: 8px; padding-top: 12px; } .mb__item { height: 46px; } }
@media (prefers-reduced-motion: reduce) { .mb__item, .mb__tile, .mb__box, .mb__add { transition: none; } }
