/* EntryGo: 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 {
  /* paper */
  --paper: #F6F1EF;
  --paper-hi: #FBF8F7;
  --desk: #E4E2E3;
  /* blue ink */
  --blue: #1A43B4;
  --blue-deep: #16338F;
  --blue-soft: #4A5A9C;
  /* secondary text on paper/tint, 5.5:1 */
  --blue-line: rgba(26, 67, 180, .22);
  /* pink ink */
  --pink: #FF2FA2;
  /* fluoro: fills, rules, marks, display on art */
  --pink-ink: #C50F72;
  /* pink text that must be read */
  --pink-tint: #F8D5E4;
  /* cards, rows */
  --pink-tint-2: #F7CFDF;
  /* ticket stock */
  --pink-track: #F5BDDB;
  --pink-display: #D3127C;
  /* large pink type on tints and stock (3.6:1+) */
  --pink-note: #A30B5C;
  /* small pink text on tints (5.6:1) */
  /* verdicts */
  --go: #12844A;
  --go-flash: #1BA65C;
  --stop: #E0144C;
  --stop-tint: #FAD3E0;
  --go-ink: #0E6B3C;
  /* green text on paper (5.7:1) */
  --stop-ink: #B80F3E;
  /* red text on paper (5.7:1) */

  --r-row: 12px;
  --r-btn: 12px;
  --r-card: 4px;
  --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: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper) url("../img/paper.png") 0 0 / 512px 512px;
  color: var(--blue);
  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(--blue-deep);
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink-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(--blue) 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 ─────────────────────────────────────────────── */
.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;
}

.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(--blue);
  text-decoration: none;
}

.logo:hover {
  color: var(--blue);
}

.mast-role {
  font: 600 13px/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  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(--blue);
}

.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 {
  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: 0;
  border-radius: var(--r-row);
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  color: var(--blue);
  text-align: left;
  text-decoration: none;
  font: 500 18px/1.2 var(--f-display);
  letter-spacing: .01em;
  transition: background-color .18s var(--ease-out), transform .12s var(--ease-out);
}

button.row:hover,
a.row:hover,
label.row:hover {
  background-color: #F5C9DC;
  color: var(--blue);
}

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(--blue);
  background: transparent;
  color: var(--blue);
  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(26, 67, 180, .08);
  color: var(--blue);
}

.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;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 82px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--blue);
  color: #fff;
  text-align: left;
  text-decoration: none;
  font: 500 clamp(21px, 6.4vw, 25px)/1.1 var(--f-display);
  letter-spacing: .01em;
  transition: background-color .18s var(--ease-out), transform .12s var(--ease-out);
}

.btn-primary::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;
}

.btn-primary>* {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  background: #1B3FA6;
  color: #fff;
}

.btn-primary:active {
  transform: translateY(1px) scale(.997);
}

.btn-primary[disabled] {
  background: #6C7DB8;
  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: #D9DEF3;
  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) url("../img/mottle-soft.png") 0 0 / 512px 512px;
}

.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(--blue);
}

.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(--blue-deep);
  font: 500 19px/1.3 var(--f-ui);
  caret-color: var(--pink);
  transition: border-color .15s, background-color .15s;
}

.input::placeholder,
.textarea::placeholder {
  color: #5B67A0;
  opacity: 1;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.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='%231A43B4' 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;
}

.art-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.art-pick label {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.art-pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.art-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}

.art-pick label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 0 var(--pink);
  transition: box-shadow .2s var(--ease-out);
}

.art-pick input:checked+img {
  transform: scale(1.04);
}

.art-pick label:has(input:checked)::after {
  box-shadow: inset 0 0 0 5px var(--pink);
}

.art-pick label:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.art-pick .art-name {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  font: 600 12px/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 4px 6px 3px;
  border-radius: 3px;
}

/* ── sign-in ──────────────────────────────────────────────────── */
.hero-poster {
  aspect-ratio: 1 / 1.04;
}

.hero-poster .poster-title {
  font-size: clamp(50px, 16.5vw, 74px);
  max-width: 9ch;
}

.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(--blue);
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  overflow: hidden;
  min-height: 104px;
  transition: transform .15s var(--ease-out), background-color .18s;
}

.stub:hover {
  background-color: #F5C9DC;
  color: var(--blue);
}

.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(--blue);
}

.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;
  color: var(--blue);
}

.stub-count small {
  font: 500 13px/1 var(--f-ui);
  color: var(--blue-soft);
}

.empty {
  text-align: center;
  padding: 48px 20px;
}

.empty h3 {
  font: 700 26px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--blue);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 16px/1 var(--f-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-decoration: none;
}

.backlink:hover {
  color: var(--pink-ink);
}

.backlink svg {
  width: 18px;
  height: 18px;
}

