/* Site frame for Bob's Worlds: the window is locked, the slim top bar (js/site.js) never moves, and .page-scroll is the one scroller.
   Replaces the shared nav/main css the pages used on BubbleBlip. */
html, body { margin: 0; height: 100%; }
body {
  height: 100vh; height: 100svh; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0e1124; color: #1d2340;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
button, input, select, textarea { font: inherit; }
.page-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.page-scroll > * { flex-shrink: 0; }
.page-scroll::after { content: ""; display: block; height: env(safe-area-inset-bottom, 0px); flex: none; }

#site-nav {
  flex: none; height: 52px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: #0e1124; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #f3f1ec; position: relative; z-index: 30;
}
#site-nav a { color: #f3f1ec; text-decoration: none; font: 800 1rem "Baloo 2", "Trebuchet MS", system-ui, sans-serif; }
#site-nav .nav-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; margin-right: auto; }
#site-nav .nav-brand svg { width: 26px; height: 30px; flex: none; }
#site-nav .nav-brand span b { color: #ff5a36; }
#site-nav .nav-link { padding: 6px 12px; border-radius: 10px; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; background: transparent; border: 0; cursor: pointer; font: 800 1rem "Baloo 2", system-ui, sans-serif; color: #f3f1ec; }
#site-nav .nav-link:hover, #site-nav .nav-link[aria-current="page"] { background: rgba(255, 255, 255, .14); }
#site-nav .nav-coins { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 2px 12px 2px 6px; border-radius: 999px; background: #fff7e0; border: 2px solid #ffd23f; color: #5a4300; font: 800 1.05rem "Baloo 2", system-ui, sans-serif; }
#site-nav .nav-coins[hidden] { display: none; }
#site-nav .nav-coins a, #site-nav a.nav-coins { color: #5a4300; }
#site-nav .nav-coins svg { flex: none; display: block; }
#site-nav .nav-coins.is-preview { background: #fff1c2; border-style: dashed; }
#site-nav .nav-coins.bump { animation: nav-coin-bump .45s ease-out; }
@keyframes nav-coin-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
#site-nav .nav-link:focus-visible, #site-nav .nav-brand:focus-visible { outline: 3px solid #ff5a36; outline-offset: 2px; }
@media (max-width: 520px) { #site-nav { padding: 0 10px; gap: 4px; } #site-nav .nav-brand span { display: none; } }

#site-nav .nav-help { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #f3f1ec; background: transparent; color: #f3f1ec; font: 800 1rem/1 "Baloo 2", system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
#site-nav .nav-help:hover { background: rgba(255, 255, 255, .14); }
#site-nav .nav-help:focus-visible { outline: 3px solid #ff5a36; outline-offset: 2px; }
#site-nav .nav-quiet { font-weight: 700; opacity: .8; }
@media (max-width: 760px) { #site-nav { overflow-x: auto; } #site-nav .nav-link { white-space: nowrap; } }

/* footer: one slim line under every page */
#site-foot { flex: none; box-sizing: border-box; min-height: 28px; padding: 4px 16px calc(4px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; background: #0e1124; border-top: 1px solid rgba(255, 255, 255, .12); color: #9aa3c7; font: 600 .78rem/1.2 "Nunito", system-ui, sans-serif; position: relative; z-index: 30; }
#site-foot a { color: #c9d0f0; }
#site-foot button { background: none; border: 0; padding: 2px 4px; color: #c9d0f0; font: inherit; text-decoration: underline; cursor: pointer; }
#site-foot a:focus-visible, #site-foot button:focus-visible { outline: 3px solid #ff5a36; outline-offset: 2px; }
html.clean #site-foot { display: none; }
html.disc-open { overflow: hidden; }
#discModal { position: fixed; inset: 0; z-index: 2100; display: flex; padding: 16px; background: rgba(8, 10, 24, .85); overflow-y: auto; }
#discModal[hidden] { display: none; }
.disc-card { margin: auto; width: min(560px, 100%); box-sizing: border-box; background: #fff; color: #1d2340; border-radius: 22px; padding: 20px; font: 400 1rem/1.5 "Nunito", system-ui, sans-serif; }
.disc-card h2 { margin: 0 0 8px; font: 800 1.5rem/1.1 "Baloo 2", system-ui, sans-serif; }
.disc-card p { margin: 0 0 10px; }
.disc-x { display: block; margin: 12px auto 0; min-height: 44px; padding: 0 28px; border-radius: 14px; border: 0; background: #ff5a36; color: #fff; font: 800 1.1rem "Baloo 2", system-ui, sans-serif; cursor: pointer; }
@media print { #site-foot, #discModal { display: none !important; } }
