:root{--tj-sky:#8fd3ff;--tj-sky-deep:#4aa8ee;--tj-ink:#1d2340;--tj-red:#e3261c;--tj-red-deep:#a8150e;--tj-yellow:#ffc21a;--tj-yellow-deep:#d18b00;--tj-green:#14b86f;--tj-green-deep:#0b7d4a;--tj-plastic:#fff;--tj-plastic-edge:#b9c6dc;--tj-font:"Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif}*{box-sizing:border-box}body{background:var(--tj-sky);color:var(--tj-ink);margin:0;overflow:hidden}button{font:inherit}.tj-page{font-family:var(--tj-font);background:radial-gradient(120% 90% at 50% 30%, #e6f6ff 0%, var(--tj-sky) 55%, var(--tj-sky-deep) 100%);user-select:none;-webkit-touch-callout:none;font-weight:800;position:fixed;inset:0;overflow:hidden}.tj-stage{position:absolute;inset:0}.tj-stage canvas{touch-action:none;display:block}.tj-failed{text-align:center;width:min(320px,90vw);margin:0;position:absolute;top:50%;left:50%;translate:-50% -50%}.tj-top,.tj-bottom{padding:max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));pointer-events:none;align-items:center;gap:12px;display:flex;position:absolute;left:0;right:0}.tj-top{justify-content:space-between;top:0}.tj-top__right{gap:12px;display:flex}.tj-bottom{padding-bottom:max(16px, env(safe-area-inset-bottom));justify-content:center;gap:22px;bottom:0}.tj-top>*,.tj-bottom>*{pointer-events:auto}.tj-button{aspect-ratio:1;width:64px;color:var(--tj-ink);box-shadow:0 6px 0 var(--tj-plastic-edge), 0 12px 22px #143c6e38;cursor:pointer;-webkit-tap-highlight-color:transparent;background:linear-gradient(#fff 0%,#eef3fb 100%);border:0;border-radius:22px;flex:none;place-items:center;padding:0;text-decoration:none;transition:translate .1s,box-shadow .1s,opacity .2s;display:grid}.tj-button svg{width:32px;height:32px}.tj-button:active:not(:disabled){box-shadow:0 1px 0 var(--tj-plastic-edge), 0 4px 10px #143c6e33;translate:0 5px}.tj-button:disabled{opacity:.45;cursor:default}.tj-button:focus-visible{outline:4px solid var(--tj-red);outline-offset:4px}.tj-button--big{border-radius:26px;width:76px}.tj-button--big svg{width:38px;height:38px}.tj-button--hint{background:linear-gradient(180deg, #ffe066 0%, var(--tj-yellow) 100%);color:#6b4500;--tj-plastic-edge:var(--tj-yellow-deep)}.tj-button--go{background:linear-gradient(180deg, #3fe08f 0%, var(--tj-green) 100%);color:#fff;--tj-plastic-edge:var(--tj-green-deep);border-radius:32px;width:96px;animation:1.6s ease-in-out infinite tj-nudge}.tj-button--go svg{width:46px;height:46px}.tj-status{height:64px;box-shadow:0 6px 0 var(--tj-plastic-edge), 0 12px 22px #143c6e38;pointer-events:none;background:#ffffffeb;border-radius:999px;align-items:center;gap:10px;padding:0 16px 0 8px;display:flex}.tj-status__level{aspect-ratio:1;background:var(--tj-red);color:#fff;width:48px;box-shadow:0 0 0 3px var(--tj-red-deep);border:3px solid #fff;border-radius:50%;place-items:center;font-size:1.6rem;line-height:1;display:grid}.tj-status__moves{text-align:center;min-width:1.4em;font-size:2rem;line-height:1}.tj-status__stars{gap:2px;display:flex}.tj-status__stars .tj-star{width:24px;height:24px}.tj-star{fill:#d5dbe7;stroke:#b5bfd1;stroke-width:1.2px;transition:fill .3s,stroke .3s}.tj-star.is-lit{fill:#ffc21a;stroke:#e08a00}.tj-overlay{z-index:10;background:#14325a40;place-items:center;padding:20px;animation:.3s both tj-fade;display:grid;position:fixed;inset:0}.tj-overlay--win{background:0 0;align-items:end}.tj-card,.tj-picker{box-shadow:0 10px 0 var(--tj-plastic-edge), 0 30px 60px #0a1e4659;background:linear-gradient(#fff,#eef4fc);border-radius:36px;animation:.5s cubic-bezier(.2,.9,.3,1.25) both tj-pop;position:relative}.tj-card{justify-items:center;gap:22px;padding:30px 30px 34px;display:grid}.tj-card__stars{gap:6px;display:flex}.tj-card__stars .tj-star{width:clamp(72px,18vw,104px);height:clamp(72px,18vw,104px);animation:.5s cubic-bezier(.2,.9,.3,1.5) both tj-star-pop;animation-delay:calc(.25s + var(--star) * .3s)}.tj-card__stars .tj-star:nth-child(2){translate:0 -14px}.tj-card__actions{align-items:center;gap:18px;display:flex}.tj-picker{width:min(620px,100%);max-height:100%;padding:22px;overflow-y:auto}.tj-picker__close{margin:0 0 16px auto}.tj-picker__grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:14px;display:grid}.tj-tile{background:linear-gradient(180deg, #ff5a4a, var(--tj-red));color:#fff;height:100px;box-shadow:0 6px 0 var(--tj-red-deep);cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;border-radius:24px;align-content:center;place-items:center;gap:2px;padding:0;display:grid}.tj-tile:active:not(:disabled){box-shadow:0 1px 0 var(--tj-red-deep);translate:0 5px}.tj-tile:disabled{color:#9aa6ba;cursor:default;background:#dfe5ef;box-shadow:0 6px #c3ccdb}.tj-tile:disabled svg{width:36px;height:36px}.tj-tile.is-current{outline:5px solid var(--tj-yellow);outline-offset:3px}.tj-tile:focus-visible{outline:5px solid var(--tj-ink);outline-offset:3px}.tj-tile__number{text-shadow:0 3px #0000002e;font-size:2.4rem;line-height:1}.tj-tile__stars{gap:1px;display:flex}.tj-tile__stars .tj-star{width:22px;height:22px}.tj-tile__stars .tj-star:not(.is-lit){fill:#ffffff59;stroke:none}.tj-confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}.tj-confetti i{border-radius:3px;width:12px;height:18px;animation:5.6s linear infinite tj-fall;position:absolute;top:-5%}@keyframes tj-fade{0%{opacity:0}}@keyframes tj-pop{0%{opacity:0;scale:.7}}@keyframes tj-star-pop{0%{opacity:0;rotate:-40deg;scale:.2}}@keyframes tj-nudge{50%{scale:1.07}}@keyframes tj-fall{to{transform:translate(30px,110vh)rotate(540deg)}}@media (width<=520px){.tj-status{top:calc(max(14px, env(safe-area-inset-top)) + 76px);height:56px;position:absolute;left:50%;translate:-50%}.tj-status__level{width:42px;font-size:1.35rem}}@media (orientation:landscape) and (height<=560px){.tj-bottom{flex-direction:column;justify-content:center;gap:14px;top:0;left:auto}.tj-button--big{width:64px}}@media (prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
