@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-400-700.woff2) format("woff2"); }

:root {
  --bg: #0e0e10;
  --panel: #18181b;
  --rule: #2a2a2f;
  --text: #efeff1;
  --dim: #adadb8;
  --faint: #70707b;
  --purple: #9146ff;
  --purple-text: #bf94ff;
  --hot: #ff5a52;
  --ok: #3ccf91;
  --paper: #f2eee3;
  --ink: #1c1b20;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bar-h: 0px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--bar-h);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
a { color: var(--purple-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; object-fit: cover; background: var(--panel); }
:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }
.hot { color: var(--hot); }
.dim { color: var(--dim); }
.label { font: 600 13px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }

.btn { display: inline-block; padding: 7px 12px; border-radius: 4px; background: #2f2f35; font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; }
.btn:hover { background: #3a3a41; text-decoration: none; }
.btn.go { background: var(--purple); color: #fff; }
.btn.go:hover { background: #772ce8; }
.btn:disabled { opacity: .5; cursor: default; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; height: 50px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid #000; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 18px; height: 18px; }
.brand i { font-style: normal; color: var(--purple-text); }
.top input { width: min(340px, 34vw); margin-left: auto; padding: 6px 10px; border-radius: 4px; border: 1px solid #55555e; background: var(--bg); }
.top input:focus { outline: 2px solid var(--purple); outline-offset: -1px; border-color: transparent; }
.top .tip { color: var(--dim); font-size: 13px; white-space: nowrap; }
.cart-btn { display: none; font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-radius: 4px; background: var(--paper); color: var(--ink); white-space: nowrap; }

.shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
main { padding: 26px 28px 70px; min-width: 0; }

/* Shop front */
.pitch { font: 700 clamp(34px, 5.2vw, 64px)/.95 var(--display); letter-spacing: .005em; text-transform: uppercase; margin: 0 0 20px; max-width: 18ch; }
.pitch em { font-style: normal; color: var(--purple-text); }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tabs button { padding: 0 0 10px; font-weight: 600; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--purple-text); border-color: var(--purple-text); }
.tabs .count { margin-left: auto; padding-bottom: 10px; color: var(--faint); }

.shelf { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.sh-head { display: grid; gap: 6px; align-content: start; }
.sh-head img { width: 56px; height: 56px; border-radius: 4px; margin-bottom: 4px; }
.sh-head h2 { font: 700 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.sh-head .camp { color: var(--dim); font-size: 13px; }
.sh-head .closes { font: 600 15px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.sh-head .where { color: var(--faint); font-size: 12px; }
.sh-head .btn { justify-self: start; margin-top: 4px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; align-content: start; align-items: start; }
.item { display: grid; gap: 6px; align-content: start; justify-items: start; position: relative; padding: 6px; margin: -6px; border-radius: 4px; }
button.item:hover { background: var(--panel); }
.item img { width: 88px; height: 88px; border-radius: 4px; }
.item .nm { font-size: 12px; line-height: 1.3; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .why { font: 600 12px/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }

/* The price tag: the price is watch time. */
.tag { display: inline-block; font: 700 17px/1 var(--display); letter-spacing: .03em; color: var(--ink); background: var(--paper); padding: 4px 8px 4px 15px; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); position: relative; white-space: nowrap; }
.tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--bg); }
.item.in .tag { background: var(--purple); color: #fff; }
.item.in img { outline: 2px solid var(--purple); outline-offset: 2px; }
.item.paid .tag { background: var(--ok); }
.item.gone .tag { background: #3a3a41; color: var(--faint); text-decoration: line-through; }
.item.gone img, .item.claimed img { opacity: .35; }
.item.wait .tag { background: #3a3a41; color: var(--dim); }
.none { color: var(--dim); padding: 28px 0; }
.foot { margin-top: 26px; color: var(--dim); font-size: 13px; max-width: 70ch; }
.foot p { margin: 0 0 8px; }

/* Receipt */
.till { position: sticky; top: 50px; height: calc(100vh - 50px - var(--bar-h)); overflow-y: auto; padding: 22px 20px 30px 4px; }
.receipt { background: var(--paper); color: var(--ink); font: 12px/1.5 var(--mono); padding: 18px 16px 30px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x; }
.receipt h2 { font: 700 30px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; margin: 0; text-align: center; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #8a8678; margin: 10px 0; }
.receipt .ln { display: flex; gap: 8px; align-items: baseline; }
.receipt .ln span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .ln.b { font-weight: 700; }
.receipt .ln.done span:first-child { text-decoration: line-through; opacity: .6; }
.receipt .gm { font: 700 18px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.receipt .total { font: 700 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0; }
.receipt .red { color: #c2261f; font-weight: 700; }
.receipt .acts { display: flex; gap: 12px; align-items: center; margin: 8px 0 2px; }
.receipt .pay { font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 7px 12px; border-radius: 3px; }
.receipt .pay:hover { background: var(--purple); }
.receipt .rm { text-decoration: underline; color: #6b675c; }
.receipt .codebar { height: 34px; margin: 14px 0 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 8px, var(--ink) 8px 11px, transparent 11px 13px); }

/* Checkout */
.back { display: inline-block; margin-bottom: 14px; color: var(--dim); font-weight: 600; font-size: 13px; }
.co-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: end; }
.co-head img { width: 96px; height: 96px; border-radius: 4px; }
.co-head h1 { font: 700 clamp(36px, 5.4vw, 64px)/.92 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.co-head .facts { color: var(--dim); display: flex; gap: 4px 18px; flex-wrap: wrap; }
.co-head .facts b { color: var(--text); font-weight: 600; }
.owed { margin: 22px 0 4px; }
.owed .big { font: 700 34px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.owed .big small { font-size: 18px; color: var(--dim); letter-spacing: .05em; margin-left: 8px; }
.meter { height: 6px; background: #2f2f35; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--purple); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0 6px; }
.step { padding: 18px 20px 20px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--rule); }
.step h3 { font: 700 24px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; margin: 0; display: flex; gap: 10px; align-items: baseline; }
.step h3 span { color: var(--faint); }
.step.done h3 span { color: var(--ok); }
.step p { margin: 0; color: var(--dim); font-size: 13px; }
.step .acts { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--purple); margin: 0; }
.sec { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 12px; }
.sec h2 { font: 700 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.chan { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 70px 64px; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid #1f1f23; }
.chan .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .t { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .v { text-align: right; color: var(--dim); }
.chan .v::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); margin-right: 6px; }

/* Watch bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-top: 2px solid var(--purple); }
.bar.on { display: flex; }
.bar .who { font-weight: 600; }
.bar .who::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); margin-right: 8px; }
.bar.paused .who::before { background: var(--faint); }
.bar .who small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; margin-left: 16px; }
.bar .clock { font: 700 28px/1 var(--display); letter-spacing: .03em; }
.bar .next { flex: 1; min-width: 160px; color: var(--dim); }
.bar .next b { color: var(--text); font-weight: 600; }
.bar .next.ready b { color: var(--ok); }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .cart-btn { display: block; }
  .top .tip { display: none; }
  .top { gap: 10px; padding: 0 12px; }
  .top input { flex: 1; min-width: 0; width: auto; margin-left: 0; }
  .till { display: none; position: fixed; inset: 50px 0 var(--bar-h) 0; height: auto; z-index: 15; background: rgba(0, 0, 0, .8); padding: 16px; }
  body.cart-open .till { display: block; }
  main { padding: 18px 12px 50px; }
  .shelf { grid-template-columns: 1fr; gap: 14px; }
  .sh-head { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
  .sh-head img { grid-row: span 4; margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 16px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
  .co-head { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
  .co-head img { width: 64px; height: 64px; }
  .chan { grid-template-columns: minmax(0, 1fr) 64px 60px; }
  .chan .t { display: none; }
}

.how { color: var(--dim); max-width: 62ch; margin: -6px 0 22px; }
.lnk { color: var(--purple-text); font-weight: 600; font-size: 13px; }
.lnk:hover { text-decoration: underline; }

.stale { margin: 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--hot); background: var(--panel); color: var(--text); }
.sh-head h2 a { color: inherit; }
.sh-head h2 a:hover { color: var(--purple-text); text-decoration: none; }
.soon { border-top: 1px solid var(--rule); margin-bottom: 22px; }
.soon-row { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.soon-row b { font: 700 20px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.soon-row span { color: var(--dim); }
.receipt .tools { justify-content: center; margin-top: 10px; }

.fresh { font: 600 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.prose { max-width: 68ch; }
.prose h2 { font: 700 26px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--dim); font-size: 15px; line-height: 1.6; }
.prose li { margin-bottom: 10px; }
.prose li b, .prose p b { color: var(--text); font-weight: 600; }
.prose ol, .prose ul { padding-left: 22px; }
