/* =============================================================================
   KILL TOUR MERCH DROP
   Cinematic Brutalist Redesign
   ============================================================================= */

/* -- Fonts ----------------------------------------------------------------- */

@font-face {
  font-family: 'Futura LT Pro';
  src: url('./assets/fonts/FuturaLTProXBold.woff2') format('woff2'),
       url('./assets/fonts/FuturaLTProXBold.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura LT Pro';
  src: url('./assets/fonts/FuturaLTProBold.woff2') format('woff2'),
       url('./assets/fonts/FuturaLTProBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura LT Pro';
  src: url('./assets/fonts/FuturaLTProBook.woff2') format('woff2'),
       url('./assets/fonts/FuturaLTProBook.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -- Tokens ---------------------------------------------------------------- */

:root {
  --black: #000000;
  --bg: #050505;
  --white: #FFFFFF;
  --red: #FF2D2D;
  --red-dark: #CC0000;
  --warm-red: #FF3B3B;
  --grey: #A0A0A0;
  --grey-dark: #333333;
  --glass-bg: rgba(5, 5, 5, 0.9);
  --glass-border: rgba(255, 45, 45, 0.3);
  --font: 'Futura LT Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --radius-sm: 0px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 60px;
  --footer-h: 60px;
}

/* -- Reset ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grey-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

input, textarea, select, button { touch-action: manipulation; }
input, textarea { user-select: text; -webkit-user-select: text; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.text-red { color: var(--red); }
.border-red { border-color: var(--red) !important; }
.monospace-subtext { font-family: var(--font-mono); letter-spacing: 1px; }

/* -- Film Grain ------------------------------------------------------------ */

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* -- Split Layout ---------------------------------------------------------- */

.layout-split {
  display: grid;
  grid-template-columns: 50vw 50vw;
  height: 100vh;
  height: 100dvh;
}

/* -- Media Panel (Left) ---------------------------------------------------- */

.media-panel {
  position: relative;
  background: var(--black);
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.media-panel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

.media-panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5,5,5,0.8) 0%, transparent 25%, transparent 75%, rgba(5,5,5,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

/* -- UI Panel (Right) ------------------------------------------------------ */

.ui-panel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .logo__img {
    height: 32px;
  }
}

/* -- App Layout ------------------------------------------------------------ */

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
}

/* -- States ---------------------------------------------------------------- */

.state {
  display: none;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  will-change: opacity, transform;
}

.state--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

.state--active .brutalist-card > * {
  animation: slideUp 0.6s var(--ease-out-expo) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Brutalist Card -------------------------------------------------------- */

.brutalist-card {
  width: 100%;
  position: relative;
  text-align: left;
}

.border-red {
  border-left: 2px solid var(--red);
  padding-left: 24px;
}

/* -- Typography ------------------------------------------------------------ */

.headline {
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.headline--sm {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.subtext {
  font-weight: 400;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 40px;
}

/* -- Drop Container (Landing) ----------------------------------------------- */

.drop-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.drop-header {
  margin-bottom: 48px;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-tag__amount { color: var(--white); }
.price-tag__limit { color: var(--grey); opacity: 0.5; }

.drop-description {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 1px;
  line-height: 1.6;
  opacity: 0.6;
  text-transform: uppercase;
  max-width: 400px;
}

.mobile-block {
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .drop-description {
    font-size: 9px;
    margin-top: 8px;
  }
}

/* -- Slot Counter ---------------------------------------------------------- */

.slot-counter { margin-bottom: 24px; }

.slot-counter__bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 16px;
  position: relative;
}

.slot-counter__fill {
  position: absolute;
  top: -1px; left: 0; bottom: -1px;
  background: var(--red);
  transition: width 0.8s var(--ease-out-expo);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.4);
}

.slot-counter__text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
}
.slot-counter__text span {
  color: var(--red);
}
.slot-counter__price {
  color: var(--grey);
  opacity: 0.8;
  letter-spacing: 1px;
}

/* -- Schedule Strip -------------------------------------------------------- */

.schedule-strip {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 24px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  gap: 40px; /* Consistent gap between item containers */
  padding-right: 40px; /* Space for the fade hint */
  mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
}

.schedule-strip::-webkit-scrollbar {
  display: none;
}

.schedule-strip__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 12px; /* Set item width to exactly the dot width */
}

/* Connecting line segments between items */
.schedule-strip__item::after {
  content: '';
  position: absolute;
  top: 6px; /* Center of the 12px dot */
  left: 12px; /* Start at right edge of dot */
  width: 40px; /* Match the gap exactly */
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.schedule-strip__item:last-child::after {
  display: none;
}

.schedule-strip__dot {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}
.schedule-strip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  margin-top: 8px;
  opacity: 0.5;
}

/* States applied via JS */
.schedule-strip__item[data-state="active"] .schedule-strip__dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.schedule-strip__item[data-state="active"] .schedule-strip__label {
  color: var(--red);
  opacity: 1;
}
.schedule-strip__item[data-state="next"] .schedule-strip__dot {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
  animation: subtle-pulse 3s ease-in-out infinite;
}
.schedule-strip__item[data-state="next"] .schedule-strip__label {
  color: var(--white);
  opacity: 0.8;
}
.schedule-strip__item[data-state="complete"] .schedule-strip__dot {
  background: var(--grey-dark);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.3;
}
.schedule-strip__item[data-state="complete"] .schedule-strip__label {
  color: var(--grey);
  opacity: 0.2;
}

/* -- Countdown Timer ------------------------------------------------------- */

.countdown-wrapper { 
  margin-bottom: 48px; 
  width: 100%;
}

.countdown__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.countdown__label {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: -0.5px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

.countdown__label span {
  color: var(--red);
}

.countdown__timer {
  display: flex;
  align-items: baseline;
  margin-left: -4px; /* Offset for first character tracking */
}

.countdown__value {
  font-weight: 900;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: -2px;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 1.2ch; /* Ensure stable width for digits */
}

.countdown__sep {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: rgba(255, 255, 255, 0.4);
  margin: 0 8px;
  line-height: 1;
}

/* -- Form ------------------------------------------------------------------ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-bottom: 32px;
}

.form-field--full { grid-column: 1 / -1; }
.form-field--half { grid-column: span 1; }

.input-form {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s;
  border-radius: 0;
}

.input-form::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-form:focus {
  border-color: var(--red);
  background: rgba(255, 45, 45, 0.05);
  padding-left: 8px; /* Slight indent on focus for MSCHF feel */
}

.input-form--select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23FF2D2D' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0px center;
  padding-right: 24px;
}
.input-form--select:focus {
  background-position: right 8px center;
}
.input-form--select option { background: var(--black); color: var(--white); }

.input-form.input-form--invalid { border-color: var(--red); }

/* -- Consent --------------------------------------------------------------- */

.consent-block {
  margin: 20px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 7.5px;
  color: var(--grey);
  line-height: 1.5;
  font-family: var(--font-mono);
}

.consent-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  margin-top: 0;
  position: relative;
  border-radius: 0;
  transition: all 0.2s;
}

.consent-item input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}

