:root {
  --bg: #000000;
  --card: #111216;
  --well: #1b1d24;
  --ink: #f4f5f8;
  --soft: rgba(244, 245, 248, 0.55);
  --faint: rgba(244, 245, 248, 0.3);
  --line: rgba(244, 245, 248, 0.09);
  --accent: #4f9bff;
  --over: #ff5c50;
  --tone: var(--accent);
}

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

.pk { position: relative; width: min(292px, 100%); padding: 16px 16px 8px; border-radius: 26px; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 64%), linear-gradient(180deg, #16171c, var(--card)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -30px color-mix(in srgb, var(--tone) 30%, transparent); }
.pk.is-over { --tone: var(--over); }

.pk__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pk__head h1 { font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pk__sub { font-size: 12px; line-height: 16px; font-weight: 560; color: var(--soft); }
.pk__total { position: relative; display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.pk__total b { font-size: 28px; line-height: 30px; font-weight: 740; font-stretch: 92%; letter-spacing: -0.03em; color: var(--ink); transition: color 0.35s ease; }
.pk.is-over .pk__total b { color: var(--over); }
.pk__total i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); }
.pk__plus { position: absolute; right: 100%; bottom: 5px; margin-right: 7px; font-size: 12px; font-weight: 680; color: var(--tone); opacity: 0; }

/* the meter: the bag's weight grows along it, the mark is the airline's limit */
.pk__meter { position: relative; height: 7px; margin-top: 10px; border-radius: 4px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.pk__bar { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, transparent), var(--tone)); transform: scaleX(0); transform-origin: 0 50%; transition: background 0.35s ease; }
.pk__mark { position: absolute; top: -4px; width: 2px; height: 15px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
.pk__room { height: 16px; margin-top: 6px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--tone); text-align: right; transition: color 0.35s ease; }
.pk__room span { display: block; }

.pk__list { list-style: none; margin-top: 6px; }
.pk__row { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 8px; margin: 0 -8px; border-radius: 11px; cursor: pointer; transition: background-color 0.25s ease; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pk__row + .pk__row { box-shadow: 0 -1px 0 var(--line); }
.pk__pick { position: relative; flex: none; width: 18px; height: 18px; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1.500px var(--faint); cursor: pointer; outline: none; overflow: hidden; }
.pk__pick:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); overflow: visible; }
.pk__fill { position: absolute; inset: 0; border-radius: 6px; background: var(--accent); transform: scale(0); }
.pk__pick svg { position: absolute; inset: 1px; width: 16px; height: 16px; fill: none; stroke: #04121f; stroke-width: 2.100; stroke-linecap: round; stroke-linejoin: round; }
.pk__pick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pk__name { flex: 1 1 auto; font-size: 13.500px; font-weight: 620; color: var(--soft); transition: color 0.25s ease; }
.pk__row.is-on .pk__name { color: var(--ink); }
.pk__kg { flex: none; font-size: 12px; font-weight: 580; color: var(--faint); transition: color 0.25s ease; }
.pk__row.is-on .pk__kg { color: var(--soft); }
@media (hover: hover) { .pk__row:hover .pk__pick { box-shadow: inset 0 0 0 1.500px var(--accent); } .pk__row:hover .pk__name { color: var(--ink); } }

.pk__say { 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: #f4f5f8; stroke: #101114; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)); z-index: 5; }
