/* ==========================================================================
   FEE SEAT - "Box Office" design system
   Concept: a theatre box office. Paper stock, velvet red, brass, ink.
   Seats are tickets, numbers are receipts, states are rubber stamps.
   ========================================================================== */

:root {
  --paper: #F2E8D5;
  --paper-2: #E8DBC0;
  --card: #FBF6EA;
  --ink: #1A1410;
  --ink-2: #4B4037;
  --ink-3: #6B5E52;
  --line: rgba(26, 20, 16, .16);
  --line-2: rgba(26, 20, 16, .34);
  --velvet: #B0241C;
  --velvet-deep: #7C1611;
  --velvet-lt: #D2473B;
  --brass: #C4902A;
  --brass-lt: #EBCB7E;
  --brass-deep: #7F5A10;
  --green: #1D6B47;
  --red: #B0241C;
  --cream: #FBF6EA;

  --f-display: "Fraunces", "Bodoni MT", Georgia, serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 14px;
  --r-s: 8px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-s: 2px 2px 0 var(--ink);
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --notch-bg: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--velvet); color: var(--cream); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--velvet); }
.h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "opsz" 144;
}
.h2 em { font-style: italic; font-weight: 500; color: var(--velvet); }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 62ch; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head--row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .section__head--row { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 232, 213, .94);
  border-bottom: 1.5px solid var(--ink);
}
.site-header__in {
  display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg, .logo img { width: 36px; height: 36px; flex: none; }
.logo__word {
  font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: -.01em;
  font-variation-settings: "opsz" 144; white-space: nowrap;
}
.logo__word i { font-style: italic; font-weight: 500; color: var(--velvet); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap;
  background: linear-gradient(var(--velvet), var(--velvet)) no-repeat 12px calc(100% - 4px) / 0 2px;
  transition: background-size .25s ease;
}
.nav a:hover { background-size: calc(100% - 24px) 2px; }
#net-badge {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; font-weight: 500;
  color: var(--velvet); border: 1.5px dashed var(--velvet); border-radius: 4px;
  padding: 3px 8px; transform: rotate(-3deg);
}
#net-badge:empty { display: none; }
@media (max-width: 860px) {
  .site-header__in { gap: 10px; padding-top: 8px; }
  .nav {
    order: 5; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad));
    padding: 0 calc(var(--pad) - 12px); overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
  .logo__word { font-size: 19px; }
}

/* ticker tape */
.tape {
  background: var(--ink); color: var(--brass-lt); overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.tape__track { display: flex; width: max-content; animation: tape 38s linear infinite; }
.tape__track span { padding: 9px 0; white-space: nowrap; }
.tape__track span::after { content: "\2605"; color: var(--velvet-lt); margin: 0 22px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- Buttons */
.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: var(--r-s);
  box-shadow: 3px 3px 0 var(--bd);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bd); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bd); }
