:root{color-scheme:dark;--bg:#101816;--panel:#17211e;--ink:#eef0e5;--muted:#889a91;--mint:#b6e4c9;--line:#2d3b34;font-family:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);overflow:hidden}button,select,input{font:inherit}button,select{cursor:pointer}button{color:inherit;border:0;background:none}button:focus-visible,select:focus-visible,canvas:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:4px}button:disabled{cursor:default;opacity:.5}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:30px;background:#111a17;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:18px;font-weight:800;letter-spacing:1.5px}.brand-light{font-weight:400;color:#a4b5aa;margin-left:3px}.brand-ball{width:32px;height:32px;border:1px solid #697b6c;border-radius:50%;display:grid;place-items:center;background:#070c09;font-size:19px;font-family:Georgia,serif;box-shadow:inset -3px -3px 7px #000}.local-badge{font-size:10px;letter-spacing:1.7px;color:#9eafa5;display:flex;align-items:center;gap:7px}.local-badge i,.ready-dot,.version-dot{display:block;width:6px;height:6px;border-radius:50%;background:var(--mint)}.header-actions{margin-left:auto;display:flex;gap:24px}.quiet{font-size:12px;color:#bdc9bf;padding:8px 0}.quiet:hover{color:var(--mint)}.key{font-family:inherit;font-size:11px;padding:1px 5px;border:1px solid #56675b;border-radius:4px;margin-left:9px;color:inherit}.layout{height:calc(100dvh - 76px);display:grid;grid-template-columns:minmax(0,1fr) 292px}.play-area{position:relative;min-width:0;overflow:hidden;background:#171b17}#game{display:block;width:100%;height:100%;touch-action:none;outline:none}.table-heading{position:absolute;top:29px;left:32px;pointer-events:none;text-shadow:0 2px 20px #000}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;color:#b1c5b8}.table-heading h1{font-size:32px;font-weight:500;letter-spacing:-1.4px;margin:7px 0 8px}.table-heading h1 span{color:var(--mint)}.table-heading p{font-size:12px;color:#d6ddd4;margin:0;max-width:470px}.view-controls{position:absolute;right:24px;top:30px;display:flex;background:#101813d9;border:1px solid #46534877;border-radius:7px;padding:4px;gap:3px}.view-controls button{padding:8px 13px;font-size:11px;color:#adbdb1;border-radius:4px}.view-controls button.active{background:#b6e4c9;color:#122319}.bottom-hint{position:absolute;bottom:22px;left:0;right:0;display:flex;justify-content:center;gap:24px;color:#b6c5b7;font-size:10px;pointer-events:none;text-shadow:0 2px 8px #000}.bottom-hint b{font-size:14px;margin-right:5px;font-weight:400}.sidebar{background:var(--panel);border-left:1px solid var(--line);padding:27px 24px;overflow:auto;display:flex;flex-direction:column;gap:0}.player{display:flex;align-items:center;gap:10px}.avatar{width:37px;height:37px;display:grid;place-items:center;background:#2b3d31;border:1px solid #52634e;color:#d8e5ce;border-radius:50%;font-size:9px;font-weight:700}.player .eyebrow{font-size:8px;color:#8d9f91;letter-spacing:1.3px}.player h2{font-size:15px;font-weight:500;margin:5px 0 0}.ready-dot{margin-left:auto;box-shadow:0 0 10px #9cc6a144}.scoreboard{display:flex;margin:25px 0 28px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.scoreboard>div{width:50%;display:flex;flex-direction:column;gap:7px}.scoreboard>div+div{padding-left:24px;border-left:1px solid var(--line)}.scoreboard strong{font-size:29px;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:-1px}.scoreboard small{font-size:13px;color:#748879;margin-left:3px;letter-spacing:0}.scoreboard>div>span{font-size:8px;color:#879c8a;letter-spacing:1.5px}.control-title{display:flex;justify-content:space-between;align-items:center}.control-title label,.effect-block label{font-size:12px;font-weight:500}.control-title output{font-size:24px;font-variant-numeric:tabular-nums;font-weight:400}.control-title output span{font-size:11px;color:#8fa392;margin-left:2px}input[type=range]{width:100%;height:4px;margin:20px 0 13px;accent-color:var(--mint);cursor:pointer;appearance:none;background:linear-gradient(to right,var(--mint) var(--power,35%),#3b4d40 var(--power,35%));border-radius:3px}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#dbedce;border:2px solid #17211e;box-shadow:0 0 0 1px #b6e4c9}.range-labels{display:flex;justify-content:space-between;color:#839886;font-size:9px}.effect-block{display:flex;justify-content:space-between;align-items:center;padding:30px 0}.effect-block p{font-size:11px;line-height:1.6;color:#91a395;margin:9px 0 10px}.text-button{padding:0;font-size:9px;color:#b6c9b8}.text-button:hover{text-decoration:underline}.spin-control{width:83px;height:83px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff 0%,#eeeeda 35%,#b8c0af 72%,#687e6b 100%);box-shadow:0 8px 14px #0005;position:relative;cursor:crosshair;touch-action:none;border:1px solid #aeb9a2}.spin-cross{position:absolute;background:#596e5c44;pointer-events:none}.horizontal{height:1px;left:7px;right:7px;top:50%}.vertical{width:1px;top:7px;bottom:7px;left:50%}.spin-dot{position:absolute;left:50%;top:50%;width:9px;height:9px;transform:translate(-50%,-50%);border-radius:50%;background:#bd4940;box-shadow:0 0 0 2px #f3eee5bb;pointer-events:none}.shoot-button{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;background:var(--mint);color:#17291d;border:1px solid #b6e4c9;border-radius:6px;height:47px;font-size:13px;font-weight:700;transition:background .15s,transform .15s}.shoot-button:not(:disabled):hover{background:#d0f4d8;transform:translateY(-1px)}.shoot-button .key{border-color:#17291d50;font-size:13px;margin:0}.shot-hint{font-size:10px;color:#8c9f8f;line-height:1.6;text-align:center;min-height:30px;margin:11px 0 15px}.divider{height:1px;background:var(--line);margin:2px 0 22px}.scenario-title{margin-bottom:11px}.scenario-title label{font-size:10px;color:#a5b6a8}select{width:100%;border:1px solid #3b4d40;border-radius:5px;background:#121c17;color:#bdcdbf;height:36px;padding:0 10px;font-size:10px}.table-actions{display:flex;gap:8px;margin:11px 0 22px}.table-actions button{flex:1;border:1px solid #3c4e40;border-radius:5px;padding:9px 4px;color:#adbfaf;font-size:10px}.table-actions button:hover,.table-actions button.active{border-color:#a8c7aa;color:#d7ebd7}.version-note{margin-top:auto;display:flex;align-items:flex-start;gap:9px;padding-top:18px;font-size:9px;color:#a6b9a8}.version-dot{width:4px;height:4px;margin-top:4px;background:#8ca78d}.version-note p{margin:5px 0 0;font-size:9px;line-height:1.5;color:#6f8877}.loading{position:absolute;inset:0;background:#111a17;display:flex;align-items:center;justify-content:center;gap:18px;z-index:3;transition:opacity .4s}.loading.hidden{opacity:0;pointer-events:none}.loader-ball{font-size:26px;background:#050a07;border:1px solid #7d8c75;width:51px;height:51px;border-radius:50%;display:grid;place-items:center;animation:breathe 1.4s ease-in-out infinite}.loading p{font-size:15px;color:#e5eddf}.loading p span{display:block;font-size:11px;color:#8da38f;margin-top:7px}.toast{position:absolute;left:50%;bottom:65px;transform:translate(-50%,12px);opacity:0;transition:.25s;background:#15241deF;border:1px solid #52684f;color:#d6ead3;border-radius:7px;padding:11px 18px;font-size:12px;pointer-events:none;white-space:nowrap}.toast.show{transform:translate(-50%,0);opacity:1}dialog{max-width:490px;width:calc(100% - 32px);border:1px solid #435344;border-radius:12px;padding:35px;background:#18241e;color:var(--ink);box-shadow:0 30px 100px #000a}dialog::backdrop{background:#020705bb;backdrop-filter:blur(6px)}.dialog-close{position:absolute;right:14px;top:10px;font-size:25px;color:#a4b7a8}dialog h2{font-size:32px;font-weight:400;margin:12px 0 22px;letter-spacing:-1px}dialog p,dialog li{font-size:12px;line-height:1.8;color:#b1c3b5}dialog ul{padding-left:18px}dialog li{margin:8px 0}.help-note{border-top:1px solid #3b4b3e;margin-top:22px;padding-top:18px;font-size:10px!important;color:#8fa795!important}dialog .shoot-button{margin-top:22px}@keyframes breathe{50%{box-shadow:0 0 30px #a6d7aa22}}@media(max-height:760px) and (min-width:761px){.sidebar{padding:18px 22px}.scoreboard{margin:15px 0 18px;padding:12px 0}.effect-block{padding:18px 0}.divider{margin-bottom:14px}.version-note{padding-top:9px}}@media(max-width:760px){.topbar{height:58px;padding:0 16px;gap:15px}.brand{font-size:14px;letter-spacing:1px}.brand-ball{width:27px;height:27px;font-size:17px}.local-badge{display:none}.header-actions{gap:16px}.quiet{font-size:10px}.quiet .key{display:none}.layout{height:calc(100dvh - 58px);grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) auto}.sidebar{border-left:0;border-top:1px solid var(--line);padding:15px 18px;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;max-height:41dvh}.player,.scoreboard,.divider,.scenario-title,.version-note,.shot-hint{display:none}.control-block{min-width:0}.effect-block{padding:0;grid-row:1/3;grid-column:2;gap:12px;justify-content:flex-end}.effect-block p{font-size:9px}.effect-block label{font-size:11px}.effect-block .text-button{font-size:8px}.spin-control{width:65px;height:65px;flex-shrink:0}.control-title output{font-size:20px}.control-title label{font-size:11px}input[type=range]{margin:15px 0 9px}.range-labels{font-size:8px}.shoot-button{height:39px;font-size:12px;grid-column:1}.table-actions{margin:0;grid-column:2}.table-actions button{font-size:9px;padding:8px 2px}select{grid-column:1;height:31px;font-size:9px}.table-heading{top:17px;left:18px}.table-heading h1{font-size:24px}.table-heading .eyebrow{font-size:8px}.table-heading p{font-size:10px;max-width:250px}.view-controls{top:18px;right:14px}.view-controls button{padding:6px 9px;font-size:9px}.bottom-hint{gap:17px;font-size:8px;bottom:12px}.desktop-hint{display:none}.toast{font-size:10px;bottom:40px}.effect-block>div:first-child{display:none}}

.play-area::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#07110bd9,transparent 27%,transparent 82%,#07120a88);z-index:1}.table-heading,.view-controls,.bottom-hint,.toast{z-index:2}

.sidebar>*{flex-shrink:0}

.effect-popover[hidden],.stroke-meter[hidden]{display:none}
.effect-popover{position:absolute;transform:translate(-50%,-50%);z-index:6;width:210px;padding:14px 17px;background:#14231ff5;border:1px solid #78977a;border-radius:12px;box-shadow:0 14px 55px #0009;display:flex;flex-direction:column;align-items:center;gap:13px;backdrop-filter:blur(9px)}
.effect-popover-title{width:100%;display:flex;justify-content:space-between;align-items:center;color:#c8ddcb;font-size:11px}.effect-popover-title button{font-size:21px;padding:0 2px;color:#b8cebd;line-height:1}.large-spin{width:142px;height:142px}.large-spin .spin-dot{width:11px;height:11px}.effect-popover-hint{font-size:8px;color:#8fa99a;text-align:center}.effect-mode{cursor:crosshair}
.cue-angle{display:flex;justify-content:space-between;align-items:center;margin:-10px 0 17px;padding:10px 0;border-top:1px solid #2d3b34;color:#bbcebd;font-size:10px}.cue-angle small{display:block;color:#748d7c;font-size:9px;margin-top:5px}.cue-angle output{font-size:22px;font-weight:300;font-variant-numeric:tabular-nums;color:#d2e8d0}
.stroke-meter{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);z-index:3;width:240px;padding:12px 15px;background:#11231df2;border:1px solid #66876b;border-radius:8px;text-align:center;color:#c8e3cb;font-size:11px;pointer-events:none}.stroke-meter i{display:block;height:5px;margin:10px 0;background:linear-gradient(to right,#bae6bf var(--draw,0%),#364a3d var(--draw,0%));border-radius:4px}.stroke-meter small{font-size:9px;color:#93b29b}.bottom-hint b{font-size:10px;font-weight:600}
@media(max-width:760px){.cue-angle{grid-column:2;grid-row:1;font-size:9px;margin:0 0 0 65px;border-top:0;padding:0}.cue-angle output{font-size:16px}.cue-angle small{font-size:8px}.effect-block{justify-content:flex-start}.bottom-hint{gap:10px}.bottom-hint b{font-size:8px}.stroke-meter{bottom:38px;width:190px}}

/* Classic table view: the canvas occupies the viewport; tools overlay it. */
.classic-view .topbar{position:absolute;inset:0 0 auto;height:48px;background:linear-gradient(#08110bbd,transparent);border:0;padding:0 18px;gap:20px;z-index:4}
.classic-view .brand{font-size:12px;letter-spacing:1px}.classic-view .brand-ball{width:25px;height:25px;font-size:17px}.classic-view .local-badge{font-size:8px}.classic-view .header-actions{gap:18px}
.classic-view .layout{height:100dvh;display:block}.classic-view .play-area{width:100%;height:100%}.classic-view .table-heading{top:58px;left:18px}.classic-view .table-heading h1,.classic-view .table-heading>.eyebrow{display:none}.classic-view .table-heading p{font-size:11px;color:#d6dfd4;opacity:.8}
.classic-view .view-controls{top:54px;right:18px;background:#0a150e99;border:1px solid #ffffff29;border-radius:3px}.classic-view .view-controls button{padding:6px 10px}
.classic-view .sidebar{position:absolute;right:12px;top:100px;bottom:86px;width:292px;z-index:5;border:1px solid #7d8a7580;border-radius:7px;box-shadow:0 12px 40px #0009;transform:translateX(calc(100% + 16px));visibility:hidden;transition:transform .18s,visibility .18s;background:#14201ef5}
.classic-view.controls-open .sidebar{transform:translateX(0);visibility:visible}.classic-view .bottom-hint{bottom:83px;gap:22px;font-size:10px;opacity:.65}.classic-hud{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}
.classic-player,.classic-session{height:61px;min-width:226px;padding:8px 14px;display:flex;align-items:center;gap:12px;background:linear-gradient(#404641ed,#111510ed);border:2px solid #7b8a7d;border-radius:8px;box-shadow:inset 0 1px 2px #fff5,0 3px 12px #0008}.classic-player{border-color:#72b1ca}.classic-player img{width:38px;height:38px;object-fit:cover;filter:grayscale(1);opacity:.75}.classic-player strong{color:#b9e880;font-size:14px}.classic-hud span{display:block;margin-top:4px;font-size:10px;color:#bdc8ba}.classic-session{display:block;text-align:right;min-width:220px}.classic-session strong{font-weight:500;font-size:14px}.classic-view .effect-popover{background:#111a14eb;border-color:#8a9683}.classic-view .stroke-meter{bottom:109px}
@media(max-width:760px){.classic-view .local-badge,.classic-view .brand-light{display:none}.classic-view .topbar{gap:8px;padding:0 10px}.classic-view .header-actions{gap:11px}.classic-view .quiet{font-size:10px}.classic-view .sidebar{width:min(292px,calc(100vw - 24px));top:104px;display:flex}.classic-hud{left:7px;right:7px;bottom:7px}.classic-player,.classic-session{min-width:0;width:42%;height:53px;padding:6px 9px}.classic-view .bottom-hint{bottom:69px;gap:8px}.classic-view .view-controls{top:49px;right:10px}.classic-view .table-heading{top:87px;left:10px}.classic-player strong,.classic-session strong{font-size:12px}}

#onlineDialog input{display:block;width:100%;padding:12px;margin:12px 0;color:#eef;background:#14251f;border:1px solid #8a9e91;border-radius:8px}#onlineDialog button{margin:8px 0}#onlineDialog label{display:block;margin-top:18px}

.pocket-collection{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:12;background:#102018ee;border:1px solid #6f8878;border-radius:9px;color:#e8eee7;padding:8px 12px;max-width:320px;font-size:12px}.pocket-collection summary{cursor:pointer}.pocket-collection[open]{bottom:82px}.pocket-collection-row{display:flex;align-items:center;gap:5px;margin-top:8px;min-height:24px}.pocket-collection-row>span:first-child{width:95px;font-size:11px}.potted-ball{display:inline-flex;width:23px;height:23px;border-radius:50%;align-items:center;justify-content:center;background:var(--ball);border:1px solid #d8ded780;box-shadow:inset -3px -3px 5px #0007}.potted-ball i{font:normal bold 10px sans-serif;background:#f8f5e7;color:#141815;border-radius:50%;min-width:13px;text-align:center}.potted-ball.striped{background:linear-gradient(#f8f5e7 20%,var(--ball) 20%,var(--ball) 80%,#f8f5e7 80%)}

.home-menu{display:none}.home-view .home-menu{display:flex;flex-direction:column;justify-content:center;position:absolute;inset:0 auto 0 0;width:43%;padding:6vw;z-index:30;background:linear-gradient(100deg,#0b171a 80%,#101c20)}.home-kicker{font-size:10px;letter-spacing:3px;color:#a3b8b3}.home-menu h1{font-size:clamp(44px,5vw,84px);letter-spacing:-5px;margin:16px 0 10px;font-weight:650}.home-menu h1 span{color:#b6e4c9}.home-menu>p{color:#9eafac;line-height:1.7;font-size:15px;margin-bottom:30px}.home-options{display:grid;gap:12px}.home-options button{display:flex;align-items:center;gap:18px;width:100%;padding:20px 17px;text-align:left;border:1px solid #52665f;border-radius:9px;background:#142728;transition:background .15s}.home-options button:hover:not(:disabled){background:#23413e;border-color:#b6e4c9}.home-options b{font-size:11px;color:#829d92}.home-options span{font-size:19px;font-weight:550}.home-options small{display:block;font-size:11px;font-weight:400;color:#9aacaa;margin-top:7px}.home-options i{margin-left:auto;font-style:normal}.home-menu .text-button{margin-top:24px;text-align:left}.home-foot{font-size:8px;letter-spacing:1.5px;color:#728780;margin-top:34px}.home-view .topbar{display:none}.home-view.classic-view .layout{position:absolute;left:43%;top:0;width:57%;height:100dvh;pointer-events:none}.home-view .table-heading,.home-view .view-controls,.home-view .classic-hud,.home-view .bottom-hint,.home-view .pocket-collection{display:none}#calledBallSelect{width:100%;padding:12px;margin:15px 0;background:#18312a;color:#eef0e5;border:1px solid #6c8c7c}#rulesDialog{max-height:85dvh;overflow:auto}#rulesDialog li{margin:12px 0;line-height:1.6}
@media(max-width:760px){.home-view .home-menu{width:100%;background:#0b171ae8;padding:24px 8vw}.home-view.classic-view .layout{left:0;width:100%}.home-menu h1{letter-spacing:-3px}.home-options button{padding:15px}.home-foot{margin-top:20px}.classic-view .header-actions{gap:9px}.classic-view .header-actions .quiet{font-size:10px}}

#game{cursor:default}
#game.locked-mouse{cursor:none}

.call-pick-hint{position:absolute;top:105px;left:50%;transform:translateX(-50%);z-index:15;padding:14px 22px;background:#12231ff2;border:1px solid #dfc27b;border-radius:8px;color:#f1e4bc;pointer-events:none;text-align:center;font-size:14px;max-width:90%}

[hidden]{display:none!important}#lobbyPeers{margin:18px 0;padding:14px;background:#10231c;border:1px solid #436655;border-radius:8px;line-height:1.8;white-space:pre-line}#onlineDialog #inviteLink{font-size:12px}#onlineDialog #copyInvite{width:100%;padding:15px;border-radius:7px;background:#b6e4c9;color:#13271f;font-weight:650}

#practiceRestart{position:absolute;z-index:18;left:50%;bottom:92px;transform:translateX(-50%);width:auto;padding:0 20px;white-space:nowrap}
#practiceRestart:not(:disabled):hover{transform:translateX(-50%)}

#onlineDialog{max-height:90dvh;overflow:auto}
#poolLoginForm label{display:grid;gap:6px;margin:12px 0;color:#d0dfd2;font-size:13px}
#poolLoginForm input{height:38px;border:1px solid #52685a;border-radius:6px;background:#101b15;color:#edf5ed;padding:0 10px}
.pool-lobby-buttons,.pool-lobby-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pool-lobby-heading{justify-content:space-between}.pool-lobby-buttons>p{flex-basis:100%;margin:6px 0}
#onlineDialog button:not(.dialog-close),.pool-match-bar button{border:1px solid #536c5c;border-radius:7px;padding:8px 11px;background:#22372b;color:#e0eee2;font-size:12px}
#onlineDialog button[type=submit]:first-child,#poolTableActions button:first-of-type{background:#b6e4c9;color:#172b21;font-weight:700}
#poolTables{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
#poolTables li{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;border:1px solid #52685a55;border-radius:12px;background:#101b16}
.pool-table-mini{width:130px;height:76px;border:9px solid #684a2c;border-radius:12px;background:radial-gradient(ellipse at center,#27916a,#12593f);position:relative;box-shadow:0 6px 12px #0006}
.pool-table-mini:after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#f2f1dc;left:30%;top:45%;box-shadow:37px -8px 0 #bc2828}
.pool-table-mini i{position:absolute;width:12px;height:12px;background:#080d0b;border-radius:50%;top:-5px;left:-5px}
.pool-table-mini i:nth-child(2){left:calc(50% - 6px)}.pool-table-mini i:nth-child(3){left:auto;right:-5px}
.pool-table-mini i:nth-child(n+4){top:auto;bottom:-5px}.pool-table-mini i:nth-child(5){left:calc(50% - 6px)}.pool-table-mini i:nth-child(6){left:auto;right:-5px}
#poolWaitingPanel{position:fixed;z-index:80;top:80px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:max-content;max-width:90vw;padding:12px 18px;border:1px solid #8fc9a9;border-radius:12px;background:#11291ff2;box-shadow:0 8px 30px #0008;font-size:13px}
#poolWaitingPanel[hidden]{display:none}#poolWaitingPanel button,#repeatCornerPractice{border:1px solid #7caa8c;border-radius:6px;padding:7px 10px;background:#254d39}
.pool-match-bar{position:absolute;z-index:18;bottom:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:8px 12px;border:1px solid #52685a;border-radius:9px;background:#101b16ed;color:#dce9db;font-size:13px}
.pool-match-bar button:disabled{opacity:.45}
.match-view .topbar,.match-view .sidebar,.match-view .view-controls,.match-view .table-heading,.match-view .classic-hud,.match-view .bottom-hint,.match-view .pocket-collection,.match-view .effect-popover-hint,.match-view #strokeMeter,.match-view #callPickHint{display:none!important}
.match-view.classic-view .layout{height:100dvh;grid-template-columns:1fr;grid-template-rows:1fr}
.match-view .toast{bottom:122px}

/* Real Pool Scoreboard & Group Banner */
.pool-scoreboard{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:22;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0d1814f0;backdrop-filter:blur(10px);border:1px solid #4a6352;border-radius:14px;padding:9px 18px;min-width:480px;max-width:94vw;box-shadow:0 12px 35px #000000a0}
.score-player{display:flex;align-items:center;gap:12px;transition:opacity .2s}
.score-player.right{flex-direction:row-reverse}
.score-avatar-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}
.score-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#24362b;border:2px solid #55725f;font-weight:700;font-size:12px;color:#d5e5d8}
.score-turn-pill{font-size:9px;font-weight:700;letter-spacing:0.8px;padding:2px 7px;border-radius:10px;background:#1b2d23;color:#859a8c;border:1px solid #3c5444;white-space:nowrap}
.score-player.active .score-avatar{border-color:#b6e4c9;box-shadow:0 0 12px #b6e4c988}
.score-player.active .score-turn-pill{background:#b6e4c9;color:#0d1f15;border-color:#b6e4c9}
.score-info{display:flex;flex-direction:column;gap:3px}
.score-info.right-align{align-items:flex-end}
.score-name{font-size:13px;font-weight:700;color:#eef4ee;letter-spacing:0.5px}
.score-group-badge{font-size:10px;font-weight:800;letter-spacing:1px;padding:2px 7px;border-radius:4px;display:inline-block;width:fit-content}
.score-group-badge.solids{background:#dca626;color:#181504}
.score-group-badge.stripes{background:#7a4496;color:#ffffff}
.score-group-badge.open{background:#263a2f;color:#96ab9c;border:1px solid #405749}
.score-group-badge.eight{background:#111;color:#f0f0f0;border:1px solid #777}
.score-balls{display:flex;gap:4px;margin-top:2px}
.mini-ball{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:800;color:#111;background:var(--c,#fff);border:1px solid #ffffff60;box-shadow:inset -1px -1px 3px #000a}
.mini-ball.striped{border:2px dashed #ffffff;box-shadow:0 0 2px #fff8}
.mini-ball.potted{opacity:0.18;filter:grayscale(1);transform:scale(0.85)}
.mini-ball i{font-style:normal;font-size:8px}
.score-center{display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 8px;border-left:1px solid #2d4134;border-right:1px solid #2d4134}
.score-vs{font-size:11px;font-weight:900;letter-spacing:2px;color:#789381}
.score-center-status{font-size:10px;color:#c0d4c5;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.group-banner{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);z-index:40;background:linear-gradient(135deg,#13281ef5,#09140ff8);border:2px solid #b6e4c9;border-radius:18px;padding:26px 40px;text-align:center;box-shadow:0 24px 70px #000000d0,0 0 45px #b6e4c930;animation:popBanner .35s ease-out;pointer-events:none}
@keyframes popBanner{0%{opacity:0;transform:translate(-50%,-45%) scale(0.88)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.group-banner-kicker{font-size:11px;font-weight:800;letter-spacing:2.5px;color:#b6e4c9;margin-bottom:6px}
.group-banner h2{font-size:36px;font-weight:900;letter-spacing:-1px;margin:0 0 8px;color:#ffffff;text-shadow:0 3px 15px #000}
.group-banner p{font-size:14px;color:#d5e5d8;margin:0}
@media(max-width:760px){.pool-scoreboard{min-width:0;width:calc(100vw - 20px);padding:6px 10px;gap:8px}.score-avatar{width:30px;height:30px;font-size:10px}.score-name{font-size:11px}.mini-ball{width:13px;height:13px;font-size:7px}.group-banner{padding:18px 24px}.group-banner h2{font-size:26px}}

/* Live Match Log Panel */
.pool-live-log {
  position: absolute;
  top: 62px;
  right: 18px;
  width: 280px;
  max-height: 44vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 24, 18, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 140, 105, 0.35);
  border-radius: 10px;
  z-index: 24;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-family: inherit;
  transition: max-height 0.25s ease;
  overflow: hidden;
}
.home-view .pool-live-log { display: none !important; }
.pool-live-log.minimized { max-height: 36px; }
.live-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(18, 38, 29, 0.95);
  border-bottom: 1px solid rgba(80, 140, 105, 0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #b6e4c9;
}
.live-log-header button {
  background: transparent;
  border: none;
  color: #8fa898;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
}
.live-log-header button:hover { color: #fff; }
.live-log-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: calc(44vh - 36px);
}
.log-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(18, 35, 27, 0.65);
  font-size: 11px;
  line-height: 1.35;
  color: #d8e6db;
  border-left: 3px solid #5a7d69;
}
.log-entry.foul {
  background: rgba(60, 15, 18, 0.82);
  border-left-color: #ff5252;
  color: #ffe0e0;
}
.log-entry.goal {
  background: rgba(20, 50, 32, 0.8);
  border-left-color: #4cd964;
  color: #e2fbe7;
}
.log-entry.assign {
  background: rgba(50, 35, 75, 0.85);
  border-left-color: #c078ff;
  color: #f3e6ff;
}
.log-entry.win {
  background: rgba(55, 45, 15, 0.9);
  border-left-color: #ffd700;
  color: #fff9d6;
  font-weight: 700;
}
.log-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.log-badge {
  font-weight: 800;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.log-badge.foul { background: #ff4757; color: #fff; }
.log-badge.goal { background: #2ed573; color: #082914; }
.log-badge.turn { background: #3742fa; color: #fff; }
.log-badge.assign { background: #9b59b6; color: #fff; }
.log-badge.info { background: #4b6584; color: #fff; }
.log-badge.win { background: #ffa502; color: #1e1300; }
.log-detail { font-size: 10.5px; color: #b0c7b6; }
.log-entry.foul .log-detail { color: #ffb8b8; font-weight: 600; }

/* Game Over & Pause Dialogs */
.game-over-dialog, .pause-dialog {
  border: 1px solid #4a755d;
  background: radial-gradient(circle at center, #173628 0%, #0d1e16 100%);
  color: #eef7f0;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.75);
  max-width: 420px;
  width: 90vw;
}
.game-over-dialog::backdrop, .pause-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.game-over-icon { font-size: 48px; margin-bottom: 8px; }
.game-over-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #b6e4c9; display: block; margin-bottom: 6px; }
.game-over-dialog h2, .pause-dialog h2 { font-size: 24px; font-weight: 900; margin: 0 0 10px; color: #ffffff; }
.game-over-dialog p, .pause-dialog p { font-size: 13.5px; color: #c1d6c7; margin: 0 0 20px; line-height: 1.45; }
.game-over-actions, .pause-actions { display: flex; flex-direction: column; gap: 10px; }
.quiet-btn { padding: 12px 18px; border-radius: 8px; background: #1c3629; border: 1px solid #3d6850; color: #e1efe5; font-weight: 700; cursor: pointer; }
.quiet-btn:hover { background: #264b38; }
.danger-btn { padding: 12px 18px; border-radius: 8px; background: #3a1c1c; border: 1px solid #6c3232; color: #ffcfcf; font-weight: 700; cursor: pointer; }
.danger-btn:hover { background: #4f2525; }

@media(max-width: 760px) {
  .pool-live-log { right: 8px; width: 220px; max-height: 32vh; top: 54px; }
}


/* Modality Switch & Billar Tradicional Argentino UI */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: #0d1a1c;
  border: 1px solid #354c48;
  border-radius: 10px;
  margin-bottom: 16px;
}
.mode-switch button {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #93aba5;
  transition: background .15s, color .15s;
}
.mode-switch button.active {
  background: #b6e4c9;
  color: #10241b;
}
.home-options button.billiards-highlight {
  border-color: #c89d4c88;
  background: linear-gradient(135deg, #271a18 0%, #172724 100%);
}
.home-options button.billiards-highlight:hover:not(:disabled) {
  border-color: #f3c86b;
  background: linear-gradient(135deg, #3a2320 0%, #1d3530 100%);
}

.billiards-view .classic-hud { display: none; }
.billiards-view .bottom-hint { bottom: 72px; }
.billiards-view .pocket-collection { bottom: 78px; left: 18px; transform: none; }
.home-view .billiards-hud-bar,
.home-view .billiards-call-panel { display: none !important; }

.match-view.billiards-view .billiards-hud-bar { bottom: 68px; }
.match-view.billiards-view .billiards-call-panel { bottom: 132px; }
.match-view.billiards-view #matchCall { display: none; }

.billiards-hud-bar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  background: rgba(11, 22, 18, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid #8a7342;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65);
  max-width: calc(100vw - 24px);
}
.billiards-hud-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
}
.billiards-cabana-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #f3e5ab;
}
.billiards-cabana-pill.free {
  color: #7be495;
}
.billiards-call-summary {
  font-size: 12px;
  font-weight: 600;
  color: #eef5ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 310px;
}
.billiards-hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.billiards-call-btn {
  padding: 9px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3c86b, #d89b32);
  color: #1c1404;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.billiards-call-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.billiards-pick-btn,
.billiards-clear-btn {
  padding: 9px 11px;
  border-radius: 8px;
  background: #1b2f26;
  border: 1px solid #486956;
  color: #dcebe0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.billiards-pick-btn.active {
  background: #b6e4c9;
  color: #0e2219;
  border-color: #b6e4c9;
}

.billiards-call-panel {
  position: absolute;
  left: 18px;
  bottom: 84px;
  z-index: 26;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 165px);
  overflow-y: auto;
  background: rgba(12, 24, 19, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid #967c46;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billiards-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.billiards-panel-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.dialog-close-inline {
  font-size: 22px;
  line-height: 1;
  color: #a9bdb0;
  padding: 2px 6px;
}
.billiards-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.billiards-type-grid button {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #385044;
  background: #14261f;
  color: #c8dbcd;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}
.billiards-type-grid button:hover {
  border-color: #82a992;
}
.billiards-type-grid button.active {
  background: #f3c86b;
  border-color: #f3c86b;
  color: #1c1303;
  font-weight: 800;
}
.billiards-type-desc {
  margin: 0;
  font-size: 11px;
  color: #a7beb0;
  line-height: 1.45;
}
.billiards-step-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid #263a30;
}
.billiards-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #dcebe0;
}
.billiards-step-head small {
  color: #f3c86b;
  font-size: 10px;
}
.billiards-mini-action {
  padding: 5px 9px;
  border-radius: 6px;
  background: #1d392d;
  border: 1px solid #59876d;
  color: #d6f0de;
  font-size: 10.5px;
  font-weight: 700;
}
.billiards-mini-action.active {
  background: #b6e4c9;
  color: #10241b;
}
.billiards-selected-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}
.billiards-empty-note {
  font-size: 10.5px;
  color: #88a092;
}
.billiards-ball-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #4e1418;
  border: 1px solid #d6454b;
  color: #ffe8e8;
  font-size: 11px;
  font-weight: 700;
}
.billiards-ball-chip i {
  font-style: normal;
  background: #f3c86b;
  color: #1f1603;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
}
.billiards-ball-chip button {
  font-size: 13px;
  line-height: 1;
  color: #ffb8b8;
  padding: 0 2px;
}
.billiards-pocket-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  background: #0e2419;
  border: 1px solid #2c523c;
}
.billiards-pocket-map button {
  padding: 8px 8px;
  border-radius: 6px;
  border: 1px solid #355844;
  background: #173425;
  color: #cfe3d5;
  font-size: 10.5px;
  font-weight: 650;
}
.billiards-pocket-map button.active {
  background: #f3c86b;
  border-color: #f3c86b;
  color: #1c1303;
  font-weight: 800;
}
.billiards-pocket-map button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.billiards-panel-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.billiards-hint-text {
  font-size: 10.5px;
  color: #f3c86b;
  text-align: center;
}
.billiards-confirm-btn {
  height: 40px;
  font-size: 12px;
}

.mini-ball.red-billar {
  background: radial-gradient(circle at 30% 30%, #e74c52, #9e141a);
  border-color: #ff9c9f88;
}

@media(max-width: 760px) {
  .match-view.billiards-view .billiards-hud-bar { bottom: 68px; }
.match-view.billiards-view .billiards-call-panel { bottom: 132px; }
.match-view.billiards-view #matchCall { display: none; }

.billiards-hud-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    bottom: 8px;
    padding: 8px 10px;
    width: calc(100vw - 16px);
  }
  .billiards-hud-info { min-width: 0; }
  .billiards-call-summary { max-width: none; }
  .billiards-hud-actions { justify-content: space-between; }
  .billiards-call-btn { flex: 1; }
  .billiards-call-panel {
    left: 8px;
    right: 8px;
    bottom: 92px;
    width: auto;
  }
  .billiards-view .bottom-hint { display: none; }
  .billiards-view .pocket-collection { display: none; }
}
.score-group-badge.negative {
  background: #4b181d;
  color: #ffb8b8;
  border: 1px solid #d6454b;
}

/* Contextual Aim Badge & Ball Quick-Call Popover */
.home-view .billiards-aim-badge,
.home-view .billiards-quick-menu {
  display: none !important;
}

.billiards-aim-badge {
  position: absolute;
  z-index: 22;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 10px;
  background: rgba(11, 22, 18, 0.90);
  backdrop-filter: blur(8px);
  border: 1px solid #8a7342;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  font-size: 11px;
  color: #eef5ef;
  white-space: nowrap;
  pointer-events: auto;
}
.billiards-aim-badge.cabana-warn {
  border-color: #ff6b6b;
  color: #ffd6d6;
}
.billiards-aim-badge button {
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c86b, #d89b32);
  color: #1c1404;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.billiards-aim-badge button .key {
  margin-left: 2px;
  border-color: #1c140455;
  font-size: 9.5px;
  padding: 0 4px;
}

.billiards-quick-menu {
  position: absolute;
  z-index: 30;
  width: 268px;
  padding: 12px;
  background: rgba(11, 22, 18, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid #c9a85c;
  border-radius: 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bqm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bqm-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #fff;
}
.bqm-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: #1c3d2c;
  color: #7be495;
  border: 1px solid #3f7a58;
}
.bqm-tag.warn {
  background: #4b181d;
  color: #ffb8b8;
  border-color: #d6454b;
}
.bqm-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.bqm-types button {
  padding: 6px 5px;
  border-radius: 6px;
  background: #152820;
  border: 1px solid #354e41;
  color: #cfe0d4;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}
.bqm-types button.active {
  background: #f3c86b;
  border-color: #f3c86b;
  color: #1c1303;
  font-weight: 800;
}
.bqm-seq {
  font-size: 10.5px;
  color: #f3e5ab;
  background: #14251e;
  border: 1px solid #2b4236;
  border-radius: 6px;
  padding: 5px 8px;
}
.bqm-pockets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.bqm-pockets button {
  padding: 6px 6px;
  border-radius: 6px;
  background: #153123;
  border: 1px solid #355844;
  color: #d2e6d8;
  font-size: 10px;
  font-weight: 650;
}
.bqm-pockets button.active {
  background: #f3c86b;
  border-color: #f3c86b;
  color: #1c1303;
  font-weight: 800;
}
.bqm-pockets button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.bqm-foot {
  display: flex;
  gap: 6px;
}
.bqm-clear {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  background: #1a2d24;
  border: 1px solid #415d4d;
  color: #cfe0d4;
  font-size: 10.5px;
  font-weight: 700;
}
.bqm-done {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  background: #b6e4c9;
  color: #10241b;
  font-size: 11px;
  font-weight: 800;
}

/* Minimal [C] square centered on the aimed ball (red / yellow / green state) */
.home-view .billiards-c-badge {
  display: none !important;
}
.billiards-c-badge {
  position: absolute;
  z-index: 22;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(12, 18, 15, 0.86);
  border: 2px solid #f7c948;
  color: #f7c948;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}
.billiards-c-badge.state-cabana {
  border-color: #ff3b30;
  color: #ff6b63;
  background: rgba(45, 10, 10, 0.88);
}
.billiards-c-badge.state-auto {
  border-color: #f7c948;
  color: #f7c948;
}
.billiards-c-badge.state-called {
  border-color: #2ecc71;
  color: #2ecc71;
  background: rgba(10, 40, 22, 0.88);
}

/* Refined delicate [C] square & non-blocking Cabaña alert */
.billiards-c-badge {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid rgba(247, 201, 72, 0.9);
  background: rgba(10, 16, 14, 0.52);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.billiards-c-badge.state-cabana {
  border-color: rgba(255, 75, 66, 0.95);
  color: #ff6b63;
  background: rgba(40, 8, 8, 0.58);
}
.billiards-c-badge.state-auto {
  border-color: rgba(247, 201, 72, 0.9);
  color: #f7c948;
}
.billiards-c-badge.state-called {
  border-color: rgba(46, 204, 113, 0.95);
  color: #4cd964;
  background: rgba(8, 34, 18, 0.58);
}

.home-view .billiards-cabana-alert {
  display: none !important;
}
.billiards-cabana-alert {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(110, 18, 22, 0.92);
  border: 1px solid #ff5a5f;
  color: #ffe3e3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Winner-stays queue beside the table, including spectator mode. */
#poolKingPanel{position:fixed;right:12px;top:90px;width:250px;max-height:calc(100dvh - 175px);overflow:auto;z-index:45;padding:18px;background:rgba(16,35,30,.58);border:1px solid #547d6680;border-radius:14px;box-shadow:0 12px 32px #0007;font-size:14px;line-height:1.5}
#poolKingPanel[hidden]{display:none}
#poolKingPanel h2{font-size:20px;color:#b6e4c9;margin:0 0 8px}
#poolKingPanel h3{font-size:15px;margin-bottom:8px}
#poolKingPanel p{margin:8px 0;color:#b8c9bf}
#poolKingPanel .king-playing{font-size:16px;font-weight:700;color:#fff;padding:10px 0;border-block:1px solid #365444;overflow-wrap:anywhere}
#poolKingPanel ol{padding-left:24px}#poolKingPanel li{padding:5px;overflow-wrap:anywhere}
#poolKingPanel .king-result{color:#f3d38c}
#poolKingPanel button{background:#294c3c;border:1px solid #567f67;border-radius:8px;padding:10px;width:100%}
.king-view .layout{margin-right:0}.king-view .pool-live-log{display:none}
@media(max-width:760px){#poolKingPanel{top:100px;bottom:auto;right:8px;width:min(210px,55vw);max-height:35dvh;border-radius:12px;padding:10px 12px}.king-view.classic-view .layout{margin-right:0;height:100dvh}#poolKingPanel h2{font-size:17px}#poolKingPanel p{margin:4px 0}}

@media(max-width:760px){.king-view .pool-scoreboard{gap:6px}.king-view .score-center{display:none}.king-view .score-player{min-width:0;gap:6px;flex:1}.king-view .score-info{min-width:0}.king-view .score-name{overflow:hidden;text-overflow:ellipsis;max-width:100px}.king-view .score-balls{flex-wrap:wrap}.king-view .score-group-badge{font-size:8px}}

/* Table conversation shares the translucent queue panel without resizing play. */
#poolKingPanel{width:280px;padding:16px;max-height:calc(100dvh - 180px);scrollbar-width:thin}
#poolKingPanel>button{margin-top:8px;font-size:13px}
.pool-table-chat{border-top:1px solid #72978055;margin-top:16px;padding-top:4px}
.pool-chat-messages{height:145px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}
#poolKingPanel .pool-chat-messages p{font-size:13px;line-height:1.5;margin:7px 0;color:#edf4ee}
.pool-chat-messages strong{color:#b6e4c9;font-weight:600}
.pool-chat-compose{display:flex;gap:6px;margin-top:10px}
.pool-chat-compose input{min-width:0;width:100%;border:1px solid #728f7a88;border-radius:7px;padding:9px;background:#091812b3;color:#fff;font-size:13px}
#poolKingPanel .pool-chat-compose button{width:auto;padding:8px;font-size:12px}
#poolKingPanel .pool-chat-status{font-size:12px;color:#efc59c;margin:4px 0}
#poolAccountDialog{width:min(760px,94vw);max-height:88dvh;overflow:auto;background:#10221e;color:#eff5ed;border:1px solid #547d66;border-radius:16px;padding:28px}
#poolAccountDialog p{font-size:14px;line-height:1.6;color:#b8c9bf}
#poolAccountDialog .pool-points{color:#e7bf65;font-size:16px}.pool-points strong{font-size:32px;margin-right:6px}
#poolAccountDialog h3{margin-top:26px}#poolAccountDialog .pool-account-note{font-size:12px;color:#9eb6a9}
#poolProfileForm label{display:grid;gap:5px;margin:12px 0;font-size:14px}
#poolProfileForm input{width:100%;background:#081813;border:1px solid #52685a;border-radius:7px;color:#fff;padding:10px}
#poolProfileForm button{padding:12px 18px;border-radius:8px;background:#b6e4c9;color:#13271f;font-weight:650}
.pool-cue-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.pool-cue-card{overflow:hidden;padding:16px;border-radius:12px;border:1px solid #476858;background:linear-gradient(140deg,#203a30,#0a1513)}
.pool-cue-card h4{font-size:18px;margin:18px 0 5px}#poolAccountDialog .pool-cue-card p{font-size:12px;min-height:40px}
.pool-cue-label{font-size:11px;color:#c2d9cb}.pool-cue-preview{height:110px;position:relative;filter:drop-shadow(0 9px 5px #0008)}
.pool-cue-preview:before{content:'';position:absolute;left:calc(50% - 6px);top:-22px;width:12px;height:165px;transform:rotate(38deg);border-radius:3px 3px 6px 6px;background:linear-gradient(to bottom,#8db4ae 0 2%,#e2cea0 2% 47%,var(--cue-accent) 47% 49%,var(--cue-color) 49% 57%,var(--cue-accent) 57% 59%,var(--cue-color) 59% 71%,#192120 71% 89%,var(--cue-accent) 89% 91%,var(--cue-color) 91% 98%,#050908 98%);box-shadow:inset 3px 0 3px #ffffff55,inset -3px 0 3px #0005;clip-path:polygon(25% 0,75% 0,100% 100%,0 100%)}
@media(max-width:760px){#poolKingPanel{width:min(245px,65vw);max-height:50dvh;padding:10px}.pool-chat-messages{height:100px}#poolKingPanel h3{margin-top:10px}.pool-cue-catalog{grid-template-columns:1fr}.pool-cue-card{display:grid;grid-template-columns:90px 1fr;column-gap:12px}.pool-cue-preview{grid-row:1/4}.pool-cue-card h4{margin:8px 0 0}#poolAccountDialog .pool-cue-card p{min-height:0;margin:5px 0}.pool-cue-label{grid-column:2}}

#poolAccountDialog{max-width:760px}
@media(max-width:760px){#poolKingPanel{max-height:60dvh}#poolKingPanel>p:not(.king-playing):not(.king-result){font-size:12px;margin:4px 0}#poolKingPanel>h2+p{display:none}#poolKingPanel ol{max-height:65px;overflow:auto;margin:5px 0}#poolKingPanel .king-playing{font-size:14px;padding:7px 0}.pool-table-chat{margin-top:10px}.pool-chat-messages{height:85px}}

/* ==========================================================================
   1. UPGRADED LOADING SCREEN (Animated Spinner Above & Below + Larger Text)
   ========================================================================== */
#loading.loading {
  flex-direction: column;
  text-align: center;
  gap: 20px;
  background: radial-gradient(circle at center, #162821 0%, #0b1411 100%);
}
.loader-ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.loader-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(182, 228, 201, 0.16);
  border-top-color: #b6e4c9;
  border-right-color: #f3c86b;
  animation: poolSpinRing 1s linear infinite;
  box-shadow: 0 0 28px rgba(182, 228, 201, 0.25);
}
#loading .loader-ball {
  width: 66px;
  height: 66px;
  font-size: 32px;
  font-weight: 800;
  border: 2px solid #9ab8a4;
  box-shadow: inset -4px -4px 10px #000, 0 0 24px rgba(182, 228, 201, 0.22);
}
#loading .loading-title {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #f4faf5;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
#loading .loading-title span {
  display: block;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
  color: #b6e4c9;
  margin-top: 10px;
  letter-spacing: 0.2px;
}
.loader-bottom-spinner {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(16, 35, 27, 0.85);
  border: 1px solid rgba(182, 228, 201, 0.35);
  color: #dceee2;
  font-size: 13px;
  font-weight: 600;
}
.loader-bottom-spinner i {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(182, 228, 201, 0.22);
  border-top-color: #b6e4c9;
  animation: poolSpinRing 0.8s linear infinite;
}
@keyframes poolSpinRing {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   2. INTEGRATED ONLINE SIDEBAR (Left 43%) & BAR HALL / MERCADO (Right 57%)
   ========================================================================== */
.home-view .home-menu {
  overflow-y: auto;
  justify-content: flex-start;
  padding: clamp(22px, 3.2vw, 44px) clamp(20px, 3.6vw, 48px);
}
.home-local-panel {
  my: auto;
  margin-top: auto;
  margin-bottom: auto;
}
.home-online-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: auto 0;
}
.online-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.online-back-btn {
  padding: 6px 12px;
  border-radius: 7px;
  background: #172e2b;
  border: 1px solid #486b62;
  color: #cfe5dc;
  font-size: 11.5px;
  font-weight: 700;
}
.online-back-btn:hover {
  background: #22443f;
  border-color: #b6e4c9;
}

/* Account Card at top of Online Sidebar */
.online-account-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 16px;
  border-radius: 13px;
  background: linear-gradient(145deg, #152b2a 0%, #0e1d1e 100%);
  border: 1px solid #4d7368;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.online-acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.online-acc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #275042, #152c25);
  border: 2px solid #b6e4c9;
  color: #eef7f1;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.online-acc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.online-acc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.online-acc-name-row strong {
  font-size: 17px;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.online-acc-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #283f3a;
  color: #b8d4c8;
  border: 1px solid #4c6d63;
}
.online-acc-badge.verified {
  background: #1c4731;
  color: #8df0b5;
  border-color: #4bb578;
}
.online-acc-rank {
  font-size: 12px;
  color: #f3c86b;
  font-weight: 700;
}
.online-mini-btn {
  padding: 6px 10px;
  border-radius: 7px;
  background: #1d3330;
  border: 1px solid #49665f;
  color: #c9ddd5;
  font-size: 11px;
  font-weight: 600;
}
.online-mini-btn:hover {
  border-color: #ff8787;
  color: #ffd4d4;
}

.online-xp-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.online-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #b6e4c9;
}
.online-xp-track {
  height: 7px;
  border-radius: 999px;
  background: #0a1514;
  border: 1px solid #2f4b44;
  overflow: hidden;
}
.online-xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #52c288, #f3c86b);
  transition: width 0.35s ease;
}

.online-acc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-top: 4px;
}
.online-acc-stats > div {
  background: rgba(10, 21, 21, 0.72);
  border: 1px solid #2c4641;
  border-radius: 8px;
  padding: 7px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.online-acc-stats small {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #88a49c;
}
.online-acc-stats strong {
  font-size: 15px;
  font-weight: 800;
  color: #eef5f0;
}
.online-acc-stats strong.gold {
  color: #f3c86b;
}
.online-acc-cue-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #26403c;
  font-size: 11.5px;
  color: #adc5bd;
}
.online-acc-cue-bar strong {
  color: #e6f4ec;
}
.online-link-btn {
  font-size: 11px;
  font-weight: 700;
  color: #f3c86b;
  padding: 0;
}
.online-link-btn:hover {
  text-decoration: underline;
}

/* Online Mode Buttons in Left Sidebar */
.online-mode-buttons {
  gap: 10px;
}
.online-mode-buttons button {
  padding: 15px 15px;
}
.online-mode-buttons button.active {
  border-color: #b6e4c9;
  background: linear-gradient(135deg, #1f443d 0%, #152f2c 100%);
  box-shadow: 0 0 0 1px #b6e4c966, 0 8px 22px rgba(0, 0, 0, 0.4);
}
.online-mode-buttons button.ranked-highlight {
  border-color: rgba(243, 200, 107, 0.5);
}
.online-mode-buttons button.ranked-highlight.active,
.online-mode-buttons button.ranked-highlight:hover {
  border-color: #f3c86b;
  background: linear-gradient(135deg, #352815 0%, #192d29 100%);
}
.online-mode-buttons button.king-highlight {
  border-color: rgba(123, 228, 149, 0.5);
}
.online-mode-buttons button.market-highlight {
  border-color: rgba(109, 213, 250, 0.45);
}
.online-sidebar-status {
  margin: 2px 0 0;
  font-size: 12px;
  color: #f3c86b;
  min-height: 18px;
}

/* Right Stage (Occupies the right 57% over the table preview in Home View) */
.online-right-stage {
  position: absolute;
  left: 43%;
  top: 0;
  width: 57%;
  height: 100dvh;
  z-index: 28;
  background: linear-gradient(160deg, rgba(12, 23, 22, 0.88) 0%, rgba(9, 17, 16, 0.94) 100%);
  backdrop-filter: blur(8px);
  border-left: 1px solid #2b443e;
  padding: clamp(20px, 2.6vw, 36px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
body:not(.home-view) .online-right-stage {
  display: none !important;
}
.online-stage-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.online-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid #29423b;
}
.online-stage-header h2 {
  margin: 5px 0 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #f4faf6;
}
.online-stage-header p {
  margin: 0;
  font-size: 13px;
  color: #a7c0b6;
  max-width: 540px;
  line-height: 1.45;
}
.online-stage-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.online-filter-pills {
  display: inline-flex;
  background: #0d1a18;
  border: 1px solid #335047;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}
.online-filter-pills button {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #9bb5aa;
}
.online-filter-pills button.active {
  background: #b6e4c9;
  color: #0e2219;
}
.online-create-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-action-btn {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #4e7364;
  background: #1a352c;
  color: #e9f5ee;
  transition: transform 0.12s, filter 0.12s;
}
.stage-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.stage-action-btn.primary {
  background: #b6e4c9;
  border-color: #b6e4c9;
  color: #10241b;
}
.stage-action-btn.billar {
  background: linear-gradient(135deg, #6e1d22, #431215);
  border-color: #d65b60;
  color: #ffecec;
}

/* Active Invitation / Waiting Banner */
.online-active-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 68, 52, 0.92), rgba(16, 40, 32, 0.95));
  border: 1px solid #7be495;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.active-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.active-banner-text strong {
  font-size: 14.5px;
  color: #ffffff;
}
.active-banner-text span {
  font-size: 12px;
  color: #c2dfd0;
}
.active-banner-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.banner-btn {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.banner-btn.accept {
  background: #7be495;
  color: #0b2414;
}
.banner-btn.practice {
  background: #f3c86b;
  color: #201603;
}
.banner-btn.reject {
  background: #3d1e20;
  border: 1px solid #9e474b;
  color: #ffd6d6;
}

/* Visual Bar Tables Grid */
.online-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.bar-table-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(17, 32, 28, 0.9);
  border: 1px solid #365349;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.bar-table-card:hover {
  border-color: #7be495;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.45), 0 12px 28px rgba(0, 0, 0, 0.55);
}
.bar-table-card.live {
  border-color: #e0565b;
  background: linear-gradient(160deg, rgba(42, 20, 24, 0.92), rgba(17, 31, 27, 0.94));
}
.bar-table-card.waiting {
  border-color: #f3c86b;
  background: linear-gradient(160deg, rgba(44, 36, 18, 0.9), rgba(17, 31, 27, 0.94));
}
.bar-table-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.bar-table-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1f362f;
  color: #b7d1c6;
}
.bar-table-status.live {
  background: #5c191d;
  color: #ffb8bb;
  border: 1px solid #d94b52;
}
.bar-table-status.waiting {
  background: #4d3b14;
  color: #ffe299;
  border: 1px solid #cfa244;
}
.bar-table-mode {
  font-size: 10.5px;
  font-weight: 800;
  color: #d6eae0;
}
.pool-table-mini.billar-mini {
  background: radial-gradient(ellipse at center, #1e7c5a, #0e4732);
  border-color: #5c331c;
}
.pool-table-mini.billar-mini:after {
  box-shadow: 34px -8px 0 #c91e25, 44px 3px 0 #c91e25, 34px 12px 0 #c91e25;
}
.pool-table-mini.live-mini {
  box-shadow: 0 0 18px rgba(243, 200, 107, 0.32), 0 6px 12px #0006;
}
.bar-table-card h4 {
  margin: 2px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
}
.bar-table-card p {
  margin: 0;
  font-size: 11.5px;
  color: #9eb8ae;
  line-height: 1.4;
  min-height: 32px;
}
.bar-table-btn-row {
  width: 100%;
  display: flex;
  gap: 6px;
}
.bar-table-btn {
  width: 100%;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #486b5e;
  background: #1b362e;
  color: #e6f4ec;
}
.bar-table-btn.sit:hover:not(:disabled) {
  background: #b6e4c9;
  border-color: #b6e4c9;
  color: #0e2319;
}
.bar-table-btn.join {
  background: #f3c86b;
  border-color: #f3c86b;
  color: #1f1603;
}
.bar-table-btn.watch {
  background: #24463b;
  border-color: #7be495;
  color: #d6fbe0;
}
.bar-table-btn.leave {
  background: #3b1d20;
  border-color: #8f4247;
  color: #ffd4d6;
}

/* Bar Chalkboard / Winners Table in Online Stage */
.online-winners-board {
  margin-top: 6px;
  padding: 15px 18px;
  border-radius: 13px;
  background: linear-gradient(180deg, #11221c 0%, #0b1612 100%);
  border: 2px solid #96783e;
  box-shadow: inset 0 0 0 1px rgba(182, 228, 201, 0.18), 0 10px 26px rgba(0, 0, 0, 0.45);
}
.winners-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3b5c4d;
  margin-bottom: 10px;
}
.winners-board-head span {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #f3c86b;
}
.winners-board-head small {
  font-size: 11px;
  color: #8fb0a0;
}
.winners-board-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.winner-board-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(20, 40, 33, 0.6);
  font-size: 12.5px;
}
.winner-rank {
  font-weight: 800;
  color: #ffd700;
}
.winner-name {
  color: #ffffff;
}
.winner-mode {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1b362c;
  color: #b6e4c9;
}
.winner-wins {
  font-weight: 800;
  color: #f3c86b;
}

/* Mercado de Tacos View */
.market-points-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #332711, #1c180c);
  border: 1px solid #d4a849;
}
.market-points-pill span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e6c67c;
}
.market-points-pill strong {
  font-size: 22px;
  font-weight: 900;
  color: #ffd978;
}
.online-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}
.market-cue-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #192f29 0%, #0d1917 100%);
  border: 1px solid #3c5d51;
  gap: 10px;
}
.market-cue-card.equipped {
  border-color: #7be495;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.35), 0 10px 26px rgba(0, 0, 0, 0.45);
}
.market-cue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.market-cue-tier {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #243c35;
  color: #c2ddd2;
}
.market-cue-price {
  font-size: 11px;
  font-weight: 800;
  color: #f3c86b;
}
.market-cue-card h4 {
  margin: 4px 0 0;
  font-size: 16.5px;
  color: #ffffff;
}
.market-cue-card p {
  margin: 0;
  font-size: 12px;
  color: #9fb8ae;
  line-height: 1.45;
  min-height: 34px;
}
.market-cue-btn {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: #234238;
  border: 1px solid #537c6d;
  color: #eaf6ef;
}
.market-cue-btn.buy {
  background: linear-gradient(135deg, #f3c86b, #d89b32);
  border-color: #f3c86b;
  color: #1f1503;
}
.market-cue-btn.equip {
  background: #b6e4c9;
  border-color: #b6e4c9;
  color: #10241b;
}
.market-cue-btn.active {
  background: #193829;
  border-color: #4ea874;
  color: #8df0b5;
}
.online-guest-upgrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 13px;
  background: rgba(20, 40, 35, 0.88);
  border: 1px solid #527a6b;
}
.online-guest-upgrade h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #ffffff;
}
.online-guest-upgrade p {
  margin: 0;
  font-size: 12px;
  color: #a9c3b8;
  max-width: 560px;
}

@media (max-width: 900px) {
  .home-view.online-hub-open .home-menu {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 20px 5vw;
  }
  .home-view.online-hub-open .online-right-stage {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 60dvh;
    border-left: 0;
    border-top: 1px solid #2b443e;
  }
  .home-view.online-hub-open {
    overflow-y: auto;
  }
}

/* ==========================================================================
   3. LIVE TRAFFIC PILL & REAL-TIME VISITORS / CONNECTED USERS MODAL
   ========================================================================== */
.live-traffic-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.live-traffic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 37, 30, 0.9);
  border: 1px solid #48755e;
  color: #d8efe2;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.live-traffic-pill:hover {
  border-color: #7be495;
  background: rgba(24, 54, 43, 0.95);
  transform: translateY(-1px);
}
.live-traffic-pill.compact {
  padding: 4px 10px;
  font-size: 11px;
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 10px #4cd964;
  animation: liveDotPulse 1.6s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.65; }
}
.live-traffic-pill strong {
  color: #8df0b5;
  font-weight: 800;
}
.live-sep {
  color: #6b8e7b;
}
.live-info-icon {
  font-style: normal;
  font-size: 13px;
  margin-left: 2px;
}

.traffic-stats-dialog {
  max-width: 580px;
  width: min(580px, 94vw);
  border: 1px solid #527e68;
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(155deg, #132821 0%, #0b1714 100%);
  color: #eef6f0;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.85);
}
.traffic-stats-dialog h2 {
  margin: 6px 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}
.traffic-sub {
  margin: 0 0 18px !important;
  font-size: 12.5px !important;
  color: #9bb8aa !important;
}
.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.traffic-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 29, 24, 0.85);
  border: 1px solid #315043;
}
.traffic-kpi-card.highlight {
  border-color: #5bc486;
  background: linear-gradient(135deg, rgba(24, 62, 44, 0.85), rgba(13, 31, 24, 0.9));
}
.traffic-kpi-card.gold {
  border-color: #c89d4c;
  background: linear-gradient(135deg, rgba(56, 43, 18, 0.78), rgba(16, 29, 24, 0.9));
}
.kpi-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a6c4b5;
}
.traffic-kpi-card strong {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}
.traffic-kpi-card.highlight strong {
  color: #8df0b5;
}
.traffic-kpi-card.gold strong {
  color: #f3c86b;
}
.traffic-kpi-card small {
  font-size: 11px;
  color: #8fb0a0;
}
.traffic-sections-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 22, 19, 0.85);
  border: 1px solid #2c473c;
}
.traffic-sections-box h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #cfe6da;
}
.traffic-section-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.traffic-sec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(21, 41, 34, 0.65);
}
.traffic-sec-row strong {
  color: #b6e4c9;
}
.traffic-aliases-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #294238;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #9fbcae;
}
.traffic-aliases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.traffic-alias-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #1a362b;
  border: 1px solid #45705c;
  color: #e3f5eb;
  font-size: 11.5px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .traffic-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. REAL POOL FEATURED ONLINE BUTTON, LOL RANKED LP, & CUSTOM CUE MARKET
   ========================================================================== */
.home-options button.online-featured-btn {
  border: 2px solid #7be495;
  background: linear-gradient(135deg, #163d2f 0%, #102b28 55%, #1d3623 100%);
  box-shadow: 0 0 24px rgba(123, 228, 149, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.home-options button.online-featured-btn:hover:not(:disabled) {
  border-color: #f3c86b;
  background: linear-gradient(135deg, #1f543f 0%, #163a35 55%, #2c4727 100%);
  box-shadow: 0 0 32px rgba(243, 200, 107, 0.32);
  transform: translateY(-2px);
}
.home-options button.online-featured-btn b {
  color: #7be495;
  font-weight: 900;
}
.online-live-tag {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c86b, #e69c24);
  color: #1c1202;
  vertical-align: middle;
  box-shadow: 0 2px 10px rgba(243, 200, 107, 0.4);
}

/* Dual Bars in Account Card: LoL Ranked LP + Level EXP */
.online-bars-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(9, 19, 18, 0.68);
  border: 1px solid #28423c;
}
.ranked-lp-bar .online-xp-labels {
  color: #f3c86b;
}
.lp-track {
  border-color: #6b5322;
  background: #141006;
}
.lp-fill {
  background: linear-gradient(90deg, #d89b32, #ffd700, #fff2a6);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

/* El Que Gana Sigue dynamic EXP pill */
.king-exp-pill {
  display: inline-block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #233b32;
  color: #b8d8c8;
  border: 1px solid #456b5c;
  vertical-align: middle;
}
.king-exp-pill.low {
  background: #2b261e;
  color: #d6c3a5;
  border-color: #6e5d43;
}
.king-exp-pill.normal {
  background: #19422c;
  color: #8df0b5;
  border-color: #46a871;
}
.king-exp-pill.double {
  background: linear-gradient(135deg, #f3c86b, #ff9f1c);
  color: #1c1002;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

/* Custom Realistic Multi-Part Cue Stick Showcase & Hover Spec Overlay */
.market-cue-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.market-cue-card:hover {
  border-color: #f3c86b;
  box-shadow: 0 0 0 1px rgba(243, 200, 107, 0.45), 0 14px 34px rgba(0, 0, 0, 0.6);
}
.market-cue-card.locked {
  opacity: 0.88;
  border-color: #364540;
}
.market-cue-tier.tier-especial {
  background: #164939;
  color: #8df0b5;
  border: 1px solid #399675;
}
.market-cue-tier.tier-pico,
.market-cue-tier.tier-epico {
  background: #3b1e54;
  color: #e0b8ff;
  border: 1px solid #8a4ec2;
}
.market-cue-tier.tier-legendario {
  background: #4f2b10;
  color: #ffd280;
  border: 1px solid #d68b2c;
}
.market-cue-tier.tier-m-tico-ranked,
.market-cue-tier.tier-mitico-ranked {
  background: linear-gradient(135deg, #591626, #32164f);
  color: #ffe699;
  border: 1px solid #ffd700;
}

.real-cue-showcase {
  height: 76px;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #162c25 0%, #0a1412 100%);
  border: 1px solid #284239;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 12px 6px;
  position: relative;
  gap: 8px;
}
.cue-stick-3d {
  width: 100%;
  height: 15px;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.75));
}
.cue-stick-3d > span {
  display: block;
  position: relative;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.38), inset 0 -3px 3px rgba(0, 0, 0, 0.65);
}
.cue-bumper {
  width: 3.5%;
  height: 15px;
  background: #111315;
  border-radius: 5px 0 0 5px;
}
.cue-butt {
  width: 15%;
  height: 14.5px;
  background: linear-gradient(90deg, var(--cue-color), color-mix(in srgb, var(--cue-color) 75%, #000));
  overflow: hidden;
}
.cue-butt i {
  position: absolute;
  inset: 3px 22%;
  border: 1px solid var(--cue-accent);
  transform: skewX(-24deg);
  opacity: 0.85;
}
.cue-ring {
  width: 2%;
  height: 14px;
  background: linear-gradient(180deg, #fff, var(--cue-accent), #6e5520);
}
.cue-grip {
  width: 22%;
  height: 13.5px;
  background: repeating-linear-gradient(
    90deg,
    var(--cue-wrap, #1d150e) 0px,
    var(--cue-wrap, #1d150e) 3px,
    color-mix(in srgb, var(--cue-wrap, #1d150e) 75%, #fff) 4px
  );
}
.cue-forearm {
  width: 19%;
  height: 12.5px;
  background: var(--cue-color);
  overflow: hidden;
}
.cue-forearm i {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 75%;
  background: var(--cue-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.9;
}
.cue-joint {
  width: 3%;
  height: 11.5px;
  background: linear-gradient(180deg, #fff, var(--cue-accent), #555);
}
.cue-shaft {
  width: 31%;
  height: 9.5px;
  background: linear-gradient(90deg, var(--cue-shaft, #ebd7b2), color-mix(in srgb, var(--cue-shaft, #ebd7b2) 90%, #fff));
  clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
}
.cue-ferrule {
  width: 2.5%;
  height: 7.5px;
  background: #f8fafc;
}
.cue-tip {
  width: 2%;
  height: 7.5px;
  background: var(--cue-tip, #3b82f6);
  border-radius: 0 4px 4px 0;
}
.cue-hover-hint {
  font-size: 9.5px;
  color: #82a395;
  letter-spacing: 0.3px;
}

/* Compact 4 Stat Bars */
.cue-stats-compact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(9, 18, 16, 0.72);
  border: 1px solid #243c34;
}
.cue-stat-row {
  display: grid;
  grid-template-columns: 98px 1fr 24px;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #bdd4c9;
}
.cue-stat-bar {
  height: 6px;
  border-radius: 999px;
  background: #142620;
  overflow: hidden;
}
.cue-stat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f39c12, #f3c86b);
}
.cue-stat-bar.spin i {
  background: linear-gradient(90deg, #2ecc71, #8df0b5);
}
.cue-stat-bar.ctrl i {
  background: linear-gradient(90deg, #3498db, #7ee8fa);
}
.cue-stat-bar.prec i {
  background: linear-gradient(90deg, #9b59b6, #e0b8ff);
}
.cue-stat-row strong {
  text-align: right;
  font-size: 10.5px;
  color: #eef7f2;
}

/* Hover Technical Details Overlay on Cue Cards */
.cue-hover-details {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 56px;
  padding: 12px 13px;
  border-radius: 11px;
  background: rgba(11, 23, 20, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid #f3c86b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #dceee4;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}
.market-cue-card:hover .cue-hover-details,
.market-cue-card:focus-within .cue-hover-details {
  opacity: 1;
  transform: translateY(0);
}
.chd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2b473d;
  padding-bottom: 5px;
}
.chd-head strong {
  color: #f3c86b;
  font-size: 12.5px;
}
.chd-head span {
  font-size: 10px;
  color: #9ec2b2;
}
.chd-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #b9d4c7;
}
.chd-special {
  color: #8df0b5;
  line-height: 1.35;
}
.chd-limit {
  color: #7ee8fa;
}
.chd-req {
  color: #f3c86b;
  font-size: 10.5px;
}

/* Spin Over-Limit Indicator */
.spin-dot.spin-over-limit {
  background: #ff3b30;
  box-shadow: 0 0 0 2px #ffe5e5, 0 0 12px #ff3b30;
}

.online-modality-switch {
  margin-bottom: 2px;
}
.billar-xp-tag {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  margin-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c86b, #e67e22);
  color: #1c1002;
  vertical-align: middle;
}
.online-acc-subrank {
  font-size: 11px;
  color: #9bb8ac;
  font-weight: 600;
}

/* ==========================================================================
   5. TABLA DE RANGOS BUTTONS & MODAL (LoL Ranked Tiers & Divisions)
   ========================================================================== */
.home-bottom-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.home-bottom-links .text-button {
  margin-top: 0;
}
.online-acc-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranks-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2d2210, #1a2d27);
  border: 1px solid #d4a849;
  color: #ffe299;
  font-size: 11.5px;
  font-weight: 800;
  transition: transform 0.14s, filter 0.14s;
}
.ranks-trigger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.ranks-trigger-btn.compact {
  padding: 4px 9px;
  font-size: 10.5px;
}
.stage-action-btn.ranks-btn {
  background: linear-gradient(135deg, #332610, #1b2f28);
  border-color: #d4a849;
  color: #ffe299;
}

.ranks-table-dialog {
  max-width: 820px;
  width: min(820px, 95vw);
  max-height: 88dvh;
  overflow-y: auto;
  border: 1px solid #8a703b;
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(160deg, #132520 0%, #0b1412 100%);
  color: #eef6f0;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.88);
}
.ranks-table-dialog h2 {
  margin: 6px 0 8px;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
}
.ranks-intro {
  margin: 0 0 16px !important;
  font-size: 13px !important;
  color: #b4cec2 !important;
  line-height: 1.5 !important;
}
.ranks-rules-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.ranks-rule-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(15, 31, 26, 0.85);
  border: 1px solid #35584a;
}
.ranks-rule-card.billar {
  border-color: #9e474b;
  background: linear-gradient(135deg, rgba(52, 20, 23, 0.8), rgba(16, 30, 25, 0.9));
}
.ranks-rule-card strong {
  font-size: 13px;
  color: #f3c86b;
}
.ranks-rule-card span {
  font-size: 11.5px;
  color: #cfe4d8;
}

.ranks-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #2b463c;
  background: rgba(9, 18, 16, 0.82);
}
.ranks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.ranks-table th {
  padding: 11px 12px;
  background: #142a23;
  color: #9dc2b2;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid #2b463c;
}
.ranks-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(43, 70, 60, 0.55);
  vertical-align: middle;
}
.ranks-table tr:last-child td {
  border-bottom: 0;
}
.ranks-table tr.current-user-rank {
  background: rgba(243, 200, 107, 0.12);
}
.rank-tier-name {
  font-size: 13.5px;
  white-space: nowrap;
}
.rank-divs-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #182e27;
  border: 1px solid #315246;
  color: #c6ded3;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.rank-lp-range {
  font-weight: 700;
  color: #f3c86b;
  white-space: nowrap;
}
.rank-reward-cell {
  color: #c2dbd0;
  line-height: 1.35;
}
.my-rank-pill {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.my-rank-pill.pool {
  background: #194532;
  border: 1px solid #5bc486;
  color: #8df0b5;
}
.my-rank-pill.billar {
  background: #521a1e;
  border: 1px solid #e0565b;
  color: #ffc2c4;
}
.rank-empty-dash {
  color: #526e62;
}
@media (max-width: 680px) {
  .ranks-rules-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE & LANDSCAPE PHONE COMPACT ADAPTATION (Android App + Celulares)
   ========================================================================== */
canvas {
  touch-action: none;
}

/* ==========================================================================
   PRO REAL POOL AUTH DIALOG (Guest / Login / Official Account + Google)
   ========================================================================== */
.online-auth-backdrop {
  position: fixed;
  left: 43%;
  top: 0;
  width: 57%;
  height: 100dvh;
  z-index: 35;
  background: rgba(5, 12, 10, 0.72);
  backdrop-filter: blur(5px);
  border-left: 1px solid rgba(73, 117, 99, 0.35);
  transition: opacity 0.2s ease;
}
body:not(.home-view) .online-auth-backdrop {
  display: none !important;
}
#onlineDialog.realpool-auth-dialog {
  position: fixed;
  left: calc(43vw + (57vw - min(470px, 51vw)) / 2);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 36;
  width: min(470px, 51vw);
  max-height: 92dvh;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(19, 40, 34, 0.96) 0%, rgba(11, 22, 20, 0.98) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid #497563;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(182, 228, 201, 0.16);
  color: #eef7f2;
}
#onlineDialog.realpool-auth-dialog::backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
}
body:not(.home-view) #onlineDialog.realpool-auth-dialog {
  display: none !important;
}
@media (max-width: 760px) {
  .online-auth-backdrop {
    left: 0;
    width: 100%;
  }
  #onlineDialog.realpool-auth-dialog {
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, 92vw);
  }
}
@media (max-height: 560px), (pointer: coarse) and (max-width: 980px) {
  .online-auth-backdrop {
    left: min(325px, 46vw);
    width: calc(100% - min(325px, 46vw));
  }
  #onlineDialog.realpool-auth-dialog {
    left: calc(min(325px, 46vw) + (100vw - min(325px, 46vw) - min(430px, 50vw)) / 2);
    top: 50%;
    transform: translateY(-50%);
    width: min(430px, 50vw);
    max-height: 94dvh;
    padding: 12px 14px;
  }
}
.rp-auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.rp-auth-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 30%, #2b3530, #070b09 75%);
  border: 2px solid #f3c86b;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.rp-auth-brand h2 {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
}
.rp-auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: #0c1815;
  border: 1px solid #2d4b40;
  border-radius: 11px;
  margin-bottom: 12px;
}
.rp-auth-tab {
  padding: 8px 6px !important;
  margin: 0 !important;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #9ab5a9;
  background: transparent;
  transition: all 0.15s;
  text-align: center;
}
.rp-auth-tab.active {
  background: linear-gradient(135deg, #234b3c, #18352a);
  color: #ffffff;
  border: 1px solid #67a889;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.rp-google-section {
  margin-bottom: 10px;
}
.rp-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-radius: 10px;
  background: #ffffff !important;
  color: #1a1f1c !important;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #d8e2dc !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s, box-shadow 0.12s;
}
.rp-google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.rp-google-box {
  margin-top: 8px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(20, 42, 35, 0.92);
  border: 1px solid #598c75;
}
.rp-google-box p {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #c7e0d4;
}
.rp-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
  color: #779688;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.rp-auth-divider::before,
.rp-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #284239;
}
.rp-auth-info-banner {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(27, 56, 46, 0.65);
  border-left: 3px solid #f3c86b;
  font-size: 11.5px;
  line-height: 1.42;
  color: #cde2d7;
  margin-bottom: 10px;
}
.rp-auth-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rp-field-full {
  grid-column: 1 / -1;
}
#onlineDialog .rp-field,
#onlineDialog .rp-google-box label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 !important;
  font-size: 11px;
  font-weight: 700;
  color: #b5cfc2;
}
#onlineDialog .rp-field input,
#onlineDialog .rp-google-box input {
  margin: 0 !important;
  padding: 9px 11px !important;
  border-radius: 8px !important;
  background: #0d1b17 !important;
  border: 1px solid #3f6355 !important;
  color: #ffffff !important;
  font-size: 13px;
}
#onlineDialog .rp-field input:focus,
#onlineDialog .rp-google-box input:focus {
  border-color: #7be495 !important;
  outline: none;
}
.rp-auth-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rp-auth-submit {
  width: 100%;
  padding: 11px 16px !important;
  margin: 0 !important;
  border-radius: 10px;
  background: linear-gradient(135deg, #7be495, #45b96b) !important;
  color: #091d12 !important;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(74, 194, 112, 0.3);
}
.rp-auth-submit.google-go {
  margin-top: 8px !important;
  background: linear-gradient(135deg, #f3c86b, #d89b32) !important;
  color: #1d1302 !important;
}
.rp-auth-status {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #ff9b9b;
  text-align: center;
  min-height: 16px;
}
.ranked-guest-lock-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(48, 35, 14, 0.92), rgba(22, 36, 30, 0.95));
  border: 1px solid #f3c86b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ranked-guest-lock-card h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: #ffd700;
}
.ranked-guest-lock-card p {
  margin: 0;
  font-size: 12px;
  color: #d6e6dd;
  max-width: 540px;
}
.ranked-guest-lock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ranked-lock-btn {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #f3c86b, #d99b2e);
  color: #1b1203;
  border: 1px solid #ffd884;
}
.ranked-lock-btn.google {
  background: #ffffff;
  color: #161d1a;
  border-color: #ffffff;
}

/* ==========================================================================
   VIP CHALLENGES & MERCADO PAGO WALLET DIALOG
   ========================================================================== */
.vip-money-highlight {
  border-color: #e6b44c !important;
  background: linear-gradient(135deg, #2b210d 0%, #15241e 100%) !important;
}
.vip-money-highlight:hover:not(:disabled),
.vip-money-highlight.active {
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
}
.vip-gold {
  color: #ffd700 !important;
}
.vip-wallet-dialog {
  width: min(560px, 95vw) !important;
}
.vip-balance-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c210b, #172c23);
  border: 1px solid #f3c86b;
  margin-bottom: 12px;
}
.vip-balance-banner small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: #d7c393;
  font-weight: 800;
}
.vip-balance-banner strong {
  font-size: 20px;
  color: #ffd700;
  font-weight: 900;
}
.vip-rate-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 200, 107, 0.16);
  border: 1px solid #f3c86b;
  color: #ffe299;
  font-size: 11px;
  font-weight: 800;
}
.vip-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #c9dfd4;
  line-height: 1.45;
}
.vip-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.vip-pack-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 12px;
  border-radius: 12px;
  background: #10211c;
  border: 1px solid #3c6152;
  text-align: center;
}
.vip-pack-card.featured {
  background: linear-gradient(155deg, #251f0e, #12261f);
  border-color: #f3c86b;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.vip-pack-tag {
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  background: #233f34;
  color: #b6e4c9;
}
.vip-pack-card.featured .vip-pack-tag {
  background: #f3c86b;
  color: #1c1302;
}
.vip-pack-card h3 {
  margin: 2px 0 0;
  font-size: 16px;
  color: #ffffff;
}
.vip-pack-bonus {
  margin: 0 0 4px;
  font-size: 11px;
  color: #8df0b5;
  font-weight: 700;
}
.vip-legal-foot {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #89a699;
  text-align: center;
}
.vip-checkout-panel {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin: 6px 0 10px;
  border-radius: 13px;
  background: linear-gradient(145deg, #132b23, #0c1a16);
  border: 1px solid #7be495;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.vip-qr-wrap {
  width: 175px;
  height: auto;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.vip-qr-wrap img {
  width: 155px;
  height: 155px;
  display: block;
  border-radius: 6px;
}
.vip-checkout-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vip-live-wait-pill {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(123, 228, 149, 0.16);
  border: 1px solid #7be495;
  color: #98f5b1;
  font-size: 10px;
  font-weight: 800;
}
.vip-checkout-info h4 {
  margin: 2px 0;
  font-size: 15px;
  color: #ffd700;
}
.vip-checkout-info p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.38;
  color: #d2e6dc;
}
.vip-checkout-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vip-checkout-btns a.rp-auth-submit {
  width: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px !important;
  font-size: 12px;
}
@media (max-width: 540px) {
  .vip-checkout-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .vip-live-wait-pill {
    align-self: center;
  }
  .vip-checkout-btns {
    justify-content: center;
  }
}
.vip-stage-controls {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(44, 32, 11, 0.92), rgba(16, 33, 27, 0.95));
  border: 1px solid #e6b44c;
}
.vip-stake-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.vip-stake-pill {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  background: #152922;
  border: 1px solid #486e5e;
  color: #cde3d8;
}
.vip-stake-pill.active {
  background: linear-gradient(135deg, #f3c86b, #d89b32);
  border-color: #ffe094;
  color: #1d1202;
}
.vip-withdraw-history {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 110px;
  overflow-y: auto;
}
.vip-withdraw-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(15, 31, 26, 0.85);
  border: 1px solid #355447;
  font-size: 11px;
  color: #cfe4d9;
}

.surrender-btn {
  background: rgba(180, 48, 48, 0.28) !important;
  border: 1px solid #d96b6b !important;
  color: #ffd6d6 !important;
}
.surrender-btn:hover:not(:disabled) {
  background: rgba(210, 56, 56, 0.48) !important;
  border-color: #ff9494 !important;
}

.help-mobile {
  display: none;
}

/* ==========================================================================
   SERIES (BEST OF 3) & GENERAL MATCH HISTORY SIDE PANEL
   ========================================================================== */
.series-history-panel {
  position: absolute;
  top: 76px;
  left: 16px;
  z-index: 20;
  width: 248px;
  max-height: 44dvh;
  display: flex;
  flex-direction: column;
  background: rgba(13, 25, 21, 0.92);
  border: 1px solid #496e5d;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  color: #e6f2ec;
  font-size: 11.5px;
}
.home-view .series-history-panel {
  display: none !important;
}
.series-history-panel.minimized .series-history-body {
  display: none;
}
.series-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  background: linear-gradient(90deg, #1b382d, #122620);
  border-bottom: 1px solid #355447;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #f3c86b;
}
.series-history-head button {
  padding: 0 5px;
  font-size: 13px;
  font-weight: 800;
  color: #b6e4c9;
}
.series-history-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 11px;
  overflow-y: auto;
}
.series-score-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px;
  background: #142a23;
  border: 1px solid #3b5e4e;
  border-radius: 8px;
}
.series-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.series-score-row .s-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.series-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.series-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #243b33;
  border: 1px solid #597c6d;
}
.series-pip.won {
  background: #7be495;
  border-color: #b6f7c6;
  box-shadow: 0 0 6px rgba(123, 228, 149, 0.7);
}
.series-overall-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  color: #b7d1c5;
}
.series-overall-box strong {
  color: #ffffff;
}
.series-games-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}
.series-game-item {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(18, 36, 30, 0.85);
  border-left: 3px solid #7be495;
  font-size: 10.5px;
  line-height: 1.3;
}
.series-game-item.lost {
  border-left-color: #ff7675;
}
.series-game-item .sg-top {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: #eef7f2;
}
.series-game-item .sg-reason {
  color: #9bb7aa;
  font-size: 9.8px;
  margin-top: 2px;
}
.series-empty-msg {
  color: #829e91;
  font-size: 10.5px;
  font-style: italic;
}

@media (max-height: 560px), (pointer: coarse) and (max-width: 980px) {
  .help-pc {
    display: none !important;
  }
  .help-mobile {
    display: block !important;
  }
  .help-mobile ul {
    margin: 8px 0 12px;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
  }
  .help-mobile li {
    margin: 6px 0;
  }
  .home-view .home-menu {
    width: min(325px, 46vw);
    padding: 12px 14px 14px max(16px, env(safe-area-inset-left));
    gap: 8px;
  }
  .home-view.online-hub-open .home-menu {
    width: min(315px, 42vw);
    padding: 10px 12px 14px max(14px, env(safe-area-inset-left));
  }
  .home-view.online-hub-open .online-right-stage {
    left: min(315px, 42vw);
    width: calc(100% - min(315px, 42vw));
    padding: 12px max(16px, env(safe-area-inset-right)) 16px 14px;
    gap: 12px;
  }
  .live-traffic-bar {
    margin-bottom: 2px;
  }
  .live-traffic-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .home-kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
  }
  .home-local-panel h1 {
    font-size: 26px;
    margin: 0 0 4px;
  }
  .home-local-panel > p {
    font-size: 11px;
    line-height: 1.3;
    margin: 0 0 8px;
  }
  .mode-switch {
    margin-bottom: 8px;
    padding: 3px;
  }
  .mode-switch button {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .home-options {
    gap: 6px;
  }
  .home-options button {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 9px;
  }
  .home-options button b {
    font-size: 11px;
  }
  .home-options button span {
    font-size: 12.5px;
  }
  .home-options button small {
    font-size: 10px;
    line-height: 1.25;
  }
  .online-live-tag {
    font-size: 8.5px;
    padding: 1px 5px;
  }
  .home-online-sidebar {
    gap: 8px;
    margin: 0;
  }
  .online-account-card {
    padding: 10px 11px;
    gap: 8px;
    border-radius: 10px;
  }
  .online-acc-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .online-acc-name-row strong {
    font-size: 13.5px;
  }
  .online-acc-rank {
    font-size: 10.5px;
  }
  .online-mini-btn, .online-back-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
  .online-stats-row {
    gap: 6px;
  }
  .online-stat-box {
    padding: 6px 4px;
  }
  .online-stat-box span {
    font-size: 8.5px;
  }
  .online-stat-box strong {
    font-size: 12.5px;
  }
  .online-mode-tabs {
    gap: 5px;
  }
  .online-mode-tabs button {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .lobby-stage-head h2 {
    font-size: 16px;
    margin: 2px 0;
  }
  .lobby-stage-head p {
    font-size: 11px;
    margin: 0 0 8px;
  }
  .lobby-stage-actions {
    gap: 6px;
  }
  .lobby-stage-actions button, .online-primary-btn {
    padding: 7px 11px;
    font-size: 11.5px;
  }
  .bar-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 10px;
  }
  .bar-table-card {
    padding: 10px;
    gap: 6px;
    border-radius: 10px;
  }
  .bar-table-svg {
    height: 70px;
  }
  .bar-table-card h4 {
    font-size: 13px;
  }
  .bar-table-card p {
    font-size: 10.5px;
  }
  .market-cues-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
  }
  .market-cue-card {
    padding: 10px;
    gap: 6px;
  }
  .market-cue-card h4 {
    font-size: 13.5px;
  }
  .market-cue-card p {
    font-size: 10.5px;
    min-height: 0;
  }
  dialog {
    max-width: min(92vw, 600px);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 12px;
  }
  dialog h2 {
    font-size: 17px;
  }
  .pool-scoreboard {
    padding: 4px 10px;
    gap: 8px;
  }
  .hud-top {
    padding: 6px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  #effectPopover {
    left: auto !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 158px !important;
    padding: 9px 10px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }
  #effectPopover .large-spin {
    width: 98px !important;
    height: 98px !important;
  }
  #effectPopover .effect-popover-hint {
    display: none !important;
  }
  #effectPopover .text-button {
    font-size: 10.5px !important;
    padding: 3px 6px !important;
  }
  .classic-view .view-controls {
    top: 44px !important;
  }
  .pool-live-log {
    display: none !important;
  }
  .series-history-panel {
    top: 48px;
    left: max(10px, env(safe-area-inset-left));
    width: 195px;
    max-height: 36dvh;
    font-size: 10px;
  }
  .bottom-hint {
    display: none !important;
  }
  #strokeMeter, .stroke-meter {
    left: auto !important;
    top: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: 58px !important;
    transform: none !important;
    width: 148px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }
  #strokeMeter span, .stroke-meter span {
    font-size: 9.5px !important;
  }
  #strokeMeter small, .stroke-meter small {
    display: none !important;
  }
  .topbar {
    height: 40px !important;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)) !important;
    gap: 10px !important;
  }
  .layout {
    height: calc(100dvh - 40px) !important;
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    display: none !important;
  }
  .brand {
    font-size: 13px !important;
    gap: 6px !important;
  }
  .brand-ball {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }
  .header-actions {
    gap: 10px !important;
  }
  .header-actions .quiet {
    font-size: 10.5px !important;
    padding: 4px 0 !important;
  }
  .table-heading {
    top: 8px !important;
    left: max(12px, env(safe-area-inset-left)) !important;
  }
  .table-heading h1 {
    font-size: 16px !important;
    margin: 2px 0 !important;
  }
  .table-heading p {
    font-size: 10px !important;
  }
  .view-controls {
    top: 8px !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    padding: 2px !important;
  }
  .view-controls button {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  .classic-hud {
    bottom: 8px !important;
    gap: 8px !important;
  }
  .pocket-collection {
    bottom: 8px !important;
  }
}

/* ==========================================================================
   5 SALAS DE JUEGO, TALLER DE PERSONALIZACIÓN DE TACOS, RECOMPENSAS & TORNEOS
   ========================================================================== */
.score-cue-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cfe5db;
  background: rgba(12, 26, 22, 0.78);
  border: 1px solid #385a4d;
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 2px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cue-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #f3c86b;
  flex-shrink: 0;
  display: inline-block;
}

.online-venues-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 26, 22, 0.88);
  border: 1px solid #35564a;
}
.venues-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.venues-section-head strong,
.venues-section-head span {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #f3c86b;
}
.venues-section-head small {
  display: block;
  font-size: 11px;
  color: #96b5a7;
}
.online-venues-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 10px;
}
.venue-room-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(18, 35, 30, 0.92);
  border: 1px solid #355449;
  text-align: left;
  color: #eef7f2;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.venue-room-card:hover {
  border-color: #7be495;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.35);
}
.venue-room-card.active {
  background: linear-gradient(135deg, rgba(28, 62, 50, 0.95), rgba(16, 36, 29, 0.98));
  border-color: #7be495;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.55), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.venue-thumb {
  width: 78px;
  height: 54px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}
.venue-mini-table {
  width: 54px;
  height: 30px;
  border-radius: 5px;
  background: var(--vfelt, #1f7a4c);
  border: 3px solid var(--vrail, #6b3e1e);
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.venue-mini-table i:first-child {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}
.venue-mini-table i:last-child {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3c86b;
}
.venue-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.venue-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.venue-title-row strong {
  font-size: 13.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue-badge {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.venue-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: #c5ded2;
}
.venue-info p {
  margin: 0;
  font-size: 10.5px;
  color: #8fb0a1;
  line-height: 1.3;
}

/* Cue Workshop / Customizer */
.cue-workshop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 43, 36, 0.95), rgba(11, 22, 19, 0.98));
  border: 1px solid #f3c86b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.cue-workshop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cue-workshop-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  color: #ffffff;
}
.cue-workshop-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cw-preset-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: #162c25;
  border: 1px solid #446b5c;
  color: #d9eee4;
}
.cw-preset-btn:hover {
  border-color: #f3c86b;
  color: #ffe299;
}
.cw-preview-mount .real-cue-showcase {
  height: 68px;
}
.cw-controls-grid {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(75px, 1fr));
  gap: 10px;
  align-items: end;
}
.cw-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #bdd6ca;
}
.cw-field input[type="text"] {
  padding: 8px 10px;
  border-radius: 8px;
  background: #0c1915;
  border: 1px solid #3c6052;
  color: #ffffff;
  font-size: 12.5px;
}
.cw-field input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border-radius: 8px;
  background: #0c1915;
  border: 1px solid #3c6052;
  cursor: pointer;
}
.cw-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #264238;
}
.cw-hint {
  font-size: 11.5px;
  color: #9ec2b2;
}
.cw-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .cw-controls-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .cw-field-name {
    grid-column: 1 / -1;
  }
}

/* Daily Rewards (7-Day Weekly Calendar) & Missions */
.daily-rewards-section,
.missions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(14, 27, 23, 0.92);
  border: 1px solid #35564a;
}
.daily-rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.daily-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 10px;
  border-radius: 12px;
  background: #132520;
  border: 1px solid #2f4d42;
  text-align: center;
}
.daily-day-card.epic-day {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(48, 34, 11, 0.95), rgba(19, 38, 31, 0.96));
  border-color: #d4a849;
}
.daily-day-card.claimed {
  border-color: #4ea874;
  background: rgba(22, 54, 41, 0.72);
}
.daily-day-card.current {
  border-color: #ffd700;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.daily-day-title {
  font-size: 11px;
  color: #9db8ac;
  font-weight: 700;
}
.daily-day-icon {
  font-size: 20px;
}
.daily-day-amount {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}
.daily-day-sub {
  font-size: 10.5px;
  color: #9ab5a8;
}
.missions-list-card {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid #243d34;
}
.mission-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #223a31;
  font-size: 12.5px;
}
.mission-row:last-child {
  border-bottom: 0;
}
.mission-header-row {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #93b2a4;
  padding-top: 4px;
}
.mission-prog-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #0c1815;
  border: 1px solid #2d4b40;
  overflow: hidden;
}
.mission-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #52c288, #f3c86b);
}
.mission-pc-label {
  color: #f3c86b;
  font-weight: 800;
}
.mission-claimed-tag {
  color: #7be495;
  font-weight: 800;
  font-size: 11.5px;
}
.compact-claim-btn {
  padding: 6px 11px !important;
  font-size: 11px !important;
}

/* 8-Player Single-Elimination Tournament Bracket (Real Pool Championship) */
.tournament-status-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(44, 31, 12, 0.92), rgba(17, 36, 30, 0.95));
  border: 1px solid #f3c86b;
  font-size: 12.5px;
  color: #d6eae0;
}
.tournament-status-banner strong {
  font-size: 14.5px;
  color: #ffd700;
}
.tournament-bracket-card {
  padding: 18px;
  border-radius: 15px;
  background: rgba(13, 24, 21, 0.94);
  border: 1px solid #395b4e;
  overflow-x: auto;
}
.tb-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(165px, 1fr));
  gap: 18px;
  align-items: center;
  min-width: 680px;
}
.tb-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-around;
}
.tb-col-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #93b5a6;
  text-align: center;
  margin-bottom: 4px;
}
.tb-match-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px;
  border-radius: 11px;
  background: #132520;
  border: 1px solid #2f4d42;
  position: relative;
}
.tb-match-box.my-branch {
  border-color: #67a889;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.tb-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: #1a312a;
  border: 1px solid #355449;
  font-size: 12px;
  font-weight: 700;
  color: #d7ebe1;
}
.tb-slot.is-me {
  border-color: #f3c86b;
  color: #ffe599;
}
.tb-slot.winner {
  background: linear-gradient(135deg, #1d4936, #143326);
  border-color: #7be495;
  color: #ffffff;
}
.tb-slot i {
  font-style: normal;
  color: #7be495;
  font-weight: 900;
}
.tb-trophy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #261e0c, #12221c);
  border: 1px solid #d4a849;
  text-align: center;
}
.tb-trophy-card.crowned {
  border-color: #ffd700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}
.tb-trophy-icon {
  font-size: 42px;
  line-height: 1;
}
.tb-trophy-card strong {
  font-size: 15px;
  color: #ffd700;
}
.tb-trophy-card small {
  font-size: 10.5px;
  color: #b7d1c5;
}

/* ==========================================================================
   REAL POOL · ONLINE CLUB DASHBOARD REDESIGN (Professional Clean Layout)
   ========================================================================== */
.home-view.online-hub-open .home-menu {
  width: 235px !important;
  padding: 0 !important;
  background: #0c1714 !important;
  border-right: 1px solid #1c312b !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  z-index: 30;
}
.home-view.online-hub-open .live-traffic-bar {
  display: none !important;
}
.home-view.online-hub-open .home-online-sidebar {
  height: 100dvh;
  margin: 0;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.rp-club-brand {
  padding: 4px 10px 16px;
  border-bottom: 1px solid #1b2f29;
}
.rp-club-brand-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rp-club-brand-titles strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #bde6d2;
  line-height: 1.05;
}
.rp-club-brand-titles span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #7c9c8e;
}

.rp-club-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  padding-top: 8px;
}
.rp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #9cb6aa;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rp-nav-item:hover {
  background: rgba(34, 66, 55, 0.45);
  color: #eef7f2;
}
.rp-nav-item.active {
  background: #284b3d;
  border-color: #3d6d59;
  color: #ffffff;
}
.rp-nav-item.vip-nav {
  color: #f3c86b;
  border-color: rgba(243, 200, 107, 0.25);
  background: rgba(54, 41, 15, 0.35);
}
.rp-nav-item.vip-nav:hover,
.rp-nav-item.vip-nav.active {
  background: linear-gradient(135deg, #473512, #253b31);
  border-color: #f3c86b;
  color: #ffe7a3;
}
.rp-nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  color: #88a89a;
  flex-shrink: 0;
}
.rp-nav-item.active .rp-nav-icon.play {
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
}
.rp-club-nav-footer {
  padding-top: 10px;
  border-top: 1px solid #1b2f29;
}

.home-view.online-hub-open .online-right-stage {
  left: 235px !important;
  width: calc(100% - 235px) !important;
  padding: 0 !important;
  background: #0f1c18 !important;
  border-left: 0 !important;
}

/* Top Bar inside Online Right Stage */
.rp-club-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: #0c1714;
  border-bottom: 1px solid #1c312b;
  position: sticky;
  top: 0;
  z-index: 15;
}
.rp-club-topbar-left,
.rp-club-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-club-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #b7d1c5;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.rp-club-live-indicator:hover {
  background: rgba(255, 255, 255, 0.04);
}
.rp-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 9px;
  background: #172722;
  border: 1px solid #2b443b;
  color: #f3c86b;
  font-size: 13.5px;
  font-weight: 800;
}
.rp-top-pill:hover {
  border-color: #f3c86b;
}
.rp-top-pill.vip {
  background: #232216;
  border-color: #544723;
  color: #e8c167;
}
.rp-top-pill .rp-plus {
  color: #ffd700;
  font-weight: 900;
}
.rp-top-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #eef7f2;
  text-align: left;
}
.rp-top-user:hover {
  background: #162822;
  border-color: #2c493f;
}
.rp-top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #244036;
  border: 1px solid #487363;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #d6ede2;
}
.rp-top-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.rp-top-user-meta strong {
  font-size: 13.5px;
  color: #ffffff;
}
.rp-top-user-meta small {
  font-size: 11px;
  color: #88a699;
}

