:root {
  --bg: #04050a;
  --ink: #f2e8d6;
  --muted: rgba(242, 232, 214, 0.5);
  --faint: rgba(242, 232, 214, 0.28);
  --amber: #ffbe6b;
  --glass: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.11);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 36px;
  pointer-events: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(242, 232, 214, 0.78);
}

.status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.bottom {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
}

.ask {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s;
}

.ask:focus-within { border-color: rgba(255, 190, 107, 0.45); }

.ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 16px var(--sans);
  padding: 10px 6px;
}

.ask input::placeholder { color: var(--faint); }

.ask button {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, opacity 0.25s;
}

.ask button:active { transform: scale(0.94); }

.ask svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.mic:hover { background: rgba(255, 255, 255, 0.13); }
.mic.on { background: #c8462e; color: #fff; animation: pulse 1.4s ease-in-out infinite; }
.mic[hidden] { display: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(200, 70, 46, 0.18); } }

.send { background: var(--amber); color: #1a1006; }
.send:hover { background: #ffd08f; }
.send:disabled { opacity: 0.35; cursor: default; }

.note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--faint);
}

@media (max-width: 640px) {
  .top { padding: 18px 16px; }
  .brand-name { font-size: 17px; }
  .status { font-size: 11px; }
  .bottom { bottom: 14px; }
}
