/* P2 birth ticket booth. Ported from Design/variations/2026-10-08-birth-ticket/ (client-approved 8 Oct 2026).
   Every rule is scoped to #spin; tokens come from style.css. Collision-prone names are prefixed bk- (field, q, chip). */
#spin { --sh-w: 0 18px 40px -18px rgba(16,22,52,.28); }
#spin .machine :where(h3, p) { margin: 0; }
#spin .bk-q { font: 800 19px/1.2 var(--text); }
#spin .bk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#spin .bk-chip { font: 600 14px/1 var(--text); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); white-space: nowrap; }
#spin .bk-chip.on { background: var(--green-soft); box-shadow: 0 3px 0 var(--ink); transform: rotate(-2deg); }
#spin .bk-field { display: flex; align-items: center; gap: 10px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--white); padding: 12px 16px; font: 700 20px/1.2 var(--text); }
#spin .bk-field small { font: 600 12px/1 var(--text); color: var(--ink-2); }
#spin .bk-field .caret { width: 2px; height: 22px; background: var(--ink); }
#spin .tk { --tk-bg: var(--white); --tk-acc: var(--gold-soft); position: relative; background: var(--tk-bg); border: 2.5px solid var(--ink); border-radius: 18px; padding: 20px 22px 18px; box-shadow: var(--sh-w); font-size: 14px; line-height: 1.4; text-align: left; }
#spin .tk--lapo { --tk-acc: var(--green-soft); }
#spin .tk__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
#spin .tk__admit { color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 9px; background: var(--tk-acc); }
#spin .tk__hi { margin-top: 14px; font: 600 14px/1.3 var(--text); color: var(--ink-2); }
#spin .tk__name { font: 800 22px/1.1 var(--text); }
#spin .tk__res { margin: 6px 0 2px; font: 800 clamp(40px, 4.4vw, 58px)/.86 var(--display); font-variation-settings: "wdth" 80, "opsz" 96; text-transform: uppercase; letter-spacing: -.01em; color: var(--gold); -webkit-text-stroke: .03em var(--ink); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--ink); }
#spin .tk--lapo .tk__res { color: var(--green); }
#spin .tk__h { margin-top: 14px; font: 800 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
#spin .tk__pack { margin-top: 8px; display: grid; gap: 6px; }
#spin .tk__pack li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-weight: 600; }
#spin .tk__pack li::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border-radius: 4px; background: var(--tk-acc); border: 2px solid var(--ink); }
#spin .tk__lines { margin-top: 8px; display: grid; gap: 6px; color: var(--ink-2); }
#spin .tk__lines li b { color: var(--ink); font-weight: 700; }
#spin .tk__tear { margin: 16px -22px 14px; border-top: 2.5px dashed var(--ink); position: relative; }
#spin .tk__tear::before, #spin .tk__tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--cotton); border: 2.5px solid var(--ink); }
#spin .tk__tear::before { left: -13px; clip-path: inset(0 0 0 50%); }
#spin .tk__tear::after { right: -13px; clip-path: inset(0 50% 0 0); }
#spin .tk__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
#spin .bar { height: 40px; flex: 1; max-width: 190px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 8px, var(--ink) 8px 9px, transparent 9px 12px, var(--ink) 12px 15px, transparent 15px 16px, var(--ink) 16px 17px, transparent 17px 21px); }
#spin .tk__no { font: 700 12px/1.3 var(--text); font-variant-numeric: tabular-nums; text-align: right; }
#spin .tk__play { margin-top: 12px; font: 800 15px/1.2 var(--text); }
#spin .tk__cta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
#spin .booth { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 32px; box-shadow: var(--sh-w); display: grid; grid-template-columns: 1fr 150px; overflow: visible; }
#spin .booth__screen { padding: 24px; display: grid; gap: 18px; border-right: 3px solid var(--ink); }
#spin .booth__step { font: 700 12px/1 var(--text); color: var(--ink-2); display: flex; gap: 6px; }
#spin .booth__step i { width: 22px; height: 6px; border-radius: 3px; background: var(--cotton); border: 1.5px solid var(--ink); }
#spin .booth__step i.on { background: var(--green); }
#spin .booth__side { position: relative; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--cotton); border-radius: 0 29px 29px 0; }
#spin .booth__lamp { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--ink); box-shadow: 0 0 0 5px var(--gold-soft); }
#spin .booth__lamp--go { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
#spin .booth__side p { font: 700 12px/1.3 var(--text); text-align: center; color: var(--ink-2); }
#spin .booth__slot { margin-top: auto; width: 100%; height: 16px; border-radius: 8px; background: var(--ink); box-shadow: inset 0 4px 0 #000; }
#spin .booth__logo { font: 800 18px/.9 var(--display); font-variation-settings: "wdth" 80; text-transform: uppercase; text-align: center; }
#spin .booth--print { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; border-radius: 32px 32px 18px 18px; }
#spin .booth--print .booth__side { border-radius: 29px 29px 0 0; flex-direction: row; justify-content: space-between; padding: 18px 22px 22px; }
#spin .booth--print .booth__slot { position: absolute; left: 24px; right: 24px; bottom: -8px; width: auto; margin: 0; z-index: 1; }
#spin .booth__out { position: relative; z-index: 2; margin: -2px 34px 0; transform: rotate(1.5deg); transform-origin: top center; }
#spin .booth__out .tk { border-radius: 0 0 18px 18px; border-top: 0; padding-top: 22px; }
#spin .booth__out .tk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(rgba(16,22,52,.22), transparent); }
@media (max-width: 760px) {
  #spin .booth { grid-template-columns: 1fr; }
  #spin .booth__screen { border-right: 0; border-bottom: 3px solid var(--ink); padding: 20px 16px; }
  #spin .booth__side { border-radius: 0 0 29px 29px; flex-direction: row; justify-content: space-between; padding: 16px 20px 20px; }
  #spin .booth__side .booth__slot { position: absolute; left: 20px; right: 20px; bottom: 8px; width: auto; height: 10px; }
  #spin .booth__out { margin: -2px 14px 0; }
  #spin .tk { padding: 18px 16px 16px; }
  #spin .tk__tear { margin-inline: -16px; }
}
#spin .linkbtn { background: none; border: 0; min-height: 44px; padding: 0 6px; font: 700 14px/1 var(--text); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#spin .linkbtn:hover { color: var(--ink); }
#spin .machine { position: relative; max-width: 900px; margin: 56px auto 0; }
#spin .booth { grid-template-columns: 1fr 210px; transition: max-width 420ms var(--ease-out); max-width: 900px; margin-inline: auto; }
#spin .booth__screen { padding: 32px; gap: 22px; align-content: start; transform-origin: 50% 0; }
#spin .booth__step { align-items: center; font-size: 13px; }
#spin .booth__step i { transition: background-color 280ms; }
#spin .booth__step i.now { background: var(--gold); }
#spin .bk-field { padding: 6px 6px 6px 18px; gap: 12px; transition: box-shadow 180ms; }
#spin .bk-field label { font: 600 12px/1 var(--text); color: var(--ink-2); white-space: nowrap; }
#spin .bk-field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; font: 700 20px/1.2 var(--text); color: var(--ink); padding: 0 4px; }
#spin .bk-field input::placeholder { color: rgba(16,22,52,.38); font-weight: 600; }
#spin .bk-field input:focus { outline: none; }
#spin .bk-field:focus-within { box-shadow: 0 0 0 4px var(--gold-soft), 0 0 0 6.5px var(--ink); }
#spin .bk-field .btn { min-height: 44px; padding: 0 18px; box-shadow: 0 3px 0 var(--ink); }
#spin .bk-field[data-bad] { border-color: #B42D60; animation: nope 360ms var(--ease-snap); }
@keyframes nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
#spin .err { margin-top: 8px; font: 700 13.5px/1.3 var(--text); color: #B42D60; }
#spin .priv { display: flex; align-items: center; gap: 7px; margin-top: 10px; font: 600 12.5px/1.4 var(--text); color: var(--ink-2); }
#spin .priv svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#spin .qbox { min-height: 132px; }
#spin .qstep:not([hidden]) { animation: qIn 300ms var(--ease-out) both; }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
#spin .bk-q { font-size: 22px; outline: none; }
#spin .bk-q:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
#spin .bk-chips { gap: 10px; margin-top: 14px; }
#spin .bk-chip { min-height: 44px; padding: 0 16px; font-size: 15px; cursor: pointer; transition: transform 180ms var(--ease-snap), box-shadow 180ms var(--ease-snap), background-color 180ms; }
#spin .bk-chip:hover { background: var(--gold-soft); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 3px 0 var(--ink); }
#spin .bk-chip[aria-pressed="true"] { background: var(--green-soft); box-shadow: 0 3px 0 var(--ink); transform: rotate(-2deg); }
#spin .bk-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
#spin .qnav { display: flex; gap: 14px; margin-top: 6px; margin-left: -6px; }
#spin .recap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#spin .recap span { font: 600 13.5px/1 var(--text); padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green-soft); }
#spin .recap span.skip { background: var(--white); color: var(--ink-2); border-style: dashed; }
#spin .odds { font: 600 13px/1.4 var(--text); color: var(--ink-2); max-width: 30ch; }
#spin .booth__side { justify-content: flex-start; padding: 32px 20px 26px; }
#spin .booth__side p.status { font-size: 13px; min-height: 2.6em; color: var(--ink); }
#spin .booth__logo { margin-top: 8px; font-size: 26px; }
#spin .booth__lamp { transition: background-color 280ms, box-shadow 280ms; }
#spin .machine[data-phase="printing"] .booth__lamp { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); animation: lamp 200ms steps(2) infinite; }
#spin .machine[data-phase="done"] .booth__lamp { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
@keyframes lamp { 50% { box-shadow: 0 0 0 9px var(--gold-soft); } }
#spin .booth__side .booth__slot { margin-top: auto; }
#spin .machine.is-folding .booth__screen { animation: fold 420ms var(--ease-out) forwards; }
@keyframes fold { to { opacity: 0; transform: perspective(900px) rotateX(-70deg) scaleY(.2); } }
#spin .machine[data-phase="printing"] .booth, #spin .machine[data-phase="done"] .booth { grid-template-columns: 1fr; max-width: 460px; border-radius: 32px 32px 18px 18px; }
#spin .machine[data-phase="printing"] .booth__screen, #spin .machine[data-phase="done"] .booth__screen { display: none; }
#spin .machine[data-phase="printing"] .booth__side, #spin .machine[data-phase="done"] .booth__side { border-radius: 29px 29px 15px 15px; flex-direction: row; justify-content: space-between; align-items: center; padding: 20px 24px 26px; min-height: 0; }
#spin .machine[data-phase="printing"] .booth__logo, #spin .machine[data-phase="done"] .booth__logo { margin: 0; font-size: 20px; order: 2; }
#spin .machine[data-phase="printing"] .booth__side p.status, #spin .machine[data-phase="done"] .booth__side p.status { min-height: 0; order: 3; text-align: right; }
#spin .machine[data-phase="printing"] .booth__slot, #spin .machine[data-phase="done"] .booth__slot { position: absolute; left: 24px; right: 24px; bottom: -8px; width: auto; height: 16px; margin: 0; z-index: 3; }
#spin .machine[data-phase="printing"] .booth, #spin .machine[data-phase="done"] .booth { animation: lid 360ms var(--ease-settle) both; }
@keyframes lid { from { transform: scaleY(.6) translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
#spin .out { position: relative; z-index: 2; max-width: 460px; margin: -2px auto 0; padding: 0 34px; }
#spin .booth__out { margin: 0; transform: rotate(0deg); transition: transform 700ms var(--ease-settle); }
#spin .booth__out.is-curled { transform: perspective(1100px) rotateX(-6deg) rotate(1.5deg); }
#spin .tk { box-shadow: var(--sh-w); }
#spin .booth__out .tk::before { z-index: 1; }
#spin .tk__hi { outline: none; font: 600 15px/1.3 var(--text); }
#spin .tk__hi:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
#spin .tk__name { display: block; font: 800 26px/1.1 var(--text); color: var(--ink); overflow-wrap: anywhere; }
#spin .tk__res { margin: 10px 0 4px; font-size: clamp(48px, 5vw, 64px); }
#spin .tk__lines { gap: 8px; }
#spin .tk__bar { width: 100%; max-width: 200px; height: 40px; flex: 1; }
#spin .tk__bar rect { fill: var(--ink); }
#spin .tk__small { margin-top: 10px; font: 600 11.5px/1.4 var(--text); color: var(--ink-2); }
#spin .tk__cta .btn { flex: 1 1 auto; }
#spin .tk__more { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 6px 0 -8px -6px; }
#spin .confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
@media (max-width: 760px) {
  #spin .machine { margin-top: 40px; }
  #spin .booth { grid-template-columns: 1fr; }
  #spin .booth__screen { padding: 22px 18px 24px; gap: 18px; }
  #spin .booth__side { flex-direction: row; justify-content: space-between; align-items: center; padding: 16px 20px 26px; gap: 12px; }
  #spin .booth__side p.status { min-height: 0; order: 3; text-align: right; }
  #spin .booth__logo { margin: 0; font-size: 18px; order: 2; }
  #spin .booth__side .booth__slot { position: absolute; left: 20px; right: 20px; bottom: 8px; width: auto; height: 10px; margin: 0; }
  #spin .machine[data-phase="printing"] .booth__side .booth__slot, #spin .machine[data-phase="done"] .booth__side .booth__slot { left: 20px; right: 20px; bottom: -8px; height: 16px; }
  #spin .bk-field { flex-wrap: wrap; padding: 10px 10px 10px 14px; border-radius: 16px; }
  #spin .bk-field label { width: 100%; }
  #spin .bk-field input { font-size: 19px; padding: 0; }
  #spin .qbox { min-height: 0; }
  #spin .bk-q { font-size: 20px; }
  #spin .out { padding: 0 14px; }
  #spin .tk__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #spin .booth__out.is-curled { transform: rotate(1.5deg); }
}
#spin .bk-q:focus, #spin .bk-q:focus-visible, #spin .tk__hi:focus, #spin .tk__hi:focus-visible { outline: none; }
#spin .booth__side .booth__logo { font: 800 26px/.9 var(--display); font-variation-settings: "wdth" 80; text-transform: uppercase; text-align: center; color: var(--ink); }
#spin .machine[data-phase="printing"] .booth__side .booth__logo, #spin .machine[data-phase="done"] .booth__side .booth__logo { font-size: 22px; }
#spin .booth__out.is-curled { transform: perspective(1200px) rotateX(-3deg) rotate(1.5deg); }
@media (max-width: 760px) {
  #spin .booth__side .booth__logo { font-size: 18px; }
}
#spin .machine .booth { position: relative; z-index: 3; }
#spin .machine[data-phase="printing"] .booth__slot, #spin .machine[data-phase="done"] .booth__slot { height: 18px; bottom: -10px; border-radius: 9px; background: linear-gradient(180deg, #2A3366 0 2px, #05081A 2px 100%); box-shadow: inset 0 6px 8px rgba(0,0,0,.75), inset 0 -2px 0 rgba(255,255,255,.08), 0 2px 0 rgba(16,22,52,.15); }
#spin .out { z-index: 2; margin-top: 0; }
#spin .mouth { position: relative; clip-path: inset(0 -120px -400px -120px); }
#spin .mouth.is-free { clip-path: none; }
#spin .booth__out { position: relative; z-index: 1; transform: translateY(-101%); transform-origin: 50% 0; will-change: transform; transition: none; }
#spin .booth__out.is-curled { transform: none; }
#spin .booth__out.is-out { transform: translateY(0); }
#spin .booth__out.is-settled { transform: translateY(5px) rotate(1.5deg); }
#spin .booth__out .tk { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #F7F5F0 0%, #FBFAF6 40%, #F8F6F1 100%); box-shadow: none; }
#spin .booth__out .tk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-radius: 0 0 16px 16px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(16,22,52,.07) 70%, rgba(16,22,52,.12)); }
#spin .booth__out { filter: drop-shadow(0 2px 1px rgba(16,22,52,.12)); }
#spin .booth__out[data-curl] .tk { transform: perspective(700px) rotateX(-4deg); transform-origin: 50% 0; }
#spin .castshadow { position: absolute; z-index: 0; left: 46px; right: 46px; top: 0; height: 100%; border-radius: 30px; transform-origin: 50% 0; transform: scaleY(0); background: rgba(16,22,52,.30); filter: blur(18px); opacity: .9; }
@media (max-width: 760px) {
  #spin .castshadow { left: 24px; right: 24px; }
}
#spin .machine.is-feeding .booth__side { animation: buzz 70ms linear infinite; }
@keyframes buzz { 0% { transform: translate(0, 0); } 25% { transform: translate(.7px, -.4px); } 50% { transform: translate(-.6px, .3px); } 75% { transform: translate(.4px, .5px); } 100% { transform: translate(0, 0); } }
#spin .play { position: relative; z-index: 2; max-width: 460px; margin: 40px auto 0; padding: 0 34px; text-align: center; }
#spin .play:not([hidden]) { animation: playIn 420ms var(--ease-out) both; }
@keyframes playIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#spin .play__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#spin .play__more { display: flex; justify-content: center; gap: 0 18px; margin-top: 8px; }
@media (max-width: 760px) {
  #spin .play { padding: 0 14px; margin-top: 32px; }
  #spin .play__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #spin .booth__out { transform: translateY(5px) rotate(1.5deg) !important; }
  #spin .castshadow { transform: scaleY(1) !important; }
  #spin .machine.is-feeding .booth__side { animation: none; }
}
#spin .meterbox { padding-top: 20px; border-top: 2px dashed rgba(16,22,52,.25); display: grid; gap: 14px; }
#spin .meter { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
#spin .meter__svg { display: block; width: 100%; height: auto; overflow: visible; }
#spin .meter__svg text { font-family: var(--text); }
#spin .printrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
#spin .printrow .odds { max-width: 34ch; }
#spin .machine[data-phase="deciding"] .booth__lamp { animation: lamp 300ms steps(2) infinite; }
#spin .machine[data-phase="deciding"] [data-print] { opacity: .6; pointer-events: none; }
#spin .tk__pct { display: block; margin-bottom: 4px; font: 800 20px/1 var(--text); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; letter-spacing: 0; }
@media (max-width: 760px) {
  #spin .meterwrap { margin-inline: -4px; width: calc(100% + 8px); }
}
#spin .meterwrap { position: relative; width: 100%; max-width: 560px; margin-inline: auto; container-type: inline-size; }
#spin .meterwrap .meter { max-width: none; }
#spin .printkey { position: absolute; left: 82.3%; top: 50.4%; width: 13.1%; height: 34.6%; padding: 0; border: 2px solid var(--ink); border-radius: 1.6cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqw; cursor: pointer; background: linear-gradient(180deg, #6BE8AE, var(--green)); color: var(--ink); box-shadow: 0 .75cqw 0 var(--etu); transition: transform 120ms var(--ease-snap), box-shadow 120ms var(--ease-snap), filter 200ms, opacity 200ms; }
#spin .printkey::before { content: ""; position: absolute; inset: -10px -4px; }
#spin .printkey__lbl { font: 800 max(7px, 1.75cqw)/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
#spin .printkey__ic { width: max(11px, 3.4cqw); height: max(11px, 3.4cqw); fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
#spin .printkey:active, #spin .printkey.is-press { transform: translateY(2px); box-shadow: 0 .2cqw 0 var(--etu); }
#spin .printkey[aria-disabled="true"] { filter: grayscale(.85) brightness(.92); opacity: .55; cursor: not-allowed; }
#spin .printkey[aria-disabled="true"]:active { transform: none; box-shadow: 0 .75cqw 0 var(--etu); }
#spin .printkey.is-ready { animation: keyGlow 1.6s ease-in-out infinite; }
@keyframes keyGlow { 0%, 100% { box-shadow: 0 .75cqw 0 var(--etu), 0 0 0 0 rgba(34,181,115,.55); } 50% { box-shadow: 0 .75cqw 0 var(--etu), 0 0 0 2.2cqw rgba(34,181,115,0); } }
#spin .printkey:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
#spin .hint { font: 700 14px/1.3 var(--text); color: var(--ink); }
#spin .hint.is-nudge { animation: nope 360ms var(--ease-snap); }
#spin .printrow { flex-direction: column; gap: 4px; }
#spin .sound { position: absolute; right: 0; top: -60px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 14px/1 var(--text); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
#spin .sound:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
#spin .sound[aria-pressed="false"] { background: var(--cotton); color: var(--ink-2); }
#spin .sound:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#spin .machine { margin-top: 96px; }
@media (max-width: 760px) {
  #spin .machine { margin-top: 84px; }
  #spin .sound { top: -56px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #spin .printkey.is-ready { animation: none; box-shadow: 0 .75cqw 0 var(--etu), 0 0 0 3px rgba(34,181,115,.45); }
}

/* ---------- polish at transplant (8 Oct) ---------- */
/* the verdict on one line: "77% · LAPO BABY", the % smaller */
#spin .tk__res { display: flex; align-items: baseline; gap: .16em; white-space: nowrap; font-size: clamp(40px, 4.2vw, 54px); }
#spin .tk__pct { display: inline-block; margin: 0; font: 800 .4em/1 var(--text); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; letter-spacing: 0; }
#spin .tk__pct::after { content: " ·"; color: var(--ink-2); }
/* at phone widths the PRINT key grows over the top-right keys so it is at least 46×44px visible */
@media (max-width: 760px) {
  #spin .printkey { left: 81.2%; width: 15.2%; top: 30%; height: 44px; min-width: 46px; border-radius: 10px; gap: 2px; }
  #spin .printkey::before { inset: -2px; }
  #spin .printkey__lbl { font-size: 8px; }
  #spin .printkey__ic { width: 14px; height: 14px; }
  #spin .tk__res { font-size: 40px; }
}
/* the site's footer "reduce motion" toggle (html.reduce-motion) gets the same treatment as the OS setting */
.reduce-motion #spin .booth__out { transform: translateY(5px) rotate(1.5deg) !important; }
.reduce-motion #spin .castshadow { transform: scaleY(1) !important; }
.reduce-motion #spin .printkey.is-ready { animation: none; }

/* ---------- "now you can print" (9 Oct): the instant the 6th answer lands ---------- */
#spin .printkey.is-ready { animation: keyGlow 1.8s ease-in-out 3, keySteady 1ms 5.4s forwards; }
@keyframes keySteady { to { box-shadow: 0 .75cqw 0 var(--etu), 0 0 0 .9cqw rgba(34,181,115,.35), 0 0 2.4cqw rgba(59,255,154,.55); } }
#spin .printkey.is-wiggle { animation: keyWiggle 620ms var(--ease-snap), keySteady 1ms forwards; }
@keyframes keyWiggle { 15% { transform: rotate(-6deg) scale(1.06); } 35% { transform: rotate(5deg) scale(1.06); } 55% { transform: rotate(-3deg); } 75% { transform: rotate(2deg); } 100% { transform: none; } }
#spin .tapcue { position: absolute; z-index: 4; left: calc(82.3% + 6.55%); bottom: calc(100% - 50.4% + 4px); width: 26px; margin-left: -13px; pointer-events: none; filter: var(--die); animation: cueBob 900ms ease-in-out infinite; }
#spin .tapcue svg { display: block; width: 100%; height: auto; fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
@keyframes cueBob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(0); } }
#spin .hint.is-callout { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green-soft); box-shadow: 0 3px 0 var(--ink); }
#spin .hint.is-callout::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); }
/* the printer wakes: green READY lamp, the slot glows */
#spin .machine.is-ready .booth__lamp { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft), 0 0 14px rgba(34,181,115,.6); }
#spin .machine.is-ready .booth__side p.status { color: #11804F; font-weight: 800; letter-spacing: .08em; }
#spin .machine.is-ready .booth__slot { box-shadow: inset 0 4px 0 #000, 0 0 0 3px rgba(34,181,115,.25), 0 0 18px rgba(59,255,154,.45); }
@media (max-width: 760px) {
  #spin .tapcue { left: calc(81.2% + 7.6%); bottom: calc(100% - 30% + 2px); width: 22px; margin-left: -11px; }
}
@media (prefers-reduced-motion: reduce) {
  #spin .printkey.is-ready, #spin .printkey.is-wiggle { animation: none; }
  #spin .tapcue { display: none; }
}
.reduce-motion #spin .printkey.is-ready, .reduce-motion #spin .printkey.is-wiggle { animation: none; }
.reduce-motion #spin .tapcue { display: none; }
