:root {
  color-scheme: light;
  --ink: #24211f;
  --muted: #766f68;
  --paper: #f7f1e8;
  --card: #fffdf9;
  --line: #dfd5c8;
  --accent: #df4c35;
  --accent-dark: #bd3523;
  --green: #20745a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgb(223 76 53 / 10%), transparent 34rem),
    var(--paper);
}

button, input { font: inherit; }

.page-shell {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.event-header,
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.wordmark-mark::after {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--accent);
  content: "";
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--green);
  border: 1px solid rgb(32 116 90 / 24%);
  border-radius: 999px;
  background: rgb(32 116 90 / 7%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(32 116 90 / 10%);
}

.intro { padding: clamp(54px, 10vh, 92px) 0 30px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 15vw, 82px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.lede {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 4.5vw, 20px);
  line-height: 1.5;
}

.picker-card,
.queue-section,
.success-card {
  border: 1px solid rgb(87 71 57 / 16%);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 55px rgb(77 55 37 / 9%);
}

.picker-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.picker-card.is-dragging {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lens {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f2e8dc;
}

.lens span {
  width: 30px;
  height: 30px;
  border: 8px solid var(--accent);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px #f5baa9;
}

.picker-copy h2,
.queue-heading h2,
.success-card h2 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.picker-copy p,
.success-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 17px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button:active { transform: scale(.98); }
.button:focus-visible, .text-button:focus-visible, input:focus-visible { outline: 3px solid rgb(223 76 53 / 30%); outline-offset: 2px; }

.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--ink); background: #efe7dc; }
.button-secondary:hover { background: #e5d9ca; }
.button:disabled { cursor: wait; opacity: .6; }

.button-icon { font-size: 17px; }

.photo-stack {
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px var(--card), 3px -3px 0 0 currentColor;
}

.drop-hint {
  margin: 15px 0 -3px;
  color: #9a9188;
  font-size: 12px;
  text-align: center;
}

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

.queue-section { margin-top: 18px; padding: 24px; }
.queue-heading .eyebrow { margin-bottom: 4px; }
.queue-heading h2 { margin-bottom: 0; }

.text-button {
  padding: 8px 2px;
  color: var(--accent-dark);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.upload-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.upload-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
}

.upload-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #e8dfd5;
}

.upload-detail { min-width: 0; }
.upload-name { overflow: hidden; margin: 0 0 5px; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.upload-state { margin: 0; color: var(--muted); font-size: 12px; }
.upload-state.is-error { color: #b5261a; }
.upload-state.is-done { color: var(--green); }

.item-progress {
  width: 44px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8dfd5;
}

.item-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 120ms linear; }

.pin-field {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pin-field input {
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.upload-button { width: 100%; }

.success-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
}

.success-card[hidden] { display: none; }
.success-card .text-button { grid-column: 2; justify-self: start; }
.success-check { display: grid; width: 44px; height: 44px; color: white; border-radius: 50%; background: var(--green); font-weight: 900; place-items: center; }
.privacy-note { max-width: 28rem; margin: 22px auto 0; color: #8f867e; font-size: 11px; line-height: 1.5; text-align: center; }

@media (max-width: 480px) {
  .page-shell { padding-inline: 16px; }
  .picker-card { padding: 22px; border-radius: 20px; }
  .lens { margin-bottom: 36px; }
  .picker-actions { grid-template-columns: 1fr; }
  .drop-hint { display: none; }
}

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