/* The make flow on /sponsor: the same panels as /create (make-flow.js, share-options.js and
   end-screen.js drive them by data attributes), styled as /create styles them. A copy of
   create.html's own rules, because they live inline there; change one, change the other. */
/* Your stickers: what this browser made, to get back to the link and the code. */
.mine { margin-top: 40px; }
.mine h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 4px; }
.mine .fine { margin: 0 0 12px; }
.mine-list { list-style: none; margin: 0 -16px; padding: 4px 16px 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.mine-list li { flex: none; scroll-snap-align: start; }
.mine-list button {
  width: 128px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px;
  border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--tile-shadow); cursor: pointer;
  font: inherit; font-size: 13px; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em;
}
.mine-list button:hover { box-shadow: 0 0 0 2px var(--accent-soft), var(--tile-shadow); }
.mine-list button[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent), var(--tile-shadow); }
.mine-list img { width: 76px; height: 76px; object-fit: contain; }
.mine-list .t { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-list .new { justify-content: center; height: 100%; min-height: 128px; color: var(--accent); }
.mine-list .plus { font-size: 30px; line-height: 1; font-weight: 300; }

/* The maker: one card, one step at a time. */
.maker { margin-top: 32px; padding-bottom: 72px; }
.panel { position: relative; max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); overflow: hidden; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.steps { list-style: none; margin: 0; padding: 22px 28px 0; display: flex; gap: 6px; counter-reset: step; }
.steps li { flex: 1; counter-increment: step; font-size: 12px; font-weight: 600; letter-spacing: -0.005em; color: var(--tertiary); }
.steps li::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--fill-strong); margin-bottom: 8px; }
.steps li.done { color: var(--secondary); }
.steps li.done::before { background: var(--secondary); opacity: 0.55; }
.steps li[aria-current="step"] { color: var(--ink); }
.steps li[aria-current="step"]::before { background: var(--accent); }
.steps .n::after { content: counter(step) " · "; }
.step { padding: 22px 28px 28px; }
.step h2 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; text-wrap: balance; }
.step h2:focus { outline: none; }
.sub { color: var(--secondary); margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.fine { font-size: 12px; line-height: 1.45; color: var(--tertiary); margin: 10px 0 0; text-align: center; }
.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.optional { font-weight: 400; color: var(--tertiary); }
input[type="text"], input[type="url"], input[type="email"], input[type="number"], input[type="datetime-local"], textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { opacity: 0.5; }
.field { margin: 0 0 16px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--tertiary); }
.field-foot .over { color: var(--problem); }
.field-error { font-size: 13px; color: var(--problem); margin: 6px 0 0; }
/* A field the page has said something about (a link, an availability time): its border says so too. */
input[aria-invalid="true"] { border-color: var(--problem); }
.paid-note { margin: -2px 0 16px; font-size: 14px; color: var(--secondary); }
.problem { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--problem-bg); font-size: 14px; line-height: 1.4; color: var(--ink); }
.problem::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #FF9500; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.actions .btn.big { min-width: 220px; }

/* Describe it, or use your logo: a segmented switch. */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); margin: 0 0 20px; border: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.04); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The six styles, each a real sticker made in it. */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.style-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.style { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; background: var(--fill); cursor: pointer; }
.style input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.style img { width: 64px; height: 64px; object-fit: contain; transition: transform 0.2s cubic-bezier(.2,1.4,.4,1); filter: drop-shadow(0 1px 1px var(--die-shadow)); }
.style span { font-size: 12px; font-weight: 500; color: var(--secondary); }
.style:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.style:has(input:checked) img { transform: scale(1.08) rotate(-3deg); }
.style:has(input:checked) span { color: var(--accent); }
.style:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-hint { font-size: 13px; color: var(--secondary); margin: 8px 0 18px; min-height: 19px; }

