/* Order tracking page (Nov 14, 2026). Phone first. Cream porcelain and gold; plum is for text and accents only. */
.tk-body {
  --cream: #FDF8F0; --porcelain: #FFFDF9; --plum: #4A1942; --ink: #2D1928; --muted: #6E5A66;
  --gold: #D4A843; --gold-deep: #8F6A1C; --gold-soft: #F6DC8C; --rim: rgba(212, 168, 67, .55);
  --ok: #2F7D4F; --ease: cubic-bezier(.2, .8, .2, 1);
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
  background:
    radial-gradient(120% 60% at 50% -10%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 40% at 100% 30%, rgba(246, 220, 140, .22), rgba(246, 220, 140, 0) 70%),
    var(--cream);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.tk-body *, .tk-body *::before, .tk-body *::after { box-sizing: border-box; }
.tk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-body [hidden] { display: none !important; }
.tk-body button { font-family: inherit; cursor: pointer; }
.tk-body a { color: var(--plum); }

.tk-top { display: flex; align-items: center; justify-content: space-between; max-width: 520px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 6px; }
.tk-logo { font-family: 'Glaze Display', Georgia, serif; font-weight: 650; font-size: 30px; letter-spacing: -.02em; color: var(--plum); text-decoration: none; line-height: 1; }
.tk-logo i { font-style: normal; color: var(--gold); }
.tk-order { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-deep); padding: 6px 12px; border: 1px solid var(--rim); border-radius: 999px 999px 999px 6px; background: var(--porcelain); }

.tk-main { max-width: 520px; margin: 0 auto; padding: 8px 14px 96px; display: flex; flex-direction: column; gap: 14px; }
#tkLive { display: flex; flex-direction: column; gap: 14px; }
.tk-col { display: contents; }