.home-view.online-hub-open .online-stage-view {
  padding: 24px 28px 32px;
  max-width: 1180px;
}

/* Dashboard 2-Column Layout */
.rp-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  align-items: start;
}
.rp-dash-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rp-salon-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rp-salon-switch button {
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: #1a2d27;
  border: 1px solid #2a443c;
  color: #a7c2b6;
  transition: all 0.15s ease;
}
.rp-salon-switch button.active {
  background: #bce5d1;
  border-color: #bce5d1;
  color: #0e221a;
}

/* Hero "JUGAR AHORA" Card */
.rp-hero-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1b4334 0%, #153529 100%);
  border: 1px solid #2d5e4b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}
.rp-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}
.rp-hero-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8ec5ab;
  text-transform: uppercase;
}
.rp-hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #ffffff;
  line-height: 1.05;
}
.rp-hero-copy p {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: #c2dfd1;
}
.rp-hero-cta {
  padding: 12px 30px;
  border-radius: 10px;
  background: #bce5d1;
  border: 1px solid #d4f2e3;
  color: #0d2219;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.rp-hero-cta:hover {
  background: #d0f2e1;
}
.rp-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.rp-illust-table {
  width: 245px;
  height: 142px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #258f63 0%, #176946 100%);
  border: 10px solid #754e29;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.45), 0 16px 32px rgba(0, 0, 0, 0.5);
  transform: rotate(-8deg);
  position: relative;
}
.rp-illust-table.is-billiards {
  background: radial-gradient(ellipse at center, #1e7c5a 0%, #0f4d36 100%);
  border-color: #5e3319;
}
.rp-illust-table i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #080d0b;
}
.rp-illust-table .p-tl { top: -5px; left: -5px; }
.rp-illust-table .p-tc { top: -7px; left: calc(50% - 8px); }
.rp-illust-table .p-tr { top: -5px; right: -5px; }
.rp-illust-table .p-bl { bottom: -5px; left: -5px; }
.rp-illust-table .p-bc { bottom: -7px; left: calc(50% - 8px); }
.rp-illust-table .p-br { bottom: -5px; right: -5px; }
.rp-illust-table .cue-b {
  position: absolute;
  left: 44px;
  top: 52%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.rp-illust-table .rack-balls {
  position: absolute;
  right: 36px;
  top: 28%;
  width: 52px;
  height: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
  transform: rotate(18deg);
}
.rp-illust-table .rack-balls span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.rp-illust-table.is-billiards .rack-balls span {
  background: #c91e25 !important;
}

/* 2x2 Quick Mode Cards Grid */
.rp-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rp-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #152621;
  border: 1px solid #264038;
  text-align: left;
  color: #eef7f2;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.rp-mode-card:hover {
  border-color: #5d947e;
  background: #1a2f29;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}
.rp-mode-card.vip-gold-card {
  background: linear-gradient(135deg, #352912 0%, #241d0f 100%);
  border-color: #6b5322;
}
.rp-mode-card.vip-gold-card:hover {
  border-color: #f3c86b;
  box-shadow: 0 0 0 1px rgba(243, 200, 107, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.rp-mode-ico {
  font-size: 20px;
  color: #e6bc5c;
  margin-bottom: 2px;
}
.rp-mode-card strong {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.rp-mode-card small {
  font-size: 12.5px;
  color: #8eab9e;
}

/* Right Dashboard Widgets (MI PROGRESO & RECOMPENSA DIARIA) */
.rp-dash-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rp-widget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 20px 20px;
  border-radius: 15px;
  background: #13231e;
  border: 1px solid #233c34;
  text-align: center;
}
.rp-widget-kicker {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8fb0a1;
  text-transform: uppercase;
}
.rp-widget-kicker.gold {
  color: #e6bc5c;
}
.rp-progress-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1e3b31;
  border: 2px solid #598f7a;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #bce5d1;
  margin-top: 2px;
}
.rp-progress-rank-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}
.rp-progress-bar-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.rp-progress-bar-block .online-xp-track {
  width: 100%;
}
.rp-progress-sub {
  font-size: 11.5px;
  color: #8aa79a;
}
.rp-progress-lvl {
  font-size: 13px;
  font-weight: 700;
  color: #c2ddd0;
}

/* Illustrated Treasure Chest in Recompensa Diaria Widget */
.rp-chest-illustration {
  padding: 8px 0 2px;
}
.rp-chest-box {
  width: 92px;
  height: 68px;
  position: relative;
}
.rp-chest-lid {
  height: 26px;
  background: linear-gradient(180deg, #d8a54b, #b07d2b);
  border-radius: 10px 10px 3px 3px;
  border: 2px solid #eab95f;
}
.rp-chest-base {
  height: 40px;
  margin-top: -2px;
  background: linear-gradient(180deg, #9e6e24, #785016);
  border-radius: 3px 3px 10px 10px;
  border: 2px solid #c9943b;
}
.rp-chest-lock {
  position: absolute;
  left: calc(50% - 10px);
  top: 18px;
  width: 20px;
  height: 22px;
  border-radius: 5px;
  background: #4e3410;
  border: 2px solid #f3c86b;
}
.rp-daily-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #d0e6dc;
}
.rp-widget-action-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  background: #27483b;
  border: 1px solid #3f6d5b;
  color: #e4f5ec;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.rp-widget-action-btn:hover {
  background: #325c4b;
  border-color: #7be495;
}

@media (max-width: 960px) {
  .rp-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .rp-dash-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .home-view.online-hub-open .home-menu {
    width: 100% !important;
    height: auto !important;
  }
  .home-view.online-hub-open .home-online-sidebar {
    height: auto;
    padding: 12px;
  }
  .rp-club-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .rp-nav-item {
    width: auto;
    padding: 8px 11px;
    font-size: 12px;
  }
  .home-view.online-hub-open .online-right-stage {
    left: 0 !important;
    width: 100% !important;
  }
  .rp-hero-banner {
    grid-template-columns: 1fr;
  }
  .rp-quick-grid,
  .rp-dash-widgets {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MI BILLETERA · INTEGRATED STAGE VIEW (Fichas VIP + Puntos del Bar + Movimientos)
   ========================================================================== */
.rp-wallet-stage {
  max-width: 820px !important;
  gap: 18px !important;
}
.rp-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rp-wallet-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rp-wallet-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #1a3129;
  border: 1px solid #355c4d;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.rp-wallet-title-group h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.rp-wallet-title-group span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #88a699;
}
.rp-wallet-age-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #182b24;
  border: 1px solid #2d4c40;
  font-size: 11.5px;
  font-weight: 800;
  color: #d6ebe1;
}

.rp-wallet-hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(145deg, #162e25 0%, #11231c 100%);
  border: 1px solid #305647;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}
.rp-wallet-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rp-wallet-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #9bb8ac;
  text-transform: uppercase;
}
.rp-wallet-main-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}
.rp-wallet-main-balance strong {
  font-size: 42px;
  font-weight: 900;
  color: #e6bc5c;
  line-height: 1;
}
.rp-wallet-main-balance span {
  font-size: 16px;
  font-weight: 800;
  color: #e6bc5c;
}
.rp-wallet-equiv {
  margin: 8px 0 0;
  font-size: 13px;
  color: #a9c5b8;
}
.rp-wallet-equiv b {
  color: #d6ede2;
}
.rp-wallet-mini-ico {
  font-size: 22px;
  opacity: 0.85;
}
.rp-wallet-divider {
  height: 1px;
  background: #254338;
}
.rp-wallet-sub-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rp-wallet-sub-balances small {
  display: block;
  font-size: 12px;
  color: #99b6aa;
  margin-bottom: 4px;
}
.rp-wallet-sub-balances strong {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
}
.rp-wallet-sub-balances strong.green {
  color: #79d4a6;
}
.rp-wallet-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.rp-wallet-action-btn {
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(20, 41, 34, 0.85);
  border: 1px solid #35584b;
  color: #e6f4ed;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.15s ease;
}
.rp-wallet-action-btn.primary {
  background: #2b2927;
  border-color: #4d4944;
  color: #ffffff;
}
.rp-wallet-action-btn:hover {
  border-color: #7be495;
  background: #203d32;
}

.rp-wallet-subtabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rp-wtab {
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #9cb8ac;
  font-size: 13.5px;
  font-weight: 700;
}
.rp-wtab:hover {
  color: #ffffff;
}
.rp-wtab.active {
  background: #262523;
  border-color: #3f3d39;
  color: #ffffff;
}

.rp-wallet-sec-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.rp-wallet-movements-box {
  border-radius: 16px;
  background: #13221d;
  border: 1px solid #223b32;
  padding: 20px;
}
.rp-wallet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  text-align: center;
}
.rp-wempty-ico {
  font-size: 28px;
  opacity: 0.7;
}
.rp-wallet-empty strong {
  font-size: 16px;
  color: #ffffff;
}
.rp-wallet-empty p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8fab9e;
}
.rp-wempty-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: #172b24;
  border: 1px solid #35594b;
  color: #d9eee4;
  font-size: 12.5px;
  font-weight: 700;
}
.rp-wempty-btn:hover {
  border-color: #7be495;
}

