@font-face{font-family:Montserrat;src:url('../fonts/montserrat-cyrillic.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Montserrat;src:url('../fonts/montserrat-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--bg:#2f4b9b;--surface:#263f84;--text:#fff8ed;--muted:#d7e0f5;--orange:#ef793e;--line:#6c83bd;--top:max(env(safe-area-inset-top,0px),var(--tg-top,0px));--bottom:max(env(safe-area-inset-bottom,0px),var(--tg-bottom,0px));--left:max(env(safe-area-inset-left,0px),var(--tg-left,0px));--right:max(env(safe-area-inset-right,0px),var(--tg-right,0px));font:400 16px/1.5 Montserrat,Arial,sans-serif;color:var(--text);background:var(--bg);color-scheme:dark;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:280px}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ffd2a8;outline-offset:4px}h1,h2,p,figure{margin:0}button:disabled{cursor:wait}svg,img{display:block}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.home{max-width:1160px;margin:auto;padding:calc(16px + var(--top)) max(20px,var(--right)) calc(18px + var(--bottom)) max(20px,var(--left))}.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.logo{width:135px;height:52px;object-fit:contain}.club-shortcut{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px;color:var(--muted)}.club-shortcut span{color:var(--orange);font-size:22px}.intro{padding:28px 0 24px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}h1{font-size:clamp(42px,9vw,90px);font-weight:700;letter-spacing:-.065em;line-height:1.12;margin:8px 0 12px}h1 span{color:var(--orange)}.intro-copy{font-size:16px;color:var(--muted)}
.games{display:grid;gap:14px}.game-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(100px,.8fr);grid-template-rows:1fr auto;gap:12px;min-width:0;position:relative;overflow:hidden;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}.game-copy{min-width:0;position:relative;z-index:1;align-self:center}.game-number{display:none;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--muted)}.game-copy h2{font-size:26px;line-height:1.15;letter-spacing:-.035em;margin-bottom:8px}.game-copy p{font-size:14px;line-height:1.45;color:var(--muted)}.game-modes{display:block;color:#dfc2a8;font-size:12px;line-height:1.5;margin-top:9px}.game-art{min-width:0;align-self:center;display:grid;place-items:center;isolation:isolate}.game-art img{width:100%;height:auto;max-height:136px;object-fit:contain;filter:drop-shadow(0 12px 10px #0005)}.carrom-card .game-art img{border-radius:10px;transform:rotate(5deg)}.billiards-card .game-art img{transform:rotate(-7deg)}.billiards-card .game-art img{max-height:150px}.play-button{align-self:end;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;border-radius:10px;padding:11px 16px;background:var(--orange);color:#182747;font-size:16px;font-weight:700;transition:background .15s,transform .15s}.play-button>span:last-child{font-size:24px;line-height:1}.play-button:hover{background:#ff9860}.play-button:active{transform:translateY(1px)}
.club-section{margin-top:24px;border-top:1px solid var(--line);padding-top:22px;scroll-margin-top:16px}.club-heading{display:flex;gap:14px;align-items:center}.club-mark{font-size:32px;color:var(--orange)}.club-heading h2{font-size:20px;line-height:1.25;letter-spacing:-.025em}.club-heading p{font-size:14px;color:var(--muted);margin-top:5px}.club-links{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.club-links a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;font-size:14px;flex:1;white-space:nowrap}.club-links a:hover{border-color:var(--orange)}.club-links span{color:var(--orange)}footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:28px;font-size:12px;color:var(--muted)}footer a{min-height:44px;display:flex;align-items:center;gap:10px}footer>span{align-content:center}.noscript{padding:20px}
.game-stage{position:fixed;inset:0;height:100dvh;display:flex;flex-direction:column;background:var(--bg)}.game-toolbar{display:flex;align-items:center;gap:14px;flex:none;padding:var(--top) max(12px,var(--right)) 0 max(8px,var(--left));border-bottom:1px solid var(--line);min-height:calc(48px + var(--top));z-index:2}.game-toolbar button{display:flex;gap:9px;align-items:center;border:0;background:transparent;min-height:48px;padding:8px 10px;font-size:14px;font-weight:700}.game-toolbar button span{font-size:22px;color:var(--orange)}#current-game{font-size:14px;color:var(--muted);margin-left:auto}.retained-note{font-size:12px;color:var(--muted);display:none}#game-frames{position:relative;flex:1;min-height:0}.game-frame{position:absolute;inset:0;border:0;width:100%;height:100%;background:var(--bg);visibility:hidden;pointer-events:none}.game-frame.active{visibility:visible;pointer-events:auto}.loading{position:absolute;inset:calc(48px + var(--top)) 0 0;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;background:var(--bg);padding:24px;text-align:center;z-index:1}.loading-ring{width:36px;height:36px;border:3px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:turn 1s linear infinite}.loading button{background:transparent;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 18px}.loading #retry{background:var(--orange);color:#182747;font-weight:700}.playing{overflow:hidden}@keyframes turn{to{transform:rotate(360deg)}}
@media(min-width:720px){.home{padding-top:calc(30px + var(--top))}.logo{width:154px;height:59px}.intro{padding:46px 0 34px}.intro-copy{font-size:19px}.games{grid-template-columns:1fr 1fr;gap:22px}.game-card{padding:26px;grid-template-columns:1fr;grid-template-rows:auto 210px auto;gap:18px}.game-number{display:block;margin-bottom:12px}.game-copy h2{font-size:34px}.game-copy p{font-size:16px;max-width:300px}.game-modes{font-size:13px}.game-art{height:210px;grid-row:2}.game-art img{width:auto;max-width:100%;max-height:210px}.carrom-card .game-art img{max-height:210px}.billiards-card .game-art img{max-height:180px;max-width:90%}.play-button{min-height:52px}.club-section{margin-top:36px;display:grid;grid-template-columns:1fr auto;column-gap:26px}.club-links{margin:0}.club-heading h2{font-size:24px}.retained-note{display:inline}#current-game{margin:0}.game-toolbar button{font-size:16px}.game-toolbar{gap:26px}.retained-note{margin-left:auto}}
@media(max-width:359px){.home{padding-inline:max(14px,var(--left)) max(14px,var(--right))}.intro{padding-top:18px;padding-bottom:18px}.game-card{padding:14px;gap:10px;grid-template-columns:minmax(0,1.35fr) minmax(82px,.65fr)}.game-copy h2{font-size:24px}.game-modes{margin-top:6px}.game-art img{max-height:116px}.games{gap:12px}.club-shortcut{font-size:12px}.intro-copy{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:719px) and (max-height:700px){.home{padding-top:calc(10px + var(--top))}.site-header,.logo{height:44px}.logo{width:115px}.intro{padding:12px 0 16px}.eyebrow{font-size:10px}h1{font-size:38px;margin:4px 0 8px}.intro-copy{font-size:14px}.game-card{padding:14px;gap:10px;grid-template-columns:minmax(0,1.3fr) minmax(86px,.7fr)}.game-copy h2{font-size:24px;margin-bottom:6px}.game-copy p{font-size:14px}.game-modes{display:none}.game-art img{max-height:100px}.billiards-card .game-art img{max-height:100px}.games{gap:12px}.club-section{margin-top:20px}}

.brand-lockup{display:flex;flex-direction:column;align-items:center;gap:3px}.brand-tagline{font-size:12px;line-height:1.4;letter-spacing:.025em;color:var(--text);white-space:nowrap}.club-links{display:grid;grid-template-columns:1fr;gap:10px}.club-links a{white-space:normal;min-width:0;min-height:76px;padding:14px 16px;background:#ffffff07}.club-location{display:flex;flex-direction:column;gap:4px;min-width:0}.club-links .club-location{color:var(--text)}.club-location strong{font-size:14px;line-height:1.35}.club-links .club-location>span{font-size:12px;line-height:1.5;color:var(--muted)}.club-links .map-arrow{font-size:24px;flex:none}footer{justify-content:flex-end}@media(min-width:720px){.club-section{grid-template-columns:1fr;gap:20px}.club-links{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:719px) and (max-height:700px){.site-header{height:auto;min-height:62px}.brand-lockup{gap:2px}.brand-tagline{font-size:11px}.logo{height:42px;width:120px}}

/* Compact Telegram play uses the already bound native Back button. The shell
   still owns the top safe inset exactly once; child frames receive top: 0. */
@media(max-width:719px),(max-height:600px){
  .native-game-navigation .game-toolbar{display:none}
  .native-game-navigation .game-stage{padding-top:var(--top)}
  .native-game-navigation .loading{inset:var(--top) 0 0}
}

/* Carrom owns its compact navigation. The host applies the top inset once;
   its child receives insets.top=0 through the existing bridge. */
body.playing[data-playing-game="carrom"]{--bg:#131916;--surface:#223126;--text:#F2F0E5;--muted:#B3C1B2;--line:#53654F;--orange:#D4FA70;background:#131916}
body.playing[data-playing-game="carrom"] .game-stage{padding-top:max(var(--top),var(--carrom-top-inset,0px));background:#131916}
body.playing[data-playing-game="carrom"] .game-toolbar{display:none}
body.playing[data-playing-game="carrom"] .loading{inset:max(var(--top),var(--carrom-top-inset,0px)) 0 0;background:#131916}
body.playing[data-playing-game="carrom"] .game-stage{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.playing[data-playing-game="carrom"] .game-stage :is(input,textarea,[contenteditable="true"]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
