:root{--bottom-nav-height:calc(58px + env(safe-area-inset-bottom,0px));--bottom-nav-space:var(--bottom-nav-height)}
body.has-bottom-nav{padding-bottom:var(--bottom-nav-height)!important}
body .bottom-nav{box-sizing:border-box;position:fixed;bottom:0;left:0;right:0;height:var(--bottom-nav-height);padding:5px max(10px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));z-index:100;display:flex;align-items:stretch;justify-content:center;gap:5px;background:#102a24f5;border-top:1px solid #638a7140;backdrop-filter:blur(16px)}
body .bottom-nav a{box-sizing:border-box;flex:1;max-width:210px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#a9c2b0;font:600 12px/1.15 system-ui,sans-serif;letter-spacing:0;min-width:0;border:0;border-radius:10px;padding:8px 5px;text-align:center;background:transparent}
body .bottom-nav a.active{background:#d7c28a18;color:#f3dfab}body .bottom-nav a:focus-visible{outline:2px solid #e8cf91;outline-offset:-2px}
body.has-bottom-nav dialog{max-height:calc(100dvh - var(--bottom-nav-height) - 30px)}
/* The fixed parent navigation remains visible while the retained game is open. */
#persistent-coach{position:fixed;inset:0 0 var(--bottom-nav-height);width:100%;height:calc(100dvh - var(--bottom-nav-height));border:0;background:#102a24;z-index:90}#persistent-coach[hidden]{display:none!important}
body.computer-section{overflow:hidden!important}body.computer-section>.app-shell{visibility:hidden;pointer-events:none}
body.embedded-coach{--bottom-nav-height:0px;--bottom-nav-space:0px;padding-bottom:0!important}
body .bottom-nav a{flex-direction:column;gap:3px;font-size:10px;padding:3px 5px}body .bottom-nav a svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}body .bottom-nav a.active svg{color:#eed49c}

body .bottom-nav a{flex-direction:row;gap:9px;font-size:15px;min-height:44px}
body .bottom-nav a.active{background:#305342;color:#fff2d3}
.study-heading h1{font:700 1.65rem/1.15 system-ui;color:#f0ebd9;margin:12px 0}
.study-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}
.study-links>*{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px;border:1px solid #77948377;border-radius:12px;background:#284b40;color:#f0ebd9;text-decoration:none;text-align:center;font:600 15px/1.3 system-ui}
#catalog-actions small{font-size:13px!important}
body .three-tools button,button.speak{min-height:44px;touch-action:manipulation}