.rp-wmov-list {
  display: flex;
  flex-direction: column;
}
.rp-wmov-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid #1f362e;
}
.rp-wmov-row:last-child {
  border-bottom: 0;
}
.rp-wmov-left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.rp-wmov-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #1c352c;
  border: 1px solid #315648;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #7be495;
  flex-shrink: 0;
}
.rp-wmov-ico.withdraw {
  color: #f3c86b;
}
.rp-wmov-left strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
}
.rp-wmov-left small {
  font-size: 12px;
  color: #89a699;
}
.rp-wmov-right {
  text-align: right;
}
.rp-wmov-right strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.rp-wmov-right strong.pos {
  color: #6ee7a8;
}
.rp-wmov-right strong.neg {
  color: #f5b942;
}
.rp-wmov-right small {
  font-size: 11.5px;
  color: #89a699;
}

.rp-wallet-info-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #13221d;
  border: 1px solid #223b32;
}
.rp-winfo-ico {
  font-size: 18px;
  color: #79b89c;
}
.rp-wallet-info-banner strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 2px;
}
.rp-wallet-info-banner p {
  margin: 0;
  font-size: 12.5px;
  color: #93b0a3;
}
.rp-wallet-footer {
  padding-top: 10px;
  border-top: 1px solid #1b2f28;
  text-align: center;
  font-size: 12px;
  color: #7e9c8f;
}

