:root {
  --bg: #f0efeb;
  --card: #ffffff;
  --ink: #17181c;
  --soft: rgba(23, 24, 28, 0.55);
  --line: rgba(23, 24, 28, 0.08);
  --accent: #1e9e62;
  --wait: #c98510;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #faf9f6 0%, var(--bg) 70%);
  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 10px;
}

.dv { position: relative; width: min(344px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 14px 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(23, 24, 28, 0.05), 0 30px 50px -32px rgba(23, 24, 28, 0.35); }
.dv__roll { display: block; overflow: hidden; }
.dv__roll > span { display: block; white-space: nowrap; }

.dv__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 28px; padding: 0 2px; }
.dv__domain { font-family: var(--mono); font-size: 13.500px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* --chip-bg and --chip-ink are tweened by the script as the check goes on */
.dv__chip { --chip-bg: rgba(23, 24, 28, 0.06); --chip-ink: rgba(23, 24, 28, 0.62); flex: none; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--chip-bg); color: var(--chip-ink); font-size: 11.500px; line-height: 24px; font-weight: 680; }

/* the records: type, name, value to copy, and the state of each */
.dv__rows { list-style: none; margin-top: 10px; border-radius: 16px; background: #f6f5f2; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dv__row { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 10px; }
.dv__row + .dv__row { border-top: 1px solid var(--line); }
.dv__glow { position: absolute; inset: 0; background: var(--accent); opacity: 0; pointer-events: none; }
.dv__type { position: relative; flex: none; width: 50px; height: 22px; border-radius: 7px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 10.500px; line-height: 22px; font-weight: 700; text-align: center; }
.dv__name { position: relative; flex: none; width: 52px; font-family: var(--mono); font-size: 11.500px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv__val { position: relative; flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 11.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv__end { position: relative; flex: none; width: 32px; height: 32px; display: grid; place-items: center; }
.dv__end > * { grid-area: 1 / 1; }
.dv__copy { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--soft); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.2s, color 0.2s; }
.dv__copy:focus-visible { box-shadow: 0 0 0 2px #f6f5f2, 0 0 0 4px var(--ink); }
.dv__copy svg, .dv__mark { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dv__spin { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0; pointer-events: none; }
.dv__mark { opacity: 0; pointer-events: none; stroke-width: 2; }
.dv__mark--ok { color: var(--accent); }
.dv__mark--wait { color: var(--wait); }
.dv__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.dv__note { display: flex; align-items: center; gap: 7px; height: 20px; margin-top: 10px; padding: 0 4px; color: var(--soft); }
.dv__lock { flex: none; width: 0; height: 18px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dv__body { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.dv__notetext { height: 18px; line-height: 18px; font-size: 12px; font-weight: 540; }

.dv__go { --go: var(--ink); display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 10px; border: 0; border-radius: 23px; background: var(--go); color: #ffffff; font: inherit; font-size: 14.500px; font-weight: 720; font-stretch: 104%; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -16px rgba(23, 24, 28, 0.8); }
.dv__go:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.dv__go .dv__roll { height: 20px; line-height: 20px; }
.dv__go.is-quiet { background: rgba(23, 24, 28, 0.06); color: var(--ink); box-shadow: none; }

@media (hover: hover) {
  .dv__copy:hover { background: rgba(23, 24, 28, 0.07); color: var(--ink); }
}

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: var(--ink); stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(23, 24, 28, 0.3)); z-index: 5; }