/* ── upload preview & pass list ───────────────────────────────── */
.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(--blue);
  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(--blue);
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}

.icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.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) ───────────────────────────────────── */
.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(--blue);
  overflow-wrap: anywhere;
  text-shadow: .03em .024em 0 rgba(255, 47, 162, .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(26, 67, 180, .2);
}

.t-when {
  font: 500 20px/1.2 var(--f-display);
  margin: 10px 0 0;
  color: var(--blue);
}

.t-where {
  font: 500 18px/1.2 var(--f-display);
  margin: 3px 0 0;
  color: var(--blue);
}

.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(--blue);
  outline: 1.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
  padding: 10px 18px 9px;
  background: rgba(247, 207, 223, .82);
  font: 700 27px/1.05 var(--f-display);
  text-transform: uppercase;
  color: var(--blue);
  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) url("../img/mottle.png") 0 0 / 512px 512px;
  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;
}

.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: .45;
  pointer-events: none;
  z-index: 1;
}

.verdict>* {
  position: relative;
  z-index: 2;
}

.verdict.ok {
  background: var(--go);
  color: #fff;
}

.verdict.dup {
  background: var(--stop);
  color: #fff;
}

.verdict.warn {
  background: var(--pink-tint);
  color: var(--blue-deep);
}

.verdict.idle {
  background: var(--pink-tint);
  color: var(--blue);
}

.v-ico {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
}

.v-ico svg {
  width: 36px;
  height: 36px;
}

.v-text {
  flex: 1;
  min-width: 0;
}

.v-main {
  font: 700 clamp(24px, 7.5vw, 32px)/1 var(--f-display);
  letter-spacing: -.01em;
  margin: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.v-sub {
  font: 500 14px/1.25 var(--f-ui);
  margin: 3px 0 0;
  opacity: .9;
}

.gatebox {
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kicker-free {
  font: 600 13px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0;
}

.gate-code {
  font: 700 32px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 4px 0 0;
  color: var(--pink-display);
}

.gatebox .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gate-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px dotted var(--pink);
  text-align: center;
}

.gate-qr svg {
  width: 170px;
  height: 170px;
}

.gate-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  margin-top: 12px;
}

.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(22, 51, 143, .38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  width: min(100%, var(--col));
  max-height: 86dvh;
  overflow: auto;
  background: var(--paper) url("../img/paper.png") 0 0 / 512px;
  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%, #FBE3EE 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;
  }
}

.section-gap-m {
  margin-top: 18px;
}

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

.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;
}

.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;
}

.gdisc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.gdisc .google {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════════════════════════════
   CYBER GLASS DESIGN SYSTEM (UNIFIED FOR ALL PAGES)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #090D16;
  --paper-hi: #121826;
  --desk: #06090F;

  --blue: #38BDF8;
  --blue-deep: #0284C7;
  --blue-soft: #94A3B8;
  --blue-line: rgba(56, 189, 248, 0.2);

  --pink: #818CF8;
  --pink-ink: #A5B4FC;
  --pink-tint: rgba(30, 41, 59, 0.7);
  --pink-tint-2: #1E293B;
  --pink-track: rgba(99, 102, 241, 0.3);
  --pink-display: #C7D2FE;
  --pink-note: #E0E7FF;

  --go: #10B981;
  --go-flash: #34D399;
  --stop: #F43F5E;
  --stop-tint: rgba(244, 63, 94, 0.15);
  --go-ink: #6EE7B7;
  --stop-ink: #FDA4AF;

  --r-row: 16px;
  --r-btn: 14px;
  --r-card: 20px;
  --gutter: clamp(16px, 5vw, 24px);
  --col: 480px;

  --f-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.1), transparent 50%),
              #090D16 !important;
  color: #F8FAFC !important;
  font: 500 16px/1.5 var(--f-ui);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Glass cards, plates, and containers */
.app {
  width: min(100%, var(--col));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--gutter) var(--gutter) 32px;
  position: relative;
  z-index: 1;
}

body.wide .app {
  width: min(100%, 1080px);
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.mast-center {
  justify-content: center;
}

.logo {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.mast-role {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Remove vintage ink texture masks in modern cyber mode */
.ink, .inked {
  -webkit-mask: none !important;
  mask: none !important;
  padding-block: 0 !important;
  margin-block: 0 !important;
}

.scallops {
  display: none !important;
}

/* Posters and Showcase */
.poster {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  padding: 24px;
  color: #fff;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.2) 0%, rgba(9, 13, 22, 0.88) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.poster-title, .poster-club, .poster-when {
  position: relative;
  z-index: 2;
}

.poster-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 6px 0;
}

.poster-club {
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
}

.poster-when {
  display: inline-block;
  margin-top: 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Form controls & inputs */
.input, .field input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: all 0.2s ease;
}

.input:focus, .field input:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.field span {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--r-btn) !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4) !important;
  font-family: var(--f-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s var(--ease-out) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.5) !important;
}

.btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.row {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  border-radius: var(--r-row) !important;
  transition: all 0.2s ease;
}

.row:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.or {
  color: #64748B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0;
}

.or::before, .or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.sub {
  color: #94A3B8 !important;
}

.fine {
  color: #64748B !important;
}

.links a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38BDF8;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.links a:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7DD3FC;
  transform: translateY(-1px);
}

/* ── ATTENDEE TICKET PASS (p/index.html) ────────────────── */
.ticket {
  background: rgba(18, 24, 38, 0.85) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
  color: #F8FAFC !important;
  overflow: hidden;
}

.ticket-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t-name {
  color: #FFFFFF !important;
  font-family: var(--f-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.t-event {
  color: #38BDF8 !important;
  font-family: var(--f-display) !important;
  font-weight: 700 !important;
}

.qr-box {
  background: #ffffff !important;
  padding: 16px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  display: inline-block !important;
}

.tear {
  border-top: 2px dashed rgba(255, 255, 255, 0.18) !important;
}

.tear-stub {
  background: rgba(15, 20, 32, 0.6) !important;
}

/* ── GATE SCANNER (gate/index.html) ─────────────────────── */
.cam-wrap {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15) !important;
  background: #000 !important;
}

.bracket {
  border-color: #38BDF8 !important;
}

.code-input {
  font-family: monospace !important;
  font-size: 24px !important;
  letter-spacing: 0.25em !important;
  text-align: center !important;
}

.chips .chip input:checked + span {
  background: #0284C7 !important;
  color: #fff !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.chips .chip span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  border-radius: 10px;
}

.verdict.go {
  background: linear-gradient(135deg, #065F46 0%, #047857 100%) !important;
  border: 1px solid #34D399 !important;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4) !important;
}

.verdict.dup, .verdict.stop {
  background: linear-gradient(135deg, #881337 0%, #BE123C 100%) !important;
  border: 1px solid #FB7185 !important;
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.4) !important;
}

.card-stat {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
}

.bar {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bar-fill {
  background: linear-gradient(90deg, #38BDF8, #818CF8) !important;
}

.foot {
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
}

.foot a {
  color: #94A3B8;
}

.foot a:hover {
  color: #38BDF8;
}

/* ── MODERN CYBER TICKET SINGLE-PAGE COMPACT DESIGN ── */
body:has(.ticket-wrap) {
  overflow-y: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body:has(.ticket-wrap) .app {
  padding-block: 8px 12px !important;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body:has(.ticket-wrap) .mast {
  margin-bottom: 8px !important;
}

.ticket-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 !important;
}

.ticket {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 30, 49, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  overflow: hidden;
  padding: 0 !important;
}

.ticket .t-shape {
  display: none !important;
}

.ticket .t-art {
  height: 90px !important;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.ticket .t-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 18, 30, 0.9) 100%);
}

.ticket .t-body {
  padding: 8px 16px 4px !important;
  text-align: center;
}

.ticket .t-name {
  font-size: 24px !important;
  line-height: 1.1 !important;
  margin: 0 0 4px !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-weight: 700 !important;
}

.ticket .t-rule {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent) !important;
  margin: 6px auto !important;
  width: 75% !important;
}

.ticket .t-event {
  font-size: 16px !important;
  color: #38BDF8 !important;
  margin: 2px 0 !important;
  font-weight: 600 !important;
}

.ticket .t-when, .ticket .t-where {
  font-size: 12px !important;
  color: #94A3B8 !important;
  margin: 1px 0 !important;
}

/* High Contrast QR Container */
.ticket .t-qr {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px !important;
  margin: 6px auto !important;
}

.ticket .t-qr svg {
  background: #FFFFFF !important;
  padding: 10px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(56, 189, 248, 0.4) !important;
  width: min(44vw, 175px) !important;
  height: auto !important;
}

.ticket .t-tear {
  position: relative;
  border-top: 2px dashed rgba(255, 255, 255, 0.15) !important;
  margin: 4px 12px !important;
  height: 0 !important;
}

.ticket .t-tear::before,
.ticket .t-tear::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--bg, #090D16);
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
.ticket .t-tear::before { left: -20px; }
.ticket .t-tear::after { right: -20px; }

.ticket .t-stub {
  height: 40px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: #38BDF8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
}

.pass-notes {
  margin: 8px auto 4px !important;
  max-width: 360px;
  text-align: center;
}

.pass-notes .fine {
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #64748B !important;
  margin: 0 !important;
}

.pass-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px !important;
}

.pass-actions .btn {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #E2E8F0 !important;
}
