
/* ========================================
   CHAT V2 — MINIMAL DARK THEME
   Blue / Purple Accent
   ======================================== */

:root {
    color-scheme: dark;

    --border-color: #c4c9dc;
    --active-color: #a5a0ff;
    --unread-color: #f5c879;

    --modal-backgound: rgba(13, 15, 25, 0.94);

    --button-background: #7774e8;
    --input-background: #1b1e2b;

    --font-familiy: Inter, "Segoe UI", Arial, sans-serif;

    --bg-main: #11131b;
    --bg-panel: #171a24;
    --bg-hover: #222637;
    --bg-input: #1b1e2b;
    --border-subtle: #292d3d;
    --text-main: #e7e9f3;
    --text-muted: #858ba3;
    --accent: #9185ff;
    --accent-hover: #a49aff;
}

/* Reset */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;

    color: var(--text-main);
    background: var(--bg-main);

    font-family: var(--font-familiy);
    font-size: 14px;
    line-height: 1.5;
}

*:focus {
    outline: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    color: var(--text-main);
    background: var(--button-background);
    appearance: none;
    transition:
        background-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

button:hover {
    opacity: 1;
    background: var(--accent-hover);
}

button:active {
    transform: scale(0.98);
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input,
input[type="text"] {
    min-width: 0;
    padding: 9px 11px;

    color: var(--text-main);
    background: var(--input-background);

    border: 1px solid var(--border-subtle);
    border-radius: 7px;

    font-family: var(--font-familiy);
    font-size: 14px;
}

input:focus,
input[type="text"]:focus {
    border-color: var(--accent);
}

::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

/* Top toolbar */

.top {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 12px;

    background: var(--bg-panel);
    border: none;
    border-bottom: 1px solid var(--border-subtle);
}

.menu_button {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    margin: 0;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
}

.menu_button:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
}

.menu_button svg {
    width: 19px;
    height: 19px;
}

.menu_button svg path,
.menu_button svg circle,
.menu_button svg polygon {
    fill: var(--text-muted);
}

.menu_button:hover svg path,
.menu_button:hover svg circle,
.menu_button:hover svg polygon {
    fill: var(--accent);
}

/* Main three-column layout */

.container {
    height: calc(100% - 108px);
    min-height: 0;

    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr)
        minmax(150px, 210px);

    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "left center right";

    gap: 0;
    overflow: hidden;
}

.left,
.right,
.center {
    min-width: 0;
    min-height: 0;
}

/* Room sidebar */

.left {
    grid-area: left;
    overflow-y: auto;
    padding: 12px 8px;

    background: var(--bg-panel);
    border-right: 1px solid var(--border-subtle);
}

/* User sidebar */

.right {
    grid-area: right;
    overflow-y: auto;
    padding: 12px 8px;

    background: var(--bg-panel);
    border-left: 1px solid var(--border-subtle);
}

/* Scrollbars */

.left,
.right,
.messages {
    scrollbar-width: thin;
    scrollbar-color: #373b50 transparent;
}

.left::-webkit-scrollbar,
.right::-webkit-scrollbar,
.messages::-webkit-scrollbar {
    width: 6px;
}

.left::-webkit-scrollbar-thumb,
.right::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb {
    background: #373b50;
    border-radius: 8px;
}

/* Room and user items */

.user_item,
.room_item {
    cursor: pointer;
    min-width: 0;
    margin-bottom: 3px;
    padding: 7px 9px;

    border-radius: 6px;
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.5;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.room_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    font-size: 13px;
}

