:root {
  --ink: #131915;
  --ink-soft: #28302b;
  --paper: #f4f6ef;
  --paper-bright: #fbfcf8;
  --line: #d8ded3;
  --muted: #68736b;
  --acid: #c9ff36;
  --acid-strong: #b2f000;
  --violet: #7457ff;
  --orange: #ff7043;
  --red: #da3b38;
  --blue: #2d78ff;
  --white: #fff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(19, 25, 21, 0.1);
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Arial Black", Inter, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-scroll-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img {
  flex: 0 0 auto;
}

.brand-word {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-lockup--small {
  gap: 8px;
}

.brand-lockup--small .brand-word {
  font-size: 1.08rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--disabled {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.button--disabled:hover {
  transform: none;
}

.button--primary {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 9px 0 rgba(17, 25, 21, 0.16);
}

.button--primary:hover {
  background: #d7ff68;
  box-shadow: 0 6px 0 rgba(17, 25, 21, 0.16);
}

.button--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button--dark:hover {
  background: #29332d;
}

.button--soft {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button--small {
  min-height: 36px;
  padding: 9px 14px;
  font-size: 0.78rem;
}

.button--wide {
  width: 100%;
}

.text-button {
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.text-button--danger {
  color: var(--red);
}

.text-link {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}

.kicker,
.page-eyebrow,
.panel-kicker {
  margin-bottom: 12px;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Public experience */

.public-body {
  background:
    linear-gradient(rgba(19, 25, 21, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 25, 21, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.public-wrap {
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto;
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.public-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--paper-bright);
  border-bottom: 1px solid var(--ink);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.nav-toggle span:not(.sr-only) {
  width: 17px;
  height: 2px;
  background: currentColor;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(540px, 1.15fr);
  color: var(--white);
  background:
    radial-gradient(circle at 26% 20%, rgba(116, 87, 255, 0.22), transparent 28%),
    var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(48px, 7vw, 106px);
  padding-right: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  padding: 8px 12px;
  color: var(--acid);
  border: 1px solid rgba(201, 255, 54, 0.45);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 255, 54, 0.13);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 7.4rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.83;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--acid);
}

.hero__lead {
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.27rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__dates {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.77rem;
}

.hero__dates span {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 4px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__dates strong {
  color: var(--white);
}

.hero__machine {
  position: relative;
  min-height: 720px;
  display: grid;
  align-content: center;
  padding: clamp(32px, 5vw, 78px);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(132deg, transparent 0 72%, rgba(19, 25, 21, 0.1) 72% 73%, transparent 73%),
    repeating-linear-gradient(90deg, rgba(19, 25, 21, 0.045) 0 1px, transparent 1px 34px),
    var(--acid);
  border-left: 1px solid var(--ink);
}

.hero__machine::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -80px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px var(--acid),
    0 0 0 35px var(--ink),
    0 0 0 69px var(--acid),
    0 0 0 70px var(--ink);
  opacity: 0.38;
}

.machine-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.machine-led {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.25);
}

.slot-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.3vw, 18px);
  padding: clamp(12px, 1.8vw, 24px);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 14px 16px 0 rgba(19, 25, 21, 0.2);
  transform: rotate(-1.8deg);
}

.slot-reel {
  aspect-ratio: 0.86;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(transparent 48%, rgba(19, 25, 21, 0.08) 49% 51%, transparent 52%),
    var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 18px;
}

.slot-reel img {
  width: 72%;
  filter: drop-shadow(0 12px 16px rgba(19, 25, 21, 0.15));
}

.slot-reel--lifted img {
  transform: rotate(8deg) scale(1.08);
}

.machine-word {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.82;
  text-align: center;
}

.machine-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.machine-meta span {
  display: flex;
  flex-direction: column;
  padding: 11px 7px;
  font-size: 0.67rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.machine-meta span + span {
  border-left: 1px solid var(--ink);
}

.machine-meta strong {
  font-size: 1.2rem;
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 4%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--violet);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 6px 7px 0 var(--ink);
}

.ticker {
  overflow: hidden;
  color: var(--ink);
  background: var(--violet);
  border-bottom: 1px solid var(--ink);
}

.ticker > div {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 13px 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  animation: ticker 24s linear infinite;
}

.ticker b {
  color: var(--acid);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.live-stats {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 2.35fr);
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.live-stats__intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.live-stats__intro .kicker {
  margin-bottom: 8px;
  color: var(--acid);
}

.live-stats__intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.live-stats__intro small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.live-stats__pulse {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(201, 255, 54, 0.12),
    0 0 24px rgba(201, 255, 54, 0.5);
}

.live-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.live-stat {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 52px);
}

.live-stat + .live-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.live-stat dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-stat dd {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.live-stat--accent {
  color: var(--ink);
  background: var(--acid);
}

.live-stat--accent dt {
  color: rgba(19, 25, 21, 0.65);
}

.section-block {
  padding: clamp(68px, 9vw, 130px) clamp(28px, 7vw, 110px);
  border-bottom: 1px solid var(--ink);
}

.section-heading h2,
.attempts h2,
.cta-panel h2,
.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading--row > p {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading--row > p strong {
  color: var(--ink);
  font-size: 1.5rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 72px 0 0;
  list-style: none;
  border: 1px solid var(--ink);
  border-radius: 22px;
}

.step-grid li {
  min-height: 295px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 42px);
}

.step-grid li + li {
  border-left: 1px solid var(--ink);
}

.step-grid li:nth-child(2) {
  color: var(--white);
  background: var(--violet);
}

.step-no {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.step-grid h3 {
  margin: auto 0 14px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.step-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-grid li:nth-child(2) p {
  color: rgba(255, 255, 255, 0.74);
}

.attempts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--acid);
}

.attempts__visual {
  min-height: 590px;
  position: relative;
  display: grid;
  place-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle, transparent 27%, rgba(19, 25, 21, 0.08) 28% 29%, transparent 30% 42%, rgba(19, 25, 21, 0.08) 43% 44%, transparent 45%);
  border-right: 1px solid var(--ink);
}

.attempts__number {
  font-family: var(--display);
  font-size: clamp(10rem, 23vw, 21rem);
  font-weight: 900;
  letter-spacing: -0.14em;
  line-height: 0.7;
  transform: translateX(-0.08em);
}

.attempts__caption {
  position: absolute;
  left: 10%;
  bottom: 10%;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.attempts__visual img {
  position: absolute;
  top: 8%;
  right: 7%;
  transform: rotate(14deg);
  filter: drop-shadow(7px 9px 0 rgba(19, 25, 21, 0.18));
}

.attempts__content {
  align-self: center;
  padding: clamp(48px, 7vw, 100px);
}

.attempts__content h2 {
  max-width: 620px;
  font-size: clamp(3.2rem, 5.8vw, 6rem);
}

.bonus-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 50px 0 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.bonus-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
}

.bonus-list > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--ink);
}

.bonus-list span {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 900;
}

.bonus-list p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.fine-print {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.prizes {
  background: var(--paper-bright);
}

.prize-marquee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 68px;
}

.prize-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
}

.prize-card:nth-child(4n + 2) {
  background: #e2ddff;
}

.prize-card:nth-child(4n + 3) {
  background: var(--acid);
}

.prize-card__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.prize-card img {
  align-self: center;
  margin: 28px auto;
  transition: transform 0.25s ease;
}

.prize-card:hover img {
  transform: rotate(6deg) scale(1.08);
}

.prize-card h3 {
  margin: auto 0 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.prize-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.cta-panel {
  position: relative;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
  color: var(--white);
  background: var(--violet);
  text-align: center;
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  opacity: 0.35;
}

.cta-panel::before {
  top: -190px;
  left: -90px;
  box-shadow: 0 0 0 45px var(--violet), 0 0 0 46px var(--acid);
}

.cta-panel::after {
  right: -130px;
  bottom: -210px;
}

.cta-panel > *:not(.cta-panel__noise) {
  position: relative;
  z-index: 2;
}

.cta-panel h2 {
  font-size: clamp(4rem, 10vw, 9rem);
}

.cta-panel > p:not(.kicker) {
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-panel__noise {
  position: absolute;
  color: transparent;
  font-family: var(--display);
  font-size: 14vw;
  font-weight: 900;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg);
  white-space: nowrap;
}

.public-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 48px clamp(24px, 6vw, 86px);
  color: var(--white);
  background: var(--ink);
}

.public-footer > div p,
.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
}

.public-footer .brand-lockup {
  color: var(--white);
}

.public-footer nav {
  display: flex;
  gap: 24px;
  font-size: 0.78rem;
  font-weight: 750;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Legal pages */

.legal-page {
  min-height: 70vh;
}

.legal-hero {
  padding: clamp(60px, 9vw, 130px) clamp(28px, 8vw, 120px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 255, 54, 0.15), transparent 25%),
    var(--ink);
  border-bottom: 1px solid var(--ink);
}

.legal-hero--privacy {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(116, 87, 255, 0.24), transparent 30%),
    var(--acid);
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(3.7rem, 8.5vw, 8.5rem);
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-size: 0.78rem;
}