.consent-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.inline-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { color: var(--red); }

/* -- Form Error ------------------------------------------------------------ */

.form-error {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  min-height: 20px;
  margin: 12px 0;
  letter-spacing: 1px;
}

/* -- Turnstile -------------------------------------------------------------- */

.cf-turnstile {
  margin: 0 0 16px;
  width: 100%;
}

/* Let Turnstile's injected wrapper/iframe follow container width */
.cf-turnstile > div,
.cf-turnstile iframe {
  width: 100% !important;
}

.turnstile--solved {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/* -- Claimed Badge (spectator mode) ---------------------------------------- */

.claimed-badge {
  text-align: center;
  padding: 12px 24px;
  border: 1px solid var(--red);
  background: rgba(204, 0, 0, 0.08);
  margin: 16px 0;
}

.claimed-badge__text {
  font-family: 'Futura LT Pro', 'Futura', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
}

/* -- Claiming Spinner ------------------------------------------------------- */

.claiming-spinner {
  display: flex;
  margin: 40px 0;
}

.claiming-spinner__ring {
  width: 60px;
  height: 60px;
  border: 2px solid var(--grey-dark);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* -- Queue State ----------------------------------------------------------- */

@keyframes queue-glow {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 30px rgba(255, 45, 45, 0.25), 0 0 60px rgba(255, 45, 45, 0.08); }
}

@keyframes status-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.queue-position__number {
  animation: queue-glow 2.5s ease-in-out infinite;
}

#queue-status-text::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: status-dot 1.2s ease-in-out infinite;
}

#state-queue .queue-position {
  margin: 12px 0 0 !important;
}

#state-queue .slot-counter {
  margin-top: 8px !important;
}

.queue-warning {
  font-family: var(--font);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red);
  opacity: 1;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.queue-warning::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

