.bp-setup,.bp-match{width:100%;max-width:980px;margin:0 auto;padding:22px!important;color:#f4f4ff;background:linear-gradient(140deg,#101a35ed,#160e2ded)!important}
.bp-setup h2,.bp-match h2{font-size:clamp(27px,4vw,42px);line-height:1.1;margin-bottom:12px}.bp-setup p,.bp-rules{line-height:1.5;color:#ddd7ee}.bp-setup h3{margin:22px 0 10px;font-size:20px}.bp-two,.bp-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bp-levels{grid-template-columns:repeat(3,minmax(0,1fr))}.bp-two img{height:90px;width:auto;object-fit:contain}.bp-levels strong{color:#ffe38c;font-size:20px;display:block;margin:5px}.bp-levels small{line-height:1.45}
.bp-setup .opt[aria-pressed=true]{border-color:#ffe18b;box-shadow:0 0 0 2px #f7c94866,0 0 18px #f7c94833}.bp-color-key{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;font-weight:900;margin:12px 0}.bp-gold{color:#ffe38b}.bp-cyan{color:#37e2ff}
.bp-plants{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.bp-pick{min-width:0;padding:8px!important;gap:5px!important}.bp-pick b{font-size:14px}.bp-sprite{display:block;width:100%;aspect-ratio:1;background-image:url('img/botanical-v227/plant-pieces.png');background-size:400% 300%;background-repeat:no-repeat;pointer-events:none}.bp-pick .bp-sprite{width:100%;max-width:110px;margin:auto}.bp-opponent{display:flex;align-items:center;gap:12px;justify-content:center;margin:18px 0;color:#37e2ff;font-weight:800}.bp-opponent select{max-width:60%;background:#081c32;border:1px solid #37e2ff;color:white;padding:12px;border-radius:12px;font:inherit}.bp-learn{display:flex;align-items:center;gap:10px;padding:18px 0}.bp-learn input{width:24px;height:24px;accent-color:#f7c948}
.bp-teams{display:flex;justify-content:center;gap:20px;margin:12px 0}.bp-team{display:flex;align-items:center;gap:8px;font-weight:900}.bp-team .bp-sprite{width:60px;flex:none}.bp-team small{display:block;font-size:12px;line-height:1.4}.bp-status{min-height:52px;display:grid;place-items:center;text-align:center;font-size:18px;font-weight:900;padding:10px;color:#fff1b3}
.bp-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,640px);aspect-ratio:1;margin:auto;border:3px solid #e5cf76;border-radius:10px;overflow:hidden;box-shadow:0 0 0 4px #122538,0 0 32px #18e0ff33;isolation:isolate}
.bp-board.bp-three{grid-template-columns:repeat(3,minmax(0,1fr));max-width:500px}.bp-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;aspect-ratio:1;padding:3px;border:1px solid #ffffff12;border-radius:0;background:#122b40;color:#fff;cursor:pointer}.bp-cell.bp-dark{background:#29213c}.bp-cell.bp-light{background:#123548}.bp-cell:focus-visible{outline:3px solid #fff;outline-offset:-4px;z-index:4}.bp-cell.bp-selected{box-shadow:inset 0 0 0 3px #ffe787;background:#5a4923}.bp-cell.bp-legal::after,.bp-cell.bp-hint::after{content:'';position:absolute;inset:32%;border-radius:50%;background:#79ffcd;box-shadow:0 0 12px #4fffd5;opacity:.9;pointer-events:none}.bp-cell.bp-legal:has(.bp-piece)::after{inset:4%;background:none;border:3px solid #7affd3}.bp-cell.bp-last{outline:2px solid #ffffff77;outline-offset:-2px}
.bp-piece{position:relative;display:block;width:90%;height:90%;border-radius:50%;background:#060d1a66;border:2px solid;pointer-events:none}.bp-piece .bp-sprite{position:absolute;width:100%;height:100%;inset:0}.bp-side-w{border-color:#ffdf6a;box-shadow:0 0 9px #ffdb5b77}.bp-side-b{border-color:#22dcff;box-shadow:0 0 9px #22dcff77}.bp-role{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;width:clamp(16px,2vw,25px);height:clamp(16px,2vw,25px);border-radius:50%;font:900 clamp(10px,1.4vw,16px) system-ui,sans-serif;color:#06101c;background:#ffe38b;border:1px solid #fff4c9}.bp-side-b .bp-role{background:#37e2ff;border-color:#b8f6ff}.bp-crown{font-size:clamp(13px,2vw,22px)}.bp-coord{position:absolute;left:2px;bottom:1px;font:700 8px system-ui,sans-serif;color:#ffffff99;pointer-events:none}.bp-three .bp-piece{width:78%;height:78%}.bp-actions{margin:18px 0;flex-wrap:wrap}.bp-actions .btn{min-height:44px}.bp-guide{padding:14px;border:1px solid #4bcddd55;border-radius:14px;font-size:14px;line-height:1.6}.bp-guide summary{font-weight:900;cursor:pointer}.bp-guide p{margin-top:10px}.bp-finale,.bp-promotion{margin:15px 0;padding:20px;border:2px solid #ffe38b;border-radius:20px;background:#131b39;text-align:center}.bp-finale h3{font-size:26px;color:#ffe38b}.bp-finale p{margin:10px}.bp-match[data-theme=moon]{box-shadow:0 0 24px #b79bff44}.bp-match[data-theme=gold]{border-color:#f7c948;box-shadow:0 0 24px #f7c94844}
@media(max-width:640px){.bp-setup,.bp-match{padding:12px!important}.bp-plants{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.bp-levels{grid-template-columns:1fr;gap:8px}.bp-levels .opt{padding:12px}.bp-team .bp-sprite{width:42px}.bp-teams{gap:10px}.bp-team{font-size:14px}.bp-team small{font-size:10px}.bp-cell{padding:1px}.bp-piece{border-width:2px;width:92%;height:92%}.bp-status{font-size:16px}.bp-role{width:16px;height:16px;font-size:10px;right:-2px;bottom:-1px}.bp-coord{font-size:7px}.bp-actions{gap:8px}.bp-actions .btn{font-size:12px;padding:9px 10px}.bp-pick b{font-size:11px}.bp-opponent{font-size:14px}.bp-rules{font-size:14px}}
.bp-plants .bp-pick b{font-size:clamp(10px,1.7vw,14px)!important;line-height:1.2;overflow-wrap:anywhere;text-align:center}
.bp-sprite.bp-sparkle{filter:drop-shadow(0 0 6px #ffe38b)}
.bp-board .bp-cell .bp-coord{font:700 8px/1 system-ui,sans-serif!important;color:#ffffff80!important;left:2px;bottom:2px}
.bp-board .bp-cell .bp-role{font:900 clamp(10px,1.4vw,16px)/1 system-ui,sans-serif!important;color:#06101c!important}
@media(max-width:640px){.world>.ui:has(.bp-match){padding:8px 4px}.bp-match .bp-board{width:calc(100% + 14px);max-width:none;margin-left:-7px;margin-right:-7px}.bp-board .bp-cell .bp-coord{font-size:7px!important}.bp-board .bp-cell .bp-role{font-size:10px!important}}
