@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #05060d;
  --panel: rgba(14, 17, 32, .72);
  --panel-solid: #0e1120;
  --line: rgba(190, 205, 255, .16);
  --line-strong: rgba(190, 205, 255, .32);
  --text: #eef1fb;
  --muted: #98a1bd;
  --saturn: #e8c48a;
  --saturn-soft: rgba(232, 196, 138, .13);
  --saturn-line: rgba(232, 196, 138, .42);
  --moon: #bcd0ff;
  --moon-soft: rgba(188, 208, 255, .11);
  --moon-line: rgba(188, 208, 255, .36);
  --online: #7df0c8;
  --danger: #ff9d9d;
  --radius: 18px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(60vmax 45vmax at 88% 108%, rgba(186, 128, 66, .2), transparent 70%),
    radial-gradient(55vmax 40vmax at 6% -6%, rgba(82, 112, 214, .2), transparent 70%),
    var(--void);
  color: var(--text);
  font: 400 16px/1.45 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }

.svg-defs { position: absolute; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.wordmark {
  margin: 0;
  font: 400 1.5rem/1.2 "Michroma", "Space Grotesk", sans-serif;
  letter-spacing: .24em;
  margin-right: -.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  text-shadow: 0 0 24px rgba(188, 208, 255, .5);
}

.wordmark-small { font-size: .78rem; color: var(--muted); text-shadow: none; }

/* Login */

.login {
  position: relative;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}

.scene {
  --orbit-x: min(42vw, 290px);
  position: relative;
  flex: none;
  width: min(92vw, 540px);
  height: clamp(190px, 38dvh, 340px);
  display: grid;
  place-items: center;
  margin-bottom: -22px;
}

.scene-saturn {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 42px rgba(232, 196, 138, .28));
  animation: saturn-drift 16s ease-in-out infinite alternate;
}

/* Dois movimentos defasados formam a elipse da orbita. */
.moon-x {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  animation: moon-x 20s ease-in-out infinite alternate, moon-depth 40s step-end infinite;
}

.moon-y { animation: moon-y 20s ease-in-out -10s infinite alternate; }

.scene-moon {
  display: block;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  filter: drop-shadow(0 0 14px rgba(188, 208, 255, .55));
}

@keyframes saturn-drift { to { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes moon-x { from { transform: translateX(calc(var(--orbit-x) * -1)); } to { transform: translateX(var(--orbit-x)); } }
@keyframes moon-y { from { transform: translateY(-46px) scale(.62); } to { transform: translateY(46px) scale(1.12); } }
@keyframes moon-depth { 0% { z-index: 2; } 50% { z-index: 0; } }

.login-card {
  position: relative;
  z-index: 3;
  flex: none;
  width: min(100%, 380px);
  display: grid;
  gap: 16px;
  padding: 26px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.field { display: grid; gap: 6px; }

.field span { color: var(--muted); font-size: .85rem; }

.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: rgba(5, 6, 13, .7);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field input:focus { border-color: var(--moon-line); outline: none; box-shadow: 0 0 0 3px rgba(188, 208, 255, .14); }

.form-error { margin: 0; color: var(--danger); font-size: .9rem; }

.primary {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #f4dcb2, #e8c48a 55%, #bcd0ff);
  color: #11131f;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(232, 196, 138, .22);
  transition: filter .15s;
}

.primary:hover { filter: brightness(1.08); }
.primary:disabled { filter: saturate(.3) brightness(.7); cursor: progress; }

/* Chat */

.chat {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.backdrop-saturn, .backdrop-moon { position: absolute; pointer-events: none; }

.backdrop-saturn {
  width: min(95vw, 880px);
  height: min(62vw, 572px);
  right: max(-24vw, -220px);
  bottom: 40px;
  opacity: .17;
}

.backdrop-moon { width: 120px; height: 120px; left: 7%; top: 92px; opacity: .17; }

.topbar {
  position: relative;
  z-index: 2;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(8, 10, 20, .72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.peer { display: flex; align-items: center; gap: 10px; min-width: 0; }

.peer-text { display: grid; min-width: 0; line-height: 1.2; }

.peer-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.status { color: var(--muted); font-size: .8rem; }
.status.is-online { color: var(--online); }
.status.is-typing { color: var(--saturn); }

.avatar {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 6, 13, .6);
  transition: border-color .3s, box-shadow .3s;
}

.avatar svg { width: 34px; height: 34px; overflow: visible; }

.avatar.is-online { border-color: var(--online); box-shadow: 0 0 14px rgba(125, 240, 200, .35); }

.ghost {
  justify-self: end;
  min-height: 38px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}

.ghost:hover { color: var(--text); border-color: var(--line-strong); }

.topbar-actions { display: flex; justify-content: flex-end; gap: 8px; }

.ghost-icon { display: grid; place-items: center; width: 38px; padding: 0; }
.ghost-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Letreiro de musica */

.marquee {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
  background: linear-gradient(90deg, rgba(232, 196, 138, .12), rgba(188, 208, 255, .1));
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}

.marquee-label { flex: none; color: var(--saturn); font-size: 1rem; animation: note-pulse 1.6s ease-in-out infinite alternate; }

.marquee-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.marquee-window:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; flex: none; }
.marquee-item { flex: none; padding-right: 64px; white-space: nowrap; color: var(--text); }
.marquee-item strong { color: var(--saturn); font-weight: 600; }
.marquee-by { margin-left: 6px; color: var(--muted); font-size: .78rem; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes note-pulse { to { opacity: .45; transform: translateY(-2px); } }

.admin-panel {
  width: min(calc(100vw - 32px), 460px);
  max-height: calc(100dvh - 32px);
  padding: 22px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}

.admin-panel::backdrop { background: rgba(3, 4, 9, .72); }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-head h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }

.admin-form { display: grid; gap: 14px; }

.admin-note { margin: 0; color: var(--muted); font-size: .92rem; }
.admin-note strong { color: var(--text); font-weight: 600; }

.admin-wide { justify-self: stretch; min-height: 46px; color: var(--text); }

.danger {
  min-height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 157, 157, .45);
  border-radius: 12px;
  color: var(--danger);
  transition: background .15s;
}

.danger:hover { background: rgba(255, 157, 157, .1); }

.show-secret { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.show-secret input { accent-color: var(--saturn); }

.admin-section { margin: 4px 0 10px; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.admin-section span { color: var(--text); text-transform: none; letter-spacing: 0; }
.admin-form .admin-section { margin: 10px 0 0; }

.admin-buttons { display: flex; gap: 10px; }
.admin-buttons > * { flex: 1; justify-self: stretch; min-height: 42px; }

.user-list { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }

.user-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--moon-soft);
  border: 1px solid var(--moon-line);
  border-radius: 14px;
}

.user-card.is-admin { background: var(--saturn-soft); border-color: var(--saturn-line); }

.user-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user-head strong { font-weight: 600; overflow-wrap: anywhere; }

.user-badge { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .72rem; }

.user-online { margin-left: auto; color: var(--muted); font-size: .78rem; }
.user-online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.user-online.is-online { color: var(--online); }
.user-online.is-online::before { background: var(--online); box-shadow: 0 0 8px var(--online); }

.user-details { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .86rem; }
.user-details dt { color: var(--muted); }
.user-details dd { margin: 0; }

.user-note { margin: 0; color: var(--muted); font-size: .8rem; }

.admin-message { margin: 12px 0 0; color: var(--online); font-size: .9rem; }
.admin-message.is-error { color: var(--danger); }

.connection {
  position: relative;
  z-index: 2;
  flex: none;
  margin: 0;
  padding: 5px 16px;
  background: rgba(232, 196, 138, .14);
  border-bottom: 1px solid var(--saturn-line);
  color: var(--saturn);
  font-size: .85rem;
  text-align: center;
}

.scroller {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 0 10px;
}

.log, .older-status, .empty {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.older-status { color: var(--muted); font-size: .8rem; text-align: center; padding-bottom: 12px; }

.empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty svg { width: 190px; height: 124px; }
.empty p { margin: 0; }

.day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .06em;
}

.day::before, .day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.row { display: flow-root; margin-top: 12px; }
.row.is-grouped { margin-top: 3px; }

.bubble {
  width: fit-content;
  max-width: min(78%, 560px);
  padding: 8px 13px 6px;
  border: 1px solid;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.row.is-mine .bubble { margin-left: auto; border-bottom-right-radius: 5px; }
.row:not(.is-mine) .bubble { border-bottom-left-radius: 5px; }

.from-saturno .bubble {
  background: linear-gradient(150deg, rgba(232, 196, 138, .2), rgba(120, 82, 42, .24)), var(--panel-solid);
  border-color: var(--saturn-line);
}

.from-lua .bubble {
  background: linear-gradient(150deg, rgba(188, 208, 255, .17), rgba(68, 88, 150, .24)), var(--panel-solid);
  border-color: var(--moon-line);
}

.bubble-text { white-space: pre-wrap; margin: 0; }
.bubble-text a { color: inherit; text-underline-offset: 2px; }

.bubble-meta { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; text-align: right; }

.row.is-pending .bubble { opacity: .62; }

/* Recados: mensagens deixadas com a outra pessoa offline. */
.bubble.is-note { border-style: dashed; }

.note-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border: 1px solid var(--saturn-line);
  border-radius: 999px;
  color: var(--saturn);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.bubble.has-media .note-tag { margin: 3px 0 6px 5px; }

.composer.is-note textarea { border-color: var(--saturn-line); border-style: dashed; }
.composer.is-note textarea::placeholder { color: var(--saturn); opacity: .85; }

.bubble.has-media { padding: 5px 5px 6px; }
.bubble.has-media .bubble-text { padding: 6px 8px 0; }
.bubble.has-media .bubble-meta { padding: 0 8px; }

.media-button { display: block; padding: 0; border: 0; background: none; border-radius: 13px; overflow: hidden; }

.media-button img, .bubble video {
  display: block;
  max-width: 100%;
  max-height: 52dvh;
  min-width: 140px;
  min-height: 100px;
  border-radius: 13px;
  background: rgba(5, 6, 13, .7);
}

.bubble video { width: 100%; }

.media-fallback { display: block; padding: 8px; color: var(--moon); }

/* Midias protegidas: sem menu de salvar no toque longo e sem arrastar a imagem. */
.is-protected, .is-protected img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* O toque longo cai no botao, que nao tem imagem para salvar. */
.media-button.is-protected img, .lightbox.is-protected img { pointer-events: none; }

.media-audio { display: grid; gap: 6px; padding: 6px 6px 2px; }
.media-audio-name { padding: 0 4px; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-audio audio { width: min(300px, 62vw); height: 40px; }

.media-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(240px, 60vw);
  padding: 10px 12px;
  background: rgba(5, 6, 13, .55);
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
}

.media-file:hover { background: rgba(5, 6, 13, .8); }
.media-file svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--moon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.media-file-text { display: grid; min-width: 0; line-height: 1.3; }
.media-file-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-file-text span { color: var(--muted); font-size: .78rem; }

/* Digitando */

.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 860px);
  margin: 12px auto 0;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.typing-bubble {
  display: flex;
  gap: 5px;
  padding: 13px 15px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  border-bottom-left-radius: 5px;
}

.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--saturn); animation: typing-dot 1.2s ease-in-out infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
.typing-text { color: var(--muted); font-size: .8rem; }

@keyframes typing-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.to-bottom {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  padding: 7px 14px;
  background: var(--panel-solid);
  border: 1px solid var(--moon-line);
  border-radius: 999px;
  color: var(--moon);
  font-size: .85rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}

.uploads { position: relative; z-index: 2; flex: none; width: min(100%, 860px); margin: 0 auto; padding: 0 16px; }

.upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .85rem;
}

.upload-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.upload-cancel { background: none; border: 0; color: var(--muted); padding: 4px; }
.upload-cancel:hover { color: var(--text); }
.upload progress { grid-column: 1 / -1; width: 100%; height: 4px; accent-color: var(--saturn); }

.composer {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  max-height: 150px;
  padding: 11px 15px;
  resize: none;
  background: rgba(14, 17, 32, .9);
  border: 1px solid var(--line);
  border-radius: 23px;
  line-height: 1.4;
}

.composer textarea:focus { border-color: var(--moon-line); outline: none; box-shadow: 0 0 0 3px rgba(188, 208, 255, .12); }
.composer textarea::placeholder { color: var(--muted); }

.icon-button, .send {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: filter .15s, border-color .15s;
}

.icon-button svg, .send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.icon-button { background: rgba(14, 17, 32, .9); border: 1px solid var(--line); color: var(--muted); }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); }