/* ==========================================================================
   MESAS DEL SALÓN · 2-COLUMN HORIZONTAL CARDS (FIT ON ONE SCREEN, NO SCROLL)
   ========================================================================== */
#onlineStageTablesView.online-stage-view {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  gap: 12px !important;
}
.rp-tables-header {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(58, 96, 80, 0.45);
  align-items: center !important;
}
.rp-tables-header h2 {
  font-size: 25px !important;
  margin: 2px 0 3px !important;
}
.rp-tables-header p {
  font-size: 12.5px !important;
  margin: 0 !important;
}
.rp-tables-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rp-tfilter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(18, 36, 30, 0.9);
  border: 1px solid #2b4a3e;
  color: #cbe2d6;
  font-size: 12.5px;
  font-weight: 800;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.rp-tfilter-btn:hover {
  border-color: #5ea885;
  color: #ffffff;
}
.rp-tfilter-btn.active {
  background: linear-gradient(180deg, #1b4330 0%, #133123 100%);
  border-color: #4cd964;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(76, 217, 100, 0.25);
}
.rp-tfilter-btn.gold {
  background: linear-gradient(180deg, #352912 0%, #241b0b 100%);
  border-color: #9e7a32;
  color: #f6d379;
}
.rp-tfilter-btn.gold:hover {
  border-color: #ffd700;
}
.rp-tfilter-btn.create {
  background: #b6e4c9;
  border-color: #b6e4c9;
  color: #0e2419;
}
.rp-tfilter-btn.create.billar {
  background: linear-gradient(135deg, #8b2328, #571417);
  border-color: #e05a60;
  color: #ffffff;
}

.rp-horizontal-tables-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 16px !important;
}
.rp-span-full {
  grid-column: 1 / -1;
}

.bar-table-card.rp-horiz-table-card {
  display: grid !important;
  grid-template-columns: 146px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px !important;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(16, 33, 27, 0.94) 0%, rgba(11, 24, 20, 0.96) 100%);
  border: 1px solid #2b4b3e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
  text-align: left !important;
}
.bar-table-card.rp-horiz-table-card:hover {
  border-color: #5cc985;
  box-shadow: 0 0 0 1px rgba(92, 201, 133, 0.35), 0 10px 24px rgba(0, 0, 0, 0.48);
}

.rp-table-illustration-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}
.rp-table-lamp {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 11px;
  border-radius: 24px 24px 4px 4px;
  background: linear-gradient(180deg, #3c3424 0%, #f7d788 85%, #fff5d6 100%);
  box-shadow: 0 6px 20px 6px rgba(248, 211, 118, 0.42);
  z-index: 2;
  pointer-events: none;
}
.bar-table-card.rp-horiz-table-card .pool-table-mini {
  width: 138px;
  height: 74px;
  border-width: 7px;
  border-radius: 11px;
  flex-shrink: 0;
}

.rp-table-card-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.rp-table-card-info h4 {
  margin: 0 !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-table-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: #b8d3c6;
}
.rp-tcount.waiting {
  color: #f5cd70;
}
.rp-tcount.live {
  color: #ff8b90;
}
.rp-textra.gold {
  color: #ffd700;
}

.rp-table-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rp-table-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.rp-table-pill-btn.join {
  background: linear-gradient(180deg, #279b48 0%, #197834 100%);
  border: 1px solid #4ade80;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(25, 120, 52, 0.45);
}
.rp-table-pill-btn.join:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}
.rp-table-pill-btn.challenge {
  background: linear-gradient(180deg, #e0af45 0%, #b88420 100%);
  border: 1px solid #f7d57e;
  color: #1c1302;
}
.rp-table-pill-btn.watch {
  background: #1d3c31;
  border: 1px solid #5bc486;
  color: #dff8e8;
}
.rp-table-pill-btn.leave {
  background: #3d1d21;
  border: 1px solid #a64950;
  color: #ffd6d8;
  padding: 9px 14px;
}

@media (max-width: 880px) {
  .rp-horizontal-tables-grid {
    grid-template-columns: 1fr !important;
  }
  .bar-table-card.rp-horiz-table-card {
    grid-template-columns: 122px minmax(0, 1fr) auto;
    padding: 10px 14px !important;
    gap: 12px;
  }
  .bar-table-card.rp-horiz-table-card .pool-table-mini {
    width: 116px;
    height: 64px;
  }
}

/* ==========================================================================
   SISTEMA DE TIZA EN PARTIDA (PASAR TIZA AL TACO CADA 3 TIROS / ANTI-PIFIE)
   ========================================================================== */
.home-view .chalk-hud-widget {
  display: none !important;
}
.chalk-hud-widget {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 102px;
  z-index: 23;
}
.match-view .chalk-hud-widget {
  bottom: 72px;
}
.chalk-cube-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(10, 22, 32, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: #e0f2fe;
  white-space: nowrap;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}
.chalk-cube-btn:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}
.chalk-cube-btn.warn-chalk {
  border-color: #f59e0b;
}
.chalk-cube-btn.danger-chalk {
  border-color: #ff4d4f;
  background: rgba(54, 12, 16, 0.88);
  box-shadow: 0 0 16px rgba(255, 77, 79, 0.55);
  animation: chalkDangerPulse 1.1s ease-in-out infinite;
}
.chalk-inline-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #cfe9fc;
}
.chalk-cube-btn.danger-chalk .chalk-inline-text {
  color: #fecaca;
}
.chalk-kbd {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.65);
  font-size: 10px;
  font-weight: 800;
  color: #bae6fd;
}
.chalk-hud-widget .chalk-mini-bar {
  width: 72px;
  height: 5px;
}
.chalk-3d-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 26;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(11, 26, 38, 0.94);
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.chalk-3d-tooltip.danger {
  background: rgba(58, 13, 17, 0.95);
  border-color: #ff4d4f;
  color: #ffe4e6;
}
.chalk-3d-tooltip kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid currentColor;
  font-size: 10px;
}
@keyframes chalkDangerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.chalk-cube-btn.chalk-applied-anim {
  animation: chalkPop 0.42s ease-out;
}
@keyframes chalkPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(56, 189, 248, 0.85); }
  100% { transform: scale(1); }
}
.chalk-cube-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chalk-cube-copy strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chalk-cube-copy kbd {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  font-size: 10px;
  color: #bae6fd;
}
.chalk-cube-copy span {
  font-size: 11px;
  color: #93c5fd;
  font-weight: 600;
}
.chalk-cube-btn.danger-chalk .chalk-cube-copy span {
  color: #fecaca;
}
.chalk-mini-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.chalk-mini-bar i {
  display: block;
  height: 100%;
  background: #38bdf8;
  border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.chalk-sidebar-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #0f293d;
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}
.chalk-sidebar-btn.danger-chalk {
  background: #3d1216;
  border-color: #ff4d4f;
  color: #ffe4e6;
}

