.container.tf-container{max-width:960px}.tf-app{--tf-table: #efe7da;--tf-plate: #d8b98c;--tf-plate-edge: #b8915f;--tf-cavity: #a9845a;--tf-cavity-grid: #977249;--tf-cavity-edge: #4f361f;--tf-light: #f4e1bb;--tf-light-edge: #9c7642;--tf-dark: #6b4226;--tf-dark-edge: #2e1a0c;--tf-ok: #2f8a4a;--tf-accent: #d4306a;-webkit-tap-highlight-color:transparent}.tf-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;margin-bottom:1rem}.container .tf-head h1{margin:0}.tf-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.tf-controls select{width:auto;margin:0;padding-top:.55rem;padding-bottom:.55rem;font-size:1.1rem}.tf-app .tf-reset{flex:none;padding:.5rem 1rem;font-size:.9rem}.tf-game{position:relative;opacity:0;transition:opacity .45s ease-out}.tf-game.tf-shown{opacity:1}.tf-app .tf-solved-pill{position:absolute;top:.75rem;left:50%;z-index:4;transform:translate(-50%);display:inline-flex;align-items:center;gap:.55rem;padding:.55rem 1.4rem;border-radius:999px;background:var(--tf-ok);color:#fff;font-size:1.15rem;font-weight:700;letter-spacing:.02em;box-shadow:0 4px 14px #143c1e4d}.tf-app .tf-solved-pill:hover:not(:disabled){background:#246b39}.tf-app .tf-solved-pill:disabled{cursor:default}.tf-solved-pill svg path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tf-table{display:block;width:100%;max-height:80vh;background:var(--tf-table);border-radius:12px;user-select:none;-webkit-user-select:none}.tf-plate{fill:var(--tf-plate);stroke:var(--tf-plate-edge);stroke-width:2}.tf-cavity{fill:var(--tf-cavity)}.tf-cavity-grid{fill:none;stroke:var(--tf-cavity-grid);stroke-width:1}.tf-island{fill:var(--tf-plate)}.tf-cavity-edge{fill:none;stroke:var(--tf-cavity-edge);stroke-width:3;stroke-linecap:square}.tf-solved .tf-cavity-edge{stroke:var(--tf-ok)}.tf-piece{cursor:grab;touch-action:none}.tf-piece.tf-dragging{cursor:grabbing}.tf-loose{filter:drop-shadow(0 3px 3px rgba(60,35,10,.35))}.tf-dragging{filter:drop-shadow(0 8px 8px rgba(60,35,10,.4))}.tf-side-top .tf-piece-fill{fill:var(--tf-light)}.tf-side-bottom .tf-piece-fill{fill:var(--tf-dark)}.tf-piece-edge{fill:none;stroke-width:2.5;stroke-linecap:square}.tf-side-top .tf-piece-edge{stroke:var(--tf-light-edge)}.tf-side-bottom .tf-piece-edge{stroke:var(--tf-dark-edge)}.tf-selected .tf-piece-edge{stroke:var(--tf-accent);stroke-width:4}.tf-will-snap .tf-piece-edge{stroke:var(--tf-ok)}.tf-ghost{pointer-events:none}.tf-ghost-fill{fill:var(--tf-ok);opacity:.35}.tf-ghost-edge{fill:none;stroke:var(--tf-ok);stroke-width:4;stroke-dasharray:8 5;stroke-linecap:square}.tf-rot{cursor:pointer;touch-action:none}.tf-rot-bg{fill:#fff;stroke:var(--tf-accent);stroke-width:1.2}.tf-rot:hover .tf-rot-bg{fill:#fdeef3}.tf-rot-arc{fill:none;stroke:var(--tf-accent);stroke-width:2.2;stroke-linecap:round}.tf-rot-head{fill:var(--tf-accent)}.tf-help{margin-top:2.5rem;color:#444;font-size:.95rem}.tf-help h2{font-size:1.1rem;margin-bottom:.4rem}.tf-help ul{padding-left:1.2rem;margin-bottom:1rem}.tf-solution{pointer-events:none}.tf-solution path{fill:none;stroke:#fff;stroke-width:3;stroke-dasharray:5 4;opacity:.9}.tf-loading{color:#777;padding:2rem 0}.tf-modal{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:1rem;background:#281c0e59;border-radius:12px}.tf-modal-card{position:relative;width:min(100%,22rem);max-height:100%;overflow-y:auto;padding:1.6rem 1.5rem 1.4rem;background:#fff;border-radius:14px;box-shadow:0 12px 40px #281c0e4d;text-align:center}.tf-app .tf-modal-close{position:absolute;top:.4rem;right:.5rem;width:2.2rem;height:2.2rem;padding:0;background:none;color:#777;font-size:1.6rem;line-height:1}.tf-app .tf-modal-close:hover{background:#f3eee6;color:#1a1a1a}.tf-modal-card h2{font-family:Anton,sans-serif;font-size:1.8rem;text-transform:uppercase;letter-spacing:.02em;margin-bottom:.3rem}.tf-stars{font-size:2.6rem;line-height:1.1;letter-spacing:.15em}.tf-stars-gold .tf-star-on{color:#e6a817;text-shadow:0 1px 0 #b07c08}.tf-stars-silver .tf-star-on{color:#b7bcc5;text-shadow:0 1px 0 #8a909a}.tf-star-off{color:#e8e3da}.tf-modal-note{min-height:1.5em;margin:.2rem 0 .9rem;font-weight:700;color:#555}.tf-modal-stats{display:flex;justify-content:center;gap:1.5rem;margin-bottom:1.2rem}.tf-modal-stats dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#777}.tf-modal-stats dd{font-size:1.3rem;font-weight:700}.tf-app .tf-next{width:100%}.tf-app .tf-show-solution{width:100%;margin-bottom:.6rem;background:#fff;color:var(--tf-accent);box-shadow:inset 0 0 0 2px var(--tf-accent)}.tf-app .tf-show-solution:hover{background:#fdeef3;color:var(--tf-accent)}.tf-score{margin:-.4rem 0 1.1rem;padding-top:.8rem;border-top:1px solid #eee6da}.tf-score-total{font-size:1.1rem}.tf-score-how,.tf-score-note,.tf-score-rank{margin:.2rem 0 0;font-size:.85rem;color:#666}.tf-score-note{margin:-.4rem 0 1.1rem}.tf-score-rank{margin-top:.6rem;font-weight:700;color:#333}.tf-score-form{margin-top:.8rem;font-size:.9rem}.tf-score-form label{display:block;margin-bottom:.4rem;font-weight:700}.tf-score-form div{display:flex;gap:.4rem}.tf-score-form input{flex:1;min-width:0;margin:0}.tf-app .tf-score-form button{padding:.5rem 1rem}.tf-score-error{margin:.4rem 0 0;color:#b3261e}.tf-hs-list{padding-left:1.6rem;margin-bottom:.6rem;max-width:26rem}.tf-hs-list li{display:flex;gap:.8rem;align-items:baseline;padding:.15rem 0}.tf-hs-name{flex:1;overflow-wrap:anywhere}.tf-hs-score{font-weight:700;font-variant-numeric:tabular-nums}.tf-hs-detail{font-size:.8rem;color:#888;white-space:nowrap}.tf-hs-mine{background:#fdeef3;border-radius:4px;font-weight:700}.tf-score-list-title{margin:1rem 0 .3rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#777}.tf-score .tf-hs-list{margin:0;text-align:left;font-size:.85rem}.tf-score .tf-hs-list li{padding:.05rem .3rem}.tf-hs-empty,.tf-hs-rule{font-size:.85rem;color:#777}.tf-menu{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:1rem;margin-top:1.5rem}.tf-card{display:flex;flex-direction:column;gap:.4rem;height:100%;padding:1.3rem 1.4rem;background:#fff;border:2px solid #e2ddd5;border-radius:12px;transition:border-color .15s}.tf-card-link:hover{border-color:var(--tf-accent, #d4306a);color:inherit}.tf-card-buttons{display:flex;flex-direction:column;gap:.6rem;margin-top:.4rem}.tf-menu .tf-card-btn{padding:.6rem 1rem;border-radius:6px;background:var(--tf-accent, #d4306a);color:#fff;font-weight:700;text-align:center;white-space:nowrap;transition:background-color .15s}.tf-menu .tf-card-btn:hover{background:#1a1a1a;color:#fff}.tf-menu strong{font-family:Anton,sans-serif;font-size:1.5rem;font-weight:400;text-transform:uppercase;letter-spacing:.02em}.tf-menu .tf-card>span{color:#555;line-height:1.5}.tf-corners{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;padding:.5rem .9rem 0;background:var(--tf-table);border-radius:12px 12px 0 0}.tf-has-corners .tf-table{border-radius:0 0 12px 12px}.tf-corner-label{font-family:Anton,sans-serif;font-weight:400;letter-spacing:.02em;font-size:clamp(1.05rem,5.2vw,2.1rem);line-height:1.2;color:#4f361f;white-space:nowrap}.tf-app .tf-corner-btn{flex:none;display:inline-flex;align-items:center;gap:.4rem;padding:.15rem .5rem;background:none;color:#4f361f;font-family:Anton,sans-serif;font-size:clamp(1.15rem,5.6vw,2.3rem);font-weight:400;line-height:1.2;letter-spacing:.06em;border-radius:10px}.tf-app .tf-corner-btn:hover{background:#4f361f1a;color:#2e1a0c}.tf-corner-btn svg{flex:none;width:.95em;height:.95em}.tf-reset-arc{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}.tf-reset-head{fill:currentColor}.tf-has-corners .tf-solved-pill{top:calc(clamp(1.15rem,5.6vw,2.3rem)*1.2 + 1.5rem)}.tf-corner-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem}.tf-corner-full path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.tf-stage:fullscreen{width:100%;height:100%;background:var(--tf-table)}.tf-stage:-webkit-full-screen{width:100%;height:100%;background:var(--tf-table)}.tf-game.tf-full{display:flex;flex-direction:column;width:100%;height:100%;padding:.75rem;background:var(--tf-table);overflow:hidden}.tf-game.tf-fake-full{position:fixed;inset:0;z-index:1000}.tf-full .tf-corners{flex:none}.tf-full .tf-table{flex:1;min-height:0;max-height:none;height:100%}.tf-corner-left{min-width:0}.tf-moves{margin-top:.1rem;font-family:Anton,sans-serif;font-size:clamp(.95rem,4vw,1.5rem);letter-spacing:.04em;color:#8a6a48}.tf-crumbs a{color:inherit;text-decoration:none}.tf-crumbs a:hover{color:#d4306a}.tf-crumb-sep{margin:0 .35em;color:#999}.tf-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;width:100%;aspect-ratio:1.3;max-height:80vh;background:var(--tf-table);border-radius:12px}.tf-loader-piece{width:clamp(64px,14%,120px);height:auto;overflow:visible}.tf-loader-turn{transform-origin:1.5px 1.5px;transform-box:view-box;animation:tf-quarter-turns 2.4s infinite}.tf-loader-fill{fill:var(--tf-light)}.tf-loader-grid{fill:none;stroke:var(--tf-light-edge);stroke-width:.04;opacity:.45}.tf-loader-edge{fill:none;stroke:var(--tf-light-edge);stroke-width:.08;stroke-linejoin:miter}.tf-loader-text{font-family:Anton,sans-serif;font-size:1.6rem;letter-spacing:.08em;text-transform:uppercase;color:#6b4226}@keyframes tf-quarter-turns{0%,15%{transform:rotate(0)}25%,40%{transform:rotate(90deg)}50%,65%{transform:rotate(180deg)}75%,90%{transform:rotate(270deg)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.tf-loader-turn{animation-duration:8s}}.tf-rot-bar{position:absolute;left:.6rem;right:.6rem;bottom:.6rem;z-index:3;display:flex;justify-content:space-between;pointer-events:none}.tf-full .tf-rot-bar{left:1.35rem;right:1.35rem;bottom:1.35rem}.tf-app .tf-rot-btn{pointer-events:auto;width:3.4rem;height:3.4rem;margin:0;padding:.55rem;border:2px solid var(--tf-accent);border-radius:50%;background:#ffffffeb;box-shadow:0 3px 10px #3c230a40;touch-action:manipulation;transition:opacity .15s}.tf-app .tf-rot-btn:active:not(:disabled){background:#fdeef3}.tf-app .tf-rot-btn:disabled{opacity:.35;cursor:default}.tf-rot-btn svg{display:block;width:100%;height:100%}
