/* Local practice has its own entry and setup dialog; game layout stays unchanged. */
#lobby .bot-entry{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;margin:16px 0;padding:16px;border:1px solid #a8c4d5;border-radius:13px;background:linear-gradient(115deg,#eaf6f4,#f0f5ff)}
#lobby .bot-entry-art{display:block;width:54px;height:54px;color:#256779}
#lobby .bot-entry-art svg{display:block;width:100%;height:100%}
#lobby .bot-entry-copy strong{font-size:1.05rem;letter-spacing:-.02em}
#lobby .bot-entry-copy p{margin:5px 0 0;color:var(--muted-foreground);font-size:.84rem;line-height:1.4}
#lobby .bot-entry-button{min-width:120px;font-size:.9rem;font-weight:750;white-space:nowrap;border-color:#39778e;background:#fff;color:#215870}
#lobby .bot-entry-button:hover:not(:disabled){background:#e0f1f3}
.bot-dialog{width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:1px solid var(--edge);border-radius:18px;background:var(--surface);color:var(--foreground);box-shadow:0 24px 80px #07152a66;overscroll-behavior:contain}
.bot-dialog::backdrop{background:#07152aaa}
.bot-dialog .bot-form{margin:0}
.bot-dialog .bot-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid var(--panel-edge);background:var(--surface)}
.bot-dialog .bot-dialog-kicker{display:block;margin-bottom:5px;color:var(--muted-foreground);font-size:.68rem;font-weight:800;letter-spacing:.12em}
.bot-dialog h2{margin:0;font-size:1.4rem;letter-spacing:-.035em;line-height:1.25}
.bot-dialog .bot-dialog-header p{margin:7px 0 0;font-size:.86rem;color:var(--muted-foreground)}
.bot-dialog .bot-dialog-close{flex:none;min-width:60px;min-height:40px;font-size:.84rem}
.bot-dialog .bot-dialog-body{display:grid;gap:24px;padding:21px 22px}
.bot-dialog fieldset{min-width:0;margin:0;padding:0;border:0}
.bot-dialog legend{padding:0;font-size:1rem;font-weight:800;letter-spacing:-.015em}
.bot-dialog .bot-field-help{margin:6px 0 12px;color:var(--muted-foreground);font-size:.8rem;line-height:1.5}
.bot-dialog .bot-difficulty-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bot-dialog .bot-difficulty-card{position:relative;display:block;min-width:0;cursor:pointer}
.bot-dialog .bot-difficulty-card input{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0;clip-path:inset(50%);overflow:hidden}
.bot-dialog .bot-choice-body{display:grid;align-content:start;gap:7px;min-height:123px;padding:12px;border:1px solid var(--edge);border-radius:12px;background:var(--surface);transition:border-color .15s,background .15s,box-shadow .15s}
.bot-dialog .bot-choice-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.bot-dialog .bot-choice-dots{display:inline-flex;gap:4px}
.bot-dialog .bot-choice-dots i{display:block;width:7px;height:7px;border:1px solid currentColor;border-radius:50%;color:var(--muted-foreground);opacity:.5}
.bot-dialog .bot-choice-dots i.is-filled{background:currentColor;opacity:1}
.bot-dialog .bot-choice-check{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--primary);color:var(--primary-text);font-size:.8rem;font-weight:800;opacity:0}
.bot-dialog .bot-choice-body strong{font-size:1.03rem;line-height:1.2}
.bot-dialog .bot-choice-hint{font-size:.74rem;line-height:1.4;color:var(--muted-foreground);word-break:keep-all}
.bot-dialog .bot-difficulty-card input:checked+.bot-choice-body{border-color:var(--primary);background:#edf3ff;box-shadow:inset 0 0 0 1px var(--primary)}
.bot-dialog .bot-difficulty-card input:checked+.bot-choice-body .bot-choice-check{opacity:1}
.bot-dialog .bot-difficulty-card input:focus-visible+.bot-choice-body{outline:3px solid #e6af1e;outline-offset:3px}
.bot-dialog .bot-difficulty-card:hover input:not(:disabled)+.bot-choice-body{border-color:var(--primary)}
.bot-dialog fieldset:disabled .bot-difficulty-card{cursor:default}
.bot-dialog fieldset:disabled .bot-choice-body{opacity:.6}
.bot-dialog .bot-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.bot-dialog .bot-field{display:grid;gap:7px;min-width:0;font-size:.85rem;font-weight:700}
.bot-dialog .bot-field select{width:100%;min-width:0;min-height:45px;font-size:.87rem;font-weight:500;padding:7px 10px}
.bot-dialog .bot-settings-note{margin:12px 0 0;font-size:.74rem;line-height:1.5;color:var(--muted-foreground)}
.bot-dialog .bot-dialog-footer{position:sticky;bottom:0;z-index:2;padding:14px 22px 18px;border-top:1px solid var(--panel-edge);background:var(--surface)}
.bot-dialog .bot-start-button{width:100%;min-height:48px;font-size:.98rem;font-weight:800;letter-spacing:-.01em}
.bot-dialog .bot-start-error{margin:0 0 10px;color:var(--error);font-size:.84rem;line-height:1.5}
.bot-dialog :is(button,select):focus-visible,#lobby .bot-entry-button:focus-visible{outline:3px solid #e6af1e;outline-offset:3px}
:root[data-theme="dark"] #lobby .bot-entry{border-color:#51748b;background:linear-gradient(115deg,#183b40,#25354d)}
:root[data-theme="dark"] #lobby .bot-entry-art{color:#9cdeeb}
:root[data-theme="dark"] #lobby .bot-entry-button{border-color:#7db0c5;background:#244450;color:#d6f5ff}
:root[data-theme="dark"] #lobby .bot-entry-button:hover:not(:disabled){background:#305966}
:root[data-theme="dark"] .bot-dialog .bot-difficulty-card input:checked+.bot-choice-body{background:#2d4161}
@media(max-width:540px){
 #lobby .bot-entry{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:13px}
 #lobby .bot-entry-art{width:44px;height:44px}
 #lobby .bot-entry-button{grid-column:1/-1;width:100%;min-height:44px}
 .bot-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}
 .bot-dialog .bot-dialog-header{gap:12px;padding:16px 15px 14px}
 .bot-dialog h2{font-size:1.25rem}
 .bot-dialog .bot-dialog-body{gap:21px;padding:18px 15px}
 .bot-dialog .bot-dialog-header p{font-size:.78rem}
 .bot-dialog .bot-field-help{font-size:.75rem}
 .bot-dialog .bot-difficulty-choices{gap:6px}
 .bot-dialog .bot-choice-body{gap:7px;min-height:121px;padding:10px 8px}
 .bot-dialog .bot-choice-body strong{font-size:.95rem}
 .bot-dialog .bot-choice-hint{font-size:.69rem}
 .bot-dialog .bot-choice-check{width:18px;height:18px;font-size:.7rem}
 .bot-dialog .bot-fields{gap:13px 10px}
 .bot-dialog .bot-field{font-size:.79rem}
 .bot-dialog .bot-field select{font-size:.81rem;padding-inline:7px}
 .bot-dialog .bot-dialog-footer{padding:12px 15px 15px}
}
@media(max-width:340px){.bot-dialog .bot-fields{grid-template-columns:minmax(0,1fr)}.bot-dialog .bot-choice-body{min-height:130px}}
@media(prefers-reduced-motion:reduce){.bot-dialog .bot-choice-body{transition:none}}
