/* Participant-facing pages: landing, registration wizard, digital pass */

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); background: linear-gradient(to bottom, rgba(14, 5, 22, 0.85), rgba(14, 5, 22, 0)); backdrop-filter: blur(6px); }
.topbar nav { display: flex; gap: 6px; align-items: center; }
.wrap { width: min(1180px, 100%); max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------------------------------------------------------------- */
/* Landing                                                           */
/* ---------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 7vw, 90px) 0 60px; }
.hero h1 { font-size: clamp(38px, 5.8vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 18px 0 22px; }
.hero h1 .name { font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.02em; }
.hero-logo { width: min(210px, 56vw); height: auto; margin: 0 0 22px -8px; filter: drop-shadow(0 18px 40px rgba(107, 55, 160, 0.45)); }
.hero h1 .line2 { display: block; font: 700 0.62em/1.1 var(--font-brand); letter-spacing: 0.12em; margin-top: 0.2em; }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 540px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text-2); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold-400); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 99px; background: rgba(142, 92, 200, 0.1); border: 1px solid rgba(184, 147, 232, 0.25); font-size: 13px; color: var(--ivy-200); font-weight: 500; }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; }
.pill .dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffffff; animation: pulse 1.8s infinite; }
.pill.closed { background: var(--bad-bg); border-color: rgba(248, 113, 113, 0.3); color: #fecaca; }
.pill.closed .dot { background: var(--bad); }
@keyframes pulse { 50% { transform: scale(0.5); opacity: 0.5; } }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1200px; }
.hero-visual .pass-card { transform: rotateY(-14deg) rotateX(6deg) rotateZ(3deg); animation: float 7s ease-in-out infinite; }
.hero-visual .pass-card.back { position: absolute; transform: translate(-70px, 30px) rotateY(-14deg) rotateX(6deg) rotateZ(-8deg) scale(0.9); filter: brightness(0.6) blur(1px); animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { translate: 0 -14px; } }
.orbit { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed rgba(230, 214, 184, 0.25); animation: spin 60s linear infinite; }
.orbit::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 20px var(--gold-400); }

.steps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 30px 0 70px; }
.step-tile { padding: 24px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.step-tile .num { font: 800 46px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(230, 214, 184, 0.5); position: absolute; right: 18px; top: 14px; }
.step-tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(142, 92, 200, 0.12); color: var(--ivy-300); margin-bottom: 18px; border: 1px solid rgba(184, 147, 232, 0.2); }
.step-tile .ic svg { width: 22px; height: 22px; }
.step-tile h3 { font-size: 17px; margin-bottom: 6px; }
.step-tile p { color: var(--text-2); font-size: 14px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 80px; }
.price-card { padding: 30px; position: relative; overflow: hidden; }
.price-card.featured { border-color: rgba(230, 214, 184, 0.4); background: linear-gradient(160deg, rgba(230, 214, 184, 0.12), rgba(46, 20, 70, 0.55) 45%); }
.price-card .amount { font: 800 44px/1 var(--font-display); letter-spacing: -0.03em; margin: 16px 0 6px; }
.price-card .amount small { font-size: 16px; color: var(--text-2); font-weight: 600; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card li svg { width: 18px; height: 18px; color: var(--ivy-400); flex: none; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 12px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-3); font-size: 13px; }
.help-foot[hidden] { display: none; }
.help-lines { display: grid; justify-items: center; gap: 2px; text-align: center; }
.help-lines p { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; line-height: 1.6; }
.help-lines svg { color: var(--gold-400); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .steps-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps-strip, .pricing { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .hero-visual .pass-card { --w: 230px; }
  .orbit { width: 320px; height: 320px; }
  .topbar .brand .sub { display: none; }
}

/* ---------------------------------------------------------------- */
/* Entry pass card (shared by preview, digital pass & landing)       */
/* ---------------------------------------------------------------- */
.pass-card {
  --w: 300px;
  width: var(--w); aspect-ratio: 54 / 86; border-radius: calc(var(--w) * 0.06); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(230, 214, 184, 0.22), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(142, 92, 200, 0.25), transparent 60%),
    linear-gradient(160deg, #321a4d 0%, #1f0c33 55%, #12061c 100%);
  border: 1px solid rgba(246, 231, 219, 0.28);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--w) * 0.07);
  color: #faf4fc; font-size: calc(var(--w) * 0.045);
}
.pass-card::before { /* holographic sheen */
  content: ''; position: absolute; inset: -40%; background: conic-gradient(from 200deg, transparent 0 60%, rgba(246, 231, 219, 0.16) 70%, rgba(184, 147, 232, 0.12) 78%, transparent 88%); animation: spin 14s linear infinite; pointer-events: none;
}
.pass-card::after { /* leaf watermark */
  content: ''; position: absolute; width: 150%; height: 40%; left: -25%; bottom: 20%; opacity: 0.045; background: url('/brand/mark') center / contain no-repeat; pointer-events: none;
}
.pass-card > * { position: relative; z-index: 1; }
.pass-card .pc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.pass-card .pc-brand { display: flex; align-items: center; gap: 0.45em; font: 700 1.1em/1 var(--font-brand); letter-spacing: 0.06em; color: var(--gold-300); }
.pass-card .pc-brand img { height: 1.5em; width: auto; object-fit: contain; }
.pass-card .pc-year { font: 700 0.72em/1 var(--font-body); letter-spacing: 0.2em; color: var(--gold-300); }
.pass-card .pc-photo { width: 46%; aspect-ratio: 1; border-radius: 50%; margin: 8% 0 5%; padding: 0.22em; background: var(--grad-gold); box-shadow: 0 10px 30px -10px rgba(230, 214, 184, 0.7); }
.pass-card .pc-photo > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #241238; display: grid; place-items: center; font: 700 2em/1 var(--font-display); color: var(--ivy-300); }
.pass-card .pc-name { font: 700 1.5em/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pass-card .pc-team { margin-top: 0.35em; font-weight: 600; color: var(--gold-300); font-size: 0.95em; }
.pass-card .pc-inst { margin-top: 0.2em; color: rgba(244, 236, 248, 0.65); font-size: 0.82em; }
.pass-card .pc-role { margin-top: auto; display: inline-block; padding: 0.35em 1em; border-radius: 99px; font: 700 0.68em/1.2 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; background: rgba(142, 92, 200, 0.18); color: var(--ivy-200); border: 1px solid rgba(184, 147, 232, 0.3); }
.pass-card .pc-qr { margin-top: 5%; width: 34%; aspect-ratio: 1; background: #fdf9f4; border-radius: 0.6em; padding: 0.45em; display: grid; place-items: center; }
.pass-card .pc-qr img { width: 100%; height: 100%; }
.pass-card .pc-qr.locked { background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(246, 231, 219, 0.35); color: rgba(246, 231, 219, 0.8); font-size: 0.58em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; padding: 0.6em; }
.pass-card .pc-code { margin-top: 0.6em; font: 600 0.72em/1 ui-monospace, monospace; letter-spacing: 0.18em; color: rgba(244, 236, 248, 0.6); }

/* ---------------------------------------------------------------- */
/* Registration wizard                                               */
/* ---------------------------------------------------------------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 10px 0 80px; align-items: start; }
.reg-aside { position: sticky; top: 96px; display: grid; gap: 18px; justify-items: center; }
.reg-aside .label { font-size: 12px; color: var(--text-3); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.reg-aside .pass-card { --w: 300px; }
.total-box { width: 300px; padding: 18px 20px; display: grid; gap: 8px; }
.total-box .line { display: flex; justify-content: space-between; color: var(--text-2); font-size: 14px; }
.total-box .grand { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.total-box .grand strong { font: 800 26px/1 var(--font-display); }
@media (max-width: 980px) { .reg-layout { grid-template-columns: 1fr; } .reg-aside { display: none; } }

.progress { display: flex; gap: 8px; margin-bottom: 30px; }
.progress .seg { flex: 1; }
.progress .bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width 0.5s var(--ease); }
.progress .seg.done .bar i, .progress .seg.current .bar i { width: 100%; }
.progress .seg.current .bar i { background: var(--grad-brand); }
.progress .seg span { display: block; margin-top: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: 0.04em; }
.progress .seg.current span { color: var(--text); }
@media (max-width: 560px) { .progress .seg span { display: none; } .progress .seg.current span { display: block; } }

.step { display: none; }
.step.active { display: block; animation: step-in 0.35s var(--ease) both; }
.step.active.back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateY(-16px); } }
.step-head { margin-bottom: 26px; }
.step-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 10px 0 8px; }
.step-head p { color: var(--text-2); overflow-wrap: break-word; }
.social-notice {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a; font-size: 15px; font-weight: 600; line-height: 1.45;
}
.social-notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #fbbf24; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
@media (max-width: 640px) {
  .step-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .step-nav button {
    width: 100%;
    justify-content: center;
  }
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) { .choice-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .choice-grid,
  .choice-grid.cols-3 { grid-template-columns: 1fr; }
}
.choice {
  position: relative; text-align: left; padding: 26px; border-radius: var(--radius-lg); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.choice:hover:not(.disabled):not(:disabled) { transform: translateY(-3px); border-color: var(--line-strong); }
.choice.selected { border-color: rgba(184, 147, 232, 0.6); background: linear-gradient(160deg, rgba(142, 92, 200, 0.16), rgba(46, 20, 70, 0.55)); box-shadow: var(--glow); }
.choice.disabled, .choice:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.choice .ci { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-bottom: 18px; color: var(--ivy-300); transition: all 0.25s; }
.choice.selected .ci { background: var(--grad-brand); color: #ffffff; border-color: transparent; }
.choice .ci svg { width: 26px; height: 26px; }
.choice h3 { font-size: 20px; margin-bottom: 6px; }
.choice p { color: var(--text-2); font-size: 14px; }
.choice .price { margin-top: 16px; font: 700 18px/1 var(--font-display); }
.choice .price small { font: 500 13px var(--font-body); color: var(--text-3); }
.choice .tick { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all 0.25s; }
.choice.selected .tick { background: var(--gold-400); border-color: var(--gold-400); color: #2a0f3d; }
.choice .tick svg { width: 14px; height: 14px; opacity: 0; }
.choice.selected .tick svg { opacity: 1; }
.choice .pass-pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-bottom: 10px;
  border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-300); background: rgba(230, 214, 184, 0.12); border: 1px solid rgba(230, 214, 184, 0.3);
}
.choice .sold-pill { position: absolute; top: 18px; left: 18px; z-index: 1; }

.team-config { margin-top: 22px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
@media (max-width: 640px) { .team-config { grid-template-columns: 1fr; } }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(14, 5, 22, 0.55); border: 1px solid var(--line-strong); height: 56px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.05); font-size: 22px; cursor: pointer; transition: background 0.2s; }
.stepper button:hover:not(:disabled) { background: rgba(142, 92, 200, 0.2); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 82px; text-align: center; font: 700 16px var(--font-display); }
.stepper output small { display: block; font: 500 11px var(--font-body); color: var(--text-3); }

.member-card { padding: 24px; margin-bottom: 18px; border-radius: var(--radius-lg); }
.member-card .mc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.member-card .mc-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--font-display); background: rgba(230, 214, 184, 0.14); color: var(--gold-300); border: 1px solid rgba(230, 214, 184, 0.3); }
.member-card .mc-head h3 { font-size: 17px; }
.member-card .mc-head .badge { margin-left: auto; }
.member-body { display: grid; grid-template-columns: 150px 1fr; gap: 22px; }
@media (max-width: 640px) { .member-body { grid-template-columns: 1fr; } }

.photo-drop {
  position: relative; width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; cursor: pointer;
  display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 12.5px; line-height: 1.35;
  background: rgba(14, 5, 22, 0.55); border: 1.5px dashed rgba(246, 231, 219, 0.4); transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--gold-300); background: rgba(230, 214, 184, 0.08); transform: scale(1.02); }
.photo-drop svg { width: 26px; height: 26px; margin: 0 auto 6px; color: var(--gold-400); }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.photo-drop.has-photo { border-style: solid; border-color: var(--gold-400); padding: 0; }
.photo-drop .edit-chip { position: absolute; bottom: 2px; right: 6px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-gold); color: #2a0f3d; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.photo-drop .edit-chip svg { width: 17px; height: 17px; margin: 0; color: inherit; }
.photo-drop.invalid { border-color: var(--bad); background: var(--bad-bg); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-caption { text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold-400); letter-spacing: 0.02em; line-height: 1.35; }

.pay-panel { margin-top: 18px; padding: 22px; border-radius: var(--radius-lg); animation: rise 0.45s var(--ease) both; }
.bank-rows { display: grid; gap: 2px; margin: 4px 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(14, 5, 22, 0.45); }
.bank-row .k { color: var(--text-3); font-size: 12.5px; }
.bank-row .v { font-weight: 600; font-size: 14.5px; text-align: right; overflow-wrap: anywhere; }
.copy-btn { border: 0; background: rgba(255, 255, 255, 0.06); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--text-2); flex: none; }
.copy-btn:hover { background: rgba(230, 214, 184, 0.2); color: var(--gold-300); }
.copy-btn svg { width: 15px; height: 15px; }
.receipt-drop { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); cursor: pointer; position: relative; transition: border-color 0.2s, background 0.2s; }
.receipt-drop:hover { border-color: var(--gold-400); background: rgba(230, 214, 184, 0.05); }
.receipt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-drop .thumb { width: 56px; height: 56px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; flex: none; overflow: hidden; color: var(--gold-400); }
.receipt-drop .thumb img { width: 100%; height: 100%; object-fit: cover; }

.review-list { display: grid; gap: 12px; min-width: 0; }
.review-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.review-item .avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.review-item .meta { flex: 1; min-width: 0; }
.review-item .meta strong { display: block; overflow-wrap: anywhere; }
.review-item .meta > span { color: var(--text-2); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-item [data-edit] { flex: none; }

.answers { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; min-width: 0; width: 100%; }
.answers div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.answers span { color: var(--text-3) !important; font-size: 12px !important; white-space: normal !important; overflow-wrap: break-word; word-break: break-word; }
.answers b { color: var(--text); font-size: 13.5px; font-weight: 600; overflow-wrap: break-word; word-break: break-word; }

.check-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.check-row span { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.check-row input { width: 20px; height: 20px; accent-color: var(--ivy-500); margin-top: 1px; flex: none; }
.check-row.female-confirm {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px;
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a; font-size: 15px; font-weight: 600; line-height: 1.45;
}
.check-row.female-confirm input { width: 22px; height: 22px; accent-color: #fbbf24; }

@media (max-width: 560px) {
  .step[data-step="3"] .spread {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .step[data-step="3"] .spread > div:last-child {
    text-align: left !important;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .review-item {
    position: relative;
    padding: 14px;
    gap: 12px;
    align-items: flex-start;
  }
  .review-item .avatar {
    width: 44px;
    height: 44px;
  }
  .review-item .meta {
    padding-right: 68px;
  }
  .review-item .meta > span {
    white-space: normal;
    word-break: break-word;
  }
  .review-item [data-edit] {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

.success { text-align: center; padding: 30px 0 80px; }
.success .seal { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: var(--grad-gold); color: #2a0f3d; box-shadow: 0 0 0 10px rgba(230, 214, 184, 0.12), 0 0 0 22px rgba(230, 214, 184, 0.06), 0 20px 60px -10px rgba(230, 214, 184, 0.6); animation: seal 0.9s var(--ease) both; }
.success .seal svg { width: 52px; height: 52px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.4s var(--ease) forwards; }
@keyframes seal { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.code-chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-radius: 16px; background: rgba(230, 214, 184, 0.1); border: 1px solid rgba(230, 214, 184, 0.35); font: 700 26px/1 var(--font-display); letter-spacing: 0.06em; color: var(--gold-300); margin: 22px 0; }
.success-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; text-align: left; max-width: 720px; margin: 10px auto 0; padding: 26px; }
@media (max-width: 640px) { .success-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.success-grid > * { min-width: 0; max-width: 100%; }
.qr-frame { width: 190px; height: 190px; padding: 14px; border-radius: 20px; background: #fdf9f4; box-shadow: 0 0 0 6px rgba(230, 214, 184, 0.25), 0 20px 40px -14px rgba(0, 0, 0, 0.7); }
.qr-frame img { width: 100%; height: 100%; }
.next-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 12px; color: var(--text-2); font-size: 14.5px; }
.next-steps li b { color: var(--text); }
.next-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(142, 92, 200, 0.16); color: var(--ivy-300); flex: none; }

.desk-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 22px; background: rgba(230, 214, 184, 0.1); border: 1px solid rgba(230, 214, 184, 0.35); color: var(--gold-300); font-size: 14px; }
.desk-banner svg { width: 18px; height: 18px; flex: none; }
.closed-card { text-align: center; padding: 50px 24px; max-width: 560px; margin: 40px auto; }

/* ---------------------------------------------------------------- */
/* Digital pass page                                                 */
/* ---------------------------------------------------------------- */
.pass-page { padding-top: 10px; padding-bottom: 80px; }
.status-hero { padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-bottom: 34px; }
@media (max-width: 720px) { .status-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.status-hero h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 12px 0 10px; }
.status-hero .amount { font: 800 30px/1 var(--font-display); margin-top: 16px; }
.passes { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.passes .pass-card { --w: 300px; }
.pass-wrap { display: grid; gap: 12px; justify-items: center; }
.timeline { display: flex; gap: 0; margin: 22px 0 6px; }
.timeline .tl { flex: 1; display: grid; gap: 8px; justify-items: start; position: relative; padding-right: 14px; font-size: 12.5px; color: var(--text-3); }
.timeline .tl .d { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: var(--ivy-900); position: relative; z-index: 1; }
.timeline .tl .d svg { width: 13px; height: 13px; }
.timeline .tl::before { content: ''; position: absolute; top: 13px; left: 26px; right: 0; height: 1.5px; background: var(--line-strong); }
.timeline .tl:last-child::before { display: none; }
.timeline .tl.done { color: var(--text-2); }
.timeline .tl.done .d { background: var(--ivy-500); border-color: var(--ivy-500); color: #ffffff; }
.timeline .tl.done::before { background: var(--ivy-500); }
.timeline .tl.now { color: var(--gold-300); }
.timeline .tl.now .d { border-color: var(--gold-400); box-shadow: 0 0 0 5px rgba(230, 214, 184, 0.15); }
.timeline .tl.now .d::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); animation: pulse 1.6s infinite; }
@media (max-width: 720px) { .timeline { text-align: left; } }

@media print {
  .topbar, .ambient, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- */
/* Participant portal                                                */
/* ---------------------------------------------------------------- */
.portal { padding-top: 10px; padding-bottom: 60px; }
.portal-login { width: min(460px, 100%); margin: 30px auto; padding: 34px; text-align: center; }
.portal-login .portal-logo { width: 150px; margin: 0 auto 14px; filter: drop-shadow(0 14px 30px rgba(107, 55, 160, 0.45)); }
.portal-login h1 { font-size: 26px; margin-bottom: 8px; }
.portal-login p { font-size: 14px; margin-bottom: 22px; }
.portal-login form { text-align: left; }

.portal-hero { display: flex; align-items: center; gap: 24px; margin: 18px 0 30px; }
.portal-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; }
.portal-photo { width: 104px; height: 104px; border-radius: 28px; object-fit: cover; flex: none; border: 3px solid rgba(246, 231, 219, 0.6); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8); font-size: 34px; }
@media (max-width: 560px) { .portal-hero { flex-direction: column; text-align: center; } .portal-hero .row { justify-content: center; } }

.portal-pay { padding: 26px; margin-bottom: 36px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .portal-pay { grid-template-columns: 1fr; justify-items: center; } }

.portal-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 30px; flex-wrap: wrap; margin-bottom: 18px; }
.portal-section-head h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 8px; }
.portal-section-head p { max-width: 440px; font-size: 14px; }

