/* GatePass: risograph gig-poster tickets. Two inks (fluoro pink, deep blue) on warm paper. */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-wght.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* dark canvas */
  --paper: #080C22;
  --paper-hi: #11183D;
  --desk: #050816;
  /* text & electric blue */
  --ink: #EEF3FF;
  --blue: #2563EB;
  --blue-deep: #E2EAFF;
  --blue-soft: #94A6D6;          /* secondary text on dark canvas */
  --blue-line: rgba(56, 189, 248, .24);
  /* neon cyan & indigo surface */
  --pink: #22D3EE;               /* neon cyan: rules, marks, accents */
  --pink-ink: #67E8F9;           /* readable cyan text on dark surfaces */
  --pink-tint: #131B42;          /* cards, rows */
  --pink-tint-2: #161F4D;        /* ticket stock */
  --pink-track: #1E295E;
  --pink-display: #38BDF8;       /* large cyan display type */
  --pink-note: #A5B4FC;          /* soft indigo-cyan notes */
  /* verdicts */
  --go: #10B981;
  --go-flash: #34D399;
  --stop: #F43F5E;
  --stop-tint: #3B1224;
  --go-ink: #34D399;
  --stop-ink: #FB7185;

  --r-row: 12px;
  --r-btn: 12px;
  --r-card: 10px;
  --gutter: clamp(16px, 5vw, 24px);
  --col: 460px;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-ui: "Barlow SC", "Arial Narrow", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 540px at 12% 8%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(820px 520px at 88% 82%, rgba(34, 211, 238, .15), transparent 62%),
    var(--paper);
  color: var(--ink);
  font: 500 17px/1.4 var(--f-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--pink-track); color: var(--ink); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pink-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--pink) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 9px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── ink textures ─────────────────────────────────────────────── */
/* type gets a fine single-grain mask (no stroke ever breaks); marks get the clustered drum texture */
.ink { -webkit-mask: url("../img/ink-text.png") 0 0 / 256px 256px; mask: url("../img/ink-text.png") 0 0 / 256px 256px; }
.inked { -webkit-mask: url("../img/ink.png") 0 0 / 256px 256px; mask: url("../img/ink.png") 0 0 / 256px 256px; }
.ink { padding-block: .12em .26em; margin-block: -.12em -.26em; }   /* room for g, j, p, q, y and accents inside the mask */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: url("../img/specks.png") 0 0 / 256px 256px; opacity: .35; z-index: 2;
}

/* ── frame ────────────────────────────────────────────────────── */
.app {
  width: min(100%, var(--col));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}
.app > :nth-last-child(2) { margin-bottom: 30px; }
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 0 14px;
  min-height: 74px;
}
.logo {
  font: 700 clamp(34px, 10vw, 42px)/1 var(--f-display);
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--pink-ink); }
.mast-role {
  font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink);
  display: flex; align-items: center; gap: 6px;
}
.mast-role.quiet { letter-spacing: .02em; text-transform: none; font-size: 16px; }
.mast-center { justify-content: center; position: relative; }
.mast-center .logo { font-size: 30px; }

