:root{--bclub-bottom-space:calc(78px + env(safe-area-inset-bottom,0px))}.bclub-app{padding-bottom:var(--bclub-bottom-space)!important;overscroll-behavior-y:none}.bclub-tabbar{position:fixed;z-index:60;bottom:0;left:0;right:0;width:100%;max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;direction:rtl;min-height:78px;padding:6px 16px calc(6px + env(safe-area-inset-bottom,0px));background:#e5decc;border:1px solid #93403430;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -8px 30px #332b250c;font-family:Vazirmatn,Tahoma,sans-serif;isolation:isolate}.bclub-tab{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:62px;padding:3px 6px;color:#8b7664;text-decoration:none;border-radius:16px;touch-action:manipulation}.bclub-tab-icon{display:grid;place-items:center;width:42px;height:34px;border-radius:12px;transition:background .16s,color .16s,transform .16s}.bclub-tab-icon svg{width:25px;height:25px;display:block;flex-shrink:0}.bclub-tab-label{font-size:12px;line-height:1.6;font-weight:500}.bclub-tab.is-active{color:#934034}.bclub-tab.is-active .bclub-tab-label{font-weight:750}.bclub-tab:not(.bclub-tab--play).is-active .bclub-tab-icon{background:#93403412}.bclub-tab--play{position:relative;color:#934034}.bclub-tab--play .bclub-tab-icon{width:56px;height:56px;margin-top:-27px;margin-bottom:1px;background:#934034;color:#e5decc;border:5px solid #e5decc;border-radius:50%;box-shadow:0 4px 12px #5c2a2226}.bclub-tab--play .bclub-tab-icon svg{width:27px;height:27px}.bclub-tab--play.is-active .bclub-tab-icon{background:#743329;box-shadow:0 0 0 3px #93403420,0 4px 12px #5c2a2226}.bclub-tab:active .bclub-tab-icon{transform:scale(.94)}.bclub-tab:focus-visible{outline:2px solid #934034;outline-offset:-3px}.bclub-app .game-shell{min-height:calc(100svh - var(--bclub-bottom-space))}.bclub-app .game-footer{padding-bottom:20px}.bclub-about-intro{padding:46px 7% 40px;background:#934034;color:#e5decc;position:relative;overflow:hidden;isolation:isolate}.bclub-about-intro:before{content:'';position:absolute;width:210px;height:300px;left:-65px;top:-90px;border:1px solid #e5decc30;transform:rotate(25deg);z-index:-1}.bclub-about-intro .eyebrow{font-size:11px;letter-spacing:3px}.bclub-about-intro h1{font-size:36px;font-weight:650;line-height:1.7;margin:16px 0 8px}.bclub-about-intro p:last-child{font-size:14px;line-height:2;opacity:.85}.bclub-about-contacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1180px;margin:30px auto;padding:0 5%}.bclub-about-contacts a,.bclub-about-contacts div{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;border:1px solid #93403430;color:#934034;font-size:14px;border-radius:12px;text-align:center;line-height:1.9}.bclub-view[hidden]{display:none!important}.bclub-about-view{animation:bclub-view-in .18s ease-out}@keyframes bclub-view-in{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.bclub-tabbar{max-width:none;border-left:0;border-right:0;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));border-radius:22px 22px 0 0}.bclub-app .court-wrap{max-height:calc(100svh - 283px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.bclub-about-intro{padding:32px 24px}.bclub-about-intro h1{font-size:29px}.bclub-about-contacts{grid-template-columns:1fr;margin:20px auto;gap:10px}.bclub-about-contacts a,.bclub-about-contacts div{justify-content:flex-start;padding:17px 20px}.bclub-app .header-inner{height:64px}.bclub-app .hero{height:250px}.bclub-app .hero-content{gap:16px}.bclub-app .hero-logo{width:60%}.bclub-app .menu-intro{padding-top:28px}.bclub-app .rally-menu-entry{border-radius:14px}}@media(max-height:720px) and (max-width:640px){.bclub-app .court-wrap{max-height:calc(100svh - 253px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}@media(orientation:landscape) and (max-height:600px){:root{--bclub-bottom-space:calc(58px + env(safe-area-inset-bottom,0px))}.bclub-tabbar{min-height:58px;padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom));max-width:560px}.bclub-tab{flex-direction:row;gap:8px;min-height:50px}.bclub-tab--play .bclub-tab-icon{width:43px;height:43px;margin:0;border-width:3px}.bclub-tab-icon{height:32px;width:32px}.bclub-tab-icon svg{width:22px;height:22px}.bclub-tab--play .bclub-tab-icon svg{width:24px;height:24px}.bclub-app .court-wrap{max-height:calc(100svh - 138px - env(safe-area-inset-bottom));min-height:130px}}@media(prefers-reduced-motion:reduce){.bclub-about-view{animation:none}.bclub-tab-icon{transition:none}}

/* A mobile game screen: one compact HUD, the court, then touch controls. */
.compact-brand,.score-label-compact{display:none}
@media(max-width:640px) and (orientation:portrait){
 body.rally-screen{height:100svh;height:100dvh;overflow:hidden}
 .rally-screen .game-shell{height:calc(100svh - var(--bclub-bottom-space));height:calc(100dvh - var(--bclub-bottom-space));min-height:0;max-width:none;padding:env(safe-area-inset-top,0px) max(4px,env(safe-area-inset-right,0px)) 16px max(4px,env(safe-area-inset-left,0px))}
 .rally-screen .game-header{display:none}
 .rally-screen .game-layout{height:100%;display:block;padding:0}
 .rally-screen .play-column{height:100%;max-width:none;position:relative;display:grid;grid-template-rows:44px minmax(0,1fr) 44px;gap:2px;padding:0}
 .rally-screen .scoreboard{position:static;display:flex;width:auto;flex-direction:row;align-items:center;gap:12px;margin:0;padding:0 8px}
 .rally-screen .compact-brand{display:flex;align-items:center;margin-right:auto;flex-shrink:0}
 .rally-screen .compact-brand img{display:block;width:62px;height:auto}
 .rally-screen .score-label-wide{display:none}
 .rally-screen .score-label-compact{display:inline}
 .rally-screen .score-block,.rally-screen .best-block{display:flex;align-items:center;gap:6px}
 .rally-screen .score-block>span,.rally-screen .best-block>span{font:12px Vazirmatn,sans-serif;letter-spacing:0}
 .rally-screen .score-block strong,.rally-screen .best-block strong{font:500 22px/1 Space,sans-serif;letter-spacing:0}
 .rally-screen .score-divider{display:none}
 .rally-screen .pause-button{width:44px;height:44px;border:0;margin:0!important}
 .rally-screen .court-wrap{height:100%;width:100%;max-width:none;max-height:none;min-height:0;margin:0;aspect-ratio:auto;border:2px solid #332b25;border-radius:3px;box-shadow:none}
 .rally-screen .court-label{display:none}
 .rally-screen .game-controls{position:static;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:auto;margin:0;padding:0 8px;gap:6px}
 .rally-screen .gesture-hint{font-size:12px;line-height:1.5}
 .rally-screen .control-buttons{flex-direction:row;gap:3px}
 .rally-screen .control-buttons .icon-button{width:44px;height:44px;border:0}
 .rally-screen .connection-note{position:absolute;z-index:4;bottom:52px;left:12px;right:12px;min-height:0;margin:0;padding:6px 10px;background:#e5decced;border-radius:5px;font-size:12px;pointer-events:none}
 .rally-screen .connection-note:empty{display:none}
 .rally-screen .overlay{padding:12px}
 .rally-screen .overlay-card{max-width:280px}
}
@media(max-width:360px) and (orientation:portrait){.rally-screen .scoreboard{gap:7px;padding:0 4px}.rally-screen .compact-brand img{width:52px}.rally-screen .score-block,.rally-screen .best-block{gap:4px}.rally-screen .gesture-hint{font-size:11px}}

.brand-signature{position:relative;display:inline-flex;flex-direction:column;align-items:flex-end;direction:ltr;flex-shrink:0;vertical-align:middle;line-height:1}.brand-signature>img{display:block;width:100%;height:auto;margin:0!important}.brand-cafe{font-family:SpaceGrotesk,Space,Arial,sans-serif;font-size:clamp(8px,1.6vw,14px);font-weight:600;letter-spacing:.22em;line-height:1.1;margin-top:3px;padding-right:1px}.header-logo{width:100px!important}.hero-logo .brand-cafe{font-size:clamp(13px,3vw,23px)}.sidebar>a>.brand-signature{width:155px;margin:0 auto;color:#e5decc}.sidebar .brand-cafe{font-size:13px}footer>.brand-signature{width:110px}.nav-dialog>.brand-signature{width:130px;color:#934034}.brand-panel .brand-signature{width:175px;color:#e5decc}.brand-panel .brand-cafe{font-size:16px}.brand-link .brand-signature{width:148px}.brand-link .brand-signature>span{border:0;padding:0;margin-top:4px;display:block;font:600 12px/1.1 Space,Arial,sans-serif;letter-spacing:3px}.compact-brand .brand-signature{width:62px}.rally-screen .compact-brand .brand-signature img{width:100%;height:auto}.compact-brand .brand-cafe{font-size:8px;letter-spacing:2px;margin-top:2px}@media(max-width:640px){.brand-link .brand-signature{width:100px}.header-logo{width:80px!important}.header-logo .brand-cafe{font-size:9px}.hero-logo .brand-cafe{font-size:17px}}

.brand-link>.brand-signature{border:0;padding:0}
