/* ==========================================================================
   TicketForge design system
   --------------------------------------------------------------------------
   One loud idea: every event is a risograph gig poster (category ink +
   overprinted shapes + a huge condensed date). Everything around the posters
   stays quiet: paper white, navy ink, one blue for actions.

   Layers, in order: tokens -> base -> layout -> components -> pages -> utilities.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* paper + ink */
  --paper: #fcfcfa;
  --surface: #ffffff;
  --sunk: #f2f3f6;
  --ink: #15172e;
  --ink-soft: #3a3e5c;
  --muted: #5b5f78;
  --line: #e3e4ea;
  --line-strong: #c9cbd6;

  /* action */
  --blue: #2b4fd8;
  --blue-deep: #1e3bb0;
  --blue-tint: #e8ecfc;

  /* risograph inks (poster colours) */
  --riso-pink: #ff4fa3;
  --riso-blue: #2b4fd8;
  --riso-yellow: #ffd60a;
  --riso-teal: #00a3a3;
  --riso-green: #19a35b;
  --riso-orange: #ff7a1a;

  /* feedback */
  --ok: #0f7a42;
  --ok-tint: #e3f5ea;
  --warn: #8a5a00;
  --warn-tint: #fff4cc;
  --bad: #c02634;
  --bad-tint: #fde7e9;
  --live: #c2186f;
  --live-tint: #ffe6f2;

  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.8125rem; /* 13 */
  --text-s: 0.875rem; /* 14 */
  --text-m: 1rem; /* 16 */
  --text-l: 1.125rem; /* 18 */
  --text-xl: 1.375rem; /* 22 */

  /* space (4px grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* shape */
  --r-sheet: 3px; /* posters are paper: nearly square */
  --r-control: 8px;
  --r-panel: 14px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 64px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* ------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-control);
}

::selection {
  background: var(--riso-yellow);
  color: var(--ink);
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -48px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-control);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-3);
}

/* ----------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 760px;
}

main {
  flex: 1;
  padding-block: var(--s-6) var(--s-9);
}

.stack > * + * {
  margin-top: var(--s-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* ----------------------------------------------------------- demo banner */

/* Printed in poster yellow so nobody mistakes the demo for a real box office.
   Sits above the sticky header and scrolls away with the page; the footer
   repeats the notice. */
.demo-banner {
  background: var(--riso-yellow);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: var(--text-s);
  line-height: 1.4;
}

.demo-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  padding-block: var(--s-2);
}

.demo-banner p {
  margin: 0;
}

.demo-banner strong {
  font-family: var(--font-display);
  font-size: var(--text-m);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.demo-banner a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.demo-banner a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

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

.wordmark img {
  width: 30px;
  height: 30px;
}

.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 var(--s-4) 0 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sunk);
  font-size: var(--text-s);
}

.header-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-control);
  color: var(--ink-soft);
  font-size: var(--text-s);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--sunk);
}

.nav-form {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header .wrap {
    gap: var(--s-3);
  }

  .header-search {
    display: none;
  }

  .nav-link.hide-sm {
    display: none;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-6);
  color: var(--muted);
  font-size: var(--text-s);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-border: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: var(--text-m);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms var(--ease),
    border-color 120ms var(--ease),
    transform 120ms var(--ease);
}

.btn:hover {
  --btn-bg: var(--blue-deep);
  --btn-border: var(--blue-deep);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  --btn-bg: var(--sunk);
  --btn-fg: var(--muted);
  --btn-border: var(--line);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}

.btn-secondary:hover {
  --btn-bg: var(--sunk);
  --btn-border: var(--ink-soft);
  --btn-fg: var(--ink);
}

.btn-danger {
  --btn-bg: var(--surface);
  --btn-fg: var(--bad);
  --btn-border: color-mix(in srgb, var(--bad) 40%, white);
}

.btn-danger:hover {
  --btn-bg: var(--bad-tint);
  --btn-border: var(--bad);
  --btn-fg: var(--bad);
}

.btn-on-dark {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-border: var(--paper);
}

.btn-on-dark:hover {
  --btn-bg: #fff;
  --btn-border: #fff;
  --btn-fg: var(--ink);
}

