/* A&G One app layer: bottom tabs (only when the site is opened as the installed app), install banner, offline bar */
:root{--ag-gold:#B58A35;--ag-gold2:#D4B06A;--ag-ink:#0b0b0b}
.ag-tabs{display:none}
html.ag-app .ag-tabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:1200;background:rgba(11,11,11,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid rgba(212,176,106,.28);padding:6px 4px calc(6px + env(safe-area-inset-bottom));font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.ag-tabs a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border-radius:12px;color:#a99f8c;text-decoration:none;font-size:11px;font-weight:600;letter-spacing:.01em;-webkit-tap-highlight-color:transparent;min-height:48px;justify-content:center}
.ag-tabs a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ag-tabs a.on{color:var(--ag-gold2)}
.ag-tabs a.on svg{filter:drop-shadow(0 0 6px rgba(212,176,106,.45))}
.ag-tabs a:active{background:rgba(212,176,106,.12)}
html.ag-app.ag-has-tabs body{padding-bottom:calc(74px + env(safe-area-inset-bottom))!important}
html.ag-app .mobile-bottom-nav,html.ag-app .ag-persistent-nav{display:none!important}
html.ag-app.ag-has-tabs .wa-float{bottom:calc(88px + env(safe-area-inset-bottom))!important}
html.ag-app.ag-has-tabs .sound-toggle{bottom:calc(88px + env(safe-area-inset-bottom))!important}
html.ag-app{-webkit-tap-highlight-color:transparent}
html.ag-app body{-webkit-touch-callout:none}
html.ag-app input,html.ag-app textarea,html.ag-app [contenteditable]{-webkit-touch-callout:default}

.ag-install{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:10050;display:none;align-items:center;gap:10px;padding:10px 8px 10px 12px;border-radius:18px;background:linear-gradient(135deg,#1a1610,#0b0b0b);border:1px solid rgba(212,176,106,.45);box-shadow:0 18px 50px rgba(0,0,0,.45);color:#f5efe3;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;max-width:520px;margin:0 auto}
.ag-install.above-nav{bottom:calc(82px + env(safe-area-inset-bottom))}
.ag-install.show{display:flex;animation:agUp .35s ease}
@keyframes agUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.ag-install img{width:40px;height:40px;border-radius:11px;flex:none}
.ag-install .t{flex:1;min-width:0;font-size:12.5px;line-height:1.3;color:#cfc6b3}.ag-install .t b{display:block;color:#fff;font-size:14.5px;margin-bottom:1px;white-space:nowrap}
.ag-install button{border:0;cursor:pointer;font:600 14px Inter,system-ui,sans-serif;border-radius:12px;min-height:44px;flex:none}
.ag-install .go{background:linear-gradient(135deg,var(--ag-gold2),var(--ag-gold));color:#171717;padding:0 16px}
.ag-install .x{background:transparent;color:#a99f8c;width:36px;padding:0;font-size:22px;line-height:1}
@media(max-width:360px){.ag-install .t span{display:none}}
@media(min-width:901px){.ag-install{display:none!important}}
.ag-ios{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:10060;padding:16px;border-radius:18px;background:#fff;color:#171717;border:1px solid rgba(198,165,104,.6);box-shadow:0 18px 50px rgba(0,0,0,.35);font:14px/1.5 Inter,system-ui,sans-serif;max-width:520px;margin:0 auto;display:none}
.ag-ios.show{display:block}.ag-ios b{display:block;font-size:16px;margin-bottom:4px}.ag-ios button{margin-top:10px;border:0;background:#0b0b0b;color:#fff;border-radius:10px;padding:10px 16px;font:600 14px Inter,sans-serif}
.ag-offline{position:fixed;left:0;right:0;top:0;z-index:10070;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:#7a1f1f;color:#fff;text-align:center;font:600 13px Inter,system-ui,sans-serif;display:none}
.ag-offline.show{display:block}
@media(min-width:901px){.ag-install{display:none!important}}