.pass-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pass-days { grid-template-columns: 1fr; } }
.pass-day { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(46, 20, 70, 0.35); border: 1px solid var(--line); }
.pd-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 6px; }
.pd-head strong { font: 700 15px var(--font-brand); letter-spacing: 0.08em; color: var(--gold-300); }
.pass-tile {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; gap: 4px 14px; text-align: left;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--text);
  background: linear-gradient(150deg, rgba(142, 92, 200, 0.22), rgba(46, 20, 70, 0.55));
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.pass-tile.night { background: linear-gradient(150deg, rgba(230, 214, 184, 0.16), rgba(29, 13, 45, 0.85)); }
.pass-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(246, 231, 219, 0.5); box-shadow: var(--glow); }
.pass-tile:disabled { cursor: default; opacity: 0.75; }
.pt-kind { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivy-200); display: inline-flex; align-items: center; gap: 6px; }
.pass-tile.night .pt-kind { color: var(--gold-300); }
.pt-label { grid-column: 1; font: 700 18px/1.2 var(--font-display); }
.pt-qr { grid-column: 2; grid-row: 1 / span 3; width: 92px; height: 92px; border-radius: 12px; background: #fdf9f4; display: grid; place-items: center; padding: 6px; color: #8a779b; align-self: center; }
.pt-qr img { width: 100%; height: 100%; }
.pt-qr svg { width: 34px; height: 34px; }
.is-locked .pt-qr { background: rgba(255, 255, 255, 0.06); color: var(--text-3); border: 1px dashed var(--line-strong); }
.pt-state { grid-column: 1; align-self: end; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.pt-state svg { width: 14px; height: 14px; }
.pt-state.in { color: var(--ok); }
.pt-state.used { color: var(--text-3); }
.is-used .pt-qr img { opacity: 0.25; filter: grayscale(1); }
.pt-stamp { position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-14deg); padding: 4px 12px; border: 2.5px solid var(--bad); color: var(--bad); border-radius: 8px; font: 800 16px var(--font-display); letter-spacing: 0.2em; background: rgba(17, 6, 25, 0.75); }

.portal-card { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 48px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.portal-card-preview .pass-card { --w: 280px; }
@media (max-width: 760px) { .portal-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } .portal-card .row { justify-content: center; } }
.portal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; text-align: left; }
.portal-details div { padding: 12px 14px; border-radius: 14px; background: rgba(14, 5, 22, 0.45); border: 1px solid var(--line); min-width: 0; }
.portal-details span { display: block; font-size: 12px; color: var(--text-3); }
.portal-details b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .portal-details { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.pass-modal { width: min(440px, calc(100vw - 24px)); }
.big-qr { position: relative; width: min(320px, 72vw); aspect-ratio: 1; margin: 18px auto 16px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 6px rgba(230, 214, 184, 0.35); }
.big-qr img { width: 100%; height: 100%; }
.big-qr.is-used img { opacity: 0.2; }
.big-qr .pt-stamp { right: 50%; transform: translate(50%, -50%) rotate(-14deg); font-size: 26px; }

/* Registration success: portal logins */
.login-list { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.login-row { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(14, 5, 22, 0.45); border: 1px solid var(--line); }
.login-row strong { font-size: 14px; }
.login-row strong, .login-row span { min-width: 0; overflow-wrap: anywhere; }
.login-row span { font-size: 12.5px; color: var(--text-3); grid-column: 1; }
.login-row code { grid-row: 1 / span 2; grid-column: 2; font: 700 20px ui-monospace, monospace; letter-spacing: 0.18em; color: var(--gold-300); padding: 6px 12px; border-radius: 10px; background: rgba(230, 214, 184, 0.1); border: 1px solid rgba(230, 214, 184, 0.3); }
@media (max-width: 640px) {
  .success-grid > div:not(.qr-frame) { width: 100%; }
  .login-row { grid-template-columns: 1fr; text-align: center; }
  .login-row code { grid-row: auto; grid-column: 1; justify-self: center; margin-top: 8px; font-size: 18px; letter-spacing: 0.14em; }
}

/* Live (rotating) pass QR */
.pt-qr { flex-direction: column; gap: 4px; }
.pt-qr svg { width: 30px; height: 30px; color: #6b37a0; }
.pt-qr small { font-size: 10px; font-weight: 700; color: #6b37a0; letter-spacing: 0.04em; text-align: center; line-height: 1.1; }
.is-used .pt-qr svg, .is-used .pt-qr small { opacity: 0.3; }
.live-owner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(14, 5, 22, 0.5); border: 1px solid var(--line); }
.live-owner img, .live-owner .avatar { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.live-owner strong { display: block; font-size: 15px; }
.live-owner span { font-size: 12px; color: var(--text-3); }
.live-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--ok-bg); color: var(--ok) !important; font-size: 11px !important; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.2s infinite; }
.live-badge b { font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.big-qr.live { overflow: hidden; }
.live-qr { width: 100%; height: 100%; }
.live-qr svg { width: 100%; height: 100%; display: block; }
.live-qr svg rect[fill="white"], .live-qr svg path[fill="white"] { fill: #fff; }
.live-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 40%, rgba(142, 92, 200, 0.16) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 2.4s linear infinite; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.live-timer { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; width: min(320px, 72vw); margin: 0 auto; }
.live-timer i { display: block; height: 100%; background: var(--grad-gold); transition: width 0.5s linear; }
.check-row.invalid { color: var(--bad); }
.check-row.invalid input { outline: 2px solid var(--bad); outline-offset: 2px; }
.field select option { background: #1d0d2d; color: #faf4fc; }
.designed-card { width: min(300px, 80vw); height: auto; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); }

/* Portal: offline reassurance under the passes */
.offline-tip { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 18px; border: 1px dashed rgba(230, 214, 184, 0.35); background: rgba(230, 214, 184, 0.06); }
.offline-tip > svg { width: 26px; height: 26px; flex: none; color: var(--gold-300); margin-top: 2px; }
.offline-tip strong { display: block; margin-bottom: 4px; }
.offline-tip p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* Register page: shown only to signed-in desk staff */
.staff-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(230, 214, 184, 0.08); border: 1px solid rgba(230, 214, 184, 0.25); color: var(--text-2); font-size: 13px; line-height: 1.5; }
.staff-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold-300); }
