/* digi-app · ui/ticket.css
   HER TICKET (digiAPP_Build 8x.6): the face, its four finishes by level, its turn to the passport; Get your Ticket's
   steps; the moment (the drop and the tear). The face scales with its box (container units), so the same Ticket sits on
   her home, in her account and in the moment. */

/* ── THE FACE ── */
.tkx{display:block;width:min(100%,360px);margin:14px auto 4px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tkf{container-type:inline-size;position:relative;width:100%;perspective:1400px}   /* as tall as what's on it (Nov 10: no gap above her numbers) */
.tkf-in{position:relative;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.3,1.3,.5,1)}
.tkf.back .tkf-in{transform:rotateY(180deg)}
.tkf-front,.tkf-back{position:relative;border-radius:6.5cqw;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;color:var(--tk-ink);
  background:var(--tk-bg);box-shadow:0 2.4cqw 7cqw rgba(0,0,0,.35),inset 0 0 0 .35cqw rgba(255,255,255,.18)}
.tkf-back{position:absolute;inset:0;transform:rotateY(180deg);display:flex;flex-direction:column;padding:7cqw 6.5cqw}
.tkf-front{display:flex;flex-direction:column}
.tkf-front::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(90% 60% at 10% 0%,rgba(255,255,255,.28),transparent 60%),
  repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 .6cqw,transparent .6cqw 1.6cqw)}