.legal-warning {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px clamp(28px, 8vw, 120px);
  color: var(--ink);
  background: #ffd7cb;
  border-bottom: 1px solid var(--ink);
}

.legal-warning strong {
  text-transform: uppercase;
}

.legal-warning p {
  max-width: 880px;
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  gap: clamp(40px, 8vw, 120px);
  justify-content: center;
  padding: clamp(50px, 8vw, 110px) clamp(28px, 8vw, 120px);
}

.legal-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.78rem;
}

.legal-toc strong {
  margin-bottom: 8px;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-copy > section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 0 0 54px;
  scroll-margin-top: 25px;
}

.legal-copy > section + section {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.legal-copy > section > span {
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.legal-copy h2 {
  margin-bottom: 23px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-copy p,
.legal-copy li {
  color: #3c4740;
  line-height: 1.75;
}

.legal-copy li + li {
  margin-top: 9px;
}

/* Login */

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(rgba(201, 255, 54, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 255, 54, 0.06) 1px, transparent 1px),
    var(--ink);
  background-size: 36px 36px;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 68px);
  overflow: hidden;
  background: var(--acid);
  border-right: 1px solid var(--ink);
}

.brand-lockup--login > span,
.brand-lockup--admin > span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-lockup--login small,
.brand-lockup--admin small {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-brand__message {
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.login-brand__message h1 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(3rem, 5.4vw, 5.3rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.86;
  text-transform: uppercase;
}

.login-brand__message > p:last-child {
  max-width: 420px;
  margin-bottom: 0;
}

.login-brand__art {
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 235px;
  height: 235px;
  display: grid;
  place-items: center;
  background: var(--violet);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.login-brand__art img {
  width: 58%;
}

.login-brand__art span {
  position: absolute;
  top: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 800;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 74px);
}

.login-form {
  width: min(390px, 100%);
}

.login-form__heading {
  margin-bottom: 34px;
}

.login-form__heading h2 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
  text-transform: uppercase;
}

.login-form__heading > p:last-child,
.login-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.login-help {
  margin: 20px 0 0;
  text-align: center;
}

.form-error {
  margin-bottom: 20px;
  padding: 12px 14px;
  color: #8d2624;
  background: #ffe5e1;
  border: 1px solid #f2aaa1;
  border-radius: 10px;
  font-size: 0.82rem;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 90px;
}

.password-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  padding: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateY(-50%);
}

/* Admin shell */

.admin-body {
  min-height: 100vh;
  background: #edf0e9;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 17px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0, rgba(201, 255, 54, 0.09), transparent 25%),
    var(--ink);
}

.admin-sidebar .brand-lockup {
  color: var(--white);
}

.admin-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar__close {
  display: none;
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.admin-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--acid);
}