.btn-ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-border: color-mix(in srgb, var(--paper) 35%, transparent);
}

.btn-ghost-dark:hover {
  --btn-bg: color-mix(in srgb, var(--paper) 12%, transparent);
  --btn-border: var(--paper);
  --btn-fg: var(--paper);
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--s-4);
  font-size: var(--text-s);
}

.btn-lg {
  min-height: 52px;
  padding: 0 var(--s-6);
  font-size: var(--text-l);
}

.btn-block {
  width: 100%;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------------------------------------------------------------- forms */

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: var(--text-s);
  font-weight: 650;
  color: var(--ink);
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.field-error,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-s);
  color: var(--bad);
  font-weight: 550;
}

.input,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  font-size: var(--text-m);
  transition:
    border-color 120ms var(--ease),
    box-shadow 120ms var(--ease);
}

.field select,
select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315172e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.field [aria-invalid="true"],
.field .has-error {
  border-color: var(--bad);
}

/* --------------------------------------------------------------- notices */

.notice {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control);
  background: var(--blue-tint);
  color: var(--ink);
  font-size: var(--text-s);
}

.notice svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.notice-success {
  background: var(--ok-tint);
}

.notice-success svg {
  color: var(--ok);
}

.notice-warning {
  background: var(--warn-tint);
}

.notice-warning svg {
  color: var(--warn);
}

.notice-error {
  background: var(--bad-tint);
}

.notice-error svg {
  color: var(--bad);
}

.notice-info svg {
  color: var(--blue);
}

.flash-region {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

/* ------------------------------------------------------------------ tags */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 650;
  white-space: nowrap;
}

.tag-ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.tag-warn {
  background: var(--warn-tint);
  color: var(--warn);
}

.tag-bad {
  background: var(--bad-tint);
  color: var(--bad);
}

.tag-live {
  background: var(--live-tint);
  color: var(--live);
}

.tag-solid {
  background: var(--ink);
  color: var(--paper);
}

.tag-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ------------------------------------------------------------------ panel */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--s-5);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-4);
}

.panel-title {
  font-size: var(--text-l);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--text-s);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- display type */

.display {
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.page-title + p,
.auth-form h1 + p {
  margin-top: var(--s-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

/* =================================================================== poster
   A poster is a sheet of riso paper: one ink as the field, a second ink
   overprinted (multiply) as shapes, grain on top, navy or paper type.
   ========================================================================== */

.poster {
  --ink-1: var(--riso-orange);
  --ink-2: var(--riso-blue);
  --fg: var(--ink);
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sheet);
  background: var(--ink-1);
  color: var(--fg);
  isolation: isolate;
}

.poster--music {
  --ink-1: var(--riso-pink);
  --ink-2: var(--riso-blue);
}

.poster--tech {
  --ink-1: var(--riso-blue);
  --ink-2: var(--riso-teal);
  --fg: var(--paper);
}

.poster--comedy {
  --ink-1: var(--riso-yellow);
  --ink-2: var(--riso-pink);
}

.poster--arts {
  --ink-1: var(--riso-teal);
  --ink-2: var(--riso-orange);
}

.poster--sports {
  --ink-1: var(--riso-green);
  --ink-2: var(--riso-yellow);
}

.poster--other {
  --ink-1: var(--riso-orange);
  --ink-2: var(--riso-blue);
}

.poster-art,
.poster-art::before,
.poster-art::after {
  position: absolute;
  pointer-events: none;
}

.poster-art {
  inset: 0;
  z-index: -1;
}

.poster-art::before,
.poster-art::after {
  content: "";
  background: var(--ink-2);
  mix-blend-mode: multiply;
}

/* grain: a tiny turbulence tile, multiplied, reads as riso paper texture */
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* variant 0: a sun setting behind the date */
.poster--v0 .poster-art::before {
  width: 78cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  right: -22cqi;
  top: 10cqi;
}

.poster--v0 .poster-art::after {
  left: 0;
  right: 0;
  height: 9cqi;
  bottom: 34cqi;
}

/* variant 1: three offset bars, like a stacked bill (kept clear of the date) */
.poster--v1 .poster-art::before {
  left: 30cqi;
  right: -6cqi;
  top: 42cqi;
  height: 30cqi;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink-2) 0 7cqi,
    transparent 7cqi 11.5cqi
  );
}

