/* EZ Talks, build 6: the redesign ("Neon City", designed in Claude Design, 19 Nov 2026).
   A night city where things glow. Neon is made of light; the one main action is EZ coral, in neon; rewards are sun-yellow.
   Everything pressable answers the press (decision 46): :active is the press itself, .is-boing the little dance after it.
   Phone first (360 to 600 px); on wider screens the app sits in a centred column on the night sky.
   The same file styles the app (body.tk-sky > #app.tk-app) and the design canvas (.tk-frame.tk-sky > .tk-app). */
:root {
  --night: #0b0820; --glass: rgba(255, 255, 255, .06); --glass-2: rgba(255, 255, 255, .1); --glass-3: rgba(255, 255, 255, .17);
  --edge: rgba(255, 255, 255, .14); --text: #f6f3ff; --muted: rgba(246, 243, 255, .74); --ink: #1b1240;
  --cyan: #27e8ff; --mint: #3cf2d0; --pink: #ff3fae; --lime: #9dff4a; --sun: #ffd84a; --violet: #b18cff; --orange: #ff8a3d;
  --act: #ff6f4a; --act-2: #ff9a5c; --act-d: #9a3412;
  --good: #5cf59e; --almost: #ffc24a; --bad: #ff6b88;
  --r-lg: 26px; --r-md: 18px;
  --font: "Fredoka", "Fredoka Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
  --font-ar: "Baloo Bhaijaan 2", "Fredoka", system-ui, "Noto Sans Arabic", sans-serif;
  --spring: cubic-bezier(.34, 1.7, .5, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--night); overscroll-behavior-y: none; }

/* ------------------------------------------------------------------ the night sky and the app column */
.tk-sky { color: var(--text); font: 500 16px/1.45 var(--font); }
.tk-sky:lang(ar) { font-family: var(--font-ar); }
.tk-sky::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 11% 13%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 79% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 63% 27%, #d9fffb 50%, transparent 52%), radial-gradient(1px 1px at 30% 41%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 49%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 7% 68%, #ffe0f3 50%, transparent 52%),
    radial-gradient(1px 1px at 51% 81%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 93% 87%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 6%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 71% 62%, #e7dcff 50%, transparent 52%),
    radial-gradient(55% 38% at 88% 6%, rgba(255, 63, 174, .2), transparent 70%),
    radial-gradient(65% 42% at 4% 32%, rgba(39, 232, 255, .14), transparent 70%),
    radial-gradient(90% 50% at 50% 104%, rgba(177, 140, 255, .2), transparent 70%),
    linear-gradient(180deg, #140d3a 0%, #0e0a2b 46%, #0a0820 100%); }
.tk-frame { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.tk-frame.tk-sky::before { position: absolute; }
.tk-app { container-type: inline-size; width: 100%; max-width: 520px; margin: 0 auto; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: flex; flex-direction: column; position: relative; }
.tk-frame .tk-app { min-height: 0; flex: 1; }
:where(.tk-app) :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }   /* no weight: every button class below wins */
.en { unicode-bidi: isolate; direction: ltr; font-family: var(--font); }
.tk-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
[dir=rtl] .tk-dir { transform: scaleX(-1); }
main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 16px calc(22px + env(safe-area-inset-bottom)); position: relative; }

/* ------------------------------------------------------------------ top bar */
.tk-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px;
  background: linear-gradient(180deg, rgba(14, 10, 43, .97) 0%, rgba(14, 10, 43, .85) 72%, rgba(14, 10, 43, 0)); }
