:root {
  --bg: #000000;
  --card: #131417;
  --card-hi: #1c1e22;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f5f4f0;
  --soft: rgba(245, 244, 240, 0.56);
  --accent: #c8f25c;
}

*, *::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: 16px;
}

.lvl {
  position: relative;
  width: min(356px, 100%);
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 30px 70px -30px color-mix(in srgb, var(--accent) 34%, transparent);
}

.lvl__head { display: flex; align-items: center; justify-content: space-between; height: 24px; margin-bottom: 12px; padding: 0 2px; }
.lvl__title { font-size: 13px; font-weight: 560; color: var(--soft); letter-spacing: 0.01em; }
.lvl__code { height: 24px; min-width: 38px; padding: 0 9px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12.5px; line-height: 24px; font-weight: 680; text-align: center; }
.lvl__code span { display: block; }

/* the row is the radio group: three tiles and one highlight that slides under them */
.lvl__row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 4px; border-radius: 18px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.lvl__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); pointer-events: none; }
.lvl__thumb-in { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(180deg, #2c2f35, #212329); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 18px -8px rgba(0, 0, 0, 0.9); }
.lvl__thumb-in::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--accent) 70%, transparent); }

.opt { position: relative; display: grid; justify-items: center; gap: 9px; padding: 15px 2px 12px; border-radius: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.opt svg { width: 30px; height: 24px; overflow: visible; }
.opt svg rect { fill: rgba(255, 255, 255, 0.14); transition: fill 0.3s ease; }
.opt svg rect.is-lit { fill: rgba(255, 255, 255, 0.5); }
.opt.is-on svg rect.is-lit { fill: var(--accent); }
.opt__name { font-size: 13px; font-weight: 580; font-stretch: 98%; color: var(--soft); transition: color 0.3s ease; white-space: nowrap; }
.opt.is-on .opt__name { color: var(--ink); }

.lvl__text { height: 38px; margin: 13px 2px 12px; overflow: hidden; font-size: 13.5px; line-height: 19px; font-weight: 480; color: rgba(245, 244, 240, 0.82); }
.lvl__text span { display: block; }

.lvl__plan { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.plan { font-size: 12px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.plan b { display: inline-block; font-weight: 680; color: var(--ink); font-size: 13px; }
.plan__bar { flex: none; width: 1px; height: 14px; background: var(--line); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .opt:hover .opt__name { color: var(--ink); }
}
@media (max-width: 360px) {
  .lvl { padding: 13px; }
  .opt__name { font-size: 12px; }
  .plan { font-size: 11px; }
  .plan b { font-size: 12px; }
  .lvl__plan { padding: 10px 9px; }
}