/* The logo: a drop zone, then the logo on a see-through checkerboard. */
.drop {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--field-line); background: var(--fill); margin: 0 0 16px; transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--accent); box-shadow: 0 0 0 0.5px var(--hairline-strong); }
.drop-icon svg { width: 26px; height: 26px; }
.drop b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.drop small { display: block; font-size: 13px; color: var(--secondary); margin-top: 2px; }
.drop .chk { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(var(--check-a) 0 25%, var(--check-b) 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; box-shadow: 0 0 0 0.5px var(--hairline-strong); }
.drop .chk img { max-width: 84px; max-height: 84px; object-fit: contain; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.modes legend { margin-bottom: 8px; }
.mode { position: relative; display: block; padding: 14px 14px 14px 42px; border-radius: 12px; background: var(--fill); cursor: pointer; }
.mode input { position: absolute; left: 14px; top: 16px; margin: 0; accent-color: var(--accent); width: 18px; height: 18px; }
.mode b { display: block; font-size: 15px; font-weight: 600; }
.mode span { display: block; font-size: 13px; line-height: 1.4; color: var(--secondary); margin-top: 2px; }
.mode:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.attest { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hairline-strong); margin: 0 0 18px; }

/* Waiting: a blank sticker with light sweeping across it. */
.wait { text-align: center; padding-top: 48px; padding-bottom: 56px; }
.shimmer {
  width: 200px; height: 200px; margin: 0 auto 30px; border-radius: 56px; position: relative; overflow: hidden;
  background: #FCFCFD; box-shadow: 0 1px 1.5px var(--die-shadow), 0 14px 28px var(--die-ambient);
  animation: bob 2.6s ease-in-out infinite;
}
.shimmer::before { content: ""; position: absolute; inset: 12px; border-radius: 44px; background: #E5E5EA; }
.shimmer::after { content: ""; position: absolute; inset: 12px; border-radius: 44px;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 70%) -200% 0 / 300% 100% no-repeat;
  animation: sweep 1.8s ease-in-out infinite; }
@keyframes sweep { to { background-position: 200% 0; } }
@keyframes bob { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
.wait-line { color: var(--secondary); margin: 0 auto; max-width: 440px; overflow-wrap: anywhere; }
.wait-fine { font-size: 13px; color: var(--tertiary); margin: 8px 0 0; }
.wait .textbtn { margin-top: 14px; }

/* Die-cut art: a white edge grown from the art's own shape, a contact shadow and a soft long one. */
.art {
  display: block; object-fit: contain;
  filter: drop-shadow(3px 0 0 var(--die)) drop-shadow(-3px 0 0 var(--die)) drop-shadow(0 3px 0 var(--die)) drop-shadow(0 -3px 0 var(--die))
          drop-shadow(0 1px 1.5px var(--die-shadow)) drop-shadow(0 12px 16px var(--die-ambient));
}

/* The three tries, side by side. */
.tries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.try { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 18px; background: var(--fill); cursor: pointer; padding: 14px; transition: background 0.15s; }
.try input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.try img { width: 100%; height: 100%; transform: rotate(-2deg); transition: transform 0.25s cubic-bezier(.2,1.4,.4,1); }
.try:nth-child(2) img { transform: rotate(2deg); }
.try:hover img { transform: rotate(0) scale(1.03); }
.try:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.try:has(input:checked) img { transform: rotate(-3deg) scale(1.05); }
.try:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.try .tag { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--secondary); }
.try.empty { cursor: default; background: none; border: 1.5px dashed var(--field-line); color: var(--tertiary); font-size: 13px; }
.tries-line { font-size: 13px; color: var(--secondary); margin: 0 0 22px; text-align: center; }
.keep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Share options. */
.ready { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.ready img { width: 104px; height: 104px; flex: none; transform: rotate(-4deg); }
.ready h2 { margin: 0 0 2px; }
.ready p { margin: 0; color: var(--secondary); overflow-wrap: anywhere; }
.opts { border-radius: 14px; background: var(--fill); padding: 6px 16px; margin: 0 0 8px; }
.opt { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; }
.opt + .opt { border-top: 0.5px solid var(--hairline-strong); }
.opt .check { align-items: center; }
.opt-input { display: flex; align-items: center; gap: 8px; min-width: 0; }
.opt-input input[type="number"] { width: 120px; }
.opt-input span { font-size: 14px; color: var(--secondary); }

/* Availability (optional), in the make form: the share link's limits, closed until asked for. */
.avail { margin: -4px 0 16px; }
.avail > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); border-radius: 6px; }
.avail > summary::-webkit-details-marker { display: none; }
.avail > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px 0 1px; border-right: 1.5px solid var(--secondary); border-bottom: 1.5px solid var(--secondary); transform: rotate(-45deg); transition: transform 0.15s ease; }
.avail[open] > summary::before { transform: translate(0, -2px) rotate(45deg); }
.avail > summary:hover { color: var(--accent); }
.avail > summary .optional { font-weight: 400; }
.avail-hint { margin: 4px 0 10px; font-size: 13px; line-height: 1.4; color: var(--secondary); }
.avail .opts { margin: 0; }