/* Porcelain card: soft glazed face, gold hairline, one "poured" corner so it is never a plain rounded box. */
.tk-card {
  position: relative; padding: 20px 18px; border-radius: 30px 30px 30px 12px; overflow: hidden;
  background: linear-gradient(170deg, #fff 0%, var(--porcelain) 45%, #FBF3E4 100%);
  border: 1px solid var(--rim);
  box-shadow: 0 1px 0 #fff inset, 0 -10px 24px rgba(212, 168, 67, .07) inset, 0 14px 34px -18px rgba(74, 25, 66, .28), 0 2px 6px rgba(74, 25, 66, .05);
  animation: tkRise .7s var(--ease) both;
}
.tk-card::before { content: ""; position: absolute; left: 22px; right: 40%; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8; }
#tkArrive, #tkProfile { animation-delay: .06s; } #tkBox { animation-delay: .12s; }
#tkPerks { animation-delay: .18s; } #tkAnswers { animation-delay: .24s; } #tkChat { animation-delay: .3s; }
@keyframes tkRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.tk-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.tk-h { margin: 0; font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: clamp(28px, 8.4vw, 36px); line-height: 1.06; letter-spacing: -.02em; color: var(--plum); text-wrap: balance; }
.tk-h em { font-style: italic; color: var(--gold-deep); }
.tk-h2 { margin: 0; font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: 23px; line-height: 1.12; letter-spacing: -.015em; color: var(--plum); }
.tk-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* BonBon, iMessage style: one bubble at a time. */
.tk-bb { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.tk-bb-face { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--rim); box-shadow: 0 4px 10px -4px rgba(74, 25, 66, .35); animation: tkBob 3.6s ease-in-out infinite; }
@keyframes tkBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
.tk-bb-col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tk-bb-name { font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 0 3px 12px; }
.tk-bb-bubble { position: relative; margin: 0; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: #EFE9EE; color: var(--ink); font-size: 15px; line-height: 1.38; max-width: 100%; transform-origin: 0 100%; animation: tkPop .45s var(--ease) both; }
.tk-bb-bubble b { color: var(--plum); }
@keyframes tkPop { from { opacity: 0; transform: scale(.7) translateY(6px); } to { opacity: 1; transform: none; } }
.tk-me { align-self: flex-end; margin: 14px 0 0 auto; padding: 9px 14px; border-radius: 20px 20px 6px 20px; background: var(--plum); color: #fff; font-size: 15px; line-height: 1.35; max-width: 82%; width: fit-content; animation: tkPop .35s var(--ease) both; transform-origin: 100% 100%; }
.tk-dots { display: inline-flex; gap: 4px; padding: 4px 2px; } .tk-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9c8d98; animation: tkDot 1s infinite; } .tk-dots i:nth-child(2) { animation-delay: .15s; } .tk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tkDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Buttons */
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px 999px 999px 14px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s; }
.tk-btn:active { transform: scale(.97); }
.tk-btn-plum { background: var(--plum); color: var(--gold-soft) !important; box-shadow: 0 10px 22px -10px rgba(74, 25, 66, .7), 0 1px 0 rgba(255, 255, 255, .18) inset; }
.tk-btn-gold { background: linear-gradient(160deg, #FBE9AE, var(--gold)); color: var(--plum) !important; box-shadow: 0 10px 22px -10px rgba(143, 106, 28, .8), 0 1px 0 rgba(255, 255, 255, .6) inset; }
.tk-btn-line { background: var(--porcelain); color: var(--plum) !important; border: 1px solid var(--rim); }
.tk-btn-wide { width: 100%; }
.tk-btn[disabled] { opacity: .55; }
.tk-link { background: none; border: 0; padding: 6px 0; font-weight: 700; color: var(--plum); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.tk-input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 18px 18px 18px 8px; border: 1px solid var(--rim); background: #fff; font: inherit; color: var(--ink); }
.tk-input:focus-visible, .tk-btn:focus-visible, .tk-pill:focus-visible, .tk-sw:focus-visible, .tk-chip:focus-visible { outline: 3px solid rgba(212, 168, 67, .6); outline-offset: 2px; }
.tk-err { margin: 10px 0 0; color: #9B2C2C; font-weight: 600; font-size: 14px; }

/* Lookup */
.tk-lookup-form { display: flex; gap: 8px; margin-top: 16px; } .tk-lookup-form .tk-btn { flex: none; }

/* Status */
.tk-status { padding-top: 22px; }
.tk-status-seal { position: absolute; right: 14px; top: 14px; width: 62px; height: 62px; }
.tk-status-seal svg { width: 100%; height: 100%; overflow: visible; }
.tk-seal-ring { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 3 5; transform-origin: 50% 50%; animation: tkSpin 14s linear infinite; }
@keyframes tkSpin { to { transform: rotate(360deg); } }
.tk-seal-core { fill: #fff; stroke: var(--rim); }
.tk-seal-ico { fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-steam { animation: tkSteam 2.2s ease-in-out infinite; } .tk-steam.s2 { animation-delay: .5s; }
@keyframes tkSteam { 0% { opacity: 0; transform: translateY(3px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
.tk-status .tk-h { padding-right: 70px; }
.tk-window { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 16px; padding: 12px 16px; border-radius: 22px 22px 22px 8px; background: linear-gradient(160deg, rgba(246, 220, 140, .35), rgba(246, 220, 140, .12)); border: 1px solid var(--rim); }
.tk-window > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-window-k { white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.tk-window-d { white-space: nowrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tk-window-v { font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: clamp(16px, 5vw, 21px); color: var(--plum); white-space: nowrap; letter-spacing: -.01em; }

/* The rail */
.tk-rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 2px; }
.tk-rail-track { position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 4px; border-radius: 4px; background: rgba(74, 25, 66, .1); overflow: hidden; }
.tk-rail-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold)); background-size: 200% 100%; transition: width 1.1s var(--ease); animation: tkShim 2.4s linear infinite; }
@keyframes tkShim { to { background-position: -200% 0; } }
.tk-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.tk-dot { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid rgba(74, 25, 66, .16); color: rgba(74, 25, 66, .35); transition: all .5s var(--ease); }
.tk-dot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-stop.done .tk-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.tk-stop.now .tk-dot { background: var(--plum); border-color: var(--plum); color: var(--gold-soft); transform: scale(1.14); box-shadow: 0 6px 14px -4px rgba(74, 25, 66, .6); }
.tk-stop.now .tk-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: tkPing 1.8s ease-out infinite; }
@keyframes tkPing { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.tk-stop-l { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.tk-stop.now .tk-stop-l { color: var(--plum); } .tk-stop-t { display: block; font-weight: 600; font-size: 11px; color: var(--gold-deep); min-height: 13px; }

/* Arrive guide */
.tk-arrive { padding: 0 0 20px; }
.tk-arrive-pad { padding: 0 18px; }
.tk-arrive-head { padding: 22px 18px 0; }
.tk-map { position: relative; margin: 16px 12px 0; border-radius: 26px 26px 26px 10px; overflow: hidden; border: 1px solid var(--rim); box-shadow: 0 16px 30px -18px rgba(20, 30, 15, .7); background: #55723f; aspect-ratio: 360 / 320; }
.tk-map-svg { display: block; width: 100%; height: 100%; }
.tk-map-tag { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(253, 248, 240, .92); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.tk-map-cap { position: absolute; left: 10px; right: 54px; bottom: 10px; padding: 10px 12px; border-radius: 18px 18px 18px 6px; background: rgba(253, 248, 240, .95); backdrop-filter: blur(6px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.tk-map-cap b { display: block; font-size: 14px; color: var(--plum); line-height: 1.2; } .tk-map-cap span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.tk-map-cap > div { animation: tkPop .4s var(--ease) both; transform-origin: 0 100%; }
.tk-steps { list-style: none; margin: 14px 0 0; padding: 0 18px; display: grid; gap: 8px; counter-reset: s; }
.tk-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 20px 20px 20px 8px; border: 1px solid transparent; transition: background .4s, border-color .4s; }
.tk-step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff; border: 1.5px solid var(--rim); color: var(--gold-deep); transition: all .4s var(--ease); }
.tk-step.on { background: rgba(246, 220, 140, .22); border-color: var(--rim); }
.tk-step.on::before { background: var(--plum); border-color: var(--plum); color: var(--gold-soft); transform: scale(1.1); }
.tk-step b { display: block; color: var(--plum); font-size: 15.5px; line-height: 1.25; } .tk-step span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.tk-go { display: grid; gap: 8px; margin-top: 14px; }
.tk-gps { margin-top: 2px; text-align: center; }
.tk-gps-box { margin-top: 8px; padding: 12px 14px; border-radius: 18px 18px 18px 8px; border: 1px dashed var(--rim); background: #fff; text-align: left; animation: tkPop .4s var(--ease) both; transform-origin: 50% 0; }
.tk-gps-box b { display: block; color: var(--plum); font-size: 16px; } .tk-gps-box span { font-size: 13px; color: var(--muted); }
.tk-here { margin-top: 18px; padding: 16px 14px; border-radius: 26px 26px 26px 10px; background: #fff; border: 1px solid var(--rim); }
.tk-here-k { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tk-sws { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(74, 25, 66, .2); padding: 0; transition: transform .2s var(--ease), box-shadow .2s; }
.tk-sw[aria-pressed="true"] { transform: scale(1.14); box-shadow: 0 0 0 2.5px var(--gold), 0 6px 12px -4px rgba(74, 25, 66, .5); }
.tk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-chip { min-height: 40px; padding: 0 16px; border-radius: 999px 999px 999px 8px; border: 1px solid var(--rim); background: var(--porcelain); font-weight: 700; font-size: 14px; color: var(--plum); transition: all .2s var(--ease); }
.tk-chip[aria-pressed="true"] { background: var(--plum); color: var(--gold-soft); border-color: var(--plum); transform: translateY(-1px); }
.tk-here .tk-input { margin-top: 12px; min-height: 46px; }
.tk-here .tk-btn { margin-top: 14px; min-height: 58px; font-size: 18px; }
.tk-here-pulse { position: relative; } .tk-here-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); animation: tkPing2 2s ease-out infinite; pointer-events: none; }
@keyframes tkPing2 { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.06, 1.35); } }
.tk-curb { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Arrived */
.tk-seen { text-align: center; padding: 26px 18px 4px; }
.tk-seen-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 14px; display: grid; place-items: center; }
.tk-seen-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: tkPing 2.2s ease-out infinite; } .tk-seen-ring i:nth-child(2) { animation-delay: .7s; } .tk-seen-ring i:nth-child(3) { animation-delay: 1.4s; }
.tk-seen-car { width: 64px; height: 64px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(74, 25, 66, .7); }
.tk-seen-car svg { width: 34px; height: 34px; }
.tk-walk { position: relative; height: 34px; margin: 16px 6px 0; }
.tk-walk::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; border-top: 2px dashed var(--rim); }
.tk-walk-box { position: absolute; top: 5px; left: 0; width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 1.5px solid var(--gold); box-shadow: 0 4px 8px -3px rgba(74, 25, 66, .4); animation: tkWalk 3.4s var(--ease) infinite; }
.tk-walk-box::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 1.5px solid var(--gold); }
@keyframes tkWalk { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 24px); opacity: 0; } }
.tk-walk-ends { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 2px 6px 0; }

/* Sticky "I'm here" bar while the car picker is off screen */
.tk-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253, 248, 240, 0), rgba(253, 248, 240, .96) 38%); transform: translateY(110%); transition: transform .45s var(--ease); pointer-events: none; }
.tk-dock.on { transform: none; pointer-events: auto; }
@media (min-width: 900px) { .tk-dock { display: none; } }
.tk-dock .tk-btn { max-width: 492px; margin: 0 auto; display: flex; min-height: 56px; font-size: 17px; }
.tk-dock small { font-weight: 600; font-size: 13px; opacity: .85; }

/* Locked guide */
.tk-lock { position: relative; margin: 16px 12px 0; height: 150px; border-radius: 26px 26px 26px 10px; overflow: hidden; border: 1px solid var(--rim); background: linear-gradient(135deg, #6a8650, #4f6a3c 55%, #3f5631); }
.tk-lock::before { content: ""; position: absolute; inset: -20px; background: linear-gradient(0deg, transparent 46%, rgba(40, 42, 44, .85) 46%, rgba(40, 42, 44, .85) 60%, transparent 60%), linear-gradient(90deg, transparent 62%, rgba(40, 42, 44, .85) 62%, rgba(40, 42, 44, .85) 74%, transparent 74%); filter: blur(9px); }
.tk-lock-in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(253, 248, 240, .3); backdrop-filter: blur(2px); }
.tk-lock-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px 999px 999px 8px; background: rgba(253, 248, 240, .96); font-weight: 800; font-size: 14px; color: var(--plum); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); }
.tk-lock-pill svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Quick answers */
.tk-pills { display: flex; gap: 8px; margin: 14px -18px 0; padding: 2px 18px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tk-pills::-webkit-scrollbar { display: none; }
.tk-pill { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 16px; border-radius: 999px 999px 999px 8px; border: 1px solid var(--rim); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--plum); transition: all .22s var(--ease); }
.tk-pill[aria-expanded="true"] { background: var(--plum); color: var(--gold-soft); border-color: var(--plum); }
.tk-thread { display: flex; flex-direction: column; min-height: 0; }
.tk-thread .tk-bb { margin-top: 10px; }

/* Your box */
.tk-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tk-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 20px 20px 20px 8px; background: #fff; border: 1px solid rgba(212, 168, 67, .32); }
.tk-item b { color: var(--plum); font-size: 15px; } .tk-item small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.tk-item i { font-style: normal; font-weight: 800; color: var(--gold-deep); font-size: 14px; flex: none; }
.tk-photo { margin: 14px 0 0; border-radius: 22px 22px 22px 8px; overflow: hidden; border: 1px solid var(--rim); } .tk-photo img { display: block; width: 100%; height: auto; }

/* Chat */
.tk-chat-log { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; margin-top: 10px; }
.tk-chat-log .tk-me { margin-top: 6px; } .tk-chat-log .tk-them { align-self: flex-start; margin-top: 6px; padding: 9px 14px; border-radius: 20px 20px 20px 6px; background: #EFE9EE; font-size: 15px; line-height: 1.35; max-width: 82%; animation: tkPop .35s var(--ease) both; transform-origin: 0 100%; overflow-wrap: anywhere; }
.tk-chat-form { display: flex; gap: 8px; margin-top: 12px; } .tk-chat-form .tk-input { border-radius: 999px; min-height: 46px; } .tk-chat-form .tk-btn { min-height: 46px; padding: 0 18px; flex: none; }

/* Profile capsule */
.tk-profile-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.tk-profile-coin { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #FBE9AE, var(--gold)); color: var(--plum); font-family: 'Glaze Display', Georgia, serif; font-weight: 700; font-size: 20px; box-shadow: 0 6px 12px -6px rgba(143, 106, 28, .8), 0 1px 0 rgba(255, 255, 255, .7) inset; animation: tkBob 4s ease-in-out infinite; }
.tk-profile-open b { display: block; color: var(--plum); font-size: 16.5px; line-height: 1.2; } .tk-profile-open span span { display: block; color: var(--muted); font-size: 13.5px; }
.tk-profile-chev { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rim); display: grid; place-items: center; transition: transform .35s var(--ease); flex: none; }
.tk-profile[data-open="1"] .tk-profile-chev { transform: rotate(180deg); }
.tk-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); } .tk-fold > div { overflow: hidden; min-height: 0; }
[data-open="1"] > .tk-fold { grid-template-rows: 1fr; }
.tk-field { margin-top: 14px; } .tk-field > label, .tk-field > .tk-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tk-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.tk-select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 18px 18px 18px 8px; border: 1px solid var(--rim); background: #fff; font: inherit; color: var(--ink); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.tk-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--muted); } .tk-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.tk-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.tk-saved { display: flex; align-items: center; gap: 12px; }

