/* Бильярд: карточка стола и панель партии поверх 3D-сцены. Панель тёмная в обеих темах, как сцена. */
.of-pool-card{width:100%;min-width:0;display:flex;flex-direction:column;gap:8px}
.of-pool-card .of-pool-join{min-height:40px}

.of-pool-hud{position:absolute;inset:0;z-index:6;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 70px;box-sizing:border-box;color:#e8ebf7;font:600 13px/1.3 Orb,system-ui,sans-serif}
.of-pool-hud>*{pointer-events:auto}
.of-pool-top{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;max-width:100%}
.of-pool-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 12px;border-radius:12px;background:rgba(9,12,32,.72);color:#c9cee6}
.of-pool-chip.on{background:rgba(62,224,197,.22);color:#fff}
.of-pool-chip b{max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.of-pool-grp{color:#8a91ad;font-weight:500}
.of-pool-dots{display:flex;gap:3px}
.of-pool-dots i{width:10px;height:10px;border-radius:50%;flex:none}
.of-pool-hud button.of-pool-exit{min-height:36px;padding:6px 14px;border:0;border-radius:10px;background:rgba(9,12,32,.72);color:#e8ebf7;cursor:pointer;font:inherit}
.of-pool-status{margin:0;padding:6px 12px;border-radius:10px;background:rgba(9,12,32,.6);text-align:center;max-width:100%;overflow-wrap:anywhere}
.of-pool-status:empty{display:none}
.of-pool-ctl{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:14px;background:rgba(9,12,32,.72)}
.of-pool-ctl[hidden]{display:none}
.of-pool-spin{display:flex;gap:2px;padding:2px;border-radius:10px;background:rgba(255,255,255,.06)}
.of-pool-hud button.of-pool-seg{min-height:34px;padding:4px 10px;border:0;border-radius:8px;background:none;color:#c9cee6;cursor:pointer;font:inherit}
.of-pool-hud button.of-pool-seg.on{background:#7c8cff;color:#090c1c}
.of-pool-power{display:flex;align-items:center;gap:8px;color:#c9cee6}
.of-pool-power input{width:150px;accent-color:#3ee0c5}
.of-pool-hud button.of-pool-shoot{min-height:40px;padding:8px 22px;border:0;border-radius:10px;background:#3ee0c5;color:#05070e;font:800 14px/1.2 Orb,system-ui,sans-serif;cursor:pointer}
.of-pool-hud button.of-pool-shoot:disabled{opacity:.45;cursor:default}
.of-pool-help{margin:0;color:#8a91ad;font-size:12px;font-weight:500;text-align:center;padding:0 8px;border-radius:8px;background:rgba(9,12,32,.45)}
.of-pool-result{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:6px;width:min(340px,calc(100% - 32px));padding:22px 20px 18px;border-radius:16px;background:rgba(10,13,30,.94);text-align:center;box-sizing:border-box}
.of-pool-result[hidden]{display:none}
.of-pool-result p{margin:0;overflow-wrap:anywhere}
.of-pool-big{font-size:28px;font-weight:800;color:#ffc857}
.of-pool-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.of-pool-acts button.of-act{min-height:44px;padding:8px 16px;border:0;border-radius:10px;background:#1d2448;color:#e8ebf7;cursor:pointer}
.of-pool-acts button.of-act:first-child{background:#3ee0c5;color:#05070e;font-weight:700}
/* цвета шаров: сплошные 1–7, восьмёрка, полосатые 9–15 — белые с поясом */
.of-pool-dots .b1{background:#f5c518}.of-pool-dots .b2{background:#2a5bd7}.of-pool-dots .b3{background:#e0342c}.of-pool-dots .b4{background:#6a3fb5}
.of-pool-dots .b5{background:#f07c1c}.of-pool-dots .b6{background:#1f8f4a}.of-pool-dots .b7{background:#8a2433}.of-pool-dots .b8{background:#16181e;box-shadow:0 0 0 2px rgba(255,255,255,.5)}
.of-pool-dots .b9{background:linear-gradient(#f4f1e6 25%,#f5c518 25% 75%,#f4f1e6 75%)}.of-pool-dots .b10{background:linear-gradient(#f4f1e6 25%,#2a5bd7 25% 75%,#f4f1e6 75%)}
.of-pool-dots .b11{background:linear-gradient(#f4f1e6 25%,#e0342c 25% 75%,#f4f1e6 75%)}.of-pool-dots .b12{background:linear-gradient(#f4f1e6 25%,#6a3fb5 25% 75%,#f4f1e6 75%)}
.of-pool-dots .b13{background:linear-gradient(#f4f1e6 25%,#f07c1c 25% 75%,#f4f1e6 75%)}.of-pool-dots .b14{background:linear-gradient(#f4f1e6 25%,#1f8f4a 25% 75%,#f4f1e6 75%)}
.of-pool-dots .b15{background:linear-gradient(#f4f1e6 25%,#8a2433 25% 75%,#f4f1e6 75%)}
/* во время партии подсказки офиса, джойстик и камеры не нужны */
.of-wrap .o3-host.o3-pool .o3-hint,.of-wrap .o3-host.o3-pool .o3-act,.of-wrap .o3-host.o3-pool .o3-joy,.of-wrap .o3-host.o3-pool .o3-cams{display:none!important}
@media(max-width:600px){
  .of-pool-hud{padding:10px 10px 78px;font-size:12px}   /* снизу — кнопки голосовой комнаты и «+» */
  .of-pool-top{margin-top:52px}
  .of-pool-power input{width:110px}
  .of-pool-chip b{max-width:22vw}
}
.of-wrap .o3-host.o3-pool .o3-labels{display:none}
@media(max-width:600px){.of-pool-help{display:none}}
