:root {
  --bg: #000000;
  --card: #151517;
  --ink: #f4f3f0;
  --soft: rgba(244, 243, 240, 0.56);
  --line: rgba(244, 243, 240, 0.1);
  --chip: rgba(244, 243, 240, 0.07);
  --lead: #3ddc84;
  --out: #ff7a45;
  --idle: #b9b6ff;
}

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

/* --tone is the state's colour: lilac while watching, green when leading, orange when outbid */
.au {
  --tone: var(--idle);
  position: relative;
  width: min(318px, 100%);
  padding: 14px 15px 15px;
  border-radius: 26px;
  background: 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) 60%, transparent);
  isolation: isolate;
  overflow: clip;
}
/* a soft light from the top corner, in the state's colour */
.au::before { content: ""; position: absolute; left: -30%; top: -46%; width: 100%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent); pointer-events: none; }

.au__roll { display: block; overflow: hidden; }
.au__roll > span { display: block; }

.au__head { display: flex; align-items: center; gap: 10px; }
.au__tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 26%, transparent); }
.au__tile svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: var(--tone); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.au__head-bar { stroke-width: 4.200; }
.au__who { display: flex; flex-direction: column; min-width: 0; }
.au__who b { font-size: 14.5px; line-height: 18px; font-weight: 680; font-stretch: 104%; letter-spacing: -0.006em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au__who > span { font-size: 11.5px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.au__live { margin-left: auto; flex: none; height: 24px; padding: 0 10px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); font-size: 11.5px; line-height: 24px; font-weight: 700; }
.au__live .au__roll { height: 24px; }

.au__bid { margin-top: clamp(8px, 2.400vh, 14px); }
.au__label { display: block; font-size: 11.5px; line-height: 15px; font-weight: 600; color: var(--soft); }
.au__line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.au__num { font-size: clamp(32px, 9.500vh, 40px); line-height: 1.1; font-weight: 400; letter-spacing: -0.035em; font-variation-settings: "wght" 640, "wdth" 96; white-space: nowrap; }
.au__state { font-size: 12.5px; font-weight: 700; color: var(--tone); white-space: nowrap; }
.au__state .au__roll { height: 18px; line-height: 18px; }

/* the last three bids: the newest comes in from the left and pushes the others along */
.au__strip { position: relative; height: 30px; margin-top: clamp(6px, 1.800vh, 10px); overflow: hidden; border-radius: 10px; }
.au__chip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; width: calc((100% - 12px) / 3); height: 30px; padding: 0 8px 0 4px; border-radius: 10px; background: var(--chip); font-size: 11.5px; font-weight: 640; white-space: nowrap; }
.au__chip i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(244, 243, 240, 0.1); font-style: normal; font-size: 9.500px; font-weight: 700; letter-spacing: 0.02em; color: var(--soft); }
.au__chip.is-you { background: color-mix(in srgb, var(--lead) 16%, transparent); color: var(--lead); }
.au__chip.is-you i { background: color-mix(in srgb, var(--lead) 24%, transparent); color: var(--lead); }

.au__clock { margin-top: clamp(6px, 1.800vh, 10px); }
.au__clock-row { display: flex; align-items: center; gap: 6px; height: 18px; font-size: 11.5px; font-weight: 600; color: var(--soft); }
.au__clock-row b { font-weight: 700; color: var(--ink); min-width: 2.300em; text-align: right; }
.au__plus { margin-left: auto; font-weight: 700; color: var(--tone); opacity: 0; }
.au__bar { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(244, 243, 240, 0.1); overflow: hidden; }
.au__bar i { display: block; height: 100%; border-radius: 2px; background: var(--tone); transform-origin: 0 50%; }

.au__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  margin-top: clamp(8px, 2.400vh, 13px);
  border: 0;
  border-radius: 22px;
  background: var(--ink);
  color: #111113;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.au__btn[aria-disabled="true"] { background: rgba(244, 243, 240, 0.1); color: var(--tone); cursor: default; }
.au__wash { position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--tone) 20%, transparent); clip-path: circle(0 at 50% 50%); }
.au__btn-label { height: 20px; font-size: 14px; line-height: 20px; font-weight: 680; font-stretch: 104%; white-space: nowrap; }
.au__btn:focus-visible { box-shadow: 0 0 0 2px #000000, 0 0 0 4px var(--tone); }

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

@media (hover: hover) {
  .au__btn:not([aria-disabled="true"]):hover { background: #ffffff; }
}
