/* Hacker-facing pages: the pass, the tap screen. Softer and rounder than the
   staff app, same UF orange + blue. */

:root {
  --navy: #07125C;
  --glass: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .22);
  --shadow-lg: 0 30px 60px -28px rgba(0, 20, 110, .55), 0 12px 24px -16px rgba(0, 20, 110, .35);
}

body.soft {
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(250, 70, 22, .10), transparent 60%),
    radial-gradient(800px 600px at -20% 10%, rgba(0, 33, 165, .10), transparent 60%),
    #F6F7FC;
  min-height: 100dvh;
}
body.soft .site-header { border: 0; background: transparent; }

.soft .card { border: 1px solid rgba(0, 33, 165, .08); border-radius: 22px; box-shadow: 0 16px 40px -28px rgba(0, 33, 165, .45); }
.soft .card + .card { margin-top: 16px; }
.soft .btn { border-radius: 999px; border-width: 1px; }
.soft input, .soft select, .soft textarea { border-radius: 14px; background: #F7F8FD; border-color: #E3E7F6; }
.soft .notice { border-radius: 16px; border-left-width: 0; }
.soft .selfie-slot { border-radius: 26px; border-style: solid; border-color: #D6DCF3; }

.page-head { padding: 28px 0 18px; }
.page-head .title { font-size: clamp(32px, 9vw, 48px); }

/* ---------- The pass ---------- */
.hpass {
  position: relative; overflow: hidden; border-radius: 30px; color: #fff; isolation: isolate;
  background: linear-gradient(155deg, #1238D6 0%, #0021A5 38%, var(--navy) 100%);
  box-shadow: var(--shadow-lg);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.hpass::before { /* origami facets */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(250, 70, 22, .55) 58% 66%, transparent 66%),
    linear-gradient(200deg, transparent 0 70%, rgba(255, 255, 255, .07) 70% 82%, transparent 82%),
    linear-gradient(20deg, rgba(255, 255, 255, .06) 0 30%, transparent 30%);
}
.hpass::after { /* moving sheen */
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%);
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(-40%); } 60%, 100% { transform: translateX(40%); } }

.hpass-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 6px; }
.wordmark { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; font-weight: 300; line-height: 1; }
.wordmark b { font-weight: 800; }
.wordmark .v { color: #FF8A5C; font-family: Georgia, serif; font-weight: 600; margin-left: 4px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: #FFC24B; box-shadow: 0 0 0 3px rgba(255, 194, 75, .25); }
.status-chip.in i { background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .25); }
.status-chip.out i { background: #FF6B6B; }

.hpass-who { display: flex; align-items: center; gap: 16px; padding: 18px 22px 8px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #FA4616, #FFB088, #fff, #FA4616); }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy); display: block; }
.hpass-who .name { font-size: 26px; font-weight: 600; line-height: 1.1; }
.hpass-who .sub { opacity: .75; font-size: 15px; margin-top: 3px; }

.hpass-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 22px 20px; }
.hpass-meta span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-weight: 600; }
.hpass-meta b { font-weight: 500; font-size: 15px; }

.hpass-qr { margin: 0 12px 12px; padding: 18px; background: #fff; border-radius: 22px; color: var(--ink); display: grid; place-items: center; gap: 6px; }
.hpass-qr svg { width: min(210px, 56vw); height: auto; }
.hpass-qr code { font: 600 14px var(--font); letter-spacing: .2em; color: var(--blue); }
.hpass-qr small { color: var(--muted); font-size: 12px; }

.hpass-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 22px 18px; font-size: 12px; opacity: .8; }
.collab { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.collab img { width: 18px; height: 18px; border-radius: 5px; }
.collab .x { opacity: .6; }
.collab .dsi { font-weight: 800; letter-spacing: .06em; }

/* ---------- How to check in ---------- */
.howto { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.howto svg { width: 96px; height: 96px; }
.howto ol { margin: 0; padding-left: 18px; font-size: 15px; }
.howto li { margin: 3px 0; }
.wave { animation: wave 1.6s ease-out infinite; transform-origin: 48px 48px; }
.wave.w2 { animation-delay: .4s; }
@keyframes wave { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.25); } }