/* Done */
.tk-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tk-confetti i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; background: var(--gold); opacity: .9; animation: tkFall 3.2s linear infinite; }
@keyframes tkFall { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

.tk-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 0 0; } .tk-foot p { margin: 0 0 4px; } .tk-foot a { font-weight: 700; }
.tk-foot-small { font-size: 12px; opacity: .8; } .tk-foot-home { display: inline-block; margin-top: 10px; font-size: 13px; }
/* Bigger tap areas for the footer links and the logo, without moving the text. */
.tk-foot p a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.tk-foot-home { padding: 12px 10px; margin-top: -2px; }
.tk-logo { display: inline-block; padding: 7px 0; margin: -7px 0; }
/* The code box screen: what the page shows once a code is in. */
.tk-how { animation-delay: .08s; }
.tk-how-h { font-size: 26px; }
.tk-how-steps { padding: 0; }
.tk-sample { margin: 0; padding: 8px 14px; border-radius: 999px 999px 999px 8px; background: #fff; border: 1px dashed var(--rim); font-size: 12.5px; color: var(--muted); text-align: center; }
.tk-sample a { font-weight: 700; margin: 0 3px; white-space: nowrap; }

@media (min-width: 900px) {
  .tk-main { max-width: 980px; }
  #tkLive { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 18px; }
  .tk-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .tk-col-a { grid-column: 1; } .tk-col-b { grid-column: 2; }
  .tk-col > .bbt-chipwrap { margin-top: 0; margin-bottom: 0; }
  .tk-lookup, .tk-how { max-width: 520px; margin: 0 auto; width: 100%; }
  /* With an order open the page is two columns wide: the logo bar lines up with them instead of floating in the middle. */
  body:has(#tkLive:not([hidden])) .tk-top { max-width: 980px; padding-left: 14px; padding-right: 14px; }
}
/* ---------- dashboard additions (countdown, being made, tiles, perks) ---------- */
.tk-top-r { display: flex; align-items: center; gap: 8px; }
.tk-keep { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50% 50% 50% 30%; border: 1px solid var(--rim); background: var(--porcelain); padding: 0; transition: transform .2s var(--ease); }
.tk-keep:active { transform: scale(.92); }
.tk-keep svg { width: 18px; height: 18px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-toast { position: fixed; z-index: 60; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100vw - 28px); padding: 10px 16px; border-radius: 999px 999px 999px 8px; background: var(--plum); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(74, 25, 66, .7); animation: tkPop .35s var(--ease) both; }

.tk-count { margin-top: 16px; padding: 16px 14px 14px; border-radius: 26px 26px 26px 10px; text-align: center; border: 1px solid var(--rim); background: radial-gradient(120% 90% at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, rgba(246, 220, 140, .4), rgba(246, 220, 140, .12)); box-shadow: 0 1px 0 #fff inset, 0 -8px 18px rgba(212, 168, 67, .1) inset; }
.tk-count-cells { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.tk-count-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 76px; }
.tk-count-cell b { display: block; width: 100%; padding: 10px 0 8px; border-radius: 20px 20px 20px 8px; background: linear-gradient(175deg, #fff, var(--porcelain) 60%, #F8EEDB); border: 1px solid var(--rim); box-shadow: 0 1px 0 #fff inset, 0 10px 18px -12px rgba(74, 25, 66, .45); font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: clamp(34px, 11vw, 44px); line-height: 1; letter-spacing: -.02em; color: var(--plum); font-variant-numeric: tabular-nums lining-nums; }
.tk-count-cell b.flip { animation: tkFlip .42s var(--ease) both; }
@keyframes tkFlip { from { transform: translateY(-5px) scale(1.03); filter: brightness(1.06); } to { transform: none; filter: none; } }
.tk-count-cell i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); min-height: 14px; }
.tk-count-sep { font-family: 'Glaze Display', Georgia, serif; font-size: 30px; line-height: 58px; color: var(--gold); animation: tkBlink 1s steps(2, start) infinite; }
@keyframes tkBlink { 50% { opacity: .25; } }
.tk-count-k { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.tk-count-bar { position: relative; height: 6px; margin: 12px 4px 0; border-radius: 6px; background: rgba(74, 25, 66, .1); overflow: hidden; }
.tk-count-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 4%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transition: width 1s linear; }
.tk-count-ends { display: flex; justify-content: space-between; margin: 5px 4px 0; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

.tk-making { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.tk-making-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(74, 25, 66, .1); overflow: hidden; }
.tk-making-bar i { position: absolute; top: 0; bottom: 0; width: 42%; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-soft), transparent); animation: tkMaking 1.8s var(--ease) infinite; }
@keyframes tkMaking { from { left: -42%; } to { left: 100%; } }
.tk-making-k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

.tk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tk-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 84px; padding: 10px 4px 9px; border-radius: 22px 22px 22px 9px; border: 1px solid rgba(212, 168, 67, .45); background: linear-gradient(175deg, #fff, var(--porcelain)); color: var(--plum); text-align: center; box-shadow: 0 8px 16px -12px rgba(74, 25, 66, .4); transition: transform .22s var(--ease), box-shadow .22s var(--ease); animation: tkRise .6s var(--ease) both; }
.tk-tile:nth-child(2) { animation-delay: .05s; } .tk-tile:nth-child(3) { animation-delay: .1s; } .tk-tile:nth-child(4) { animation-delay: .15s; }
.tk-tile:active { transform: scale(.95); }
.tk-tile-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(246, 220, 140, .4); }
.tk-tile-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--plum); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tk-tile b { font-size: 13.5px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-tile-s { font-size: 10.5px; line-height: 1.2; font-weight: 600; color: var(--muted); }
.tk-tile.is-gold { border-color: var(--gold); background: linear-gradient(170deg, #FFF6D9, var(--gold-soft)); }
.tk-tile.is-gold .tk-tile-ico { background: #fff; animation: tkBob 2.6s ease-in-out infinite; }
.tk-tile.is-gold .tk-tile-s { color: var(--gold-deep); }
.tk-tile.has-new::after { content: ""; position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 67, .25); animation: tkBlink 1.4s steps(2, start) infinite; }
.tk-flash { animation: tkFlash 1.3s var(--ease) both !important; }
@keyframes tkFlash { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 67, .0), 0 14px 34px -18px rgba(74, 25, 66, .28); } 30% { box-shadow: 0 0 0 5px rgba(212, 168, 67, .55), 0 14px 34px -18px rgba(74, 25, 66, .28); } 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0), 0 14px 34px -18px rgba(74, 25, 66, .28); } }
.tk-card { scroll-margin-top: 12px; }