/* ==========================================================================
   60 TACOS EN 6 COLECCIONES & TALLER DE TACOS ESTILO CS:GO (STICKERS + COFRES)
   ========================================================================== */
.rp-market-filters-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rp-collection-pills button {
  font-weight: 800;
}
.market-cue-collection-tag {
  font-size: 11px;
  font-weight: 700;
  color: #8fb4a3;
  letter-spacing: 0.3px;
}
.market-cue-tier.tier-normal {
  background: #253831;
  color: #d1e5dc;
  border: 1px solid #436457;
}
.market-cue-tier.tier-clasico {
  background: #102d47;
  color: #7dd3fc;
  border: 1px solid #0284c7;
}
.market-cue-tier.tier-epico {
  background: #2f1247;
  color: #e9d5ff;
  border: 1px solid #9333ea;
}
.market-cue-tier.tier-leyenda {
  background: linear-gradient(135deg, #422b06, #261803);
  color: #fde047;
  border: 1px solid #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}
.market-cue-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.market-cue-actions-row .market-cue-btn {
  flex: 1;
}
.market-cue-btn.workshop-go {
  flex: 0 0 auto !important;
  background: #1c312a;
  border-color: #4f8571;
  color: #d2f4e3;
  padding: 10px 13px;
}
.market-cue-btn.workshop-go:hover {
  border-color: #7be495;
  background: #26453b;
}

/* Sticker Decals on 2D/3D Cue Visual Showcase & Scoreboard */
.cue-stick-3d {
  position: relative;
}
.cue-3d-sticker-decal {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 25, 23, 0.92), rgba(10, 14, 12, 0.96));
  border: 1.5px solid var(--stk-b, #ffd700);
  box-shadow: 0 0 8px var(--stk-c, #ffd700);
  display: grid;
  place-items: center;
  font-size: 12px;
  z-index: 4;
  pointer-events: auto;
}
.cue-3d-sticker-decal.slot-0 { left: 13%; }
.cue-3d-sticker-decal.slot-1 { left: 29%; }
.cue-3d-sticker-decal.slot-2 { left: 45%; }
.cue-3d-sticker-decal.slot-3 { left: 64%; }
.cs-large-inspect .cue-3d-sticker-decal {
  width: 28px;
  height: 28px;
  font-size: 15px;
}
.cue-cs-nametag {
  position: absolute;
  top: 7px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(15, 24, 20, 0.9);
  border: 1px solid #d4a849;
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  z-index: 5;
}
.score-stk-strip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.score-stk-ico {
  font-style: normal;
  font-size: 11px;
}

/* CS:GO Style Armory Workbench */
.cs-armory-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-cue-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 300px;
}
.cs-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cs-cue-select {
  height: 40px;
  min-width: 290px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 9px;
  background: #10211b;
  border: 1px solid #3f6e5b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
}
.cs-inspect-stage .real-cue-showcase {
  min-height: 92px;
  padding: 24px 20px;
}
.cs-stickers-workbench {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 13px;
  background: rgba(12, 24, 20, 0.85);
  border: 1px solid #28473c;
}
.cs-sec-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.cs-sec-head strong {
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #eef7f2;
}
.cs-sec-head small {
  font-size: 11px;
  color: #89a99b;
}
.cs-sticker-slots-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-sticker-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #142721;
  border: 1.5px dashed #375c4e;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.cs-sticker-slot.filled {
  border-style: solid;
  border-color: #528c74;
}
.cs-sticker-slot.active {
  border-style: solid;
  border-color: #f3c86b;
  background: #1e3329;
  box-shadow: 0 0 0 1px rgba(243, 200, 107, 0.35);
}
.cs-slot-num {
  font-size: 10px;
  font-weight: 800;
  color: #9bb8ac;
  text-transform: uppercase;
}
.cs-slot-body {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-slot-ico {
  font-size: 20px;
}
.cs-slot-body strong {
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(60, 20, 24, 0.9);
  color: #ffb8b8;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.cs-sticker-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
  max-height: 195px;
  overflow-y: auto;
  padding-right: 4px;
}
.cs-sticker-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--stk-bg, #152822);
  border: 1px solid var(--stk-border, #35584b);
  text-align: left;
  color: #ffffff;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cs-sticker-chip.unlocked:hover {
  filter: brightness(1.15);
}
.cs-sticker-chip.locked {
  opacity: 0.48;
  filter: grayscale(0.45);
}
.cs-sticker-chip.applied {
  box-shadow: 0 0 0 2px #7be495;
}
.cs-stk-ico {
  font-size: 22px;
  flex-shrink: 0;
}
.cs-stk-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cs-stk-meta strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-stk-meta small {
  font-size: 10px;
  color: #b7d1c5;
}

/* Top Pill & Gold Chest Buttons */
.rp-top-pill.chest-pill {
  background: linear-gradient(135deg, #2d2210, #1b160c);
  border-color: #856629;
  color: #fde68a;
}
.rp-top-pill.chest-pill.has-chest,
.gold-chest-btn.pulse-ready {
  background: linear-gradient(135deg, #b47d1c, #7c510d);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.38);
}

/* Armory Chest Roulette Dialog */
.armory-chest-dialog {
  max-width: 650px;
  width: min(650px, 95vw);
  border: 1px solid #d4a849;
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(160deg, #152721 0%, #0b1411 100%);
  color: #eef7f2;
}
.armory-chest-head h2 {
  margin: 4px 0 6px;
  font-size: 25px;
  font-weight: 900;
}
.armory-chest-head p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #a9c5b8;
}
.armory-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fde68a;
}
.cs-case-roulette-box {
  position: relative;
  overflow: hidden;
  height: 124px;
  border-radius: 13px;
  background: #09110e;
  border: 2px solid #35584a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.cs-case-center-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: #ffd700;
  z-index: 6;
  display: flex;
  justify-content: center;
  color: #ffd700;
  font-size: 16px;
  text-shadow: 0 0 8px #000;
}
.cs-case-roulette-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  will-change: transform;
}
.cs-roulette-item {
  width: 124px;
  height: 98px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #142620;
  border: 1.5px solid #36594b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
}
.cs-roulette-item.rarity-clasico { border-color: #38bdf8; background: #0f2537; }
.cs-roulette-item.rarity-epico { border-color: #a855f7; background: #231236; }
.cs-roulette-item.rarity-leyenda { border-color: #ffd700; background: #332409; }
.cs-roulette-item .cri-ico { font-size: 26px; }
.cs-roulette-item strong {
  font-size: 11px;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-roulette-item small {
  font-size: 9.5px;
  color: #b7d1c5;
}
.armory-drop-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(35, 68, 52, 0.9), rgba(18, 36, 28, 0.95));
  border: 1.5px solid #ffd700;
  margin-bottom: 14px;
}
.adr-icon {
  font-size: 40px;
}
.adr-kicker {
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.8px;
}
.adr-info h3 {
  margin: 2px 0 4px;
  font-size: 19px;
  color: #ffffff;
}
.adr-info p {
  margin: 0;
  font-size: 12.5px;
  color: #d1fae5;
}
.armory-chest-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.armory-chest-actions .shoot-button {
  margin-top: 0;
  flex: 1;
}

/* ==========================================================================
   TORNEOS · EJEMPLOS POR PUNTOS DEL BAR Y POR PLATA REAL (MERCADO PAGO)
   ========================================================================== */
.rp-tourney-official-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(44, 34, 14, 0.9), rgba(20, 34, 28, 0.94));
  border: 1px solid #c99a3e;
}
.rp-ton-badge {
  padding: 5px 11px;
  border-radius: 999px;
  background: #f3c86b;
  color: #1f1503;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.rp-tourney-official-notice strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 2px;
}
.rp-tourney-official-notice p {
  margin: 0;
  font-size: 12.5px;
  color: #cde2d7;
}
.rp-tourney-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rp-tourney-example-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 15px;
  background: #13251f;
  border: 1.5px solid #2b4b3e;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.rp-tourney-example-card.vip {
  background: linear-gradient(145deg, #241d0f 0%, #15211c 100%);
  border-color: #6b5322;
}
.rp-tourney-example-card.active {
  border-color: #7be495;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.35), 0 10px 26px rgba(0, 0, 0, 0.42);
}
.rp-tourney-example-card.vip.active {
  border-color: #ffd700;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.4), 0 10px 26px rgba(0, 0, 0, 0.48);
}
.rp-tex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rp-tex-tag {
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1e3b30;
  color: #8df0b5;
}
.rp-tex-tag.vip {
  background: #3d2d0d;
  color: #fde047;
}
.rp-tex-state {
  font-size: 11px;
  font-weight: 700;
  color: #9bb8ac;
}
.rp-tourney-example-card h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}
.rp-tourney-example-card p {
  margin: 0;
  font-size: 12.5px;
  color: #a3bfb3;
}
.rp-tex-prizes {
  list-style: none;
  padding: 10px 12px;
  margin: 0;
  border-radius: 10px;
  background: rgba(10, 20, 16, 0.65);
  border: 1px solid rgba(75, 115, 98, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.rp-tex-prizes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rp-tex-prizes span {
  color: #9bb8ac;
}
.rp-tex-prizes strong {
  color: #ffffff;
}
.rp-tex-prizes strong.gold {
  color: #fde047;
}

@media (max-width: 900px) {
  .cs-stickers-workbench,
  .rp-tourney-examples-grid {
    grid-template-columns: 1fr;
  }
}






/* ==========================================================================
   SIDEBAR ONLINE CLUB MÁS GRANDE (similar al Menú Local)
   ========================================================================== */
:root { --rp-club-sidebar-w: clamp(280px, 30vw, 400px); }
@media (min-width: 721px) {
  .home-view.online-hub-open .home-menu {
    width: var(--rp-club-sidebar-w) !important;
  }
  .home-view.online-hub-open .online-right-stage {
    left: var(--rp-club-sidebar-w) !important;
    width: calc(100% - var(--rp-club-sidebar-w)) !important;
  }
  .home-view.online-hub-open .home-online-sidebar {
    padding: 28px 22px 20px;
  }
  .rp-club-brand { padding: 6px 12px 22px; }
  .rp-club-brand-titles strong { font-size: 34px; letter-spacing: 0.4px; }
  .rp-club-brand-titles span { font-size: 12px; letter-spacing: 3px; }
  .rp-club-nav { gap: 8px; padding-top: 14px; }
  .rp-nav-item {
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 16px;
    gap: 14px;
    background: rgba(20, 40, 34, 0.55);
    border-color: #1f3a31;
  }
  .rp-nav-item.active { background: #284b3d; border-color: #4f8a71; }
  .rp-nav-icon { width: 28px; height: 28px; font-size: 16px; }
  .rp-nav-item.active .rp-nav-icon.play { font-size: 12px; }
}

body.king-view .home-menu,
body.king-view .online-right-stage {
  display: none !important;
}

.rp-tfilter-btn.ranked-btn.active {
  background: linear-gradient(180deg, #4b3812 0%, #2d2109 100%);
  border-color: #f3c86b;
  color: #ffe8a3;
  box-shadow: 0 0 12px rgba(243, 200, 107, 0.28);
}
.vip-king-join-btn {
  padding: 8px 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f3c86b, #c98f22);
  border: 1px solid #ffe299;
  color: #1f1402;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(243, 200, 107, 0.3);
}
.vip-king-join-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* ==========================================================================
   VISOR 3D INTERACTIVO 360° & PARTES DESBLOQUEABLES EN TALLER
   ========================================================================== */
.cs-parts-unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cs-part-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(12, 24, 20, 0.85);
  border: 1px solid #28473c;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-parts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 185px;
  overflow-y: auto;
  padding-right: 4px;
}
.cs-part-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #142721;
  border: 1px solid #2e5244;
  color: #eef7f2;
  font-size: 12px;
  text-align: left;
  transition: border-color 0.14s ease, filter 0.14s ease;
}
.cs-part-chip.unlocked:hover {
  border-color: #7be495;
  filter: brightness(1.1);
}
.cs-part-chip.active {
  border-color: #7be495;
  background: #1d3c30;
  box-shadow: 0 0 0 1px rgba(123, 228, 149, 0.35);
}
.cs-part-chip.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.cs-part-chip span {
  flex: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-part-chip small {
  font-size: 10px;
  color: #9bb8ac;
  flex-shrink: 0;
}
.cs-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.cue-inspect-dialog {
  max-width: 720px;
  width: min(720px, 95vw);
  border: 1px solid #497864;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(160deg, #13251f 0%, #09120f 100%);
  color: #eef7f2;
}
.cue-inspect-head h2 {
  margin: 6px 0 3px;
  font-size: 24px;
  font-weight: 900;
}
.cue-inspect-head p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #9bb8ac;
}
.cue-inspect-canvas-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 14px;
  background: radial-gradient(circle at center, #1b382d 0%, #0a1410 100%);
  border: 1px solid #2d5143;
  overflow: hidden;
  margin-bottom: 14px;
}
#cueInspect3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#cueInspect3dCanvas:active {
  cursor: grabbing;
}
.cue-inspect-drag-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 16, 13, 0.72);
  font-size: 10.5px;
  color: #bfe0d0;
  pointer-events: none;
}
.cue-inspect-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.cue-inspect-specs > div {
  padding: 9px 11px;
  border-radius: 10px;
  background: #12221c;
  border: 1px solid #254237;
}
.cue-inspect-specs small {
  display: block;
  font-size: 10px;
  color: #8aa89b;
  margin-bottom: 2px;
}
.cue-inspect-specs strong {
  font-size: 12px;
  color: #ffffff;
}
.cue-inspect-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cue-inspect-actions .shoot-button {
  margin-top: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .cs-parts-unlock-grid,
  .cue-inspect-specs {
    grid-template-columns: 1fr;
  }
}