.poster--v1 .poster-art::after {
  width: 26cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  right: 8cqi;
  top: 8cqi;
}

/* variant 2: half disc rising from the foot of the sheet */
.poster--v2 .poster-art::before {
  width: 120cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  left: -10cqi;
  bottom: -82cqi;
}

.poster--v2 .poster-art::after {
  width: 22cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  right: 10cqi;
  top: 14cqi;
}

/* variant 3: concentric rings */
.poster--v3 .poster-art::before {
  width: 96cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  right: -38cqi;
  top: -18cqi;
  background: repeating-radial-gradient(
    circle,
    var(--ink-2) 0 6cqi,
    transparent 6cqi 11cqi
  );
}

.poster--v3 .poster-art::after {
  left: 0;
  width: 14cqi;
  top: 0;
  bottom: 0;
}

.poster-date {
  position: absolute;
  left: 7cqi;
  top: 6cqi;
  display: grid;
  line-height: 0.82;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.poster-day {
  font-size: 40cqi;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.poster-month {
  margin-top: 1.5cqi;
  font-size: 8.5cqi;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.poster-foot {
  position: absolute;
  left: 7cqi;
  right: 7cqi;
  bottom: 6cqi;
  display: grid;
  gap: 2cqi;
}

.poster-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13cqi;
  line-height: 0.88;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-venue {
  font-size: max(11px, 4.4cqi);
  font-weight: 650;
  line-height: 1.2;
}

.poster-flag {
  position: absolute;
  right: 5cqi;
  top: 5cqi;
  z-index: 3;
  padding: 1.5cqi 3cqi;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: max(12px, 5cqi);
  text-transform: uppercase;
  line-height: 1;
  rotate: 4deg;
}

.poster.is-quiet {
  filter: grayscale(0.85) contrast(0.9);
}

/* small thumbnail (account, dashboard): only the date survives */
.poster-thumb {
  width: 64px;
  flex: none;
}

.poster-thumb .poster-foot,
.poster-thumb .poster-month {
  display: none;
}

.poster-thumb .poster-day {
  font-size: 46cqi;
}

/* ================================================================ home page */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: var(--s-5) var(--s-8);
}

.home-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.home-hero .lede {
  margin-top: var(--s-5);
  max-width: 34ch;
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--ink-soft);
}

.search-bar {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--r-control) + 6px);
  max-width: 640px;
}

.search-bar .input {
  border-color: transparent;
  background-color: var(--sunk);
}

.search-bar .input:focus {
  background-color: var(--surface);
}

.featured {
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
}

.featured a {
  color: inherit;
  text-decoration: none;
}

.featured-caption {
  margin-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--text-s);
}

.featured-caption strong {
  font-size: var(--text-m);
}

.featured .poster {
  rotate: 1.2deg;
  box-shadow:
    0 1px 0 rgb(21 23 46 / 0.06),
    0 24px 48px -24px rgb(21 23 46 / 0.35);
  transition: rotate 300ms var(--ease);
}

.featured a:hover .poster,
.featured a:focus-visible .poster {
  rotate: 0deg;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured {
    justify-self: start;
    width: min(100%, 360px);
  }
}

@media (max-width: 560px) {
  .search-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: var(--s-3);
  margin-bottom: var(--s-5);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 36px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--text-s);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.chip[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--swatch, var(--line-strong));
}

/* One class per category: inline style attributes would need a weaker CSP. */
.chip-swatch-music { --swatch: var(--riso-pink); }
.chip-swatch-tech { --swatch: var(--riso-blue); }
.chip-swatch-comedy { --swatch: var(--riso-yellow); }
.chip-swatch-arts { --swatch: var(--riso-teal); }
.chip-swatch-sports { --swatch: var(--riso-green); }
.chip-swatch-other { --swatch: var(--riso-orange); }

.month-group + .month-group {
  margin-top: var(--s-8);
}