.btn--primary { --bg: var(--velvet); --fg: var(--cream); --bd: var(--ink); }
.btn--primary:hover { background: var(--velvet-lt); }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }
.btn--ghost:active { transform: scale(.98); }
.btn--danger { --bg: var(--card); --fg: var(--velvet); --bd: var(--velvet); }
.btn--danger:hover { background: var(--velvet); color: var(--cream); }
.btn--wallet {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .04em;
  box-shadow: 3px 3px 0 var(--brass); min-height: 40px; padding: 8px 14px;
  max-width: 48vw; overflow: hidden; text-overflow: ellipsis;
}
.btn--wallet:hover { box-shadow: 4px 4px 0 var(--brass); }
.btn--wallet:active { box-shadow: 0 0 0 var(--brass); }
.btn--big { min-height: 54px; padding: 14px 26px; font-size: 17px; width: 100%; }
a.btn--big { width: auto; }
.btn--small { min-height: 36px; padding: 7px 14px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--bd); }
.btn--small.btn--ghost { box-shadow: none; }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed; transform: none !important; box-shadow: none !important;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, #DFD1B4 6px 12px);
  color: var(--ink-3); border-color: var(--ink-3); border-style: dashed;
}
.btn.is-busy { pointer-events: none; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2.5px solid var(--fg); border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn.is-busy[disabled]::after { border-color: var(--ink-2); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Inputs */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.input {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px;
  background: #FFFDF6; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r-s);
  font-family: var(--f-mono); font-size: 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
  -moz-appearance: textfield; appearance: none;
}
.input::placeholder { color: #8C7F72; }
.input:hover { box-shadow: 2px 2px 0 var(--line-2); }
.input:focus, .input:focus-visible { outline: none; box-shadow: 3px 3px 0 var(--brass); border-color: var(--ink); }
.input[disabled] { background: var(--paper-2); color: var(--ink-3); border-style: dashed; cursor: not-allowed; }
textarea.input { min-height: 104px; resize: vertical; line-height: 1.45; font-family: var(--f-body); }
.field__hint { font-size: 13px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.field__hint:empty { display: none; }
.input-row { position: relative; display: flex; align-items: stretch; min-width: 0; }
.input-row .input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.input-row .unit {
  display: inline-flex; align-items: center; padding: 0 12px; flex: none; max-width: 45%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; font-weight: 500;
  background: var(--ink); color: var(--brass-lt);
  border: 1.5px solid var(--ink); border-left: 0; border-radius: 0 var(--r-s) var(--r-s) 0;
}
input[type="file"] {
  width: 100%; min-width: 0; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2);
  padding: 10px; border: 1.5px dashed var(--ink); border-radius: var(--r-s); background: #FFFDF6; cursor: pointer;
}
input[type="file"]::file-selector-button {
  font-family: var(--f-body); font-weight: 700; font-size: 13.5px; cursor: pointer;
  margin-right: 12px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: var(--paper);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono); font-size: 13px; min-height: 34px; padding: 5px 12px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.chip:hover, .chip.is-active { background: var(--ink); color: var(--brass-lt); }
.chip:active { transform: scale(.95); }

/* ----------------------------------------------------------------- Tabs */
.tabs {
  display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1.5px solid var(--ink); border-radius: var(--r-s); background: var(--card);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 40px; padding: 8px 16px; cursor: pointer; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--ink-2); border: 0; border-right: 1.5px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.tab:last-child { border-right: 0; }
.tab:hover { background: var(--paper-2); color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--brass-lt); }
.tab:focus-visible { outline-offset: -4px; }

/* ----------------------------------------------------------------- KV / breakdown */
.kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0; border-bottom: 1px dotted var(--line-2); font-size: 14px; min-width: 0;
}
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-2); flex: 0 1 auto; min-width: 0; }
.kv .v {
  font-family: var(--f-mono); font-size: 13.5px; color: var(--ink); text-align: right;
  min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.kv--total {
  margin-top: 4px; padding: 10px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink) !important;
}
.kv--total .k { color: var(--ink); font-weight: 700; }
.kv--total .v { font-size: 17px; font-weight: 500; }
.kv--warn .k, .kv--warn .v { color: var(--velvet); }
.kv--warn .k::before { content: "! "; font-family: var(--f-mono); font-weight: 500; }
.breakdown {
  position: relative; background: #FFFDF6; border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 8px 14px 10px;
  /* receipt: zig-zag bottom edge */
  border-bottom: 0;
  margin-bottom: 8px;
}
.breakdown::after {
  content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -8px; height: 8px;
  background:
    linear-gradient(135deg, #FFFDF6 5px, transparent 0) 0 0 / 10px 8px repeat-x,
    linear-gradient(225deg, #FFFDF6 5px, transparent 0) 0 0 / 10px 8px repeat-x;
  filter: drop-shadow(0 1.5px 0 var(--ink));
}
.breakdown:empty { display: none; }

/* ----------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; padding: 5px 7px; white-space: nowrap;
  color: var(--ink); background: transparent; border: 1.5px solid currentColor; border-radius: 4px;
}
.badge--curve { color: var(--ink); background: var(--paper-2); }
.badge--cpmm { color: var(--cream); background: var(--green); border-color: var(--green); }
.badge--migrating { color: var(--ink); background: var(--brass-lt); border-color: var(--ink); }
.badge--migrating::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--velvet); animation: blink 1s steps(2) infinite;
}
.badge--vacant { color: var(--velvet); border-style: dashed; background: transparent; }
.badge--demo {
  color: var(--ink); border-color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--brass-lt) 0 5px, var(--card) 5px 10px);
}
.badge--you { color: var(--ink); background: var(--brass); border-color: var(--ink); }
@keyframes blink { 50% { opacity: .15; } }

/* ----------------------------------------------------------------- Notes, empty, skeleton, misc */
.note {
  position: relative; font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  padding: 10px 12px 10px 14px; background: var(--paper-2);
  border: 1px solid var(--line-2); border-left: 4px solid var(--ink); border-radius: 4px;
  overflow-wrap: anywhere;
}
.note--warn { color: #6A130E; background: #F6D9CF; border-color: rgba(176, 36, 28, .45); border-left-color: var(--velvet); }
.note--ok { color: #114A30; background: #DCEBD9; border-color: rgba(29, 107, 71, .45); border-left-color: var(--green); }
.note a { font-weight: 600; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 44px 20px; color: var(--ink-2);
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: rgba(251, 246, 234, .5);
  font-size: 15px;
}
.empty::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px; background: var(--ink-3);
  -webkit-mask: var(--ico-chair) center / contain no-repeat; mask: var(--ico-chair) center / contain no-repeat;
  opacity: .7;
}
.skeleton {
  min-height: 18px; border-radius: 6px; color: transparent !important;
  background: linear-gradient(100deg, var(--paper-2) 30%, #F7EEDB 50%, var(--paper-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.seats-grid > .skeleton { min-height: 360px; border-radius: var(--r); border: 1.5px dashed var(--line-2); }
.feed > .skeleton { min-height: 52px; margin: 6px 0; }
@keyframes shimmer { to { background-position: -300% 0; } }

.addr {
  font-family: var(--f-mono); font-size: .92em; color: inherit; text-decoration: none; white-space: nowrap;
  border-bottom: 1px dashed currentColor;
}
a.addr:hover { color: var(--velvet); border-bottom-style: solid; }
.up { color: var(--green); }
.down { color: var(--red); }

.progress {
  height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden;
}
.progress__bar {
  height: 100%; min-width: 2px; max-width: 100%; border-right: 1.5px solid var(--ink);
  background: repeating-linear-gradient(135deg, var(--velvet) 0 8px, var(--velvet-lt) 8px 16px);
  background-size: 22.63px 100%;
  animation: stripes 1.2s linear infinite;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes stripes { to { background-position: 22.63px 0; } }

:root {
  --ico-chair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10a2 2 0 0 1 2 2v6h1a2 2 0 0 1 2 2v5h-3v3h-2v-3H7v3H5v-3H2v-5a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  --ico-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.7-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.3l7.1-.7z'/%3E%3C/svg%3E");
  --ico-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4 6 6 6 12a6 6 0 0 1-12 0c0-2 1-4 2-5 0 2 1 3 2 3 0-4 1-7 2-10z'/%3E%3C/svg%3E");
  --ico-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 4h2v1.5h3v2h-5.5v1.5H14a2 2 0 0 1 2 2V15a2 2 0 0 1-2 2h-1v1.5h-2V17H8v-2h5.5v-1.5H10a2 2 0 0 1-2-2V9.500a2 2 0 0 1 2-2h1z'/%3E%3C/svg%3E");
  --ico-percent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3l2 2L5 21l-2-2zM7 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm10 10a4 4 0 1 1 0 8 4 4 0 0 1 0-8z'/%3E%3C/svg%3E");
  --ico-exit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h9v2.500H6.500v13H13V21H4zm11 4l5.500 5-5.500 5v-3.700H9v-2.600h6z'/%3E%3C/svg%3E");
  --ico-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 3h9l9 9-9 9-9-9zm4.500 2.500a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------- Seat card = ticket */
.seats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 28px 24px;
}
.seat-card {
  --stub: 54px;
  position: relative; display: flex; flex-direction: column; min-width: 0;
  color: var(--ink); text-decoration: none;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease;
}
a.seat-card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--ink); }
a.seat-card:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
/* punched notches on both edges, at the perforation above the stub */
.seat-card::before {
  content: ""; position: absolute; z-index: 2; left: -12px; right: -12px; bottom: calc(var(--stub) - 11px); height: 22px;
  background:
    radial-gradient(circle at 0 50%, var(--notch-bg) 0 9.5px, var(--ink) 9.5px 11px, transparent 11.5px),
    radial-gradient(circle at 100% 50%, var(--notch-bg) 0 9.5px, var(--ink) 9.5px 11px, transparent 11.5px);
  clip-path: inset(0 11.2px);
  pointer-events: none;
}
.seat-card__top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 10px; padding: 16px 16px 0; }
.seat-card__img {
  width: 52px; height: 52px; flex: none; object-fit: cover; background: var(--paper-2);
  border: 1.5px solid var(--ink); border-radius: 10px;
}
.seat-card__id { flex: 1 1 calc(100% - 62px); min-width: 0; align-self: center; }
.seat-card__name {
  font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seat-card__sym { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-card__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 14px 16px 0; padding: 10px 0 8px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.seat-card__price .label, .seat-hero .label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.seat-card__price .value {
  font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144; color: var(--velvet); min-width: 0; overflow-wrap: anywhere; text-align: right;
}
.seat-card__rows { padding: 6px 16px 10px; flex: 1; }
.seat-card__rows .kv { padding: 5px 0; font-size: 13.5px; }
.seat-card .progress { margin: 0 16px 16px; height: 8px; }
.seat-card__cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: var(--stub); padding: 0 18px; margin-top: auto;
  border-top: 1.5px dashed var(--ink); border-radius: 0 0 calc(var(--r) - 2px) calc(var(--r) - 2px);
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper-2);
  transition: background-color .18s ease, color .18s ease;
}
.seat-card__cta::after {
  content: ""; flex: none; width: 74px; height: 24px;
  /* barcode */
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 9px, currentColor 9px 12px, transparent 12px 14px);
  opacity: .85;
}
a.seat-card:hover .seat-card__cta { background: var(--velvet); color: var(--cream); }

.seat-card.is-vacant { background: #FFFDF6; border-style: dashed; }
.seat-card.is-vacant .seat-card__price .value { font-style: italic; font-weight: 500; color: var(--ink); }
.seat-card.is-vacant .seat-card__cta { background: var(--velvet); color: var(--cream); border-top-style: dashed; }
.seat-card.is-vacant .seat-card__price { border-top-style: dashed; border-bottom-style: dashed; }

.seat-card.is-mine { box-shadow: 0 0 0 3px var(--brass), 5px 5px 0 3px var(--ink); }
a.seat-card.is-mine:hover { box-shadow: 0 0 0 3px var(--brass), 8px 8px 0 3px var(--ink); }
.seat-card.is-mine::after {
  content: "YOUR SEAT"; position: absolute; top: -13px; right: 14px; z-index: 3;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em;
  padding: 4px 8px; background: var(--brass); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  transform: rotate(2deg);
}
.seat-card.is-mine .seat-card__cta { background: var(--brass-lt); }

.seat-card.is-demo {
  cursor: default; border-style: dashed; border-color: var(--ink-3); color: var(--ink-2);
  background:
    repeating-linear-gradient(135deg, rgba(26, 20, 16, .035) 0 10px, transparent 10px 20px),
    var(--card);
}
.seat-card.is-demo .seat-card__img { filter: grayscale(1) contrast(.9); border-color: var(--ink-3); }
.seat-card.is-demo .seat-card__price { border-color: var(--ink-3); }
.seat-card.is-demo .seat-card__price .value { color: var(--ink-2); }
.seat-card.is-demo .progress { border-color: var(--ink-3); }
.seat-card.is-demo .progress__bar { background: var(--ink-3); animation: none; border-color: var(--ink-3); }
.seat-card.is-demo .seat-card__cta { color: var(--ink-3); border-top-color: var(--ink-3); background: transparent; }
.seat-card.is-demo::before {
  background:
    radial-gradient(circle at 0 50%, var(--notch-bg) 0 9.5px, var(--ink-3) 9.5px 11px, transparent 11.5px),
    radial-gradient(circle at 100% 50%, var(--notch-bg) 0 9.5px, var(--ink-3) 9.5px 11px, transparent 11.5px);
}
.seat-card.is-demo::after {
  content: "DEMO \00B7 NOT A REAL TOKEN"; position: absolute; left: 50%; top: 56%; z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg); white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em;
  padding: 6px 10px; color: var(--velvet); border: 2px solid var(--velvet); border-radius: 6px;
  background: rgba(251, 246, 234, .82); opacity: .92;
}

/* ----------------------------------------------------------------- Feed = ledger */
.feed { display: grid; }
.feed-item {
  --c: var(--ink);
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px dotted var(--line-2); font-size: 14.5px;
  transition: background-color .15s ease;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: rgba(26, 20, 16, .04); }
.feed-item__icon {
  --ico: var(--ico-tag);
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--c); color: var(--cream); border: 1.5px solid var(--ink);
}
.feed-item__icon::before {
  content: ""; position: absolute; inset: 7px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.feed-item__text { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.4; }
.feed-item__text b { color: var(--ink); font-weight: 700; }
.feed-item__time {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); text-decoration: none; white-space: nowrap;
}
a.feed-item__time:hover { color: var(--velvet); text-decoration: underline; }
.feed-item--taken { --c: var(--velvet); }
.feed-item--taken .feed-item__icon { --ico: var(--ico-chair); }
.feed-item--launched { --c: var(--ink); }
.feed-item--launched .feed-item__icon { --ico: var(--ico-star); color: var(--brass-lt); }
.feed-item--burn { --c: var(--brass); }
.feed-item--burn .feed-item__icon { --ico: var(--ico-flame); color: var(--ink); }
.feed-item--fees { --c: var(--green); }
.feed-item--fees .feed-item__icon { --ico: var(--ico-coin); }
.feed-item--tax { --c: var(--paper-2); }
.feed-item--tax .feed-item__icon { --ico: var(--ico-percent); color: var(--ink); }
.feed-item--vacated { --c: transparent; }
.feed-item--vacated .feed-item__icon { --ico: var(--ico-exit); color: var(--velvet); border-style: dashed; border-color: var(--velvet); }
.feed-item--updated { --c: var(--card); }
.feed-item--updated .feed-item__icon { --ico: var(--ico-tag); color: var(--ink); }
@media (max-width: 480px) {
  .feed-item { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; align-items: start; }
  .feed-item__icon { width: 30px; height: 30px; grid-row: span 2; }
  .feed-item__icon::before { inset: 6px; }
  .feed-item__time { grid-column: 2; }
}

/* ----------------------------------------------------------------- Panels */
.panel {
  position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0;
}
.panel__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.panel__title::after { content: ""; flex: 1; height: 0; border-top: 1.5px solid currentColor; opacity: .9; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel .tabs { display: flex; }

/* ----------------------------------------------------------------- Seat detail */
.back {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 18px; text-decoration: none;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 2px;
}
.back::before { content: "\2190"; transition: transform .15s ease; }
.back:hover { color: var(--velvet); }
.back:hover::before { transform: translateX(-4px); }

.detail { display: grid; gap: 24px; padding-bottom: 72px; min-width: 0; }
.detail__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: start;
  padding-bottom: 24px; border-bottom: 1.5px solid var(--ink);
}
.detail__img {
  width: 112px; height: 112px; object-fit: cover; background: var(--paper-2);
  border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow);
}
.detail__title { min-width: 0; display: grid; gap: 10px; }
.detail__title h1 {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 5vw, 54px); line-height: 1;
  letter-spacing: -.02em; font-variation-settings: "opsz" 144; overflow-wrap: anywhere;
}
.detail__sym {
  font-family: var(--f-mono); font-weight: 500; font-size: .36em; letter-spacing: .04em; color: var(--velvet);
  vertical-align: middle; white-space: nowrap; margin-left: 4px;
}
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; }
.detail__link {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
  transition: background-color .12s ease, color .12s ease;
}
.detail__link::after { content: " \2197"; }
.detail__link:hover { background: var(--ink); color: var(--brass-lt); }
.detail__desc { color: var(--ink-2); max-width: 70ch; overflow-wrap: anywhere; }
.detail__numbers {
  display: grid; background: var(--ink); color: var(--paper); border-radius: var(--r); min-width: 220px; max-width: 300px;
  padding: 4px 18px;
}
.num { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px dashed rgba(251, 246, 234, .28); min-width: 0; }
.num:last-child { border-bottom: 0; }
.num__k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lt); }
.num__v { font-family: var(--f-mono); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail__main { display: grid; gap: 24px; min-width: 0; }
.detail__side { display: grid; gap: 24px; min-width: 0; position: sticky; top: 88px; }

@media (max-width: 1020px) {
  .detail__head { grid-template-columns: auto minmax(0, 1fr); }
  .detail__numbers { grid-column: 1 / -1; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 18px; gap: 0 18px; }
  .num { border-bottom: 0; padding: 14px 0; }
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .detail__side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 560px) {
  .detail__head { gap: 14px; }
  .detail__img { width: 72px; height: 72px; border-radius: 12px; box-shadow: var(--shadow-s); }
  .detail__title { display: contents; }
  .detail__title h1 { align-self: center; }
  .detail__meta, .detail__desc { grid-column: 1 / -1; }
  .detail__numbers { grid-template-columns: 1fr; padding: 4px 16px; }
  .num { border-bottom: 1px dashed rgba(251, 246, 234, .28); padding: 10px 0; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .num__v { text-align: right; }
  .panel { padding: 16px; }
}

/* The seat: the centrepiece. A velvet ticket with a price on it. */
.panel--seat {
  --fgc: var(--cream);
  color: var(--cream); padding: clamp(18px, 3vw, 30px); gap: 20px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-opacity='.13' d='M7 3h10a2 2 0 0 1 2 2v6h1a2 2 0 0 1 2 2v5h-3v3h-2v-3H7v3H5v-3H2v-5a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") right -30px top -26px / 300px no-repeat,
    radial-gradient(120% 90% at 20% 0%, var(--velvet-lt) 0%, var(--velvet) 42%, var(--velvet-deep) 100%);
  box-shadow: 6px 6px 0 var(--ink);
}
.panel--seat .panel__title { color: var(--brass-lt); }
.panel--seat .panel__title::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-lt); flex: none;
  animation: blink 1s steps(2) infinite;
}
.panel--seat .panel__title::after { border-top-style: dashed; opacity: .6; }
.seat-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.seat-hero__price { display: grid; gap: 4px; min-width: 0; }
.seat-hero .label { color: var(--brass-lt); }
.seat-hero__price .value {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 10vw, 96px); line-height: .92;
  letter-spacing: -.03em; font-variation-settings: "opsz" 144; overflow-wrap: anywhere;
  text-shadow: 3px 3px 0 rgba(26, 20, 16, .35);
}
.seat-hero__holder {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0;
  padding: 10px 14px; border: 1.5px dashed rgba(251, 246, 234, .6); border-radius: var(--r-s);
  background: rgba(26, 20, 16, .16);
}
.seat-hero__holder .label { flex-basis: 100%; }
.seat-hero__holder .addr { font-size: 17px; font-weight: 500; }
.panel--seat a.addr:hover { color: var(--brass-lt); }
.seat-stats {
  position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px 22px;
  padding-top: 22px; border-top: 2px dashed rgba(251, 246, 234, .65);
}
/* punched notches where the stub tears off */
.seat-stats::before, .seat-stats::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--notch-bg); border: 1.5px solid var(--ink);
}
.seat-stats::before { left: calc(-1 * clamp(18px, 3vw, 30px) - 13.5px); clip-path: inset(0 0 0 50%); }
.seat-stats::after { right: calc(-1 * clamp(18px, 3vw, 30px) - 13.5px); clip-path: inset(0 50% 0 0); }
.seat-stats .kv { display: grid; gap: 3px; padding: 0; border: 0; align-content: start; justify-content: stretch; }
.seat-stats .kv .k {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lt);
}
.seat-stats .kv .v { text-align: left; font-size: 15.5px; font-weight: 500; color: var(--cream); }
.seat-stats .kv--warn .k, .seat-stats .kv--warn .v { color: #FFD9A8; }
.panel--seat .btn--ghost { --fg: var(--cream); --bd: var(--cream); color: var(--cream); border-color: var(--cream); }
.panel--seat .btn--ghost:hover { background: var(--cream); color: var(--velvet-deep); }
.panel--seat .btn[disabled] { background: transparent; color: rgba(251, 246, 234, .6); border-color: rgba(251, 246, 234, .5); }
.panel--seat .badge--vacant { color: var(--cream); }
.panel--seat :focus-visible { outline-color: var(--brass-lt); }

.panel--seat.is-vacant {
  color: var(--ink); border: 2px dashed var(--velvet); box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23B0241C' stroke-opacity='.3' stroke-width='.3' stroke-dasharray='.8 .6' d='M7 3h10a2 2 0 0 1 2 2v6h1a2 2 0 0 1 2 2v5h-3v3h-2v-3H7v3H5v-3H2v-5a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") right -20px top -20px / 280px no-repeat,
    #FFFDF6;
}
.panel--seat.is-vacant .panel__title, .panel--seat.is-vacant .seat-hero .label, .panel--seat.is-vacant .seat-stats .kv .k { color: var(--velvet); }
.panel--seat.is-vacant .panel__title::before { background: var(--velvet); }
.panel--seat.is-vacant .seat-hero__price .value { color: var(--velvet); font-style: italic; font-weight: 600; text-shadow: none; }
.panel--seat.is-vacant .seat-hero__holder { border-color: var(--line-2); background: transparent; }
.panel--seat.is-vacant .seat-stats { border-top-color: var(--velvet); }
.panel--seat.is-vacant .seat-stats .kv .v { color: var(--ink); }
.panel--seat.is-vacant .seat-stats::before, .panel--seat.is-vacant .seat-stats::after { border: 2px dashed var(--velvet); }
.panel--seat.is-vacant .btn--ghost { --fg: var(--ink); --bd: var(--ink); color: var(--ink); border-color: var(--ink); }
.panel--seat.is-vacant .btn--ghost:hover { background: var(--ink); color: var(--paper); }
.panel--seat.is-vacant .badge--vacant { color: var(--velvet); }
.panel--seat.is-vacant a.addr:hover { color: var(--velvet); }

.panel--seat.is-mine { box-shadow: 0 0 0 4px var(--brass), 8px 8px 0 4px var(--ink); }
.panel--seat.is-mine::after {
  content: "YOU SIT HERE"; position: absolute; top: -14px; right: 22px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em;
  padding: 5px 10px; background: var(--brass); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  transform: rotate(2deg);
}

.panel--take { border-width: 1.5px; box-shadow: var(--shadow); }
.panel--take .panel__title { color: var(--velvet); }
.panel--owner { background: #FFFDF6; box-shadow: 0 0 0 3px var(--brass-lt); }
.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.owner-box {
  display: grid; gap: 10px; align-content: space-between; min-width: 0;
  padding: 14px; background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-s);
  font-size: 14px; color: var(--ink-2);
}
.owner-box .btn { justify-self: start; }
.panel--history .feed-item:first-child { padding-top: 2px; }
.panel--trade { box-shadow: var(--shadow); }
.panel--trade .tab.is-active { background: var(--velvet); color: var(--cream); }
.panel--curve .kv { padding: 0; border: 0; }
.panel--curve .progress { height: 16px; }

/* ----------------------------------------------------------------- Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, .72);
  background-image: repeating-linear-gradient(135deg, rgba(196, 144, 42, .08) 0 2px, transparent 2px 14px);
  animation: fade .2s ease both;
}
.modal__box {
  position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; gap: 10px; padding: 24px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--velvet);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
.modal__title {
  font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -.01em;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1.5px dashed var(--ink);
}
.wallet-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-s);
  font-weight: 700; font-size: 16px; text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.wallet-option img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.wallet-option span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wallet-option::after { content: "\2192"; font-family: var(--f-mono); transition: transform .15s ease; }
.wallet-option:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); background: #FFFDF6; }
.wallet-option:hover::after { transform: translateX(4px); }
.modal__close { justify-self: end; margin-top: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ----------------------------------------------------------------- Toasts */
#toast-root {
  position: fixed; z-index: 120; right: 16px; bottom: 16px; left: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.toast {
  --c: var(--brass);
  pointer-events: auto; position: relative; width: 100%; max-width: 380px;
  display: grid; gap: 4px; padding: 12px 16px 12px 50px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-s); border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--c);
  animation: toast-in .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 36px;
  background: var(--c); border-radius: 6px 0 0 6px; border-right: 1.5px dashed var(--ink);
}
.toast::after {
  position: absolute; left: 0; top: 50%; width: 36px; transform: translateY(-50%); text-align: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 17px; color: var(--ink); content: "i";
}
.toast__text { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.toast__link { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--brass-lt); justify-self: start; }
.toast__link:hover { color: var(--cream); }
.toast--ok { --c: #4FB286; }
.toast--ok::after { content: "\2713"; }
.toast--err { --c: #E8584B; }
.toast--err::after { content: "!"; }
.toast--info { --c: var(--brass); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }

/* ==========================================================================
   Static page sections
   ========================================================================== */

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero h1 {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 8.2vw, 104px); line-height: .92;
  letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 0; text-wrap: balance;
}
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--velvet); letter-spacing: -.03em; }
.hero__sub { font-size: clamp(16px, 1.7vw, 19.500px); color: var(--ink-2); max-width: 56ch; }
.hero__sub b { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero__facts li {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; padding: 6px 10px;
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card);
}
.hero__facts li b { color: var(--velvet); font-weight: 500; }

