/* Presentation chrome shared by all five concept pages (not part of any game HUD). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #050607; }
body { font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #eee; -webkit-font-smoothing: antialiased; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; contain: strict; }
#scene { position: absolute; left: 0; top: 0; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#boot-msg { position: fixed; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #777; }

/* capture mode: nothing but the game frame */
html.capture, html.capture * { cursor: none !important; }
html.capture .chrome, html.capture .mode-tag, html.capture .ch-help, html.capture #boot-msg { display: none !important; }
html.capture *, html.capture *::before, html.capture *::after { transition: none !important; animation: none !important; }

/* embed mode (gallery previews): the looping demo only */
html.embed #boot-msg { display: none; }
html.embed, html.embed * { cursor: pointer; }

/* chrome bar */
.chrome {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px;
  background: rgba(12, 13, 15, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color: #d9dadc; z-index: 20; white-space: nowrap; user-select: none;
  transition: opacity .35s ease, transform .35s ease;
}
body.idle .chrome, body.chrome-off .chrome { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
body.idle, body.idle * { cursor: none; }
body.is-play #viewport { cursor: crosshair; }
body.chrome-away .chrome { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
body.chrome-away .mode-tag { opacity: .45; }
.chrome a { color: inherit; text-decoration: none; }
.ch-home { font-weight: 700; letter-spacing: .22em; font-size: 10px; opacity: .7; }
.ch-home:hover { opacity: 1; }
.ch-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .12); }
.ch-nav { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 18px; line-height: 1; opacity: .75; }
.ch-nav:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.ch-id { display: flex; align-items: baseline; gap: 8px; min-width: 250px; }
.ch-num { font: 600 10px/1 ui-monospace, Menlo, monospace; opacity: .5; }
.ch-name { font-weight: 700; letter-spacing: .08em; font-size: 12px; color: #fff; }
.ch-line { opacity: .55; font-size: 11px; }
.ch-mode { display: flex; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 2px; }
.ch-mode button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; opacity: .6; }
.ch-mode button[aria-checked="true"] { background: rgba(255, 255, 255, .92); color: #111; opacity: 1; }
.ch-btn { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: 13px; opacity: .85; }
.ch-btn:hover { background: rgba(255, 255, 255, .09); opacity: 1; }
.ch-play { font-size: 10px; letter-spacing: -1px; }
.ch-scrub { width: 190px; height: 28px; display: flex; align-items: center; }
.ch-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); cursor: pointer; }
.ch-track::before { content: ""; position: absolute; inset: -12px 0; }
.ch-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chrome-accent, #fff); border-radius: 2px; }
.ch-marks { position: absolute; inset: 0; pointer-events: none; }
.ch-mark { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255, 255, 255, .55); border-radius: 1px; }
.chrome.is-drive .ch-scrub, .chrome.is-drive .ch-marks { opacity: .25; }
.ch-time { font: 500 11px/1 ui-monospace, Menlo, monospace; width: 82px; opacity: .75; }
.ch-help-btn { font-weight: 700; font-size: 12px; }

.mode-tag {
  position: fixed; left: 50%; top: 0; transform: translateX(-50%);
  padding: 4px 10px 5px; border-radius: 0 0 7px 7px; background: rgba(0, 0, 0, .55);
  font: 600 9px/1 -apple-system, "Helvetica Neue", sans-serif; letter-spacing: .18em; color: rgba(255, 255, 255, .72);
  z-index: 19; pointer-events: none; transition: opacity .4s;
}
body.chrome-off .mode-tag { opacity: 0; }

.ch-help { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, .55); z-index: 30; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ch-help.on { display: grid; }
.ch-help-in { width: min(520px, 90vw); padding: 26px 28px; background: #121315; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: #ddd; font-size: 13px; line-height: 1.5; }
.ch-help h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .06em; color: #fff; }
.ch-help h3 span { font-weight: 400; opacity: .5; letter-spacing: 0; }
.ch-help-mode { margin: 0 0 16px; opacity: .8; }
.ch-help dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; }
.ch-help dt { font: 600 11px/1.9 ui-monospace, Menlo, monospace; color: #fff; }
.ch-help dd { margin: 0; opacity: .75; }
.ch-help-foot { margin: 18px 0 0; opacity: .4; font-size: 11px; }

/* the online city: back to the main menu and the controls only */
.chrome.is-online .ch-id, .chrome.is-online .ch-mode, .chrome.is-online .ch-play, .chrome.is-online .ch-replay,
.chrome.is-online .ch-scrub, .chrome.is-online .ch-time, .chrome.is-online .ch-sep ~ .ch-sep { display: none; }
.chrome.is-online .ch-home { opacity: .85; }

@media (max-width: 1100px) { .ch-line { display: none; } .ch-id { min-width: 0; } .ch-scrub { width: 120px; } }
