.client-gui {
  box-shadow: 0 0 16px #ab85ff50, 0 18px 58px #7c49ff42;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.hero-scene .hero-art { z-index: auto; }
.hero-art-day { opacity: 0; }
[data-theme="light"] .hero-art-day { opacity: 1; }
[data-theme="light"] .hero-shade {
  background: linear-gradient(#171126a8, #17112626 56%, var(--bg));
}

.questions summary { list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before {
  content: '';
  display: inline-block;
  margin-inline-end: .55em;
  border-block: .31em solid transparent;
  border-inline-start: .45em solid currentColor;
  transform-origin: 36% 50%;
}
.questions details[open] summary::before { transform: rotate(90deg); }

[data-theme="light"] .client-gui {
  background: #f7f1ffed;
  color: #36264c;
  border-color: #a287cf;
  box-shadow: 0 12px 30px #50378035;
}
[data-theme="light"] .client-gui aside { background: #e8ddf5; }
[data-theme="light"] .gui-header,
[data-theme="light"] .client-gui aside { border-color: #50378026; }
[data-theme="light"] .gui-build,
[data-theme="light"] .gui-caption { color: #665578; }
[data-theme="light"] .gui-profile,
[data-theme="light"] .gui-search,
[data-theme="light"] .gui-row,
[data-theme="light"] .gui-chips button { background: #eae0f6; }
[data-theme="light"] .gui-row[data-on="true"],
[data-theme="light"] .gui-category[aria-pressed="true"],
[data-theme="light"] .gui-chips button[aria-pressed="true"] { background: #d9c6f6; }
[data-theme="light"] .gui-toggle { background: #766985; }
[data-theme="light"] .gui-toggle[aria-pressed="true"] { background: #754bb4; }
[data-theme="light"] .gui-more[aria-expanded="true"] { color: #684098; }
[data-theme="light"] .gui-crown,
[data-theme="light"] .gui-header img { content: url("assets/crown-light.png"); }



.primary:is(:hover, :focus-visible) {
  box-shadow: 0 4px 16px #a981ff32;
}

.gui-setting[hidden] { display: none !important; }
.gui-settings-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; }
.gui-settings-wrap > .gui-settings { min-height: 0; overflow: hidden; padding: 0; }
.gui-settings > :first-child { margin-top: .5cqw; }
.gui-settings > :last-child { margin-bottom: 1cqw; }
.gui-settings > * { margin-inline: 1.4cqw; }
.gui-row[data-open="true"] .gui-settings-wrap { grid-template-rows: 1fr; opacity: 1; }
.gui-category:hover, .gui-row:hover { filter: brightness(1.13); }
.gui-more[aria-expanded="true"] { color: #c5aaff; }
.gui-search:focus { box-shadow: 0 0 10px #ac8cff4d; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art-day { transition: opacity .75s ease; }
  .hero-scene .hero-art { animation: scene-drift 30s ease-in-out infinite alternate; }
  .questions summary::before { transition: transform .32s cubic-bezier(.2,.7,.3,1); }

  @keyframes scene-drift {
    from { transform: scale(1.025) translateX(-.35%); }
    to { transform: scale(1.07) translateX(.65%); }
  }

  @supports (interpolate-size: allow-keywords) {
    .questions details { interpolate-size: allow-keywords; }

    .questions details::details-content {
      block-size: 0;
      overflow: hidden;
      opacity: 0;
      transition: block-size .32s cubic-bezier(.2,.7,.3,1),
                  opacity .24s ease,
                  content-visibility .32s allow-discrete;
    }

    .questions details[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }

  .hero-content > * {
    animation: section-enter .85s cubic-bezier(.16,1,.3,1) both;
  }

  .hero-content h1 { animation-delay: .15s; }
  .hero-content .hero-description { animation-delay: .28s; }
  .hero-content .primary { animation-delay: .41s; }
  .hero-content .hero-actions { animation-delay: .41s; }

  .button {
    transition: translate .2s ease, box-shadow .25s ease, filter .2s ease;
  }

  .button:is(:hover, :focus-visible) { translate: 0 -2px; }
  .button:active { translate: 0 0; }
  .gui-row { animation: enter .29s calc(var(--row-index, 0) * 24ms) ease-out both; }
  .gui-settings-wrap { transition: grid-template-rows .26s ease, opacity .2s ease; }
  .gui-toggle::after { transition: left .18s cubic-bezier(.2,.7,.3,1); }
  .gui-category, .gui-row, .gui-toggle, .gui-chips button, .gui-search, .gui-more {
    transition: background-color .18s ease, color .18s ease, filter .18s ease, box-shadow .18s ease;
  }
  .scroll-reveal {
    transition: opacity .55s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
                translate .55s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms);
  }
  .scroll-reveal:not(.scroll-enter):not(:focus-within) {
    opacity: 0;
    translate: 0 var(--reveal-distance, 32px);
  }
  .scroll-reveal:focus-within { transition-delay: 0ms; }

  @keyframes section-enter {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
