:root{--ink:#294740;--jade:#347c68;--paper:#fff1d5;--gold:#e6b05e;--coral:#c9795c;--line:#35574522;--bar:50px;font-family:ui-rounded,"Avenir Next",Avenir,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:#e8dfc2;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{height:100dvh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.46}button:focus-visible,a:focus-visible{outline:3px solid #e8aa50;outline-offset:3px}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}#scene{position:fixed;inset:0;width:100vw;height:100dvh;display:block;touch-action:none;outline:none}#scene:focus-visible{outline:2px solid #e5bb7490;outline-offset:-3px}.toolbar{position:fixed;z-index:5;left:0;right:0;top:0;height:calc(var(--bar) + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff5dfdf;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;white-space:nowrap;font-size:12px;font-weight:900;letter-spacing:2px}.brand b{display:grid;place-items:center;background:var(--jade);color:#fff1d5;border-radius:9px;width:31px;height:31px;font-size:20px;letter-spacing:0}.title-mark{display:flex;gap:10px;align-items:center}.title-mark strong{font-size:13px}.title-mark span{font-size:9px;letter-spacing:1.6px;opacity:.58}.tools{display:flex;gap:5px;align-items:center}.tools button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:42px;min-height:38px;padding:0 6px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:17px}.tools button:hover{background:#e9dfbf}.tools #language{font-size:11px;font-weight:850}.tools kbd{font-size:8px;opacity:.56}kbd{display:inline-grid;place-items:center;font-family:inherit;font-weight:800;font-size:11px;line-height:1;min-width:23px;min-height:22px;padding:3px 5px;border:1px solid currentColor;border-radius:5px;box-shadow:0 2px 0 #314b4112;opacity:.73}#game-actions{position:fixed;inset:var(--bar) 0 0;pointer-events:none;z-index:3}.chapter{position:absolute;top:15px;left:25px;display:grid;gap:3px;background:#fff0d566;border-radius:8px;padding:7px 12px}#chapter-name{font-size:10px;font-weight:800;letter-spacing:1.3px}#chapter-index{font-size:23px;font-weight:900;letter-spacing:-1px}#stats{position:absolute;right:25px;top:15px;display:flex;background:#fff3dccc;border:1px solid #45674b17;border-radius:13px;backdrop-filter:blur(8px);overflow:hidden}.stat{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px 18px;min-width:80px}.stat+.stat{border-left:1px solid #55705725}.stat span{font-size:9px;text-transform:uppercase;letter-spacing:1.1px;font-weight:800;opacity:.67}.stat b{font-size:23px;font-weight:900;line-height:1.3;font-variant-numeric:tabular-nums}.bottom-deck{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:20px;right:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.bebo-radio{display:flex;align-items:center;max-width:340px;pointer-events:none}.bebo-radio canvas{height:78px;width:78px;flex-shrink:0;margin-right:-5px}.bebo-radio .speech{background:#fff4dedf;border:1px solid #5673562b;border-radius:15px 15px 15px 3px;padding:10px 15px 12px;box-shadow:0 5px 14px #263e3910}.speech small{font-size:8px;font-weight:900;letter-spacing:1.8px;color:#a27252}.speech p{margin:4px 0 0;font-size:12px;line-height:1.55;max-width:260px;font-weight:650}#actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;pointer-events:auto;max-width:68%}.action{min-height:44px;display:flex;gap:7px;align-items:center;justify-content:center;border:1px solid #5d755c35;border-bottom:3px solid #70836355;border-radius:10px;background:#fff0d9ed;padding:7px 13px;font-size:12px;font-weight:750;box-shadow:0 3px 12px #2a4b3710}.action:hover{background:#fff9e6}#save-note{position:fixed;z-index:6;bottom:1px;left:50%;transform:translateX(-50%);margin:0;font-size:9px;color:#8c5c4a;pointer-events:none;text-align:center}.toast{position:fixed;z-index:7;top:calc(var(--bar) + 89px);left:50%;transform:translate(-50%,-8px);background:#2e574aee;color:#fff0d4;padding:11px 20px;border-radius:12px;font-size:13px;max-width:90%;text-align:center;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}#dialog{position:fixed;z-index:8;inset:var(--bar) 0 0;display:flex;align-items:center;justify-content:center;background:#183d3136;backdrop-filter:blur(2px);padding:22px;overflow:auto}.menu-sheet{width:min(430px,100%);max-height:calc(100dvh - var(--bar) - 40px);overflow:auto;background:linear-gradient(140deg,#fff5df,#f1e1bf);border:1px solid #fff5e4a6;box-shadow:0 20px 100px #233d3845,0 2px 0 #8a755b2e;border-radius:24px;padding:31px 34px 22px;position:relative;text-align:center}.menu-sheet::before{content:"თ";position:absolute;right:22px;top:14px;font-size:48px;color:#47735912;transform:rotate(14deg);pointer-events:none}.menu-eyebrow{font-size:9px;letter-spacing:2.4px;font-weight:900;color:#a0714e;margin:0 0 12px}.menu-sheet h1{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:37px;line-height:1.1;margin:0 0 13px;letter-spacing:-1.4px}.menu-copy{font-size:14px;line-height:1.7;margin:0 0 16px;opacity:.85}.menu-detail{border-top:1px solid #697e592d;border-bottom:1px solid #697e592d;padding:12px 0;font-size:12px;line-height:1.75;margin:12px 0 16px}.choices{display:grid;gap:8px}.choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px;min-height:46px;border:1px solid #506e4933;border-bottom:3px solid #526e4540;border-radius:10px;background:#f9edce;font-size:13px;font-weight:800}.choice.primary{color:#fff3d7;background:#397c67;border-color:#2e6857}.choice.primary:hover{background:#296954}.choice:hover{background:#fff9e6}.menu-note{font-size:9px;margin:16px 0 0;opacity:.55}.stars{font-size:39px;letter-spacing:8px;color:#d49c4c;margin:5px 0 11px;text-shadow:0 2px 0 #af7b4620}.map-sheet{width:min(720px,100%)}.level-map{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin:19px 0}.level-stop{border:1px solid #54765248;background:#e8e3bd;min-height:58px;border-bottom:3px solid #65815942;border-radius:14px;font-weight:900;font-size:17px;display:grid;place-items:center;padding:7px}.level-stop small{font-size:10px;color:#bd8945;letter-spacing:1px}.level-stop:disabled{background:#b7b99f;opacity:.55}.level-stop:hover:not(:disabled){background:#fdf1c8}.boot-note{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);font-size:16px;background:var(--paper);padding:20px;border-radius:14px}.skip{position:fixed;left:10px;top:-70px;z-index:20;background:#fff1d4;color:var(--ink);padding:12px}.skip:focus{top:6px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.title-mark span{display:none}.bottom-deck{left:12px;right:12px}.bebo-radio{max-width:270px}.bebo-radio canvas{width:64px;height:64px}.action{padding:6px 10px;font-size:11px}.action kbd{font-size:9px;min-width:20px}}
@media(max-width:600px){:root{--bar:48px}.toolbar{padding-left:9px;padding-right:7px;gap:6px}.brand{font-size:9px;letter-spacing:1px;gap:5px}.brand b{width:26px;height:26px;font-size:18px}.brand>span{display:none}.title-mark strong{font-size:11px;max-width:145px;line-height:1.4}.tools{gap:0}.tools button{min-width:34px;min-height:44px;padding:0 5px;font-size:16px}.tools kbd{display:none}#map{display:none}.chapter{top:9px;left:9px;padding:5px 8px;max-width:41%}#chapter-name{font-size:8px;letter-spacing:.5px}#chapter-index{font-size:20px}#stats{right:9px;top:9px}.stat{padding:6px 10px;min-width:59px}.stat span{font-size:8px;letter-spacing:.5px}.stat b{font-size:19px}.bottom-deck{left:8px;right:8px;bottom:max(9px,env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:8px}.bebo-radio{align-self:center;max-width:98%;min-height:42px}.bebo-radio canvas{width:54px;height:54px;margin-top:-12px}.speech p{font-size:10px;line-height:1.4;margin:2px 0 0;max-width:290px}.bebo-radio .speech{padding:6px 10px;border-radius:10px 10px 10px 2px}.speech small{font-size:7px;letter-spacing:1px}#actions{max-width:100%;justify-content:center;gap:5px}.action{flex:1;white-space:nowrap;padding:7px 6px;font-size:10px;gap:4px;min-height:44px}.action kbd{min-width:17px;min-height:18px;font-size:8px;padding:2px}.menu-sheet{padding:23px 22px 16px;border-radius:20px}.menu-sheet h1{font-size:32px}.menu-copy{font-size:12px;line-height:1.6}.menu-detail{font-size:11px}.choice{font-size:12px;padding:10px 13px}.level-map{grid-template-columns:repeat(5,1fr);gap:7px}.level-stop{min-height:50px;font-size:15px}.toast{top:calc(var(--bar) + 80px);font-size:11px;width:max-content}.menu-eyebrow{font-size:8px}.menu-note{font-size:8px}}
@media(max-height:500px) and (min-width:601px){:root{--bar:44px}.toolbar{height:44px}.title-mark span{display:none}.tools button{min-height:44px}.chapter{top:6px;left:10px;padding:3px 7px}#chapter-index{font-size:16px}#chapter-name{font-size:8px}#stats{top:6px;right:10px}.stat{padding:4px 11px}.stat b{font-size:17px}.stat span{font-size:8px}.bottom-deck{bottom:7px}.bebo-radio canvas{width:48px;height:48px}.speech small{font-size:7px}.speech p{font-size:9px;line-height:1.3}.bebo-radio .speech{padding:6px 9px}.action{min-height:44px;font-size:10px}#dialog{padding:10px}.menu-sheet{padding:15px 24px;max-height:calc(100dvh - 58px)}.menu-sheet h1{font-size:26px;margin-bottom:7px}.menu-copy{font-size:11px;line-height:1.4;margin-bottom:9px}.menu-detail{font-size:10px;padding:8px 0;margin:8px 0}.choices{gap:5px}.choice{min-height:44px;padding:7px 13px;font-size:11px}.menu-eyebrow{margin-bottom:6px}.menu-note{margin-top:9px}.level-map{grid-template-columns:repeat(10,1fr)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* In short landscape the game, not stacked HUD bands, owns the vertical space. */
@media(max-height:500px) and (min-width:601px){
 body[data-game="churchkhela-swing"] .chapter{width:130px;max-width:130px;left:8px;top:8px}
 body[data-game="churchkhela-swing"] #chapter-name{font-size:9px;line-height:1.4;letter-spacing:.5px}
 body[data-game="churchkhela-swing"] #stats{left:8px;right:auto;top:73px;width:132px;display:grid;grid-template-columns:1fr}
 body[data-game="churchkhela-swing"] .stat{flex-direction:row;justify-content:space-between;min-width:0;padding:5px 9px}
 body[data-game="churchkhela-swing"] .stat+.stat{border-left:0;border-top:1px solid var(--line)}
 body[data-game="churchkhela-swing"] .bottom-deck{top:10px;bottom:auto;left:auto;right:8px;width:124px}
 body[data-game="churchkhela-swing"] .bebo-radio{display:none}
 body[data-game="churchkhela-swing"] #actions{display:grid;grid-template-columns:1fr;max-width:100%;width:100%;gap:7px}
 body[data-game="churchkhela-swing"] .action{min-height:44px;white-space:normal;padding:7px;font-size:10px}
}

.startup-screen{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at 50% 30%,#fff6df,#e3d2ab);padding:24px;text-align:center}.startup-mark{display:grid;place-items:center;background:#347c68;color:#fff1d5;width:84px;height:84px;font-size:58px;border-radius:24px;box-shadow:0 10px 0 #2d685826}.startup-screen h1{font-size:23px;margin:14px 0 0}.startup-screen p{max-width:360px;line-height:1.6;margin:0}.startup-screen button{min-height:48px;border:1px solid #215e4a;border-bottom:3px solid #194c3a;border-radius:12px;background:#347c68;color:#fff1d5;padding:12px 22px;font-weight:750;display:flex;align-items:center;gap:15px;margin-top:12px}

/* Parking's board and inverse pointer transform use this same short-landscape allocation. */
@media(max-height:500px) and (min-width:601px){
 body[data-game="tbilisi-parking"] .chapter{width:130px;max-width:130px;left:8px;top:8px}
 body[data-game="tbilisi-parking"] #chapter-name{font-size:9px;letter-spacing:.4px;line-height:1.4}
 body[data-game="tbilisi-parking"] #stats{left:8px;right:auto;top:74px;width:132px;display:grid;grid-template-columns:1fr}
 body[data-game="tbilisi-parking"] .stat{flex-direction:row;justify-content:space-between;min-width:0;padding:5px 9px}
 body[data-game="tbilisi-parking"] .stat+.stat{border-left:0;border-top:1px solid var(--line)}
 body[data-game="tbilisi-parking"] .bottom-deck{top:10px;bottom:auto;left:auto;right:8px;width:124px}
 body[data-game="tbilisi-parking"] .bebo-radio{display:none}
 body[data-game="tbilisi-parking"] #actions{display:grid;grid-template-columns:1fr;max-width:100%;width:100%;gap:7px}
 body[data-game="tbilisi-parking"] .action{min-height:44px;white-space:normal;padding:7px;font-size:10px}
}

.brand>kbd{font-size:9px;opacity:.7}@media(max-width:600px){.brand>kbd{display:none}}