/* -- Confirmed Ticket ------------------------------------------------------ */

@keyframes premium-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 45, 0.2), 0 0 40px rgba(255, 45, 45, 0.1); }
  50% { box-shadow: 0 0 30px rgba(255, 45, 45, 0.4), 0 0 70px rgba(255, 45, 45, 0.2); }
}

.ticket-wrapper {
  background: var(--bg);
  border: 2px solid var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.2);
  animation: premium-glow 4s ease-in-out infinite;
  text-align: left;
  overflow: hidden;
  width: 100%;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.ticket-wrapper.tilt-active {
  transition: transform 0.1s ease-out; /* Snappier tracking while moving */
}

.ticket-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%
  );
  opacity: var(--glare-opacity, 0);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
}

.ticket-header .ticket-status {
  color: var(--red);
}

.ticket-header img {
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.4)) drop-shadow(0 0 1px rgba(0,0,0,0.4));
}

.ticket-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#state-confirmed .headline {
  font-size: 1.4rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.ticket-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  overflow: visible;
  padding: 0;
}

.ticket-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  pointer-events: none;
  -webkit-user-drag: none;
}

.ticket-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.ticket-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-detail-item:last-child {
  align-items: flex-end;
  text-align: right;
}

.ticket-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ticket-value-large {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ticket-of {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
}

.ticket-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  word-break: break-all;
}

.ticket-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.01);
}

.barcode {
  height: 14px;
  width: 100%;
  background: linear-gradient(to right, var(--white) 0%, var(--white) 3%, transparent 3%, transparent 6%, var(--white) 6%, var(--white) 8%, transparent 8%, transparent 10%, var(--white) 10%, var(--white) 14%, transparent 14%, transparent 18%, var(--white) 18%, var(--white) 20%, transparent 20%, transparent 22%, var(--white) 22%, var(--white) 27%, transparent 27%, transparent 30%, var(--white) 30%, var(--white) 32%, transparent 32%, transparent 35%, var(--white) 35%, var(--white) 40%, transparent 40%, transparent 43%, var(--white) 43%, var(--white) 45%, transparent 45%, transparent 48%, var(--white) 48%, var(--white) 52%, transparent 52%, transparent 55%, var(--white) 55%, var(--white) 58%, transparent 58%, transparent 62%, var(--white) 62%, var(--white) 65%, transparent 65%, transparent 68%, var(--white) 68%, var(--white) 72%, transparent 72%, transparent 74%, var(--white) 74%, var(--white) 76%, transparent 76%, transparent 80%, var(--white) 80%, var(--white) 84%, transparent 84%, transparent 86%, var(--white) 86%, var(--white) 89%, transparent 89%, transparent 92%, var(--white) 92%, var(--white) 96%, transparent 96%, transparent 100%);
  opacity: 0.2;
}

.confirmed-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.confirmed-actions .btn-cta {
  flex: 1;
  padding: 14px 8px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* Specific state adjustments for viewport fit */
#state-confirmed.state--active {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#state-confirmed .drop-container {
  gap: 0;
  justify-content: center;
  max-width: 380px;
  width: 100%;
}

/* -- Buttons --------------------------------------------------------------- */

.btn-cta {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 24px 48px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.btn-cta--massive {
  padding: 32px 48px;
  font-size: 20px;
  letter-spacing: 6px;
  margin-top: 16px;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-cta:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 45, 45, 0.3);
}

.btn-cta:active {
  transform: translateY(1px);
  box-shadow: 0 5px 15px rgba(255, 45, 45, 0.2);
}

.btn-cta--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-cta:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Footer ---------------------------------------------------------------- */