/* ---------- Meals ---------- */
.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meals li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F7F8FD; }
.meals .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #E4E8F7; color: var(--muted); font-size: 14px; }
.meals li.done .dot { background: var(--ok); color: #fff; }
.meals b { color: var(--blue); font-weight: 500; display: block; line-height: 1.2; }
.meals small { color: var(--muted); }

details.edit summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit summary::after { content: "+"; font-size: 22px; font-weight: 300; }
details.edit[open] summary::after { content: "–"; }
details.edit[open] summary { margin-bottom: 16px; }

/* ---------- Tap screen (the page a hacker's phone opens) ---------- */
body.tap {
  margin: 0; min-height: 100dvh; color: #fff; overflow-x: hidden; transition: background .5s;
  background: radial-gradient(120% 80% at 50% 0%, #1238D6 0%, #0021A5 40%, var(--navy) 100%);
}
body.tap.ok { background: radial-gradient(120% 80% at 50% 0%, #19C27E 0%, #0E8A5F 45%, #064A33 100%); }
body.tap.bad { background: radial-gradient(120% 80% at 50% 0%, #FF5A5A 0%, #C8102E 45%, #5E0715 100%); }
body.tap.warn { background: radial-gradient(120% 80% at 50% 0%, #FFB547 0%, #D98A00 45%, #6B3F00 100%); }
.blob { position: fixed; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0; pointer-events: none; }
.blob.a { background: #FA4616; top: -25vmax; right: -25vmax; animation: drift 14s ease-in-out infinite alternate; }
.blob.b { background: #4F7BFF; bottom: -30vmax; left: -25vmax; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
body.tap.ok .blob.a { background: #B6FF6B; } body.tap.ok .blob.b { background: #00E0A4; }

.tap-wrap { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(env(safe-area-inset-top) + 24px) 22px calc(env(safe-area-inset-bottom) + 28px); gap: 18px; }
.tap-wrap .wordmark { position: absolute; top: calc(env(safe-area-inset-top) + 20px); left: 0; right: 0; font-size: 16px; opacity: .9; }
.big { font-size: clamp(40px, 13vw, 64px); font-weight: 800; letter-spacing: .02em; line-height: .95; text-transform: uppercase; margin: 0; color: #fff; }
.lead-w { font-size: 18px; opacity: .85; max-width: 30ch; margin: 0; }
.tap-photo { width: min(46vw, 200px); aspect-ratio: 1; border-radius: 50%; padding: 5px; background: conic-gradient(from 0deg, #FA4616, #FFB088, #fff, #4F7BFF, #FA4616); }
.tap-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid rgba(0, 0, 0, .25); display: block; }
.tap-photo.spin { animation: spin 2.4s linear infinite; }
.tap-photo.spin img { animation: spin 2.4s linear infinite reverse; }
.checkmark { width: 120px; height: 120px; }
.checkmark circle { stroke: rgba(255, 255, 255, .35); }
.checkmark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.live { font-variant-numeric: tabular-nums; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); display: inline-flex; gap: 8px; align-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.glass-card { width: min(420px, 100%); background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); border-radius: 24px; padding: 20px; backdrop-filter: blur(14px); text-align: left; }
.glass-card input { width: 100%; border-radius: 14px; border: 0; padding: 14px 16px; font-size: 17px; margin: 10px 0 12px; }
.btn-w { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: #fff; color: var(--blue); font: 600 15px var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; width: 100%; }
.btn-w.ghost { background: transparent; color: #fff; border: 1px solid var(--glass-line); }
.tag-diet { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 15px; }
.tap-foot { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 14px); left: 0; right: 0; font-size: 12px; opacity: .75; }
.dots span { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) { .hpass::after, .blob, .tap-photo.spin, .tap-photo.spin img { animation: none; } }

/* ---------- Tap mode: the pass goes full screen to tap onto a volunteer's phone ---------- */
.tapmode { position: fixed; inset: 0; z-index: 250; background: #fff; display: grid; place-items: center; overflow: auto;
  padding: calc(env(safe-area-inset-top) + 12px) 18px calc(env(safe-area-inset-bottom) + 12px); animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.tapmode-inner { width: min(440px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.tapmode h2 { font-size: 22px; font-weight: 600; margin: 0; }
.tapmode-qr { width: min(84vw, 380px); padding: 16px; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 3px var(--blue), 0 24px 50px -24px rgba(0, 33, 165, .6); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--orange), 0 24px 50px -24px rgba(250, 70, 22, .6); } }
.tapmode-qr svg { width: 100%; height: auto; display: block; }
.tapmode-who { display: flex; gap: 12px; align-items: center; text-align: left; }
.tapmode-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tapmode-who code { color: var(--muted); letter-spacing: .14em; font-size: 13px; }
.live.dark { background: var(--blue-wash); border-color: transparent; color: var(--blue); }
.live.dark i { background: var(--blue); }

/* Full-screen celebration on the hacker's phone */
.tap-overlay { position: fixed; inset: 0; z-index: 300; color: #fff; overflow: auto; animation: fadein .25s ease-out;
  background: radial-gradient(120% 80% at 50% 0%, #1238D6 0%, #0021A5 40%, var(--navy) 100%); }
.tap-overlay.ok { background: radial-gradient(120% 80% at 50% 0%, #19C27E 0%, #0E8A5F 45%, #064A33 100%); }
.tap-overlay.ok .blob.a { background: #B6FF6B; } .tap-overlay.ok .blob.b { background: #00E0A4; }
.tap-overlay .collab { color: #fff; }

/* Required Discord + Devpost callout */
.soft .card.required { border: 2px solid var(--orange); background: var(--orange-wash); }
.soft .card.required h2 { text-transform: none; letter-spacing: 0; font-size: 20px; }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn.devpost { background: #003E54; border-color: #003E54; color: #fff; }
.btn.discord:hover, .btn.devpost:hover { filter: brightness(1.1); }
