.wt-root{position:relative;max-width:1040px;margin:16px auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#fff;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.wt-root *{box-sizing:border-box}
.wt-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;min-height:30px;margin-bottom:6px}
.wt-chip{display:inline-flex;align-items:center;gap:6px;background:#1c2142;color:#fff;border-radius:999px;padding:3px 11px;font-weight:800;font-size:15px;white-space:nowrap}
.wt-chip i{width:12px;height:12px;border-radius:50%;display:inline-block}
.wt-chip b{color:#ffd54f}
.wt-chip.wt-goal{background:#2a3170;color:#cfd5ff}
.wt-stage{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.3);background:#0f1328;touch-action:none;margin:0 auto;max-width:100%}
.wt-canvas{display:block;width:100%;max-width:1040px;height:auto}
.wt-root button.wt-b{appearance:none;border:0;border-radius:10px;background:#2a3170;color:#fff;font:inherit;font-weight:800;font-size:15px;padding:7px 12px;cursor:pointer;text-transform:none;letter-spacing:0;line-height:1.2;min-height:0;min-width:0;width:auto;margin:0;box-shadow:none}
.wt-root button.wt-b:disabled{opacity:.45;cursor:default}
.wt-root button.wt-pause{position:absolute;top:8px;left:8px;width:40px;height:40px;padding:0;border-radius:50%;background:rgba(255,255,255,.14);font-size:17px}
.wt-root button.wt-exit{display:none;position:absolute;top:8px;right:8px;width:40px;height:40px;padding:0;border-radius:50%;background:rgba(255,255,255,.14);font-size:17px}
.wt-overlay{position:absolute;left:0;right:0;top:0;min-height:100%;display:flex;align-items:flex-start;justify-content:center;padding:14px 10px;background:rgba(8,10,24,.6);border-radius:14px;z-index:5}
.wt-overlay[hidden]{display:none}
.wt-card{background:#161a36;color:#fff;border:1px solid #2f3675;border-radius:16px;padding:16px 18px;max-width:640px;width:100%;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.wt-card h2{margin:0 0 6px;font-size:26px;line-height:1.15;color:#ffd54f;font-weight:900;font-family:inherit;letter-spacing:0}
.wt-card p{margin:4px 0 10px;color:#d6dbff;font-size:15px;line-height:1.4}
.wt-card .wt-small{font-size:13px;color:#aab2ee}
.wt-card .wt-hint{color:#ffd54f;font-weight:800}
.wt-rows{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.wt-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#1c2142;border-radius:12px;padding:6px 8px}
.wt-row.off{opacity:.6}
.wt-dot{width:18px;height:18px;border-radius:50%;flex:0 0 auto}
.wt-name{min-width:58px;text-align:left;color:#fff}
.wt-segs{display:inline-flex;gap:4px}
.wt-root button.wt-seg{font-size:13px;padding:5px 9px;background:#2a3170;color:#cfd5ff}
.wt-root button.wt-seg.on{background:#4f5bd5;color:#fff}
.wt-keys{display:inline-flex;gap:4px;margin-left:auto}
.wt-root button.wt-key{font-size:13px;padding:5px 9px;background:#0f1328;border:2px solid #4f5bd5;min-width:56px}
.wt-root button.wt-key.wait{border-color:#ffd54f;color:#ffd54f}
.wt-root button.wt-go{background:#2fa457;color:#fff;font-size:18px;padding:10px 26px;margin-top:4px}
.wt-root button.wt-alt{background:#4f5bd5;font-size:16px;padding:10px 18px}
.wt-final{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:10px 0 14px}
/* touch pads (phones): one pair per player, in their own corner */
.wt-pads{position:absolute;inset:0;pointer-events:none}
.wt-pad{position:absolute;display:flex;gap:10px;pointer-events:auto}
.wt-pad.wt-bl{left:10px;bottom:10px}.wt-pad.wt-br{right:10px;bottom:10px}
.wt-pad.wt-tl{left:10px;top:56px}.wt-pad.wt-tr{right:10px;top:56px}
.wt-root button.wt-tb{width:64px;height:64px;padding:0;border-radius:50%;font-size:26px;background:color-mix(in srgb,var(--pc) 35%,transparent);border:3px solid var(--pc);color:#fff;touch-action:none}
.wt-root button.wt-tb.on{background:var(--pc)}
/* full screen (phones) */
.wt-rotate{display:none}
.wt-root.wt-full{position:fixed;inset:0;z-index:999999;margin:0;max-width:none;width:100vw;height:100vh;height:100dvh;background:#080a18;display:flex;flex-direction:column;align-items:center;justify-content:center}
.wt-root.wt-full .wt-stage{border-radius:0;box-shadow:none;width:auto}
.wt-root.wt-full .wt-canvas{max-width:none}
.wt-root.wt-full .wt-overlay{position:fixed;inset:0;min-height:0;border-radius:0;align-items:center;padding:8px}
.wt-root.wt-full .wt-card{max-height:calc(100dvh - 16px);overflow:auto}
.wt-root.wt-full button.wt-exit{display:block}
.wt-root.wt-full .wt-bar{display:none}
.wt-root.wt-ask-turn .wt-rotate{display:flex;position:fixed;inset:0;z-index:10;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#080a18;color:#fff;text-align:center;padding:20px}
.wt-rotate .wt-rot-ic{font-size:64px;line-height:1;animation:wt-turn 1.6s ease-in-out infinite}
.wt-rotate p{margin:0;font-size:22px;font-weight:900;color:#ffd54f}
@keyframes wt-turn{0%,30%{transform:rotate(0)}60%,100%{transform:rotate(90deg)}}
@media (max-height:520px){
 .wt-root.wt-full .wt-card{padding:10px 12px}
 .wt-root.wt-full .wt-card h2{font-size:20px;margin:0 0 2px}
 .wt-root.wt-full .wt-card p{font-size:13px;margin:2px 0 6px}
 .wt-root.wt-full .wt-rows{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:4px 0}
 .wt-root.wt-full .wt-row{padding:4px 6px;gap:6px}
 .wt-root.wt-full .wt-name{min-width:0}
 .wt-root.wt-full button.wt-seg{font-size:12px;padding:5px 7px}
 .wt-root.wt-full button.wt-go{font-size:16px;padding:8px 22px}
}
@media (max-width:560px){.wt-row{justify-content:center}.wt-keys{margin-left:0}}