/* The end: the sticker, its link and its code. */
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.done-sticker, .done-side { min-width: 0; }
.done-sticker { text-align: center; padding-top: 6px; }
.done-sticker .art { width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto 18px; transform: rotate(-3deg); }
.done-sticker h2 { font-size: 26px; overflow-wrap: anywhere; }
.pills { margin: 6px 0 0; }
.pill { display: inline-block; font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding: 5px 11px; border-radius: 980px; background: var(--fill); color: var(--secondary); margin: 3px 2px; }
.linkrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--fill); }
.linkrow code { flex: 1; min-width: 0; font: 14px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.linkrow .btn { min-height: 34px; padding: 6px 16px; font-size: 14px; flex: none; }
.note { min-height: 18px; font-size: 13px; color: var(--secondary); margin: 6px 2px 10px; }
.qr-card { border-radius: 18px; background: var(--fill); padding: 18px; text-align: center; }
.qr-card img { display: block; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 0.5px var(--hairline-strong); }
.qr-card p { margin: 0 0 12px; font-size: 13px; color: var(--secondary); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qr-actions .btn { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.qr-card .btn.alt { background: var(--surface); box-shadow: 0 0 0 0.5px var(--hairline-strong); }
.qr-card .btn.alt:hover { background: var(--surface); filter: brightness(0.97); }
.qr-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 16px; margin-top: 12px; font-size: 14px; }
.qr-more .textbtn { font-size: 14px; padding: 0; }
.share-phone .btn { width: 100%; margin: 4px 0 8px; }
.manage { margin-top: 26px; padding-top: 18px; border-top: 0.5px solid var(--hairline-strong); }
.managed { font-size: 14px; color: var(--secondary); margin: 0 0 12px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools .btn { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.tools .btn[aria-expanded="true"] { background: var(--accent-soft); }
.tool { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--fill); }
.tool form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool form input { flex: 1 1 220px; }
.tool form .btn { min-height: 42px; font-size: 15px; }
.tool p { margin: 8px 0 0; font-size: 13px; color: var(--secondary); }
.tool p.bad { color: var(--problem); }
.tool .ok { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--secondary); }
.links-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; }
.links-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 0.5px solid var(--hairline-strong); color: var(--secondary); }
.links-list li span { flex: none; white-space: nowrap; }
.links-list li code { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.after { display: flex; justify-content: center; gap: 18px; margin-top: 20px; font-size: 15px; }

/* Full screen QR, for a screen at the event. */
.present { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #fff; color: #1D1D1F; }
.present::backdrop { background: #fff; }
.present-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.present h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.present img { width: min(72vh, 80vw); height: auto; aspect-ratio: 1; }
.present p { margin: 0; font-size: clamp(16px, 2vw, 22px); color: #6E6E73; }
.present .btn { position: absolute; top: 18px; right: 18px; background: #F5F5F7; color: #0071E3; min-height: 36px; padding: 6px 18px; font-size: 15px; }

/* What happens next, in three lines. */
.how { max-width: 760px; margin: 0 auto 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.how p { font-size: 14px; color: var(--secondary); margin: 0; line-height: 1.45; }

@media (max-width: 760px) {
  .intro { padding-top: 36px; }
  .maker { margin-top: 24px; }
  .panel { border-radius: 18px; }
  .steps { padding: 18px 18px 0; }
  .steps .n::after { content: counter(step); }
  .steps .w { display: none; }
  .step { padding: 18px 18px 22px; }
  .step h2 { font-size: 24px; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes { grid-template-columns: 1fr; }
  .keep-grid { grid-template-columns: 1fr; }
  .tries { gap: 8px; }
  .try { padding: 8px; border-radius: 14px; }
  .done-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .done-sticker .art { max-width: 220px; }
  .opt { grid-template-columns: 1fr; gap: 6px; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn.big { min-width: 0; width: 100%; }
  .how { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat b { font-size: 21px; }
}
@media (max-width: 380px) {
  .seg span { padding: 7px 11px; }
  .drop { flex-direction: column; text-align: center; }
  .ready { flex-direction: column; text-align: center; gap: 12px; }
  .stat { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer, .shimmer::after, .btn .spin { animation: none; }
  .try img, .style img { transition: none; }
}
