:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.52);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #0fa3a3;
  --warn: #ffb224;
}

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

.tc { position: relative; width: min(288px, 100%); }
/* the card itself: a deep gradient, a soft arc of light and the contactless waves */
.tc__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: min(164px, 40vh); padding: 14px 16px; border-radius: 20px; background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--accent) 80%, #ffffff) 0%, var(--accent) 34%, #10345a 88%); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 24px 34px -22px color-mix(in srgb, var(--accent) 70%, #000000), 0 8px 14px -10px rgba(23, 23, 26, 0.5); overflow: hidden; }
.tc__card::before { content: ""; position: absolute; left: -30%; bottom: -70%; width: 120%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 26px rgba(255, 255, 255, 0.04); }
.tc__glare { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4) 50%, transparent); opacity: 0; pointer-events: none; }
.tc__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.tc__top b { font-size: 16px; font-weight: 780; font-stretch: 112%; letter-spacing: 0.02em; }
.tc__top svg { display: block; width: 24px; height: 24px; fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.700; stroke-linecap: round; }
.tc__balance { position: relative; display: grid; gap: 0; }
.tc__balance small { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.72; }
.tc__balance > span { display: flex; align-items: baseline; gap: 3px; }
.tc__balance i { font-style: normal; font-size: 18px; font-weight: 650; opacity: 0.85; }
.tc__balance strong { font-size: 36px; line-height: 40px; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tc__foot { position: relative; display: flex; align-items: center; justify-content: space-between; }
.tc__rides { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 560; opacity: 0.9; font-variant-numeric: tabular-nums; }
.tc__rides span { display: block; white-space: nowrap; }
.tc__flag { height: 20px; padding: 0 9px; border-radius: 10px; background: var(--warn); color: #3a2500; font-size: 11px; line-height: 20px; font-weight: 750; transition: background-color 0.4s ease, color 0.4s ease; }
.tc[data-state="ok"] .tc__flag { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

/* the amounts: a white tile slides under the chosen one */
.tc__amounts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 42px; margin-top: 14px; padding: 4px; border-radius: 15px; background: #f1f0ed; box-shadow: inset 0 0 0 1px var(--line); }
.tc__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 11px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 3px 6px -3px rgba(23, 23, 26, 0.35); }
.tc__amounts button { position: relative; border: 0; border-radius: 11px; background: none; color: var(--soft); font: inherit; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tc__amounts button[aria-checked="true"] { color: var(--ink); }
.tc__amounts button:focus-visible { box-shadow: 0 0 0 2px var(--ink); }

.tc__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 15px; background: var(--ink); color: #ffffff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 18px -12px rgba(23, 23, 26, 0.7); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tc__btn[aria-busy="true"] { cursor: progress; }
.tc__btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
@media (hover: hover) { .tc__btn:not([aria-busy="true"]):hover { background: #2a2a2f; } }
.tc__spin { display: none; width: 18px; height: 18px; fill: none; stroke: #ffffff; stroke-width: 2.200; stroke-linecap: round; }
.tc__spin circle { stroke-dasharray: 0.300 0.700; }
.tc__btn[aria-busy="true"] .tc__spin { display: block; }
.tc__btntext { display: block; height: 20px; line-height: 20px; overflow: hidden; font-variant-numeric: tabular-nums; }
.tc__btntext span { display: block; white-space: nowrap; }

.live { 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: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }
