/* Bot Arena screen (Bot Mode). Violet accent, same cyber look as the rest of Bot Mode. */
#bot-arena{--ba:#b789ff;--ba-dim:#b789ff33;--up:#00ff41;--down:#ff4d6a;position:absolute;inset:0;z-index:4600000;display:flex;flex-direction:column;gap:10px;padding:18px 20px 22px;box-sizing:border-box;color:#e8edf5;font-family:'Space Mono',monospace;background:radial-gradient(ellipse at 50% 28%,#241346 0%,#0c0716 62%,#05030b 100%);overflow:hidden}
#bot-arena[hidden]{display:none}
#bot-arena button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#bot-arena button:disabled{opacity:.45;cursor:default}
.ba-top{display:flex;align-items:center;gap:14px;flex:none}
.ba-exit{width:56px;height:56px;border:2px solid var(--ba-dim);border-radius:12px;background:#ffffff08;font-size:28px;line-height:1}
.ba-exit:not(:disabled):active{background:var(--ba-dim)}
.ba-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ba-title b{font-size:26px;letter-spacing:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase}
.ba-title small{font-size:13px;letter-spacing:2px;color:var(--ba)}
.ba-bal{font-size:22px;font-weight:700;color:#ffd166;border:2px solid #ffd16644;border-radius:12px;padding:10px 14px;background:#ffd16610;white-space:nowrap}
.ba-stage{position:relative;flex:1 1 0;min-height:360px;max-height:640px;border:2px solid var(--ba-dim);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#120a24 0%,#1b0f36 55%,#0a0614 100%);box-shadow:inset 0 0 60px #b789ff18}
.ba-stage::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 3px,#ffffff05 3px 4px);pointer-events:none}
#ba-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ba-plate{position:absolute;top:14px;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:#0b0618cc;border:1px solid var(--ba-dim);max-width:44%}
.ba-plate span{font-size:13px;letter-spacing:2px;color:#aab4c3;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ba-plate b{font-size:26px}
.ba-plate-bot{left:14px;border-left:4px solid var(--ba)}
.ba-plate-boss{right:14px;text-align:right;align-items:flex-end;border-right:4px solid #fca311}
.ba-plate-boss b{font-size:20px;color:#dce4ee}
#ba-pnl[data-sign=up]{color:var(--up)}#ba-pnl[data-sign=down]{color:var(--down)}
.ba-timer{position:absolute;top:12px;left:50%;transform:translateX(-50%);min-width:64px;text-align:center;font-size:34px;font-weight:700;padding:4px 14px;border-radius:12px;background:#0b0618cc;border:1px solid var(--ba-dim)}
.ba-timer[hidden]{display:none}
.ba-pop{position:absolute;left:50%;top:38%;transform:translate(-50%,0);font-size:40px;font-weight:700;opacity:0;pointer-events:none;text-shadow:0 0 14px currentColor}
.ba-pop[data-sign=up]{color:var(--up)}.ba-pop[data-sign=down]{color:var(--down)}
.ba-pop.go{animation:baPop 1.1s ease-out forwards}
@keyframes baPop{0%{opacity:0;transform:translate(-50%,16px) scale(.8)}15%{opacity:1;transform:translate(-50%,0) scale(1.1)}100%{opacity:0;transform:translate(-50%,-70px) scale(1)}}
.ba-banner{position:absolute;top:92px;left:0;right:0;margin:0 auto;width:max-content;max-width:90%;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 34px;border-radius:16px;background:#0b0618e6;border:3px solid var(--ba);animation:baIn .35s ease-out}
.ba-banner[hidden]{display:none}
.ba-banner b{font-size:54px;letter-spacing:4px}.ba-banner span{font-size:24px}
.ba-banner[data-result=win]{border-color:var(--up)}.ba-banner[data-result=win] b{color:var(--up)}
.ba-banner[data-result=loss]{border-color:var(--down)}.ba-banner[data-result=loss] b{color:var(--down)}
@keyframes baIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.ba-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;letter-spacing:3px;color:var(--ba);background:#0b0618d0;text-align:center;padding:20px}
.ba-loading[hidden]{display:none}
.ba-thought{flex:none;min-height:46px;display:flex;align-items:center;padding:8px 14px;border-radius:10px;background:#ffffff08;border-left:4px solid var(--ba);font-size:16px;line-height:1.35;color:#dbe3ee}
.ba-meter{position:relative;flex:none;height:12px;border-radius:6px;background:#ffffff10;overflow:hidden}
.ba-meter span{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#ffffff55}
.ba-meter i{position:absolute;top:0;bottom:0;left:50%;width:0;transition:left .15s,width .15s}
.ba-meter i[data-sign=up]{background:var(--up)}.ba-meter i[data-sign=down]{background:var(--down)}
.ba-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;flex:none}
.ba-strip span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff12}
.ba-strip small{font-size:11px;letter-spacing:2px;color:#8f9bb0}.ba-strip b{font-size:22px}
#ba-net[data-sign=up]{color:var(--up)}#ba-net[data-sign=down]{color:var(--down)}
.ba-controls{display:flex;flex-direction:column;gap:10px;flex:none}
.ba-row{display:flex;flex-direction:column;gap:6px}
.ba-row small{font-size:12px;letter-spacing:2px;color:#8f9bb0}
.ba-chips{display:flex;flex-wrap:wrap;gap:8px}
.ba-chips button{min-width:56px;min-height:44px;padding:6px 14px;border-radius:10px;border:2px solid #ffffff22;background:#ffffff08;font-size:16px;font-weight:700}
.ba-chips button[aria-pressed=true]{border-color:var(--ba);background:var(--ba-dim);color:#fff}
.ba-go{min-height:68px;border-radius:14px;border:3px solid var(--ba);background:linear-gradient(180deg,#b789ff40,#b789ff18);font-size:22px;font-weight:700;letter-spacing:2px;color:#fff}
.ba-go[data-ba-mode=stop]{border-color:#ffffff44;background:#ffffff0c;font-size:18px}
.ba-go:not(:disabled):active{transform:scale(.98)}
.ba-note{margin:0;font-size:13px;line-height:1.4;color:#9aa6b8}
body.cb-bot-arena-open #game-dialog-overlay{z-index:4500000}
@media (prefers-reduced-motion:reduce){.ba-pop.go,.ba-banner{animation:none}.ba-pop.go{opacity:1}}

/* Bot configuration: LOOK tab */
.look-preview{position:sticky;top:0;z-index:5;height:230px;border:2px solid #b789ff33;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#120a24,#1b0f36 55%,#0a0614);margin:4px 0 6px;flex:none}
.look-preview canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.look-preview[data-error]::after{content:'PREVIEW UNAVAILABLE';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#b789ff;letter-spacing:2px}
.look-swatches{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.look-swatch{width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;border:3px solid #ffffff22;background:var(--c)}
.look-swatch[aria-pressed=true]{border-color:#fff;box-shadow:0 0 12px var(--c)}
.look-custom{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1px;color:#9aa6b8}
.look-custom input{width:48px;height:40px;padding:0;border:0;background:none}
.look-style{margin-top:10px}.look-style .style-intro p{margin:2px 0 8px}

/* Bot configuration layout v2: compact 3D summary, one row of icon tabs, everything inside the frame */
html body #game-container #main-menu #bot-panel .bot-profile.bot-profile-3d{display:grid;grid-template-columns:170px 1fr;gap:12px;height:178px;padding:6px 10px;align-items:stretch}
#bot-panel .bot-profile-preview{position:relative;border:1px solid #473b60;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,#120a24,#1b0f36 60%,#0a0614);min-height:0}
#bot-panel .bot-profile-preview canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#bot-panel .bot-profile-preview[data-error]::after{content:'NO PREVIEW';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#b789ff;font-size:11px}
#bot-panel .bot-profile-info{display:flex;flex-direction:column;justify-content:center;min-width:0}
#bot-panel .bot-profile-info h2{margin:3px 0;font-size:20px;max-width:100%}
#bot-panel .bot-profile-info p{margin:0;font-size:12px;line-height:1.6}
html body #game-container #main-menu #bot-panel .bot-config-tabs[aria-label="Configuration sections"]{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;flex:none}
html body #game-container #main-menu #bot-panel .bot-config-tabs[aria-label="Configuration sections"] button{min-height:46px!important;height:46px;padding:0!important;display:flex;align-items:center;justify-content:center}
#bot-panel .bot-config-tabs button svg{width:22px;height:22px;pointer-events:none}
#bot-panel .bot-tab-caption{flex:none;margin:-4px 0 0;font-size:11px;letter-spacing:3px;color:#b789ff;text-align:center}
#bot-panel .build-radar{position:relative;margin-bottom:6px}
#bot-panel .build-radar .profile-heading{position:absolute;top:0;right:0}
#bot-panel .look-preview{display:none}
html body #game-container .arena-player.cb-bot-hero.cb-bot-hero.cb-bot-hero{background-size:auto 80%!important;background-position:center 96%!important;background-repeat:no-repeat!important;filter:drop-shadow(0 0 14px #b789ff66)}
#bot-panel{gap:6px!important;padding-top:6px!important}
#bot-panel .bot-panel-heading{padding-bottom:4px}
html body #game-container #main-menu #bot-panel .bot-profile.bot-profile-3d{height:128px;grid-template-columns:130px 1fr}
#bot-panel .bot-profile-info h2{font-size:17px}
#bot-panel .bot-profile-info p{font-size:11px;line-height:1.45}
#bot-panel .bot-save-bar button{min-height:44px!important;font-size:14px}
html body #game-container #main-menu #bot-panel .bot-config-tabs[aria-label="Configuration sections"] button{min-height:40px!important;height:40px}

/* LOOK studio: big preview left, one arrow row per body part right (no scrolling) */
html body #game-container #main-menu #bot-panel .bot-profile.bot-look-studio{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:8px;height:250px;padding:6px;align-items:stretch}
#bot-panel .look-pickers{display:flex;flex-direction:column;gap:5px;justify-content:center;min-width:0}
#bot-panel .look-row{display:grid;grid-template-columns:34px 1fr 34px;gap:4px;align-items:center;height:38px;flex:none}
#bot-panel .look-row button{min-height:0!important;height:36px;padding:0!important;font-size:13px;color:#b789ff;background:#0e0a1c;border:1px solid #473b60}
#bot-panel .look-row span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;line-height:1.1}
#bot-panel .look-row small{font-size:8px;letter-spacing:2px;color:#8f9bb0}
#bot-panel .look-row b{font-size:11px;color:#e8dcff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#bot-panel .look-swatches{gap:8px}
#bot-panel .look-swatch{width:32px;height:32px;min-width:32px}
html body #game-container #main-menu #bot-panel .look-swatch{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:50%!important;clip-path:none!important;background:var(--c)!important;border:3px solid #ffffff22!important;box-shadow:none}
html body #game-container #main-menu #bot-panel .look-swatch::before,html body #game-container #main-menu #bot-panel .look-swatch::after{display:none!important}
html body #game-container #main-menu #bot-panel .look-swatch[aria-pressed=true]{border-color:#fff!important;box-shadow:0 0 10px var(--c)}
#bot-panel .look-custom input{width:32px;height:32px;border-radius:50%;padding:0;border:2px solid #ffffff44;background:none}

/* Summary on BUILD/RISK/...: bot (drag to turn) with the star chart right beside it */
html body #game-container #main-menu #bot-panel .bot-profile.bot-profile-3d{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:178px}
#bot-panel .bot-profile-tag{position:absolute;left:6px;top:5px;z-index:2;pointer-events:none;text-shadow:0 0 6px #000}
#bot-panel .bot-profile-tag b{display:block;font-size:13px;color:#e8dcff}
#bot-panel .bot-profile-tag small{display:block;font-size:9px;color:#b9c3d3}
#bot-panel .bot-profile-radar{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
#bot-panel .bot-profile-radar .bot-radar{width:100%;max-height:100%}
#bot-panel .bot-profile-radar .bot-help{position:absolute;top:2px;right:2px}
#bot-panel .bot-profile-radar .bot-radar{width:125%!important;max-width:none!important;flex:none}

/* ===== Bot configure v5: consistent padding, no overlap, no scrolling on the settings tabs ===== */
html body #game-container #main-menu #bot-panel{padding:6px 10px 8px!important;gap:6px!important;box-sizing:border-box}
html body #game-container #main-menu #bot-panel>*{box-sizing:border-box;max-width:100%}
html body #game-container #main-menu #bot-panel .bot-profile{margin:0;width:100%}
html body #game-container #main-menu #bot-panel .tab-content{padding:4px 2px 6px!important;animation:cbTabIn .22s ease-out}
@keyframes cbTabIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* arrow rows: the game's 54px button minimum was making them overlap */
html body #game-container #main-menu #bot-panel .look-pickers{gap:6px}
html body #game-container #main-menu #bot-panel .look-row{grid-template-columns:38px minmax(0,1fr) 38px;height:40px;gap:6px}
html body #game-container #main-menu #bot-panel .look-row button{min-height:0!important;height:40px!important;width:100%!important;min-width:0!important;margin:0;transition:transform .12s,background .15s,box-shadow .15s}
html body #game-container #main-menu #bot-panel .look-row button:hover{background:#2a1c4a;box-shadow:0 0 10px #b789ff55}
html body #game-container #main-menu #bot-panel .look-row button:active{transform:scale(.88)}
html body #game-container #main-menu #bot-panel .look-row b{font-size:12px;animation:cbPop .25s ease-out}
@keyframes cbPop{from{transform:scale(.85);opacity:.4}to{transform:none;opacity:1}}
/* settings tabs: label left, options right, one column, no scroll */
html body #game-container #main-menu #bot-panel .tab-content[data-config-tab=risk],html body #game-container #main-menu #bot-panel .tab-content[data-config-tab=timing],html body #game-container #main-menu #bot-panel .tab-content[data-config-tab=charts]{display:flex;flex-direction:column;gap:0}
html body #game-container #main-menu #bot-panel .tab-content .bot-option-group{display:grid!important;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;padding:7px 0;margin:0;border:0;border-bottom:1px solid #2a2440;grid-column:auto!important}
html body #game-container #main-menu #bot-panel .tab-content .option-heading{display:flex;align-items:center;gap:4px;min-width:0}
html body #game-container #main-menu #bot-panel .tab-content .option-heading h3{font-size:10px;letter-spacing:1px;line-height:1.25;margin:0;color:#c9b2ff}
html body #game-container #main-menu #bot-panel .tab-content .bot-help{width:20px;height:20px;min-height:0!important;min-width:0!important;font-size:11px;padding:0}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid{display:grid!important;grid-template-columns:repeat(var(--choices,3),minmax(0,1fr))!important;gap:5px}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid button{min-height:38px!important;height:38px;font-size:11px!important;padding:0 2px!important;transition:transform .12s,box-shadow .15s}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid button:active{transform:scale(.94)}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid button:hover{box-shadow:0 0 10px #b789ff44}
/* BUILD: 2x2 style cards + compact signal rows */
html body #game-container #main-menu #bot-panel .style-intro{display:none}
html body #game-container #main-menu #bot-panel .style-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
html body #game-container #main-menu #bot-panel .style-row{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:6px 8px;border:1px solid #3a3150;border-radius:8px;background:#0c1120;transition:border-color .15s,transform .12s}
html body #game-container #main-menu #bot-panel .style-row.is-active{border-color:#b789ff;background:#1a1233;box-shadow:0 0 12px #b789ff33}
html body #game-container #main-menu #bot-panel .style-row:hover{transform:translateY(-1px)}
html body #game-container #main-menu #bot-panel .style-row h3{font-size:11px;margin:0}
html body #game-container #main-menu #bot-panel .style-row h3 small{display:block;font-size:8px;opacity:.7}
html body #game-container #main-menu #bot-panel .style-row p{display:none;margin:0;font-size:9px;line-height:1.3}
html body #game-container #main-menu #bot-panel .style-row.is-active p{display:block;color:#cdbbf5}
html body #game-container #main-menu #bot-panel .style-row button{min-height:32px!important;height:32px;font-size:10px!important;padding:0 4px!important}
html body #game-container #main-menu #bot-panel .signals-heading{font-size:10px;margin-top:6px}
html body #game-container #main-menu #bot-panel .signal-row{padding:4px 6px;min-height:0}
html body #game-container #main-menu #bot-panel .signal-row button{min-height:32px!important;height:32px;font-size:10px!important;padding:0 6px!important}
html body #game-container #main-menu #bot-panel .signal-copy h3{font-size:11px;margin:0}
html body #game-container #main-menu #bot-panel .signal-copy small{font-size:9px}
html body #game-container #main-menu #bot-panel .bot-config-tabs button{transition:transform .12s,background .15s,box-shadow .15s}
html body #game-container #main-menu #bot-panel .bot-config-tabs button:hover{box-shadow:0 0 10px #b789ff55}
html body #game-container #main-menu #bot-panel .bot-config-tabs button[aria-pressed=true]{box-shadow:0 0 14px #b789ff66;transform:translateY(-1px)}
html body #game-container #main-menu #bot-panel .bot-config-tabs button[aria-pressed=true] svg{filter:drop-shadow(0 0 4px #b789ff)}
html body #game-container #main-menu #bot-panel .style-row button{flex:none!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;width:100%}
html body #game-container #main-menu #bot-panel .style-row{min-height:0!important;height:auto!important}
html body #game-container #main-menu #bot-panel .style-row>div{flex:none}
html body #game-container #main-menu #bot-panel .build-seg{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 8px;border:1px solid #473b60;border-radius:10px;overflow:hidden}
html body #game-container #main-menu #bot-panel .build-seg button{min-height:34px!important;height:34px;font-size:11px!important;letter-spacing:1px;border:0!important;border-radius:0!important;clip-path:none!important;background:#0c1120!important;color:#8fa0b9;transition:background .18s,color .18s}
html body #game-container #main-menu #bot-panel .build-seg button[aria-pressed=true]{background:#2a1c4a!important;color:#e8dcff;box-shadow:inset 0 -2px 0 #b789ff}
html body #game-container #main-menu #bot-panel .build-seg button::before,html body #game-container #main-menu #bot-panel .build-seg button::after{display:none!important}

/* v6: the ? help button no longer overlaps the first option button */
html body #game-container #main-menu #bot-panel .tab-content .bot-option-group{grid-template-columns:104px minmax(0,1fr)!important;column-gap:10px!important}
html body #game-container #main-menu #bot-panel .tab-content .option-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:6px;width:100%;overflow:hidden}
html body #game-container #main-menu #bot-panel .tab-content .option-heading h3{overflow-wrap:anywhere;hyphens:none}
html body #game-container #main-menu #bot-panel .tab-content .option-heading .bot-help{position:static!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;margin:0!important;flex:none;justify-self:end}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid{min-width:0;overflow:visible}
/* v6: heading buttons (HOW TO PLAY / back) centred */
html body #game-container #main-menu #bot-panel .bot-panel-heading button{display:flex!important;align-items:center;justify-content:center;height:36px!important;min-height:0!important;padding:0 14px!important;line-height:1;white-space:nowrap}
html body #game-container #main-menu #bot-panel .bot-panel-heading button[aria-label="Back to menu"]{width:42px;padding:0!important}
html body #game-container #main-menu #bot-panel .bot-panel-heading-actions{display:flex;gap:6px;align-items:center}

/* ===== v7: phone readability. The game draws at 720px wide and shrinks to the screen (x0.54 on a 390px phone),
   so text must be ~16px+ here to read at ~9px on the phone. ===== */
html body #game-container #main-menu #bot-panel .bot-profile-radar{overflow:hidden}
html body #game-container #main-menu #bot-panel .bot-profile-radar .bot-radar{width:100%!important;max-width:100%!important}
html body #game-container #main-menu #bot-panel .bot-profile-radar .bot-radar text{font-size:15px}
html body #game-container #main-menu #bot-panel .bot-profile-radar .bot-help{position:absolute!important;top:4px!important;right:4px!important;left:auto!important;margin:0!important;width:26px!important;height:26px!important;min-width:0!important;min-height:0!important}
html body #game-container #main-menu #bot-panel .bot-profile-tag b{font-size:18px}
html body #game-container #main-menu #bot-panel .bot-profile-tag small{font-size:13px}
html body #game-container #main-menu #bot-panel .bot-tab-caption{font-size:15px;letter-spacing:4px;margin:0}
html body #game-container #main-menu #bot-panel .bot-config-tabs button svg{width:28px;height:28px}
/* LOOK rows */
html body #game-container #main-menu #bot-panel .bot-profile.bot-look-studio{height:268px}
html body #game-container #main-menu #bot-panel .look-row{height:46px;grid-template-columns:46px minmax(0,1fr) 46px}
html body #game-container #main-menu #bot-panel .look-row button{height:46px!important;font-size:18px!important}
html body #game-container #main-menu #bot-panel .look-row small{font-size:12px;letter-spacing:2px}
html body #game-container #main-menu #bot-panel .look-row b{font-size:17px}
html body #game-container #main-menu #bot-panel .look-swatch{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
html body #game-container #main-menu #bot-panel .look-custom input{width:44px;height:44px}
html body #game-container #main-menu #bot-panel .bot-build-note{font-size:15px;line-height:1.4}
html body #game-container #main-menu #bot-panel .tab-content .option-heading h3,html body #game-container #main-menu #bot-panel .bot-option-group>h3{font-size:16px!important}
/* settings rows */
html body #game-container #main-menu #bot-panel .tab-content .bot-option-group{grid-template-columns:150px minmax(0,1fr)!important;padding:8px 0}
html body #game-container #main-menu #bot-panel .tab-content .option-heading{grid-template-columns:minmax(0,1fr) 28px}
html body #game-container #main-menu #bot-panel .tab-content .option-heading h3{font-size:14px!important;letter-spacing:1px;line-height:1.2}
html body #game-container #main-menu #bot-panel .tab-content .option-heading .bot-help{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:15px}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid button{height:52px!important;min-height:52px!important;font-size:17px!important}
/* BUILD */
html body #game-container #main-menu #bot-panel .build-seg button{height:46px!important;min-height:46px!important;font-size:15px!important}
html body #game-container #main-menu #bot-panel .style-row h3{font-size:16px}
html body #game-container #main-menu #bot-panel .style-row h3 small{font-size:11px}
html body #game-container #main-menu #bot-panel .style-row p{font-size:13px}
html body #game-container #main-menu #bot-panel .style-row button{height:44px!important;min-height:44px!important;max-height:44px!important;font-size:15px!important}
html body #game-container #main-menu #bot-panel .signals-heading,html body #game-container #main-menu #bot-panel .signals-heading span{font-size:14px}
html body #game-container #main-menu #bot-panel .signals-heading button{height:40px!important;min-height:40px!important;font-size:13px!important}
html body #game-container #main-menu #bot-panel .signal-row{padding:6px 8px}
html body #game-container #main-menu #bot-panel .signal-copy h3{font-size:16px}
html body #game-container #main-menu #bot-panel .signal-copy small{font-size:12px}
html body #game-container #main-menu #bot-panel .signal-row button{height:40px!important;min-height:40px!important;font-size:14px!important}
html body #game-container #main-menu #bot-panel .bot-save-bar button{min-height:56px!important;height:56px;font-size:19px!important}
/* v7b: smallest texts up to >=15px (about 8px on a 390px phone) */
html body #game-container #main-menu #bot-panel .bot-roster span,html body #game-container #main-menu #bot-panel .bot-roster small,html body #game-container #main-menu #bot-panel .bot-roster i{font-size:15px!important;line-height:1.2}
html body #game-container #main-menu #bot-panel .bot-roster button{min-height:56px!important}
html body #game-container #main-menu #bot-panel .look-row small{font-size:14px!important;letter-spacing:1px}
html body #game-container #main-menu #bot-panel h3{font-size:max(15px,1em)}
html body #game-container #main-menu #bot-panel .bot-profile-tag small,html body #game-container #main-menu #bot-panel .style-row h3 small,html body #game-container #main-menu #bot-panel .style-row p,html body #game-container #main-menu #bot-panel .signal-copy small,html body #game-container #main-menu #bot-panel .product-kind,html body #game-container #main-menu #bot-panel .signals-heading,html body #game-container #main-menu #bot-panel .signals-heading span,html body #game-container #main-menu #bot-panel .bot-help,html body #game-container #main-menu #bot-panel .signal-levels button,html body #game-container #main-menu #bot-panel .signal-levels span{font-size:15px!important}
html body #game-container #main-menu #bot-panel .signals-heading button,html body #game-container #main-menu #bot-panel .signal-row button{font-size:15px!important}
/* upgrades: compact product rows so the 4 bot items fit */
html body #game-container #main-menu #bot-panel .compact-product{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 6px;margin:0}
html body #game-container #main-menu #bot-panel .compact-product h2{font-size:17px;margin:2px 0}
html body #game-container #main-menu #bot-panel .compact-product .product-unlock{min-height:48px!important;height:48px;font-size:15px!important;padding:0 12px!important}
html body #game-container #main-menu #bot-panel .tab-content[data-config-tab=upgrades] .bot-build-note{font-size:15px;margin:0 0 4px}
/* signals rows: one line each */
html body #game-container #main-menu #bot-panel .signal-row{display:grid!important;grid-template-columns:minmax(0,1fr) 30px auto auto;align-items:center;gap:6px;padding:4px 6px!important}
html body #game-container #main-menu #bot-panel .signal-copy small{display:none}
html body #game-container #main-menu #bot-panel .signal-list{gap:4px}
/* v7c */
html body #game-container #main-menu #bot-panel .timer-explanation p,html body #game-container #main-menu #bot-panel .timer-timeline,html body #game-container #main-menu #bot-panel .timer-timeline *,html body #game-container #main-menu #bot-panel .mini-market small,html body #game-container #main-menu #bot-panel .compact-hint,html body #game-container #main-menu #bot-panel .record-totals small,html body #game-container #main-menu #bot-panel .bot-history-row,html body #game-container #main-menu #bot-panel .bot-history-row *{font-size:15px!important}
html body #game-container #main-menu #bot-panel .bot-choice-grid button small{font-size:14px!important}
html body #game-container #main-menu #bot-panel .timer-explanation h2{font-size:20px;margin:0}
html body #game-container #main-menu #bot-panel .timer-explanation{margin:0 0 6px}
html body #game-container #main-menu #bot-panel .build-signals>.bot-build-note,html body #game-container #main-menu #bot-panel .build-signals>p{display:none}
html body #game-container #main-menu #bot-panel .signals-heading{margin:0 0 4px}
html body #game-container #main-menu #bot-panel .style-list{gap:5px}
html body #game-container #main-menu #bot-panel .style-row{padding:5px 8px}
html body #game-container #main-menu #bot-panel .build-seg{margin-bottom:6px}
html body #game-container #main-menu #bot-panel .memory-controls{margin-top:6px}
html body #game-container #main-menu #bot-panel .signal-footnote{display:none}
html body #game-container #main-menu #bot-panel .tab-content .bot-option-group[data-group=lookTint]{grid-template-columns:1fr!important;row-gap:8px}
html body #game-container #main-menu #bot-panel .look-swatches{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:6px}
html body #game-container #main-menu #bot-panel .bot-profile-tag{top:auto!important;bottom:0!important;left:0!important;right:0;padding:14px 8px 6px;background:linear-gradient(transparent,#0a0614ee);border-radius:0 0 12px 12px}

/* ===== v8: tabs on top with labels, one fixed hero size on every tab, new BUILD, HOW TO PLAY ===== */
html body #game-container #main-menu #bot-panel .bot-tab-caption{display:none}
html body #game-container #main-menu #bot-panel .bot-config-tabs.bot-tabs-top{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px;flex:none;margin:2px 0}
html body #game-container #main-menu #bot-panel .bot-tabs-top button{height:66px!important;min-height:66px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0!important}
html body #game-container #main-menu #bot-panel .bot-tabs-top button span{font-size:13px;letter-spacing:.5px;line-height:1}
html body #game-container #main-menu #bot-panel .bot-tabs-top button svg{width:26px;height:26px}
html body #game-container #main-menu #bot-panel .bot-tabs-top button[aria-pressed=true]{color:#fff!important;background:#2a1c4a!important}
/* hero: identical size on every tab */
html body #game-container #main-menu #bot-panel .bot-profile.bot-profile-3d,html body #game-container #main-menu #bot-panel .bot-profile.bot-look-studio{height:268px!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;padding:6px!important;gap:8px!important}
html body #game-container #main-menu #bot-panel .bot-profile-radar{flex-direction:column;justify-content:center;gap:2px}
html body #game-container #main-menu #bot-panel .radar-cap{display:flex;align-items:center;gap:8px;font-size:14px;letter-spacing:2px;color:#c9b2ff}
html body #game-container #main-menu #bot-panel .radar-cap .bot-help{position:static!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
/* HOW TO PLAY: round ? icon + text, same height as the back button */
html body #game-container #main-menu #bot-panel .bot-panel-heading button{height:48px!important}
html body #game-container #main-menu #bot-panel .htp-btn{gap:10px;padding:0 16px 0 10px!important;font-size:16px!important}
html body #game-container #main-menu #bot-panel .htp-q{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:2px solid currentColor;font-size:15px;font-weight:700;line-height:1;flex:none}
html body #game-container #main-menu #bot-panel .bot-panel-heading button[aria-label="Back to menu"]{width:56px!important}
/* BUILD */
html body #game-container #main-menu #bot-panel .bld-block{margin:0 0 10px}
html body #game-container #main-menu #bot-panel .bld-title{display:flex;align-items:center;gap:8px;font-size:15px;letter-spacing:2px;color:#c9b2ff;margin:0 0 6px}
html body #game-container #main-menu #bot-panel .bld-title .bot-help{position:static!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
html body #game-container #main-menu #bot-panel .bld-mini{margin-left:auto;height:38px!important;min-height:38px!important;font-size:13px!important;padding:0 12px!important}
html body #game-container #main-menu #bot-panel .bld-method{height:54px!important}
html body #game-container #main-menu #bot-panel .bld-method button{height:54px!important}
html body #game-container #main-menu #bot-panel .bld-method b{font-size:20px}
html body #game-container #main-menu #bot-panel .bld-method small{font-size:12px!important}
html body #game-container #main-menu #bot-panel .bld-desc{display:flex;align-items:center;gap:10px;margin-top:6px}
html body #game-container #main-menu #bot-panel .bld-desc p{flex:1;margin:0;font-size:15px;line-height:1.35;color:#cdbbf5}
html body #game-container #main-menu #bot-panel .bld-unlock{height:44px!important;min-height:44px!important;font-size:15px!important;padding:0 16px!important;flex:none}
html body #game-container #main-menu #bot-panel .bld-on{flex:none;font-size:15px;color:#81f3bb}
html body #game-container #main-menu #bot-panel .sig-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
html body #game-container #main-menu #bot-panel .sig-chip{height:74px!important;min-height:74px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px!important;text-align:center}
html body #game-container #main-menu #bot-panel .sig-chip b{font-size:15px}
html body #game-container #main-menu #bot-panel .sig-chip small{font-size:11px!important;line-height:1.15;color:#9aa6b8}
html body #game-container #main-menu #bot-panel .sig-chip[aria-pressed=true]{border-color:#81f3bb!important;background:#0f2a22!important}
html body #game-container #main-menu #bot-panel .sig-chip[aria-pressed=true] small{color:#81f3bb}
html body #game-container #main-menu #bot-panel .sig-chip small{font-size:13px!important}
/* v8b: fit every tab without scrolling */
html body #game-container #main-menu #bot-panel .bot-profile.bot-profile-3d,html body #game-container #main-menu #bot-panel .bot-profile.bot-look-studio{height:236px!important}
html body #game-container #main-menu #bot-panel .look-row{height:40px!important}
html body #game-container #main-menu #bot-panel .look-row button{height:40px!important}
html body #game-container #main-menu #bot-panel .look-pickers{gap:4px!important}
html body #game-container #main-menu #bot-panel .bot-tabs-top button{height:58px!important;min-height:58px!important}
html body #game-container #main-menu #bot-panel .tab-content .bot-option-group{padding:5px 0!important}
html body #game-container #main-menu #bot-panel .tab-content .bot-choice-grid button{height:46px!important;min-height:46px!important}
html body #game-container #main-menu #bot-panel .timer-explanation p{display:none}
html body #game-container #main-menu #bot-panel .timer-explanation h2{font-size:17px}
html body #game-container #main-menu #bot-panel .bld-method small{font-size:14px!important}
html body #game-container #main-menu #bot-panel .compact-product{padding:4px 4px!important}
html body #game-container #main-menu #bot-panel .compact-product .product-kind{display:none}
html body #game-container #main-menu #bot-panel .compact-product h2{font-size:16px!important}
html body #game-container #main-menu #bot-panel .compact-product .product-unlock{height:42px!important;min-height:42px!important}
html body #game-container #main-menu #bot-panel .tab-content[data-config-tab=upgrades] .bot-build-note{display:none}
html body #game-container #main-menu #bot-panel .bot-save-bar button{height:52px!important;min-height:52px!important}
html body #game-container #main-menu #bot-panel .mini-market{max-height:110px;overflow:hidden}
/* v8c: locked chips and MORE SLOTS readable on phones (game skin dims data-buy buttons) */
html body #game-container #main-menu #bot-panel .sig-chip[data-buy],html body #game-container #main-menu #bot-panel .bld-mini{opacity:1!important;filter:none!important}
html body #game-container #main-menu #bot-panel .sig-chip[data-buy] b{color:#c9d2e0!important}
html body #game-container #main-menu #bot-panel .sig-chip[data-buy] small{color:#e8c46a!important}
html body #game-container #main-menu #bot-panel .bld-mini{color:#e8c46a!important;border-color:#e8c46a66!important}
/* Arena v2 (2026-10-27): live chart, one slim bottom bar, settings in a slide-up sheet */
#bot-arena .ba-stage{min-height:300px;max-height:none}
#bot-arena .ba-chart{position:relative;flex:none;height:190px;border-radius:14px;border:2px solid var(--ba-dim);background:linear-gradient(180deg,#0f0820,#0a0614);overflow:hidden}
#bot-arena .ba-chart canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#bot-arena .ba-chart-tag{position:absolute;left:12px;top:8px;font-size:15px;letter-spacing:2px;color:#aab4c3;pointer-events:none}
#bot-arena .ba-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:17px;letter-spacing:1px;color:#8f9bb0;pointer-events:none}
#bot-arena .ba-chart-empty[hidden]{display:none}
#bot-arena .ba-thought{font-size:18px}
#bot-arena .ba-strip small{font-size:15px}
#bot-arena .ba-bar{display:flex;gap:12px;flex:none}
#bot-arena .ba-bar button{min-height:76px!important;height:76px;margin:0!important;border-radius:14px;clip-path:none!important}
#bot-arena .ba-setup{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:6px 16px;border:2px solid #ffffff26;background:#ffffff0a;text-align:left}
#bot-arena .ba-setup small{font-size:15px;letter-spacing:2px;color:#8f9bb0}
#bot-arena .ba-setup b{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#bot-arena .ba-setup b::after{content:'  ▴';color:var(--ba)}
#bot-arena .ba-go{flex:1.2 1 0;padding:0 12px;font-size:24px}
#bot-arena .ba-go[data-ba-mode=stop]{font-size:22px}
#bot-arena .ba-sheet{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;background:#05030bb0;animation:baFade .2s ease-out}
#bot-arena .ba-sheet[hidden]{display:none}
#bot-arena .ba-sheet-card{width:100%;display:flex;flex-direction:column;gap:16px;padding:14px 24px 30px;border-radius:24px 24px 0 0;border-top:3px solid var(--ba);background:#140b28;box-shadow:0 -20px 60px #000a;animation:baSlide .26s cubic-bezier(.2,.9,.3,1)}
#bot-arena .ba-sheet-grip{align-self:center;width:70px;height:6px;border-radius:3px;background:#ffffff33}
#bot-arena .ba-row small{font-size:15px}
#bot-arena .ba-chips button{min-height:56px!important;font-size:19px;clip-path:none!important;margin:0!important}
#bot-arena .ba-note{font-size:16px}
#bot-arena .ba-sheet-done{min-height:64px!important;border-radius:14px;border:2px solid var(--ba);background:var(--ba-dim);font-size:20px;font-weight:700;letter-spacing:2px;clip-path:none!important;margin:0!important}
@keyframes baSlide{from{transform:translateY(100%)}to{transform:none}}
@keyframes baFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#bot-arena .ba-sheet,#bot-arena .ba-sheet-card{animation:none}}
/* Arena v3 (2026-10-27): nothing outside the phone frame, backdrop, chart head with price + signal, ±5000 bar, camera */
body.cb-bot-arena-open .cbs{display:none!important}
body.cb-bot-arena-open{background:#05030b!important}
#bot-arena .ba-stage{background:#0a0614}
#bot-arena .ba-stage::before{z-index:1}
#bot-arena .ba-plate,#bot-arena .ba-timer,#bot-arena .ba-pop,#bot-arena .ba-banner{z-index:2}
#bot-arena .ba-plate-boss b{font-size:24px;color:#ffd166}
#bot-arena .ba-view{position:absolute;right:14px;bottom:14px;z-index:2;width:58px;height:58px;min-height:58px!important;margin:0!important;border-radius:50%;clip-path:none!important;border:2px solid var(--ba-dim);background:#0b0618cc;font-size:30px;line-height:1;padding:0}
#bot-arena .ba-drag-hint{position:absolute;left:0;right:0;bottom:22px;z-index:2;text-align:center;font-size:15px;letter-spacing:2px;color:#ffffff99;pointer-events:none;text-shadow:0 0 8px #000}
#bot-arena .ba-drag-hint[hidden]{display:none}
#bot-arena .ba-banner[data-result=count]{border-color:var(--ba)}#bot-arena .ba-banner[data-result=count] b{font-size:72px;color:#fff}
#bot-arena .ba-chart{height:230px}
#bot-arena .ba-chart canvas{top:40px;bottom:26px;height:auto}
#bot-arena .ba-chart-head{position:absolute;left:12px;right:12px;top:6px;height:30px;display:flex;align-items:center;gap:10px;pointer-events:none}
#bot-arena .ba-chart-head .ba-chart-tag{position:static;flex:none}
#bot-arena .ba-signal{flex:1;text-align:center;font-size:15px;font-weight:700;letter-spacing:1px;padding:3px 8px;border-radius:8px;background:#ffffff0d;color:#aab4c3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bot-arena .ba-signal[data-state=up]{background:#00ff4122;color:#00ff41}
#bot-arena .ba-signal[data-state=down]{background:#ff4d6a22;color:#ff4d6a}
#bot-arena .ba-signal[data-state=warm]{color:#ffd166}
#bot-arena .ba-price{flex:none;font-size:22px;color:#fff}
#bot-arena .ba-legend{position:absolute;left:12px;bottom:4px;font-size:14px;letter-spacing:1px;color:#8f9bb0;display:flex;align-items:center;gap:6px;pointer-events:none}
#bot-arena .ba-legend i{display:inline-block;width:18px;height:3px;border-radius:2px;margin-left:8px}
#bot-arena .ba-legend .l-fast{background:#00f0ff;margin-left:0}#bot-arena .ba-legend .l-slow{background:#ffb347}#bot-arena .ba-legend .l-dot{width:10px;height:10px;border-radius:50%;background:#b789ff}
#bot-arena .ba-meter-wrap{display:flex;align-items:center;gap:8px;flex:none}
#bot-arena .ba-meter-wrap small{font-size:14px;color:#8f9bb0;flex:none}
#bot-arena .ba-meter{flex:1;height:16px}
#bot-arena .ba-chart canvas{top:40px;bottom:auto;height:calc(100% - 68px)!important}
#bot-arena .ba-signal{display:flex;justify-content:center;gap:10px}
#bot-arena .ba-signal span{color:#8f9bb0}
#bot-arena .ba-signal span[data-d="1"]{color:#00ff41}#bot-arena .ba-signal span[data-d="-1"]{color:#ff4d6a}#bot-arena .ba-signal span[data-d="w"]{color:#ffd166}
#bot-arena .ba-signal[data-state=up]{box-shadow:inset 0 0 0 2px #00ff4188}#bot-arena .ba-signal[data-state=down]{box-shadow:inset 0 0 0 2px #ff4d6a88}