.stage { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1 / 1.08; }
.stage__spot {
  position: absolute; inset: 0 0 6% 0; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(closest-side, #FFF6DC 0%, rgba(235, 203, 126, .5) 55%, transparent 100%);
}
.stage__floor {
  position: absolute; left: 6%; right: 6%; bottom: 4%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 20, 16, .35), transparent);
}
.stage__chair { position: absolute; inset: 4% 8% 6% 8%; width: 84%; height: 90%; overflow: visible; }
.stage__tag { transform-box: fill-box; transform-origin: 50% 0; animation: swing 4.5s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-6deg); } }
.meter {
  position: absolute; left: 0; bottom: 0; display: grid; gap: 2px; padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-s); box-shadow: 4px 4px 0 var(--brass);
  transform: rotate(-3deg); max-width: 78%;
}
.meter__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lt); display: flex; align-items: center; gap: 7px; }
.meter__k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--velvet-lt); animation: blink 1s steps(2) infinite; }
.meter__v { font-family: var(--f-mono); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage__stamp {
  position: absolute; right: 0; top: 4%; transform: rotate(9deg);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.35;
  color: var(--velvet); border: 2px solid var(--velvet); border-radius: 6px; padding: 6px 9px; background: rgba(242, 232, 213, .7);
}
.stage__note { position: absolute; right: 0; bottom: -2px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .stage { width: min(88%, 360px); margin-top: 4px; }
}

/* ----------------------------------------------------------------- Stats board */
.stats { background: var(--ink); color: var(--paper); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.stats__in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { display: grid; gap: 6px; padding: 24px 18px; border-left: 1px dashed rgba(251, 246, 234, .25); min-width: 0; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__v {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1;
  font-variation-settings: "opsz" 144; color: var(--brass-lt); overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.stat__v small { font-family: var(--f-mono); font-size: .36em; font-weight: 500; letter-spacing: .08em; color: var(--paper); margin-left: 4px; }
.stat__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 246, 234, .78); }
@media (max-width: 900px) {
  .stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 14px; border-left: 0; border-bottom: 1px dashed rgba(251, 246, 234, .25); }
  .stat:nth-child(odd) { padding-left: 0; border-right: 1px dashed rgba(251, 246, 234, .25); }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
}

/* ----------------------------------------------------------------- How it works */
.how { background: var(--paper-2); border-bottom: 1.5px solid var(--ink); --notch-bg: var(--paper-2); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; border-right: 1.5px dashed var(--ink);
  font-family: var(--f-display); font-weight: 900; font-size: 34px; font-variation-settings: "opsz" 144; color: var(--velvet);
}
.step__body { padding: 16px 18px; display: grid; gap: 4px; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.step p { color: var(--ink-2); font-size: 15px; }
.step p b { color: var(--ink); }
.receipt {
  position: sticky; top: 96px; background: #FFFDF6; border: 1.5px solid var(--ink); border-bottom: 0;
  padding: 22px 20px 18px; transform: rotate(1.2deg); box-shadow: 6px 6px 0 rgba(26, 20, 16, .18); margin-bottom: 10px;
}
.receipt::after {
  content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, #FFFDF6 6px, transparent 0) 0 0 / 12px 10px repeat-x,
    linear-gradient(225deg, #FFFDF6 6px, transparent 0) 0 0 / 12px 10px repeat-x;
  filter: drop-shadow(0 1.5px 0 var(--ink));
}
.receipt__head { text-align: center; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1.5px dashed var(--ink); }
.receipt__head strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: -.01em; }
.receipt__head span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.receipt__sub { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--velvet); margin: 12px 0 2px; }
.receipt p { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.rule-line {
  margin-top: 28px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; line-height: 1.25;
}
.rule-line b { color: var(--brass-lt); font-weight: 800; font-style: italic; }
@media (max-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .receipt { position: relative; top: 0; transform: none; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 54px minmax(0, 1fr); }
  .step::before { font-size: 24px; }
  .step__body { padding: 14px; }
}

/* ----------------------------------------------------------------- Board, demo, activity */
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.demo {
  position: relative; margin-top: clamp(48px, 7vw, 80px); padding: clamp(20px, 3vw, 32px);
  border: 1.5px dashed var(--ink-3); border-radius: 18px;
}
.demo__flag {
  position: absolute; top: -15px; left: 20px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em;
  padding: 5px 12px; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--brass-lt) 0 6px, var(--card) 6px 12px);
}
.demo__head { display: grid; gap: 8px; margin: 6px 0 26px; }
.demo__head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -.015em; }
.demo__head p { color: var(--ink-2); max-width: 70ch; }
.demo__head p b { color: var(--velvet); }