.tk-brand { font-weight: 700; font-size: 21px; letter-spacing: .2px; direction: ltr; white-space: nowrap; cursor: default; }
.tk-brand b { font-weight: 700; color: #eafffb; text-shadow: 0 0 4px var(--mint), 0 0 12px var(--mint), 0 0 26px rgba(60, 242, 208, .6); animation: tk-sign 7s linear infinite; }
.tk-grow, .tk-title { flex: 1; min-width: 0; }
.tk-title { font-weight: 600; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-iconbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--edge); display: grid; place-items: center; flex: none; transition: transform .45s var(--spring); }
.tk-coins, .tk-streak { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px 0 8px; border-radius: 17px; background: var(--glass-2); border: 1px solid var(--edge); font-weight: 600; font-size: 15px; direction: ltr; white-space: nowrap; flex: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tk-coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -3px;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffcf3a 52%, #e39a00); box-shadow: inset 0 0 0 2px rgba(150, 90, 0, .4), 0 0 8px rgba(255, 207, 58, .55); }
.tk-flame { width: 16px; height: 20px; flex: none; display: block; filter: drop-shadow(0 0 4px rgba(255, 138, 61, .8)); }
.tk-ring { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none; transition: transform .45s var(--spring); }
.tk-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.tk-ring circle { fill: none; stroke-width: 3.6; } .tk-ring .bg { stroke: var(--glass-3); }
.tk-ring .fg { stroke: var(--sun); stroke-linecap: round; transition: stroke-dasharray .5s; filter: drop-shadow(0 0 3px var(--sun)); }
.tk-ring b { font-size: 10.5px; font-weight: 600; direction: ltr; } .tk-ring.is-full .fg { stroke: var(--good); filter: drop-shadow(0 0 4px var(--good)); }
.tk-lang { height: 36px; padding: 0 11px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--edge); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; flex: none; transition: transform .45s var(--spring); }
.tk-lang .tk-ico { width: 18px; height: 18px; color: var(--cyan); }
.tk-segs { flex: 1; display: flex; gap: 5px; min-width: 0; cursor: pointer; }
.tk-segs i { flex: 1; height: 9px; border-radius: 6px; background: var(--glass-3); transition: background .3s, box-shadow .3s; }
.tk-segs .cur { background: rgba(255, 255, 255, .6); box-shadow: 0 0 8px rgba(255, 255, 255, .55); animation: tk-breathe 1.2s ease-in-out infinite; }
.tk-segs .s3 { background: var(--sun); box-shadow: 0 0 8px var(--sun); } .tk-segs .s2 { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.tk-segs .s1 { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); } .tk-segs .s0 { background: #7d6fb0; }

/* ------------------------------------------------------------------ buttons */
.tk-cta { min-height: 54px; padding: 10px 30px; border-radius: 27px; color: #fff; font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--act-2), var(--act) 58%, #f2552f); text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  box-shadow: 0 0 22px rgba(255, 111, 74, .55), 0 6px 0 var(--act-d), 0 12px 24px rgba(0, 0, 0, .3); transition: transform .45s var(--spring); }
.tk-ghost { min-height: 46px; padding: 8px 18px; border-radius: 23px; background: var(--glass-2); border: 1.5px solid var(--edge); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .45s var(--spring), background .2s; }
.tk-ghost .tk-ico { width: 20px; height: 20px; }
.tk-round { width: 58px; height: 58px; min-height: 0; padding: 0; border-radius: 50%; position: relative; flex: none; }
.tk-round .tk-ico { width: 26px; height: 26px; }
.tk-round span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 7px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tk-round.tk-cta { padding: 0; box-shadow: 0 0 0 5px rgba(255, 111, 74, .18), 0 0 24px rgba(255, 111, 74, .65), 0 5px 0 var(--act-d); animation: tk-nudge 1.6s ease-in-out infinite; }
.tk-round.tk-cta span { color: var(--act-2); font-weight: 700; text-shadow: none; }
.tk-actions { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin-top: auto; padding-top: 6px; }
.tk-deck { gap: 28px; padding: 10px 0 24px; }
.tk-talk { --lvl: 0; position: relative; width: 92px; height: 92px; border-radius: 50%; flex: none; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #ffc8a6 0%, var(--act-2) 22%, var(--act) 56%, #d9431f 100%);
  box-shadow: 0 0 0 6px rgba(255, 111, 74, .16), 0 0 30px rgba(255, 111, 74, .55), 0 8px 0 var(--act-d), 0 16px 30px rgba(0, 0, 0, .4);
  transition: transform .5s var(--spring), width .25s, height .25s; }
.tk-talk svg { width: 38px; height: 38px; fill: currentColor; position: relative; z-index: 1; }
.tk-talk::before, .tk-talk::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--mint); opacity: 0; pointer-events: none; }
.tk-talk:not(.is-live):not(:disabled)::before { border-color: rgba(255, 154, 92, .8); animation: tk-invite 2.2s ease-out infinite; }
.tk-talk.is-live { color: var(--ink); background: radial-gradient(circle at 34% 28%, #f0fffb 0%, #9cfbe8 22%, var(--mint) 56%, #0e9f8a 100%);
  box-shadow: 0 0 0 6px rgba(60, 242, 208, .18), 0 0 44px rgba(60, 242, 208, .75), 0 8px 0 #0b6f64, 0 16px 30px rgba(0, 0, 0, .4); }
.tk-talk.is-live::before { opacity: .95; transform: scale(calc(1 + var(--lvl) * .32)); transition: transform .08s linear; }
.tk-talk.is-live::after { opacity: .45; border-width: 2px; transform: scale(calc(1.1 + var(--lvl) * .42)); transition: transform .12s linear; }
.tk-talk:disabled { cursor: progress; } .tk-talk:disabled::after { opacity: 1; inset: -8px; border: 3px dashed rgba(255, 255, 255, .65); animation: tk-spin 1.4s linear infinite; }
.tk-talk.is-small { width: 60px; height: 60px; } .tk-talk.is-small svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ press feedback (decision 46) */
.tk-cta:active, .tk-ghost:active, .tk-iconbtn:active, .tk-lang:active, .tk-ring:active { transform: scale(.9); transition-duration: .06s; }
.tk-talk:active { transform: scale(.88, .82); transition-duration: .06s; }
.tk-node-btn:active { transform: scale(.88) rotate(-5deg); transition-duration: .06s; }
.tk-choice:active { transform: translateY(4px) scale(.98); transition-duration: .06s; }
.tk-option:active { transform: translateY(4px) scale(.94); transition-duration: .06s; }
.tk-node-btn.is-boing, .tk-score.is-boing, .tk-talk.is-boing { animation: tk-jelly .6s ease-out; }
.is-locked .tk-node-btn.is-boing { animation: tk-nope .45s ease-out; }
.is-locked .tk-node-btn.is-boing .tk-lockb { animation: tk-swing .6s ease-out; }
.tk-bond.is-boing, .tk-levelbadge.is-boing, .tk-coins.is-boing, .tk-earn.is-boing, .tk-facts > div.is-boing, .tk-sample.is-boing, .tk-privacy.is-boing, .tk-warm-pct.is-boing, .tk-tr.is-boing { animation: tk-bump .42s var(--spring); }
.tk-coins.is-boing .tk-coin, .tk-earn.is-boing .tk-coin { animation: tk-flip .6s ease-in-out; }
.tk-streak.is-boing .tk-flame { animation: tk-flare .6s ease-out; }
.tk-stars .on.is-boing { animation: tk-twirl .6s var(--spring); }
.tk-bubble.is-boing { animation: tk-wiggle .5s ease-in-out; }
.tk-sit.is-boing, .tk-card.is-boing { animation: tk-tilt .5s var(--spring); }
.tk-level.is-boing, .tk-set-sign.is-boing, .tk-sign.is-boing, .tk-brand.is-boing b { animation: tk-flicker .6s linear; }
.tk-holo.is-boing { animation: tk-glitch .45s steps(2); }
.tk-here.is-boing { animation: tk-hop .45s var(--spring); }
.tk-ring.is-boing svg { animation: tk-turn .7s var(--spring); }
.tk-segs.is-boing i { animation: tk-bump .35s var(--spring) backwards; } .tk-segs.is-boing i:nth-child(2) { animation-delay: .04s; } .tk-segs.is-boing i:nth-child(3) { animation-delay: .08s; }
.tk-segs.is-boing i:nth-child(4) { animation-delay: .12s; } .tk-segs.is-boing i:nth-child(5) { animation-delay: .16s; } .tk-segs.is-boing i:nth-child(n+6) { animation-delay: .2s; }
@keyframes tk-jelly { 0% { transform: scale(1, 1); } 25% { transform: scale(1.14, .86); } 45% { transform: scale(.9, 1.1); } 65% { transform: scale(1.05, .95); } 82% { transform: scale(.98, 1.02); } 100% { transform: scale(1, 1); } }
@keyframes tk-nope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-3deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes tk-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(22deg); } 50% { transform: rotate(-16deg); } 75% { transform: rotate(8deg); } }
@keyframes tk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes tk-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes tk-flare { 0% { transform: scale(1); } 30% { transform: scale(1.4) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes tk-twirl { 0% { transform: scale(1) rotate(0); } 50% { transform: scale(1.5) rotate(170deg); } 100% { transform: scale(1) rotate(360deg); } }
@keyframes tk-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 50% { transform: rotate(2.5deg); } 75% { transform: rotate(-1.5deg); } }
@keyframes tk-tilt { 0% { transform: perspective(700px) rotateX(0); } 35% { transform: perspective(700px) rotateX(9deg) scale(.98); } 100% { transform: perspective(700px) rotateX(0); } }
@keyframes tk-flicker { 0%, 100% { opacity: 1; } 15% { opacity: .2; } 30% { opacity: 1; } 45% { opacity: .35; } 60% { opacity: 1; } }
@keyframes tk-glitch { 0% { transform: rotate(-4deg); } 25% { transform: rotate(-4deg) translate(-4px, 1px) skewX(7deg); } 50% { transform: rotate(-4deg) translate(3px, -1px); } 75% { transform: rotate(-4deg) translate(-2px, 0) skewX(-5deg); } 100% { transform: rotate(-4deg); } }
@keyframes tk-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -9px; } }
@keyframes tk-turn { from { rotate: 0deg; } to { rotate: 360deg; } }

