.arrow-untangle-game{display:none!important;color:#172b40!important}
.arrow-untangle-game.active{display:block!important}
.game-shell>.arrow-untangle-game.active{width:100%!important;max-width:none!important;margin:0!important}
.arrow-untangle-game .game-head{margin:0 0 18px!important;padding:0 0 14px!important;border-bottom:1px solid #e3e8ed!important}
.arrow-untangle-game .game-head h2{font-size:clamp(24px,3vw,32px)!important;color:#172b40!important}
.arrow-untangle-game .game-head p{color:#64748b!important;line-height:1.6!important}
.arrow-untangle-game .arrow-game-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px;align-items:center;max-width:1080px;margin:0 auto}
.arrow-board-frame{width:min(100%,680px);margin:0 auto;padding:12px;border:1px solid #dbe3e8;border-radius:22px;background:linear-gradient(145deg,#fffefa,#f8f5ec);box-shadow:inset 0 1px 8px #fff,0 12px 28px #1b34470e;touch-action:manipulation}
.arrow-board{display:block;width:100%;height:auto;overflow:visible;touch-action:manipulation}
.flow-arrow{cursor:pointer;outline:none;transition:opacity .18s ease}
.flow-hit{fill:none;stroke:transparent;stroke-width:12;stroke-linecap:round;stroke-linejoin:round;pointer-events:stroke;vector-effect:non-scaling-stroke}
.flow-wire{fill:none;stroke:#344a42;stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:stroke .16s ease,stroke-width .16s ease,filter .16s ease}
.flow-head{fill:#344a42;stroke:#344a42;stroke-width:1.1;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill .16s ease,stroke .16s ease,filter .16s ease}
.flow-arrow:focus .flow-wire,.flow-arrow:focus-visible .flow-wire{stroke:#bc8240;stroke-width:5}
.flow-arrow:focus .flow-head,.flow-arrow:focus-visible .flow-head{fill:#bc8240;stroke:#bc8240}
.flow-arrow:hover .flow-wire{stroke:#537d6b;stroke-width:4.3;filter:drop-shadow(0 2px 2px #273d3430)}
.flow-arrow:hover .flow-head{fill:#537d6b;stroke:#537d6b;filter:drop-shadow(0 2px 2px #273d3430)}
.flow-arrow.is-hint .flow-wire{stroke:#bd873f;stroke-width:5;filter:drop-shadow(0 0 5px #e3bb65);animation:flow-hint-pulse .7s ease-in-out infinite alternate}
.flow-arrow.is-hint .flow-head{fill:#bd873f;stroke:#bd873f;filter:drop-shadow(0 0 5px #e3bb65)}
.flow-arrow.is-blocked{animation:flow-nudge .28s ease-in-out 2}
.flow-arrow.is-blocked .flow-wire{stroke:#b35d55;stroke-width:4.5}
.flow-arrow.is-blocked .flow-head{fill:#b35d55;stroke:#b35d55}
.flow-arrow.is-exiting{pointer-events:none;transition:none}
.flow-arrow.is-exiting .flow-wire{stroke:#e64e61;stroke-width:4.5}
.flow-arrow.is-exiting .flow-head{fill:#e64e61;stroke:#e64e61;filter:drop-shadow(0 0 6px #e64e6180)}
@keyframes flow-nudge{25%{transform:translate(3px,-2px)}75%{transform:translate(-3px,2px)}}
@keyframes flow-hint-pulse{to{stroke-width:6;filter:drop-shadow(0 0 8px #e3bb65)}}
.arrow-game-side{display:grid;gap:14px;align-content:center}
.arrow-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.arrow-stat{min-width:0;padding:13px 8px;border:1px solid #e1e7ec;border-radius:15px;background:#f8fafc;text-align:center;box-shadow:0 3px 12px #17344a06}
.arrow-stat span{display:block;color:#64748b;font-size:12px}
.arrow-stat strong{display:block;margin-top:4px;color:#172b40;font-size:clamp(20px,2.5vw,26px);font-variant-numeric:tabular-nums}
.arrow-lives{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #e1e7ec;border-radius:13px;background:#fff;color:#526579;font-size:13px;font-weight:700}
.arrow-life-pips{display:flex;align-items:center;gap:7px}
.arrow-life-pip{width:11px;height:11px;border:2px solid #cbd5dd;border-radius:50%;background:#e8edf1;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.arrow-life-pip.is-available{border-color:#b95c57;background:#dc7268;box-shadow:0 0 0 3px #dc72681c}
.arrow-lives.is-critical{border-color:#e7c9c5;background:#fff8f7}
.arrow-message,.arrow-howto{margin:0;padding:14px 15px;border:1px solid #dce4eb;border-left:3px solid #326d9c;border-radius:14px;background:#f1f5f9;color:#263e55;font-size:14px;line-height:1.7}
.arrow-message{min-height:52px;display:flex;align-items:center}
.arrow-message.is-error{border-left-color:#b35d55;background:#fbf3f1;color:#7e3933}
.arrow-message.is-success{border-left-color:#54856c;background:#f1f7f3;color:#315a43}
.arrow-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.arrow-actions button{min-height:46px;padding:10px;border:1px solid #cbd7e0;border-radius:12px;background:#fff;color:#31475a;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease}
.arrow-actions button:first-child{border-color:#28658f;background:#28658f;color:#fff}
.arrow-actions button:hover:not(:disabled){transform:translateY(-1px);border-color:#8aa8bd}
.arrow-actions button:first-child:hover:not(:disabled){background:#3479aa}
.arrow-actions button:disabled{opacity:.55;cursor:wait}
.arrow-howto{font-size:13px;color:#526579}
.arrow-howto strong{color:#263e55}
@media(max-width:899px){
 .game-shell>.arrow-untangle-game.active{display:block!important}
 .arrow-untangle-game .game-head{align-items:flex-start!important}
 .arrow-untangle-game .arrow-game-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 .arrow-board-frame{width:min(100%,640px);padding:8px;border-radius:18px}
 .arrow-game-side{width:min(100%,640px);margin:0 auto;gap:10px}
 .arrow-stats{gap:7px}
 .arrow-stat{padding:10px 5px}
 .arrow-message,.arrow-howto{padding:11px 12px;font-size:13px}
 .arrow-lives{padding:9px 12px}
}
@media(max-width:480px){
 .arrow-untangle-game .game-head{flex-wrap:wrap!important}
 .arrow-untangle-game .device-tag{margin-left:auto}
 .arrow-game-layout{gap:12px!important}
 .arrow-board-frame{padding:5px;border-radius:15px}
 .arrow-stats{gap:5px}
 .arrow-stat{padding:9px 3px;border-radius:12px}
 .arrow-stat span{font-size:10px}
 .arrow-stat strong{font-size:20px}
 .arrow-actions{gap:7px}
 .arrow-actions button{min-height:46px;padding:8px 5px;font-size:12px}
 .arrow-howto{font-size:12px;line-height:1.65}
}
@media(prefers-reduced-motion:reduce){.flow-arrow,.flow-wire,.flow-head,.arrow-actions button{animation-duration:.01ms!important;transition-duration:.01ms!important}}