.nav-glyph {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.75rem;
}

.admin-sidebar__bottom {
  margin-top: auto;
  padding: 18px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar__bottom .text-button {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user__avatar,
.activity-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-user > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-user strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.66rem;
}

.admin-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 55px);
}

.admin-mobilebar {
  display: none;
}

.sidebar-scrim {
  display: none;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.page-header h1 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-transform: uppercase;
}

.page-eyebrow {
  margin-bottom: 10px;
  color: var(--violet);
}

.page-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.page-description {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.page-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: #e2e6df;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #768078;
  border-radius: 50%;
}

.status-pill--active,
.status-pill--confirmed,
.status-pill--shipped,
.status-pill--resolved {
  color: #20490e;
  background: #dff7ce;
}

.status-pill--active::before,
.status-pill--confirmed::before,
.status-pill--shipped::before,
.status-pill--resolved::before {
  background: #4f9c25;
}

.status-pill--paused,
.status-pill--contacted,
.status-pill--pending {
  color: #654a07;
  background: #fff0bd;
}

.status-pill--paused::before,
.status-pill--contacted::before,
.status-pill--pending::before {
  background: #c89512;
}

.status-pill--new {
  color: #332692;
  background: #e4e0ff;
}

.status-pill--new::before {
  background: var(--violet);
}