.footer {
  padding: 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050505;
  width: 100%;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 10;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.footer__legal a:hover { color: var(--white); }
.footer__legal span { display: none; } /* Hide separators */

.footer__trademark {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* -- Responsive Layout ----------------------------------------------------- */

@media (max-width: 900px) {
  .layout-split {
    display: block;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
  }

  body { overflow: hidden; }

  .media-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: none;
    height: 100%;
  }

  .media-panel__overlay {
    background: linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.2) 40%, rgba(5,5,5,0.2) 60%, rgba(5,5,5,0.7) 100%);
    padding: 24px;
  }

  .media-panel__rec {
    align-self: flex-end;
    margin-top: 4px;
  }

  .media-panel__meta {
    display: none;
  }

  .ui-panel {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .app {
    padding: calc(var(--header-h) + 10px) 24px calc(var(--footer-h) + 10px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  body[data-state="landing"] .app {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: calc((var(--footer-h) + 10px) / 2);
  }

  .state--active {
    display: block;
    flex: none;
  }

  #state-landing.state--active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100dvh - var(--header-h) - var(--footer-h));
  }

  .state--active:not(#state-landing) {
    padding: 40px 24px calc(var(--footer-h) + 24px);
  }

  /* Darken the video layer for all non-landing states */
  body:not([data-state="landing"]) .media-panel__overlay {
    background: rgba(5, 5, 5, 0.82);
  }

  /* Hide shirt video in all non-landing states */
  body:not([data-state="landing"]) .media-panel__video {
    display: none;
  }

  .drop-container {
    height: auto;
    flex: none;
  }

  #state-landing .drop-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
  }

  .brutalist-card {
    padding: 0;
    background: transparent;
    border: none;
    height: auto;
  }
  .brutalist-card::before { display: none; }
  .border-red { border: none !important; padding-left: 0; }

  .drop-header { margin-bottom: 24px; }
  .slot-counter { margin-bottom: 16px; }
  .schedule-strip { margin: 16px 0 24px; }
  .countdown-wrapper { margin-bottom: 24px; }
  .btn-cta--massive { padding: 20px 32px; font-size: 16px; }

  .header {
    height: var(--header-h);
    padding: 10px 24px 0;
    background: linear-gradient(180deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 100%);
    border-bottom: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .header .logo { pointer-events: auto; }

  .logo__text { font-size: 16px; letter-spacing: 4px; }

  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field--half { grid-column: span 1; }

  .countdown__value { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .countdown__sep { font-size: clamp(2rem, 8vw, 3rem); }

  .footer {
    background: linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.9) 60%, rgba(5,5,5,0) 100%);
    padding: 0 16px 16px;
    height: var(--footer-h);
    border-top: none;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
  }
  .footer__legal, .footer__trademark { pointer-events: auto; }

  .footer__legal {
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: nowrap;
  }
  .footer__legal a {
    font-size: 7.5px;
    letter-spacing: 0.2px;
  }
  .footer__trademark {
    font-size: 7px;
    opacity: 0.4;
  }

  /* -- Task #3: Remove old mobile confirmed-id -- */

  /* -- Center non-form states vertically -- */
  #state-all-done.state--active,
  #state-sold-out.state--active,
  #state-error.state--active,
  #state-queue.state--active,
  #state-claiming.state--active,
  #state-window-closed.state--active,
  #state-confirmed.state--active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100dvh - var(--header-h) - var(--footer-h));
    text-align: center;
  }

  /* -- Task #6: Reduce subtext margin on mobile -- */
  .subtext {
    margin-bottom: 16px;
  }

  /* -- Task #6: Improve spinner contrast on mobile -- */
  .claiming-spinner__ring {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--red);
  }

  /* -- Turnstile: Safari-safe sizing (avoid zoom on cross-origin iframe) -- */
  .cf-turnstile {
    max-width: none;
  }

  /* -- Landing Live: center content on mobile -- */
  #state-landing[data-live] .drop-container {
    justify-content: center;
    gap: 16px;
  }
}

/* -- Landing Live Mode ---------------------------------------------------- */

#state-landing[data-live] #cd-hours,
#state-landing[data-live] .countdown__timer > :nth-child(2) {
  display: none;
}

#state-landing[data-live] .drop-description,
#state-landing[data-live] .schedule-strip {
  display: none;
}

#state-landing[data-live] .countdown__label {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}

#state-landing[data-live] .countdown__label::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

#state-landing[data-live] .countdown__header {
  border-bottom-color: var(--red);
}

#state-landing[data-live] .btn-cta--massive {
  background: var(--red);
  color: var(--white);
  animation: cta-glow 2s ease-in-out infinite;
}

#state-landing[data-live] .btn-cta--massive:hover {
  background: var(--white);
  color: var(--black);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.7); }
  50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(255, 45, 45, 0); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 45, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 45, 0.5), 0 0 80px rgba(255, 45, 45, 0.15); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  /* Fix tablet landscape text cutoff */
  .countdown__value { font-size: clamp(2rem, 4vw, 3rem); }
  .countdown__sep { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
  
  .headline { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  
  .app { padding: 100px 32px 60px; }
  .brutalist-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .film-grain { display: none; }
}

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@keyframes subtle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
