:root {
  --left: max(18px, env(safe-area-inset-left));
  --right: max(18px, env(safe-area-inset-right));
  --top: max(16px, env(safe-area-inset-top));
  --bottom: max(16px, env(safe-area-inset-bottom));
  --ink: #fffaf3;
  --frost: rgb(16 21 22 / .84);
  --edge: rgb(255 246 229 / .22);
  --camera-width: 154px;
  --ui: system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.overlay, #messages li, #chat-error:not(:empty) {
  color: var(--ink);
  background: var(--frost);
  border: 1px solid var(--edge);
  box-shadow: 0 2px 9px rgb(0 0 0 / .16);
}
.live-header {
  position: fixed;
  inset: var(--top) var(--right) auto var(--left);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  color: var(--ink);
  font: 600 14px/1 var(--ui);
}
.live-id, .social, #camera-next, #chat-form { border-radius: 999px; }
.live-id, .social { display: flex; align-items: center; min-height: 44px; pointer-events: auto; }
.live-header a { color: inherit; text-decoration: none; display: grid; align-items: center; min-height: 42px; border-radius: inherit; }
.live-header a:focus-visible, #camera-next:focus-visible, #chat-form :focus-visible { outline: 2px solid #ffd399; outline-offset: -3px; }
.live-header a:hover, #camera-next:hover, #send:hover:enabled { background: rgb(255 255 255 / .12); }
.live-id { padding: 0 13px 0 2px; gap: 8px; white-space: nowrap; }
.brand { padding-inline: 10px 0; font-size: 16px; font-weight: 750; letter-spacing: -.04em; }
.divider { color: #a8aba3; font-size: 15px; font-weight: 400; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 6px; height: 6px; background: #ff956d; border-radius: 50%; }
.local-time { display: inline-flex; gap: 5px; align-items: baseline; margin-left: 3px; }
#clock { font: 600 13px/1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.local-time abbr { color: #d1d5cd; font: 600 9px/1 var(--ui); letter-spacing: .05em; text-decoration: none; }
.social { padding-inline: 4px; }
.social a { justify-content: center; min-width: 38px; padding: 0 9px; }
#camera-next {
  position: fixed; right: var(--right); bottom: var(--bottom); z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; width: var(--camera-width); padding: 0 11px; cursor: pointer;
  font: 650 13px/1.2 var(--ui);
}
.camera-icon { width: 18px; height: 13px; border: 1.7px solid currentColor; border-radius: 3px; position: relative; flex: none; }
.camera-icon::before { content: ""; position: absolute; width: 6px; height: 3px; top: -4px; left: 3px; background: currentColor; border-radius: 2px 2px 0 0; }
.camera-icon::after { content: ""; position: absolute; width: 5px; height: 5px; top: 2px; left: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
#chat-panel {
  position: fixed; z-index: 5; left: var(--left); top: calc(var(--top) + 44px + 7px); bottom: var(--bottom);
  width: min(343px, calc(100% - var(--left) - var(--right) - var(--camera-width) - 10px));
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 7px;
  pointer-events: none; color: var(--ink); font: 14px/1.4 var(--ui);
}
#messages { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; padding: 0; list-style: none; width: 100%; min-height: 0; overflow: hidden auto; overscroll-behavior-y: contain; overflow-anchor: none; scrollbar-width: thin; pointer-events: auto; }
#messages:empty { display: none; }
#messages li {
  flex: none; max-width: 100%; min-height: 1.6em; padding: 6px 12px; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere;
  white-space: pre-wrap; animation: float-in .21s ease-out both;
}
#chat-form, #chat-error { flex: none; }
#messages:focus-visible { outline: 2px solid #ffd399; outline-offset: -2px; }
@keyframes float-in { from { transform: translateY(5px); } to { transform: translateY(0); } }
#chat-form { width: 100%; display: flex; align-items: center; gap: 3px; padding: 2px; pointer-events: auto; }
#message {
  flex: 1; width: 0; min-width: 0; min-height: 38px; padding: 0 5px 0 13px; color: var(--ink);
  font: 400 14px/1.3 var(--ui); background: transparent; border: 0; border-radius: 999px;
}
#message::placeholder { color: #dadeD7; opacity: 1; }
#send { min-height: 38px; padding: 0 13px; border: 0; border-radius: 999px; color: #ffcf9f; background: transparent; cursor: pointer; font: 650 13px/1 var(--ui); }
#send:disabled { opacity: .62; cursor: default; }
#chat-error:empty { display: none; }
#chat-error:not(:empty) { order: -1; border-radius: 10px; padding: 5px 10px; font-size: 12px; }
@media (max-width: 600px) {
  :root { --left: max(10px, env(safe-area-inset-left)); --right: max(10px, env(safe-area-inset-right)); --top: max(10px, env(safe-area-inset-top)); --bottom: max(10px, env(safe-area-inset-bottom)); --camera-width: 46px; }
  .live-header { font-size: 13px; }
  .live-id { gap: 5px; padding-right: 9px; }
  .brand { font-size: 15px; padding-left: 8px; }
  .local-time { margin-left: 1px; }
  .live { gap: 4px; }
  #clock { font-size: 12px; }
  .social { padding-inline: 2px; }
  .social a { min-width: 30px; padding: 0 6px; }
  .camera-label { display: none; }
  #message { font-size: 16px; }
}
@media (max-width: 369px) { .local-time abbr { display: none; } }
@media (prefers-reduced-motion: reduce) { #messages li { animation: none; transition: none; } }
