/* Raised marble boards, real transparent botanical artwork, original functional cells. */
.b3-match{max-width:1120px;background:linear-gradient(145deg,#0b1831f5,#21112df2)!important;border-color:#b7994866!important}
.b3-stage{position:relative;isolation:isolate;border:1px solid #c8ae62;border-radius:28px;background:linear-gradient(#10122a00,#06091633),url('img/botanical-v228/night-garden.png') center/cover;padding:11% 2% 8%;margin:10px -8px 32px;box-shadow:0 0 25px #2ed9e52b,inset 0 0 50px #05091988;perspective:1200px;overflow:visible}
.b3-arena-label{position:absolute;top:3%;left:0;right:0;text-align:center;letter-spacing:.24em;color:#ffe09a;font:900 clamp(9px,1.5vw,14px)/1.3 system-ui!important;text-shadow:0 2px 5px #000,0 0 14px #ffe18c}
.b3-match .bp-board{width:86%;max-width:790px;margin:0 auto;border:12px solid #ce9d42;border-radius:10px;overflow:visible;transform:rotateX(25deg);transform-origin:center;box-shadow:0 0 0 3px #44254d,0 0 0 5px #f8d477,0 17px 0 4px #24112e,0 22px 0 4px #aa752a,0 25px 0 4px #25defa,0 35px 25px 10px #000a;isolation:auto;background:#281830;gap:0}
.b3-match .bp-cell{padding:0!important;border:1px solid #d8b66988!important;overflow:visible;background-image:linear-gradient(130deg,#ffffff08 0%,transparent 40%,#ffffff0b 41%,transparent 48%,#fff1 80%,transparent)!important;box-shadow:inset 0 1px 12px #0004;transition:background-color .18s,box-shadow .18s}
.b3-match .bp-cell.bp-light{background-color:#146068}.b3-match .bp-cell.bp-dark{background-color:#291a42}
.b3-match .bp-cell.bp-selected{background-color:#86601c!important;box-shadow:inset 0 0 0 3px #ffe6a0,0 0 20px #ffe271aa;z-index:5}
.b3-match .bp-cell.bp-last{outline:2px solid #fff7;outline-offset:-3px}
.b3-match .bp-cell.bp-legal::after,.b3-match .bp-cell.bp-hint::after{inset:34%;background:#c7fff4;box-shadow:0 0 8px #fff,0 0 20px #17f5df;z-index:8}
.b3-match .bp-cell.bp-legal:has(.bp-piece)::after{inset:3%;background:transparent;border:3px solid #8affec}
.b3-match .bp-piece.b3-piece{position:absolute;left:4%;bottom:8%;width:92%;height:100%;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;transform:scaleY(1.1);transform-origin:center bottom;z-index:3;filter:drop-shadow(0 5px 3px #0009);pointer-events:none}
.b3-art{position:absolute;bottom:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.b3-piece .b3-P{height:85%}.b3-piece .b3-R{height:115%}.b3-piece .b3-N{height:125%}.b3-piece .b3-B{height:140%}.b3-piece .b3-Q{height:130%}.b3-piece .b3-K{height:155%}.b3-piece .b3-checker{height:110%}
.b3-match .bp-board .bp-cell .bp-role{right:2%;bottom:-5%;width:clamp(13px,1.7vw,21px);height:clamp(13px,1.7vw,21px);font-size:clamp(8px,1.2vw,12px)!important;box-shadow:0 2px 5px #0008;z-index:5}
.b3-match .bp-board .bp-cell .bp-coord{z-index:6;color:#fff9!important;text-shadow:0 1px 3px #000;font-size:8px!important}
.b3-team-icon{position:relative;display:inline-block;width:48px;height:62px;flex:none}.b3-team-icon .b3-art{height:100%;filter:drop-shadow(0 0 6px #41dbed66)}
.b3-match .bp-teams{justify-content:space-between;max-width:750px;margin:12px auto;padding:12px 20px;border:1px solid #8ba7b344;border-radius:18px;background:#081126aa}
.b3-match .bp-status{background:#09162ce8;border:1px solid #d6bd7166;border-radius:12px;margin:10px auto 14px;max-width:790px}
.b3-match .bp-actions{position:relative;z-index:2}.b3-match .bp-actions button{border-color:#4ec9dd88}
@media(max-width:640px){.b3-match{padding:10px!important}.b3-stage{margin:10px -7px 22px;padding:12% 1% 10%;border-radius:16px;perspective:1000px}.b3-match .bp-board{width:94%;max-width:none;margin:0 auto;border-width:5px;transform:rotateX(14deg);box-shadow:0 0 0 2px #f6cb70,0 9px 0 2px #24112e,0 12px 0 2px #b38b45,0 14px 0 2px #29def3,0 22px 15px #000b}.b3-match .bp-board .bp-cell .bp-coord{font-size:6px!important;left:1px;bottom:1px}.b3-match .bp-board .bp-cell .bp-role{width:12px;height:12px;font-size:7px!important}.b3-match .bp-teams{padding:6px 8px;gap:6px}.b3-team-icon{width:32px;height:43px}.b3-match .bp-team{gap:4px}.b3-match .bp-team small{font-size:9px}.b3-match .bp-rules{font-size:12px;line-height:1.4}.b3-match .bp-status{font-size:14px;min-height:44px;padding:8px}.b3-match .bp-cell:focus-visible{outline-width:2px}.b3-match .bp-piece.b3-piece{transform:scaleY(1.04)}}
@media(prefers-reduced-motion:reduce){.b3-match .bp-cell{transition:none}}
/* Keep the complete desktop board within a typical laptop viewport. */
@media(min-width:641px){.b3-match .bp-board{max-width:600px}.b3-stage{padding-top:9%;padding-bottom:5%}}