.icon-button.is-open { color: var(--saturn); border-color: var(--saturn-line); }

.attach-wrap { position: relative; flex: none; }

.attach-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: calc(100% + 10px);
  display: grid;
  grid-template-columns: repeat(4, 74px);
  gap: 6px;
  padding: 10px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .6);
}

.attach-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 2px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.attach-option:hover, .attach-option:focus-visible { background: rgba(188, 208, 255, .08); color: var(--text); }

.attach-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #11131f; }
.attach-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.attach-icon.is-image { background: linear-gradient(135deg, #f4dcb2, #e8c48a); }
.attach-icon.is-video { background: linear-gradient(135deg, #ffc1a6, #f08a6c); }
.attach-icon.is-audio { background: linear-gradient(135deg, #b9f5de, #7df0c8); }
.attach-icon.is-file { background: linear-gradient(135deg, #dbe5ff, #bcd0ff); }

.send { border: 0; background: linear-gradient(135deg, #f4dcb2, #e8c48a 55%, #bcd0ff); color: #11131f; }
.send:hover { filter: brightness(1.08); }

.chat.is-dragging .scroller { outline: 2px dashed var(--saturn-line); outline-offset: -10px; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgba(3, 4, 9, .95);
  color: var(--text);
}

.lightbox[open] { display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.lightbox img { justify-self: center; align-self: center; max-width: 100%; max-height: calc(100dvh - 90px); border-radius: 8px; }

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  background: #2a1520;
  border: 1px solid rgba(255, 157, 157, .5);
  border-radius: 12px;
  color: #ffd9d9;
  font-size: .9rem;
}

@media (max-width: 560px) {
  .wordmark-small { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .bubble { max-width: 86%; }
  .attach-menu { grid-template-columns: repeat(4, auto); gap: 2px; padding: 8px 6px; }
  .attach-option { padding: 8px 6px; font-size: .74rem; }
  .backdrop-moon { left: auto; right: 16px; width: 80px; height: 80px; }
}

@media (max-height: 560px) {
  .login { justify-content: flex-start; }
  .scene { height: 130px; margin-bottom: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-saturn, .moon-x, .moon-y, .marquee-label, .typing-bubble i { animation: none; }
  /* Sem movimento: o letreiro fica parado e corta o excesso com reticencias. */
  .marquee-track { animation: none; width: auto; }
  .marquee-group[aria-hidden] { display: none; }
  .marquee-group, .marquee-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .moon-x { transform: translateX(calc(var(--orbit-x) * .72)); z-index: 2; }
  .moon-y { transform: translateY(-58px) scale(.9); }
}
