.reg { max-width: 820px; padding: 48px 0 96px; }
.reg-head { margin-bottom: 30px; }
.reg-head h1 { font-size: clamp(46px, 8vw, 84px); margin: 16px 0 4px; }
.reg-head .script-tag { font-size: clamp(30px, 5vw, 44px); margin: 0 0 14px 4px; }
.reg-head p { font-size: 17px; }
.closed { padding: 32px; text-align: center; }
.closed h2 { font-size: 40px; margin-bottom: 10px; }

.progress { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; position: sticky; top: 76px; z-index: 5; }
.progress li { flex: 1; min-width: 0; white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: rgba(6,13,32,.85); border: 1px solid var(--line); backdrop-filter: blur(10px); font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--muted); transition: all .25s; }
.progress li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 12px; flex: none; }
.progress li.on { color: var(--text); border-color: rgba(242,191,74,.45); }
.progress li.on span { background: var(--gold); color: #1a1203; }
.progress li.done span { background: var(--green); color: #04220f; }

.reg-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.progress li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.sect { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; scroll-margin-top: 140px; }
.sect-title { font-family: var(--display); text-transform: uppercase; font-size: 30px; display: flex; align-items: center; gap: 14px; }
/* sweater numbers: cream twill with a red outline */
.sect-title .num { font-family: var(--varsity); font-size: 30px; line-height: 1; color: var(--cream); -webkit-text-stroke: 1px var(--barn); text-shadow: 2px 2px 0 var(--barn), 3px 3px 0 rgba(0,0,0,.35); letter-spacing: .02em; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 -8px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.sub-h small { font-size: 13px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 8px; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 58px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4,10,28,.55); transition: all .15s; }
.seg span b { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.seg span small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.seg input:checked + span { border-color: var(--gold); background: rgba(242,191,74,.12); box-shadow: 0 0 0 3px rgba(242,191,74,.15); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.rating-box { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(4,10,28,.55); }
.rating-num { font-family: var(--display); line-height: .9; text-align: center; min-width: 88px; }
.rating-num b { font-size: 72px; font-weight: 400; display: block; transition: color .2s; }
.rating-num span { color: var(--faint); font-size: 20px; }
.rating-main { min-width: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--royal-2) 0%, var(--gold) var(--p, 44%), rgba(255,255,255,.1) var(--p, 44%)); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 10px; background: rgba(255,255,255,.1); }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--royal-2), var(--gold)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); cursor: grab; }
.ticks { display: flex; justify-content: space-between; padding: 0 6px; font-family: var(--varsity); font-size: 13px; color: var(--faint); margin-top: 2px; }
.ticks span { cursor: pointer; width: 22px; text-align: center; border-radius: 6px; transition: color .15s, background .15s; }
.ticks span.on { color: #1a1203; background: var(--gold); }
.ends { display: flex; justify-content: space-between; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; color: var(--gold-2); margin-top: 6px; }
.warn-box { padding: 14px 16px; border-radius: 14px; background: rgba(242,191,74,.08); border: 1px dashed rgba(242,191,74,.45); color: var(--muted); font-size: 14.5px; }
.warn-box b { display: block; color: var(--gold-2); font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 13.5px; margin-bottom: 4px; }
.sect-title .opt { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-left: auto; }
.rating-desc { margin: 12px 0 0; min-height: 3.2em; font-size: 15px; }
.rating-desc b { display: inline-block; font-family: var(--script); font-size: 30px; font-weight: 400; line-height: 1; color: var(--cream); text-shadow: 0 2px 0 var(--barn); margin-right: 10px; vertical-align: -3px; }

.photo-area { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; }
.photo-preview { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: rgba(4,10,28,.6); border: 2px dashed var(--line-2); touch-action: none; }
.photo-preview.has { border-style: solid; border-color: rgba(242,191,74,.5); cursor: grab; }
.photo-preview img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.ph-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--faint); font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ph-empty svg { width: 70px; height: 70px; }
.ph-guide { position: absolute; left: 50%; top: 40%; width: 62%; aspect-ratio: .8; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); box-shadow: 0 0 0 999px rgba(4,10,28,.28); pointer-events: none; opacity: 0; transition: opacity .2s; }
.photo-preview.has .ph-guide, .cam-view .ph-guide { opacity: 1; }
.photo-preview.has.dragging .ph-guide { opacity: .4; }
.photo-actions { display: grid; gap: 12px; justify-items: start; }
.photo-actions .hint { font-size: 13.5px; margin: 0; }
.zoom { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px; }
.zoom input { flex: 1; }