.tk-perks-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tk-perk { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 14px 11px 10px; border-radius: 22px 22px 22px 8px; background: #fff; border: 1px solid rgba(212, 168, 67, .32); font-size: 14.5px; color: var(--ink); animation: tkRise .6s var(--ease) both; animation-delay: calc(var(--i) * .08s); }
.tk-perk-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(246, 220, 140, .45); }
.tk-perk-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--plum); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tk-perk b { font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: 17px; color: var(--plum); white-space: nowrap; }

.tk-reveal { margin: 18px 0 0; }
.tk-reveal-stage { position: relative; }
.tk-reveal-frame { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border-radius: 30px 30px 30px 12px; border: 1px solid var(--gold); background: #F4EBDA; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--rim), 0 22px 36px -20px rgba(74, 25, 66, .55); }
.tk-reveal-img { display: block; width: 100%; height: 100%; object-fit: cover; animation: tkDrift 14s ease-in-out infinite alternate; }
@keyframes tkDrift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
.tk-reveal-shine { position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255, 246, 217, .0) 46%, rgba(255, 246, 217, .55) 50%, rgba(255, 246, 217, 0) 54%, transparent 58%); transform: translateX(-70%); animation: tkShine 6.5s var(--ease) 2.2s infinite; pointer-events: none; }
@keyframes tkShine { 0% { transform: translateX(-70%); } 22%, 100% { transform: translateX(70%); } }
.tk-reveal-spark { position: absolute; inset: 0; pointer-events: none; }
.tk-reveal-spark i { position: absolute; width: 16px; height: 16px; background: #FFF6D9; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: tkTwinkle 2.8s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(246, 220, 140, .9)); }
.tk-reveal-spark i:nth-child(1) { left: 14%; top: 14%; } .tk-reveal-spark i:nth-child(2) { right: 12%; top: 20%; width: 24px; height: 24px; animation-delay: .6s; } .tk-reveal-spark i:nth-child(3) { right: 26%; top: 9%; width: 11px; height: 11px; animation-delay: 1.2s; } .tk-reveal-spark i:nth-child(4) { left: 30%; top: 30%; width: 10px; height: 10px; animation-delay: 1.7s; } .tk-reveal-spark i:nth-child(5) { right: 9%; top: 44%; width: 13px; height: 13px; animation-delay: 2.2s; }
@keyframes tkTwinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.tk-reveal-sign { position: absolute; right: 14px; bottom: 12px; left: 38%; padding: 30px 4px 0 0; text-align: right; color: #fff; text-shadow: 0 2px 10px rgba(45, 25, 40, .9); pointer-events: none; }
.tk-reveal-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, rgba(45, 25, 40, 0), rgba(45, 25, 40, .72)); pointer-events: none; }
.tk-reveal-sign { z-index: 1; }
.tk-reveal-sign b { display: block; font-family: 'Glaze Display', Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(19px, 5.8vw, 25px); line-height: 1.1; color: var(--gold-soft); }
.tk-reveal-sign i { display: block; margin-top: 3px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.tk-reveal-lid { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(170deg, #fff, var(--porcelain) 50%, #F3E6CB); border-bottom: 2px solid var(--gold); transform-origin: 50% 0; }
.tk-reveal-lid i { font-style: normal; font-family: 'Glaze Display', Georgia, serif; font-weight: 650; font-size: 48px; letter-spacing: -.02em; color: var(--plum); } .tk-reveal-lid em { font-style: normal; color: var(--gold); }
.tk-reveal-lid small { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.tk-reveal-flash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
.tk-reveal-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.tk-reveal-burst i { position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; }
/* BonBon stands on the corner of the frame and says whose box it is */
.tk-reveal-bb { position: absolute; left: -10px; bottom: -14px; z-index: 5; display: flex; align-items: flex-end; pointer-events: none; }
.tk-reveal-bb img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(45, 25, 40, .45)); transform-origin: 50% 100%; animation: tkHop 3.2s ease-in-out infinite; }
@keyframes tkHop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.tk-reveal-say { margin: 0 0 88px -14px; padding: 9px 14px; border-radius: 20px 20px 20px 6px; background: var(--porcelain); border: 1px solid var(--gold); color: var(--plum); font-family: 'Glaze Display', Georgia, serif; font-weight: 600; font-size: 16.5px; line-height: 1.15; box-shadow: 0 10px 18px -10px rgba(45, 25, 40, .7); transform-origin: 0 100%; }
.tk-reveal-say em { color: var(--gold-deep); }
.tk-reveal figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 0; font-size: 13.5px; color: var(--muted); } .tk-reveal figcaption b { color: var(--plum); } .tk-reveal figcaption .tk-link { white-space: nowrap; flex: none; }
.tk-reveal-save { margin-top: 12px; }
/* first time (or Play again): lid up on its back hinge, flash, burst, BonBon hops in, the words arrive */
.tk-reveal.is-play .tk-reveal-lid { display: flex; animation: tkLid 1.15s var(--ease) .45s both; }
.tk-reveal.is-play .tk-reveal-frame { animation: tkShake .45s ease-in-out both; }
.tk-reveal.is-play .tk-reveal-flash { animation: tkShutter .75s ease-out 1.35s both; }
.tk-reveal.is-play .tk-reveal-burst i { animation: tkBurst 1.25s cubic-bezier(.15, .7, .3, 1) 1.4s both; }
.tk-reveal.is-play .tk-reveal-bb img { animation: tkBbIn .8s cubic-bezier(.3, 1.6, .5, 1) 1.9s both, tkHop 3.2s ease-in-out 2.7s infinite; }
.tk-reveal.is-play .tk-reveal-say { animation: tkPop .5s var(--ease) 2.45s both; }
.tk-reveal.is-play .tk-reveal-sign { animation: tkWrite 1s var(--ease) 2.8s both; }
.tk-reveal.is-play .tk-reveal-save, .tk-reveal.is-play figcaption { animation: tkRise .6s var(--ease) 3.1s both; }
@keyframes tkShake { 0%, 100% { transform: none; } 25% { transform: rotate(-1.2deg) scale(1.01); } 50% { transform: rotate(1.2deg) scale(1.01); } 75% { transform: rotate(-.6deg); } }
@keyframes tkLid { 0% { transform: perspective(700px) rotateX(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: perspective(700px) rotateX(-104deg); opacity: 0; } }
@keyframes tkShutter { 0% { opacity: 0; } 18% { opacity: .95; } 100% { opacity: 0; } }
@keyframes tkBurst { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -2.2)) rotate(200deg) scale(1); } }
@keyframes tkBbIn { from { opacity: 0; transform: translateY(70px) scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes tkWrite { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.tk-light { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px; background: rgba(45, 25, 40, .88); animation: tkPop .3s var(--ease) both; }
.tk-light img { max-width: 100%; max-height: 78vh; border-radius: 26px 26px 26px 10px; border: 1px solid var(--gold); box-shadow: 0 0 0 5px #fff; }
button.tk-photo { display: block; width: 100%; padding: 0; background: none; }

@media (max-width: 359px) { .tk-count-cell { min-width: 64px; } .tk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .tk-body *, .tk-body *::before, .tk-body *::after { animation: none !important; transition: none !important; }
  .tk-walk-box { left: calc(50% - 12px); opacity: 1; }
}

/* The photo dialog is open: the page behind it does not scroll. */
html.tk-noscroll,html.tk-noscroll body{overflow:hidden}
