/* Gator Hack V pass system: follows ufgatorhack.com's design system
   (UF orange + UF blue, origami geometry, thin outlines, Jost). */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400;500;600;700;800&display=swap");

:root {
  --orange: #FA4616;
  --blue: #0021A5;
  --ink: #33418F;
  --muted: #6B75B0;
  --orange-tint: #FDD9CD;
  --orange-wash: #FEF0EB;
  --blue-wash: #EEF1FB;
  --paper: #FFFFFF;
  --hair: #DFE3F5;
  --ok: #0E8A5F;
  --ok-wash: #E3F6EE;
  --bad: #C8102E;
  --bad-wash: #FDE7EA;
  --warn: #A35F00;
  --warn-wash: #FFF3DC;
  --line: 1.5px solid var(--blue);
  --radius: 2px;
  --font: "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--blue); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 48px 20px; }

.site-header { border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header img { height: 44px; width: auto; }
.site-header a.small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.title { font-weight: 200; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(34px, 8vw, 52px); line-height: 1.02; }
.title b { font-weight: 800; letter-spacing: .01em; }
.lead { font-size: 18px; max-width: 46ch; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Origami accents ---------- */
.hero { position: relative; padding: 40px 0 28px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -40px; top: 10px; width: 220px; height: 160px; z-index: -1;
  background: linear-gradient(135deg, transparent 49.5%, var(--orange-tint) 50%) , linear-gradient(45deg, var(--orange-wash) 50%, transparent 50.5%);
  clip-path: polygon(30% 0, 100% 20%, 80% 100%, 0 70%);
  opacity: .9;
}

/* ---------- Cards & forms ---------- */
.card { border: var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border: var(--line); font-size: 13px; color: var(--blue); flex: none; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.field > span i { color: var(--orange); font-style: normal; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #b9c1e6; border-radius: var(--radius); background: #fff;
  padding: 11px 12px; width: 100%; min-height: 46px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid #b9c1e6; border-radius: 999px;
  font-size: 14px; color: var(--ink); background: #fff; user-select: none;
}
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; min-height: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.check span { flex: 1; min-width: 0; }
.soft .check input { border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: var(--line); border-radius: var(--radius); background: var(--paper); color: var(--blue);
  font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--blue-wash); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #001a85; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { background: #e23b0e; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 8px 14px; font-size: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px;
  background: #000; color: #fff; border-radius: 12px; text-decoration: none; font: 500 17px var(--font); letter-spacing: .01em;
}
.wallet-btn svg { width: 30px; height: 30px; flex: none; }
.wallet-btn small { display: block; font-size: 11px; opacity: .75; letter-spacing: .04em; line-height: 1.1; }
.wallet-btn span { text-align: left; line-height: 1.15; }

/* ---------- Selfie ---------- */
.selfie-slot {
  aspect-ratio: 1; width: min(240px, 70vw); border: 1.5px dashed var(--blue); border-radius: var(--radius);
  display: grid; place-items: center; background: var(--blue-wash); overflow: hidden; position: relative; margin: 0 auto 14px;
}
.selfie-slot img { width: 100%; height: 100%; object-fit: cover; }
.selfie-slot svg { width: 64px; height: 64px; stroke: var(--blue); fill: none; stroke-width: 1.2; }

.camera {
  position: fixed; inset: 0; z-index: 100; background: #050a26; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px;
}
.camera h3 { color: #fff; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin: 0; }
.camera .viewport { position: relative; width: min(88vw, 60vh, 460px); aspect-ratio: 1; overflow: hidden; border: 2px solid #fff; background: #000; }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera .oval { position: absolute; inset: 12% 22% 8%; border: 2px dashed rgba(255,255,255,.75); border-radius: 50%; pointer-events: none; }
.camera .tips { font-size: 14px; color: #c8d0f5; text-align: center; max-width: 34ch; margin: 0; }
.camera .shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: var(--orange); cursor: pointer; }
.camera .shutter:active { transform: scale(.94); }
.camera .row { display: flex; align-items: center; gap: 28px; }
.camera .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- Pass preview ---------- */
.pass {
  border: var(--line); border-radius: 14px; background: #fff; overflow: hidden; position: relative;
  box-shadow: 0 18px 40px -22px rgba(0, 33, 165, .45);
}
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 6px; }
.pass-top img { height: 40px; width: auto; }
.pass-status { text-align: right; }
.pass-status b { display: block; color: var(--blue); font-size: 16px; font-weight: 600; }
.pass-main { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 6px 18px 14px; align-items: end; }
.pass-main .name { font-size: 26px; font-weight: 600; color: var(--blue); line-height: 1.1; }
.pass-photo { width: 92px; height: 92px; object-fit: cover; border: 1.5px solid var(--blue); border-radius: 4px; }
.pass-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 16px; }
.pass-fields div b { display: block; color: var(--blue); font-weight: 500; font-size: 15px; line-height: 1.2; }
.pass-qr { border-top: 1.5px dashed var(--hair); padding: 22px 18px 18px; display: grid; place-items: center; gap: 8px; position: relative; }
.pass-qr::before, .pass-qr::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: var(--line); }
.pass-qr::before { left: -12px; } .pass-qr::after { right: -12px; }
.pass-qr svg { width: min(220px, 60vw); height: auto; }
.pass-qr code { font: 600 15px var(--font); letter-spacing: .18em; color: var(--blue); }
.pass.voided { filter: grayscale(1); opacity: .6; }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge.approved { background: var(--blue-wash); color: var(--blue); }
.badge.pending { background: var(--warn-wash); color: var(--warn); }
.badge.waitlisted { background: #F1ECFB; color: #5B3EA8; }
.badge.rejected { background: var(--bad-wash); color: var(--bad); }
.badge.in { background: var(--ok-wash); color: var(--ok); }

.notice { padding: 14px 16px; border-left: 4px solid var(--orange); background: var(--orange-wash); font-size: 15px; margin-bottom: 18px; }
.notice.ok { border-color: var(--ok); background: var(--ok-wash); }
.notice.bad { border-color: var(--bad); background: var(--bad-wash); }
.error { color: var(--bad); font-size: 15px; min-height: 1.4em; margin: 10px 0 0; }

.meal-list { list-style: none; padding: 0; margin: 0; }
.meal-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.meal-list li:last-child { border-bottom: 0; }
.meal-list li > span:last-child { white-space: nowrap; }
.meal-list .done { color: var(--ok); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); margin-top: 48px; padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.twinly { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.twinly img { width: 22px; height: 22px; border-radius: 5px; }
.twinly b { color: var(--ink); font-weight: 600; }
.twinly:hover b { color: var(--blue); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px);
}
.toast.bad { background: var(--bad); }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--hair); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 50vh; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
