/* Shared foundation UI. The pitch and physics dimensions are unchanged. */
.park-dock{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:8;pointer-events:none}
.park-dock button{pointer-events:auto;padding:10px 16px;border:1px solid #8eaa7955;border-radius:9px;background:#153329ed;color:#e8edd8;font:700 12px "Segoe UI",sans-serif;min-height:40px}
.park-dock button[aria-expanded=true],.park-dock button[aria-pressed=true]{border-color:#e0ca8b;color:#f5df9f;background:#2c4631}
.account-card-modern{width:min(560px,calc(100vw - 24px))}.account-card-modern form{display:grid;gap:12px;margin:14px 0}.account-card-modern label{display:grid;gap:6px;font-size:12px;color:#c9d8c6}.account-card-modern input{width:100%;padding:10px;border:1px solid #758f6c77;border-radius:6px;background:#10231d;color:#eff4e4}.account-card-modern details{margin:20px 0}.account-status{color:#e7d49e;line-height:1.6}.account-card-modern>div>button{margin:5px 8px 5px 0}.account-card-modern .fine{line-height:1.6}
.binding-feedback{font-size:12px;color:#e8d59c;line-height:1.5;min-height:1.5em}.foundation-help{width:min(600px,calc(100vw - 24px))}.foundation-help dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;font-size:13px}.foundation-help dt{color:#e6d39b;font-weight:700}.foundation-help dd{margin:0;color:#d1ddcd}.foundation-help p{line-height:1.6;color:#b8cdb8}
.match-waiting{position:fixed;top:104px;left:50%;transform:translateX(-50%);z-index:7;width:min(420px,calc(100vw - 24px));padding:16px;background:#142c26f2;border:1px solid #d2c28d66;border-radius:12px;text-align:center;color:#e7eddc;box-shadow:0 6px 24px #0003}.match-waiting p{font-size:13px;line-height:1.6;margin:0 0 12px}.match-waiting button{padding:8px 14px;background:#d8dfb3;border:0;border-radius:6px;color:#193122;font-weight:700}
.hud .time{min-width:0;max-width:220px}.hud .time small{white-space:normal;line-height:1.4;max-width:220px}.hud .score{flex-shrink:0}
#match-screen>.hud{max-width:calc(100vw - 210px)}
.personal-footer{flex-wrap:wrap;gap:8px}.personal-footer .menu-leave{margin-left:auto}.history-entry small{display:block;color:#bbc9b4;margin:6px 0}.history-source{font-size:11px;color:#acbda4}.history-viewer-header{flex-wrap:wrap}.player-identity{min-width:0}.player-identity h3{overflow-wrap:anywhere}
@media(max-width:700px){
 .park-header-right #shop-open,.park-header-right #account-open,.park-header-right #park-map-toggle{display:none!important}
 .park-header{padding:14px 12px}.park-header-right{gap:5px}.park-header .wordmark{font-size:19px}.wordmark small{font-size:8px;letter-spacing:2px}
 .park-dock{bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 20px);justify-content:center}.park-dock button{flex:1;max-width:160px;font-size:12px;padding:10px}
 #court-list{position:fixed;left:10px!important;right:10px!important;top:auto!important;bottom:66px!important;width:auto!important;max-height:min(55dvh,460px)!important;background:#142a24f5;border:1px solid #a4b58a55;border-radius:12px;padding:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #court-list button{width:100%;min-width:0;padding:10px;text-align:left}#court-list strong{display:block;font-size:12px!important}#court-list span{font-size:10px!important}
 #park-leaderboards{position:fixed;left:10px!important;right:10px!important;top:auto!important;bottom:66px!important;max-height:min(55dvh,460px)!important;width:auto!important;padding:10px;background:#142a24f5;border-radius:12px}
 body:has(#park-leaderboards:not([hidden])) .chat-widget,body:has(#court-list:not([hidden])) .chat-widget{visibility:hidden;pointer-events:none}
 .chat-widget{bottom:66px!important;max-width:calc(100vw - 20px);width:230px;font-size:11px}.chat-widget[data-collapsed=true]{width:fit-content}.chat-widget .chat-quick-controls{font-size:10px}.chat-log{height:70px}
 #match-screen>.hud{left:8px;right:88px;width:auto;max-width:none;transform:none;gap:8px;padding:6px 10px;min-height:54px}.hud .time{flex:1;max-width:none}.hud .time small{font-size:8px;letter-spacing:.04em;max-width:none}.hud .score{min-width:18px;font-size:22px}
 #match-menu{right:8px;top:16px;padding:8px;font-size:10px;max-width:76px}.match-waiting{top:90px}
 .personal-card,.shop-card{max-height:calc(100dvh - 24px);overflow:auto}.personal-footer button{min-height:40px}.foundation-help dl{gap:10px 12px;font-size:12px}
}
@media(max-height:500px){.chat-widget:not([data-editing=true]) .chat-log{display:none}.chat-widget{bottom:12px!important;max-width:220px;padding:6px}.chat-typing-status:empty{display:none}.chat-widget .quickchat-options{display:none}.match-waiting{top:86px;padding:10px}.park-dock{bottom:8px}}