/* ------------------------------------------------------------------ Neon (EZNEON) */
/* Neon himself is the shared component: /static/shared/neon/v1/neon.css + neon.js (loaded by index.html before this file). */
.neon { flex: none; --ez-neon-font: var(--font); }
.tk-city text { direction: ltr; unicode-bidi: isolate; }

/* ------------------------------------------------------------------ bubbles */
.tk-stage { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.tk-bubble { position: relative; max-width: 100%; background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 16px; font-weight: 600; font-size: 18px; line-height: 1.3; text-align: center; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .35), 0 0 26px rgba(60, 242, 208, .22); }
.tk-bubble small { display: block; font-weight: 500; font-size: 14px; color: #5b5480; margin-top: 3px; }
.tk-bubble::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: #fff; }
.tk-bubble.is-speech { font-size: 21px; padding: 12px 18px; }

/* ------------------------------------------------------------------ home: Neon City */
.tk-hero { width: 100%; display: flex; align-items: center; gap: 6px; }
.tk-hero .tk-bubble { flex: 1; text-align: start; }
.tk-hero .tk-bubble::before { top: 50%; left: auto; inset-inline-start: -9px; margin: -9px 0 0; border: 9px solid transparent; border-inline-start: 0; border-inline-end-color: #fff; }
.tk-sample { font-size: 12.5px; padding: 3px 12px; border-radius: 12px; color: var(--sun); border: 1px dashed rgba(255, 216, 74, .55); background: rgba(255, 216, 74, .08); cursor: pointer; }
.tk-sit { width: 100%; padding: 16px 16px 14px; border-radius: var(--r-lg); position: relative; overflow: hidden; text-align: start; cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .25); }
.tk-sit::before { content: ""; position: absolute; top: 0; inset-inline: 22px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--sun)); box-shadow: 0 0 12px var(--pink); }
.tk-sit-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-sit h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; }
.tk-level { font-size: 13px; font-weight: 700; color: var(--lime); border: 2px solid var(--lime); border-radius: 10px; padding: 0 8px; direction: ltr; cursor: pointer;
  box-shadow: 0 0 8px rgba(157, 255, 74, .5), inset 0 0 6px rgba(157, 255, 74, .35); text-shadow: 0 0 6px rgba(157, 255, 74, .8); }