.month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: var(--s-7) var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-card {
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.event-card-link {
  color: var(--ink);
  text-decoration: none;
}

/* the whole card is clickable via the title link's pseudo element */
.event-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.event-card:hover .event-card-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.event-card:focus-within {
  outline: none;
}

.event-card:has(.event-card-link:focus-visible) .poster {
  box-shadow: var(--focus);
}

.event-card-link:focus-visible {
  box-shadow: none;
}

.event-card h3 {
  font-size: var(--text-l);
  font-weight: 700;
  line-height: 1.25;
}

.event-meta {
  display: grid;
  gap: 2px;
  font-size: var(--text-s);
  color: var(--muted);
}

.event-price {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-s);
  font-weight: 650;
  color: var(--ink);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  max-width: 520px;
  padding: var(--s-7) 0;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 2.25rem;
  text-transform: uppercase;
  line-height: 1;
}

/* ============================================================== event page */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s-5);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.event-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  display: grid;
  gap: var(--s-5);
}

.event-facts {
  display: grid;
  gap: var(--s-4);
  font-size: var(--text-s);
}

.event-facts div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  align-items: start;
}

.event-facts svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  margin-top: 1px;
}

.event-facts strong {
  display: block;
  font-size: var(--text-m);
}

.event-head h1 {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.event-when {
  margin-top: var(--s-4);
  font-size: var(--text-xl);
  font-weight: 650;
}

.event-where {
  color: var(--ink-soft);
  font-size: var(--text-l);
}

.event-description {
  margin-top: var(--s-5);
  max-width: 62ch;
  color: var(--ink-soft);
}

.tickets {
  margin-top: var(--s-7);
}

.tickets > .section-title {
  margin-bottom: var(--s-4);
}

@media (max-width: 860px) {
  .event-layout {
    /* minmax(0, ...) so a wide seat map scrolls inside its panel instead of
       stretching the page past the screen edge. */
    grid-template-columns: minmax(0, 1fr);
  }

  .event-aside {
    position: static;
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .event-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-aside .poster {
    max-width: 240px;
  }
}

/* GA ticket rows */

.ticket-options {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.ticket-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
}

.ticket-option.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.ticket-option.is-unavailable {
  background: var(--sunk);
  color: var(--muted);
}

.ticket-name {
  font-weight: 700;
}

.ticket-sub {
  font-size: var(--text-s);
  color: var(--muted);
}

.ticket-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface);
}

.stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-control);
}

.stepper button:hover:not(:disabled) {
  background: var(--sunk);
}

.stepper button:disabled {
  color: var(--line-strong);
  cursor: not-allowed;
}

.stepper output {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* seat map */

.seatmap {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.seatmap-scroll {
  overflow-x: auto;
  padding-bottom: var(--s-2);
}

.seatmap-hint {
  display: none;
  text-align: center;
}

@media (max-width: 560px) {
  .seatmap {
    padding: var(--s-4) var(--s-3);
  }

  .seatmap-hint {
    display: block;
  }
}

.stage {
  width: min(70%, 520px);
  margin: 0 auto var(--s-6);
  padding: var(--s-2) 0 var(--s-3);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-l);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seat-section + .seat-section {
  margin-top: var(--s-6);
}

.seat-section-head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: var(--text-s);
}

.seat-section-head h3 {
  font-size: var(--text-m);
}

.seat-rows {
  display: grid;
  gap: 6px;
  justify-content: center;
  min-width: max-content;
  margin-inline: auto;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-label {
  width: 22px;
  flex: none;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
}

.seat {
  --seat: var(--blue);
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--seat);
  border-radius: 9px 9px 6px 6px;
  background: var(--surface);
  color: var(--seat);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 120ms var(--ease),
    transform 120ms var(--ease);
}

.seat:hover:not(:disabled) {
  background: var(--blue-tint);
  transform: translateY(-1px);
}

.seat[aria-pressed="true"] {
  background: var(--seat);
  color: #fff;
}

.seat.is-held {
  --seat: var(--line-strong);
  background: repeating-linear-gradient(
    135deg,
    var(--sunk) 0 4px,
    var(--surface) 4px 8px
  );
  color: var(--muted);
  cursor: not-allowed;
}

.seat.is-sold,
.seat.is-blocked {
  --seat: var(--line);
  background: var(--line);
  color: transparent;
  cursor: not-allowed;
}

.seat.is-mine {
  --seat: var(--ok);
  background: var(--ok);
  color: #fff;
  cursor: default;
}

.seat:disabled:not(.is-held):not(.is-sold):not(.is-mine):not(.is-blocked) {
  cursor: not-allowed;
  opacity: 0.55;
}

.seat.just-taken {
  animation: seat-taken 1.2s var(--ease);
}

@keyframes seat-taken {
  0% {
    box-shadow: 0 0 0 0 var(--riso-pink);
    transform: scale(1.2);
  }

  100% {
    box-shadow: 0 0 0 10px transparent;
    transform: scale(1);
  }
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-s);
  color: var(--ink-soft);
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.seat-legend .seat {
  width: 18px;
  height: 18px;
  border-radius: 6px 6px 4px 4px;
  pointer-events: none;
}

.seat-legend .seat.is-selected {
  background: var(--blue);
}

.seat-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  font-size: var(--text-s);
}