.scallops {
  height: 16px; margin-top: auto; flex: none;
  background: radial-gradient(circle at 50% 100%, var(--pink) 0 8px, transparent 8.5px) 3px 0 / 24px 16px repeat-x;
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.section-gap { margin-top: 30px; }
h2.head, .head {
  font: 700 26px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .005em; margin: 0; color: var(--ink);
}
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sub { font: 500 15px/1.45 var(--f-ui); color: var(--blue-soft); margin: 0; }
.fine { font: 500 14px/1.45 var(--f-ui); color: var(--blue-soft); }

/* ── poster (event art + title) ───────────────────────────────── */
.poster {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  aspect-ratio: 1 / .98; background: var(--pink-tint) center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(14px, 4vw, 18px);
}
.poster::before {   /* lifts the haze so the fluoro title reads */
  content: ""; position: absolute; inset: 0 0 35% 0; z-index: 0;
  background: linear-gradient(180deg, rgba(248, 236, 240, .55), rgba(248, 236, 240, 0));
}
.poster > * { position: relative; z-index: 3; }
.poster-title {
  font: 700 clamp(46px, 15vw, 66px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.005em;
  color: #F01E95; margin: 0; overflow-wrap: anywhere; text-wrap: balance;
  max-width: 11ch; text-shadow: .022em .018em 0 rgba(26, 67, 180, .22);
}
.poster-club {
  font: 600 clamp(19px, 6vw, 25px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
  color: var(--blue-deep); margin: 10px 0 0;
}
.poster-when {
  margin-top: auto; align-self: flex-start;
  font: 600 15px/1.25 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: #fff;
  background: var(--blue); padding: 7px 10px 6px; border-radius: 3px;
}

/* ── rows, buttons ────────────────────────────────────────────── */
.row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 72px; padding: 12px 18px; border: 1px solid var(--blue-line); border-radius: var(--r-row);
  background: var(--pink-tint); color: var(--ink); text-align: left; text-decoration: none;
  font: 500 18px/1.2 var(--f-display); letter-spacing: .01em;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
button.row:hover, a.row:hover, label.row:hover { background-color: #1A2557; border-color: rgba(34, 211, 238, .48); color: var(--ink); }
button.row:active, a.row:active, label.row:active { transform: translateY(1px); }
.row .grow { flex: 1; min-width: 0; }
.row .grow small { display: block; font: 500 14px/1.3 var(--f-ui); color: var(--blue-soft); letter-spacing: 0; margin-top: 2px; }
.row svg { flex: none; }
.row .chev { width: 20px; height: 20px; }
label.row { cursor: pointer; }
label.row:focus-within { outline: 3px solid var(--pink); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 18px; border-radius: var(--r-btn);
  border: 2px solid var(--pink); background: transparent; color: var(--pink-ink);
  font: 500 18px/1 var(--f-display); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn:hover { background: rgba(34, 211, 238, .12); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 16px; border-width: 1.5px; }
.btn.pinkline { border-color: var(--pink); color: var(--pink-ink); }
.btn.danger { border-color: var(--stop-ink); color: var(--stop-ink); }
.btn.danger:hover { background: rgba(224, 20, 76, .08); color: var(--stop-ink); }

.btn-primary {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 82px; padding: 14px 22px; border: 0; border-radius: var(--r-btn);
  background: linear-gradient(135deg, #2563EB 0%, #6D28D9 100%); color: #fff; text-align: left; text-decoration: none;
  font: 500 clamp(21px, 6.4vw, 25px)/1.1 var(--f-display); letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .32);
  transition: filter .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 55%); pointer-events: none; z-index: 1; }
.btn-primary > * { position: relative; z-index: 2; }   /* labels print clean white above the grain */
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 32px rgba(34, 211, 238, .28); color: #fff; }
.btn-primary:active { transform: translateY(1px) scale(.997); }
.btn-primary[disabled] { opacity: .55; cursor: progress; }
.btn-primary .label { flex: 1; min-width: 0; }
.btn-primary .label small { display: block; font: 500 14px/1.2 var(--f-ui); color: #E0E7FF; margin-top: 3px; letter-spacing: 0; }
.btn-primary .arrow { width: 26px; height: 26px; flex: none; transition: transform .25s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-primary .tix { width: 46px; height: 32px; flex: none; }
.btn-primary.compact { min-height: 60px; font-size: 21px; padding: 10px 18px; }
.btn-primary.pink { background: var(--pink); color: #fff; }

/* ── stat (checked in) ────────────────────────────────────────── */
.stat {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 18px 20px 20px; border-radius: var(--r-row); background: var(--pink-tint);
  border: 1px solid var(--blue-line);
}
.stat .dot { width: 50px; height: 50px; grid-row: span 2; }
.stat-label { font: 500 19px/1.1 var(--f-display); margin: 0; }
.stat-line { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stat-num { font: 700 clamp(36px, 11vw, 44px)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; margin: 2px 0 0; }
.bar { flex: 1; min-width: 72px; height: 12px; border-radius: 12px; background: var(--pink-track); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 100%; background: var(--pink); border-radius: inherit; transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .7s var(--ease-out); }
.stat-note { grid-column: 2; font: 500 14px/1.3 var(--f-ui); color: var(--pink-note); margin: 6px 0 0; }

/* ── forms ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 600 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--pink-ink); }
.input, .textarea, .select {
  width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 10px;
  border: 2px solid var(--blue-line); background: var(--paper-hi); color: var(--ink);
  font: 500 19px/1.3 var(--f-ui); caret-color: var(--pink);
  transition: border-color .15s, background-color .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--blue-soft); opacity: 1; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--pink); background: #161F4E; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { box-shadow: 0 0 0 3px var(--pink-track); }
.textarea { min-height: 150px; resize: vertical; font: 500 15px/1.45 var(--f-ui); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2367E8F9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--stop-ink); font: 600 15px/1.35 var(--f-ui); margin: 0; }
.ok-note { color: var(--go-ink); font: 600 15px/1.35 var(--f-ui); margin: 0; }

.poster-section { gap: 8px; }
.poster-sub { margin-top: -2px; }
.poster-drop {
  border: 2px dashed var(--blue-line); border-radius: var(--r-row);
  background: var(--paper-hi); padding: 22px 18px; text-align: center;
  cursor: pointer; transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.poster-drop:hover:not(.has-poster):not(.uploading),
.poster-drop.dragover {
  border-color: var(--pink); background: #161F4E;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.poster-drop.has-poster { border-style: solid; padding: 12px; cursor: default; text-align: left; }
.poster-drop.uploading { cursor: progress; border-color: var(--pink); }
.poster-empty, .poster-uploading { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.poster-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--pink-tint); border: 1px solid var(--blue-line); display: grid; place-items: center; color: var(--pink-ink); }
.poster-ico svg { width: 22px; height: 22px; }
.poster-empty strong, .poster-uploading strong { font: 600 18px/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.poster-progress { width: min(260px, 100%); height: 8px; border-radius: 999px; background: var(--pink-track); overflow: hidden; }
.poster-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--pink)); border-radius: inherit; transition: width .18s var(--ease-out); }
.poster-preview { display: flex; flex-direction: column; gap: 12px; }
.poster-preview-img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; border-radius: 10px; background: var(--desk); }
.poster-preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.poster-meta { font: 500 14px/1.3 var(--f-ui); color: var(--blue-soft); overflow-wrap: anywhere; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.poster-custom {
  border-radius: var(--r-card); overflow: hidden; background: var(--pink-tint);
  border: 1px solid var(--blue-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
}
.poster-custom-img { display: block; width: 100%; height: auto; }
.poster-custom-cap { padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.poster-custom-title { font: 700 clamp(28px, 8vw, 36px)/.98 var(--f-display); text-transform: uppercase; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.poster-custom-club { font: 600 17px/1.1 var(--f-display); text-transform: uppercase; color: var(--pink-ink); margin: 0; }

/* ── sign-in ──────────────────────────────────────────────────── */
.hero-poster { aspect-ratio: 1 / 1.04; }
.hero-poster .poster-title { font-size: clamp(50px, 16.5vw, 74px); max-width: 9ch; }
.hero-poster-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(56, 189, 248, .28); box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 36px rgba(56, 189, 248, .14); }
.or { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); }
.or::before, .or::after { content: ""; flex: 1; height: 0; border-top: 2px dotted var(--pink); }
.google { width: 22px; height: 22px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 16px/1.3 var(--f-display); letter-spacing: .02em; }
.links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.links a:hover { text-decoration: underline; }

/* ── event list ───────────────────────────────────────────────── */
.stub {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: stretch; gap: 0;
  text-decoration: none; color: var(--ink); background: var(--pink-tint); border: 1px solid var(--blue-line); border-radius: var(--r-row); overflow: hidden;
  min-height: 104px; transition: transform .15s var(--ease-out), background-color .18s, border-color .18s;
}
.stub:hover { background-color: #1A2557; border-color: rgba(34, 211, 238, .48); color: var(--ink); }
.stub:active { transform: translateY(1px); }
.stub-art { background: center / cover no-repeat; border-right: 3px dotted var(--pink); }
.stub-body { padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.stub-name { font: 700 22px/1 var(--f-display); text-transform: uppercase; margin: 0; overflow-wrap: anywhere; color: var(--pink-display); }
.stub-meta { font: 500 15px/1.25 var(--f-ui); color: var(--ink); }
.stub-count { padding: 12px 16px 12px 4px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; font: 700 22px/1 var(--f-display); white-space: nowrap; }
.stub-count small { font: 500 13px/1.2 var(--f-ui); color: var(--blue-soft); margin-top: 4px; }

.empty {
  border: 2.5px dashed var(--pink); border-radius: var(--r-row); padding: 26px 22px; text-align: left;
}
.empty h3 { font: 700 26px/1 var(--f-display); text-transform: uppercase; margin: 0 0 8px; color: var(--pink-display); }

/* ── event dashboard ──────────────────────────────────────────── */
.backlink { display: inline-flex; align-items: center; gap: 4px; font: 600 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; margin: 2px 0 12px; }
.backlink svg { width: 18px; height: 18px; }

.gatebox { border-radius: var(--r-row); background: var(--blue); color: #fff; padding: 18px 20px 20px; position: relative; isolation: isolate; }
.gatebox::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("../img/specks.png") 0 0 / 256px; opacity: .6; pointer-events: none; z-index: 1; }
.gatebox > * { position: relative; z-index: 3; }
.gatebox .kicker-free { font: 500 19px/1.1 var(--f-display); margin: 0; }
.gate-code { font: 700 clamp(42px, 13vw, 54px)/1 var(--f-display); letter-spacing: .06em; margin: 8px 0 4px; user-select: all; }
.gatebox .fine { color: #D9DEF3; margin: 0 0 14px; }
.gatebox .btn { border-color: rgba(255, 255, 255, .7); color: #fff; }
.gatebox .btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.gatebox .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-qr { margin-top: 16px; background: var(--paper-hi); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; color: var(--ink); }
.gate-qr svg { width: 120px; height: 120px; }

.upload-preview { background: var(--paper-hi); border: 2px solid var(--blue-line); border-radius: var(--r-row); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.preview-table { width: 100%; border-collapse: collapse; font: 500 15px/1.3 var(--f-ui); }
.preview-table th { text-align: left; font: 600 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-soft); padding: 0 8px 8px 0; }
.preview-table td { padding: 7px 8px 7px 0; border-top: 1.5px dotted var(--pink); overflow-wrap: anywhere; color: var(--blue-deep); }

.gen-progress { display: flex; align-items: center; gap: 14px; }
.gen-count { font: 700 clamp(44px, 14vw, 58px)/1 var(--f-display); color: var(--pink-display); min-width: 3ch; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; pointer-events: none; }
.search .input { padding-left: 44px; }

.passlist { list-style: none; margin: 0; padding: 0; border-top: 2px dotted var(--pink); }
.passlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-bottom: 2px dotted var(--pink); }
.pl-name { font: 600 19px/1.15 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.pl-meta { font: 500 14px/1.3 var(--f-ui); color: var(--blue-soft); grid-column: 1; overflow-wrap: anywhere; margin: 0; }
.pl-meta .in { color: var(--go-ink); font-weight: 700; }
.pl-actions { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--blue-line); background: var(--paper-hi); color: var(--pink-ink); text-decoration: none; transition: background-color .15s, border-color .15s; }
.icon-btn:hover { border-color: var(--pink); color: var(--ink); background: #1A2557; }
.icon-btn svg { width: 20px; height: 20px; }
.more-row { display: flex; justify-content: center; padding-top: 14px; }
.danger-zone { border-top: 2px dotted var(--pink); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ── the ticket (pass page) ─────────────────────────────────────
   The stock, its scallops/notches and the printed frame are one SVG (.t-shape) drawn by pass.js. */
.ticket-wrap { padding: 4px 0 0; }
.ticket { position: relative; isolation: isolate; padding: 15px 7px 0; }
.t-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.t-art {
  height: clamp(100px, 28vw, 128px); background: center 82% / cover no-repeat; margin: 0 1px;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 31px) no-repeat, url("../img/torn.png") 0 100% / 512px 32px repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 31px) no-repeat, url("../img/torn.png") 0 100% / 512px 32px repeat-x;
}
.t-body { padding: 6px 20px 2px; }
.t-name { font: 600 clamp(38px, 11.8vw, 52px)/1.04 var(--f-display); letter-spacing: -.012em; margin: 0; color: var(--ink); overflow-wrap: anywhere; text-shadow: .03em .024em 0 rgba(34, 211, 238, .3); }
.t-rule { height: 3px; background: var(--pink); margin: 10px 0 12px; border-radius: 2px; }
.t-event { font: 700 clamp(34px, 10.6vw, 46px)/.96 var(--f-display); text-transform: uppercase; color: var(--pink-display); margin: 0; overflow-wrap: anywhere; text-wrap: balance; text-shadow: -.022em .02em 0 rgba(37, 99, 235, .35); }
.t-when { font: 500 20px/1.2 var(--f-display); margin: 10px 0 0; color: var(--ink); }
.t-where { font: 500 18px/1.2 var(--f-display); margin: 3px 0 0; color: var(--blue-soft); }
.t-qr { position: relative; display: grid; place-items: center; padding: 14px 0 16px; }
.t-qr svg { width: min(54vw, 214px); height: auto; aspect-ratio: 1; }
.t-tear { position: relative; height: 0; margin: 0 16px; border-top: 4px dotted var(--pink); }
.t-stub { height: 60px; display: grid; place-items: center; padding-bottom: 8px; font: 500 clamp(22px, 7vw, 27px)/1 var(--f-display); color: var(--pink-display); letter-spacing: .005em; }
.t-stub.ink { padding-block: .12em .26em; margin-block: 0; }
.t-stamp { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 6; }
.t-stamp > div {
  rotate: -9deg; border: 4px solid var(--pink); outline: 1.5px solid var(--pink); outline-offset: 3px; border-radius: 6px;
  padding: 10px 18px 9px; background: rgba(19, 27, 66, .9);
  font: 700 27px/1.05 var(--f-display); text-transform: uppercase; color: var(--pink-ink); text-align: center; letter-spacing: .05em;
  filter: url(#gp-rough);
}
.t-stamp small { display: block; font: 600 16px/1.2 var(--f-display); letter-spacing: .06em; margin-top: 3px; }
.ticket.used .t-qr svg { opacity: .35; }
.pass-notes { margin: 18px 4px 0; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.pass-notes p { margin: 0; }
.pass-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

/* torn / missing ticket */
.torn { background: var(--pink-tint-2); border-radius: 4px; padding: 28px 24px 30px; position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 14px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 14px repeat-x; }
.torn h1 { font: 700 40px/.98 var(--f-display); text-transform: uppercase; color: var(--pink-display); margin: 0 0 12px; }

/* ── gate ─────────────────────────────────────────────────────── */
.code-input { font: 700 clamp(36px, 11vw, 46px)/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 14px 8px; min-height: 76px; }
.code-input::placeholder { color: #7883B4; letter-spacing: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--blue-line); font: 500 18px/1 var(--f-display); background: var(--paper-hi); transition: background-color .15s, color .15s, border-color .15s; cursor: pointer; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }

.scan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 10px; }
.scan-event { font: 700 19px/1.1 var(--f-display); text-transform: uppercase; color: var(--pink-ink); margin: 0; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.leave { border: 0; background: none; padding: 6px 2px; font: 600 14px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.leave:hover { color: var(--stop-ink); }
.scan-gate { font: 600 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 6px 9px 5px; border-radius: 4px; white-space: nowrap; }
.viewport {
  position: relative; border-radius: 14px; overflow: hidden; background: #1B1830;
  aspect-ratio: 1 / 1.18; max-height: 58dvh; width: 100%;
}
.viewport video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brackets { position: absolute; inset: 10% 13% 18%; pointer-events: none; }
.brackets i { position: absolute; width: 18%; height: 15%; border: 6px solid var(--pink); }
.brackets i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.brackets i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.brackets i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.brackets i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.viewport.hunting .brackets { animation: breathe 2.4s var(--ease-out) infinite; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: .97; } }
.cam-tools { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; gap: 8px; z-index: 3; }   /* clear of the brackets */
.cam-tools .icon-btn { background: rgba(246, 241, 239, .92); border-color: transparent; cursor: pointer; }
.cam-tools .icon-btn:focus-within { outline: 3px solid var(--pink); outline-offset: 2px; }
.cam-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; color: #F3EBEA; z-index: 2; }
.cam-msg h3 { font: 700 28px/1 var(--f-display); text-transform: uppercase; margin: 0; color: #FF7DC3; }
.cam-msg p { margin: 0; font: 500 16px/1.4 var(--f-ui); color: #E8E3EE; }
.cam-msg .btn { border-color: #F3EBEA; color: #F3EBEA; justify-self: center; }
.cam-msg .btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.verdict {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 18px; border-radius: var(--r-row);
  position: relative; isolation: isolate; margin-top: 12px;
}
.verdict::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("../img/specks.png") 0 0 / 256px; opacity: .55; pointer-events: none; z-index: 1; }
.verdict > * { position: relative; z-index: 3; }
.verdict .v-ico { width: 52px; height: 52px; flex: none; }
.verdict .v-text { flex: 1; min-width: 0; }
.v-main { font: 600 clamp(24px, 7.6vw, 31px)/1.05 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.v-main .sep { font-weight: 500; font-size: .82em; }
.v-sub { font: 500 15px/1.3 var(--f-ui); margin: 4px 0 0; }
.verdict.idle { background: var(--pink-tint); border: 1px solid var(--blue-line); color: var(--ink); }
.verdict.idle .v-main { font-size: 22px; font-weight: 500; }
.verdict.ok { background: var(--go); color: #fff; }
.verdict.ok .v-sub { color: #fff; }
.verdict.dup { background: var(--stop-tint); border: 1px solid rgba(244, 63, 94, .35); color: #FDA4AF; }
.verdict.dup .v-main { font-size: clamp(22px, 6.6vw, 27px); }
.verdict.dup .v-sub { color: #FECDD3; }
.verdict.warn { background: var(--pink-tint); border: 1px solid var(--blue-line); color: var(--pink-ink); }
.verdict.pop { animation: pop .42s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.94); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }

.flash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.flash svg { width: min(44vw, 220px); height: auto; }
.flash.ok { background: var(--go-flash); }
.flash.dup { background: var(--stop); }
.flash.show { animation: flash 1s var(--ease-out) forwards; }
@keyframes flash { 0% { opacity: .96; } 55% { opacity: .9; } 100% { opacity: 0; } }

.counter { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-row); background: var(--pink-tint); border: 1px solid var(--blue-line); }
.counter .c-label { font: 500 16px/1 var(--f-display); white-space: nowrap; }
.counter .c-num { font: 700 30px/1 var(--f-display); white-space: nowrap; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 2px dotted var(--pink); font: 500 16px/1.2 var(--f-ui); }
.recent li .r-name { flex: 1; min-width: 0; font: 600 17px/1.15 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent li .r-at { color: var(--blue-soft); white-space: nowrap; font-size: 14px; }
.recent li svg { width: 20px; height: 20px; flex: none; }
.recent .r-ok { color: var(--go-ink); }
.recent .r-dup { color: var(--stop-ink); }

.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 22, .72); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(100%, var(--col)); max-height: 86dvh; overflow: auto; background: var(--paper-hi); border: 1px solid var(--blue-line); border-radius: 16px 16px 0 0; padding: 18px var(--gutter) max(22px, env(safe-area-inset-bottom)); animation: up .32s var(--ease-out); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 60; background: var(--blue); color: #fff; font: 500 17px/1.2 var(--f-display); padding: 12px 18px; border-radius: 10px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); animation: toast .3s var(--ease-out); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--pink-track); }
@keyframes toast { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 30px; font: 500 14px/1.4 var(--f-ui); color: var(--blue-soft); }
.foot a { color: var(--blue-soft); }
.foot a:hover { color: var(--pink-ink); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { rotate: 360deg; } }
.skeleton { background: linear-gradient(90deg, var(--pink-tint) 0 40%, #1D2963 50%, var(--pink-tint) 60% 100%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-row); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ── wide screens ─────────────────────────────────────────────── */
@media (min-width: 980px) {
  body.wide .app { width: min(100%, 1060px); }
  .dash { display: grid; grid-template-columns: 420px 1fr; gap: 36px; align-items: start; }
  .dash > .left { position: sticky; top: 16px; }
}
@media (min-width: 560px) {
  .ticket-wrap { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flash.show { animation: none; opacity: 0; }
}

.section-gap-m { margin-top: 18px; }
@media (min-width: 980px) { .section-gap-m { margin-top: 0; } }

/* sign-in and single-column views stay readable on a laptop */
.narrow { width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 980px) {
  .signin { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px 64px; align-items: center; padding-top: 12px; }
}

.row .grow .fname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast-role .icon-btn { border-color: transparent; background: transparent; }
.mast-role .icon-btn:hover { background: var(--pink-tint); }
.head.section-gap { margin-top: 28px; margin-bottom: 4px; }
.verdict.dup .v-main { font-size: clamp(22px, 6.6vw, 27px); text-wrap: balance; }
.verdict.dup .v-sub { color: #8E0C34; }
.v-main { text-wrap: balance; }

/* ink-masked text: the mask paints the padding box, so pad for descenders/accents and give the space back */
.poster-title.ink, .t-name.ink, .t-event.ink, .stub-name.ink { margin-top: -.12em; margin-bottom: -.26em; }
.stat-num.ink { margin-top: calc(2px - .12em); margin-bottom: -.26em; }
.gate-code.ink { margin-top: calc(8px - .12em); margin-bottom: calc(4px - .26em); }
.logo.ink { display: inline-block; margin-block: -.12em -.26em; }

/* the only sign-in action wears the primary plate; the G sits on a white disc */
.gdisc { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.gdisc .google { width: 22px; height: 22px; }
