:root{color-scheme:dark;--surface:#101713;--tile:#1c2720;--ink:#eaf3ec;--dim:#a7b8aa;--stroke:#334638;--green:#b6db81;font:15px/1.45 system-ui,sans-serif;background:var(--surface);color:var(--ink)}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column}header{padding:14px 20px;padding-top:max(14px,env(safe-area-inset-top));display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--stroke)}a{color:inherit;text-decoration:none}.brand{font-size:18px;font-weight:600}main{position:relative;flex:1;min-height:0;overflow:auto;padding:20px}main.map-page{padding:0}#map{width:100%;height:100%;background:#e8ede7;color:#17291c}nav{display:flex;padding:8px 8px max(12px,env(safe-area-inset-bottom));background:var(--tile);border-top:1px solid var(--stroke)}nav a{flex:1;text-align:center;min-height:44px;padding:12px 3px;font-size:13px}nav a[aria-current=page]{color:var(--green)}h1{font-size:26px;line-height:1.2;font-weight:500;margin:12px 0 18px}h2{font-size:19px;font-weight:500}.muted,small{color:var(--dim)}button,input,select{font:inherit;font-size:16px;min-height:44px;border:1px solid var(--stroke);border-radius:12px;padding:10px 14px;background:var(--tile);color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--green);color:#16250e;border-color:transparent}input,select{width:100%}input[type=checkbox]{width:24px;min-height:24px}label{display:grid;gap:6px;margin:16px 0}form,.content{max-width:760px;margin:auto}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.card{display:block;width:100%;text-align:left;background:var(--tile);border:1px solid var(--stroke);border-radius:16px;padding:16px;margin:12px 0}.card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}.back{border:0;background:transparent;padding-left:0}.status{padding:14px}.map-status{position:absolute;top:12px;left:12px;right:12px;background:var(--tile);border-radius:12px;z-index:2}.club-pin{border:2px solid #fff;background:#245735;color:#fff;border-radius:24px;box-shadow:0 3px 12px #1235;font-weight:600}.ball{display:grid;place-items:center;background:#fff;color:#18261d;border-radius:50%;width:52px;height:52px;font-weight:600;font-size:22px}.actions{display:grid;gap:10px}.error{color:#ffc5b5}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--green);outline-offset:3px}@media(min-width:800px){nav{justify-content:center}nav a{flex:0 1 190px}}
.game-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.game-heading h2{margin:0}.game-heading button{flex:0 0 auto;min-width:44px;min-height:44px}
.status:empty,.game-people:empty{display:none}.game-score{font-size:32px;letter-spacing:.04em}.game-people{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0}.game-person{display:grid;justify-items:center;gap:8px;max-width:45%;overflow-wrap:anywhere;text-align:center}.player-avatar{display:inline-grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:#fff;overflow:hidden}.card .player-avatar img,.player-avatar img{width:52px;height:52px;aspect-ratio:1;object-fit:cover;border-radius:50%}
.game-person{max-width:32%}.game-people .game-score{white-space:nowrap;margin:0}
.avatar-palette{display:flex;gap:10px;flex-wrap:wrap}.avatar-swatch{width:40px;height:40px;min-height:40px;padding:0;border:2px solid #89978d;border-radius:50%}
.shot-filters{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0}.shot-filters label{display:flex;align-items:center;gap:8px;margin:0}.shot-filters input{margin:0}.card>button{margin:4px 4px 4px 0}
:root .map-club-list{position:absolute;top:80px;left:12px;right:12px;max-width:460px;max-height:65dvh;overflow:auto;padding:16px;border-radius:16px;background:#f7f8f5;color:#142219;z-index:3}.map-club-list[hidden]{display:none}.map-club-list button{display:block;width:100%;margin:8px 0}.maplibregl-ctrl-attrib{color:#333;background:#fff!important}

:root{color-scheme:dark;--surface:#101217;--tile:#1c2028;--ink:#f5f6f8;--dim:#979faa;--stroke:#ffffff12;--green:#a5e4cc;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--surface);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}
header{flex:none;padding:14px 24px;padding-top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);background:#101217}.brand{font-size:18px;letter-spacing:-.4px;font-weight:650}#network{font-size:12px;color:var(--dim)}main{position:relative;flex:1;min-height:0;overflow:auto;padding:28px 20px 36px;overscroll-behavior-y:contain}.content{max-width:720px;margin:auto}main.map-page{padding:0}#map{width:100%;height:100%;background:#edf0ec;color:#1a2320}
nav{display:flex;flex:none;padding:9px 10px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--stroke);background:#161a20}nav a{flex:1;min-height:48px;text-align:center;display:grid;justify-items:center;align-content:center;gap:4px;color:#9099a6;font-size:11px;letter-spacing:.1px;font-weight:500}nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}nav a[aria-current=page]{color:var(--green)}
h1{font-size:34px;line-height:1.1;letter-spacing:-1.15px;font-weight:720;margin:4px 0 14px}h2{font-size:20px;line-height:1.3;letter-spacing:-.4px;font-weight:650;margin:10px 0}h3{font-size:18px;font-weight:650;letter-spacing:-.3px}.page-subtitle{color:var(--dim);margin:0 0 26px;max-width:56ch}.muted,small,.footnote{color:var(--dim)}.footnote{font-size:13px;margin-top:24px}
button,input,select{min-height:48px;font-size:16px;border:1px solid var(--stroke);border-radius:14px;padding:12px 16px;background:var(--tile);color:inherit}input,select{width:100%;outline:none}input:focus{border-color:var(--green)}input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--green)}label{display:grid;gap:9px;font-size:13px;color:var(--dim);margin:22px 0}label input{color:var(--ink)}button.primary{background:var(--green);border-color:transparent;color:#153a30;font-weight:650}.secondary{background:#ffffff09;border-color:transparent}.back{padding:0;min-height:36px;background:none;border:0;color:var(--green);font-size:14px;margin-bottom:12px}.status{font-size:14px;color:var(--dim);padding:12px 0}.status:empty,.game-people:empty{display:none}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.card{background:var(--tile);border:1px solid var(--stroke);border-radius:22px;padding:20px;margin:14px 0}.card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px}.row,.game-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.game-heading h2{margin:0}.empty-title{padding-top:54px;color:var(--ink);font-weight:650;letter-spacing:-.5px;font-size:23px}.empty-description{color:var(--dim);font-size:15px;line-height:1.6;max-width:320px;margin:8px 0 50px}
.day-group{border-top:1px solid var(--stroke);margin-top:12px}.day-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 2px;font-size:17px;font-weight:600;letter-spacing:-.3px}.day-group>summary::-webkit-details-marker{display:none}.day-count{font-size:12px;font-weight:500;min-width:28px;text-align:center;padding:4px 8px;background:#ffffff08;color:var(--dim);border-radius:20px}.day-group>summary:after{content:'⌄';color:var(--dim);font-size:20px}.day-group[open]>summary:after{transform:rotate(180deg)}.day-count{margin-left:auto}.day-records{display:grid;gap:14px;padding-bottom:20px}.record-card{margin:0;padding:18px;min-width:0}.record-date{font-size:12px;color:var(--dim);margin:0 0 8px;letter-spacing:.2px}.record-card h2{margin:0;font-size:19px}.record-state{font-size:12px;color:var(--dim);margin:5px 0 16px}.record-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:9px;margin-top:16px}.record-actions button{font-size:13px;padding:11px 8px;min-height:44px}.load-more{display:block;margin:24px auto 0;background:none;color:var(--green);border-color:var(--stroke);font-size:14px}
.table-preview{position:relative;aspect-ratio:16/9;background:linear-gradient(145deg,#253c36,#152823);border-radius:14px;overflow:hidden;display:grid;place-items:center;margin:12px 0}.table-preview img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}.preview-placeholder{font-size:13px;color:#b3c4bc;text-align:center;padding:24px}.preview-caption{position:absolute;left:10px;top:10px;padding:4px 8px;border-radius:7px;background:#0b1217b8;color:#fff;font-size:10px;letter-spacing:.2px;pointer-events:none}.preview-play{position:absolute;bottom:12px;right:12px;min-height:34px;padding:6px 11px;background:#f5f6f7ed;color:#18251f;border:0;border-radius:9px;font-size:12px;font-weight:600}
.game-people{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:24px 0}.game-person{max-width:32%;text-align:center;font-size:15px;overflow-wrap:anywhere}.game-score{font-size:38px;letter-spacing:-1px;font-weight:700;white-space:nowrap}.shot-filters{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 20px}.shot-filters label{display:flex;align-items:center;gap:8px;margin:0}.shot-filters input{margin:0}.shot-card>button{margin:5px 5px 5px 0;font-size:13px}.shot-card h3{margin:6px 0}.shot-card>p{color:var(--dim);font-size:13px}.shot-card form{padding-top:12px;border-top:1px solid var(--stroke)}
.profile-form{max-width:480px;margin:auto}.profile-hero{text-align:center;padding:22px 0 14px}.profile-hero p{font-size:13px;margin:14px 0}.profile-ball{--ball-color:#fff;display:grid;place-items:center;width:96px;height:96px;margin:auto;border-radius:50%;background:radial-gradient(circle at 31% 24%,#fff9 0%,transparent 55%),var(--ball-color);box-shadow:inset -8px -12px 18px #0002,0 10px 25px #0003;color:#20242a;font-size:34px;font-weight:700;letter-spacing:-1px}.profile-form h2{margin-top:32px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#080b1080;border-radius:15px;margin:16px 0 22px}.segmented button{border:0;background:none;font-size:13px;min-height:40px;padding:8px;color:var(--dim);border-radius:11px}.segmented button[aria-pressed=true]{background:#323944;color:var(--ink);box-shadow:0 2px 6px #0003}.ball-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;justify-items:center;padding:10px 0 20px}.number-ball{padding:0;width:46px;height:46px;min-height:46px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff,#e6e8ec);color:#24272d;border:0;font-weight:650;box-shadow:inset -3px -4px 8px #0001}.number-ball[aria-pressed=true],.avatar-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:5px}.avatar-palette{display:grid;grid-template-columns:repeat(4,1fr);justify-items:center;gap:20px;padding:12px 0 24px}.avatar-swatch{background:radial-gradient(circle at 30% 22%,#fff7,transparent 65%),var(--swatch);width:48px;height:48px;padding:0;border:0;border-radius:50%;box-shadow:inset -4px -6px 10px #0002}.custom-color{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--tile);border-radius:16px;font-size:15px;color:var(--ink)}input[type=color]{width:48px;height:44px;min-height:44px;padding:3px;border:0;background:none;border-radius:12px}.color-choices>label:last-child{display:grid;grid-template-columns:1fr 130px;align-items:center}.color-choices input[type=text]{font-family:ui-monospace,monospace}.profile-form>button.primary{width:100%;margin-top:28px}.sign-out{display:block;border:0;background:none;color:#e3a8aa;margin:28px auto 0;font-size:14px}.share-form{padding:12px 0 24px}.share-form>button{width:100%}.switch-row{display:flex;align-items:center;gap:14px;color:var(--ink);padding:20px;background:var(--tile);border-radius:18px;font-size:15px}.share-link{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px}.share-link input{font-size:12px;min-width:0}
.map-status{position:absolute;top:16px;left:16px;right:16px;background:#19211fed;color:#e8efeb;border:1px solid #fff1;padding:14px 16px;border-radius:16px;z-index:2;font-size:13px}.club-pin{border:2px solid #fff;background:#245b47;color:#fff;border-radius:24px;box-shadow:0 4px 14px #1234;font-size:12px;font-weight:650;min-height:40px;padding:8px 12px}.map-club-list{position:absolute;top:80px;left:16px;right:16px;max-width:460px;max-height:65dvh;overflow:auto;padding:20px;border-radius:20px;background:#f7f8f5;color:#142219;z-index:3}.map-club-list button{display:block;width:100%;margin:8px 0}.maplibregl-ctrl-attrib{color:#333;background:#fff!important}.error{color:#f1aaa6}.actions{display:grid;gap:10px}.player-avatar{display:none}
@media(min-width:700px){main{padding:40px 28px}.day-records{grid-template-columns:1fr 1fr}.content{max-width:820px}nav{justify-content:center}nav a{flex:0 1 160px}.profile-form{max-width:460px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s,transform .15s}button:active{transform:scale(.98)}}

.live-scoreboard{text-align:center;padding:24px 12px;background:var(--panel,#1c2028);border-radius:24px}.live-scoreboard .game-score{font-size:52px;display:block}.live-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.player-stat{background:#1c2028;border-radius:18px;padding:16px}.live-metrics small{grid-column:1/-1}.live-players{font-size:20px}.shot-card{overflow:hidden}

.touch-palette{padding:8px 0 16px}.color-plane{position:relative;height:210px;border-radius:18px;touch-action:none;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);outline-offset:4px}.color-thumb{position:absolute;width:24px;height:24px;border:3px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 1px 6px #0008;pointer-events:none}.touch-palette input[type=range]{appearance:none;padding:0;border:0;min-height:24px;height:24px;border-radius:20px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:pan-y}.touch-palette input::-webkit-slider-thumb{appearance:none;width:32px;height:32px;border:3px solid white;border-radius:50%;background:transparent;box-shadow:0 1px 5px #0008}.touch-palette input::-moz-range-thumb{width:26px;height:26px;border:3px solid white;border-radius:50%;background:transparent}.shot-card details{padding:12px 0}.shot-card summary{color:var(--dim);font-size:14px;cursor:pointer}nav svg{overflow:visible}

.shot-inline-player{position:absolute;z-index:5;border:0;border-radius:14px;background:#000}.table-preview>.preview-play{z-index:2}

.qr-camera{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:24px;background:#000;margin:20px 0}.join-seat{font-size:22px;font-weight:600}.join-table{color:var(--dim)}

.correction-toggle{font-size:13px;background:none;border:0;color:var(--dim);padding:8px 0}.vote-panel{padding:8px 0 12px}.vote-panel .segmented{margin:4px 0 16px}.vote-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 18px}.vote-numbers button:first-child{grid-column:1/-1}.vote-numbers button[aria-pressed=true]{background:var(--green);color:#153a30}.vote-panel>.primary{width:100%}

.login-form{display:grid;gap:12px}.login-form label{margin:10px 0}.login-form p{margin:0}.logout-confirm{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.logout-confirm p{width:100%;margin:0}.match-board{padding:24px 20px 14px;background:var(--tile);border:1px solid var(--stroke);border-radius:24px;margin:22px 0}.match-seats{display:grid;grid-template-columns:1fr 1fr;gap:20px}.match-seat{text-align:center;display:grid;gap:10px;min-width:0}.match-seat strong{font-size:16px;overflow-wrap:anywhere}.match-score{font-size:54px;line-height:1.15;letter-spacing:-2px}.match-stats{font-size:12px;color:var(--dim);white-space:nowrap}.match-seat.is-turn strong:before{content:"";display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.match-share{display:block;margin:20px auto 0;border:0;background:none;color:var(--green);min-height:40px;padding:8px}.shots-heading{display:flex;align-items:center;gap:12px;margin-top:28px}.sync-indicator{width:14px;height:14px;border:2px solid transparent;border-radius:50%}.sync-indicator.is-updating{border-color:var(--stroke);border-top-color:var(--green);animation:sync-spin 1s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}.preview-share{position:absolute;bottom:12px;left:12px;z-index:3;min-height:34px;padding:6px 11px;background:#15201ddd;font-size:12px;border-radius:9px}.table-preview[role=button]{cursor:pointer}.clip-loading:after{content:"Загружаем удар…";position:absolute;inset:0;display:grid;place-items:center;background:#101217b8;font-size:14px;z-index:4}.full-game-video iframe{width:100%;height:min(660px,75dvh);border:0;border-radius:18px;background:#000}.whole-game{width:100%;margin:4px 0 14px}.shot-result:empty{display:none}
.shot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.shot-labels{min-width:0;display:grid;gap:5px}.shot-labels h3{margin:0;font-size:16px;overflow-wrap:anywhere}.shot-result{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--dim)}.shot-result:before{content:"";width:17px;height:3px;background:currentColor;transform:rotate(-35deg);border-radius:2px;margin:4px}.shot-result.has-pots:before{width:11px;height:11px;border-radius:50%;background:var(--green);transform:none}.shot-heading .correction-toggle{width:44px;height:44px;min-width:44px;padding:11px;margin:0;border:0;background:transparent;color:var(--dim)}.correction-toggle svg{width:22px;height:22px;display:block}.shot-card>.correction:empty{display:none}
.full-game-video iframe{display:block;height:clamp(340px,calc((100vw - 40px)*.5625 + 190px),560px)}
.record-line{display:flex;align-items:center;gap:12px;margin-bottom:14px;min-width:0}.record-clock{font-size:25px;font-weight:450;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:var(--dim);flex:none}.record-players{min-width:0;flex:1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-result{font-size:21px;color:var(--dim);flex:none}.record-result.winner{color:var(--green)}.records-sentinel{height:2px}
.match-estimate,.match-delivery{font-size:12px;line-height:1.5;text-align:center;color:var(--dim);margin:8px 0 0}
/* The app shell never scrolls; only main owns the page scroll position. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;height:100dvh;overflow:hidden;overscroll-behavior:none}
body>nav{position:relative;z-index:6;flex-shrink:0;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
body>main{min-width:0;overflow-x:hidden}
.shot-heading{gap:8px;margin-bottom:8px;min-width:0}
.shot-labels{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.shot-labels h3{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot-labels .shot-result{flex:0 1 auto;min-width:0;max-width:48%;font-size:12px;line-height:1.3}
.shot-result:before{flex-shrink:0}
.record-match{display:flex;align-items:center;gap:7px;flex:1;min-width:0;font-size:13px}
.record-player{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-player:last-child{text-align:right}
.record-player.winner{color:var(--green)}
.record-score{flex:none;white-space:nowrap;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
/* Thumb actions sit above navigation while their content scrolls independently. */
main.action-page{display:flex;flex-direction:column;padding:0;overflow:hidden}
.action-page>.content{flex:1;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;padding:20px;margin:0 auto}
.bottom-actions{flex:none;display:flex;gap:12px;width:100%;max-width:760px;margin:0 auto;padding:14px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--stroke)}
.bottom-actions>button{flex:1;min-width:0;min-height:52px;margin:0}
.action-page .qr-camera{display:block;max-height:42dvh;margin:12px 0;object-fit:contain}
.bottom-actions:has(>.login-form){display:block;flex:0 1 auto;max-height:75%;overflow:auto;overscroll-behavior:contain}
.bottom-actions>.login-form{width:100%;max-width:none;gap:12px}
.bottom-actions .login-form label{margin:0}
.bottom-actions .login-form button,.bottom-actions .login-form input{min-height:52px}
.bottom-actions .login-form .status{padding:0;font-size:13px}
.bottom-actions .login-form .status:empty{display:none}
.bottom-actions .login-form .muted{font-size:13px}
[data-install-help]>button{width:100%;min-height:48px}
.join-loading{display:flex;align-items:center;gap:12px}
.join-loading:before{content:"";flex:none;width:20px;height:20px;border:2px solid var(--stroke);border-top-color:var(--green);border-radius:50%;animation:sync-spin 1s linear infinite}
@media(prefers-reduced-motion:reduce){.join-loading:before{animation:none}}
.clip-note{position:absolute;left:10px;right:10px;bottom:10px;z-index:6;padding:6px 9px;border-radius:8px;background:#101217dd;color:var(--ink);font-size:12px;pointer-events:none}
.practice-summary{font-size:20px;font-weight:650;text-align:center;margin:0;font-variant-numeric:tabular-nums}
.practice-players{grid-template-columns:repeat(3,minmax(0,1fr))}
.practice-players>button{font-size:12px;padding-left:6px;padding-right:6px}

.content:has(>.records-refresh){position:relative}.records-refresh{position:absolute;right:0;top:0;display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--green);font-size:13px}.records-refresh:before{content:'↻';font-size:23px;line-height:1}.records-refresh[aria-busy=true]:before{animation:sync-spin 1s linear infinite}.history-card{padding:12px 16px;margin:0}.history-card .record-line{margin:0}.history-card>.history-open{display:block;width:calc(100% + 32px);min-height:49px;margin:-12px -16px;padding:12px 16px;border:0;background:none;text-align:left}.day-more{display:block;margin:10px auto}.day-records>.status:empty{display:none}
@media(prefers-reduced-motion:reduce){.records-refresh[aria-busy=true]:before{animation:none;opacity:.5}}

.vote-numbers{display:flex;align-items:center;justify-content:space-between;gap:12px}.vote-numbers button{width:44px;flex:none}.vote-numbers output{font-size:18px;font-variant-numeric:tabular-nums}.clip-editor{border-bottom:1px solid var(--stroke);margin-bottom:12px;padding-bottom:10px}.clip-editor summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--green)}.clip-editor label{position:relative;margin:8px 0;font-size:12px}.clip-editor output{position:absolute;right:0;top:0;color:var(--dim)}.clip-editor input[type=range]{padding:0;min-height:32px;accent-color:var(--green)}.clip-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.clip-editor-actions button,.clip-editor button,.clip-save{font-size:12px;min-height:44px}.clip-save{display:block;margin:8px 0;color:var(--green)}.cached-shot-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:2;touch-action:pan-y}

.clip-padding-row{display:flex;align-items:center;gap:5px;margin:8px 0}.clip-padding-row>span{flex:1;font-size:12px}.clip-padding-row button{padding:6px;min-width:38px}.clip-padding-row output{position:static;min-width:36px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}

/* B7: six-pocket result editor, contained in the existing pencil panel. */
.shot-edit-tabs{margin-bottom:16px}.shot-result-editor>.segmented{display:flex}.shot-result-editor>.segmented button{flex:1;min-height:44px}
.shot-pocket-table{position:relative;height:152px;margin:24px 10px 16px;border:9px solid #776752;border-radius:15px;background:#205e58;box-shadow:inset 0 0 0 3px #398a77}
.shot-pocket-table .shot-pocket{position:absolute;z-index:2;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;color:#fff;border-radius:50%;font-size:13px;font-weight:700;isolation:isolate}
.shot-pocket:before{content:'';position:absolute;inset:9px;border-radius:50%;background:#0a2421;border:2px solid #81735c;z-index:-1}.shot-pocket[aria-pressed=true]:before{border-color:#e2eaca;box-shadow:0 0 0 3px #e2eaca33}
.pocket-0,.pocket-3{left:-19px}.pocket-1,.pocket-4{left:calc(50% - 22px)}.pocket-2,.pocket-5{right:-19px}.pocket-0,.pocket-2{top:-19px}.pocket-1{top:-21px}.pocket-3,.pocket-5{bottom:-19px}.pocket-4{bottom:-21px}
.shot-pocket-center{position:absolute;inset:24px 8px;display:flex;align-items:center;justify-content:center;gap:14px}.shot-pocket-center button{width:44px;height:44px;min-height:44px;border-radius:50%;background:#ffffff16;color:#eef5da;border:1px solid #ffffff36;font-size:24px}.shot-pocket-center output{min-width:32px;text-align:center;font-size:30px;color:#eef5da}.shot-result-editor>.quiet{display:block;margin:8px auto 12px}.clip-editor{border:0;padding:0}.clip-editor[hidden],.shot-result-editor[hidden]{display:none}

.shot-pot-total{text-align:center;color:var(--dim);font-size:13px}.shot-pocket[aria-pressed=true]:before{background:#dbebe4;border-color:#9af0d4;box-shadow:0 0 0 4px #c0e7d72b}.shot-pocket[aria-pressed=true]{color:#133d35}.clip-editor>div>button{width:100%;margin-top:8px}.clip-editor-actions{margin-bottom:12px}

.shot-pocket-center{flex-direction:column;gap:6px}.shot-pocket-controls{display:flex;align-items:center;justify-content:center;gap:16px}.shot-pocket-controls[hidden]{display:none}.shot-pocket-chosen{color:#d4e8df;font-size:11px;text-align:center}

/* One shell connection state; loaded content and drafts remain mounted. */
.service-unavailable header{align-items:flex-start}.service-unavailable #network{display:flex;align-items:center;gap:8px;max-width:70%;font-size:11px;color:var(--dim)}.service-unavailable #network button{font-size:11px;padding:6px;min-height:40px;flex:none}.service-unavailable #main .status{visibility:hidden}.service-unavailable #main:empty:before{content:"Загружаем экран…";display:block;padding:24px;color:var(--dim)}
.service-unavailable #main .content:has(>h1:only-child):after{content:"Загружаем экран…";display:block;color:var(--dim);padding:12px 0;font-size:14px}

/* Profile editing stays within thumb reach without shrinking touch targets. */
.profile-hero{display:grid;grid-template-columns:72px minmax(0,1fr) 44px;align-items:center;gap:10px;padding:4px 0 12px;text-align:left}.profile-hero .profile-ball{width:64px;height:64px;font-size:25px;grid-column:1;grid-row:1}.profile-hero label{grid-column:2;grid-row:1;margin:0;font-size:12px;color:var(--dim)}.profile-hero input{margin:4px 0 0;font-size:17px;width:100%;min-width:0}.profile-edit{grid-column:3;grid-row:1;width:44px;height:44px;padding:0;border-radius:50%;font-size:25px;color:var(--green)}.profile-form .segmented{margin:8px 0 12px}.profile-form .ball-grid{gap:12px;padding:6px 0 12px}.profile-form .avatar-palette{gap:12px;padding:6px 0 16px}.profile-form .avatar-swatch{width:44px;height:44px;min-height:44px}.profile-form .touch-palette{padding:0 0 8px}.profile-form .color-plane{height:140px}.profile-form .touch-palette input[type=range]{margin:14px 0 0;min-height:32px}.profile-form>button.primary{margin-top:12px}.profile-form>.status:empty{display:none}.profile-form>.status{margin:8px 0;font-size:13px}.profile-install{max-width:480px;margin:14px auto 0}.profile-install .card{padding:0;background:none;border:0;box-shadow:none}.profile-install button{width:100%}.profile-install p{font-size:13px;line-height:1.5;margin:10px 0}.profile-install+.sign-out{margin-top:12px}
.content:has(>.profile-form)>h1{margin:4px 0 14px}.profile-form .color-plane{height:120px}.profile-form .touch-palette label{margin:8px 0}.profile-form .touch-palette input[type=range]{margin-top:6px}
/* B10: compact, stable shot cards and one export action. */
.shot-card{overflow-anchor:none}.shot-card .shot-heading{display:flex;gap:10px;align-items:center}.shot-number{font-size:24px;font-weight:500;color:var(--dim);font-variant-numeric:tabular-nums;flex:none;min-width:30px}.shot-card .shot-labels{flex:1;display:grid;gap:3px;min-width:0}.shot-card .shot-labels h3{font-size:13px;line-height:1.3}.shot-card .shot-labels .shot-result{max-width:none;font-size:10px}.shot-at-score{white-space:nowrap;font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink)}.shot-card .shot-heading .correction-toggle{flex:none;width:36px;min-width:36px;padding:7px}.shot-vote-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shot-card .shot-vote-actions button,.shot-card .shot-pocket-controls button{margin:0}.shot-card .shot-pocket-controls button{padding:0;flex:none;width:44px;height:44px}.shot-pocket-controls{gap:12px}.shot-pocket-controls output{position:static;display:block;flex:0 0 32px}.shot-pocket-center{inset:16px 8px}.shot-pot-total:empty{display:none}.shot-vote-actions .quiet{font-size:12px}.clip-studio{padding:14px;border-radius:18px;background:#0c1016;border:1px solid #ffffff0b}.clip-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}.clip-summary strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums}.clip-summary span{font-size:10px;text-align:right}.clip-settings{min-height:108px}.clip-studio .clip-padding-row{display:grid;grid-template-columns:minmax(65px,1fr) 36px 38px 36px 36px;gap:4px;margin:8px 0}.shot-card .clip-padding-row button{margin:0;min-width:0;width:36px;min-height:44px;padding:0;border-radius:12px;font-size:13px}.clip-padding-row>span{font-size:11px}.clip-editor .clip-padding-row output{position:static;min-width:0;font-size:13px}.clip-studio .clip-editor-actions{margin:4px 0 0;grid-template-columns:1fr 1.4fr;gap:8px}.shot-card .clip-editor-actions button{margin:0;width:100%;padding:9px 6px;font-size:12px;min-height:46px}.clip-progress{min-height:57px}.clip-progress progress{appearance:none;display:block;width:100%;height:3px;border:0;border-radius:3px;background:#ffffff0d}.clip-progress progress::-webkit-progress-bar{background:#ffffff0d;border-radius:3px}.clip-progress progress::-webkit-progress-value{background:var(--green);border-radius:3px;transition:width .3s}.clip-progress progress::-moz-progress-bar{background:var(--green)}.clip-feedback{font-size:11px;line-height:1.4;color:var(--dim);margin:7px 0;min-height:30px}.clip-save{font-size:12px;margin:0}.clip-progress.is-preparing progress{animation:clip-pulse 1.2s ease-in-out infinite}@keyframes clip-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.clip-progress.is-preparing progress{animation:none}}@media(max-width:350px){.clip-studio{padding:10px}.shot-card .shot-heading{gap:6px}.shot-at-score{font-size:14px}}
.table-preview[data-video-cached=true]:after{content:"На устройстве";position:absolute;top:10px;right:10px;padding:4px 7px;background:#101713dd;border-radius:7px;color:#b7e7d4;font-size:10px;z-index:3}.table-preview.clip-loading[data-video-cached=true]:after{content:"Загружаем удар…";inset:0;padding:0;border-radius:0;font-size:14px;z-index:4}

/* Personal subscriptions and club discovery stay inside the billiards cabinet. */
.account-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.account-links>button{flex:1;min-width:110px;font-size:13px;min-height:44px}
.quota-note{font-size:12px;color:var(--dim);line-height:1.5;margin:10px 0}.notice{padding:14px 16px;border:1px solid var(--stroke);border-radius:14px;background:var(--tile);font-size:13px;color:var(--ink)}
.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:20px 0}.plan-card{display:flex;flex-direction:column;gap:8px;margin:0}.plan-card>h2,.plan-card>p{margin:0}.plan-card .plan-price{font-size:27px;font-weight:600;letter-spacing:-.02em}.plan-card>button{margin-top:auto;width:100%}.plan-card .muted{font-size:12px;line-height:1.6}
.club-links>a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.favorite-control{margin:12px 0 0}.favorite-control>button{font-size:13px}.favorite-control>button[aria-pressed=true]{color:var(--green);border-color:var(--green)}.favorite-control>.status{padding:6px 0;font-size:12px}.storage-state{font-size:12px;color:var(--dim)}.subscription-summary>p{font-size:13px}.favorite-card h2{font-size:17px}
.club-map-toolbar{position:absolute;top:12px;left:12px;right:12px;display:flex;gap:8px;z-index:3;pointer-events:none}.club-map-toolbar>button{pointer-events:auto;background:var(--tile);box-shadow:0 3px 14px #0003;font-size:13px}.map-page>.map-status{top:auto;bottom:58px;max-width:440px;font-size:12px}.club-pin.is-unconnected{background:#444b57;color:#e3e6ec;border-color:#9ba1ac;box-shadow:0 2px 10px #0004}.club-pin.is-connected{background:#245735;border-color:#c0ead9}.club-directory-card{padding:16px 0;border-bottom:1px solid var(--stroke)}.club-directory-card h2{font-size:16px;margin:0 0 6px}.club-directory-card p{margin:6px 0}.club-directory-card.is-unconnected h2{color:var(--dim)}.club-directory-card:last-child{border-bottom:0}.map-club-list .club-directory-card button{margin:8px 0}.club-connection{font-size:12px;color:var(--dim)}.is-connected .club-connection{color:var(--green)}.club-vote{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.club-vote>button{min-height:44px;font-size:13px}.club-vote-count{font-size:11px;color:var(--dim)}.club-links{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;margin:12px 0}.club-information>.status{padding:0}.club-information{padding:0 0 12px;border-bottom:1px solid var(--stroke)}
.public-shorts{margin:24px 0}.short-card h3{font-size:16px;margin:0 0 12px}.short-preview{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#080b10}.short-preview:empty{display:none}.short-preview>iframe,.short-preview>img{width:100%;height:100%;border:0;display:block;object-fit:cover}.short-stats{font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums}.short-card>button{font-size:13px}.short-card>button[aria-pressed=true]{color:var(--green)}
.coach-invite>input{font-size:12px;margin:12px 0}.coach-card h3,.coach-game h2{margin-top:0}.coach-comments{border-top:1px solid var(--stroke);margin-top:14px;padding-top:6px}.coach-comments>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;color:var(--green);list-style:none}.coach-comments>summary:before{content:'▸';margin-right:8px}.coach-comments[open]>summary:before{content:'▾'}.coach-comment{padding:12px 0;border-bottom:1px solid var(--stroke)}.coach-comment strong{font-size:12px}.coach-comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:6px 0}.coach-comment time{font-size:11px}.coach-comments textarea{display:block;resize:vertical;width:100%;font:inherit;font-size:14px;min-height:84px;border:1px solid var(--stroke);border-radius:12px;padding:12px;background:var(--surface);color:var(--ink)}.coach-comments label{font-size:12px;margin:12px 0}.coach-comments form>button{width:100%;font-size:13px}.coach-comments>.status{font-size:12px;padding:6px 0}
@media(max-width:480px){.plans-grid{grid-template-columns:1fr}.plan-card{padding:20px}.account-links{gap:6px}.account-links>button{min-width:90px}.map-page>.map-status{right:12px;bottom:58px}.club-map-toolbar{right:auto}}

/* Saved SD media has a native playlist; original replay remains unchanged. */
.saved-player{width:100%;border:1px solid var(--stroke);border-radius:16px;overflow:hidden;background:var(--tile);margin:12px 0}.saved-player>video{display:block;width:100%;max-height:65dvh;aspect-ratio:16/9;background:#000}.saved-quality,.saved-copy-status{font-size:12px;line-height:1.6;color:var(--dim);padding:10px 14px;margin:0}.saved-copy-status:empty{display:none}.saved-timeline{position:relative;margin:8px 14px}.saved-timeline>input[type=range]{display:block;width:100%;padding:0;margin:0;min-height:44px;accent-color:var(--green)}.saved-shot-markers{position:absolute;inset:0 8px;pointer-events:none}.saved-shot-marker{position:absolute;top:0;transform:translateX(-50%);width:12px;min-width:0;height:44px;min-height:44px;padding:0;border:0;border-radius:3px;background:transparent;pointer-events:auto}.saved-shot-marker:after{content:"";position:absolute;left:calc(50% - 1.5px);top:7px;width:3px;height:8px;border-radius:2px;background:var(--amber,#e2a467)}.saved-shot-marker:focus-visible{outline:2px solid var(--green);outline-offset:0}.saved-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 12px}.saved-controls>button{font-size:12px;flex:none}.saved-controls>output{font-size:11px;text-align:center;font-variant-numeric:tabular-nums;color:var(--dim)}.saved-player>.status{font-size:12px;margin:0;padding:8px 14px}.saved-source-frame{display:block;width:100%;height:min(600px,65dvh);border:0;border-radius:16px;background:#000}.full-game-video .saved-player>video{height:auto;aspect-ratio:16/9}.full-game-video .saved-player{width:100%}@media(max-width:370px){.saved-controls{gap:4px;padding-left:8px;padding-right:8px}.saved-controls>button{padding:8px;font-size:11px}.saved-controls>output{font-size:10px}}

.quota-reset{margin:12px 0}.quota-reset button{min-height:44px;font-size:12px}.quota-reset p{font-size:11px;line-height:1.5;margin:6px 0}.whole-download-link{display:block;min-height:44px;padding:12px 0;color:var(--green);text-decoration:underline}

/* Inline at the end of app.css. Existing score, QR and media controls keep their selectors. */
body.map-flow {overflow:hidden}
main.map-stage {position:relative;flex:1;min-height:0;padding:0;overflow:hidden}
main.map-stage #map {position:absolute;inset:0;width:100%;height:100%}
.club-flow-dialog {position:fixed;inset:0;width:min(880px,calc(100vw - 48px));height:min(900px,calc(100dvh - 80px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--stroke);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #0008;overflow:visible}
.club-flow-dialog::backdrop {background:#07120b66;backdrop-filter:blur(2px)}
.club-flow-frame {display:flex;flex-direction:column;position:relative;height:100%;min-height:0;border-radius:inherit;overflow:hidden;background:var(--surface)}
.club-flow-content {display:block;position:relative;flex:1;min-height:0;padding:28px 24px 36px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--surface)}
.club-flow-content>.content {max-width:760px;padding-right:26px}
.club-flow-close {position:absolute;right:12px;top:10px;z-index:8;width:40px;height:40px;min-width:40px;padding:0;font-size:29px;line-height:1;border-radius:50%;background:var(--tile);color:var(--ink);box-shadow:0 2px 10px #0003}
.club-flow-close:focus-visible {outline:2px solid var(--green);outline-offset:2px}
main.club-flow-content.action-page {padding:0;display:flex;flex-direction:column}
main.club-flow-content.action-page>.content {padding:64px 24px 20px}
.club-vote-effects {position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;border:0;background:transparent;overflow:hidden;pointer-events:none;z-index:2147483647}
.club-vote-effects::backdrop {background:transparent;pointer-events:none}
.club-vote-effects>canvas {display:block;pointer-events:none}
@media(max-width:640px) {.club-flow-dialog {inset:0;width:100%;height:100dvh;border:0;border-radius:0}.club-flow-content {padding:max(62px,calc(46px + env(safe-area-inset-top))) 16px max(22px,env(safe-area-inset-bottom))}.club-flow-content>.content {padding-right:0}.club-flow-close {top:max(10px,env(safe-area-inset-top));right:12px}main.club-flow-content.action-page>.content {padding:max(64px,calc(46px + env(safe-area-inset-top))) 20px 20px}}
@media(prefers-reduced-motion:reduce) {.club-flow-dialog::backdrop {backdrop-filter:none}.club-vote-effects {display:none}}

/* Map pins occupy a fixed footprint; collision-aware labels are optional. */
.club-map-marker{width:44px;height:44px;overflow:visible}
.club-map-marker .club-pin{display:grid;place-items:center;position:relative;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#fff;box-shadow:none;overflow:visible}
.club-map-marker .club-pin.is-connected,.club-map-marker .club-pin.is-unconnected{background:transparent;border:0;box-shadow:none;color:#fff}
.club-marker-symbol{position:relative;display:block;width:30px;height:30px;border:2px solid #fff;border-radius:50% 50% 50% 8px;background:#64717b;transform:rotate(-45deg);box-shadow:-3px 4px 10px #18262140}
.club-marker-symbol:after{content:'';position:absolute;width:9px;height:9px;inset:0;margin:auto;border:2px solid #ffffffeb;border-radius:50%;background:#ffffff30}
.is-connected .club-marker-symbol{background:#28694f}
.club-map-marker .club-cluster{width:44px;height:44px;background:#33444df5;border:2px solid #fff;box-shadow:0 0 0 5px #ffffff80,0 5px 16px #12263030;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.club-map-marker .club-cluster.is-connected{background:#28694ff5;border:2px solid #fff;box-shadow:0 0 0 5px #c0e9d885,0 5px 16px #12263030}
.club-map-marker .club-cluster.is-unconnected{background:#33444df5;border:2px solid #fff;box-shadow:0 0 0 5px #ffffff80,0 5px 16px #12263030}
.club-cluster-count{pointer-events:none}
.club-marker-label{display:flex;align-items:center;position:absolute;left:calc(100% + 12px);top:1px;height:42px;padding:0 14px;border:1px solid #dce5dfe6;border-radius:13px;background:#fffffff5;color:#24362e;box-shadow:0 4px 15px #10281b1c;white-space:nowrap;font:600 12px/1.2 system-ui,sans-serif;text-align:left}
.club-marker-label[data-side=left]{left:auto;right:calc(100% + 12px)}
.club-marker-label strong{font:inherit}
.club-map-marker .club-pin:focus-visible{outline:3px solid #3b9276;outline-offset:5px}
.cluster-club-choice{display:flex;flex-direction:column;gap:6px}.cluster-club-choice strong{font-size:16px}.cluster-club-choice span{font-size:13px}
.club-map-heading{position:absolute;left:18px;top:18px;z-index:5;display:flex;flex-direction:column;gap:3px;padding:13px 18px;border:1px solid #ffffffa8;border-radius:18px;background:#f8fcf5ee;color:#20392d;box-shadow:0 5px 22px #122b1515;backdrop-filter:blur(12px);pointer-events:none}
.club-map-heading strong{font-size:16px;font-weight:650;letter-spacing:-.02em}.club-map-heading>span{font-size:11px;color:#65766b}
.map-stage .club-map-toolbar{top:18px;right:18px;left:auto;gap:7px;z-index:5}
.map-stage .club-map-toolbar>button{border:1px solid #ffffff85;border-radius:14px;min-height:44px;padding:10px 15px;background:#f8fcf5ee;color:#294134;box-shadow:0 4px 20px #16281c15;backdrop-filter:blur(12px);font-size:12px;font-weight:600}
.club-map-legend{position:absolute;left:58px;bottom:22px;display:flex;align-items:center;gap:14px;max-width:calc(100% - 78px);padding:9px 12px;border:1px solid #ffffffa0;border-radius:12px;background:#f8fcf5ed;color:#44544a;box-shadow:0 3px 14px #172c1914;font-size:10px;z-index:4;pointer-events:none;backdrop-filter:blur(8px)}
.club-map-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.club-map-legend>span:before{content:'';width:7px;height:7px;border-radius:50%;background:#64717b;box-shadow:0 0 0 2px #ffffff}.club-map-legend .legend-connected:before{background:#28694f}
:root .map-stage .map-club-list{top:88px;left:auto;right:18px;width:min(360px,calc(100% - 36px));max-height:calc(100% - 160px);padding:20px;background:#111a17f5;color:var(--ink);border:1px solid #ffffff20;box-shadow:0 15px 45px #10211830;backdrop-filter:blur(16px);z-index:6}
.map-stage .map-club-list>h2{margin-top:0;font-size:19px}.map-stage .map-club-list>.muted{font-size:12px;line-height:1.6}
@media(max-width:640px){.club-map-heading{left:12px;top:12px;padding:11px 15px;border-radius:16px}.club-map-heading strong{font-size:15px}.map-stage .club-map-toolbar{top:83px;left:12px;right:auto}.map-stage .club-map-toolbar>button{padding:9px 13px}.club-map-legend{bottom:25px;left:53px;gap:10px;max-width:calc(100% - 66px);font-size:9px;padding:8px 10px}:root .map-stage .map-club-list{top:137px;left:12px;right:12px;width:auto;max-height:calc(100% - 202px)}}
@media(prefers-reduced-motion:no-preference){.club-map-marker .club-pin:hover .club-marker-symbol{filter:brightness(1.12)}.club-map-marker .club-pin{transition:filter .15s,opacity .15s}.club-map-marker .club-pin:active{transform:scale(.96)}}

/* Approved live SBP checkout shares the existing map dialog. */
.billing-price{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;margin:12px 0}.billing-detail{font-size:14px;line-height:1.6;color:var(--dim)}.billing-form{display:grid;gap:14px;margin:20px 0;max-width:560px}.billing-form>label{margin:0}.billing-form .billing-consent{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:10px;font-size:13px;line-height:1.6}.billing-consent input{width:24px;min-height:24px;margin:2px 0 0;accent-color:var(--green)}.billing-consent a,.billing-privacy a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.billing-form>button{width:100%}.billing-privacy{font-size:12px;margin:0;color:var(--dim)}.billing-payment{margin:20px 0}.billing-status{font-size:15px;line-height:1.6}.billing-qr{display:grid;place-items:center;margin:20px auto;max-width:280px}.billing-qr>img{display:block;width:min(272px,100%);height:auto;aspect-ratio:1;padding:16px;border-radius:16px;background:#fff}.billing-bank-links{display:grid;gap:10px;margin:14px 0}.billing-bank-link{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:12px;padding:10px 16px;background:var(--green);color:#13291f;text-decoration:none;font-size:14px}.billing-payment-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.billing-payment-actions>button{flex:1;min-width:150px;font-size:13px}.billing-form [readonly]{opacity:.8}@media(max-width:480px){.billing-price{font-size:25px}.billing-form .billing-consent{font-size:12px}.billing-payment-actions{flex-direction:column}.billing-qr>img{max-width:260px}}

/* Compact club cards leave the map visible on phones. */
.club-flow-dialog::backdrop{backdrop-filter:none}
.club-flow-dialog.is-club{width:min(440px,calc(100vw - 40px));height:auto;max-height:min(760px,calc(100dvh - 80px));overflow:hidden;border-radius:24px}
.club-flow-dialog.is-club .club-flow-frame{height:auto;max-height:inherit}
.club-flow-dialog.is-club .club-flow-content{padding:28px 24px 24px;max-height:inherit;scrollbar-gutter:auto}
.club-flow-dialog.is-club .content{padding-right:0}
.club-card>h1{padding-right:38px;margin:4px 0 12px;font-size:25px;line-height:1.2;letter-spacing:-.035em;font-weight:650;overflow-wrap:anywhere}
.club-card .club-information{padding:0;border:0}
.club-card .club-address{margin:0;color:var(--dim);font-size:14px;line-height:1.6}
.club-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}
.club-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:50px;min-height:50px;padding:12px;border:1px solid var(--stroke);border-radius:16px;background:var(--tile);color:var(--ink);touch-action:manipulation}
.club-icon-button .club-action-icon{display:block;width:24px;height:24px}.club-action-icon svg{display:block;width:100%;height:100%}
.club-icon-button.club-install{background:var(--green);border-color:transparent;color:#172a23;padding-inline:16px}
.club-icon-button .club-vote-count{color:inherit;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;min-width:12px}
.club-action-error{flex-basis:100%;margin:0;color:#f1aaa6;font-size:12px}
.club-map-heading,.club-map-legend{backdrop-filter:none;background:#f8fcf5}
.map-stage.is-moving .club-marker-label{visibility:hidden}
.map-page>.map-status{display:flex;align-items:center;gap:12px;justify-content:space-between}.map-status button{min-height:44px;font-size:12px}
@media(max-width:640px){.club-flow-dialog.is-club{inset:auto 0 0;margin:0;width:100%;height:auto;max-height:70dvh;border:1px solid var(--stroke);border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -12px 40px #0003}.club-flow-dialog.is-club .club-flow-content{padding:26px 20px max(24px,env(safe-area-inset-bottom))}.club-flow-dialog.is-club .club-flow-close{top:12px;right:12px}.club-card>h1{font-size:25px}.club-card-actions{margin-top:20px}.club-map-legend{font-size:9px}}
.game-heading-actions{display:flex;align-items:center;gap:12px;margin:0 0 18px}.game-heading-actions h1{flex:1;margin:0;min-width:0}.favorite-control.is-icon{display:inline-flex;position:relative;flex:none;margin:0}.favorite-control.is-icon>button,.shot-card .shot-heading .favorite-control.is-icon>button{width:40px;min-width:40px;height:40px;margin:0;padding:0;border:0;background:transparent;font-size:26px;line-height:1}.favorite-control.is-icon>.status:empty{display:none}.favorite-control.is-icon>.status:not(:empty){position:absolute;right:0;top:44px;z-index:5;width:230px;max-width:calc(100vw - 40px);padding:10px;border:1px solid var(--stroke);border-radius:12px;background:var(--tile)}
/* Only club discovery overlays the map; play, video and account keep their normal screens. */
body>main.club-flow-content{padding:24px 20px 32px;scrollbar-gutter:auto}
body>main.club-flow-content>.content{padding-right:0}
body>main.club-flow-content.action-page>.content{padding:24px 20px 20px}
@media(max-width:640px){body>main.club-flow-content{padding:18px 16px 24px}body>main.club-flow-content.action-page>.content{padding:18px 16px 20px}}

/* Keep all five tabs visible and operable, including while a club is selected. */
body>nav{z-index:50;flex:0 0 auto;isolation:isolate}
.club-flow-dialog{z-index:40}
.club-flow-dialog.is-club{max-height:min(720px,calc(100dvh - var(--billiards-nav-height,72px) - 100px))}
@media(max-width:640px){.club-flow-dialog.is-club{inset:auto 10px calc(var(--billiards-nav-height,72px) + 10px);width:calc(100% - 20px);max-height:min(65dvh,calc(100dvh - var(--billiards-nav-height,72px) - 100px));border:1px solid var(--stroke);border-radius:24px}.club-flow-dialog.is-club .club-flow-content{padding-bottom:24px}}

/* Desktop club cards use the same compact, content-sized sheet as mobile. */
@media(min-width:641px){.club-flow-dialog.is-club{inset:auto auto calc(var(--billiards-nav-height,72px) + 16px) 16px;margin:0;width:fit-content;min-width:0;max-width:min(380px,calc(100vw - 32px));height:auto}.club-flow-dialog.is-club .club-flow-content{flex:0 1 auto;padding:26px 20px 24px}.club-flow-dialog.is-club .club-flow-close{top:12px;right:12px}.club-card-actions{margin-top:20px}}

/* Drag the club heading; content and action buttons keep their normal gestures. */
.club-card>h1{cursor:grab;touch-action:none;user-select:none}
.club-flow-dialog.is-dragging,.club-flow-dialog.is-dragging .club-card>h1{cursor:grabbing}

.game-share-control{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.game-share-control.preview-share{max-width:calc(100% - 24px)}.game-share-control>button{border:0;background:transparent;color:inherit;padding:4px 8px;min-height:36px;font-size:inherit}.game-share-control>.share-settings{min-width:32px;font-size:20px}.game-share-control>.share-feedback{flex-basis:100%;font-size:12px}.game-share-control>input{flex-basis:100%;min-width:0;font-size:12px}

/* In-place fullscreen fallback preserves the same game iframe and connection. */
body.billiards-replay-expanded{overflow:hidden!important}body.billiards-replay-expanded>header,body.billiards-replay-expanded>nav{visibility:hidden}body.billiards-replay-expanded #main{position:fixed!important;inset:0!important;z-index:2147483000;padding:0!important;overflow:hidden!important;background:#000}iframe.billiards-expanded-frame{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;z-index:2147483001;background:#000}

/* Collapsed cards are the preview itself; expanded editors remain natural-height. */
.shot-card,.record-card{padding:0;border:0;border-radius:16px;min-width:0}.shot-card{margin:10px 0}.shot-card .table-preview,.record-card .table-preview{margin:0;border-radius:16px}.shot-card .table-preview>img,.shot-card .preview-placeholder{position:absolute;inset:0;width:100%;height:100%}
.shot-card .shot-heading{position:absolute;inset:0 0 auto;z-index:5;margin:0;padding:8px 10px 18px;gap:6px;color:#fff;background:linear-gradient(#08100de8,#08100d00)}.shot-card .shot-number{min-width:25px;font-size:20px;color:#fff}.shot-card .shot-labels{gap:2px}.shot-card .shot-labels h3{color:#fff;font-size:12px}.shot-card .shot-labels .shot-result{color:#e4eee9;font-size:10px}.shot-card .shot-at-score{font-size:14px;color:#fff}.shot-card .shot-heading .correction-toggle,.shot-card .shot-heading .favorite-control.is-icon>button{width:36px;min-width:36px;height:36px;min-height:36px;padding:7px;color:#fff}.shot-card .shot-heading .favorite-control.is-icon>button{padding:0;font-size:24px}.shot-card .preview-play,.record-card .preview-play{bottom:10px;right:10px;min-height:36px}.shot-card .table-preview[data-video-cached=true]:not(.clip-loading):after{top:auto;bottom:52px;right:10px;z-index:3}
.shot-card .correction{display:none;position:relative;z-index:7;width:100%}.shot-card .correction:has(.vote-panel:not([hidden])){display:block}.shot-card .vote-panel{padding:12px;border-radius:14px;background:#101217f5}.shot-card .table-preview:has(.vote-panel:not([hidden])),.shot-card .table-preview:has(.coach-comments[open]){display:block;aspect-ratio:auto;min-height:220px;padding:54px 10px 56px}.shot-card .table-preview:has(.vote-panel:not([hidden]))>img,.shot-card .table-preview:has(.coach-comments[open])>img{opacity:.35}
.shot-card .coach-comments.is-overlay{position:absolute;left:10px;bottom:10px;z-index:6;margin:0;padding:0;border:0}.shot-card .coach-comments.is-overlay>summary{min-height:36px;padding:6px 9px;border-radius:9px;background:#101713dd;color:#e5f1eb;font-size:11px}.shot-card .coach-comments.is-overlay[open]{position:relative;inset:auto;padding:12px;margin:8px 0 0;border-radius:14px;background:#101217f5}.shot-card .coach-comments.is-overlay[open]>summary{font-size:13px}.shot-card .clip-note{position:absolute;left:10px;right:10px;bottom:52px;z-index:7;margin:0;padding:10px;border-radius:10px;background:#101217ed;color:#fff;font-size:12px}
.shot-card .table-preview.clip-loading:after,.shot-card .table-preview.clip-loading[data-video-cached=true]:after{content:'Загружаем удар';position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:42px 12px 0;border-radius:16px;background:#09100bd9;color:#f5faf7;font-size:12px;letter-spacing:.15px;pointer-events:none}.shot-card .table-preview.clip-loading:before{content:'';position:absolute;left:50%;top:45%;z-index:9;width:28px;height:28px;border:2px solid #d5e8de33;border-top-color:var(--green);border-radius:50%;pointer-events:none;animation:shot-loading-spin .8s linear infinite}@keyframes shot-loading-spin{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}@media(prefers-reduced-motion:reduce){.shot-card .table-preview.clip-loading:before{animation:none;transform:translate(-50%,-50%);border-color:var(--green)}}
.record-card .record-line{position:absolute;inset:0 0 auto;z-index:4;gap:8px;margin:0;padding:10px 10px 22px;background:linear-gradient(#08100ded,#08100d00);color:#fff;pointer-events:none}.record-card .record-clock{font-size:19px;color:#eef5f0;letter-spacing:-.5px}.record-card .record-match{font-size:11px;gap:5px}.record-card .record-score{font-size:14px}.record-card .preview-caption{top:44px;left:10px}.record-card .preview-share{left:10px;bottom:10px;max-width:calc(100% - 112px);font-size:11px}.record-card .record-closure{position:absolute;left:10px;right:10px;bottom:56px;z-index:3;margin:0;padding:5px 8px;border-radius:8px;background:#101713dd;font-size:11px;color:#edf4ef}
@media(max-width:640px){.game-heading-actions{gap:8px;flex-wrap:wrap;margin-bottom:10px}.game-heading-actions h1{flex:1 1 110px;font-size:24px;line-height:1.2;letter-spacing:-.6px;overflow-wrap:anywhere}.game-heading-actions>.game-scan{flex:0 1 auto;max-width:100%;min-height:44px;padding:8px 10px;font-size:12px;line-height:1.25;white-space:normal}.game-heading-actions .favorite-control.is-icon>button{width:44px;min-width:44px;height:44px;min-height:44px}.match-board{padding:16px 14px 8px;margin:14px 0;border-radius:20px}.match-seats{gap:12px}.match-seat{gap:4px}.match-seat strong{font-size:14px}.match-score{font-size:40px;line-height:1.1;letter-spacing:-1px}.match-stats:empty{display:none}.match-board .match-share{margin:8px auto 0;min-height:44px;font-size:13px;padding:6px 8px}.match-board .game-share-control>button{min-height:44px}}
.game-score-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.game-score-stepper{display:grid;grid-template-columns:44px minmax(28px,1fr) 44px;align-items:center;gap:4px;min-width:0}.game-score-stepper>button{width:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:#101713ba;color:#eef8f2;font-size:20px}.game-score-value{text-align:center;font-size:20px;font-variant-numeric:tabular-nums}.game-score-feedback{grid-column:1/-1;font-size:11px;color:var(--dim);text-align:center}.record-card .game-score-controls{position:absolute;inset:46px 10px auto;z-index:5}.record-card .game-score-value{font-size:18px;color:#fff}.match-seat>.game-score-stepper .match-score{margin:0;min-width:0}.match-board>.game-score-controls{margin-top:4px}.match-board .game-score-controls:has(>.game-score-feedback[hidden]){display:none}
.shot-download{position:absolute;left:10px;bottom:10px;z-index:6;max-width:calc(100% - 142px)}.shot-download-action{position:relative;isolation:isolate;overflow:hidden;min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:var(--green);color:#14372b;font-size:12px;font-weight:650}.shot-download-action:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--download-progress,0%);z-index:-1;background:#ffffff70;transition:width .2s}.shot-download.is-preparing .shot-download-action{animation:clip-pulse 1.2s ease-in-out infinite}.shot-download-note{position:absolute;left:0;bottom:50px;width:min(300px,calc(100vw - 20px));padding:8px 10px;border-radius:10px;background:#101713ef;color:#fff;font-size:12px;white-space:normal}.shot-card .preview-play{min-height:44px;font-size:12px}.shot-card .coach-comments.is-overlay{bottom:60px}.shot-card .clip-note{bottom:60px}@media(prefers-reduced-motion:reduce){.shot-download.is-preparing .shot-download-action{animation:none}.shot-download-action:before{transition:none}}
/* Only media surfaces bleed to the viewport; surrounding controls retain padding. */
.live-shots,.full-game-video,.records-list .day-records{width:var(--billiards-media-width,100%);max-width:none;margin-inline:calc((100% - var(--billiards-media-width,100%))/2)}.shot-card,.record-card,.shot-card .table-preview,.record-card .table-preview,.shot-inline-player,.full-game-video iframe,.full-game-video .saved-player,.saved-source-frame{border:0;border-radius:0}.shot-card{margin:0}.records-list .day-records{gap:0}.full-game-video .saved-player{margin:0}.shot-card .table-preview.clip-loading:after,.shot-card .table-preview.clip-loading[data-video-cached=true]:after{border-radius:0}
.shot-pocket-overlay{position:absolute;inset:0;z-index:20;pointer-events:none}.shot-ball-toggle{position:absolute;top:48px;right:10px;z-index:2;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:#101713dc;color:var(--green);font-size:21px;pointer-events:auto}.shot-ball-toggle[aria-pressed=true]{top:8px;background:var(--green);color:#153a30}.shot-pocket-layer{position:absolute;inset:0;pointer-events:auto;touch-action:pan-y}.shot-pocket-mark{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:50%}.shot-pocket-mark:disabled{opacity:.5}.shot-pocket-ball{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid #ffffffee;border-radius:50%;background:#101713c9;color:#fff;font-size:11px;font-weight:700;box-shadow:0 1px 6px #000a}.shot-pocket-toolbar{position:absolute;left:4px;bottom:0;display:flex;align-items:center;justify-content:center;gap:2px;max-width:calc(50% - 12px);padding:0 2px;border-radius:12px;background:#050907e8}.shot-pocket-toolbar>button{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:#fff;font-size:14px}.shot-pocket-toolbar>button[aria-pressed=true]{background:#a5e4cc2b;color:var(--green)}.shot-pocket-note{position:absolute;bottom:50px;left:50%;transform:translateX(-50%);width:min(300px,calc(100vw - 16px));padding:6px 8px;border-radius:8px;background:#050907e8;color:#fff;font-size:11px;text-align:center}.shot-card .table-preview.is-marking>.shot-heading,.shot-card .table-preview.is-marking>.preview-play,.shot-card .table-preview.is-marking>.shot-download,.shot-card .table-preview.is-marking>.coach-comments{visibility:hidden}.shot-card .correction.clockwise-pockets .pocket-3{left:auto;right:-19px}.shot-card .correction.clockwise-pockets .pocket-5{right:auto;left:-19px}

.record-card.history-card{padding:14px 16px;margin:8px 16px;border:1px solid var(--stroke);border-radius:16px;width:calc(100% - 32px)}.record-card.history-card .record-line{position:static;inset:auto;margin:0;padding:0;background:none;pointer-events:auto;color:inherit}.history-card .history-open{width:100%;padding:0;background:none;border:0;min-height:44px}
.whole-game-download.is-preparing{opacity:1;animation:clip-pulse 1.2s ease-in-out infinite}.shot-pocket-overlay[aria-busy=true] .shot-ball-toggle{animation:clip-pulse 1.2s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.whole-game-download.is-preparing,.shot-pocket-overlay[aria-busy=true] .shot-ball-toggle{animation:none}}
.shot-card .table-preview.is-marking{display:block!important;aspect-ratio:16/9!important;min-height:0!important;padding:0!important}.shot-card .table-preview.is-marking>.correction,.shot-card .table-preview.is-marking>.coach-comments{display:none!important}.shot-card .table-preview.is-marking>img{opacity:1!important}

.shot-card .table-preview>img,.record-card .table-preview>img{border-radius:0}.shot-pocket-mark:active{transform:translate(-50%,-50%) scale(.98)}

/* Video54 club workspace. The application enables this layer on 8.video54.ru only.
   Retained media elements, pocket coordinates and legacy origins stay untouched. */
html[data-billiards-design="club"] {
  --surface:#0c1714; --tile:#162720; --panel:#1b3027; --field:#0b1b15;
  --ink:#faf5e9; --dim:#b4c4bb; --stroke:#ffffff20; --green:#a8e3c8; --amber:#d8ba83;
  --club-elevated:#213a2f; --club-danger:#ffb7af; --club-muted-surface:#11231b;
  --club-shadow:0 18px 44px #030a0640; --club-radius:20px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.55; background:var(--surface); color:var(--ink);
}
html[data-billiards-design="club"] body {
  background:radial-gradient(ellipse at 8% 0%,#3d6c4d33,transparent 54%),
    radial-gradient(ellipse at 100% 85%,#80683b14,transparent 60%),var(--surface);
}
html[data-billiards-design="club"] body>header {
  min-height:64px; padding:14px 22px; padding-top:max(14px,env(safe-area-inset-top));
  background:#0d1b16; border-bottom:1px solid #d8ba8324; gap:16px;
}
html[data-billiards-design="club"] .brand {display:inline-flex;align-items:center;gap:10px;font-size:19px;letter-spacing:-.035em;font-weight:700;min-height:36px;flex-shrink:0}
html[data-billiards-design="club"] .brand img {flex:none;max-height:32px;width:auto}
html[data-billiards-design="club"] #network {font-size:12px;line-height:1.5;text-align:right;max-width:60%;overflow-wrap:anywhere}
html[data-billiards-design="club"] #network:empty {display:none}
html[data-billiards-design="club"] body>main.club-flow-content {
  padding:28px 24px 36px;
  background:radial-gradient(ellipse at 0 0,#3b6b4d20,transparent 65%),
    repeating-linear-gradient(117deg,transparent 0 159px,#b6c9b802 160px 161px),var(--surface);
  scrollbar-color:#526c5d transparent;
}
html[data-billiards-design="club"] body[data-view="history"]>main,
html[data-billiards-design="club"] body[data-view="plans"]>main,
html[data-billiards-design="club"] body[data-view="checkout"]>main {
  background:radial-gradient(ellipse at 100% 0,#b3914a1c,transparent 62%),var(--surface);
}
html[data-billiards-design="club"] body[data-view="profile"]>main,
html[data-billiards-design="club"] body[data-view="login"]>main {
  background:radial-gradient(ellipse at 12% 0,#478a6526,transparent 58%),
    radial-gradient(ellipse at 100% 70%,#a87d3a12,transparent 68%),var(--surface);
}
html[data-billiards-design="club"] body[data-view="records"]>main,
html[data-billiards-design="club"] body[data-view="game"]>main {background:linear-gradient(165deg,#17302735,transparent 420px),#0c1714}
html[data-billiards-design="club"] .content {max-width:960px}
html[data-billiards-design="club"] h1 {font-size:clamp(26px,3.2vw,36px);line-height:1.17;font-weight:720;letter-spacing:-.04em;margin:4px 0 18px;text-wrap:balance}
html[data-billiards-design="club"] h2 {font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.025em}
html[data-billiards-design="club"] h3 {font-size:17px;line-height:1.4;letter-spacing:-.015em}
html[data-billiards-design="club"] .page-subtitle {font-size:15px;line-height:1.6;margin-bottom:24px;max-width:60ch}
html[data-billiards-design="club"] .muted,
html[data-billiards-design="club"] small,
html[data-billiards-design="club"] .footnote {color:var(--dim)}
html[data-billiards-design="club"] button,
html[data-billiards-design="club"] input,
html[data-billiards-design="club"] select,
html[data-billiards-design="club"] textarea {font:inherit;color:var(--ink);border-color:var(--stroke);border-radius:14px}
html[data-billiards-design="club"] button {min-height:44px;padding:11px 16px;background:var(--club-elevated);font-weight:550;line-height:1.35;touch-action:manipulation}
html[data-billiards-design="club"] button.primary {background:var(--green);color:#102a20;border:1px solid transparent;font-weight:700;box-shadow:0 4px 16px #05150c28}
html[data-billiards-design="club"] button.secondary {background:#d8ba8310;border-color:#d8ba8333;color:var(--ink)}
html[data-billiards-design="club"] button:disabled {opacity:.58;box-shadow:none;cursor:default}
html[data-billiards-design="club"] button[aria-busy="true"] {cursor:progress}
html[data-billiards-design="club"] button[aria-pressed="true"] {border-color:#a8e3c86b}
html[data-billiards-design="club"] :focus-visible {outline:3px solid var(--amber);outline-offset:3px}
html[data-billiards-design="club"] input,
html[data-billiards-design="club"] select,
html[data-billiards-design="club"] textarea {background:var(--field);min-height:50px;padding:12px 14px;font-size:16px;box-shadow:inset 0 1px 2px #0002}
html[data-billiards-design="club"] input:focus,
html[data-billiards-design="club"] select:focus,
html[data-billiards-design="club"] textarea:focus {border-color:var(--green)}
html[data-billiards-design="club"] input[type="checkbox"] {min-height:24px;min-width:24px;width:24px;accent-color:var(--green);box-shadow:none}
html[data-billiards-design="club"] input[type="range"] {box-shadow:none;padding:0}
html[data-billiards-design="club"] input[type="color"] {padding:3px;box-shadow:none}
html[data-billiards-design="club"] label {font-size:13px;font-weight:550;color:var(--dim);gap:8px;line-height:1.5}
html[data-billiards-design="club"] .error,
html[data-billiards-design="club"] [role="alert"] {color:var(--club-danger)}
html[data-billiards-design="club"] .status {font-size:13px;line-height:1.6;overflow-wrap:anywhere}
html[data-billiards-design="club"] .service-unavailable #main .status {visibility:visible}
html[data-billiards-design="club"] .back {background:none;border:0;color:var(--green);padding:8px 0;min-height:44px;margin:0 0 10px;font-weight:600}
html[data-billiards-design="club"] .card {background:linear-gradient(140deg,#ffffff03,transparent 60%),var(--tile);border-color:var(--stroke);border-radius:var(--club-radius);padding:20px;box-shadow:0 6px 20px #030a0614}
html[data-billiards-design="club"] .notice {background:#d8ba830b;border-color:#d8ba8333;border-radius:16px;color:var(--ink);line-height:1.6}
html[data-billiards-design="club"] .empty-title {padding-top:32px;font-size:24px;color:var(--ink)}
html[data-billiards-design="club"] .empty-description {max-width:44ch;font-size:15px;line-height:1.65;margin-bottom:28px}
html[data-billiards-design="club"] .segmented {background:#06130d80;border:1px solid #ffffff12;border-radius:16px;padding:4px;gap:4px}
html[data-billiards-design="club"] .segmented button {min-height:44px;background:transparent;box-shadow:none;font-size:13px;padding:9px 12px}
html[data-billiards-design="club"] .segmented button[aria-pressed="true"] {background:var(--club-elevated);color:var(--ink);box-shadow:0 2px 6px #0002}
html[data-billiards-design="club"] body>nav {padding:9px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:4px;background:#0d1c16;border-top:1px solid #d8ba8324}
html[data-billiards-design="club"] body>nav a {min-width:0;min-height:54px;padding:7px 2px;gap:4px;border-radius:16px;color:#b0c0b5;font-size:11px;font-weight:600;letter-spacing:0}
html[data-billiards-design="club"] body>nav a[aria-current="page"] {background:#a8e3c813;color:#d8f6e8;box-shadow:inset 0 0 0 1px #a8e3c82b}
html[data-billiards-design="club"] body>nav a[aria-current="page"] svg {color:var(--green)}
html[data-billiards-design="club"] body>nav svg {width:23px;height:23px;stroke-width:1.8}
html[data-billiards-design="club"] .bottom-actions {background:#0f2019;border-top-color:var(--stroke);gap:10px;max-width:960px;padding:14px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left))}
html[data-billiards-design="club"] .bottom-actions>button {min-height:52px}
html[data-billiards-design="club"] body[data-view="login"] #main {overflow:auto;justify-content:flex-start;padding-bottom:28px}
html[data-billiards-design="club"] body[data-view="login"] #main>.content {flex:0 0 auto;max-width:500px;padding:28px 20px 8px}
html[data-billiards-design="club"] body[data-view="login"] .bottom-actions {flex:0 0 auto;max-width:500px;margin:0 auto;background:transparent;border:0;overflow:visible;padding-top:8px}
html[data-billiards-design="club"] .login-form {gap:14px;padding:20px;border:1px solid var(--stroke);border-radius:24px;background:var(--tile);box-shadow:var(--club-shadow)}
html[data-billiards-design="club"] .login-form label {margin:0}
html[data-billiards-design="club"] .login-form>button {width:100%;min-height:52px}
html[data-billiards-design="club"] [data-install-help] {border:1px dashed #a8e3c82e;box-shadow:none;background:#a8e3c805}
html[data-billiards-design="club"] [data-install-help]>h2 {font-size:16px;margin-top:0}
html[data-billiards-design="club"] [data-install-help]>button {background:var(--club-elevated);color:var(--ink);box-shadow:none;border:1px solid var(--stroke);font-size:14px}
html[data-billiards-design="club"] [data-install-help] p {font-size:12px;line-height:1.6;margin-bottom:0}
html[data-billiards-design="club"] .profile-form {max-width:540px;padding:20px;border:1px solid var(--stroke);border-radius:24px;background:linear-gradient(140deg,#4c735a0d,transparent 70%),var(--tile);box-shadow:var(--club-shadow)}
html[data-billiards-design="club"] .profile-hero {grid-template-columns:64px minmax(0,1fr) 44px;padding-bottom:18px;border-bottom:1px solid var(--stroke);margin-bottom:16px}
html[data-billiards-design="club"] .profile-hero input {font-size:17px}
html[data-billiards-design="club"] .profile-edit {min-width:44px;padding:0;background:#a8e3c80f;border:1px solid #a8e3c833;color:var(--green)}
html[data-billiards-design="club"] .profile-form>button.primary {width:100%;min-height:50px;margin-top:16px}
html[data-billiards-design="club"] .profile-install {max-width:540px}
html[data-billiards-design="club"] .profile-install .card {padding:16px;border:1px dashed #a8e3c82e;background:#a8e3c805}
html[data-billiards-design="club"] .profile-form .number-ball {width:46px;height:46px;padding:0;color:#24272d;background:radial-gradient(circle at 30% 20%,#fff,#e6e8ec)}
html[data-billiards-design="club"] .profile-form .avatar-swatch {padding:0;background:radial-gradient(circle at 30% 22%,#fff7,transparent 65%),var(--swatch)}
html[data-billiards-design="club"] .account-links {gap:10px;margin:18px auto;max-width:680px}
html[data-billiards-design="club"] .account-links>button {flex:1 1 145px;min-width:0;min-height:50px;font-size:14px;background:var(--tile);border-color:var(--stroke)}
html[data-billiards-design="club"] .logout-confirm {padding:16px;border:1px solid #ffb7af35;border-radius:16px;background:#ffb7af07}
html[data-billiards-design="club"] .logout-confirm button {flex:1}
html[data-billiards-design="club"] .day-group {border-top:0;margin-top:14px}
html[data-billiards-design="club"] .day-group>summary {padding:16px 4px;font-size:17px;color:var(--ink);border-bottom:1px solid var(--stroke);margin-bottom:12px}
html[data-billiards-design="club"] .day-count {background:#d8ba8314;color:var(--amber);border:1px solid #d8ba8326;min-width:32px;line-height:1.35}
html[data-billiards-design="club"] .records-refresh {position:static;margin-left:auto;min-height:44px;font-size:13px;color:var(--green);padding:8px 12px;background:#a8e3c80b;border:1px solid #a8e3c822}
html[data-billiards-design="club"] .content:has(>.records-refresh)>h1 {padding-right:0}
html[data-billiards-design="club"] .load-more,
html[data-billiards-design="club"] .day-more {min-height:48px;padding-inline:24px;color:var(--green);background:#a8e3c80a;border-color:#a8e3c82c}
html[data-billiards-design="club"] .record-card.history-card {background:var(--tile);border:1px solid var(--stroke);border-radius:16px;padding:16px;margin:10px 16px;width:calc(100% - 32px);box-shadow:none}
html[data-billiards-design="club"] .history-card .history-open {min-height:48px;background:none;padding:0}
html[data-billiards-design="club"] .history-card .record-clock {color:var(--amber);font-size:23px}
html[data-billiards-design="club"] .history-card .record-score {color:var(--ink);font-size:16px}
html[data-billiards-design="club"] .record-player.winner {color:var(--green)}
html[data-billiards-design="club"] .match-board {background:radial-gradient(ellipse at 50% 0,#5e906029,transparent 85%),#142c20;border:1px solid #d8ba8333;border-radius:24px;padding:24px 20px 16px;box-shadow:var(--club-shadow)}
html[data-billiards-design="club"] .match-seat strong {font-size:16px;color:var(--ink)}
html[data-billiards-design="club"] .match-score {color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.055em;font-weight:650}
html[data-billiards-design="club"] .match-stats {color:var(--dim)}
html[data-billiards-design="club"] .game-score-stepper>button {min-width:44px;min-height:44px;padding:0;border:1px solid #a8e3c82b;background:#a8e3c80c;color:var(--green)}
html[data-billiards-design="club"] .match-share {color:var(--green);background:transparent;box-shadow:none;min-height:44px}
html[data-billiards-design="club"] .live-scoreboard {background:var(--panel);border:1px solid var(--stroke)}
html[data-billiards-design="club"] .player-stat {background:var(--tile);border:1px solid var(--stroke)}
html[data-billiards-design="club"] .shot-filters {padding:12px;border:1px solid var(--stroke);border-radius:16px;background:#a8e3c805;gap:14px}
html[data-billiards-design="club"] .shot-filters label {min-height:36px;font-weight:500;font-size:13px}
html[data-billiards-design="club"] .shots-heading {margin-top:26px}
html[data-billiards-design="club"] .shot-card,
html[data-billiards-design="club"] .record-card {padding:0;border:0;border-radius:0;background:var(--tile)}
html[data-billiards-design="club"] .shot-card .table-preview,
html[data-billiards-design="club"] .record-card .table-preview {border-radius:0;background:#10251a}
html[data-billiards-design="club"] .shot-card .shot-heading {padding:8px 10px 18px;background:linear-gradient(#04110def,#04110d00)}
html[data-billiards-design="club"] .shot-card .shot-heading .correction-toggle,
html[data-billiards-design="club"] .shot-card .shot-heading .favorite-control.is-icon>button {width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:0;background:transparent;box-shadow:none;color:#fff}
html[data-billiards-design="club"] .shot-card .shot-heading .favorite-control.is-icon>button {padding:0}
html[data-billiards-design="club"] .shot-card .preview-play,
html[data-billiards-design="club"] .record-card .preview-play {min-height:44px;background:#faf5e9f2;color:#102a20;border:1px solid #ffffff28;box-shadow:0 3px 12px #0004;padding:9px 14px;font-size:12px;font-weight:700}
html[data-billiards-design="club"] .shot-download-action {background:var(--green);color:#102a20;min-height:44px;font-size:12px;line-height:1.35;box-shadow:none}
html[data-billiards-design="club"] .shot-card .vote-panel,
html[data-billiards-design="club"] .shot-card .coach-comments.is-overlay[open] {background:#11251bf5;border:1px solid #a8e3c82b;border-radius:16px}
html[data-billiards-design="club"] .shot-card .coach-comments.is-overlay>summary {min-height:44px;font-size:12px;background:#0b1b15e8;color:#eef8ef;padding:8px 10px;border-radius:12px}
html[data-billiards-design="club"] .coach-comments textarea {background:var(--field);border-color:var(--stroke);font-size:16px;min-height:88px}
html[data-billiards-design="club"] .coach-comments form>button {min-height:48px}
html[data-billiards-design="club"] .coach-comment {border-bottom-color:var(--stroke);line-height:1.6}
html[data-billiards-design="club"] .shot-result-editor>.segmented {flex-wrap:wrap}
html[data-billiards-design="club"] .vote-numbers button {padding:0;min-width:44px;min-height:44px}
html[data-billiards-design="club"] .vote-panel>.primary {min-height:48px}
html[data-billiards-design="club"] .shot-pocket-overlay button {padding:0}
html[data-billiards-design="club"] .shot-pocket-toolbar>button {padding:0 8px}
html[data-billiards-design="club"] .shot-pocket-mark {background:transparent;border:0;box-shadow:none}
html[data-billiards-design="club"] .saved-player {background:var(--tile);border-color:var(--stroke)}
html[data-billiards-design="club"] .saved-controls {flex-wrap:wrap;gap:8px}
html[data-billiards-design="club"] .saved-controls>button {min-height:44px;font-size:13px}
html[data-billiards-design="club"] .saved-controls>output {font-size:12px}
html[data-billiards-design="club"] .saved-shot-marker {background:transparent;border:0;padding:0;box-shadow:none}
html[data-billiards-design="club"] .whole-game-download {min-height:48px;width:100%}
html[data-billiards-design="club"] .game-share-control>button {min-height:44px;background:transparent;box-shadow:none;color:inherit}
html[data-billiards-design="club"] .game-heading-actions h1 {margin:0}
html[data-billiards-design="club"] .game-heading-actions>.game-scan {min-height:44px;font-size:13px}
html[data-billiards-design="club"] .qr-camera {border:1px solid var(--stroke);border-radius:24px;background:#07110c}
html[data-billiards-design="club"] .join-seat {font-size:24px;letter-spacing:-.025em;color:var(--green)}
html[data-billiards-design="club"] .join-table {font-size:16px;color:var(--dim)}
html[data-billiards-design="club"] .plans-grid {gap:16px;margin:24px 0}
html[data-billiards-design="club"] .plan-card {border-color:#d8ba832c;background:linear-gradient(155deg,#d8ba830a,transparent 65%),var(--tile);padding:24px;gap:12px;border-radius:24px}
html[data-billiards-design="club"] .plan-card .plan-price {font-size:30px;color:var(--ink);font-variant-numeric:tabular-nums}
html[data-billiards-design="club"] .plan-card .muted {font-size:13px}
html[data-billiards-design="club"] .plan-card>button {min-height:48px}
html[data-billiards-design="club"] .billing-form {padding:20px;border:1px solid var(--stroke);border-radius:24px;background:var(--tile);gap:18px}
html[data-billiards-design="club"] .billing-form>button {min-height:52px}
html[data-billiards-design="club"] .billing-consent {font-weight:400}
html[data-billiards-design="club"] .billing-bank-link {min-height:52px;color:#102a20;border-radius:14px}
html[data-billiards-design="club"] .billing-payment-actions>button {min-height:48px}
html[data-billiards-design="club"] .coach-card,
html[data-billiards-design="club"] .coach-game,
html[data-billiards-design="club"] .favorite-card,
html[data-billiards-design="club"] .short-card {padding:20px;border:1px solid var(--stroke);border-radius:20px;background:var(--tile)}
html[data-billiards-design="club"] .short-card h3,
html[data-billiards-design="club"] .favorite-card h2 {font-size:18px}
html[data-billiards-design="club"] .coach-invite>input {font-size:14px}
html[data-billiards-design="club"] .club-flow-dialog {border-color:#d8ba8338;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #03100770}
html[data-billiards-design="club"] .club-flow-dialog.is-club {border-radius:22px;background:var(--surface)}
html[data-billiards-design="club"] .club-flow-dialog.is-club .club-flow-content {background:radial-gradient(ellipse at 0 0,#36533c38,transparent 80%),var(--surface)}
html[data-billiards-design="club"] .club-flow-close {width:44px;height:44px;min-width:44px;min-height:44px;padding:0;color:var(--ink);background:var(--club-elevated);border:1px solid var(--stroke);font-size:28px}
html[data-billiards-design="club"] .club-card>h1 {font-size:26px;padding-right:44px;line-height:1.2}
html[data-billiards-design="club"] .club-card .club-address {font-size:14px;color:var(--dim)}
html[data-billiards-design="club"] .club-card-actions {gap:10px;margin-top:20px}
html[data-billiards-design="club"] .club-icon-button {background:var(--club-elevated);color:var(--ink);border-color:var(--stroke);min-width:48px;min-height:48px;border-radius:14px}
html[data-billiards-design="club"] .club-icon-button.club-install {background:var(--green);color:#102a20}
html[data-billiards-design="club"] .club-map-heading {background:#faf5e9;color:#173428;border-color:#ffffffb3;border-radius:18px;padding:14px 18px;box-shadow:0 6px 24px #10251b22}
html[data-billiards-design="club"] .club-map-heading strong {font-size:17px}
html[data-billiards-design="club"] .club-map-heading>span {font-size:12px;color:#546b5d}
html[data-billiards-design="club"] .club-map-legend {background:#faf5e9;color:#344f3f;font-size:11px;max-width:calc(100% - 86px);left:64px;flex-wrap:wrap;gap:8px 14px}
html[data-billiards-design="club"] .maplibregl-ctrl-group {border-radius:14px;overflow:hidden;box-shadow:0 4px 18px #07190f33;background:#faf5e9}
html[data-billiards-design="club"] .maplibregl-ctrl-group>button {width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:0;background:#faf5e9;color:#173428}
html[data-billiards-design="club"] .maplibregl-ctrl-attrib {font-size:10px;color:#243b2d;background:#faf5e9e8!important}
html[data-billiards-design="club"] .club-marker-label {background:#faf5e9;color:#1c3c2c;border-color:#fff9}
html[data-billiards-design="club"] .map-stage .map-club-list {background:#10251bf5;border-color:#d8ba8333;color:var(--ink)}
html[data-billiards-design="club"] .cluster-club-choice {background:var(--tile);border-color:var(--stroke);gap:6px}
html[data-billiards-design="club"] .cluster-club-choice span {font-weight:400}

/* Club requests: ordinary app screens, not overlays or a second media shell. */
html[data-billiards-design="club"] .booking-form {display:grid;gap:18px;max-width:680px;margin:20px auto;padding:24px;background:var(--tile);border:1px solid var(--stroke);border-radius:24px;box-shadow:var(--club-shadow)}
html[data-billiards-design="club"] .booking-form label {margin:0}
html[data-billiards-design="club"] .booking-form textarea {resize:vertical;min-height:96px;width:100%}
html[data-billiards-design="club"] .booking-form>button {width:100%;min-height:52px}
html[data-billiards-design="club"] .booking-summary {padding:18px 20px;border:1px solid #d8ba8333;border-radius:20px;background:linear-gradient(140deg,#d8ba830b,transparent 80%),var(--tile);line-height:1.65;overflow-wrap:anywhere}
html[data-billiards-design="club"] .booking-summary h2 {margin-top:0}
html[data-billiards-design="club"] .booking-summary p {margin:6px 0}
html[data-billiards-design="club"] .booking-status {display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--stroke);border-radius:999px;font-size:12px;font-weight:650;line-height:1.4;background:var(--club-muted-surface);color:var(--dim)}
html[data-billiards-design="club"] .booking-status[data-state="pending"] {background:#d8ba8310;color:var(--amber);border-color:#d8ba8333}
html[data-billiards-design="club"] .booking-status[data-state="confirmed"] {background:#a8e3c80d;color:var(--green);border-color:#a8e3c833}
html[data-billiards-design="club"] .booking-status[data-state="declined"] {background:#ffb7af0a;color:var(--club-danger);border-color:#ffb7af33}
html[data-billiards-design="club"] .booking-presence {display:flex;align-items:center;gap:8px;color:var(--dim);font-size:12px;line-height:1.6;flex-wrap:wrap;margin:12px 0}
html[data-billiards-design="club"] .booking-presence:before {content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#83958a}
html[data-billiards-design="club"] .booking-presence[data-state="online"] {color:var(--green)}
html[data-billiards-design="club"] .booking-presence[data-state="online"]:before {background:var(--green);box-shadow:0 0 0 4px #a8e3c80d}
html[data-billiards-design="club"] .booking-presence[data-state="unknown"]:before {background:none;border:1px solid var(--dim)}
html[data-billiards-design="club"] .booking-list {display:grid;gap:12px;margin:20px 0}
html[data-billiards-design="club"] .booking-item {display:grid;gap:10px;min-width:0;background:var(--tile);border:1px solid var(--stroke);border-radius:20px;padding:18px;text-align:left;color:var(--ink);line-height:1.55}
html[data-billiards-design="club"] .booking-item h2 {font-size:18px;margin:0}
html[data-billiards-design="club"] .booking-item p {margin:0;font-size:14px}
html[data-billiards-design="club"] .booking-item button {min-height:46px}
html[data-billiards-design="club"] .booking-table-options {display:flex;gap:8px;flex-wrap:wrap;min-width:0;border:0;padding:0;margin:0}
html[data-billiards-design="club"] .booking-table-options button {flex:1 1 110px;min-height:48px}
html[data-billiards-design="club"] .booking-table-options button[aria-pressed="true"] {background:#a8e3c817;border-color:var(--green);color:var(--green)}
html[data-billiards-design="club"] .booking-chat {margin:24px 0;border:1px solid var(--stroke);border-radius:24px;overflow:hidden;background:#0d1e16}
html[data-billiards-design="club"] .booking-chat>h2 {padding:18px 20px 0;margin:0 0 12px;font-size:20px}
html[data-billiards-design="club"] .booking-messages {display:flex;flex-direction:column;gap:12px;padding:16px;max-height:48dvh;min-height:160px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#526c5d transparent;background:repeating-linear-gradient(125deg,transparent 0 115px,#ffffff02 116px 117px)}
html[data-billiards-design="club"] .booking-message {align-self:flex-start;max-width:88%;padding:12px 15px;background:#21382b;border:1px solid #ffffff0d;border-radius:16px 16px 16px 4px;overflow-wrap:anywhere;font-size:14px;line-height:1.6;white-space:pre-wrap}
html[data-billiards-design="club"] .booking-message[data-sender="customer"] {align-self:flex-end;background:#a8e3c819;border-color:#a8e3c82e;border-radius:16px 16px 4px 16px}
html[data-billiards-design="club"] .booking-message[data-sender="system"] {align-self:center;max-width:100%;padding:6px 10px;border:0;background:transparent;border-radius:0;color:var(--dim);font-size:12px;text-align:center}
html[data-billiards-design="club"] .booking-message p {margin:0;white-space:pre-wrap}
html[data-billiards-design="club"] .booking-message time {display:block;font-size:11px;color:var(--dim);margin-top:6px}
html[data-billiards-design="club"] .booking-composer {display:grid;gap:10px;padding:16px;border-top:1px solid var(--stroke);background:var(--tile);margin:0;max-width:none}
html[data-billiards-design="club"] .booking-composer label {margin:0}
html[data-billiards-design="club"] .booking-composer textarea {display:block;width:100%;resize:vertical;min-height:88px;max-height:180px;font-size:16px}
html[data-billiards-design="club"] .booking-composer>button {min-height:48px}
html[data-billiards-design="club"] .booking-actions {display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
html[data-billiards-design="club"] .booking-actions>button {flex:1 1 140px;min-width:0;min-height:48px}
html[data-billiards-design="club"] .booking-admin {max-width:100%;min-width:0}
html[data-billiards-design="club"] .booking-admin-tabs {display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
html[data-billiards-design="club"] .booking-admin-tabs>button {flex:1;min-height:46px;min-width:110px}
html[data-billiards-design="club"] .booking-schedule {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:20px 0;min-width:0}
html[data-billiards-design="club"] .booking-schedule-table {padding:16px;background:var(--tile);border:1px solid var(--stroke);border-radius:18px;min-width:0;overflow-wrap:anywhere}
html[data-billiards-design="club"] .booking-schedule-table>h3 {font-size:16px;margin:0 0 12px}
html[data-billiards-design="club"] .booking-slot {display:block;margin:8px 0;padding:12px;border-radius:12px;background:#a8e3c80c;border:1px solid #a8e3c828;color:var(--ink);font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
html[data-billiards-design="club"] .booking-settings {margin:24px 0;padding:20px;border:1px solid #d8ba8333;border-radius:22px;background:var(--tile);max-width:760px}
html[data-billiards-design="club"] .booking-settings label {margin:14px 0}
html[data-billiards-design="club"] .booking-settings .row {flex-wrap:wrap}
html[data-billiards-design="club"] .booking-settings .row>* {min-width:0}
html[data-billiards-design="club"] .booking-settings button {min-height:48px}
html[data-billiards-design="club"] .booking-empty {padding:24px;border:1px dashed #a8e3c82b;border-radius:20px;color:var(--dim);line-height:1.65;background:#a8e3c804}
html[data-billiards-design="club"] .booking-empty strong {display:block;font-size:18px;color:var(--ink);margin-bottom:8px}

@media(min-width:700px) {
  html[data-billiards-design="club"] body>header {padding-inline:32px;min-height:70px}
  html[data-billiards-design="club"] body>main.club-flow-content {padding:40px 36px 48px}
  html[data-billiards-design="club"] body>nav {gap:10px;padding-block:10px 12px}
  html[data-billiards-design="club"] body>nav a {flex:0 1 150px;display:flex;justify-content:center;align-items:center;gap:10px;font-size:13px;min-height:48px;padding:10px 16px}
  html[data-billiards-design="club"] .content:has(>.profile-form) {max-width:760px}
  html[data-billiards-design="club"] .day-records {gap:14px}
  html[data-billiards-design="club"] .booking-form {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  html[data-billiards-design="club"] .booking-form>.status,
  html[data-billiards-design="club"] .booking-form>button,
  html[data-billiards-design="club"] .booking-form>.booking-summary,
  html[data-billiards-design="club"] .booking-form>.booking-table-options,
  html[data-billiards-design="club"] .booking-form>label:has(textarea) {grid-column:1/-1}
  html[data-billiards-design="club"] .booking-composer {grid-template-columns:minmax(0,1fr) auto;align-items:end}
  html[data-billiards-design="club"] .booking-composer>.status {grid-column:1/-1}
  html[data-billiards-design="club"] .booking-composer>button {padding-inline:24px}
  html[data-billiards-design="club"] .booking-list {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px) {
  html[data-billiards-design="club"] body>header {padding-inline:16px;gap:10px}
  html[data-billiards-design="club"] body>main.club-flow-content {padding:22px 16px 28px}
  html[data-billiards-design="club"] h1 {font-size:28px;letter-spacing:-.035em}
  html[data-billiards-design="club"] .profile-form {padding:16px;border-radius:22px}
  html[data-billiards-design="club"] .profile-hero {grid-template-columns:56px minmax(0,1fr) 44px;gap:8px}
  html[data-billiards-design="club"] .profile-hero .profile-ball {width:52px;height:52px;font-size:22px}
  html[data-billiards-design="club"] .profile-hero input {padding-inline:10px;font-size:16px}
  html[data-billiards-design="club"] .profile-form .ball-grid {gap:12px 8px}
  html[data-billiards-design="club"] .account-links {gap:8px}
  html[data-billiards-design="club"] .account-links>button {flex-basis:120px;font-size:13px;padding-inline:10px}
  html[data-billiards-design="club"] .match-board {padding:18px 14px 12px;margin:16px 0;border-radius:22px}
  html[data-billiards-design="club"] .match-seat strong {font-size:14px}
  html[data-billiards-design="club"] .match-score {font-size:42px}
  html[data-billiards-design="club"] .game-heading-actions {align-items:center;gap:8px}
  html[data-billiards-design="club"] .game-heading-actions h1 {font-size:25px}
  html[data-billiards-design="club"] .game-heading-actions>.game-scan {font-size:12px;padding:8px 10px}
  html[data-billiards-design="club"] .club-map-heading {left:12px;top:12px;padding:12px 15px}
  html[data-billiards-design="club"] .club-map-legend {font-size:10px;left:64px;bottom:26px;max-width:calc(100% - 76px);gap:6px 10px;padding:8px 10px}
  html[data-billiards-design="club"] .club-card>h1 {font-size:25px}
  html[data-billiards-design="club"] .club-flow-dialog.is-club .club-flow-content {padding:26px 18px 20px}
  html[data-billiards-design="club"] .club-card-actions {gap:8px}
  html[data-billiards-design="club"] .booking-form {padding:18px;border-radius:22px;margin:18px auto;gap:16px}
  html[data-billiards-design="club"] .booking-summary {padding:16px}
  html[data-billiards-design="club"] .booking-chat {margin:20px 0;border-radius:20px}
  html[data-billiards-design="club"] .booking-messages {padding:12px;max-height:44dvh;min-height:140px;gap:10px}
  html[data-billiards-design="club"] .booking-message {max-width:92%;padding:10px 12px}
  html[data-billiards-design="club"] .booking-composer {padding:12px}
  html[data-billiards-design="club"] .booking-settings {padding:16px}
  html[data-billiards-design="club"] .booking-settings .row {display:grid;grid-template-columns:minmax(0,1fr)}
  html[data-billiards-design="club"] .booking-actions>button {flex-basis:120px;font-size:13px}
  html[data-billiards-design="club"] .billing-form {padding:18px}
}
@media(max-width:360px) {
  html[data-billiards-design="club"] .brand {font-size:17px;gap:8px}
  html[data-billiards-design="club"] body>header {padding-inline:12px}
  html[data-billiards-design="club"] body>nav {gap:2px;padding-inline:5px}
  html[data-billiards-design="club"] body>nav a {font-size:10px;border-radius:13px}
  html[data-billiards-design="club"] .shot-card .shot-heading {gap:3px;padding-inline:6px}
  html[data-billiards-design="club"] .shot-card .shot-number {min-width:20px;font-size:18px}
  html[data-billiards-design="club"] .shot-card .shot-labels h3 {font-size:11px}
  html[data-billiards-design="club"] .shot-card .shot-at-score {font-size:13px}
  html[data-billiards-design="club"] .match-seats {gap:8px}
  html[data-billiards-design="club"] .game-score-stepper {grid-template-columns:44px minmax(18px,1fr) 44px;gap:2px}
}
@media(hover:hover) {
  html[data-billiards-design="club"] button:not(:disabled):hover {filter:brightness(1.08)}
  html[data-billiards-design="club"] body>nav a:hover {color:var(--ink);background:#ffffff08}
  html[data-billiards-design="club"] body>nav a[aria-current="page"]:hover {background:#a8e3c81c}
}
@media(prefers-reduced-motion:reduce) {
  html[data-billiards-design="club"] *,
  html[data-billiards-design="club"] *::before,
  html[data-billiards-design="club"] *::after {scroll-behavior:auto!important;transition:none!important}
  html[data-billiards-design="club"] button:active {transform:none}
}

/* One shared score editor; party actions remain separate from all previews. */
.game-score-controls,
html[data-billiards-design="club"] .game-score-controls {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px 16px;width:100%;max-width:380px;margin:16px auto}
.game-score-stepper,
html[data-billiards-design="club"] .game-score-stepper {display:grid;grid-template-columns:44px;grid-template-rows:44px 44px;gap:8px;align-items:center}
.game-score-values {display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;font-variant-numeric:tabular-nums}
.game-score-values>.match-score {font-size:clamp(36px,8vw,52px);line-height:1.1;text-align:center;margin:0}
.game-score-colon {font-size:30px;color:var(--dim);line-height:1}
.game-score-feedback {grid-column:1/-1;text-align:center;line-height:1.4}
.guest-actions {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-block:16px}
.guest-actions>button {width:100%;margin:0;min-height:44px}
.shot-download {display:flex;align-items:center;gap:8px}
.shot-download-action,
html[data-billiards-design="club"] .shot-download-action {display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
.shot-download-action svg {display:block;flex:none}
.shot-download-note {font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.shot-download.is-preparing .shot-download-action svg {animation:billiards-shot-spinner .85s linear infinite}
@keyframes billiards-shot-spinner {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.shot-download.is-preparing .shot-download-action svg {animation:none}}
