:root {
  --bg: #000000;
  --card: #121315;
  --card-hi: #1b1c20;
  --ink: #f6f5f1;
  --soft: rgba(246, 245, 241, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e6b655;
}

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

.rg {
  width: min(348px, 100%);
  padding: 16px 16px 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 34px 70px -34px color-mix(in srgb, var(--accent) 36%, transparent);
}
.rg__head { display: flex; align-items: baseline; justify-content: space-between; }
.rg__title { font-size: 15px; font-weight: 660; font-stretch: 106%; letter-spacing: -0.008em; }
.rg__hint { font-size: 12px; font-weight: 480; color: var(--soft); }

.rg__stage { position: relative; margin: 2px 0 6px; }
.rg__stage svg { display: block; width: 100%; height: auto; max-height: 38vh; overflow: visible; }
.ring__shadow { fill: rgba(0, 0, 0, 0.55); filter: blur(3px); }
.ring__band { fill: none; stroke: url(#rg-gold); stroke-width: 7; }
.ring__shine { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; stroke-linecap: round; }
.ring__stone { fill: #eaf6ff; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1; stroke-linejoin: round; }
.ring__facet { fill: none; stroke: rgba(120, 160, 200, 0.7); stroke-width: 0.8; stroke-linejoin: round; }
.ring__claw { fill: none; stroke: #c9963a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ring__rule { fill: none; stroke: rgba(246, 245, 241, 0.6); stroke-width: 1; stroke-dasharray: 3 3; }
.ring__tick { fill: none; stroke: rgba(246, 245, 241, 0.8); stroke-width: 1.2; stroke-linecap: round; }
/* the millimetres sit in the middle of the ring, on the rule */
.rg__mm { position: absolute; left: 50%; top: 52.300%; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 3px; padding: 1px 7px; border-radius: 8px; background: var(--card); white-space: nowrap; }
.rg__mm b { display: inline-block; font-size: 19px; font-weight: 700; font-stretch: 104%; letter-spacing: -0.02em; }
.rg__mm i { font-style: normal; font-size: 11.5px; font-weight: 520; color: var(--soft); }

.rg__row { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.rg__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 6); border-radius: 12px; background: linear-gradient(180deg, #2e3036, #22242a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px -8px rgba(0, 0, 0, 0.9); pointer-events: none; }
.rg__thumb::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.sz { position: relative; display: grid; place-items: center; height: 40px; border-radius: 12px; font-size: 14.5px; font-weight: 620; color: var(--soft); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; transition: color 0.3s ease; }
.sz input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sz span { position: relative; pointer-events: none; }
.sz.is-on { color: var(--ink); }
.sz:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.rg__foot { height: 17px; margin-top: 9px; overflow: hidden; font-size: 12px; line-height: 17px; font-weight: 480; color: var(--soft); text-align: center; }
.rg__foot span { display: block; }

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

@media (hover: hover) {
  .sz:hover { color: var(--ink); }
}