.seat-skeleton {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.seat-skeleton span {
  width: min(100%, 520px);
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sunk), var(--line), var(--sunk));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* checkout bar: the one dark surface, fixed to the viewport while you buy */

.checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 -12px 32px -16px rgb(21 23 46 / 0.5);
  translate: 0 110%;
  transition: translate 280ms var(--ease);
}

.checkout-bar.is-open {
  translate: 0 0;
}

.checkout-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  min-height: 84px;
  padding-block: var(--s-3);
}

.checkout-summary {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 2px;
}

.checkout-summary strong {
  font-size: var(--text-l);
}

.checkout-summary span {
  font-size: var(--text-s);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.checkout-timer {
  display: grid;
  justify-items: end;
  line-height: 1;
}

.checkout-timer .clock {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.checkout-timer small {
  margin-top: 4px;
  font-size: var(--text-xs);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.checkout-timer.is-urgent .clock {
  color: var(--riso-pink);
}

.checkout-actions {
  display: flex;
  gap: var(--s-2);
}

body.has-checkout-bar main {
  padding-bottom: 160px;
}

@media (max-width: 560px) {
  .checkout-actions {
    width: 100%;
  }

  .checkout-actions .btn {
    flex: 1;
  }
}

/* ============================================================ account page */

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.account-sections {
  display: grid;
  gap: var(--s-8);
}

.order-list {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}

.order-card h3 {
  font-size: var(--text-l);
}

.order-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.order-card h3 a:hover {
  text-decoration: underline;
}

.ticket-lines {
  grid-column: 2;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ticket-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.ticket-line-name {
  display: grid;
  font-size: var(--text-s);
}

.ticket-line-name strong {
  font-size: var(--text-m);
}

.order-card-foot {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--text-s);
}

.refund-form {
  grid-column: 2;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-control);
  background: var(--sunk);
}

@media (max-width: 560px) {
  .order-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-lines,
  .order-card-foot,
  .refund-form {
    grid-column: 1;
  }

  .order-card .poster-thumb {
    display: none;
  }
}

/* ================================================================ data table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.table th,
.table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table th {
  font-size: var(--text-xs);
  font-weight: 650;
  color: var(--muted);
  background: var(--sunk);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table a {
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.table-event {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.table-event .poster-thumb {
  width: 40px;
}

/* ================================================================ auth pages */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: center;
  padding-top: var(--s-5);
}

.auth-form {
  display: grid;
  gap: var(--s-5);
}

.auth-form h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.auth-form form {
  display: grid;
  gap: var(--s-4);
}

.auth-alt {
  font-size: var(--text-s);
  color: var(--muted);
}

.auth-art {
  position: relative;
  height: 520px;
}

.auth-art .poster {
  position: absolute;
  width: 260px;
}

.auth-art .poster:nth-child(1) {
  left: 4%;
  top: 6%;
  rotate: -5deg;
}

.auth-art .poster:nth-child(2) {
  left: 34%;
  top: 0;
  rotate: 3deg;
  z-index: 1;
}

.auth-art .poster:nth-child(3) {
  left: 18%;
  top: 34%;
  rotate: -1.5deg;
  z-index: 2;
}

@media (max-width: 860px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-art {
    display: none;
  }
}

/* =============================================================== dashboard */

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

@media (max-width: 560px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-value {
    font-size: 2rem;
  }
}

.kpi {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.kpi-label {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 2.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: var(--text-xs);
  color: var(--muted);
}

.kpi.is-bumped .kpi-value {
  animation: bump 900ms var(--ease);
}

@keyframes bump {
  0% {
    color: var(--live);
    transform: translateY(-3px);
  }

  100% {
    color: inherit;
    transform: none;
  }
}

.dash-identity {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.dash-identity .page-title {
  margin-top: var(--s-2);
}

.chart-table {
  margin-top: var(--s-3);
}

.chart-table .table-wrap {
  margin-top: var(--s-3);
}

.chart-tip {
  position: absolute;
  z-index: 5;
  padding: 6px 10px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  translate: -50% calc(-100% - 8px);
}

.chart-hit {
  cursor: default;
}

.meter-cell {
  width: 40%;
  min-width: 112px;
}

.meter-figure {
  display: block;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.panel .inline-form {
  margin-top: var(--s-4);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}

.dash-grid > * {
  min-width: 0;
}

.dash-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}

@media (max-width: 960px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chart-wrap {
  position: relative;
}

.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart .bar {
  fill: var(--blue);
}

.chart .bar:hover {
  fill: var(--blue-deep);
}

.chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart .axis-label {
  font-size: 11px;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The SVG scales down with its panel; keep axis text readable on phones
   (the 640-unit viewBox renders at roughly half size there). */
@media (max-width: 560px) {
  .chart .axis-label {
    font-size: 19px;
  }
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-control);
  color: var(--muted);
  font-size: var(--text-s);
  text-align: center;
  padding: var(--s-5);
}

/* An SVG bar, so the fill width is an attribute rather than an inline style. */
.meter {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  overflow: hidden;
}

.meter rect {
  fill: var(--blue);
}

.activity {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.activity li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-s);
}

.activity li:last-child {
  border-bottom: 0;
}

.activity .is-new {
  animation: slide-in 400ms var(--ease);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 650;
  color: var(--muted);
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.live-dot.is-live {
  color: var(--live);
}

.live-dot.is-live::before {
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.row-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-s);
}

.row-list > li:last-child {
  border-bottom: 0;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: end;
}

.inline-form .field {
  flex: 1;
  min-width: 180px;
}

.danger-zone summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--bad);
  list-style: none;
}

.danger-zone summary::-webkit-details-marker {
  display: none;
}

.danger-zone[open] summary {
  margin-bottom: var(--s-3);
}

/* =================================================================== scan */

.scan {
  display: grid;
  gap: var(--s-5);
  max-width: 640px;
}

.scan-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-panel);
  background: var(--ink);
}