.tk-sit p { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.tk-sitbar-row { display: flex; align-items: center; gap: 10px; }
.tk-sitbar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); overflow: hidden; }
.tk-sitbar i { display: block; height: 100%; min-width: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 10px var(--pink); transition: width .6s; }
[dir=rtl] .tk-sitbar i { background: linear-gradient(270deg, var(--cyan), var(--pink)); }
.tk-sitn { font-size: 14px; font-weight: 600; color: var(--muted); direction: ltr; }
.tk-map { position: relative; width: 100%; margin-top: 26px; }
.tk-cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tk-cable path { fill: none; stroke-linecap: round; }
.tk-cable .base { stroke: rgba(255, 255, 255, .16); stroke-width: 5; stroke-dasharray: 1 11; }
.tk-cable .glow { stroke: var(--cyan); stroke-width: 13; opacity: .16; } .tk-cable .lit { stroke: var(--cyan); stroke-width: 4; }
.tk-cable .run { stroke: #fff; stroke-width: 4; stroke-dasharray: 3 62; animation: tk-run 1.9s linear infinite; }
.tk-path { list-style: none; margin: 0; padding: 0 0 6px; position: relative; z-index: 1; }
.tk-node { --c: var(--cyan); position: relative; width: 150px; margin-inline-start: calc(var(--x, 50) * 1% - 75px); display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.tk-node + .tk-node { margin-top: -20px; }
.k-sound { --c: var(--cyan); } .k-sentence { --c: var(--pink); } .k-scene { --c: var(--lime); } .k-task { --c: var(--sun); } .k-pack { --c: var(--violet); }
.tk-node-btn { position: relative; width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: var(--c); transition: transform .45s var(--spring);
  background: radial-gradient(120% 120% at 30% 18%, rgba(255, 255, 255, .17), rgba(255, 255, 255, .02) 62%), #1a1348; border: 2.5px solid var(--c);
  box-shadow: 0 0 22px var(--c), 0 9px 0 rgba(0, 0, 0, .3); }
@supports (color: color-mix(in srgb, red, blue)) {
  .tk-node-btn { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent), 0 0 24px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 16px color-mix(in srgb, var(--c) 32%, transparent), 0 9px 0 rgba(0, 0, 0, .3); }
  .is-done .tk-node-btn { background: radial-gradient(120% 120% at 30% 18%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 62%), color-mix(in srgb, var(--c) 26%, #1a1348); }
}
.tk-node-btn .tk-ico { width: 40px; height: 40px; stroke-width: 2.2; filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 9px var(--c)); }
.is-current .tk-node-btn::before, .is-current .tk-node-btn::after { content: ""; position: absolute; inset: -7px; border-radius: 33px; border: 2px solid var(--c); opacity: 0; animation: tk-radar 2.2s ease-out infinite; pointer-events: none; }
.is-current .tk-node-btn::after { animation-delay: 1.1s; }
.is-locked .tk-node-btn { color: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .16); background: #17123a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 8px 0 rgba(0, 0, 0, .25); cursor: not-allowed; }
.is-locked .tk-node-btn .tk-ico { filter: none; } .is-locked .tk-node-label { opacity: .55; }
.tk-lockb, .tk-check { position: absolute; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.tk-lockb { bottom: -7px; inset-inline-end: -7px; background: #2a2160; border: 2px solid rgba(255, 255, 255, .22); color: #d7ceff; transform-origin: 50% 0; }
.tk-check { top: -9px; inset-inline-end: -9px; background: var(--c); color: var(--ink); box-shadow: 0 0 12px var(--c); }
.tk-lockb .tk-ico, .tk-check .tk-ico { width: 15px; height: 15px; stroke-width: 2.6; filter: none; }
.tk-node-label b { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.tk-node-label .tk-stars { font-size: 15px; }
.tk-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.tk-node-label { max-width: 150px; }
.tk-mode { font-size: 11.5px; line-height: 1.3; padding: 1px 8px; border-radius: 9px; border: 1px solid var(--edge); color: var(--muted); }
.tk-mode.is-on { border-color: var(--c); color: var(--c); box-shadow: 0 0 8px rgba(255, 216, 74, .35); font-weight: 600; }
.tk-here { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--sun); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 11px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 216, 74, .6); animation: tk-float 1.4s ease-in-out infinite; }
.tk-here::after { content: ""; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--sun); }
.tk-node.is-pack .tk-node-btn { width: 96px; border-radius: 24px; background: repeating-linear-gradient(180deg, #241b55 0 9px, #1a1442 9px 12px); color: rgba(177, 140, 255, .55); border-color: rgba(177, 140, 255, .45); box-shadow: 0 0 18px rgba(177, 140, 255, .25), 0 8px 0 rgba(0, 0, 0, .25); }
.tk-maxtag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--violet); border: 1.5px solid var(--violet); border-radius: 8px; padding: 0 7px; box-shadow: 0 0 8px rgba(177, 140, 255, .45); text-shadow: 0 0 6px rgba(177, 140, 255, .8); }
.tk-node.is-new .tk-node-btn { animation: tk-unlock 1s ease-out .35s backwards; } .tk-node.is-just .tk-node-btn { animation: tk-jelly .7s ease-out; }
.tk-city { width: calc(100% + 32px); margin: 16px -16px 0; cursor: pointer; }
.tk-city svg { display: block; width: 100%; height: auto; overflow: visible; }
.tk-city .bld { fill: #181143; } .tk-city .bld.b2 { fill: #20175a; } .tk-city .roof { fill: none; stroke: rgba(177, 140, 255, .5); stroke-width: 1.5; }
.tk-city .w { fill: rgba(255, 255, 255, .07); transition: fill .4s; } .tk-city .w.on { fill: var(--sun); } .tk-city .w.on.c1 { fill: var(--cyan); } .tk-city .w.on.c2 { fill: var(--pink); } .tk-city .w.on.c3 { fill: var(--mint); } .tk-city .w.on.c4 { fill: var(--violet); }
.tk-city .w.tw { animation: tk-flicker 3.4s linear infinite; } .tk-city.is-boing .w.on { animation: tk-flicker .6s linear; }
.tk-city .street { fill: #0c0926; } .tk-city .glowline { stroke: var(--pink); stroke-width: 2; opacity: .85; filter: drop-shadow(0 0 4px var(--pink)); }
.tk-city .sign { font: 700 9px var(--font); fill: #fff; letter-spacing: 1px; filter: drop-shadow(0 0 2px var(--pink)) drop-shadow(0 0 5px var(--pink)); }
.tk-city-cap { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 16px 0; font-size: 13px; color: var(--muted); text-align: center; }
.tk-city-cap b { color: var(--sun); direction: ltr; font-weight: 700; }
.tk-privacy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); max-width: 100%; margin: 6px 0 0; cursor: pointer; }
.tk-privacy .tk-ico { width: 18px; height: 18px; color: var(--mint); }
.tk-engine { font-size: 13px; color: var(--muted); min-height: 18px; margin: 0; text-align: center; }
.is-bad { color: #ffb3c2 !important; } .is-good { color: #9ff7c4 !important; }

/* ------------------------------------------------------------------ practice: sounds and sentences */
.tk-card { width: 100%; padding: 18px 16px 16px; border-radius: var(--r-lg); text-align: center; cursor: pointer;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1.5px solid rgba(39, 232, 255, .55);
  box-shadow: 0 0 0 4px rgba(39, 232, 255, .07), 0 0 26px rgba(39, 232, 255, .2), inset 0 0 18px rgba(39, 232, 255, .08); }
.tk-line { font-size: 30px; font-weight: 600; line-height: 1.2; text-align: center; }
.tk-tr { font-size: 16px; color: var(--muted); margin-top: 6px; text-align: center; }
.tk-hint { font-size: 14px; color: var(--muted); text-align: center; }
.tk-status { min-height: 22px; font-size: 15px; color: var(--muted); text-align: center; }
.tk-missed { text-decoration: underline wavy var(--sun); text-underline-offset: 6px; color: var(--sun); display: inline-block; animation: tk-shake .45s; }
.tk-scorebox { --glow: var(--sun); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 10px; }
.tk-score { position: relative; width: 116px; height: 116px; display: grid; place-items: center; animation: tk-pop .4s var(--spring); cursor: pointer; }
.tk-score::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .22; }
.tk-score svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.tk-score circle { fill: none; stroke-width: 8; } .tk-score .bg { stroke: rgba(255, 255, 255, .1); }
.tk-score .fg { stroke: var(--glow); stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px var(--glow)); }
.tk-score.b0 .fg { stroke: #c4a4ff; filter: none; } .tk-score.b0::before { opacity: 0; }
.tk-score b { position: relative; font-size: 42px; font-weight: 700; direction: ltr; text-shadow: 0 0 14px var(--glow); }
.tk-score.is-small { width: 84px; height: 84px; } .tk-score.is-small b { font-size: 28px; }
.tk-score-line { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.tk-out { font-weight: 700; color: #fff; text-shadow: 0 0 10px var(--glow), 0 0 22px var(--glow); } .tk-out.b0 { color: #d8c7ff; text-shadow: none; }
.tk-stars { display: inline-flex; gap: 2px; direction: ltr; color: rgba(255, 255, 255, .2); line-height: 1; }
.tk-stars span { display: inline-block; cursor: pointer; }
.tk-stars .on { color: var(--sun); text-shadow: 0 0 8px rgba(255, 216, 74, .85), 0 0 18px rgba(255, 216, 74, .45); animation: tk-star .5s var(--spring) backwards; }
.tk-score-line .tk-stars { font-size: 26px; }
.tk-coinpop { position: absolute; top: -6px; right: 4%; display: inline-flex; align-items: center; gap: 5px; font-size: 22px; font-weight: 700; color: var(--sun); direction: ltr; text-shadow: 0 0 10px rgba(255, 216, 74, .8); animation: tk-coinpop 1.5s ease-out .35s backwards; }
/* the sound-by-sound view and the tips: kept for the coach pack (off at launch, decision 38) */
.tk-coach { width: 100%; }
.tk-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; } .tk-w { display: flex; flex-direction: column; align-items: center; gap: 4px; } .tk-w-text { font-size: 14px; color: var(--muted); }
.tk-chips { display: flex; gap: 4px; }
.tk-chip { min-width: 34px; min-height: 40px; padding: 4px 8px; border-radius: 10px; font-size: 18px; font-weight: 700; font-family: "Segoe UI", "Noto Sans", system-ui, sans-serif; background: rgba(255, 255, 255, .14); color: #fff; animation: tk-pop .32s backwards; }
.c-good { background: rgba(92, 245, 158, .22); color: #c3fadb; box-shadow: inset 0 0 0 1.5px rgba(92, 245, 158, .7); }
.c-almost { background: rgba(255, 194, 74, .22); color: #ffe2a8; box-shadow: inset 0 0 0 1.5px var(--almost); }
.c-wrong { background: rgba(255, 107, 136, .25); color: #ffd0d9; box-shadow: inset 0 0 0 1.5px var(--bad); }
.tk-tipbox { width: 100%; }
.tk-tip { width: 100%; background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 15.5px; margin-top: 6px; box-shadow: inset 4px 0 0 var(--almost); }
.tk-tip b { direction: ltr; unicode-bidi: isolate; font-size: 17px; } .tk-tip.is-wrong { box-shadow: inset 4px 0 0 var(--bad); } .tk-tip.is-clear { box-shadow: inset 4px 0 0 var(--good); }

/* ------------------------------------------------------------------ scene: the set, Neon's line, the choices */
.tk-set { position: relative; width: 100%; height: 226px; border-radius: var(--r-lg); overflow: hidden; display: flex; justify-content: center; align-items: flex-end; flex: none;
  background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 15px, linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 24px 30px, linear-gradient(180deg, #2a1d66 0%, #1c1449 62%, #130e35 100%);
  border: 1px solid var(--edge); box-shadow: inset 0 0 40px rgba(0, 0, 0, .35); }
.tk-set .neon-box { position: relative; z-index: 1; margin-bottom: 14px; }
.tk-set-awning { position: absolute; top: 0; inset-inline: 0; height: 34px; z-index: 2; background: repeating-linear-gradient(90deg, #ff3fae 0 26px, #ffe6f4 26px 52px); box-shadow: 0 10px 16px rgba(0, 0, 0, .3); }
.tk-set-awning::after { content: ""; position: absolute; top: 100%; inset-inline: 0; height: 12px; background: radial-gradient(circle at 13px 0, #ff3fae 12px, transparent 12.5px) 0 0 / 52px 12px repeat-x, radial-gradient(circle at 39px 0, #ffe6f4 12px, transparent 12.5px) 0 0 / 52px 12px repeat-x; }
.tk-set-sign { position: absolute; top: 60px; inset-inline-end: 16px; z-index: 2; font-weight: 700; font-size: 19px; letter-spacing: 2px; color: #fff; padding: 1px 10px; border: 2.5px solid var(--cyan); border-radius: 10px; unicode-bidi: isolate; cursor: pointer;
  text-shadow: 0 0 4px var(--cyan), 0 0 12px var(--cyan); box-shadow: 0 0 10px var(--cyan), inset 0 0 8px rgba(39, 232, 255, .6); rotate: -5deg; animation: tk-sign 5s linear infinite; }
.tk-set-items { position: absolute; top: 58px; inset-inline-start: 14px; z-index: 2; display: flex; gap: 6px; }
.tk-set-items .tk-ico { width: 30px; height: 30px; stroke-width: 1.8; filter: drop-shadow(0 0 4px currentColor); }
.tk-set-items .i1 { color: var(--pink); } .tk-set-items .i2 { color: var(--sun); } .tk-set-items .i3 { color: var(--cyan); }
.tk-set-counter { position: absolute; bottom: 0; inset-inline: 0; height: 52px; z-index: 2; background: linear-gradient(180deg, #3b2b8f, #241a5e); border-top: 3px solid var(--pink); box-shadow: 0 -2px 16px rgba(255, 63, 174, .5); }
.tk-set-counter::after { content: ""; position: absolute; top: 14px; inset-inline: 18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.tk-scene .tk-bubble.is-speech { margin-top: 2px; }
.tk-choices { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.tk-choice { width: 100%; text-align: center; padding: 12px 14px; border-radius: 20px; font-size: 19px; font-weight: 600;
  background: linear-gradient(165deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1.5px solid var(--edge); box-shadow: 0 5px 0 rgba(0, 0, 0, .28);
  transition: transform .45s var(--spring), opacity .2s, border-color .2s, box-shadow .2s; }
.tk-choice small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.tk-choice.is-picked { border-color: var(--mint); background: linear-gradient(165deg, rgba(60, 242, 208, .24), rgba(60, 242, 208, .07)); box-shadow: 0 0 0 4px rgba(60, 242, 208, .12), 0 0 22px rgba(60, 242, 208, .4), 0 5px 0 rgba(0, 0, 0, .28); }
.tk-choice.is-dim { opacity: .45; }

/* ------------------------------------------------------------------ partner task: the hologram card */
.tk-stage-row { flex-direction: row; justify-content: center; align-items: center; gap: 2px; }
.tk-holo { position: relative; width: 148px; padding: 12px 12px 14px; border-radius: 16px; color: #e3fcff; overflow: hidden; rotate: -4deg; cursor: pointer;
  background: linear-gradient(160deg, rgba(39, 232, 255, .26), rgba(39, 232, 255, .06)); border: 1.5px solid rgba(39, 232, 255, .75); box-shadow: 0 0 24px rgba(39, 232, 255, .35), inset 0 0 16px rgba(39, 232, 255, .2); }
.tk-holo::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 5px); animation: tk-scan 4s linear infinite; }
.tk-holo b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; text-shadow: 0 0 6px var(--cyan); }
.tk-holo b .tk-ico { width: 18px; height: 18px; }
.tk-holo i { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 20px; font-style: normal; }
.tk-holo i::before { content: ""; height: 8px; flex: 1; border-radius: 4px; background: rgba(227, 252, 255, .5); filter: blur(1.4px); }
.tk-holo i::after { content: "?? ₪"; font-size: 13px; font-weight: 700; direction: ltr; opacity: .85; }
.tk-setting { font-size: 15px; text-align: center; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; padding: 10px 14px; }
.tk-answer { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tk-options { display: flex; gap: 10px; width: 100%; }
.tk-option { flex: 1; min-height: 68px; border-radius: 20px; font-size: 24px; font-weight: 700; transition: transform .45s var(--spring);
  background: linear-gradient(165deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04)); border: 2px solid var(--edge); box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.tk-option.is-right { border-color: var(--good); background: linear-gradient(165deg, rgba(92, 245, 158, .38), rgba(92, 245, 158, .1)); box-shadow: 0 0 24px rgba(92, 245, 158, .5), 0 6px 0 rgba(0, 0, 0, .3); animation: tk-jelly .6s ease-out; }
.tk-option.is-wrong { border-color: var(--bad); opacity: .6; animation: tk-shake .4s; }
.tk-option.is-hint { border-color: var(--sun); box-shadow: 0 0 20px rgba(255, 216, 74, .55), 0 6px 0 rgba(0, 0, 0, .3); animation: tk-breathe 1.1s ease-in-out infinite; }

/* ------------------------------------------------------------------ recap */
.tk-recap { overflow: hidden; gap: 10px; }
.tk-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tk-confetti i { position: absolute; top: -20px; font-style: normal; line-height: 1; opacity: 0; animation: tk-fall 2.4s ease-in 1 forwards; }
.tk-recap > :not(.tk-confetti) { position: relative; z-index: 1; }
.tk-sign { font-size: 28px; font-weight: 700; padding: 4px 18px; border-radius: 16px; color: #fff; border: 3px solid var(--pink); cursor: pointer; margin-top: 6px;
  box-shadow: 0 0 12px var(--pink), inset 0 0 12px rgba(255, 63, 174, .6); text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink); animation: tk-flicker-on 1.2s linear backwards; }
.tk-bigstars { font-size: 50px; line-height: 1; } .tk-bigstars .tk-stars { gap: 10px; }
.tk-earn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 22px; direction: ltr; cursor: pointer; background: rgba(255, 216, 74, .1); border: 1.5px solid rgba(255, 216, 74, .55); box-shadow: 0 0 16px rgba(255, 216, 74, .25); }
.tk-earn b { color: var(--sun); font-size: 26px; text-shadow: 0 0 10px rgba(255, 216, 74, .7); } .tk-earn > span:last-child { font-size: 14px; color: var(--muted); }
.tk-earn .tk-coin { width: 26px; height: 26px; animation: tk-flip 1.2s ease-in-out .7s; }
.tk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; } .tk-facts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-facts > div { background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 6px; text-align: center; cursor: pointer; }
.tk-facts b { display: block; font-size: 23px; font-weight: 700; direction: ltr; color: var(--cyan); text-shadow: 0 0 10px rgba(39, 232, 255, .6); }
.tk-facts > div:nth-child(2) b { color: var(--pink); text-shadow: 0 0 10px rgba(255, 63, 174, .6); } .tk-facts > div:nth-child(3) b { color: var(--sun); text-shadow: 0 0 10px rgba(255, 216, 74, .6); }
.tk-facts > div:nth-child(4) b { color: var(--lime); text-shadow: 0 0 10px rgba(157, 255, 74, .6); }
.tk-facts span { font-size: 12.5px; color: var(--muted); line-height: 1.2; display: block; }
.tk-work { width: 100%; } .tk-work h2 { font-size: 16px; margin: 6px 0 2px; }
.tk-recap .tk-actions { margin-top: 12px; padding-bottom: 6px; }

/* ------------------------------------------------------------------ the warm-up toy (first download of the recognizer) */
.tk-warm { text-align: center; gap: 8px; }
.tk-warm h1 { font-size: 22px; font-weight: 700; margin: 4px 0 0; text-shadow: 0 0 10px rgba(60, 242, 208, .7); }
.tk-warm-stage { position: relative; width: 260px; height: 260px; display: grid; place-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; flex: none; }
.tk-warm-ring { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.tk-warm-ring circle { fill: none; }
.tk-warm-ring .ticks { stroke: rgba(255, 255, 255, .25); stroke-width: 3; stroke-dasharray: 1.5 6.2; transform-origin: 50px 50px; animation: tk-spin 30s linear infinite; }
.tk-warm-ring .bg { stroke: rgba(255, 255, 255, .08); stroke-width: 5; }
.tk-warm-ring .fg { stroke: var(--mint); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .4s; filter: drop-shadow(0 0 4px var(--mint)); }
.tk-warm-pct { font-size: 40px; font-weight: 700; line-height: 1; direction: ltr; color: var(--sun); text-shadow: 0 0 14px rgba(255, 216, 74, .7); cursor: pointer; }
.tk-warm-line { min-height: 24px; margin: 0; font-size: 16px; padding: 6px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); }
.tk-warm-count { font-size: 20px; font-weight: 600; } .tk-warm-count b { color: var(--sun); }
.tk-warm-badge { display: inline-block; margin-inline-start: 8px; font-size: 16px; color: var(--mint); text-shadow: 0 0 10px var(--mint); }
.tk-warm-fly { position: absolute; inset: 0; pointer-events: none; } .tk-warm-fly i { position: absolute; left: 50%; top: 42%; font-style: normal; font-size: 30px; animation: tk-fly 1.05s ease-out forwards; }

/* ------------------------------------------------------------------ toast, debug */
.tk-toast { pointer-events: none; position: fixed; bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 20; background: var(--sun); color: var(--ink); font: 700 16px var(--font);
  padding: 10px 18px; border-radius: 22px; white-space: nowrap; box-shadow: 0 0 22px rgba(255, 216, 74, .55), 0 10px 24px rgba(0, 0, 0, .35); animation: tk-toast-in .45s var(--spring); transition: opacity .5s, transform .5s; }
.tk-toast:lang(ar) { font-family: var(--font-ar); }
.tk-toast.is-out { opacity: 0; transform: translate(-50%, 12px); }
#tkDebugCopy { position: fixed; top: 64px; left: 8px; z-index: 30; font: 12px ui-monospace, monospace; color: var(--ink); background: var(--sun); border: 0; border-radius: 8px; padding: 6px 10px; opacity: .92; }
#tkDebugCopy:active { transform: scale(.92); }
#tkVer { position: fixed; top: 64px; right: 8px; z-index: 30; font: 700 12px ui-monospace, monospace; color: var(--ink); background: var(--mint); border-radius: 8px; padding: 5px 9px; opacity: .92; pointer-events: none; }
.tk-debug { width: 100%; background: rgba(8, 10, 30, .9); color: #d7e3ff; font: 12px/1.3 ui-monospace, monospace; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--edge); overflow-x: auto; }
.tk-debug table { border-collapse: collapse; width: 100%; margin-top: 4px; } .tk-debug td, .tk-debug th { padding: 1px 5px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .12); } .tk-debug tr.m td { color: var(--sun); }

/* ------------------------------------------------------------------ shared moves */
@keyframes tk-sign { 0%, 86%, 89%, 93%, 100% { opacity: 1; } 87.5%, 91% { opacity: .45; } }
@keyframes tk-flicker-on { 0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 20% { opacity: 1; } 26% { opacity: .3; } 38%, 100% { opacity: 1; } }
@keyframes tk-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes tk-invite { 0% { transform: scale(.95); opacity: .75; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes tk-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes tk-radar { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes tk-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
@keyframes tk-run { to { stroke-dashoffset: -65; } }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@keyframes tk-scan { from { background-position: 0 0; } to { background-position: 0 50px; } }
@keyframes tk-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } to { transform: scale(1); opacity: 1; } }
@keyframes tk-star { from { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.4) rotate(10deg); } to { transform: scale(1); opacity: 1; } }
@keyframes tk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes tk-unlock { 0% { transform: scale(.5) rotate(-25deg); filter: brightness(2.4); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1); filter: none; } }
@keyframes tk-coinpop { 0% { opacity: 0; transform: translateY(26px) scale(.5); } 25% { opacity: 1; transform: translateY(0) scale(1.25); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tk-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(90vh) rotate(420deg); opacity: 0; } }
@keyframes tk-fly { from { transform: translate(-50%, 0) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(1.25) rotate(25deg); opacity: 0; } }
@keyframes tk-toast-in { from { transform: translate(-50%, 16px) scale(.8); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

/* ------------------------------------------------------------------ sizes */
/* wide screens: the app is a column on the night sky (the design canvas shows the same with .is-desktop) */
@media (min-width: 700px) {
  body.tk-sky > .tk-app { margin-top: 20px; margin-bottom: 20px; min-height: calc(100vh - 96px); border-radius: 32px; border: 1px solid var(--edge); overflow: hidden;
    background: rgba(12, 9, 36, .55); box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 90px rgba(177, 140, 255, .14); }
}
.tk-frame.is-desktop > .tk-app { margin: 20px auto; flex: none; border-radius: 32px; border: 1px solid var(--edge); overflow: hidden; background: rgba(12, 9, 36, .55); box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 90px rgba(177, 140, 255, .14); }
/* narrow phones: measured on the app column itself, so the design canvas shows the same */
@container (max-width: 400px) { .tk-lang span { display: none; } .tk-lang { width: 36px; padding: 0; justify-content: center; } }
@container (max-width: 380px) {
  .tk-top { gap: 6px; padding-inline: 10px; } .tk-brand { font-size: 18px; } .tk-line { font-size: 26px; }
  .tk-talk { width: 84px; height: 84px; } .tk-deck { gap: 22px; } .tk-set { height: 210px; } .neon-lg { width: 136px; } .tk-hero .tk-bubble { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .is-boing, .neon.is-poke .nz { filter: brightness(1.35); }
}

/* ------------------------------------------------------------------ build 10: living map, bond, call, start, placement */
.tk-node.is-due .tk-node-btn { filter: saturate(.35) brightness(.72); box-shadow: 0 0 10px rgba(255, 255, 255, .12), 0 9px 0 rgba(0, 0, 0, .3); }
.tk-node.is-due .tk-check { background: var(--sun); box-shadow: 0 0 12px var(--sun); }
.tk-due { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--sun); border: 1.5px dashed rgba(255, 216, 74, .7); border-radius: 9px; padding: 0 8px; animation: tk-breathe 1.6s ease-in-out infinite; }
.tk-bond { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; background: rgba(255, 63, 174, .08); border: 1px solid rgba(255, 63, 174, .35); cursor: pointer; }
.tk-bond .tk-ico { width: 20px; height: 20px; color: var(--pink); fill: var(--pink); filter: drop-shadow(0 0 5px var(--pink)); }
.tk-bond span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tk-bond i { flex: 1; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tk-bond i b { display: block; height: 100%; min-width: 6px; border-radius: 5px; background: linear-gradient(90deg, var(--pink), var(--violet)); box-shadow: 0 0 8px var(--pink); }
.tk-callrow { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-callchip, .tk-missed-call { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: transform .45s var(--spring); }
.tk-callchip { background: var(--glass-2); border: 1px solid var(--edge); }
.tk-callchip .tk-ico, .tk-missed-call .tk-ico { width: 18px; height: 18px; color: var(--mint); }
.tk-missed-call { flex: 1; justify-content: center; background: rgba(255, 107, 136, .14); border: 1.5px solid var(--bad); color: #ffd6df; animation: tk-breathe 1.6s ease-in-out infinite; }
.tk-missed-call .tk-ico { color: var(--bad); }
.tk-missed-call b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tk-callchip:active, .tk-missed-call:active { transform: scale(.94); transition-duration: .06s; }
.tk-install-slot:empty { display: none; }
.tk-install { min-height: 40px; font-size: 14px; }
.tk-mylevel { font-size: 13px; color: var(--muted); } .tk-mylevel b { color: var(--cyan); font-weight: 700; }
/* the ringing call */
.tk-callring { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(60, 242, 208, .2), transparent 62%), #0b0820; animation: tk-fade-in .3s ease-out; }
@keyframes tk-fade-in { from { opacity: 0; } to { opacity: 1; } }
.tk-callring-in { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; }
.tk-callring-t { margin: 0; font-size: 24px; font-weight: 700; text-shadow: 0 0 12px rgba(60, 242, 208, .7); animation: tk-breathe 1.2s ease-in-out infinite; }
.tk-callring-neon { position: relative; }
.tk-callring-neon::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 3px solid var(--mint); opacity: 0; animation: tk-radar 1.6s ease-out infinite; pointer-events: none; }
.tk-callbtns { display: flex; gap: 56px; margin-top: 10px; }
.tk-callbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; transition: transform .45s var(--spring); }
.tk-callbtn .tk-ico { width: 72px; height: 72px; padding: 20px; border-radius: 50%; color: #fff; stroke-width: 2.2; }
.tk-callbtn.is-yes .tk-ico { background: #22c55e; box-shadow: 0 0 0 8px rgba(34, 197, 94, .18), 0 0 28px rgba(34, 197, 94, .7); animation: tk-nudge 1s ease-in-out infinite; }
.tk-callbtn.is-no .tk-ico { background: #ef4444; box-shadow: 0 0 24px rgba(239, 68, 68, .55); transform: rotate(135deg); }
.tk-callbtn:active { transform: scale(.9); transition-duration: .06s; }
/* the call itself: a video-call layout */
.tk-callview { position: relative; width: 100%; height: 250px; border-radius: var(--r-lg); overflow: hidden; display: flex; justify-content: center; align-items: center; flex: none;
  background: radial-gradient(circle at 50% 45%, rgba(60, 242, 208, .22), transparent 60%), linear-gradient(180deg, #1d1650, #120d38); border: 1px solid var(--edge); }
.tk-call-time { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 600; padding: 2px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.tk-call-time::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-inline-end: 6px; vertical-align: 1px; animation: tk-breathe 1s ease-in-out infinite; }
.tk-self { --lvl: 0; position: absolute; bottom: 12px; inset-inline-end: 12px; width: 78px; height: 100px; border-radius: 16px; background: #0d0a26; border: 2px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; gap: 4px; }
.tk-self i { width: 5px; height: 40px; border-radius: 3px; background: var(--mint); transform: scaleY(calc(.15 + var(--lvl) * .9)); transition: transform .08s linear; box-shadow: 0 0 6px var(--mint); }
.tk-self i:nth-child(2), .tk-self i:nth-child(4) { transform: scaleY(calc(.25 + var(--lvl) * .7)); }
/* the start and the placement */
.tk-welcome { text-align: center; gap: 10px; }
.tk-welcome h1 { margin: 6px 0 0; font-size: 30px; font-weight: 700; text-shadow: 0 0 14px rgba(60, 242, 208, .6); }
.tk-welcome p { margin: 0; font-size: 17px; color: var(--muted); max-width: 420px; }
.tk-col { flex-direction: column; gap: 10px; margin-top: 14px; }
.tk-levelbadge { font-size: 64px; font-weight: 700; line-height: 1; padding: 10px 28px; border-radius: 24px; color: #fff; border: 3px solid var(--cyan); cursor: pointer;
  box-shadow: 0 0 18px var(--cyan), inset 0 0 14px rgba(39, 232, 255, .5); text-shadow: 0 0 10px var(--cyan), 0 0 24px var(--cyan); animation: tk-flicker-on 1.2s linear backwards; }
.tk-level-note { margin: 0; font-size: 15px; color: var(--muted); text-align: center; max-width: 360px; }