.cue-mini-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.market-cue-card .cue-hover-details {
  display: none !important;
}
.exit-test-cue-btn {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b6e4c9, #6ee7a8);
  border: 1.5px solid #ffffff;
  color: #092115;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.exit-test-cue-btn:hover {
  filter: brightness(1.08);
}
#cwPreviewMount {
  cursor: ew-resize;
  touch-action: none;
}
.cw-sticker-pos-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 12px;
  color: #cbd5e1;
}
.cw-sticker-pos-bar input[type="range"] {
  flex: 1 1 180px;
  accent-color: #38bdf8;
}
.cue-inspect-cam-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cue-cam-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cue-cam-sliders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cue-cam-sliders label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.cue-cam-sliders input[type="range"] {
  width: 110px;
  accent-color: #38bdf8;
}
.cw-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.cw-cat-tab {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cw-cat-tab:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}
.cw-cat-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(16, 185, 129, 0.2));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
}
.cw-tab-panel {
  min-height: 220px;
  margin-bottom: 14px;
}
.cw-parts-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.cw-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cw-field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}
.cw-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.cw-footer-bar .cw-field-name {
  flex: 1 1 240px;
}
.profile-inventory-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.profile-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pinv-group {
  background: rgba(10, 17, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 12px;
}
.pinv-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
}
.pinv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pinv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
}
.pinv-chip.equipped {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.18);
}
.pinv-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.profile-hub-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-cue-showcase {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.profile-cue-3d-wrap {
  margin-top: 10px;
  height: 185px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.12), rgba(7, 13, 19, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
.profile-cue-3d-wrap canvas,
#cwPreviewMount canvas.cw-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#cwPreviewMount.cw-3d-stage {
  height: 290px;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.14), rgba(7, 13, 19, 0.94));
}
.inv-cues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.inv-cue-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(12, 22, 20, 0.85);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.inv-cue-card:hover {
  border-color: #f3c86b;
  transform: translateY(-1px);
}
.inv-cue-card.active {
  border-color: #4ade80;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.9));
}
.inv-cue-swatch {
  height: 7px;
  border-radius: 999px;
  margin-top: 2px;
}
.inv-movements-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.inv-mov-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  font-size: 12.5px;
}
.rp-real-profile-card {
  padding: 18px;
}
.rp-prof-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.rp-prof-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #062118;
  font-size: 22px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
  flex-shrink: 0;
}
.rp-prof-identity {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp-prof-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rp-prof-name-line strong {
  font-size: 20px;
  color: #ffffff;
}
.rp-prof-ranks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.rp-prof-xp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
}
.rp-prof-xp-track {
  flex: 1;
  max-width: 240px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.rp-prof-xp-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #34d399);
}
.rp-prof-stats-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pinv-chip.clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}
.pinv-chip.clickable:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}
.mp-brand-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.2), rgba(0, 177, 234, 0.08));
  border: 1.5px solid rgba(0, 177, 234, 0.45);
}
.mp-logo-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mp-logo-pill strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
}
.mp-logo-pill small {
  display: block;
  font-size: 12px;
  color: #bae6fd;
}
.mp-secure-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #e0f2fe;
  background: rgba(0, 158, 227, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.mp-pay-btn {
  background: linear-gradient(135deg, #009ee3, #00b1ea) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(0, 158, 227, 0.32);
}
.mp-pay-btn:hover {
  filter: brightness(1.08);
}
.mp-checkout-card {
  border: 2px solid #009ee3 !important;
  box-shadow: 0 12px 32px rgba(0, 158, 227, 0.22);
}
.mp-qr-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #009ee3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}
@keyframes mpPulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(0, 177, 234, 0.7); }
  100% { box-shadow: 0 0 0 16px rgba(0, 177, 234, 0); }
}
.mp-highlight-pulse {
  animation: mpPulseHighlight 0.9s ease-out;
  border-radius: 16px;
}
.toast {
  bottom: 148px !important;
  z-index: 28;
}
.match-view .toast {
  bottom: 122px !important;
}
.armory-odds-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 11px;
}
.armory-odds-bar span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}
.armory-odds-bar span.odd-leyenda {
  border-color: rgba(250, 204, 21, 0.65);
  color: #fde047;
  font-weight: 800;
}
.pinv-chip.rar-normal { border-color: rgba(148, 163, 184, 0.25); }
.pinv-chip.rar-clasico { border-color: rgba(59, 130, 246, 0.55); }
.pinv-chip.rar-epico { border-color: rgba(168, 85, 247, 0.65); }
.pinv-chip.rar-leyenda { border-color: rgba(250, 204, 21, 0.8); color: #fef08a; }
.pinv-inline-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.pinv-slot-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  cursor: pointer;
}
.pinv-slot-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}
.pinv-pos-slider {
  flex: 1 1 90px;
  accent-color: #38bdf8;
}
.pinv-paint-sel {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}
.profile-history-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.profile-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.phist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 17, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}
.phist-row.won { border-left: 3px solid #34d399; }
.phist-row.lost { border-left: 3px solid #fb7185; }
.phist-badge {
  font-weight: 800;
  font-size: 12px;
}
.phist-row.won .phist-badge { color: #34d399; }
.phist-row.lost .phist-badge { color: #fb7185; }
.cw-studio-shell {
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(10, 17, 26, 0.82) !important;
  padding: 20px !important;
}
.cw-studio-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .cw-studio-grid { grid-template-columns: 1fr; }
}
.cw-studio-left, .cw-studio-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.cw-stage-box {
  position: relative;
}
#cwPreviewMount.cw-3d-stage {
  height: 310px !important;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.16), rgba(7, 13, 19, 0.96)) !important;
}
.cw-stage-cam-pills {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.cw-studio-right .cw-cat-tabs {
  margin: 0 0 6px;
}
.cw-studio-right .cw-parts-grid-wide,
.cw-studio-right .cs-sticker-inventory-grid {
  max-height: 340px;
}
.spin-control .spin-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(15, 23, 42, 0.28);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.22);
}
.spin-control .spin-ring.inner {
  width: 36%;
  height: 36%;
}
.spin-control .spin-ring.outer {
  width: 68%;
  height: 68%;
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.24);
}

