/* ============================================================
   F0REVER — drops
   Palette: sodium lamp (amber) over violet-black, ultraviolet
   support. Deliberately not the cyan/magenta cyberpunk default.
   Type: Archivo Expanded (display) / IBM Plex Sans (body) /
         IBM Plex Mono (serials, seeds, counters).
   Signature: the key strip — a game key whose tail stays
   masked until the seed picks an owner.
   ============================================================ */

:root {
  --void:   #0B0714;
  --void-2: #100A1C;
  --panel:  #171029;
  --panel-2:#1F1637;
  --ink:    #EDE7FF;
  --muted:  #9385B4;
  --amber:  #FF9A1F;
  --uv:     #7B4DFF;
  --hot:    #FF3D6E;
  --line:   rgba(237, 231, 255, .11);
  --line-2: rgba(237, 231, 255, .20);

  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

::selection { background: var(--amber); color: #14060B; }

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

.wrap {
  width: min(1180px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* CRT scanlines — ambient only, never over interactive layers */
.scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- shared type ---------- */
.h2 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 116, 'wght' 800;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 154, 31, .55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 154, 31, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 154, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 154, 31, 0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #180A02;
  font-weight: 600;
}
.btn--primary:hover {
  background: #FFB44E;
  border-color: #FFB44E;
  color: #180A02;
}
.btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--ink); border-color: var(--line-2); }

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

.btn--yt { padding: .6rem 1rem; font-size: .74rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.mark__glyph { color: var(--amber); display: flex; }
.mark__word {
  font-family: var(--display);
  font-variation-settings: 'wdth' 120, 'wght' 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__links a { color: var(--muted); text-decoration: none; transition: color .18s ease; }
.nav__links a:hover { color: var(--amber); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .btn--yt { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 154, 31, .17), transparent 58%),
    radial-gradient(circle at 66% 62%, rgba(123, 77, 255, .19), transparent 60%);
  filter: blur(18px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translateX(-52%) scale(1); }
  to   { transform: translateX(-48%) scale(1.09); }
}

.hero__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 900;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 1.1rem 0 0;
  text-wrap: balance;
}

.hero__sub {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

/* countdown — mechanical segment blocks */
.clock {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.clock__unit {
  min-width: 4.6rem;
  padding: .6rem .5rem .5rem;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 154, 31, .07), rgba(255, 154, 31, 0));
}
.clock__unit b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-shadow: 0 0 22px rgba(255, 154, 31, .38);
}
.clock__unit i {
  display: block;
  margin-top: .35rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.clock.is-over b { color: var(--muted); text-shadow: none; }

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.4rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.tally dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tally dd {
  margin: .3rem 0 0;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- signature: the key card ---------- */
.hero__card { perspective: 1200px; }

.keycard {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background:
    linear-gradient(155deg, rgba(255, 154, 31, .10), transparent 42%),
    linear-gradient(200deg, var(--panel-2), var(--panel));
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transform: rotate(-1.4deg);
  animation: card-in .9s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes card-in {
  from { opacity: 0; transform: rotate(-4deg) translateY(26px); }
  to   { opacity: 1; transform: rotate(-1.4deg) translateY(0); }
}

.keycard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.keycard__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.keycard__code { color: var(--amber); }

.keycard__prize {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 800;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}
.keycard__note {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  min-height: 1.2em;
}

.keycard__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.keycard__state { color: var(--amber); }

.keycard__sweep {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 154, 31, .14), transparent);
  animation: sweep 5.5s ease-in-out 1.1s infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 62% { left: -45%; }
  100%    { left: 130%; }
}

/* the key strip itself */
.keystrip,
.done__key {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.4rem;
  font-family: var(--mono);
}
.seg {
  padding: .42rem .6rem;
  border: 1px solid rgba(255, 154, 31, .28);
  border-radius: 3px;
  background: rgba(255, 154, 31, .07);
  color: var(--amber);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .18em;
}
.seg.masked {
  border-color: var(--line-2);
  background: repeating-linear-gradient(45deg, rgba(237, 231, 255, .10) 0 4px, transparent 4px 8px);
  color: transparent;
  min-width: 5.2rem;
}
.seg.masked::after { content: '·····'; color: transparent; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt {
  background: var(--void-2);
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section__note {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .85rem;
}

/* ---------- drop grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.drop {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.drop:hover {
  border-color: rgba(255, 154, 31, .4);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .95);
}
.drop.is-closed { opacity: .72; }
.drop.is-closed:hover { transform: none; border-color: var(--line); box-shadow: none; }

.drop__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  padding: .22rem .5rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: .6rem;
  letter-spacing: .12em;
}
.pill--live { color: var(--amber); }
.pill--soon { color: var(--hot); }
.pill--closed { color: var(--muted); }

.drop__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 800;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 1rem 0 0;
}
.drop__sub {
  margin: .45rem 0 0;
  color: var(--amber);
  font-size: .86rem;
}
.drop__desc {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.drop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.2rem 0 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.drop__meta b {
  display: block;
  margin-top: .2rem;
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--ink);
  text-transform: none;
}
.drop__meta .t-left b { color: var(--amber); }

.drop__foot { margin-top: auto; }

.drop__won {
  margin: 0 0 .9rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(123, 77, 255, .09);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
}
.drop__won b { color: var(--ink); }

/* ---------- winners ledger ---------- */
.ledger {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.ledger .loading { padding: 1.4rem; }

.row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }

.row__code {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.row__nick {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  overflow-wrap: anywhere;
}
.row__prize { font-size: .92rem; }
.row__seed {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.row__seed b { display: block; color: var(--uv); letter-spacing: .14em; }

.empty {
  margin: 0;
  padding: 2.2rem 1.4rem;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .row__code { order: 1; }
  .row__seed { order: 2; }
  .row__nick { order: 3; grid-column: 1 / -1; }
  .row__prize { order: 4; grid-column: 1 / -1; color: var(--muted); }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}
.step {
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--void);
}
.step__n {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--amber);
}
.step h3 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 104, 'wght' 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: .9rem 0 .55rem;
}
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step a { color: var(--amber); text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: .84em;
  padding: .12em .4em;
  border-radius: 3px;
  background: rgba(123, 77, 255, .16);
  color: #C9B6FF;
  overflow-wrap: anywhere;
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 500;
  transition: color .18s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--amber); }
.qa summary::after {
  content: '+';
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--amber);
}
.qa[open] summary::after { content: '−'; }
.qa p {
  max-width: 68ch;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: .94rem;
}

