:root {
  --bg: #000000;
  --card: #131416;
  --tile: #1d1f22;
  --ink: #f2f4f3;
  --soft: rgba(242, 244, 243, 0.6);
  --faint: rgba(242, 244, 243, 0.34);
  --line: rgba(242, 244, 243, 0.1);
  --accent: #4fd1c5;
}

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

.am { position: relative; width: min(324px, 100%); padding: 14px; border-radius: 26px; background: linear-gradient(180deg, #191a1d, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

.am__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.am__name { min-width: 0; display: grid; }
.am__name b { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.am__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.am__count { flex: none; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.am__count b { font-size: 26px; line-height: 30px; font-weight: 760; letter-spacing: -0.02em; }
.am__count span { font-size: 11.500px; font-weight: 580; color: var(--soft); }
/* how many stays are left, against all of them */
.am__meter { height: 4px; margin-top: 9px; border-radius: 2px; background: rgba(242, 244, 243, 0.1); overflow: hidden; }
.am__meter i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; }

.am__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.am__chip { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border: 0; border-radius: 13px; background: var(--tile); color: var(--soft); font: inherit; font-size: 12.500px; font-weight: 640; text-align: left; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.am__chip > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.am__chip > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am__tick { flex: none; width: 16px; height: 16px; opacity: 0; transition: opacity 0.12s ease; }
.am__tick svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.32s ease 0.06s; }
.am__chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 15%, var(--tile)); color: var(--ink); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 62%, transparent); }
.am__chip[aria-pressed="true"] > svg { stroke: var(--accent); }
.am__chip[aria-pressed="true"] .am__tick { opacity: 1; }
.am__chip[aria-pressed="true"] .am__tick path { stroke-dashoffset: 0; }
.am__chip:focus-visible, .am__go:focus-visible, .am__clear:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
@media (hover: hover) { .am__chip[aria-pressed="false"]:hover { background: #25272b; color: var(--ink); } }

.am__say { height: 16px; margin-top: 10px; padding: 0 2px; overflow: hidden; font-size: 11.500px; line-height: 16px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.am__say span { display: block; overflow: hidden; text-overflow: ellipsis; }

.am__foot { display: flex; gap: 8px; margin-top: 9px; }
.am__clear { flex: none; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 660; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px rgba(242, 244, 243, 0.18); transition: opacity 0.3s ease, background-color 0.2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.am__clear:disabled { opacity: 0.35; cursor: default; }
.am__go { flex: 1 1 auto; height: 44px; border: 0; border-radius: 14px; background: var(--accent); color: #04211e; font: inherit; font-size: 13.500px; font-weight: 720; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 22px -14px color-mix(in srgb, var(--accent) 80%, transparent); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.am.is-none .am__go { background: #26282c; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.am__gotext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.am__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .am:not(.is-none) .am__go:hover { background: color-mix(in srgb, var(--accent) 88%, #ffffff); } .am__clear:not(:disabled):hover { background: rgba(242, 244, 243, 0.06); } }

.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: #f2f4f3; stroke: #000000; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