.activity { background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.activity__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.ledger {
  background: #FFFDF6; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 8px 18px;
  background-image: linear-gradient(90deg, transparent 49px, rgba(176, 36, 28, .25) 49px 50px, transparent 50px);
  min-height: 120px;
}
@media (max-width: 480px) { .ledger { padding: 6px 12px; background-image: none; } }
@media (max-width: 860px) { .activity__grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.faq-list { display: grid; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1.5px solid var(--ink); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 18px 4px; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); line-height: 1.2; letter-spacing: -.01em;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 20px; font-weight: 400; line-height: 1;
  border: 1.5px solid var(--ink); border-radius: 50%; transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.faq-item summary:hover { color: var(--velvet); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--velvet); color: var(--cream); border-color: var(--velvet); }
.faq-item p { padding: 0 44px 20px 4px; color: var(--ink-2); max-width: 72ch; }
.faq-item p b { color: var(--ink); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq-item p { padding-right: 4px; } }

/* ----------------------------------------------------------------- Launch view */
.launch { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 80px; }
.launch__head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 760px; }
.launch__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(20px, 3.500vw, 40px); align-items: start; }
.launch-form { display: grid; gap: 22px; min-width: 0; }
.form-group {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  padding: 30px 20px 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r);
}
.form-group__title {
  position: absolute; top: -13px; left: 16px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; background: var(--ink); color: var(--brass-lt); border-radius: 4px;
}
.form-group--seat { background: #FFFDF6; box-shadow: 5px 5px 0 var(--velvet); }
.form-group--seat .form-group__title { background: var(--velvet); color: var(--cream); }
.field--wide, .field--image { grid-column: 1 / -1; }
.field--image { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 0; }
.field--image > label, .field--image > .field__hint { grid-column: 1 / -1; }
#l-image-preview { margin-left: 14px; width: 64px; height: 64px; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-s); }
.launch-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.playbill {
  background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 22px; display: grid; gap: 12px;
  box-shadow: 5px 5px 0 var(--brass);
}
.playbill h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--brass-lt); }
.playbill ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: pb; }
.playbill li { counter-increment: pb; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 14.5px; color: rgba(251, 246, 234, .86); }
.playbill li::before { content: counter(pb); font-family: var(--f-mono); font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--brass-lt); border-radius: 50%; color: var(--brass-lt); margin-top: 1px; }
.playbill li b { color: var(--cream); }
@media (max-width: 940px) { .launch__grid { grid-template-columns: minmax(0, 1fr); } .launch-aside { position: static; } }
@media (max-width: 560px) { .form-group { grid-template-columns: minmax(0, 1fr); padding: 28px 14px 16px; } }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 44px 0 36px; }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.site-footer .logo__word { color: var(--paper); }
.site-footer .logo__word i { color: var(--brass-lt); }
.site-footer__tag { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--brass-lt); margin-top: 8px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.site-footer__links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 8px 12px; border: 1px solid rgba(251, 246, 234, .45); border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.site-footer__links a:hover { background: var(--brass-lt); color: var(--ink); border-color: var(--brass-lt); }
.site-footer :focus-visible { outline-color: var(--brass-lt); }
.disclaimer {
  grid-column: 1 / -1; padding-top: 20px; border-top: 1px dashed rgba(251, 246, 234, .3);
  font-size: 13px; line-height: 1.55; color: rgba(251, 246, 234, .72); max-width: 96ch;
}
@media (max-width: 700px) { .site-footer__in { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- Entrance + motion prefs */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero__copy > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .stage { animation: rise .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
  .tape__track { animation: none !important; }
  .btn.is-busy::after { animation: spin 1.2s linear infinite !important; animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
}

@media (max-width: 400px) {
  .seats-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { padding-left: 16px; padding-right: 16px; }
  .seat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .seat-hero__holder { width: 100%; }
}
