:root {
  --bg: #ffffff;
  --ink: #17121c;
  --soft: #7d7586;
  --card: #ffffff;
  --accent: #e43d93;
  --accent-2: #6a3df0;
}

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

.wrist {
  position: relative;
  width: min(296px, 100%);
  padding: 12px 12px 12px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(23, 18, 28, 0.07),
    0 2px 4px rgba(23, 18, 28, 0.05),
    0 18px 36px -16px color-mix(in srgb, var(--accent-2) 35%, rgba(23, 18, 28, 0.3)),
    0 44px 70px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---- the wristband: woven fabric with its contactless tag ---- */
.band {
  position: relative;
  height: min(64px, 15vh);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  color: #ffffff;
  isolation: isolate;
}
.band__weave {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1.5px, transparent 1.5px 4px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px);
  z-index: -1;
}
/* the stitching along the two edges */
.band::before, .band::after { content: ""; position: absolute; left: 8px; right: 8px; border-top: 1.5px dashed rgba(255, 255, 255, 0.5); }
.band::before { top: 6px; }
.band::after { bottom: 6px; }
.band__name { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 720; font-stretch: 118%; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.band__tag { position: absolute; right: 14px; top: 50%; width: 62px; height: 36px; margin-top: -18px; border-radius: 10px; background: linear-gradient(180deg, #ffffff, #efeaf4); box-shadow: 0 1px 2px rgba(23, 18, 28, 0.3), 0 5px 10px -4px rgba(23, 18, 28, 0.45); display: grid; place-items: center; }
.band__tag svg { width: 30px; height: 23px; overflow: visible; }
.wave { fill: none; stroke: rgba(23, 18, 28, 0.22); stroke-width: 2; stroke-linecap: round; }
.chip { fill: rgba(23, 18, 28, 0.75); }
.band__sheen { position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4) 50%, transparent); opacity: 0; pointer-events: none; }

/* ---- the balance ---- */
.wrist__body { padding: 12px 4px 0; display: grid; gap: 0; }
.bal { display: grid; gap: 1px; }
.bal small { font-size: 11.5px; line-height: 15px; font-weight: 560; color: var(--soft); }
.bal strong { font-size: clamp(30px, 10.5vw, 38px); line-height: 1.08; font-weight: 730; font-stretch: 108%; letter-spacing: -0.03em; }
.worth { margin-top: 1px; font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--accent) 80%, #000000); }
.roll { display: block; height: 17px; line-height: 17px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.top {
  position: relative;
  height: min(44px, 10.5vh);
  border: 0;
  border-radius: 13px;
  background: #f4f1f7;
  box-shadow: inset 0 0 0 1px rgba(23, 18, 28, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 680;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.25s ease;
}
.top:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.top.is-peek { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.top__flash { position: absolute; inset: 0; background: linear-gradient(100deg, var(--accent), var(--accent-2)); opacity: 0; }
.top span:last-child { position: relative; }
.last { margin-top: 9px; font-size: 11.5px; font-weight: 540; color: var(--soft); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

@media (hover: hover) {
  .top:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
}