.status-pill--rejected,
.status-pill--failed {
  color: #8e2724;
  background: #ffe2de;
}

.status-pill--rejected::before,
.status-pill--failed::before {
  background: var(--red);
}

.panel {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(19, 25, 21, 0.035);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.form-section__heading h2,
.prize-admin-card h2,
.error-card h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.panel-kicker {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.61rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-card > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.metric-card > strong {
  margin: auto 0 8px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-card--accent {
  background: var(--acid);
  border-color: var(--ink);
}

.metric-card--warning {
  background: #ffe0d5;
  border-color: #ef9c82;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
}

.inventory-panel,
.activity-panel {
  padding: clamp(20px, 3vw, 32px);
}

.inventory-hero {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 44px 0 16px;
}

.inventory-hero strong {
  font-family: var(--display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
}

.inventory-hero span {
  color: var(--muted);
  font-size: 0.76rem;
}

.progress-track {
  width: 100%;
  height: 13px;
  display: block;
  overflow: hidden;
  appearance: none;
  background: #e5e9e1;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.progress-track::-webkit-progress-bar {
  background: #e5e9e1;
  border-radius: 99px;
}

.progress-track::-webkit-progress-value {
  background: var(--violet);
  border-radius: 99px;
}

.progress-track::-moz-progress-bar {
  background: var(--violet);
  border-radius: 99px;
}

.progress-track--slim {
  height: 7px;
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inventory-stats > div {
  padding: 16px 12px 16px 0;
}

.inventory-stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.inventory-stats dt {
  color: var(--muted);
  font-size: 0.65rem;
}

.inventory-stats dd {
  margin: 5px 0 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.prize-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prize-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.activity-list {
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list li > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.activity-list a {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-alert {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 13px;
  background: #ffe1d7;
  border: 1px solid #f2ad97;
  border-radius: 10px;
}

.inline-alert > span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  font-weight: 900;
}

.inline-alert > div {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
}

.empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.5rem;
}

.empty-state h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 390px;
  margin-bottom: 0;
  font-size: 0.79rem;
}

.empty-state--compact {
  min-height: 235px;
  padding-inline: 0;
}

/* Forms */

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section {
  padding: clamp(22px, 3vw, 36px);
}

.form-section__heading {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.form-section__heading > span {
  width: 34px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
}

.form-section__heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field > span:first-child,
.action-menu label > span,
.cancel-form label > span {
  font-size: 0.72rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.action-menu select,
.action-menu textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid #c8cec5;
  border-radius: 9px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea,
.action-menu textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.action-menu select:focus,
.action-menu textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(116, 87, 255, 0.13);
}

.field small {
  color: var(--muted);
  font-size: 0.64rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field--readonly strong {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  background: #ecefe9;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.83rem;
}

.uppercase-input {
  font-weight: 850;
  text-transform: uppercase;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  width: 45px;
  height: 25px;
  flex: 0 0 auto;
  position: relative;
  background: #bac1b8;
  border-radius: 99px;
  transition: background-color 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(19, 25, 21, 0.25);
  transition: transform 0.18s ease;
}

.switch-field input:checked + .switch {
  background: var(--violet);
}

.switch-field input:checked + .switch::after {
  transform: translateX(20px);
}

.switch-field input:focus-visible + .switch {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.switch-field > span:last-child {
  display: flex;
  flex-direction: column;
}

.switch-field strong {
  font-size: 0.78rem;
}

.switch-field small {
  color: var(--muted);
  font-size: 0.66rem;
}

.switch-field--compact {
  margin: 4px 0 20px;
  padding-top: 0;
  border-top: 0;
}

.sticky-actions {
  position: sticky;
  z-index: 10;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px 13px 20px;
  background: rgba(19, 25, 21, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(19, 25, 21, 0.25);
  backdrop-filter: blur(15px);
}

.sticky-actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
}

.compact-form .field {
  margin-bottom: 15px;
}

.form-callout {
  margin-bottom: 18px;
  padding: 11px 13px;
  color: #58440a;
  background: #fff1c6;
  border: 1px solid #ecd47f;
  border-radius: 9px;
  font-size: 0.68rem;
}

/* Prize management */

.prizes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.prize-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prize-admin-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  padding: 20px;
}

.prize-admin-card__symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 16px;
}

.prize-admin-card__symbol img {
  width: 68px;
}

.prize-admin-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.prize-admin-card__heading h2 {
  margin: 9px 0 5px;
}

.prize-admin-card__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.prize-quantity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 12px;
}

.prize-quantity > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.prize-quantity > div strong {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.prize-quantity > div span {
  color: var(--muted);
  font-size: 0.68rem;
}

.prize-quantity dl {
  display: flex;
  gap: 20px;
  margin: 0;
}

.prize-quantity dl div {
  display: flex;
  flex-direction: column;
}

.prize-quantity dt {
  color: var(--muted);
  font-size: 0.58rem;
}

.prize-quantity dd {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
}

.prize-admin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.63rem;
}

.prize-form-card {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.prize-form-card .panel-heading {
  margin-bottom: 24px;
}

/* Tables and filters */

.filterbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.search-field {
  min-width: 240px;
  flex: 1;
  position: relative;
}

.search-field > span[aria-hidden] {
  position: absolute;
  left: 13px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.search-field input {
  padding-left: 36px;
}

.select-field {
  min-width: 180px;
}

.table-panel {
  overflow: visible;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 13px 18px;
  color: var(--muted);
  background: #f0f2ed;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  vertical-align: middle;
}

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

tbody tr:hover {
  background: rgba(201, 255, 54, 0.08);
}

.person-cell {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-cell > div {
  display: flex;
  flex-direction: column;
}

.person-cell a {
  font-weight: 800;
}

.person-cell small {
  color: var(--muted);
  font-size: 0.62rem;
}

.table-actions {
  width: 55px;
  position: relative;
}

.action-menu {
  position: relative;
}

.action-menu > summary {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.action-menu > summary::-webkit-details-marker {
  display: none;
}

.action-menu > div {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 43px;
  width: 270px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.action-menu label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-menu select {
  min-height: 40px;
  padding: 8px 10px;
}

.action-menu .button {
  width: 100%;
  margin-top: 9px;
}

.cancel-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cancel-form textarea {
  min-height: 60px;
}

/* Audit and errors */

.timeline-panel {
  padding: clamp(20px, 3vw, 34px);
}

.audit-timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.audit-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 15px;
}

.audit-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 5px;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.audit-entry {
  padding-bottom: 28px;
}

.audit-entry__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.audit-entry__heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.audit-entry__heading strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.audit-entry__heading span,
.audit-entry__heading time,
.audit-entry small {
  color: var(--muted);
  font-size: 0.65rem;
}

.audit-entry p {
  margin: 8px 0 3px;
  font-size: 0.78rem;
}

.error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.error-grid > .empty-state {
  grid-column: 1 / -1;
}

.error-card {
  padding: 22px;
  border-top: 4px solid var(--line);
}

.error-card--failed {
  border-top-color: var(--red);
}

.error-card--pending {
  border-top-color: #d3a321;
}

.error-card--resolved {
  border-top-color: #5ca733;
}

.error-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.error-card__heading time {
  color: var(--muted);
  font-size: 0.64rem;
}

.error-card h2 {
  margin-bottom: 20px;
  font-size: 1.16rem;
  line-height: 1.15;
}

.error-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.error-card dl > div {
  min-width: 0;
  padding: 10px;
  background: var(--paper);
}

.error-card dt {
  color: var(--muted);
  font-size: 0.55rem;
}

.error-card dd {
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.error-card code {
  font-size: 0.64rem;
}

.error-card details {
  margin-top: 16px;
  font-size: 0.7rem;
}

.error-card summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.error-card pre {
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  color: #d6e0d8;
  background: #202722;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.success-mark {
  background: #dff7ce !important;
}

/* HTTP error screen */

.error-page-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(rgba(201, 255, 54, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 255, 54, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 36px 36px;
}

.error-page {
  width: min(1080px, 100%);
  min-height: min(720px, calc(100vh - 36px));
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 15%, rgba(116, 87, 255, 0.28), transparent 27%),
    #1a211d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
}

.error-page .brand-lockup {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: var(--white);
}

.error-page__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: auto 0;
}

.error-page__number {
  display: block;
  margin-bottom: -0.35em;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(7rem, 21vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.85;
  -webkit-text-stroke: 2px var(--acid);
}

.error-page h1 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.88;
  text-transform: uppercase;
}

.error-page__content > p:not(.kicker) {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.65);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.error-page__symbol {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: min(25vw, 220px);
  opacity: 0.2;
  transform: rotate(12deg);
}

/* Notices */

.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding: 11px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(19, 25, 21, 0.06);
}

.notice p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.notice__dot {
  width: 9px;
  height: 9px;
  background: #5ca733;
  border-radius: 50%;
}

.notice--error .notice__dot {
  background: var(--red);
}

.notice .icon-button {
  width: 28px;
  height: 28px;
  border: 0;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero__content {
    padding-left: 50px;
  }

  .hero__machine {
    padding: 42px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .prizes-layout {
    grid-template-columns: 1fr;
  }

  .prize-form-card {
    position: static;
  }

  .form-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .public-wrap {
    width: min(100% - 16px, 1480px);
    margin: 8px auto;
    border-radius: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 74px 34px;
  }

  .hero__machine {
    min-height: 620px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .live-stats {
    grid-template-columns: 1fr;
  }

  .live-stats__intro {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid li {
    min-height: 245px;
  }

  .step-grid li + li {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .attempts {
    grid-template-columns: 1fr;
  }

  .attempts__visual {
    min-height: 480px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .login-brand__art {
    width: 180px;
    height: 180px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    width: min(290px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar__close {
    display: grid;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    background: rgba(7, 10, 8, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .sidebar-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-main {
    padding: 0 22px 34px;
  }

  .admin-mobilebar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -22px 26px;
    padding: 0 22px;
    background: var(--paper-bright);
    border-bottom: 1px solid var(--line);
  }

  .error-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .public-header {
    position: relative;
    min-height: 66px;
    padding: 9px 14px;
  }

  .public-header .brand-lockup img {
    width: 40px;
  }

  .nav-toggle {
    display: grid;
  }

  .public-nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 1px);
    left: -1px;
    right: -1px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper-bright);
    border: 1px solid var(--ink);
    border-top: 0;
  }

  .public-nav.is-open {
    display: flex;
  }

  .public-nav a {
    padding: 12px;
    text-align: center;
  }

  .hero__content {
    padding: 60px 23px;
  }

  .eyebrow {
    margin-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__dates {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
  }

  .hero__machine {
    min-height: 480px;
    padding: 30px 17px;
  }

  .live-stats__intro {
    padding: 30px 22px;
  }

  .live-stats__grid {
    grid-template-columns: 1fr;
  }

  .live-stat {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px 22px;
  }

  .live-stat + .live-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .live-stat dd {
    margin: 0;
    font-size: clamp(2.5rem, 15vw, 4.5rem);
    text-align: right;
  }

  .slot-window {
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 8px 9px 0 rgba(19, 25, 21, 0.2);
  }

  .slot-reel {
    border-radius: 11px;
  }

  .machine-word {
    font-size: 22vw;
  }

  .hero-sticker {
    width: 66px;
    height: 66px;
    font-size: 0.9rem;
  }

  .section-block {
    padding: 66px 22px;
  }

  .section-heading h2,
  .attempts h2,
  .cta-panel h2 {
    font-size: clamp(2.9rem, 15vw, 4.7rem);
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-grid {
    margin-top: 42px;
  }

  .attempts {
    padding: 0;
  }

  .attempts__visual {
    min-height: 360px;
  }

  .attempts__number {
    font-size: 56vw;
  }

  .attempts__visual img {
    width: 84px;
  }

  .attempts__content {
    padding: 66px 22px;
  }

  .bonus-list {
    grid-template-columns: 1fr;
  }

  .bonus-list > div + div {
    padding-left: 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .prize-marquee {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .cta-panel {
    min-height: 440px;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer nav {
    flex-direction: column;
    gap: 10px;
  }

  .legal-hero {
    padding: 62px 22px;
  }

  .legal-hero h1 {
    font-size: 15vw;
  }

  .legal-warning {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 22px;
  }

  .legal-layout {
    padding: 45px 22px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-copy > section {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .login-body {
    padding: 8px;
  }

  .login-shell {
    border-radius: 18px;
  }

  .login-brand {
    min-height: 300px;
    padding: 26px;
  }

  .login-brand__message h1 {
    font-size: 12vw;
  }

  .login-brand__art {
    width: 135px;
    height: 135px;
  }

  .login-panel {
    padding: 40px 24px;
  }

  .admin-main {
    padding: 0 14px 24px;
  }

  .admin-mobilebar {
    margin: 0 -14px 24px;
    padding: 0 14px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 12vw;
  }

  .page-actions,
  .page-actions .button,
  .page-actions form,
  .page-actions form .button {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    min-height: 135px;
    padding: 15px;
  }

  .metric-card > strong {
    font-size: 2rem;
  }

  .inventory-stats {
    grid-template-columns: 1fr;
  }

  .inventory-stats > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .form-grid,
  .form-grid--four {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sticky-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-actions .button {
    width: 100%;
  }

  .prize-admin-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .prize-quantity {
    align-items: flex-start;
    flex-direction: column;
  }

  .prize-quantity dl {
    width: 100%;
    justify-content: space-between;
  }

  .prize-admin-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filterbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field,
  .select-field {
    min-width: 0;
    width: 100%;
  }

  .table-panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .responsive-table {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  tbody tr {
    display: grid;
    gap: 13px;
    padding: 18px;
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  td {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 12px;
    padding: 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .table-actions {
    width: auto;
    display: block;
  }

  .table-actions::before {
    display: none;
  }

  .action-menu > summary {
    width: 100%;
    border-radius: 8px;
  }

  .action-menu > div {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .error-card dl {
    grid-template-columns: 1fr;
  }

  .audit-entry__heading {
    flex-direction: column;
    gap: 3px;
  }

  .notice {
    margin-top: 10px;
  }
}

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