/* ---------- footer ---------- */
.foot {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--void-2);
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.foot__mark {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 120, 'wght' 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.foot__line { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.foot__links {
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--amber); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, .78);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.9rem clamp(1.25rem, 4vw, 2.1rem) 2rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  animation: modal-in .28s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.modal__x {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.modal__x:hover { color: var(--amber); border-color: var(--amber); }

.modal__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 800;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: .9rem 0 0;
}
.modal__sub { margin: .5rem 0 1.6rem; color: var(--muted); font-size: .93rem; }
.modal__fine { margin: 1rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }

.field { display: block; margin-bottom: .95rem; }
.field > span {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field > span i { font-style: normal; opacity: .6; }
.field input {
  width: 100%;
  padding: .78rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(11, 7, 20, .6);
  color: var(--ink);
  font-family: var(--body);
  font-size: .95rem;
  transition: border-color .18s ease, background .18s ease;
}
.field input::placeholder { color: rgba(147, 133, 180, .65); }
.field input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(11, 7, 20, .9);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.formerr {
  margin: 0 0 .9rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(255, 61, 110, .4);
  border-radius: var(--radius);
  background: rgba(255, 61, 110, .1);
  color: #FFB3C6;
  font-size: .86rem;
}

.done { text-align: center; padding: .5rem 0 0; }
.done__key { justify-content: center; margin-bottom: 1.4rem; }
.done h3 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
}
.done p { margin: 0 0 1.5rem; color: var(--muted); font-size: .93rem; }
.done b { color: var(--amber); font-family: var(--mono); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  transform: translateX(-50%);
  padding: .8rem 1.2rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: .8rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  animation: toast-in .25s ease both;
}
.toast[hidden] { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { order: -1; max-width: 420px; }
  .keycard { transform: none; }
  @keyframes card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 520px) {
  .clock__unit { min-width: 0; flex: 1 1 3.8rem; }
  .tally { gap: 1.25rem; }
  .tally > div { flex: 1 1 7rem; }
}

/* ---------- motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__glow, .keycard__sweep { animation: none; }
  .drop:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #C4B8DC; --line: rgba(237, 231, 255, .28); --line-2: rgba(237, 231, 255, .45); }
  .scan { display: none; }
}
