/* Gate Room shared chrome strip - import on every non-SPA surface.
   Depends on design-tokens.css being imported first (or its variables being
   defined inline). The strip is a 34px fixed top bar that sits above all
   surface content and provides universal return navigation. */

@font-face {
  font-family: 'Coolvetica';
  src: url('/coolvetica.otf') format('opentype');
  font-display: swap;
}

#tgr-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 34px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 calc(14px + env(safe-area-inset-right,0px)) 0 calc(14px + env(safe-area-inset-left,0px));
  --chrome-bg: rgba(10, 15, 18, 0.92); /* --bg #0a0f12 at 92% alpha; shared translucent dark for top bars */
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--edge, #23353e);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  color: var(--muted, #7d949b);
  box-sizing: border-box;
  user-select: none;
}

/* Wordmark */
#tgr-chrome .tgr-wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--cyan, rgb(209, 238, 238));
  font-family: var(--font-display, 'Coolvetica', sans-serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

#tgr-chrome .tgr-wordmark .tgr-glyph {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--amber, rgb(255, 200, 120));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--amber, rgb(255, 200, 120));
  box-shadow: 0 0 8px rgba(255, 200, 120, .28);
  flex-shrink: 0;
}

/* Divider hairline */
#tgr-chrome .tgr-div {
  width: 1px;
  height: 16px;
  background: var(--edge, #23353e);
  margin: 0 12px;
  flex-shrink: 0;
}

/* Nav links */
#tgr-chrome nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

#tgr-chrome nav a {
  text-decoration: none;
  color: var(--muted, #7d949b);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
  font-size: 12px;
  letter-spacing: 0.02em;
}

#tgr-chrome nav a:hover {
  color: var(--cyan, rgb(209, 238, 238));
  background: rgba(18, 26, 31, 0.7);
}

#tgr-chrome nav a.tgr-active {
  color: var(--cyan, rgb(209, 238, 238));
}

/* Breadcrumb slot */
#tgr-chrome .tgr-breadcrumb {
  font-size: 11px;
  color: var(--muted, #7d949b);
  opacity: 0.7;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 12px;
}

/* Body offset - push page content below the chrome strip on surfaces that use it */
body.has-tgr-chrome {
  padding-top: 34px;
}

/* On the star map the canvas is fixed so no body padding needed;
   instead the HUD top bar accounts for it via margin-top in the inline
   adjustment applied by the chrome injection script. */