.room_item .name {
    float: none !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room_item .close {
    float: none !important;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    opacity: 0.55;
}

.room_item .close:hover {
    opacity: 1;
}

.room_item .close svg {
    width: 16px;
    height: 16px;
}

.room_item:hover,
.user_item:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

.room_item .name[style*="4, 221, 250"],
.room_item .name[style*="165, 160, 255"] {
    color: var(--active-color) !important;
}

/* Chat center */

.center {
    grid-area: center;
    overflow: hidden;
    position: relative;

    background: var(--bg-main);
    border: none;
}

.messages {
    height: 100%;
    overflow-y: auto;
    padding: 18px 20px 22px;

    overflow-wrap: anywhere;
    word-break: normal;

    font-size: 14px;
    line-height: 1.8;
}

/* Individual messages */

.message_item {
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.message_item .time {
    color: var(--text-muted);
    font-size: 11px;
    opacity: 0.8;
}

.message_item .nick {
    margin-left: 5px;
    color: var(--accent);
    font-weight: 600;
}

.message_item .message {
    margin-left: 7px !important;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

/* Message input footer */

.bottom {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 14px;

    background: var(--bg-panel);
    border: none;
    border-top: 1px solid var(--border-subtle);
}

.send_area {
    float: none;
    flex: 1;
    width: 0;
    height: 40px;

    padding: 0 13px !important;

    border: 1px solid var(--border-subtle) !important;
    border-radius: 8px;

    background: var(--bg-input);
    color: var(--text-main);

    font-size: 14px;
}

.send_area:focus {
    border-color: var(--accent) !important;
}

.send_button {
    float: none;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;
    border-radius: 8px;

    background: var(--button-background);
}

.send_button:hover {
    background: var(--accent-hover);
}

.send_button svg {
    width: 18px;
    height: 18px;
}

/* Modal overlay */

.modal {
    display: none;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.modal_background {
    position: fixed;
    inset: 0;
    z-index: 1;

    background: rgba(5, 6, 12, 0.76);
    backdrop-filter: blur(3px);
}

.modal_content {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2;

    width: min(360px, calc(100vw - 32px));
    margin: 0 !important;
    padding: 22px;

    transform: translate(-50%, -50%);

    color: var(--text-main);
    background: #1a1d2a;

    border: 1px solid #30344a;
    border-radius: 12px;

    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.modal_content input {
    display: block;
    width: 100%;
    margin: 8px 0 12px;
}

.modal_content button {
    padding: 9px 14px;

    color: white;
    background: var(--button-background);

    border: none;
    border-radius: 7px;
}

/* Responsive layout */

@media (max-width: 760px) {
    .container {
        grid-template-columns: minmax(85px, 0.7fr) minmax(0, 3fr)
            minmax(100px, 1fr);
    }

    .left,
    .right {
        padding: 8px 5px;
    }

    .messages {
        padding: 12px 10px;
        font-size: 13px;
    }

    .room_item,
    .user_item {
        padding: 6px;
        font-size: 12px;
    }

    .bottom {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 76px minmax(0, 1fr) 95px;
    }

    .messages {
        padding: 10px 7px;
    }

    .message_item .time {
        font-size: 10px;
    }

    .message_item .nick {
        margin-left: 2px;
    }

    .message_item .message {
        margin-left: 3px !important;
    }

    .modal_content {
        padding: 18px;
    }
}

/* SolarEraser Chat — Owner/Admin Glow */

.nick.chat-glow,
.name.chat-glow {
  color: var(--glow-color, #ffffff) !important;

  text-shadow:
    0 0 3px var(--glow-color, #ffffff),
    0 0 7px var(--glow-color, #ffffff),
    0 0 14px var(--glow-color, #ffffff),
    0 0 24px var(--glow-color, #ffffff);

  font-weight: 700;
}

/* STEP 123A — Mobile chat layout improvements */

@media (max-width: 760px) {
  .messages {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 8px;
  }

  .message_item {
    padding: 2px 0;
  }

  .message_item .time {
    font-size: 9px;
  }

  .message_item .nick {
    font-size: 12px;
  }

  .message_item .message {
    font-size: 12px;
  }

  .right {
    padding: 8px 4px;
  }

  .right .user_item {
    padding: 4px 2px !important;
    font-size: 11px;
  }

  .right .name {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .right select {
    width: 100%;
    font-size: 11px;
    padding: 6px 2px !important;
  }
}

/* STEP 126B — Invisible username hover backgrounds */

.right .user_item:hover {
    background: transparent !important;
    border-color: transparent !important;
}

/* STEP 126C — Prevent username glow clipping */

.right .name.chat-glow {
    overflow: visible !important;
    text-overflow: clip !important;
}

/* STEP 126D — Clean, borderless chat messages */

.message_item {
    border: none !important;
    box-shadow: none !important;
}

.message_item:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ------------------------------------------
   SIMPLE EMUCHAT-STYLE HOVER CARDS
------------------------------------------ */

.chat-hover-card {
  position: fixed;
  z-index: 99999;

  background: #302330;
  border: 1px solid #765079;
  border-radius: 2px;

  color: #f0b5ed;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;

  padding: 6px 8px;
  width: max-content;
  max-width: min(350px, calc(100vw - 12px));

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);

  pointer-events: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chat-hover-card[hidden] {
  display: none !important;
}

/* Keep nickname hover targets easy to identify */
.messages .nick[data-account-id],
.right .name[data-account-id] {
  cursor: pointer;
}

/* Step 129B — EmuChat-style /help */

.chat-help-line {
  padding: 1px 4px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #ff9cdb;
}

.chat-help-time {
  color: #8da5ff;
  margin-right: 5px;
}

.chat-help-heading {
  color: #ff75d1;
  font-weight: 700;
  margin-right: 5px;
  text-shadow:
    0 0 4px #ff4bc4,
    0 0 9px #ff4bc4,
    0 0 15px #ff4bc4;
}

.chat-help-command {
  display: inline;
  color: #ff9cdb;
  margin-right: 5px;
  cursor: pointer;
  text-shadow: none;
}

.chat-help-command:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* ==========================================
   SOLARERASER CHAT — STAFF ELECTRIC THEMES
   ========================================== */

body.staff-owner {
  --staff-electric: #ff304f;
  --staff-electric-rgb: 255, 48, 79;
  --staff-watermark: "OWNER";
}

body.staff-admin {
  --staff-electric: #b45cff;
  --staff-electric-rgb: 180, 92, 255;
  --staff-watermark: "ADMIN";
}

body.staff-manager {
  --staff-electric: #ffe23d;
  --staff-electric-rgb: 255, 226, 61;
  --staff-watermark: "MANAGER";
}

/* Subtle staff watermark behind messages */
/* Hollow staff rank with animated electric outline */
body:is(.staff-owner, .staff-admin, .staff-manager)
.center::before {
  content: var(--staff-watermark);

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  font-family: Arial, sans-serif;
  font-size: clamp(35px, 9vw, 125px);
  font-weight: 900;
  letter-spacing: 5px;

  /* Invisible inside, glowing outline */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--staff-electric);

  opacity: 0.16;

  /* Faint electrical shimmer */
  filter: drop-shadow(0 0 3px var(--staff-electric));

  animation: staffLetterElectric 4s linear infinite;

  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Electricity flickering along the letter outlines */
@keyframes staffLetterElectric {
  0%, 100% {
    opacity: 0.10;
    filter: drop-shadow(0 0 1px var(--staff-electric));
  }

  20% {
    opacity: 0.18;
    filter: drop-shadow(0 0 5px var(--staff-electric));
  }

  22% {
    opacity: 0.08;
    filter: drop-shadow(0 0 1px var(--staff-electric));
  }

  24% {
    opacity: 0.20;
    filter: drop-shadow(0 0 7px var(--staff-electric));
  }

  60% {
    opacity: 0.13;
    filter: drop-shadow(0 0 3px var(--staff-electric));
  }

  75% {
    opacity: 0.19;
    filter: drop-shadow(0 0 6px var(--staff-electric));
  }
}

/* Disable animation for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  body:is(.staff-owner, .staff-admin, .staff-manager)
  .center::before {
    animation: none;
  }
}
/* ==========================================
   RESTORE STAFF ELECTRIC BORDER EFFECTS
   ========================================== */

/* Glowing outlines around chat and user list */
body:is(.staff-owner, .staff-admin, .staff-manager)
:is(.container, .right, .bottom) {
  border: 1px solid var(--staff-electric);

  box-shadow:
    inset 0 0 7px rgba(var(--staff-electric-rgb), 0.12),
    0 0 9px rgba(var(--staff-electric-rgb), 0.24);

  animation: staffElectricPulse 3s ease-in-out infinite;
}

/* Glowing message input */
body:is(.staff-owner, .staff-admin, .staff-manager)
.send_area {
  box-shadow:
    inset 0 0 5px rgba(var(--staff-electric-rgb), 0.15),
    0 0 8px rgba(var(--staff-electric-rgb), 0.28);
}

/* Pulsing border electricity */
@keyframes staffElectricPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 4px rgba(var(--staff-electric-rgb), 0.1),
      0 0 6px rgba(var(--staff-electric-rgb), 0.2);
  }

  50% {
    box-shadow:
      inset 0 0 10px rgba(var(--staff-electric-rgb), 0.22),
      0 0 16px rgba(var(--staff-electric-rgb), 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.staff-owner, .staff-admin, .staff-manager)
  :is(.container, .right, .bottom) {
    animation: none;
  }
}
/* ==========================================
   STEP 136AS — TRAVELING ELECTRIC LETTERS
   ========================================== */

/* Keep the existing hollow staff lettering */
body:is(.staff-owner, .staff-admin, .staff-manager)
.center::before {
  /* Animated electric highlight */
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    var(--staff-electric) 47%,
    #ffffff 50%,
    var(--staff-electric) 53%,
    transparent 62%,
    transparent 100%
  );

  background-size: 350% 100%;
  background-position: 100% 50%;

  /* Clip the moving highlight to the lettering */
  -webkit-background-clip: text;
  background-clip: text;

  /* Preserve hollow letter interiors */
  color: transparent;
  -webkit-text-fill-color: transparent;

  animation:
    staffLetterElectric 4s linear infinite,
    staffElectricTravel 7s linear infinite;
}

/* Electric light sweeps across the letters */
@keyframes staffElectricTravel {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: -100% 50%;
  }
}

/* Keep animations off for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  body:is(.staff-owner, .staff-admin, .staff-manager)
  .center::before {
    animation: none;
  }
}

/* ==========================================
   STEP 136AT — MOVING ELECTRIC BORDER SPARKS
   ========================================== */

/* Give the staff panels a layer for electricity */
body:is(.staff-owner, .staff-admin, .staff-manager)
:is(.container, .right, .bottom) {
  position: relative;
  isolation: isolate;
}

/* Animated electric sparks around the edges */
body:is(.staff-owner, .staff-admin, .staff-manager)
:is(.container, .right, .bottom)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;

  background: conic-gradient(
    from var(--staff-spark-angle),
    transparent 0deg,
    transparent 280deg,
    var(--staff-electric) 320deg,
    #ffffff 338deg,
    var(--staff-electric) 350deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;

  pointer-events: none;
  z-index: 2;

  filter: drop-shadow(0 0 5px var(--staff-electric));

  animation: staffSparkTravel 5s linear infinite;
}

/* Register the angle so it animates smoothly */
@property --staff-spark-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Rotate the bright electric segment */
@keyframes staffSparkTravel {
  from {
    --staff-spark-angle: 0deg;
  }

  to {
    --staff-spark-angle: 360deg;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  body:is(.staff-owner, .staff-admin, .staff-manager)
  :is(.container, .right, .bottom)::after {
    animation: none;
  }
}

/* ==========================================
   STEP 136BN — REMEMBRANCE GREEN ELECTRIC THEME
   ========================================== */

body.room-remembrance {
  --remembrance-electric: #39ff88;
  --remembrance-electric-rgb: 57, 255, 136;
}

/* Green electric borders */
body.room-remembrance
:is(.container, .right, .bottom) {
  border-color: var(--remembrance-electric);

  box-shadow:
    inset 0 0 8px rgba(57, 255, 136, 0.15),
    0 0 12px rgba(57, 255, 136, 0.35);

  animation: remembrancePulse 3s ease-in-out infinite;
}

/* Green glow around message input */
body.room-remembrance .send_area {
  box-shadow:
    inset 0 0 6px rgba(57, 255, 136, 0.15),
    0 0 10px rgba(57, 255, 136, 0.3);
}

@keyframes remembrancePulse {
  0%, 100% {
    box-shadow:
      inset 0 0 5px rgba(57, 255, 136, 0.12),
      0 0 8px rgba(57, 255, 136, 0.25);
  }

  50% {
    box-shadow:
      inset 0 0 12px rgba(57, 255, 136, 0.25),
      0 0 20px rgba(57, 255, 136, 0.55);
  }
}

/* Keep green theme for staff, overriding their usual
   red/purple/yellow borders inside remembrance */
body.room-remembrance:is(
  .staff-owner,
  .staff-admin,
  .staff-manager
) {
  --staff-electric: #39ff88;
  --staff-electric-rgb: 57, 255, 136;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.room-remembrance
  :is(.container, .right, .bottom) {
    animation: none;
  }
}

/* ==========================================
   STEP 136BO — REMEMBRANCE RGB USERNAMES
   ========================================== */

/* Rainbow glow for every user in remembrance */
body.room-remembrance .right .name {
  color: #ffffff !important;

  background: linear-gradient(
    90deg,
    #ff3355,
    #ffcc00,
    #39ff88,
    #00ccff,
    #b45cff,
    #ff3355
  );

  background-size: 300% 100%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: remembranceRainbow 5s linear infinite;

  /* Soft green glow — keeps usernames readable */
filter:
  drop-shadow(0 0 1px rgba(57, 255, 136, 0.35));
}

/* Move rainbow colors across usernames */
@keyframes remembranceRainbow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  body.room-remembrance .right .name {
    animation: none;
  }
}

/* STEP 136BR — EmuChat-style remembrance glow */

body.room-remembrance .right .name.chat-glow,
body.room-remembrance .messages .nick.chat-glow {
  text-shadow: none !important;

  filter:
    drop-shadow(0 0 1.5px #1eff00)
    drop-shadow(0 0 1.5px #1eff00) !important;

  animation: none !important;
}

/* ==========================================
   STEP 136BS — SOFT RGB GLOW
   ========================================== */

/* Override the old green glow */
body.room-remembrance .right .name,
body.room-remembrance .right .name.chat-glow,
body.room-remembrance .messages .nick,
body.room-remembrance .messages .nick.chat-glow {
  text-shadow: none !important;

  /* RGB colors move across the letters */
  background: linear-gradient(
    124deg,
    #ff2400, #ff4a00, #e8b71d,
    #e3e81d, #a8e81d, #1de840,
    #1de880, #1ddde8, #1d8fe8,
    #2b1de8, #801de8, #dd00f3,
    #ff24f3
  );

  background-size: 300% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;

  /* EmuChat-style faint white glow */
filter:
  drop-shadow(0 0 1px rgba(255, 255, 255, 0.65))
  drop-shadow(0 0 2px rgba(255, 255, 255, 0.18)) !important;

  animation: remembranceRGB 6.5s linear infinite alternate !important;
}

/* Cycle the full rainbow gradient across usernames */

/* STEP 136CE — Seamless RGB color cycling */
@keyframes remembranceRGB {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}


@media (prefers-reduced-motion: reduce) {
  body.room-remembrance .right .name {
    animation: none !important;
  }
}

/* ==========================================
   STEP 136CH — REMEMBRANCE MESSAGE GLOW
   ========================================== */

body.room-remembrance .messages .message_item .message {
  text-shadow:
    0 0 2px var(--remembrance-message-color, #ffffff),
    0 0 5px var(--remembrance-message-color, #ffffff);
}

/* ==========================================
   STEP 136CK — REMEMBRANCE PARTICLES
   ========================================== */

/* Floating particles behind the chat messages */
body.room-remembrance .messages {
  position: relative;
  isolation: isolate;
}

/* Two layers of floating electric particles */
body.room-remembrance .messages::before,
body.room-remembrance .messages::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image:
    radial-gradient(circle, #39ff88 1.5px, transparent 3px),
    radial-gradient(circle, #9affc2 1px, transparent 2.5px),
    radial-gradient(circle, #00ff66 1px, transparent 2px);

  background-size:
    145px 190px,
    210px 250px,
    275px 320px;

  background-position:
    15px 25px,
    85px 120px,
    140px 70px;

  background-repeat: repeat;

  opacity: 0.35;

  filter: drop-shadow(0 0 4px #39ff88);

  animation: remembranceParticles 18s linear infinite;
}

/* Second layer moves at a different speed */
body.room-remembrance .messages::after {
  opacity: 0.2;
  transform: scale(1.05);
  animation-duration: 29s;
  animation-direction: reverse;
}

/* Smooth upward particle movement */
@keyframes remembranceParticles {
  from {
    background-position:
      15px 25px,
      85px 120px,
      140px 70px;
  }

  to {
    background-position:
      15px -735px,
      85px -880px,
      140px -1210px;
  }
}

/* Accessibility: disable motion when requested */
@media (prefers-reduced-motion: reduce) {
  body.room-remembrance .messages::before,
  body.room-remembrance .messages::after {
    animation: none;
  }
}
