/* Classic graph-paper game surface. All rules are scoped to the BUD page. */
.bud-page{--ink:#292820;--muted:#706c58;--line:#c8c3aa;--green:#78a946;margin:0;background:#e8e5d8;color:var(--ink);font-family:"Comic Sans MS","Chalkboard SE",KaiTi,"Microsoft YaHei",sans-serif;font-size:16px;color-scheme:light}
.bud-page *{box-sizing:border-box}.bud-page [hidden]{display:none!important}.bud-page button,.bud-page select,.bud-page input{font:inherit;color:inherit}.bud-page button,.bud-page summary{cursor:pointer}.bud-page button:disabled{opacity:.5;cursor:wait}.bud-page a{color:inherit;text-decoration:none}.bud-page a:hover{text-decoration:underline}.bud-page button:focus-visible,.bud-page a:focus-visible,.bud-page select:focus-visible,.bud-page summary:focus-visible{outline:3px solid #598b32;outline-offset:4px}
.bud-shell{max-width:940px;margin:0 auto;padding:0 24px}.bud-nav{display:flex;justify-content:space-between;align-items:center;padding:17px 0;font-size:14px;color:var(--muted)}.bud-nav>span{font-weight:bold;letter-spacing:1px}.bud-layout{width:min(100%,420px);margin:4px auto 0}.bud-title,.game-topline{display:none}.player-box{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}.player-select{display:flex;gap:4px;flex:1;min-width:0}.player-select select{max-width:160px;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:4px 0;outline-offset:2px}.player-select button{border:0;background:transparent;padding:0 8px;font-size:23px}.record{display:flex;align-items:baseline;gap:7px}.record>span{font-size:12px}.record strong{font-size:16px;font-weight:normal}
.bud-game{position:relative}.bud-stage{position:relative;width:100%;aspect-ratio:2/3;overflow:hidden;background:#f7f3db;border:1px solid #b8b39c;box-shadow:0 3px 16px #38352215}.bud-stage canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.bud-hud{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:7px 15px 9px;background:#ede8c5e8;border-bottom:1px solid #c7c09d;pointer-events:none}.bud-hud>div{display:flex;align-items:baseline;gap:8px}.bud-hud span{font-size:20px}.bud-hud strong{font-size:28px;font-weight:normal;line-height:1;font-variant-numeric:tabular-nums}.bud-hud button{border:0;background:transparent;font-size:26px;line-height:1;padding:0 5px;pointer-events:auto}.active-powers{position:absolute;top:52px;right:12px;display:flex;gap:8px;pointer-events:none}.active-powers span{font-size:12px;color:#655f41}.garden-stamp{display:none}
.bud-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;background:#f7f3dbec}.bud-overlay.is-menu{background:transparent;justify-content:flex-start;padding-top:12%}.bud-overlay .eyebrow{font-size:17px;transform:rotate(-5deg);margin:0 0 8px;color:#6e7547}.bud-overlay h2{font-family:"Comic Sans MS","Chalkboard SE",KaiTi,sans-serif;font-size:44px;line-height:1.05;font-weight:bold;margin:12px 0;color:#39392c}.bud-overlay.is-menu h2{font-size:clamp(58px,14vw,84px);letter-spacing:-4px;line-height:.91;transform:rotate(-7deg);color:#73a63d;-webkit-text-stroke:1.5px #35362a;text-shadow:2px 2px #f7f3db;margin:4px 0 22px}.bud-overlay p{font-size:14px;line-height:1.7;margin:4px 0 22px;max-width:290px}.bud-overlay.is-menu p{color:#666149;margin-bottom:16px}.bud-primary{background:#a9cf64;border:2px solid #35372a;border-radius:52% 46% 49% 43% / 25% 31% 27% 28%;padding:9px 34px;font-size:22px;transform:rotate(-3deg);min-width:150px;box-shadow:1px 2px 0 #383b2926}.bud-primary:hover{background:#b9d97d}.bud-primary:active{transform:translateY(2px) rotate(-3deg)}.bud-secondary{border:1px solid #756d4e;background:#eee5bc;padding:9px 15px;font-size:14px;margin-top:16px}.bud-menu-link{border:0;background:transparent;padding:8px 22px;font-size:21px;transform:rotate(-3deg);margin-top:6px}.bud-menu-link:hover{text-decoration:underline}.bud-overlay small{font-size:12px;color:#716b52;margin-top:16px;max-width:280px}.bud-overlay:not(.is-menu) .bud-menu-link{font-size:16px;padding:4px 16px}.bud-overlay.is-menu small{position:absolute;bottom:16px;left:0;right:0;margin:auto}.bud-session-top{display:none;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:5px;color:var(--muted)}.bud-session-top button{border:0;background:transparent;padding:4px;font-size:12px}.bud-in-session .bud-session-top{display:flex}
.bud-controls{display:none;grid-template-columns:1fr 1fr 1.6fr;gap:9px;margin-top:8px}.bud-controls button{border:1.5px solid #605f49;border-radius:5px;background:#f4efd4;height:42px;touch-action:none;user-select:none}.bud-controls button span{display:none}.bud-controls button.is-held,.bud-controls button:active{background:#c8db9d}.bud-tilt-setup{display:flex;justify-content:center;gap:17px;padding:6px 0}.bud-tilt-setup button{border:0;border-bottom:1px solid var(--line);background:transparent;padding:4px 1px;font-size:12px}.game-bottomline{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;color:var(--muted);font-size:12px}.game-bottomline button{border:0;background:transparent;padding:3px 0;font-size:12px}#budMessage{font-size:12px;color:var(--muted);margin:0;line-height:1.6}#budMessage:empty{display:none}#budMessage.error{color:#923d29}
.competition-details,.power-guide{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;scroll-margin-top:20px}.competition-details>summary,.power-guide>summary,.bud-awards>summary{list-style:none;display:flex;justify-content:space-between;font-size:16px}.competition-details[open]>summary,.power-guide[open]>summary{margin-bottom:20px}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title h2{margin:0;font-size:20px;font-weight:normal}.local-pill{font-size:12px;color:var(--muted)}.bud-tabs{display:flex;gap:18px;margin-top:10px;border-bottom:1px solid var(--line)}.bud-tabs button{padding:9px 0;border:0;border-bottom:2px solid transparent;background:transparent;font-size:14px;color:var(--muted)}.bud-tabs button[aria-selected=true]{color:#416c25;border-bottom-color:#5c8e37}.muted,.rules-card{font-size:13px;line-height:1.8;color:var(--muted)}.board-row{display:grid;grid-template-columns:28px 1fr auto;gap:10px;border-bottom:1px solid var(--line);align-items:center;padding:12px 0;font-size:15px}.board-row.me{color:#426e24}.board-row .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank{color:var(--muted)}.empty-board{padding:25px 0;color:var(--muted);font-size:14px}.my-position{font-size:14px;padding:13px 0;color:#466b2e}.prize-box{margin-top:18px}.prize-mark{display:none}.prize-row{display:flex;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.prize-rank{min-width:40px}.prize-row p{margin:0;font-size:15px}.prize-row small,.award-row small{display:block;font-size:12px;color:var(--muted)}.bud-awards{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.award-row{padding:12px 0;font-size:14px;border-bottom:1px solid var(--line)}.rules-card{margin-top:20px}.power-list>div{display:flex;align-items:center;gap:18px;padding:10px 0}.power-list canvas{width:40px;height:40px;object-fit:contain}.power-list p{margin:0}.power-list b{display:block;font-size:15px;font-weight:normal}.power-list p span{display:block;font-size:13px;color:var(--muted)}.power-list .platform-key{display:block;line-height:1.8;border-top:1px solid var(--line);margin-top:12px}.platform-key p{font-size:13px;color:var(--muted)}.bud-footer{padding:25px 0;text-align:center;color:var(--muted);font-size:12px}
.bud-page dialog{background:#f7f3db;color:var(--ink);border:2px solid #777258;border-radius:5px;padding:25px;width:min(390px,90vw)}.bud-page dialog::backdrop{background:#29282070}.bud-page dialog .eyebrow{font-size:12px;color:var(--muted)}.bud-page dialog h2{font-size:26px;font-weight:normal}.bud-page dialog label{display:block;margin-bottom:8px;font-size:14px}.bud-page dialog input{width:100%;background:#fffbee;border:1px solid #9f997e;padding:11px;border-radius:2px}.dialog-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:20px}.dialog-actions button{font-size:15px;min-width:0}.dialog-actions>button:first-child{border:0;background:transparent}#budPlayerError{font-size:13px;color:#923d29}
@media(max-width:600px){.bud-shell{padding:0 12px}.bud-nav{padding:10px 0;font-size:12px}.bud-nav>span{display:none}.bud-layout{width:min(100%,calc((100dvh - 138px)*2/3));min-width:min(100%,280px)}.player-box{margin-bottom:8px;font-size:12px;gap:5px}.record>span{display:none}.bud-stage{box-shadow:none}.bud-overlay.is-menu h2{font-size:clamp(56px,17vw,80px)}.bud-overlay.is-menu .bud-menu-link{font-size:19px;padding:5px 15px}.bud-hud{padding:6px 10px}.bud-hud span{font-size:18px}.bud-hud strong{font-size:25px}}
@media(pointer:coarse){.bud-controls{display:grid}.bud-tilt-active .bud-controls{display:none}}
@media(max-width:680px),(pointer:coarse){.bud-page.bud-in-session{overflow:hidden;overscroll-behavior:none}.bud-in-session .bud-game{position:fixed;inset:0;z-index:100;background:#f7f3db;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overflow:hidden;touch-action:none}.bud-in-session .bud-stage{width:min(100%,calc((100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3));flex:0 0 auto;box-shadow:none;border:0}.bud-in-session.bud-tilt-active .bud-stage{width:min(100%,calc((100dvh - 26px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3))}.bud-in-session .bud-session-top{position:absolute;bottom:max(2px,env(safe-area-inset-bottom));right:12px;z-index:2;margin:0}.bud-in-session .bud-session-top>span{display:none}.bud-in-session .bud-controls{width:90%;max-width:420px;margin-top:5px}.bud-in-session .game-bottomline,.bud-in-session #budMessage{display:none}.bud-in-session .bud-tilt-setup{font-size:12px;flex:0 0 auto}.bud-in-session.bud-tilt-active .bud-tilt-setup{position:absolute;bottom:max(2px,env(safe-area-inset-bottom));left:10px;padding:0;gap:10px;z-index:2}.bud-in-session.bud-tilt-active #budEnableTilt{display:none}.bud-in-session .bud-tilt-setup button{font-size:11px;padding:3px 0}}
@media(prefers-reduced-motion:reduce){.bud-page *{scroll-behavior:auto!important}}
.bud-stage:has(.bud-overlay.is-menu:not([hidden])) .bud-hud{display:none}
/* Project shell: the same green frame, navigation and typography as the hall. */
.bud-page{--ink:#d9efe0;--muted:#87ab92;--line:#294b35;--green:#a4edb4;background:radial-gradient(ellipse at 50% 25%,#10291a,#030805 58%,#010302);min-height:100vh;color:var(--ink);font-family:Arial,'Microsoft YaHei',sans-serif;color-scheme:dark}
.bud-shell.experience{max-width:1180px;width:calc(100% - 40px);margin:12px auto;padding:0;border:1px solid #4f795b;border-radius:18px;background:#020805;box-shadow:0 0 100px #357e221a}.bud-shell>main{padding:0 32px}.bud-page .site-header{height:90px;border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}.bud-page .brand{color:var(--green);font:900 24px/.88 Arial,sans-serif;letter-spacing:-1px}.bud-page .brand span{display:block}.bud-page .site-motto{color:var(--green)}.bud-nav{padding:17px 0;font-size:13px}.bud-nav>span{font:11px 'Courier New',monospace;letter-spacing:1.5px;font-weight:normal}.bud-nav a:hover{color:var(--green)}.bud-layout{width:min(100%,420px);margin:4px auto 0}.player-box{padding:12px 14px;background:#07170d;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}.player-select select{color:var(--ink);font-size:14px}.player-select select option{background:#0b2012}.player-select button{color:var(--green)}.record>span{color:var(--muted)}.record strong{color:var(--green)}
.bud-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;margin-bottom:7px;color:var(--muted);font-size:12px}.bud-game-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;min-width:88px;padding:6px 13px;border:1px solid #42664c;border-radius:6px;background:#0b2012;color:var(--green);font-size:13px;touch-action:manipulation}.bud-game-toolbar button:hover{border-color:var(--green);background:#153520}.bud-game-toolbar button[aria-pressed=true]{border-color:#8bdca1;background:#13351e}.bud-stage{color:#292820;font-family:'Comic Sans MS','Chalkboard SE',KaiTi,'Microsoft YaHei',sans-serif;border-radius:6px;border-color:#7c9574;box-shadow:0 4px 25px #0005}.bud-stage .bud-primary{color:#292820}.bud-stage button:focus-visible{outline-color:#477631}.bud-session-top{color:var(--muted)}.bud-controls button{background:#0b2012;color:var(--green);border-color:#42664c}.bud-controls button.is-held,.bud-controls button:active{background:#23462e}.game-bottomline,.bud-tilt-setup{color:var(--muted)}.game-bottomline button{color:var(--green)}#budMessage.error,#budPlayerError{color:#efad9d}
.competition-details,.power-guide{padding:15px 17px;border:1px solid var(--line);border-radius:8px;background:#07170d}.competition-details>summary,.power-guide>summary{font-size:14px;color:#b9ddc2}.section-title h2{font-size:17px;font-weight:600}.bud-tabs button[aria-selected=true]{color:var(--green);border-color:var(--green)}.board-row.me,.my-position{color:var(--green)}.bud-footer{font:11px 'Courier New',monospace;letter-spacing:1.5px}.bud-page dialog{background:#07170d;color:var(--ink);border:1px solid #4e7658;border-radius:12px}.bud-page dialog::backdrop{background:#010603c9}.bud-page dialog input{background:#041208;color:var(--ink);border-color:#4e7658;border-radius:5px}.bud-page dialog .bud-primary{background:var(--green);color:#0a2211;border:0;border-radius:5px;transform:none;box-shadow:none;font-size:15px}.bud-page dialog h2{font-size:24px}
/* The switch changes only the play surface, never the competition or physics. */
.bud-dark .bud-stage{background:#06120e;color:#ccf8d7;border-color:#507e5a;box-shadow:0 0 24px #66ed8c12}.bud-dark .bud-hud{background:#061b11ef;border-color:#32563d;color:#c7ffd5}.bud-dark .active-powers span{color:#b3d6ba}.bud-dark .bud-overlay{background:#06120eec}.bud-dark .bud-overlay.is-menu{background:transparent}.bud-dark .bud-overlay .eyebrow{color:#94d49c}.bud-dark .bud-overlay h2{color:#b7f8c4}.bud-dark .bud-overlay.is-menu h2{color:#94fb92;-webkit-text-stroke:1px #b0ffc5;text-shadow:0 0 13px #65ff7970}.bud-dark .bud-overlay p,.bud-dark .bud-overlay.is-menu p{color:#a0c5ac}.bud-dark .bud-overlay small{color:#8db09a}.bud-dark .bud-stage .bud-primary{background:#a2e976;border-color:#caefaa;color:#11220d;box-shadow:0 0 14px #7aff6740}.bud-dark .bud-stage .bud-primary:hover{background:#c5f49e}.bud-dark .bud-secondary{background:#112e1c;color:#c3ebcc;border-color:#698969}.bud-dark .bud-stage button:focus-visible{outline-color:#adffbe}
@media(max-width:600px){.bud-shell.experience{width:calc(100% - 14px);margin:7px auto;border-radius:12px}.bud-shell>main{padding:0 14px}.bud-page .site-header{height:73px;padding:0 16px;border-radius:12px 12px 0 0}.bud-page .brand{font-size:20px}.bud-nav{padding:13px 0;font-size:12px}.bud-layout{width:min(100%,390px);min-width:0;margin-top:0}.player-box{padding:9px 10px}.bud-game-toolbar{min-height:38px;margin-bottom:6px}.bud-stage{border-radius:5px}.bud-overlay.is-menu h2{font-size:clamp(56px,17vw,80px)}}
@media(max-width:680px),(pointer:coarse){.bud-in-session .bud-game-toolbar{width:90%;max-width:420px;margin:0;min-height:42px;flex:0 0 auto}.bud-in-session .bud-stage{width:min(100%,calc((100dvh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3))}.bud-in-session.bud-tilt-active .bud-stage{width:min(100%,calc((100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*2/3))}.bud-in-session .bud-game{background:#f7f3db}.bud-in-session .bud-game-toolbar{color:#686b52}.bud-in-session .bud-session-top{color:#686b52}.bud-in-session .bud-tilt-setup{color:#686b52}.bud-dark.bud-in-session .bud-game{background:#06120e}.bud-dark.bud-in-session .bud-game-toolbar,.bud-dark.bud-in-session .bud-session-top,.bud-dark.bud-in-session .bud-tilt-setup{color:#96baa0}}

/* Match the other arcade pages: game surface left, profile and competition right. */
@media(min-width:821px){
 .bud-shell.experience{max-width:1120px}
 .bud-shell>main{padding:0 30px}
 .bud-layout{width:100%;display:grid;grid-template-columns:minmax(390px,480px) minmax(300px,1fr);grid-template-rows:auto auto;gap:18px 24px;align-items:start}
 .bud-title{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;padding:4px 2px 2px}
 .bud-title p{margin:0 0 8px;color:var(--muted);font:12px 'Courier New',monospace;letter-spacing:.14em}
 .bud-title h1{margin:0;font:800 46px/.95 Arial,sans-serif;letter-spacing:-.03em}
 .bud-title>span{padding:7px 10px;border:1px solid var(--line);border-radius:5px;color:var(--green);font:12px 'Courier New',monospace;text-transform:uppercase}
 .bud-game{grid-column:1;grid-row:2}
 .bud-sidebar{grid-column:2;grid-row:2;display:grid;gap:13px;max-height:762px;overflow:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-width:thin;scrollbar-color:#477052 transparent}
 .player-box{margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:17px 18px}
 .player-box label{display:block;margin-bottom:8px;color:var(--muted);font-size:13px}
 .player-select select{max-width:none}
 .record{display:grid;text-align:right;gap:4px}
 .record strong{font-size:23px}
 .competition-details,.power-guide{margin:0}
 .competition-details[open]>summary,.power-guide[open]>summary{margin-bottom:16px}
 .bud-game-toolbar{margin-top:-3px}
}
@media(max-width:820px){
 .bud-layout{width:min(100%,420px);display:block}
 .bud-title{display:none}
 .bud-sidebar{display:grid;gap:14px;margin-top:16px}
 .player-box{margin-bottom:0}
 .competition-details,.power-guide{margin-top:0}
}

/* Unified arcade panel and dedicated information views. */
.bud-game{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#06110a}
.bud-title{display:flex;align-items:flex-end;justify-content:space-between;padding:20px 22px 15px;border-bottom:1px solid var(--line)}
.bud-title p{margin:0 0 7px;color:var(--muted);font:11px 'Courier New',monospace;letter-spacing:.15em}
.bud-title h1{margin:0;font:800 38px/.95 Arial,sans-serif;letter-spacing:-.035em;color:var(--ink)}
.bud-title>span{color:var(--green);font:11px 'Courier New',monospace;letter-spacing:.08em;text-transform:uppercase}
.bud-game-toolbar{min-height:41px;margin:0;padding:6px 13px 6px 18px;border-bottom:1px solid var(--line)}
.bud-stage{border:0;border-radius:0;box-shadow:none}
.bud-session-top{margin:0;padding:7px 13px;border-bottom:1px solid var(--line)}
.bud-controls,.bud-tilt-setup,.game-bottomline,#budMessage{margin-inline:13px}
.game-bottomline{min-height:40px}.bud-game>#budMessage{padding-bottom:9px}
.bud-info-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#020b06}
.bud-info-tabs button{min-height:39px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:13px}
.bud-info-tabs button[aria-selected=true]{background:var(--green);color:#09200f;font-weight:700}
.competition-details,.power-guide{margin:0;padding:17px 18px;border:1px solid var(--line);border-radius:9px;background:#07170d}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.panel-heading p{margin:0 0 6px;color:var(--muted);font:10px 'Courier New',monospace;letter-spacing:.14em}
.panel-heading h2{margin:0;font-size:17px;line-height:1.25}.panel-heading>span{color:var(--green);font:10px 'Courier New',monospace;letter-spacing:.08em}
.bud-tabs{gap:3px;margin-top:13px;padding:3px;border:0;border-radius:5px;background:#020b06}
.bud-tabs button{flex:1;padding:8px 3px;border:0;border-radius:4px;font-size:12px}
.bud-tabs button[aria-selected=true]{background:#183823;color:var(--green)}
#budPeriodCaption{margin:12px 0 6px;font-size:11px}.board-row{padding:10px 0}.empty-board{padding:20px 0}.my-position{margin:0;padding:10px 0 2px}
.prize-box{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.prize-box .section-title h2{font-size:15px}.prize-row{padding:9px 0}.prize-row p{font-size:13px}.prize-box>.muted{font-size:11px;line-height:1.6}
.bud-awards{margin-top:14px;padding-top:13px}.bud-awards>summary{font-size:13px}.rules-card{margin-top:14px;padding-top:13px;border-top:1px solid var(--line);font-size:11px}.rules-card p{margin:7px 0}
.control-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 8px}.control-guide>div{padding:12px;border:1px solid var(--line);border-radius:6px;background:#020b06}.control-guide b{display:block;margin-bottom:7px;color:var(--green);font-size:12px}.control-guide span{color:var(--muted);font-size:11px;line-height:1.65}
.power-list>div{padding:8px 0;border-bottom:1px solid #294631}.power-list>div:last-child{border-bottom:0}.power-list canvas{flex:0 0 40px}.power-list .platform-key{margin-top:0;padding-top:12px}
@media(min-width:821px){
 .bud-layout{grid-template-rows:auto}
 .bud-game{grid-row:1}.bud-sidebar{grid-row:1;max-height:824px}
 .bud-title{grid-column:auto;padding:21px 23px 16px}
 .bud-title h1{font-size:43px}
}
@media(max-width:820px){
 .bud-layout{width:min(100%,500px)}
 .bud-title{display:flex}
 .bud-sidebar{margin-top:13px}
}
@media(max-width:520px){.bud-title{padding:16px}.bud-title h1{font-size:31px}.bud-title>span{font-size:9px}.control-guide{grid-template-columns:1fr}}

/* Sidebar UX: identity first, progress second, details on demand. */
.bud-sidebar{align-content:start}
.player-box{display:block!important;margin:0!important;padding:18px!important;border-radius:10px}
.sidebar-card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.sidebar-card-head p{margin:0 0 5px;color:var(--muted);font:10px 'Courier New',monospace;letter-spacing:.14em}
.sidebar-card-head h2{margin:0;font-size:17px}.sidebar-card-head>span{color:var(--green);font:10px 'Courier New',monospace;letter-spacing:.12em}
.player-box>label{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}
.player-select{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.player-select select{max-width:none;padding:10px 11px;border:1px solid #42664c;border-radius:6px;background:#020b06;color:var(--ink)}
.player-select button{display:flex;align-items:center;gap:5px;padding:0 12px;border:1px solid #42664c;border-radius:6px;background:#12321d;color:var(--green);font-size:12px;white-space:nowrap}
.player-select button span{font-size:18px;line-height:1}.player-select button:hover{border-color:var(--green);background:#193c24}
.player-summary{display:grid;grid-template-columns:90px 1fr;gap:11px;margin-top:13px}
.player-summary>div{min-width:0;padding:11px 12px;border-radius:6px;background:#020b06;border:1px solid #1d3826}
.player-summary span{display:block;margin-bottom:7px;color:var(--muted);font-size:10px}
.record{display:block;text-align:left}.record strong{display:block;color:var(--green);font:700 24px/1 Arial,sans-serif}
.rank-summary strong{display:block;overflow:hidden;color:#cbe9d1;font-size:11px;line-height:1.35;text-overflow:ellipsis}
.player-note{margin:11px 0 0;color:var(--muted);font-size:10px}
.member-identity{padding:12px 13px;border:1px solid #42664c;border-radius:6px;background:#020b06}.member-identity>span{display:block;margin-bottom:5px;color:var(--muted);font-size:10px}.member-identity>strong{display:block;color:#d9efe0;font-size:14px}.member-identity>small{display:block;margin-top:6px;color:var(--green);font-size:10px}
.bud-info-tabs{position:relative;padding:4px;border-radius:10px}.bud-info-tabs button{min-height:42px}
.competition-details,.power-guide{border-radius:10px}
.panel-heading{padding-bottom:14px}.panel-heading .local-pill:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--green);box-shadow:0 0 7px #8fffa7}
.empty-board{display:grid;gap:5px;margin:12px 0 5px;padding:17px;border:1px dashed #365b40;border-radius:7px;background:#031008}
.empty-board b{color:#c9ebd1;font-size:13px;font-weight:600}.empty-board span{color:var(--muted);font-size:11px;line-height:1.55}
.section-title>div>span,.power-section-title>span{display:block;margin-bottom:5px;color:var(--muted);font:9px 'Courier New',monospace;letter-spacing:.13em}
.prize-box .section-title h2{font-size:16px}.prize-mark{display:grid;width:29px;height:29px;place-items:center;border:1px solid #42664c;border-radius:50%;color:var(--green)}
.prize-row{align-items:center}.prize-rank{display:grid;min-width:40px;height:28px;place-items:center;border-radius:4px;background:#12331d;color:var(--green);font-size:11px}
.bud-awards,.season-rules{margin-top:12px;padding:0;border:1px solid #294631;border-radius:6px;background:#031008}
.bud-awards>summary,.season-rules>summary{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;list-style:none;color:#bcdcc4;font-size:12px}
.bud-awards>summary span,.season-rules>summary b{color:var(--green);font:10px 'Courier New',monospace}
.bud-awards[open]>summary,.season-rules[open]>summary{border-bottom:1px solid #294631}
.bud-awards>div,.season-rules>div{padding:0 13px 11px}.season-rules p{margin:11px 0;color:var(--muted);font-size:11px;line-height:1.65}
.play-goal{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;margin:14px 0;padding:13px;border-radius:7px;background:#12321d}
.play-goal span{padding:3px 6px;border-radius:3px;background:var(--green);color:#09200f;font:700 9px 'Courier New',monospace}
.play-goal p{margin:0;color:#c8e7cf;font-size:12px;line-height:1.55}
.power-section-title{display:flex;align-items:flex-end;justify-content:space-between;margin-top:15px;padding-bottom:8px;border-bottom:1px solid #294631}
.power-section-title>span{margin:0}.power-section-title b{color:var(--muted);font-size:10px;font-weight:normal}
@media(min-width:821px){.bud-sidebar{max-height:none;overflow:visible;padding-right:0}.bud-layout{grid-template-columns:minmax(390px,480px) minmax(330px,1fr)}}
@media(max-width:520px){.player-box{padding:15px!important}.player-select{grid-template-columns:1fr}.player-select button{justify-content:center;min-height:39px}.player-summary{grid-template-columns:1fr 1.45fr}}

/* The menu's quick guide stays inside the playfield. */
.bud-stage-guide{position:absolute;inset:0;z-index:7;overflow-y:auto;padding:25px 27px 22px;background:#f7f3dbee;color:#34362a;text-align:left}
.bud-stage-guide header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid #c7c09d}
.bud-stage-guide header span,.stage-guide-title>span{color:#6e7547;font:10px 'Courier New',monospace;letter-spacing:.14em}
.bud-stage-guide h2{margin:5px 0 0;font-size:25px;line-height:1}
.bud-stage-guide header button{padding:7px 9px;border:1px solid #777258;border-radius:5px;background:#eee8c9;color:#444536;font-size:11px}
.stage-guide-goal{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;margin:16px 0 12px;padding:12px 13px;border-radius:6px;background:#dce8bc}
.stage-guide-goal>b{padding:3px 6px;border-radius:3px;background:#6e9d3d;color:#fff;font:700 9px 'Courier New',monospace}
.stage-guide-goal p{margin:0;font-size:12px;line-height:1.5}
.stage-guide-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stage-guide-controls>div{padding:11px 12px;border:1px solid #c7c09d;border-radius:6px;background:#fffbed99}
.stage-guide-controls b{display:block;margin-bottom:6px;color:#4f722f;font-size:12px}.stage-guide-controls span{font-size:10px;line-height:1.6;color:#66634f}
.stage-guide-title{display:flex;align-items:center;justify-content:space-between;margin:17px 0 7px;padding-bottom:7px;border-bottom:1px solid #c7c09d}
.stage-guide-title b{color:#6d6a57;font-size:9px;font-weight:normal}
.stage-power-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}
.stage-power-grid>div{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 0;border-bottom:1px solid #d3ceb5}
.stage-power-grid canvas{width:34px;height:34px;object-fit:contain;flex:0 0 34px}.stage-power-grid span{min-width:0}.stage-power-grid b{display:block;font-size:11px}.stage-power-grid small{display:block;overflow:hidden;color:#77725c;font-size:9px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.stage-platform-note{margin:14px 0 0;padding:10px 12px;border:1px dashed #9a977d;border-radius:5px;color:#66634f;font-size:10px;line-height:1.55}.stage-platform-note b{color:#3f5f29}
.bud-dark .bud-stage-guide{background:#06120ef2;color:#d4f1d9}.bud-dark .bud-stage-guide header{border-color:#32563d}.bud-dark .bud-stage-guide header span,.bud-dark .stage-guide-title>span{color:#91bd9c}.bud-dark .bud-stage-guide header button{border-color:#507e5a;background:#112e1c;color:#c3ebcc}.bud-dark .stage-guide-goal{background:#143820}.bud-dark .stage-guide-goal>b{background:#a4edb4;color:#09200f}.bud-dark .stage-guide-controls>div{border-color:#32563d;background:#071b10}.bud-dark .stage-guide-controls b,.bud-dark .stage-platform-note b{color:#a4edb4}.bud-dark .stage-guide-controls span,.bud-dark .stage-guide-title b,.bud-dark .stage-power-grid small,.bud-dark .stage-platform-note{color:#96baa0}.bud-dark .stage-guide-title,.bud-dark .stage-power-grid>div{border-color:#294b35}.bud-dark .stage-platform-note{border-color:#416d4c}
@media(max-width:420px){.bud-stage-guide{padding:18px}.bud-stage-guide h2{font-size:21px}.stage-guide-goal{margin-top:12px}.stage-power-grid>div{padding:6px 0}}

/* In-game leaderboard uses the same local data source as the sidebar. */
.bud-stage-board{position:absolute;inset:0;z-index:7;overflow-y:auto;padding:25px 27px 22px;background:#f7f3dbf5;color:#34362a;text-align:left}
.bud-stage-board header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid #c7c09d}.bud-stage-board header span{color:#6e7547;font:10px 'Courier New',monospace;letter-spacing:.14em}.bud-stage-board h2{margin:5px 0 0;font-size:25px;line-height:1}.bud-stage-board header button{padding:7px 9px;border:1px solid #777258;border-radius:5px;background:#eee8c9;color:#444536;font-size:11px}
.stage-board-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:17px 0 0;padding:3px;border-radius:6px;background:#e7e2c8}.stage-board-tabs button{padding:8px 2px;border:0;border-radius:4px;background:transparent;color:#706c58;font-size:10px}.stage-board-tabs button[aria-selected=true]{background:#6f9e3f;color:#fff;font-weight:700}
.stage-board-caption{margin:12px 0;color:#77725c;font-size:10px;line-height:1.5}.stage-board-list{min-height:245px;border-top:1px solid #c7c09d}.stage-board-row{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 4px;border-bottom:1px solid #d3ceb5}.stage-board-row>span{color:#77725c;font:10px 'Courier New',monospace}.stage-board-row>b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.stage-board-row>strong{font-size:15px}.stage-board-row.me{color:#557e31}.stage-board-empty{display:grid;gap:7px;margin-top:16px;padding:20px;border:1px dashed #9a977d;border-radius:6px}.stage-board-empty b{font-size:14px}.stage-board-empty span{color:#77725c;font-size:11px}.stage-my-rank{margin-top:13px;padding:11px 13px;border-radius:6px;background:#dce8bc;color:#456528;font-size:11px}.stage-sync-note{display:flex;align-items:center;gap:7px;margin:13px 0 0;color:#6f765c;font-size:10px}.stage-sync-note span{width:7px;height:7px;border-radius:50%;background:#6f9e3f}.stage-sync-note b{font-weight:normal}
.bud-dark .bud-stage-board{background:#06120ef5;color:#d4f1d9}.bud-dark .bud-stage-board header{border-color:#32563d}.bud-dark .bud-stage-board header span{color:#91bd9c}.bud-dark .bud-stage-board header button{border-color:#507e5a;background:#112e1c;color:#c3ebcc}.bud-dark .stage-board-tabs{background:#020b06}.bud-dark .stage-board-tabs button{color:#96baa0}.bud-dark .stage-board-tabs button[aria-selected=true]{background:#a4edb4;color:#09200f}.bud-dark .stage-board-caption,.bud-dark .stage-board-row>span,.bud-dark .stage-board-empty span,.bud-dark .stage-sync-note{color:#96baa0}.bud-dark .stage-board-list,.bud-dark .stage-board-row{border-color:#294b35}.bud-dark .stage-board-row.me{color:#a4edb4}.bud-dark .stage-board-empty{border-color:#416d4c}.bud-dark .stage-my-rank{background:#143820;color:#bdebc7}.bud-dark .stage-sync-note span{background:#a4edb4}
@media(max-width:420px){.bud-stage-board{padding:18px}.bud-stage-board h2{font-size:21px}}

/* Shield pickup: the bubble and playfield pulse in the homepage BUD rhythm. */
.bud-stage.rgb-party{animation:bud-stage-rgb-border 1.6s steps(8,end) infinite}
.bud-stage.rgb-party:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 18% 22%,#ff365e18,transparent 30%),radial-gradient(circle at 82% 68%,#39f6ff18,transparent 34%);mix-blend-mode:screen;animation:bud-stage-rgb-wash 1.6s steps(8,end) infinite}
@keyframes bud-stage-rgb-border{0%,100%{box-shadow:inset 0 0 18px #ff365e55}25%{box-shadow:inset 0 0 20px #eaff3555}50%{box-shadow:inset 0 0 20px #35f5ff66}75%{box-shadow:inset 0 0 20px #bd46ff66}}
@keyframes bud-stage-rgb-wash{0%,100%{filter:hue-rotate(0deg);opacity:.75}25%{filter:hue-rotate(90deg);opacity:1}50%{filter:hue-rotate(180deg);opacity:.7}75%{filter:hue-rotate(270deg);opacity:1}}
.motion-paused .bud-stage.rgb-party,.page-hidden .bud-stage.rgb-party{animation-play-state:paused}.motion-paused .bud-stage.rgb-party:after,.page-hidden .bud-stage.rgb-party:after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){body:not(.motion-enabled) .bud-stage.rgb-party,body:not(.motion-enabled) .bud-stage.rgb-party:after{animation:none!important}}
/* Readable, wrapping instructions in every player language. */
.bud-stage-guide,.bud-stage-board{font-family:Arial,'Microsoft YaHei',sans-serif;font-size:16px;line-height:1.65;padding:28px max(24px,calc((100% - 780px)/2));background:#f7f3db;overflow-wrap:anywhere}
.bud-stage-guide h2,.bud-stage-board h2{font-size:30px;line-height:1.25}
.bud-stage-guide header span,.stage-guide-title>span,.bud-stage-board header span{font:700 13px/1.5 Arial,sans-serif;letter-spacing:.07em}
.bud-stage-guide header button,.bud-stage-board header button{font-size:15px;line-height:1.4;min-height:44px;max-width:48%;padding:9px 12px}
.stage-guide-goal{padding:17px;gap:14px}.stage-guide-goal>b{font-size:12px;line-height:1.7}.stage-guide-goal p{font-size:18px;line-height:1.7}
.stage-guide-controls{gap:16px}.stage-guide-controls>div{padding:17px}.stage-guide-controls b{font-size:18px}.stage-guide-controls span{font-size:16px;line-height:1.75;color:#4e503f}
.stage-guide-title{gap:16px;margin-top:24px}.stage-guide-title b{font-size:14px;line-height:1.5}
.stage-power-grid{gap:0 24px}.stage-power-grid>div{gap:14px;padding:15px 0}.stage-power-grid canvas{width:48px;height:48px;flex-basis:48px}.stage-power-grid b{font-size:17px;line-height:1.5}.stage-power-grid small{font-size:16px;line-height:1.65;color:#4e503f;white-space:normal;overflow:visible;text-overflow:clip}
.stage-platform-note{font-size:16px;line-height:1.8;padding:16px;color:#4e503f}
.stage-board-tabs button{font-size:15px;line-height:1.4;min-height:44px;padding:8px}.stage-board-caption,.stage-board-empty span,.stage-my-rank,.stage-sync-note,.stage-board-row>span{font-size:15px;line-height:1.65}.stage-board-row>b{font-size:17px}.stage-board-row>strong{font-size:20px}
.bud-overlay p{font-size:18px;line-height:1.65;max-width:440px}.bud-overlay small{font-size:14px;line-height:1.6;max-width:min(440px,90%)}.game-bottomline,.game-bottomline button,#budMessage{font-size:14px;line-height:1.6}
.bud-dark .bud-stage-guide,.bud-dark .bud-stage-board{background:#06120e}.bud-dark .stage-guide-controls span,.bud-dark .stage-power-grid small,.bud-dark .stage-platform-note{color:#b8d4c1}
.bud-page .control-guide span,.bud-page .power-list p span,.bud-page .platform-key p,.bud-page .play-goal p{font-size:16px;line-height:1.75}.bud-page .control-guide b,.bud-page .power-list b{font-size:18px}
@media(max-width:600px){.bud-stage-guide,.bud-stage-board{padding:22px 20px}.bud-stage-guide h2,.bud-stage-board h2{font-size:27px}.stage-power-grid,.stage-guide-controls{grid-template-columns:1fr}.stage-guide-goal{grid-template-columns:1fr;gap:8px}.stage-guide-goal>b{justify-self:start}.stage-guide-title{align-items:start}.stage-board-tabs{grid-template-columns:1fr 1fr}.bud-overlay.is-menu small{bottom:12px}}
