/* Decorative landing demos. No audio or microphone is involved. */
:root { --site-motion-state: paused; }
html:not(.site-motion-paused):not(.site-motion-hidden) .is-motion-visible { --site-motion-state: running; }
.site-combat-member > img, .device-member, .desktop-demo-members > span { transition: border-color .4s, background-color .4s, opacity .4s; }
.site-combat-member.is-speaking > img,
.device-member.is-talking > img:first-child,
.desktop-demo-members > .is-talking > img {
  opacity: 1;
  animation: site-speaking-halo 2.6s ease-in-out infinite;
  animation-play-state: var(--site-motion-state);
}
.site-combat-member.is-speaking .site-combat-level i,
.demo-level > i {
  animation: site-voice-level 1.7s ease-in-out infinite;
  animation-play-state: var(--site-motion-state);
  transform-origin: bottom;
}
.device-member > .demo-level { display: none; }
.device-member.is-talking > .demo-level { display: flex; }
.device-member.is-talking > .demo-icon { display: none; }
.demo-level > i:nth-child(2) { animation-delay: -.6s; }
.demo-level > i:nth-child(3) { animation-delay: -1.1s; }
.desktop-demo-members > .is-talking { border-color: #4ab9c8; background: #18313a; }
@keyframes site-speaking-halo {
  0%, 100% { box-shadow: 0 0 0 1px #63d9dc80, 0 0 0 2px #38d3db12; }
  50% { box-shadow: 0 0 0 1px #80eef0b3, 0 0 0 5px #38d3db18, 0 0 12px #38d3db30; }
}
@keyframes site-voice-level {
  0%, 100% { transform: scaleY(.4); }
  22% { transform: scaleY(.82); }
  47% { transform: scaleY(.52); }
  73% { transform: scaleY(.94); }
}

/* Music illustration uses separate, responsive vinyl and sleeve layers. */
.music-layout {
  display: grid;
  grid-template-columns: 36% minmax(0, 60%);
  gap: 4%;
  align-items: center;
  padding-block: 46px;
}
.music-copy { min-width: 0; max-width: 400px; }
.music-eyebrow { color: #83b9cb; margin-bottom: 18px; font-size: 11px; }
.music-open { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; margin-top: 20px; border-bottom: 1px solid #52636a; color: #e1e9ec; font-size: 14px; }
.music-open > span { color: #64badb; font-size: 24px; }
.music-open:hover { color: #64badb; }
.music-demo {
  --eq-tempo: 2.8s;
  --music-accent: #64c6ef;
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.music-demo[data-mood="electro"] { --eq-tempo: 1.35s; --music-accent: #a2c1ff; }
/* Real separate layers: vector record, fixed light, high-resolution sleeve. */
.music-stage { position: relative; width: 100%; aspect-ratio: 700 / 450; container-type: inline-size; isolation: isolate; }
.music-stage::before { content: ''; position: absolute; left: 7%; top: 11%; width: 65%; height: 79%; border-radius: 50%; background: radial-gradient(ellipse, #398a9d0c, transparent 69%); pointer-events: none; }
.music-stage::after { content: ''; position: absolute; z-index: -1; left: 13%; right: 4%; bottom: 2%; height: 13%; border-radius: 50%; background: #0008; filter: blur(12px); transform: rotate(-3deg); }
.music-vinyl { position: absolute; left: 4%; top: 8%; width: 57%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 16px 30px #0005; }
.vinyl-rotor { width: 100%; height: 100%; border-radius: 50%; animation: vinyl-turn 38s linear infinite; animation-play-state: var(--site-motion-state); }
.vinyl-disc { display: block; width: 100%; height: 100%; }
.vinyl-label-brand { fill: #d6e7e9; font: 500 10px Inter, sans-serif; letter-spacing: 2.5px; }
.vinyl-label-mood { fill: #7cabb8; font: 400 7px Inter, sans-serif; letter-spacing: 1.8px; }
.vinyl-sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from -20deg, transparent 0 8%, #abc6cf21 12%, transparent 19% 48%, #adc2ce18 58%, transparent 67% 89%, #b8d4de0d 95%, transparent); }
.vinyl-rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--music-accent); pointer-events: none; }
.vinyl-rim-base { fill: none; stroke: currentColor; stroke-width: .75; opacity: .18; }
.vinyl-rim-light { transform-box: view-box; transform-origin: center; animation: vinyl-rim-travel calc(var(--eq-tempo) * 6) linear infinite; animation-play-state: var(--site-motion-state); }
.vinyl-rim-glow { fill: none; stroke: url(#vinyl-rim-highlight); stroke-width: 3; opacity: .35; filter: blur(2px); }
.vinyl-rim-line { fill: none; stroke: url(#vinyl-rim-highlight); stroke-width: 1.2; }
@keyframes vinyl-rim-travel { to { transform: rotate(360deg); } }
@keyframes vinyl-turn { to { transform: rotate(360deg); } }
.music-sleeve { position: absolute; z-index: 2; left: 44%; top: 8%; width: 50%; aspect-ratio: 1; overflow: hidden; border: 1px solid #3d535c; border-radius: 2px; background: #0b1921; transform: rotate(-3deg); box-shadow: -12px 8px 24px #0005, 1px 1px 0 #78929c42; }
.music-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: filter .7s; }
.music-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #020c1570, transparent 23% 53%, #03121c45 66%, #03101ee8); }
.music-sleeve-brand { position: absolute; top: 6%; left: 7%; color: #b3d8e3; font-size: 1.1cqw; letter-spacing: .22em; font-weight: 500; }
.music-sleeve-copy { position: absolute; bottom: 9%; left: 7%; right: 6%; color: #dff3f7; }
.music-sleeve-title { display: block; font-size: 5.2cqw; letter-spacing: .12em; line-height: 1.1; font-weight: 400; }
.music-sleeve-caption { display: block; margin-top: 3.5%; color: #89b4c7; font-size: 1.1cqw; letter-spacing: .25em; }
.music-sleeve-edge { position: absolute; inset: 0; box-shadow: inset 3px 0 5px #e0f3ff0b, inset -1px 0 #00101f; border: 1px solid #d9efff0a; pointer-events: none; }
.music-demo[data-mood="electro"] .music-cover-image { filter: hue-rotate(27deg) saturate(.85); }

.music-controls { width: 82%; max-width: 480px; margin-inline: auto; }
.music-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; border-bottom: 1px solid #344348; padding-bottom: 7px; }
.music-demo .music-switch { display: flex; align-items: center; align-self: auto; gap: 22px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.music-demo .music-switch > span { color: #697e83; font-size: 11px; }
.music-demo .music-switch button { min-width: 0; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; box-shadow: none; color: #a1b0b4; font-size: 12px; font-weight: 400; letter-spacing: .08em; transition: color .25s, border-color .25s; }
.music-demo .music-switch button[aria-pressed="true"] { color: var(--music-accent); border-bottom-color: var(--music-accent); background: none; box-shadow: none; }
.music-demo .music-switch button:hover { color: #d8eff6; }
.music-demo .reactions { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.music-demo .reactions a { width: 36px; min-width: 36px; min-height: 44px; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: .8; }
.music-demo .reactions a:hover { opacity: 1; }
.music-demo .reactions img { width: 18px; height: 18px; }
.music-demo .reactions a:first-child img { filter: invert(66%) sepia(30%) saturate(900%) hue-rotate(156deg); }
.music-demo a:focus-visible, .music-demo button:focus-visible { outline: 2px solid #64badb; outline-offset: 3px; }
@media (max-width: 900px) and (min-width: 561px) {
  .music-layout { grid-template-columns: 37% minmax(0, 59%); }
  .music-controls { width: 92%; }
  .music-demo .music-switch { gap: 14px; }
  .music-demo .music-switch button { font-size: 11px; }
}
@media (max-width: 560px) {
  .music-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px; }
  .music-copy { max-width: none; }
  .music-demo { max-width: 460px; }
  .music-controls { width: 94%; }
  .music-demo .music-switch { gap: 16px; }
  .music-demo .music-switch button { font-size: 11px; }
}

/* Same 111:40 footprint as the unmodified official RuStore badge. */
.platform-install {
  container-type: inline-size;
  width: 222px;
  max-width: 100%;
  margin-top: auto;
  align-self: center;
}
.platform-install > .rustore-badge { width: 100%; margin: 0; }
.platform-download {
  display: flex;
  align-items: center;
  gap: 6.3cqw;
  width: 100%;
  aspect-ratio: 111 / 40;
  padding: 5cqw 6.3cqw;
  border: 2px solid #4a5059;
  border-radius: 8px;
  background: #1b1f23;
  color: #fff;
  font-family: "Segoe UI", Inter, sans-serif;
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.platform-download .platform-badge-icon { flex: none; width: 21.6cqw; height: 21.6cqw; color: #0085ef; }
.platform-download-web .platform-badge-icon { color: #3bb4f2; }
.platform-badge-copy { display: grid; gap: 1.3cqw; min-width: 0; }
.platform-badge-caption { color: #fff; font-size: 6.7cqw; line-height: 1.1; font-weight: 400; white-space: nowrap; }
.platform-badge-name { color: #fff; font-size: 13.2cqw; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; white-space: nowrap; }
.platform-download-web .platform-badge-name { font-size: 12.7cqw; }
.platform-download:hover { border-color: #5480a4; transform: translateY(-2px); }
.platform-download:focus-visible, .android-qr:focus-visible { outline: 3px solid #0077ff; outline-offset: 5px; }
.platforms > .platform:nth-of-type(3) { border-left: 1px solid #c8cdc8; }
@media (min-width: 561px) {
  .platforms > .platform:first-child { border-left: 1px solid transparent; }
}

/* A small QR window directly beneath the phone column, without a banner. */
.android-qr {
  display: block;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: 148px;
  height: 148px;
  max-width: 100%;
  margin-top: 20px;
  border: 1px solid #c6cecb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 24px;
}
.android-qr > img { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) {
  .android-qr { grid-column: 1; grid-row: auto; margin-top: -8px; }
  .platforms > .platform:nth-of-type(3) { border-left: 0; border-top: 1px solid #c4ccc6; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-download { transition: none; }
  .platform-download:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl-rotor, .vinyl-rim-light { animation: none; }

  .site-combat-member.is-speaking > img, .device-member.is-talking > img:first-child, .desktop-demo-members > .is-talking > img { animation: none; box-shadow: 0 0 0 1px #63d9dc80; }
  .site-combat-member.is-speaking .site-combat-level i, .demo-level > i { animation: none; transform: scaleY(.68); }
}

