/* a stand-in browser: toolbar on top, one page below it.
   the address bar is real: type any address and it becomes a level. */
* { box-sizing: border-box; }
html { background: #1b1c1f; }
html, body { margin: 0; height: 100%; overflow: hidden; }

#chrome {
  height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #26272b; border-bottom: 1px solid #111;
  font: 12px/1 "Segoe UI", system-ui, sans-serif; color: #b9bcc4;
}
#chrome .home { color: #b9bcc4; text-decoration: none; font-size: 16px; }
#chrome .tab {
  align-self: flex-end; height: 31px; padding: 9px 16px; max-width: 240px;
  background: #36383e; border-radius: 8px 8px 0 0; color: #e6e7ea;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#chrome .url { flex: 1; height: 26px; margin: 0; padding: 0 14px; border-radius: 13px; background: #1b1c1f; display: flex; }
#chrome .url input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #e6e7ea; font: 12px/1 "Segoe UI", system-ui, sans-serif; }
#chrome .url input::placeholder { color: #6d717b; }

/* the extension icon: the only way in, and the way back out */
#ctrl0-icon {
  position: relative; width: 30px; height: 26px; padding: 0; cursor: pointer;
  border: 1px solid #55585f; border-radius: 4px; background: #0a0a0c; color: #ffe500;
  font: 700 11px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: -.5px;
}
#ctrl0-icon::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px;
  background: #ffe500; animation: signal 1.2s steps(2) infinite;
}
#ctrl0-icon.on { background: #ffe500; color: #0a0a0c; border-color: #ffe500; }
#ctrl0-icon.on::after { display: none; }
#ctrl0-icon.shut { opacity: .4; cursor: not-allowed; }
#ctrl0-hint {
  position: absolute; top: 46px; right: 10px; z-index: 5; padding: 8px 10px;
  background: #0a0a0c; color: #ffe500; border: 1px solid #ffe500;
  font: 12px/1.4 "Cascadia Mono", Consolas, monospace; pointer-events: none;
}
#ctrl0-hint::before { content: "▲"; position: absolute; top: -13px; right: 9px; font-size: 10px; }
.ctrl0-armed ~ #ctrl0-hint { display: none; }
@keyframes signal { 50% { opacity: 0; } }

#viewport { position: relative; height: calc(100% - 40px); overflow: hidden; background: #08080a; }
#page { position: absolute; inset: 0; overflow: hidden; transition: bottom .3s cubic-bezier(.7, 0, .2, 1); }

/* the music switch */
#ctrl0-music {
  height: 26px; padding: 0 9px; cursor: pointer; white-space: nowrap;
  border: 1px solid #55585f; border-radius: 4px; background: #0a0a0c; color: #ffe500;
  font: 11px/1 "Cascadia Mono", Consolas, monospace;
}
#ctrl0-music.off { color: #7d818b; }
