body { min-height: 100%; background: radial-gradient(90% 60% at 80% 0%, #1b2550 0%, var(--bg) 60%) fixed; }
.app { max-width: 1240px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 28px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0 22px; }
.top .lockup { --h: 34px; }
.top-event { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); text-align: right; }
.top-event b { color: var(--yellow); }

.view { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
.lede { color: var(--mute); font-size: 18px; margin-top: 10px; line-height: 1.4; }

.fields { margin-top: 20px; display: grid; gap: 13px; }
.f { display: grid; gap: 6px; }
.f > span { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.86); }
.f i { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 6px; }
.f small { color: var(--faint); font-size: 13px; }
input[type="text"] {
  font: inherit; font-size: 19px; color: #fff; width: 100%; height: 56px; padding: 0 18px;
  background: rgba(255, 255, 255, 0.07); border: 1.5px solid var(--line); border-radius: 14px; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.32); }
input[type="text"]:focus { border-color: var(--blue); background: rgba(66, 133, 244, 0.12); }
input.bad { border-color: var(--red); }

.selfie { display: flex; align-items: center; gap: 12px; }
.selfie-btn {
  flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; font: inherit; color: #fff;
  padding: 12px 16px; border-radius: 16px; background: rgba(251, 188, 4, 0.09); border: 1.5px dashed rgba(251, 188, 4, 0.55);
}
.selfie-ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, 0.1); background-size: cover; background-position: center; }
.selfie-tx { display: grid; gap: 2px; }
.selfie-tx b { font-size: 17px; }
.selfie-tx em { font-style: normal; font-size: 13.5px; color: var(--mute); line-height: 1.3; }
.selfie.has .selfie-btn { border-style: solid; border-color: var(--green); background: rgba(52, 168, 83, 0.12); }
.selfie-x { font: inherit; font-size: 14px; color: var(--mute); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 10px 4px; }

.err { color: #ff8a80; font-size: 15px; min-height: 20px; }
.go { width: 100%; font-size: 20px; min-height: 62px; }

.side { position: sticky; top: 20px; padding-top: 8px; display: grid; gap: 0; }
.side .selfie { margin-top: 22px; }
.side .err { margin: 10px 0 6px; }
.side-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.side-note { color: var(--faint); font-size: 14px; margin-top: 12px; text-align: center; }

/* done */
.done { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); align-items: center; }
.done-card { margin-top: 22px; }
.done-ice { margin-top: 18px; font-size: 18px; color: var(--mute); line-height: 1.4; }
.done-ice b { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.done-side { display: grid; gap: 14px; justify-items: stretch; text-align: center; }
.done-qr { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 14px; justify-items: center; }
.done-qr .qr { background: #fff; padding: 12px; border-radius: 14px; width: min(210px, 100%); line-height: 0; }
.done-qr .qr svg { width: 100%; height: auto; display: block; }
.done-qr p { font-size: 14.5px; color: var(--mute); line-height: 1.35; }
.done-qr p b { display: block; color: #fff; font-size: 17px; margin-bottom: 2px; }
.count { color: var(--faint); font-size: 14px; min-height: 18px; }

.locked { display: block; text-align: center; padding-top: 16vh; }

@media (max-width: 860px) {
  .app { padding-left: 18px; padding-right: 18px; }
  .top-event { display: none; }
  .view, .done { grid-template-columns: 1fr; gap: 22px; }
  .side { position: static; }
  .done-side { order: 2; }
}
