:root {
  --bg: #e9e4da;
  --paper: #fffaf0;
  --ink: #1d2a24;
  --soft: #7c8279;
  --accent: #1f6a4f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 25% 0%, #f7f3ea, transparent 70%),
    radial-gradient(55% 50% at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    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 16px;
}

.hang {
  position: relative;
  width: min(252px, 100%);
  padding: 12px 12px 12px;
  border-radius: 26px 26px 20px 20px;
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 92%, #c9bfa6));
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(29, 42, 36, 0.07),
    0 2px 4px rgba(29, 42, 36, 0.06),
    0 22px 40px -18px rgba(29, 42, 36, 0.35),
    0 50px 80px -44px rgba(29, 42, 36, 0.4);
}
/* the hole for the handle: it shows the wall behind */
.hang__hole { display: block; width: min(40px, 9.6vh); height: min(40px, 9.6vh); margin: 0 auto; border-radius: 50%; background: var(--bg); box-shadow: inset 0 2px 4px rgba(29, 42, 36, 0.3), 0 1px 0 #ffffff; }
.hang__head { margin-top: 8px; text-align: center; }
.hang__head span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.hang__head h1 { margin-top: 1px; font-size: 18px; line-height: 22px; font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; }

.items { margin-top: 8px; display: grid; gap: 1px; }
.item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: min(32px, 7.6vh); padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--soft); font: inherit; font-size: 13.5px; font-weight: 560; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease, background-color 0.25s ease; }
.item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.item.is-on { color: var(--ink); }
.item.is-peek { background: rgba(29, 42, 36, 0.05); }
.item__box { flex: none; position: relative; width: 19px; height: 19px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(29, 42, 36, 0.3); overflow: hidden; }
.item__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scale(0); }
.item__box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.item__box path { fill: none; stroke: #ffffff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.item__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__note { flex: none; font-size: 11px; font-weight: 520; color: var(--soft); }

.times { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 9px; padding: 3px; border-radius: 12px; background: rgba(29, 42, 36, 0.07); }
.times__thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 4); border-radius: 9px; background: #ffffff; box-shadow: 0 1px 2px rgba(29, 42, 36, 0.2), 0 4px 8px -4px rgba(29, 42, 36, 0.3); }
.time { position: relative; height: min(28px, 6.8vh); border: 0; border-radius: 9px; background: none; color: var(--soft); font: inherit; font-size: 12.5px; font-weight: 640; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.time:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.time[aria-checked="true"] { color: var(--ink); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: min(42px, 10vh); margin-top: 10px; padding: 0 6px 0 16px; border: 0; border-radius: 99px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 18px -10px color-mix(in srgb, var(--accent) 90%, #000000); color: #ffffff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.45s ease; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta.is-on { background: var(--ink); }
.roll { display: block; height: 18px; line-height: 18px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }
.cta__n { flex: none; min-width: 58px; height: 30px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); line-height: 30px; font-size: 12px; font-weight: 660; text-align: center; white-space: nowrap; }

.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) {
  .item:hover { background: rgba(29, 42, 36, 0.05); }
}
/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .hang { zoom: 1.2; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .hang { zoom: 1.7; }
}