.tkf-main{position:relative;flex:1;display:flex;flex-direction:column;padding:6cqw 6.5cqw 5cqw}
.tkf-top{display:flex;justify-content:space-between;align-items:flex-start}
.tkf .tkf-lv{display:inline-block;padding:1.6cqw 3.6cqw;border-radius:2.2cqw;background:var(--tk-chip);color:var(--tk-chipink);font-size:5cqw;font-weight:900;letter-spacing:.06em;box-shadow:inset 0 0 0 .4cqw rgba(255,255,255,.35)}
.tkf-seal{width:17cqw;height:17cqw;border-radius:50%;filter:drop-shadow(0 1cqw 2cqw rgba(0,0,0,.35))}
.tkf-k{margin-top:3cqw;font-size:3.8cqw;font-weight:900;letter-spacing:.32em;opacity:.85}
.tkf-where{margin-top:5cqw;font-size:4.2cqw;font-weight:800;letter-spacing:.14em;opacity:.9}
.tkf-hero{margin-top:7cqw;line-height:1}
.tkf .tkf-ac{position:relative;display:inline-block;margin-left:6cqw;font-size:30cqw;font-weight:900;letter-spacing:-.04em;line-height:.95}
.tkf-the{position:absolute;left:-7cqw;top:-4cqw;width:24cqw;height:auto;fill:currentColor;transform:rotate(-10deg);filter:drop-shadow(0 .6cqw 1.2cqw rgba(0,0,0,.45))}
.tkf .tkf-st{display:block;font-size:15cqw;font-weight:900;letter-spacing:-.02em;line-height:1;text-transform:uppercase;overflow-wrap:anywhere}
.tkf-name{margin-top:3cqw;font-size:7.2cqw;font-weight:900;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tkf-nums{margin-top:5cqw;display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw}
.tkf-nums>div{display:flex;flex-direction:column;gap:.6cqw;padding:2.6cqw 2.4cqw;border-radius:3cqw;background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 .3cqw rgba(255,255,255,.18)}
.tkf .tkf-nums b{font-size:8cqw;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.tkf-nums span{font-size:3cqw;font-weight:800;letter-spacing:.02em;opacity:.85;line-height:1.15}
.tkf-fl{position:relative}
.tkf-fl svg{position:absolute;right:2.4cqw;top:2.6cqw;width:5.4cqw;height:5.4cqw;fill:#ff9f1c}
.tkf-perf{position:relative;height:0;margin:0 4cqw;border-top:.7cqw dashed rgba(255,255,255,.45)}
.tkf-stub{position:relative;box-sizing:border-box;height:20cqw;display:flex;justify-content:space-between;align-items:center;padding:0 6.5cqw}
/* the two notches at the perforation, cut out of the Ticket itself (so any background shows through) */
.tkf-front{-webkit-mask:radial-gradient(circle 3.6cqw at 0 calc(100% - 20cqw),transparent 97%,#000) ,radial-gradient(circle 3.6cqw at 100% calc(100% - 20cqw),transparent 97%,#000);
  -webkit-mask-composite:source-in;mask:radial-gradient(circle 3.6cqw at 0 calc(100% - 20cqw),transparent 97%,#000),radial-gradient(circle 3.6cqw at 100% calc(100% - 20cqw),transparent 97%,#000);mask-composite:intersect}
.tkf-stub span{display:flex;flex-direction:column;gap:.6cqw}
.tkf-stub span:last-child{text-align:right}
.tkf .tkf-stub small{font-size:2.8cqw;font-weight:800;letter-spacing:.18em;opacity:.75}
.tkf .tkf-stub b{font-size:4.6cqw;font-weight:900;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.tkf-blade{position:absolute;inset:-20%;pointer-events:none;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.55) 50%,transparent 60%);transform:translateX(-120%);animation:tkBlade 5.5s ease-in-out 1s infinite}
@keyframes tkBlade{0%,70%{transform:translateX(-120%)}90%,100%{transform:translateX(120%)}}
/* her home's Local Heroes section styles its own b and small: the Ticket keeps its own colors */
.tkf small,.tkf span{color:inherit}
/* the back: her passport */
.tkf-pp{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;gap:3cqw;margin-top:5cqw}
.tkf-pp p{font-size:4.4cqw;font-weight:700;line-height:1.35;opacity:.85}
.tkf-stamp{display:flex;flex-direction:column;align-items:center;justify-content:center;width:22cqw;height:22cqw;border-radius:50%;border:.7cqw dashed currentColor;transform:rotate(-8deg);text-align:center;opacity:.92}
.tkf-stamp:nth-child(2n){transform:rotate(7deg)}
.tkf-stamp.home{width:30cqw;height:30cqw;border-style:double;border-width:1.4cqw}
.tkf .tkf-stamp b{font-size:3.6cqw;font-weight:900;line-height:1.1;padding:0 2cqw}
.tkf .tkf-stamp small{font-size:3.2cqw;font-weight:800}
.tkf-turn{font-size:3.4cqw;font-weight:700;opacity:.7;text-align:center}

/* the four finishes (Brian, 8x.6): FREE clean red, SILVER brushed, GOLD foil, DIAMOND holographic */
.tkf.lv-free{--tk-bg:linear-gradient(160deg,#ff3b30 0%,#cf0202 48%,#7a0000 100%);--tk-ink:#fff;--tk-chip:#fff;--tk-chipink:#cf0202}
.tkf.lv-silver{--tk-bg:repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,transparent 1px 3px),linear-gradient(160deg,#f4f6f8 0%,#b7bec7 45%,#6b7480 100%);--tk-ink:#14161a;--tk-chip:#14161a;--tk-chipink:#e8ebef}
.tkf.lv-silver .tkf-nums>div{background:rgba(255,255,255,.35)}
.tkf.lv-silver .tkf-perf{border-color:rgba(20,22,26,.35)}
.tkf.lv-gold{--tk-bg:linear-gradient(125deg,#fff3b0 0%,#f2c14e 22%,#b8860b 48%,#ffe08a 62%,#8a6100 100%);--tk-ink:#2a1d00;--tk-chip:#2a1d00;--tk-chipink:#ffd75e}
.tkf.lv-gold .tkf-nums>div{background:rgba(255,255,255,.28)}
.tkf.lv-gold .tkf-perf{border-color:rgba(42,29,0,.35)}
.tkf.lv-diamond{--tk-bg:linear-gradient(160deg,#1a7fe0 0%,#0b65b8 50%,#06305c 100%);--tk-ink:#fff;--tk-chip:#fff;--tk-chipink:#0b65b8}
.tkf.lv-diamond .tkf-front::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.45;
  background:conic-gradient(from 0deg at 30% 20%,#ff6ad5,#c774e8,#ad8cff,#8795e8,#94d0ff,#6fffe9,#fffb96,#ff6ad5);animation:tkHolo 8s linear infinite}
@keyframes tkHolo{to{filter:hue-rotate(360deg)}}

/* ── GET YOUR TICKET ── */
.tkg{display:flex;flex-direction:column;gap:12px;padding-bottom:20px}
.tkg-h{margin:6px 0 0;font-size:28px;font-weight:900;letter-spacing:-.01em}
.tkg-p{margin:0;font-size:16.5px;line-height:1.45;font-weight:600}
.tkg-s{margin:0;font-size:14.5px;line-height:1.4;opacity:.75}
.tkg-l{font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.8}
.tkg-in{font-size:18px}
.tkg-ck{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:rgba(127,127,127,.12);font-size:17px;font-weight:800;cursor:pointer}
.tkg-ck input{width:24px;height:24px;accent-color:var(--g-fill,#cf0202)}
.tkg-err{min-height:1.2em;margin:0;color:#ff5a4f;font-size:15px;font-weight:800}
.tkg-go.wait,.btn.wait{opacity:.6}
.tkg-two{display:flex;gap:8px}.tkg-two .btn{flex:1}
.tkg-code{position:relative;height:72px}
.tkg-code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;z-index:2}
.tkg-boxes{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;height:100%}
.tkg-boxes span{display:grid;place-items:center;border-radius:14px;background:rgba(127,127,127,.14);box-shadow:inset 0 0 0 2px rgba(127,127,127,.25);font-size:32px;font-weight:900;font-variant-numeric:tabular-nums}
.tkg-code:focus-within .tkg-boxes span.on{box-shadow:inset 0 0 0 3px var(--g-fill,#cf0202)}
.tkg-names{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tkg-n{min-height:64px;padding:10px;border-radius:16px;border:2px solid rgba(127,127,127,.25);background:rgba(127,127,127,.08);color:inherit;font:inherit;font-size:17px;font-weight:900;cursor:pointer}
.tkg-n:active{transform:scale(.97)}
.tkg-ownb{display:flex;flex-direction:column;gap:10px}
.tkg-del{display:flex;flex-direction:column;gap:10px}

/* ── THE MOMENT ── */
.tkm{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px;background:radial-gradient(120% 80% at 50% 0%,#2a0606,#000 70%);opacity:0;transition:opacity .3s ease;overflow:auto}
.tkm.on{opacity:1}
.tkm-in{width:min(100%,380px);text-align:center;color:#fff}
.tkm-k{margin:0;font-size:13px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:#ff5a4f}
.tkm-h{margin:6px 0 18px;font-size:28px;font-weight:900;letter-spacing:-.02em}
.tkm-v{margin:16px 0 0;padding:12px 14px;border-radius:16px;background:#16a34a;color:#fff;font-size:17px;font-weight:800}
.tkm-v b{font-size:22px;font-weight:900;margin-right:6px}
.tkm-s{margin:18px 0;font-size:16px;font-weight:600;line-height:1.45;color:rgba(255,255,255,.8)}
.tkm-card{position:relative;container-type:inline-size;text-align:left;width:min(86%,320px);margin:0 auto;animation:tkDrop .8s cubic-bezier(.2,1.25,.4,1) both}
.tkm-top,.tkm-stub{position:absolute;inset:0;opacity:0;pointer-events:none}
.tkm-top{clip-path:inset(0 0 20cqw 0)}   /* the stub is 20cqw tall */
.tkm-stub{clip-path:inset(calc(100% - 20cqw) 0 0 0)}
.tkm-card.torn .tkm-whole{opacity:0}
.tkm-card.torn .tkm-top{opacity:1}
.tkm-card.torn .tkm-stub{opacity:1;animation:tkTear 1.2s cubic-bezier(.5,0,.75,.4) .05s forwards}
.tkm-card.still{animation:none}
@keyframes tkDrop{0%{transform:translateY(-70vh) rotate(-8deg)}100%{transform:none}}
@keyframes tkTear{0%{transform:none}25%{transform:translate(2%,1%) rotate(3deg)}100%{transform:translate(14%,60vh) rotate(24deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.tkf-blade,.tkf.lv-diamond .tkf-front::after{animation:none}.tkm-card{animation:none}.tkf-in{transition:none}}

/* ── HER TICKET, ALWAYS ON HER HOME (Nov 10: built or not, and no card behind it) ── */
/* close under the header (Brian, Nov 10: "can we move the ticket up a bit?") */
.h-s.h-me{margin-top:4px;padding:0;background:none;border:0;box-shadow:none}
.h-me .h-tk{margin:0}
.h-me .tkx{margin-top:0}
.tkx0{cursor:pointer}
.tkx0.quiet{cursor:default}
/* the tease on her stub: EARN SILVER & GOLD, a silver-to-gold shine, and an arrow */
.tkf .tkf-tease{background:linear-gradient(100deg,rgba(255,255,255,.08),rgba(255,255,255,0))}
.tkf .tkf-tease b{font-size:5.6cqw;letter-spacing:.04em;background:linear-gradient(90deg,#e8ebef 0%,#ffffff 30%,#ffd75e 70%,#f2c14e 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.tkf.lv-silver .tkf-tease b,.tkf.lv-gold .tkf-tease b{background:none;color:currentColor}
.tkf .tkf-tease i{font-style:normal;font-size:10cqw;font-weight:900;line-height:1;opacity:.9;animation:tkNudge 1.8s ease-in-out infinite}
@keyframes tkNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(1.6cqw)}}
.tkx-line{display:block;margin:6px auto 0;padding:10px 14px;border:0;background:none;color:var(--g-sub);font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.tkx-line[data-lh-on]{color:var(--g-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--g-line)}
@media (prefers-reduced-motion:reduce){.tkf .tkf-tease i{animation:none}}

/* the short Ticket, before she joins: as tall as what's on it */
.tkf.tk0 .tkf-main{padding-bottom:5cqw}
.tkf.tk0 .tkf-nums{margin-top:4.5cqw}
.tkf .tkf-why{margin-top:4cqw;display:flex;flex-direction:column;gap:2.4cqw}
.tkf .tkf-why-h{font-size:3.2cqw;font-weight:900;letter-spacing:.16em;opacity:.8}
.tkf .tkf-row{display:flex;align-items:center;gap:3cqw}
.tkf .tkf-ic{flex:none;display:grid;place-items:center;width:9cqw;height:9cqw;border-radius:2.6cqw;background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 .3cqw rgba(255,255,255,.25)}
.tkf .tkf-ic svg{width:5.4cqw;height:5.4cqw;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tkf .tkf-row span{display:flex;flex-direction:column;min-width:0}
.tkf .tkf-row b{font-size:4.6cqw;font-weight:900;line-height:1.15}
.tkf .tkf-row small{font-size:3.4cqw;font-weight:700;opacity:.82;line-height:1.2}
.tkf.lv-silver .tkf-ic,.tkf.lv-gold .tkf-ic{background:rgba(0,0,0,.08);box-shadow:inset 0 0 0 .3cqw rgba(0,0,0,.12)}
/* digi, faded, everywhere it leads a word (digiSCAN, digiAPP): the same as the tabs' brow */
.tkf .tkf-row b i,.tkf .tkf-stub b i{font-style:normal;opacity:.6;letter-spacing:0;text-transform:none}

/* ── THE UPDATE (ui/update.js): the pill's real globe in her level, spinning; then her Ticket re-punched: UPDATED ── */
.upd-g{flex:none;width:38px;height:38px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.55);animation:updSpin 6s linear infinite}
.upd.go .upd-g{animation:updSpin .6s linear infinite}
@keyframes updSpin{to{transform:rotate(360deg)}}
.ub{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#000;opacity:0;transition:opacity .35s ease}
.ub.off{opacity:1}
.ub-in{width:min(78%,300px);text-align:center}
.ub-tk{position:relative;text-align:left;opacity:0;transform:translateY(-60vh) rotate(-6deg)}
.ub.drop .ub-tk{opacity:1;transform:none;transition:transform .7s cubic-bezier(.2,1.25,.4,1),opacity .2s}
.ub-tk .tkx{margin:0;width:100%;cursor:default}
.ub-stamp{position:absolute;right:4%;bottom:3%;padding:6px 14px;border:4px solid #16a34a;border-radius:10px;color:#16a34a;background:rgba(255,255,255,.92);font-size:26px;font-weight:900;letter-spacing:.12em;
  transform:rotate(-12deg) scale(2.6);opacity:0;box-shadow:0 4px 18px rgba(0,0,0,.35)}
.ub.stamp .ub-stamp{opacity:1;transform:rotate(-12deg) scale(1);transition:transform .22s cubic-bezier(.3,1.6,.5,1),opacity .1s}
.ub.stamp .ub-tk{animation:ubThud .3s ease}
@keyframes ubThud{40%{transform:translateY(4px) scale(.985)}}
.ub-w{margin:22px 0 0;color:rgba(255,255,255,.75);font-size:16px;font-weight:800;letter-spacing:.04em}
.ub-w span{color:#fff;font-weight:900}.ub-w i{font-style:normal;opacity:.6}
/* SEE WHAT'S NEW */
.wn h2{margin:2px 0 10px}
.wn-k{margin:0;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;opacity:.6}
.wn ul{margin:0 0 14px;padding-left:20px}
.wn li{margin:6px 0;font-size:16.5px;font-weight:600;line-height:1.4}
@media (prefers-reduced-motion:reduce){.upd-g{animation:none}}
