/* shop2 bottom-nav proportions, scoped for the local Database integration. */
:root{--db-content-gap:28px;--db-nav-panel-height:66px;--db-nav-space:calc(var(--db-nav-panel-height) + 10px + var(--db-content-gap) + env(safe-area-inset-bottom,0px))}
body{padding-bottom:var(--db-nav-space)}
#detail{padding-bottom:var(--db-nav-space)}
.db-bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:var(--app-width,430px);z-index:20;padding:10px 14px max(10px, env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#00121b00,#00121b99 25%,#00121bf5);pointer-events:none}
.db-nav-shell{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:6px;border-radius:18px;background:#041922e8;border:1px solid #33d6dd33;backdrop-filter:blur(20px);box-shadow:0 10px 32px #0006;pointer-events:auto}
.db-nav-item{min-width:0;min-height:52px;margin:0;padding:5px 1px;border:0;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;color:#9baeb5;text-decoration:none;font:400 10px/1.2 GameText,Arial,sans-serif;letter-spacing:0;position:relative;cursor:pointer}
.db-nav-item svg{flex:none}
.db-nav-item.is-active{color:#fcfcf7;background:linear-gradient(150deg,#0cf8c329,#17aed11a);box-shadow:inset 0 0 0 1px #25e9c64d}
.db-nav-item.is-active::after{content:'';position:absolute;bottom:3px;left:35%;right:35%;height:2px;border-radius:2px;background:#07f468;box-shadow:0 0 8px #07f46866}
.db-nav-item:hover{color:#fcfcf7;background-color:#ffffff08}
.db-nav-item:active{transform:scale(.97)}
.db-nav-item:focus-visible{outline:2px solid #07f468;outline-offset:-2px}
body:has(#detail[open])>.db-bottom-nav{visibility:hidden}
@media(max-width:360px){.db-bottom-nav{padding-inline:8px}.db-nav-shell{gap:2px;padding:5px}.db-nav-item{font-size:9px}}
@media(max-width:360px){:root{--db-nav-panel-height:64px}}
/* Content-sized mobile sheet aligned with the bottom navigation. */
.db-tools-sheet{position:fixed;inset:auto 0 var(--tools-bottom,60px);z-index:10001;margin:0 auto;width:var(--tools-width,min(402px,calc(100% - 28px)));height:auto;max-height:calc(100dvh - 140px);padding:0;border:1px solid #ffffff18;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(160deg,#1b2940,#0d1627 80%);color:var(--shop-text);box-shadow:0 -10px 40px #0006;font-family:ShopInter,system-ui,sans-serif;overflow:auto}
.db-tools-content{padding:10px 14px 30px}
.db-bottom-nav{z-index:10002}
.db-tools-backdrop{position:fixed;inset:0;z-index:10000;background:#02081744;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.db-tools-sheet[hidden],.db-tools-backdrop[hidden]{display:none}
body.db-tools-open{overflow:hidden}
@media(max-width:360px){.db-tools-sheet{width:calc(100% - 16px)}}
.db-tools-handle{width:32px;height:3px;margin:0 auto 10px;border-radius:3px;background:#ffffff30}
.db-tools-sheet h2{margin:0 0 12px;text-align:center;font:600 16px/1.3 ShopInter,system-ui,sans-serif;letter-spacing:0}
.db-tools-entry{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#ffffff04;color:var(--shop-text);text-decoration:none;font:600 14px/1.4 ShopInter,system-ui,sans-serif;transition:background .15s}
.db-tools-entry:not([hidden])~.db-tools-entry:not([hidden]){margin-top:6px}
.db-tools-entry:hover{background:#46a6ff0c}
.db-tools-entry[hidden]{display:none}
.db-tools-icon{display:grid;place-items:center;width:24px;height:24px;flex:none;color:#93a4c7}
.db-tools-icon svg{width:22px;height:22px}
.db-tools-arrow{width:16px;height:16px;margin-left:auto;color:var(--shop-muted)}
.db-tools-sheet a:focus-visible{outline:2px solid var(--shop-blue);outline-offset:-2px}

.db-nav-icon{position:relative;display:block;width:20px;height:20px;flex:none}
.db-nav-icon>svg{display:block}
.db-shop-unread{position:absolute;right:-3px;top:-3px;width:7px;height:7px;border-radius:50%;background:#ff5268;box-shadow:0 0 0 2px #101b2d;pointer-events:none}
.db-shop-unread[hidden]{display:none}

/* Same blue NEW treatment as the storefront, sized for an inline menu label. */
.db-tools-new{flex:none;padding:3px 5px;border-radius:4px;background:#46a6ff;color:#071425;font:900 9px/1 ShopInter,system-ui,sans-serif;letter-spacing:.02em}
.db-tools-new[hidden]{display:none}
