:root {
  --bg: #f3efe7;
  --paper: #fffdf8;
  --ink: #1b1a17;
  --soft: #8a8479;
  --line: rgba(27, 26, 23, 0.14);
  --accent: #b08a3e;
}

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

.inv {
  position: relative;
  width: min(364px, 100%);
  padding: 22px 20px 16px;
  border-radius: 6px;
  background: var(--paper);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(27, 26, 23, 0.06),
    0 1px 2px rgba(27, 26, 23, 0.06),
    0 36px 60px -34px rgba(27, 26, 23, 0.34);
}
/* a hairline frame inside the edge, like the border of a printed card */
.inv::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.inv__kicker { font-size: 10.500px; font-weight: 560; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.inv__title { margin-top: 9px; font-size: clamp(22px, 6.800vw, 26px); line-height: 1.16; font-weight: 330; font-stretch: 116%; letter-spacing: -0.012em; }
.inv__when { margin-top: 8px; font-size: 12.500px; line-height: 17px; font-weight: 480; }
.inv__when i { display: block; font-style: normal; font-weight: 440; color: var(--soft); }

.inv__count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.unit { position: relative; display: grid; justify-items: center; gap: 3px; padding: 0 2px; cursor: default; }
.unit + .unit::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 16px; width: 1px; background: var(--line); }
.unit__num { display: flex; height: clamp(40px, 12.500vw, 48px); font-size: clamp(36px, 11.400vw, 44px); line-height: clamp(40px, 12.500vw, 48px); font-weight: var(--w, 260); font-stretch: 112%; letter-spacing: -0.02em; }
.unit__digit { position: relative; display: block; width: 0.640em; height: 100%; overflow: hidden; }
.unit__digit span { position: absolute; left: 0; right: 0; top: 0; text-align: center; }
.unit__label { font-size: 9.500px; font-weight: 580; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); transition: color 0.4s ease; }
.unit.is-hot .unit__label { color: var(--accent); }

.inv__thread { height: 1px; margin: 12px 0 0; background: var(--line); }
.inv__thread span { display: block; height: 1px; background: var(--accent); box-shadow: 0 0 0 0.500px var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.inv__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; text-align: left; }
.inv__by { min-width: 0; height: 17px; overflow: hidden; font-size: 12px; line-height: 17px; font-weight: 460; color: var(--soft); }
.inv__by span { display: block; white-space: nowrap; }
.inv__go { flex: none; display: flex; align-items: center; height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.5s ease; }
.inv__go[aria-pressed="true"] { background: var(--accent); }
.inv__go svg { width: 0; height: 16px; margin-right: 0; overflow: visible; }
.inv__go path { fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.inv__go-text { display: block; height: 18px; overflow: hidden; line-height: 18px; }
.inv__go-text span { display: block; white-space: nowrap; }
.inv__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 430px) {
  .inv { padding: 18px 18px 13px; }
  .inv__count { margin-top: 12px; padding-top: 10px; }
  .inv__when i { display: none; }
}
@media (min-width: 700px) and (min-height: 500px) {
  .inv { zoom: 1.3; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .inv { zoom: 1.6; }
}
