.room-life {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.room-highlights {
  inset: 0;
  width: 100%;
  height: 100%;
}
.room-birds {
  mask: url("window-sky.png") center / 100% 100% no-repeat;
}
.bird-flight, .room-glint { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .bird-flight { animation: cross-the-glass 24s linear infinite; }
  .bird-wing {
    transform-origin: 0 0;
    animation: beat-wings .48s ease-in-out infinite alternate;
  }
  .bird-wing-far { animation-delay: -.29s; animation-duration: .43s; }

  .room-glint {
    transform-origin: 0 0;
    animation: room-twinkle 8.6s ease-in-out infinite;
  }
  .pendant-glint { animation-delay: -5.5s; animation-duration: 11.3s; }
  .frame-glint { animation-delay: -7.2s; animation-duration: 14.3s; }

  .room-life-paused .room-life * { animation-play-state: paused; }

  @keyframes cross-the-glass {
    0%, 14% { opacity: 0; transform: translate(20px, 85px); }
    18% { opacity: .86; transform: translate(95px, 69px); }
    29% { opacity: .86; transform: translate(302px, 52px); }
    38% { opacity: .86; transform: translate(470px, 62px); }
    47%, 100% { opacity: 0; transform: translate(640px, 37px); }
  }
  @keyframes beat-wings {
    from { transform: scaleY(1); }
    to { transform: scaleY(-.42); }
  }
  @keyframes room-twinkle {
    0%, 5%, 16%, 100% { opacity: 0; transform: scale(.45); }
    9% { opacity: .95; transform: scale(1.12); }
    12% { opacity: .45; transform: scale(.78); }
  }
}
/* The animation replaces only the monitor glass; its painted frame stays intact. */
.monitor-sky {
  inset: 0;
  width: 100%;
  height: 100%;
}
.monitor-star { transform: translate(0, 0); }
.monitor-clouds { transform: translate(110px, 0); }
.monitor-distant-stars { transform: translate(0, 0); }

@media (prefers-reduced-motion: no-preference) {
  .monitor-star {
    animation: monitor-star-flight 7.4s ease-in-out infinite;
  }
  .monitor-clouds {
    animation: monitor-cloud-scroll 26s linear infinite;
  }
  .monitor-distant-stars {
    animation: monitor-sky-drift 19s ease-in-out infinite alternate;
  }
  @keyframes monitor-star-flight {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(2px, -5px); }
    50% { transform: translate(0, 1px); }
    75% { transform: translate(-2px, 5px); }
  }
  @keyframes monitor-cloud-scroll {
    from { transform: translate(110px, 0); }
    to { transform: translate(15px, 0); }
  }
  @keyframes monitor-sky-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-6px, 0); }
  }
}

/* Small Windows-era pixel cursors; text fields retain a normal text caret. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --rafi-cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M2%202H5V5H8V8H11V11H14V14H17V17H20V20H13L17%2028L12%2030L8%2022L2%2027Z%22%20fill%3D%22%23f582bc%22%20stroke%3D%22%23653455%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22miter%22%2F%3E%3Cpath%20d%3D%22M4%206V22L7%2019H10L6%2015V9Z%22%20fill%3D%22%23fff1e8%22%2F%3E%3Cpath%20d%3D%22M25%202H27V6H31V8H27V12H25V8H21V6H25Z%22%20fill%3D%22%23ffe68f%22%20stroke%3D%22%2385536a%22%20stroke-width%3D%22.8%22%2F%3E%3C%2Fsvg%3E") 2 2, auto;
    --rafi-pointer: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M10%2016V5H12V2H16V4H18V13H20V11H24V14H27V13H30V17H31V25H28V29H15V27H12V24H9V21H6V18H6V15H9V17H11Z%22%20fill%3D%22%23f8a8cf%22%20stroke%3D%22%23653455%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22miter%22%2F%3E%3Cpath%20d%3D%22M12%206H14V16H12ZM8%2017H10V20H12V22H10V20H8Z%22%20fill%3D%22%23fff5ec%22%2F%3E%3Cpath%20d%3D%22M17%2020H19V19H21V20H23V23H21V25H19V23H17Z%22%20fill%3D%22%23df4e96%22%2F%3E%3C%2Fsvg%3E") 14 3, pointer;
  }
  body { cursor: var(--rafi-cursor); }
  body :is(a, button, summary, [role="button"], [role="tab"], label[for]) {
    cursor: var(--rafi-pointer) !important;
  }
  body :is(button:disabled, [aria-disabled="true"]) {
    cursor: var(--rafi-cursor) !important;
  }
  body :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, [contenteditable="true"]) {
    cursor: text !important;
  }
}
