.tour-spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;animation:tour-spin .8s linear infinite}@keyframes tour-spin{to{transform:rotate(360deg)}}.tour-pop{position:fixed;display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;border-radius:12px;border:1px solid #333;background:#161616;color:var(--text-color, #fff);box-shadow:0 20px 60px #0009;box-sizing:border-box;outline:none;animation:tour-pop-fade .18s ease}.tour-pop:focus-within{border-color:#444}.tour-pop.dragging{user-select:none;-webkit-user-select:none}.tour-pop-resize{position:absolute;z-index:5;touch-action:none}.tour-pop-resize.n,.tour-pop-resize.s{left:12px;right:12px;height:10px;cursor:ns-resize}.tour-pop-resize.n{top:-5px}.tour-pop-resize.s{bottom:-5px}.tour-pop-resize.e,.tour-pop-resize.w{top:12px;bottom:12px;width:10px;cursor:ew-resize}.tour-pop-resize.e{right:-5px}.tour-pop-resize.w{left:-5px}.tour-pop-resize.ne,.tour-pop-resize.nw,.tour-pop-resize.se,.tour-pop-resize.sw{width:18px;height:18px}.tour-pop-resize.ne{top:-5px;right:-5px;cursor:nesw-resize}.tour-pop-resize.sw{bottom:-5px;left:-5px;cursor:nesw-resize}.tour-pop-resize.nw{top:-5px;left:-5px;cursor:nwse-resize}.tour-pop-resize.se{bottom:-5px;right:-5px;cursor:nwse-resize}.tour-pop-resize.se:after{content:"";position:absolute;right:9px;bottom:9px;width:9px;height:9px;background:linear-gradient(135deg,transparent 0 45%,#555 45% 55%,transparent 55% 70%,#555 70% 80%,transparent 80%);pointer-events:none}.tour-pop-header{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:grab;touch-action:none}.tour-pop.dragging .tour-pop-header{cursor:grabbing}.tour-pop-boards,.tour-pop-tools,.tour-pop-nav{display:flex;align-items:center;gap:4px}.tour-pop-tools{gap:6px}.tour-pop-board-no{font-size:.9rem;font-variant-numeric:tabular-nums;color:#ffffffbf;padding:0 4px;white-space:nowrap}.tour-pop-live,.tour-pop-score{margin-left:6px;padding:2px 8px;border-radius:4px;font-size:.75rem;font-weight:700;white-space:nowrap}.tour-pop-live{background:#dc2626;color:#fff;text-transform:uppercase;letter-spacing:.04em}.tour-pop-score{background:#2a2a2a;color:#fff;font-variant-numeric:tabular-nums}.tour-pop-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:6px;border:1px solid #333;background:#222;color:#fff;cursor:pointer}.tour-pop-icon:hover:not(:disabled){background:#2e2e2e;border-color:var(--accent-color, #bf5af2)}.tour-pop-icon:disabled{opacity:.35;cursor:default}.tour-pop-icon[aria-pressed=true]{background:#fff;color:#111}.tour-pop-icon:focus-visible,.tour-pop-move:focus-visible,.tour-pop-tab:focus-visible,.tour-pop-analyse:focus-visible,.tour-pop-back-live:focus-visible{outline:2px solid var(--accent-color, #bf5af2);outline-offset:1px}.tour-pop-body{display:flex;gap:16px;min-height:0}.tour-pop-main{display:flex;flex-direction:column;gap:8px;width:calc(var(--pop-board) + 16px);flex-shrink:0}.tour-pop-main .tour-player{font-size:.95rem}.tour-pop-main .tour-clock{font-size:1rem;padding:2px 8px}.tour-pop-board-row{gap:6px}.tour-pop-board-row .tour-eval{flex-basis:10px}.tour-pop-board{position:relative;width:var(--pop-board);height:var(--pop-board);flex-shrink:0}.tour-pop-cg{width:100%;height:100%}.tour-pop-side{display:flex;flex-direction:column;gap:10px;width:280px;height:calc(var(--pop-board) + 72px);min-height:0}.tour-pop-tabs{display:flex;margin-bottom:-11px;position:relative;z-index:1}.tour-pop-tab{flex:1;padding:8px 12px;border:1px solid #2e2e2e;border-bottom:none;border-radius:6px 6px 0 0;margin-inline-end:-1px;background:#141414;color:#ffffffb3;font:inherit;font-size:.85rem;font-weight:500;cursor:pointer}.tour-pop-tab:last-child{margin-inline-end:0}.tour-pop-tab:hover:not(.active){background:#1d1d1d;color:#fff}.tour-pop-tab.active{background:#1c1c1c;color:var(--accent-color, #bf5af2);font-weight:600;padding-bottom:9px;margin-bottom:-1px}.tour-pop-panel{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #2e2e2e;border-radius:0 0 8px 8px;background:#1c1c1c;overflow:hidden}.tour-pop-moves{flex:1;min-height:0;overflow-y:auto;padding:4px;font-size:.9rem;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}.tour-pop-move-row{display:grid;grid-template-columns:34px 1fr 1fr;align-items:center}.tour-pop-move-no{color:#ffffff73;font-variant-numeric:tabular-nums;padding-left:4px}.tour-pop-move{padding:3px 6px;border:none;border-radius:4px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.tour-pop-move:hover{background:#2a2a2a}.tour-pop-move.active{background:var(--accent-color, #bf5af2);color:#fff;font-weight:600}.tour-pop-note{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:#ffffff8c;font-size:.9rem;text-align:center;padding:12px}.tour-pop-engine{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}.tour-pop-engine-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #2a2a2a;font-size:.78rem;color:#ffffff8c}.tour-pop-engine-depth{display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}.tour-pop-engine-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:tour-pulse-dot 1.2s ease-in-out infinite}.tour-pop-engine-line{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-bottom:1px solid #242424;font-size:.85rem;line-height:1.45}.tour-pop-engine-eval{flex-shrink:0;min-width:52px;padding:1px 6px;border-radius:4px;background:#f2f2f2;color:#111;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}.tour-pop-engine-eval.black{background:#3a3a3a;color:#fff}.tour-pop-engine-pv{min-width:0;color:#ffffffd9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tour-pop-back-live{margin-left:auto;padding:0 10px;height:32px;border-radius:6px;border:none;background:#dc2626;color:#fff;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;white-space:nowrap}.tour-pop-analyse{padding:10px 12px;border-radius:8px;border:none;background:#fff;color:#111;font:inherit;font-weight:600;cursor:pointer}.tour-pop-analyse:hover{background:#e6e6e6}.tour-pop.stacked .tour-pop-body{flex-direction:column}.tour-pop.stacked .tour-pop-side{width:auto;height:auto}.tour-pop.stacked .tour-pop-panel{flex:none;height:150px}.tour-pop.compact{inset:0;width:100%;height:100vh;height:100dvh;border-radius:0;border:none;box-shadow:none;gap:10px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain}.tour-pop.compact .tour-pop-header{cursor:default;touch-action:auto}.tour-pop.compact .tour-pop-icon{width:40px;height:40px}.tour-pop.compact .tour-pop-body{flex:1;min-height:0}.tour-pop.compact .tour-pop-side{flex:1;min-height:0;width:auto;height:auto}.tour-pop.compact .tour-pop-panel{flex:1;height:auto;min-height:160px}.tour-pop.compact .tour-pop-tab{padding:10px 12px;font-size:.9rem}.tour-pop.compact .tour-pop-tab.active{padding-bottom:11px}.tour-pop.compact .tour-pop-move{padding:6px 8px}.tour-pop.compact .tour-pop-nav .tour-pop-icon{flex:1;height:44px}.tour-pop.compact .tour-pop-back-live{height:44px}.tour-pop.compact .tour-pop-analyse{padding:13px 12px}.tour-pop-moves,.tour-pop-engine{overscroll-behavior:contain}@keyframes tour-pop-fade{0%{opacity:0}to{opacity:1}}@keyframes tour-pulse-dot{0%,to{opacity:1}50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.tour-pop,.tour-pop-engine-dot{animation:none}}.gw-title{flex-direction:column;align-items:flex-start;gap:0;min-width:0;line-height:1.25}.gw-title b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.gw-title span{font-size:.78rem;color:#ffffff8c}.gw-player{display:flex;align-items:center;gap:6px;font-size:.95rem;min-width:0}.gw-player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gw-player-elo{flex-shrink:0;color:#ffffff80}.gw-player-you{flex-shrink:0;margin-inline-start:auto;font-size:.7rem;font-weight:700;padding:1px 6px;border-radius:4px;background:#2a2a2a;color:#ffffffbf;text-transform:uppercase;letter-spacing:.04em}.gw-board-row{display:flex;gap:6px}.gw-eval{flex:0 0 10px;position:relative;border-radius:2px;overflow:hidden;background:var(--eval-black, #3a3a3a)}.gw-eval-white{position:absolute;inset:auto 0 0;background:var(--eval-white, #f2f2f2);transition:height .3s ease}.gw-eval.flipped .gw-eval-white{inset:0 0 auto}.gw-eval.none{background:repeating-linear-gradient(-45deg,#333 0 4px,#2a2a2a 4px 8px)}.gw-board-wait{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#262626;border-radius:4px}.gw-jumps{display:flex;gap:6px}.gw-jump{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border-radius:8px;border:1px solid #3a3a3a;background:#232323;color:#ffffffd9;font-size:.85rem;cursor:pointer}.gw-jump:hover{border-color:var(--accent-color, #bf5af2);color:#fff}.gw-jump.active{background:#2e2e2e;border-color:#555;color:#fff}.gw-jump:focus-visible{outline:2px solid var(--accent-color, #bf5af2);outline-offset:1px}.gw-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.tour-pop.compact .gw-jump{padding:11px 10px}