.scan-result {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-panel);
  background: var(--sunk);
  text-align: center;
}

.scan-result .verdict {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.scan-result.is-valid {
  background: var(--riso-green);
  color: #fff;
}

.scan-result.is-used {
  background: var(--riso-yellow);
  color: var(--ink);
}

.scan-result.is-invalid {
  background: var(--bad);
  color: #fff;
}

.scan-result.flash {
  animation: scan-flash 500ms var(--ease);
}

@keyframes scan-flash {
  from {
    transform: scale(0.97);
  }
}

/* ================================================================ errors */

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s-7);
  align-items: center;
  padding-top: var(--s-7);
}

.error-page h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .error-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-page .poster {
    display: none;
  }
}

/* ================================================================== toast */

.toast-region {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 12px);
  z-index: 60;
  display: grid;
  gap: var(--s-2);
  width: min(calc(100% - 32px), 440px);
  translate: -50% 0;
  pointer-events: none;
}

.toast {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-s);
  font-weight: 550;
  box-shadow: 0 12px 32px -12px rgb(21 23 46 / 0.45);
  pointer-events: auto;
  animation: toast-in 220ms var(--ease);
}

.toast.is-error {
  background: var(--bad);
}

.toast.is-live {
  background: var(--live);
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}

/* ======================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .featured .poster {
    rotate: 0deg;
  }
}

/* ============================================================== utilities */

.space-before {
  margin-top: var(--s-8);
}

.space-after {
  margin-bottom: var(--s-6);
}
