:root {
	--bg: #0b1015;
	--fg: #d9dee5;
	--dim: #6b7480;
	--accent: #4794e0;
	--mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--mono); overflow: hidden; }
body.idle { cursor: none; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.pill {
	position: fixed; top: 24px; right: 24px;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 18px;
	background: rgba(11, 16, 21, 0.85);
	border: 1px solid rgba(217, 222, 229, 0.08);
	font-size: 15px; letter-spacing: 0.02em;
	backdrop-filter: blur(6px);
}
.pill .note { color: var(--accent); }
[hidden] { display: none !important; }

#brand {
	position: fixed; left: 28px; bottom: 24px;
	display: flex; flex-direction: column; gap: 14px;
	pointer-events: none;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: 0.04em; }
.wordmark img { width: 22px; height: 18px; opacity: 0.9; }
.wordmark em { font-style: normal; color: var(--accent); }
#ticker { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--dim); min-height: 3.6em; }
#ticker li { line-height: 1.5; white-space: nowrap; }
#ticker li:last-child { color: var(--fg); }
#ticker li::before { content: "› "; color: var(--accent); }
#ticker li:last-child::after { content: "▌"; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

#controls {
	position: fixed; right: 24px; bottom: 24px;
	display: flex; align-items: center; gap: 10px;
	opacity: 0; transition: opacity 0.4s;
	font-size: 12px; color: var(--dim);
}
body:not(.idle) #controls { opacity: 1; }
#controls button {
	background: transparent; color: var(--fg); border: 1px solid rgba(217, 222, 229, 0.15);
	font: inherit; padding: 6px 12px; cursor: pointer;
}
#controls button:hover { border-color: var(--accent); color: var(--accent); }
#controls input[type="range"] { width: 90px; accent-color: var(--accent); }
#clock { margin-left: 8px; min-width: 5ch; text-align: right; }

#gate {
	position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: rgba(11, 16, 21, 0.72); cursor: pointer; text-align: center;
	animation: fade 1.2s ease-out;
}
#gate img { width: 56px; opacity: 0.95; }
#gate p { margin: 0; font-size: 20px; letter-spacing: 0.08em; }
#gate small { color: var(--dim); font-size: 12px; }
@keyframes fade { from { opacity: 0; } }
