/* Preregistration and withdrawal: a ticket on the studio's paper. The form is the ticket's body; below a torn line
   sits the stub, which on success becomes the one withdrawal link to keep. Everything works as a plain form;
   ticket.js only lays the blocks and copies the link. */
.reg { padding-block: 40px 96px; }
.registration-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--muted); font-size: 13px; font-weight: 560; }
.registration-back .arrow-icon { width: 16px; height: 16px; }
.registration-back:hover { color: var(--ink); }
.registration-back:hover .arrow-icon { transform: translateX(-3px); }

.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 548px); grid-template-rows: auto 1fr; grid-template-areas: "intro ticket" "aside ticket"; gap: 0 80px; align-items: start; margin-top: 28px; }
.reg-intro { grid-area: intro; padding-top: 8px; }
.reg-ticket-column { grid-area: ticket; }
.reg-aside { grid-area: aside; margin-top: 40px; }
.reg-eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; }
.reg-intro h1 { margin-top: 14px; font-size: clamp(44px, 5.4vw, 76px); font-weight: 780; line-height: 1.06; letter-spacing: -.06em; }
.reg-lead { max-width: 27em; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.85; }

/* The illustration: the gate at the end of the board, a night window on the paper. */
.reg-visual { position: relative; overflow: hidden; border-radius: 24px; background: var(--night); box-shadow: 0 0 0 1px rgb(0 0 0 / 22%), 0 1px 0 rgb(255 255 255 / 10%) inset, 0 40px 80px -46px rgb(11 18 23 / 80%); isolation: isolate; }
.reg-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.reg-visual:hover img { transform: scale(1.025); }
.reg-visual figcaption { position: absolute; left: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgb(11 18 23 / 62%); color: rgb(234 240 243 / 78%); font-size: 11.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reg-promises { display: grid; gap: 2px; margin-top: 26px; }
.reg-promises li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reg-promises li:last-child { border-bottom: 0; }
.reg-promises svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reg-promises strong { display: block; font-size: 15px; font-weight: 680; letter-spacing: -.02em; }
.reg-promises span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* The ticket. Paper a shade whiter than the page, two layered shadows, and a torn line with notches cut out. */
.ticket { position: relative; border-radius: 24px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .15 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #fff inset, 0 2px 4px rgb(19 38 31 / 4%), 0 36px 70px -44px rgb(19 38 31 / 45%); }
.ticket-main { position: relative; padding: 26px 32px 30px; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.ticket-kind { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.ticket-date { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ticket-date small { color: var(--muted); font-size: 11.5px; font-weight: 560; letter-spacing: 0; }
/* Four blocks, laid one by one like walls on the board as the form is filled in. */
.ticket-meter { display: inline-flex; gap: 4px; margin-left: auto; margin-right: 6px; }
.ticket-meter i { width: 11px; height: 11px; border-radius: 3px; background: var(--paper-soft); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, box-shadow .2s; }
.ticket-meter i.is-laid { background: var(--green); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 22%), 0 2px 5px -2px rgb(15 74 58 / 60%); animation: lay .42s var(--spring); }
.is-complete .ticket-meter i { box-shadow: inset 0 -2px 0 rgb(0 0 0 / 22%), 0 0 0 2px rgb(47 154 111 / 16%); }

.ticket-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.ticket-field + .ticket-field { margin-top: 22px; }
.ticket-field > label, .ticket-field > legend { display: block; margin-bottom: 9px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.field-box { position: relative; }
.field-box input { display: block; width: 100%; min-height: 54px; padding: 13px 46px 13px 46px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; outline: none; transition: border-color .2s, box-shadow .25s var(--ease); }
.field-box input { caret-color: var(--green); }
.field-box input::placeholder { color: #a3aca7; transition: opacity .2s; }
.field-box input:focus::placeholder { opacity: .45; }
/* Autofill keeps the field's own white and ink instead of the browser's tint. */
.field-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--ink); transition: background-color 600000s; }
.field-box input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgb(15 74 58 / 12%); }
.field-suggest { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.field-suggest:has(> span:not([hidden])) { margin-top: 9px; }
.field-suggest > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; animation: rise-in .3s var(--ease); }
.field-suggest button { padding: 2px 9px; border: 0; border-radius: 8px; background: #fff3d1; box-shadow: inset 0 0 0 1px #efd38b; color: #6f4b00; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; transition: background-color .2s; }
.field-suggest button:hover { background: #ffe9ad; }
.field-suggest button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.field-box input:hover { border-color: #b3b5a8; }
.field-box input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgb(15 74 58 / 12%); }
.field-box input:user-invalid { border-color: #c4705a; box-shadow: 0 0 0 4px rgb(196 112 90 / 12%); }
.field-icon, .field-ok { position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field-icon { left: 16px; stroke: var(--muted); stroke-width: 1.5; transition: stroke .2s; }
.field-box input:focus ~ .field-icon, .field-box:focus-within .field-icon { stroke: var(--green); }
.field-ok { right: 16px; stroke: #2f9a6f; stroke-width: 2.4; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring); }
.field-box input:not(:placeholder-shown):valid ~ .field-ok { opacity: 1; transform: none; }

/* Devices: three phones drawn as phones; the chosen one lifts and turns green. */
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.device { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .3s var(--spring), color .2s, background-color .2s; }
.device input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.device svg { width: 28px; height: 35px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: transform .35s var(--spring); }
.device .d-cam { fill: currentColor; stroke: none; }
.device .d-screen { fill: rgb(47 154 111 / 0); stroke: none; transition: fill .35s var(--ease); }
.device:has(input:checked) .d-screen { fill: rgb(47 154 111 / 22%); animation: boot .55s var(--ease); }
.device .d-bar { stroke-linecap: round; opacity: .5; }
.device .d-back { opacity: .5; }
.device:hover { box-shadow: inset 0 0 0 1px #b3b5a8; }
.device:has(input:checked) { background: #f3f8f4; box-shadow: inset 0 0 0 1.5px var(--green), 0 10px 20px -16px rgb(15 74 58 / 70%); color: var(--green); transform: translateY(-2px); }
.device:has(input:checked) svg { transform: translateY(-1px) rotate(-6deg); }
.device:has(input:checked)::after { content: ''; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; animation: pop .3s var(--spring); }
.device:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }

/* The notice the law asks for: kept whole and in view before the boxes. */
.ticket-notice { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ticket-notice h2 { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.ticket-notice ul { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.ticket-notice li { position: relative; padding-left: 12px; }
.ticket-notice li + li { margin-top: 6px; }
.ticket-notice li::before { content: ''; position: absolute; left: 0; top: .78em; width: 5px; height: 1.5px; border-radius: 1px; background: var(--line-strong); }
.ticket-notice b { color: var(--ink-soft); font-weight: 650; }
.ticket-notice p { margin-top: 12px; }
.ticket-notice a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.ticket-notice a .arrow-icon { width: 15px; height: 15px; }
.ticket-notice a:hover .arrow-icon { transform: translateX(2px); }

/* Consent boxes: a real checkbox under a drawn one, so the keyboard and the law both see a checkbox. */
.ticket-consents { margin-top: 18px; }
.consent { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: 13.5px; line-height: 1.7; cursor: pointer; }
.consent:last-child { border-bottom: 0; }
.consent input { position: absolute; left: 0; top: 12px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent-box { position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .15s, box-shadow .2s; }
.consent-box::after { content: ''; position: absolute; left: 7.5px; top: 3.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; border-radius: 1px; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .25s var(--spring), opacity .15s; }
.consent:hover .consent-box { box-shadow: inset 0 0 0 1.5px var(--green); }
.consent input:checked + .consent-box { background: var(--green); box-shadow: inset 0 0 0 1.5px var(--green), 0 4px 10px -5px rgb(15 74 58 / 70%); }
.consent input:checked + .consent-box::after { transform: rotate(45deg) scale(1); opacity: 1; }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--green); outline-offset: 3px; }
.consent-tag { color: var(--green); font-weight: 700; font-size: 12.5px; }
.is-optional { color: var(--ink-soft); }
.is-optional .consent-tag { color: var(--muted); }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The torn line: a dashed rule with a half circle bitten out of each edge. Each bite is a half disc that
   stops at the ticket's edge, so nothing reaches past it and a narrow screen never scrolls sideways. */
.ticket-perf { --perf-inset: 22px; position: relative; height: 0; margin-inline: var(--perf-inset); border-top: 2px dashed var(--line-strong); }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -13px; width: 12px; height: 24px; background: var(--paper); }
.ticket-perf::before { left: calc(var(--perf-inset) * -1); border-radius: 0 12px 12px 0; box-shadow: inset -1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.ticket-perf::after { right: calc(var(--perf-inset) * -1); border-radius: 12px 0 0 12px; box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.ticket-stub { padding: 24px 32px 28px; }
.ticket-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 58px; padding: 14px 20px 14px 24px; border: 0; border-radius: 16px; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
    box-shadow: 0 1px 0 rgb(255 255 255 / 14%) inset, 0 -2px 0 rgb(0 0 0 / 18%) inset, 0 14px 28px -14px rgb(15 74 58 / 75%); transition: background-color .2s, box-shadow .3s var(--ease), transform .2s var(--ease); }
.ticket-submit:hover { background: var(--green-deep); }
.ticket-submit:hover .arrow-icon { transform: translateX(3px); }
.ticket-submit:active { transform: translateY(1px); }
.ticket-submit:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.is-complete .ticket-submit { animation: ready .9s var(--ease) 1; }
.ticket-submit.is-busy { cursor: progress; opacity: .82; }
.ticket-submit.is-busy .arrow-icon { animation: nudge .9s var(--ease) infinite; }
.ticket-stub-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.7; text-align: center; }
.registration-bottom-note { margin-top: 18px; padding-inline: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.registration-bottom-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.ticket-field.is-wrong, .consent.is-wrong { animation: shake .45s var(--ease) 1; }
.consent.is-wrong .consent-box, .is-wrong .device { box-shadow: inset 0 0 0 1.5px #c4705a; }
.ticket-error { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 22px; padding: 13px 15px; border-radius: 12px; background: #fbefea; box-shadow: inset 0 0 0 1px #ebc6b8; color: #8a3f2c; font-size: 13.5px; line-height: 1.6; animation: shake .45s var(--ease) 1; }
.ticket-error svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* The stamp: inked, a little crooked, pressed once. The ink filter is set on the element in the page, beside the
   filter it names, so every engine finds it in the same document. */
.stamp { position: absolute; right: 26px; top: 64px; display: grid; justify-items: center; gap: 1px; padding: 9px 14px 8px; border: 2.5px solid currentColor; border-radius: 12px; outline: 1px solid currentColor; outline-offset: 3px; color: #1f7a57; transform: rotate(-9deg); opacity: .88; mix-blend-mode: multiply; pointer-events: none; animation: stamp .5s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
.stamp b { font-size: 19px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.stamp small { font-size: 11px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.stamp-wait { color: #b5790c; }
.ticket-title { max-width: 11em; font-size: clamp(28px, 3vw, 36px); font-weight: 760; line-height: 1.2; letter-spacing: -.045em; }
.ticket-copy { max-width: 30em; margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.ticket-done { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #eef5f0; color: var(--ink); font-size: 14px; line-height: 1.7; }
.registration-check { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: var(--green); color: #fff; }
.registration-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ticket-stub-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ticket-stub h3 { margin-top: 6px; font-size: 21px; font-weight: 720; letter-spacing: -.035em; }
.ticket-stub > p:not(.ticket-stub-label, .registration-small, .ticket-stub-note) { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.ticket-stub strong { color: var(--ink); font-weight: 650; }
.stub-link { display: flex; gap: 8px; margin-top: 18px; }
.withdrawal-save-link { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 14px 26px -16px rgb(19 38 31 / 80%); transition: background-color .2s; }
.withdrawal-save-link:hover { background: #0b1a15; }
.withdrawal-save-link .arrow-icon { width: 20px; height: 20px; }
.withdrawal-save-link:hover .arrow-icon { transform: translate(2px, -2px); }
.stub-copy { display: inline-flex; align-items: center; gap: 7px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; transition: box-shadow .2s, background-color .2s, color .2s; }
.stub-copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stub-copy:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ticket-stub:not(.is-kept) .stub-copy:not([hidden], .stub-print) { animation: beckon 1.6s var(--ease) 1s 2; }
.is-kept .ticket-stub-label { color: var(--green); }
.stub-copy.is-copied { background: #eef5f0; box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.registration-small { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.ticket-stub .registration-text-link { margin-top: 20px; }
.registration-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.registration-text-link .arrow-icon { width: 17px; height: 17px; }
.registration-text-link:hover { border-color: var(--ink); }
.registration-text-link:hover .arrow-icon { transform: translateX(3px); }
.is-waiting .ticket-main { padding-bottom: 34px; }
.is-waiting .ticket-head, .is-sent .ticket-head { margin-bottom: 30px; }

/* Withdrawal: the same ticket, read the other way. */
.reg-narrow { width: min(100% - var(--gutter) * 2, 620px); margin-inline: auto; }
.reg-narrow .reg-intro { margin-top: 28px; margin-bottom: 30px; }
.ticket-copy + .ticket-field { margin-top: 22px; }
.ticket-field-help { margin-top: 9px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.field-box input.is-token { padding-left: 46px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .02em; }
/* The token can be shown to check a pasted value; the check mark moves aside for the eye. */
.field-reveal { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: background-color .2s, color .2s; }
.field-reveal:hover { background: var(--paper); color: var(--ink); }
.field-reveal:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.field-reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.field-reveal .reveal-slash { opacity: 0; transition: opacity .2s; }
.field-reveal[aria-pressed=true] .reveal-slash { opacity: 1; }
.field-box:has(.field-reveal:not([hidden])) input { padding-right: 88px; }
.field-box:has(.field-reveal:not([hidden])) .field-ok { right: 54px; }
.ticket-contact { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.registration-noscript { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 12.5px; line-height: 1.7; }

@keyframes lay { 0% { transform: translateY(-7px) scale(.7); } 60% { transform: translateY(1px) scale(1.05); } 100% { transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgb(47 154 111 / 40%), 0 14px 28px -14px rgb(15 74 58 / 75%); } 100% { box-shadow: 0 0 0 14px rgb(47 154 111 / 0%), 0 14px 28px -14px rgb(15 74 58 / 75%); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes boot { 0% { fill: rgb(47 154 111 / 0%); } 35% { fill: rgb(47 154 111 / 45%); } 100% { fill: rgb(47 154 111 / 22%); } }
@keyframes beckon { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line-strong); } 40% { box-shadow: inset 0 0 0 1px var(--green), 0 0 0 5px rgb(47 154 111 / 14%); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.7); } 70% { opacity: .95; } to { opacity: .88; transform: rotate(-9deg) scale(1); } }

@media (max-width: 960px) {
    .reg-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "ticket" "aside"; gap: 0; max-width: 600px; margin-inline: auto; }
    .reg-intro { margin-bottom: 24px; }
    .reg-intro h1 { font-size: clamp(40px, 9vw, 56px); }
    .reg-aside { margin-top: 48px; }
}
@media (max-width: 600px) {
    .reg { padding-block: 20px 64px; }
    .reg-grid { margin-top: 14px; }
    .reg-intro { padding-top: 0; margin-bottom: 20px; }
    .reg-lead { margin-top: 14px; font-size: 14.5px; line-height: 1.75; }
    .ticket { margin-inline: -6px; border-radius: 20px; }
    .ticket-main { padding: 20px 18px 22px; }
    .ticket-head { margin-bottom: 20px; padding-bottom: 14px; }
    .ticket-stub { padding: 20px 18px 22px; }
    .ticket-perf { --perf-inset: 14px; }
    .devices { gap: 6px; }
    .device { padding: 12px 4px 10px; font-size: 13px; }
    .stamp { right: 14px; top: 58px; padding: 7px 10px 6px; }
    .stamp b { font-size: 16px; }
    .stub-link { flex-direction: column; }
    .stub-copy { justify-content: center; min-height: 50px; }
    .reg-visual { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .stamp, .ticket-error, .ticket-meter i.is-laid, .device:has(input:checked)::after, .is-complete .ticket-submit, .ticket-submit.is-busy .arrow-icon,
    .field-suggest > span, .device:has(input:checked) .d-screen, .is-wrong, .stub-copy { animation: none !important; }
    .reg-visual:hover img, .device:has(input:checked), .device:has(input:checked) svg { transform: none; }
}
@media (forced-colors: active) {
    .consent input, .device input { opacity: 1; position: static; width: auto; height: auto; }
    .consent-box, .device svg { display: none; }
    .ticket { border: 1px solid CanvasText; }
}

/* Printed, the ticket keeps what matters on paper: the stamp, and the withdrawal address written out in full. */
@media print {
    .site-footer, .reg-aside, .registration-back, .registration-bottom-note, .reg-lead, .stub-link button, .ticket-stub .registration-text-link, .ticket-perf::before, .ticket-perf::after { display: none !important; }
    .reg-grid { display: block; margin: 0; }
    .ticket { margin: 16px 0 0; background: #fff; box-shadow: none; border: 1px solid #000; break-inside: avoid; }
    .stamp { mix-blend-mode: normal; animation: none; }
    *, *::before, *::after { transition: none !important; }
    .withdrawal-save-link { display: block; background: #fff !important; color: #000 !important; border: 1px solid #000; box-shadow: none; }
    .withdrawal-save-link .arrow-icon { display: none; }
    .withdrawal-save-link::after { content: attr(data-full); display: block; margin-top: 8px; font: 500 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
}