/* Spectators, Applause & Mute Popover */
.match-applause-btn,
.match-applause-toggle,
.match-spectators-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.match-applause-btn:hover:not(:disabled) {
  background: rgba(243, 200, 107, 0.22);
  border-color: rgba(243, 200, 107, 0.55);
  color: #fde68a;
}
.match-applause-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.match-applause-toggle.muted {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}
.spectators-popover {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 90vw);
  background: rgba(11, 20, 17, 0.96);
  border: 1px solid rgba(182, 228, 201, 0.28);
  border-radius: 14px;
  padding: 12px;
  z-index: 65;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: #eef5ef;
}
.spectators-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.spectators-popover-head button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}
.spectators-popover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.spectator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}
.spectator-mute-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.spectator-mute-btn.muted {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.spec-cam-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.spec-cam-btn.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
}
.spectator-walk-hint {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 18, 15, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #d1fae5;
  font-size: 12px;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}

.bar-interact-prompt {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #042f2e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.bar-waiting-pill {
  position: fixed;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(243, 200, 107, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  z-index: 55;
}
.bar-waiting-pill button {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mozo-dialog {
  width: min(440px, 92vw);
  border: 1px solid rgba(182, 228, 201, 0.3);
  border-radius: 18px;
  background: #0b1612;
  color: #eef5ef;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.mozo-dialog::backdrop {
  background: rgba(2, 8, 6, 0.68);
  backdrop-filter: blur(4px);
}
.mozo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mozo-dialog-head h3 { margin: 0; font-size: 18px; }
.mozo-dialog-head button {
  background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer;
}
.mozo-dialog-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #94a3b8;
}
.mozo-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mozo-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 228, 201, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ef;
  text-align: left;
  cursor: pointer;
}
.mozo-opt-btn:hover {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.14);
}
.mozo-opt-btn.gold {
  border-color: rgba(243, 200, 107, 0.38);
  background: rgba(243, 200, 107, 0.08);
}
.mozo-opt-btn small { font-size: 11px; color: #94a3b8; font-weight: 400; }
.mozo-dialog-foot { margin-top: 12px; }
.mozo-club-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.bar-roam-mode #scoreHud,
body.bar-roam-mode .pool-scoreboard,
body.bar-roam-mode #poolLiveLog,
body.bar-roam-mode #pocketCollection,
body.bar-roam-mode #chalkHudWidget,
body.bar-roam-mode .classic-hud,
body.bar-roam-mode #toast,
body.bar-roam-mode #groupBanner {
  display: none !important;
}