.submit-sect { gap: 18px; }
.pay-ticket { max-width: 100%; }
.pay-box { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 24px 18px 20px !important; }
.pay-box .label { color: var(--barn); }
.pay-fee b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; margin-top: 6px; color: var(--cream-ink); }
.pay-how p { margin: 6px 0 0; color: var(--cream-ink); font-size: 15px; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: ps; }
.pay-steps li { counter-increment: ps; padding: 14px 14px 14px 52px; border-radius: 14px; background: rgba(4,10,28,.5); border: 1px solid var(--line); position: relative; font-size: 14px; color: var(--muted); }
.pay-steps li::before { content: counter(ps); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1203; font-family: var(--display); font-size: 14px; }
.pay-steps b { display: block; color: var(--text); font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin-bottom: 2px; }
.pay-steps em { color: var(--gold-2); font-style: normal; font-weight: 600; }
.succ-pay { margin: 18px auto 0; max-width: 460px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(242,191,74,.45); background: rgba(242,191,74,.08); font-size: 14.5px; color: var(--text); }
.succ-pay b { color: var(--gold-2); font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 4px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--muted); font-size: 14.5px; }
.check.bad { color: #ff9c9c; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); margin: 1px 0 0; }
.submit-sect .btn { justify-self: start; }
.btn.loading .lbl::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-err { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255,74,74,.1); border: 1px solid rgba(255,74,74,.35); color: #ffc9c9; }
.field.invalid .input, .field.invalid .seg span, .field.invalid .rating-box { border-color: rgba(255,90,90,.7); }
.field .err-msg { color: #ff9c9c; font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 200; background: rgba(2,6,18,.8); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.modal-box { padding: 24px; width: min(560px, 100%); display: grid; gap: 16px; background: var(--card-solid); }
.modal-box h3 { font-size: 30px; }
.cam-view { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #000; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-actions { display: flex; gap: 12px; justify-content: flex-end; }

.success { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(800px 600px at 50% 30%, rgba(242,191,74,.18), transparent 60%), rgba(4,9,24,.94); backdrop-filter: blur(10px); animation: fadeIn .4s ease; }
.success-inner { text-align: center; max-width: 520px; }
.success h2 { font-size: clamp(48px, 10vw, 80px); margin: 12px 0 10px; }
.success .draft-card { width: min(280px, 72vw); margin: 26px auto 0; animation: cardIn 1s cubic-bezier(.2,1.3,.4,1) .2s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateY(80deg) scale(.8); } }

@media (max-width: 640px) {
  .reg { padding-top: 28px; }
  .sect { padding: 22px 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .rating-box { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .rating-num { display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .rating-num b { font-size: 56px; }
  .photo-area { grid-template-columns: 1fr; }
  .photo-preview { width: min(260px, 100%); margin: auto; }
  .photo-actions { justify-items: stretch; }
  .progress { top: 72px; }
  .progress li { padding: 8px 8px; font-size: 10.5px; gap: 5px; letter-spacing: .06em; }
  .progress li span { width: 20px; height: 20px; font-size: 11px; }
  .progress li:not(.on) { flex: 0 0 auto; }
  .progress li:not(.on) em { display: none; }
  .submit-sect .btn { justify-self: stretch; }
  .pay-box, .pay-steps { grid-template-columns: 1fr; }
  .pay-box { gap: 8px; }
  .sect-title { font-size: 26px; gap: 10px; }
  .sect-title .num { font-size: 24px; }
}
@media (max-width: 360px) {
  .submit-sect .btn.lg { padding: 17px 18px; letter-spacing: .08em; font-size: 16px; white-space: normal; }
  .rating-desc b { font-size: 26px; }
}
