/* chrome-3d.css — body flex layout + /3d/-style topbar + minimal footer.
 * Pairs with btr-core.css for /3d/ experiment pages.
 *
 * Layout: body is flex-column with topbar (fixed-height), stage (flex: 1), footer.
 * Each 3D page's WebGL canvas is appended to <section class="stage"> via JS.
 */

html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: 'Barlow Condensed', sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── Top bar — matches /3d/index.html visual style ── */
.topbar {
  flex-shrink: 0;
  background: #0C0C0A;
  color: #ECEAE4;
  padding: 0.55rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #FF0000;
  z-index: 100;
}
.topbar-left  { display: flex; gap: 2rem; align-items: center; }
.topbar-right { display: flex; gap: 2rem; align-items: center; }

.tb-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #ECEAE4;
}
.tb-red { color: #FF0000; }

.tb-back {
  color: #ECEAE4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}
.tb-back:hover { color: #FF0000; }

/* ── Stage — flex: 1 area between chrome ── */
.stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ── Footer ── */
footer {
  flex-shrink: 0;
  background: var(--void);
  border-top: 1px solid var(--fire);
}

.footer-bottom {
  padding: 0.7rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fb-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #383634;
}
.fb-copy strong { color: var(--fire); font-weight: 700; }

.fb-jp {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #1A1816;
}

@media (max-width: 960px) {
  .topbar-right { display: none; }
}

@media (max-width: 600px) {
  .topbar { padding: 0.5rem 1rem; }
  .footer-bottom { padding: 0.6rem 1rem; }
}
