/* Quiet, locally drawn fantasy identity. No continuous animation or external assets. */
:root {
  --bg: #211e2b;
  --panel: #1c1924;
  --deep: #17151f;
  --line: #484052;
  --accent: #bca4ee;
  --muted: #beb5cb;
  --spell-gold: #e6cb94;
}
body {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 65% 12%, #49335a42, transparent 65%), var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("icons/arcane-field.svg") center top / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
.brand-title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #f1dfb9;
  text-shadow: 0 0 22px #c3a0ef40;
}
.brand .brand-title {
  font-size: 23px;
}
.shared-wordmark .brand-title {
  color: #f1dfb9;
  font-size: 31px;
}
.brand-icon {
  position: relative;
  background: radial-gradient(circle at 30% 20%, #8271a8, #403452);
  border: 1px solid #c8acc55c;
  color: #f4dfb7;
  box-shadow: 0 0 18px #a375cd22;
  border-radius: 50% 50% 38% 38%;
}
.brand-icon::after {
  content: "✧";
  position: absolute;
  right: -6px;
  top: -10px;
  font-size: 16px;
}
.shared-wordmark svg {
  color: #d5b77f;
  filter: drop-shadow(0 0 5px #d5b77f50);
}
.sidebar {
  background: #1c1924f5;
  border-right: 1px solid #c6a8db1a;
}
.topbar {
  background: #211c2aee;
  border-bottom-color: #ad8ac22a;
}
.nav-item.selected,
.shared-nav button[aria-pressed="true"] {
  background: #54426870;
  box-shadow: inset 2px 0 #d4b985;
}
.shared-connection {
  border-bottom-color: #b49ac12d;
}
.shared-login,
.primary,
.shared-tools .primary {
  background: #645080;
  border-color: #ad8bc76b;
}
.primary:hover:not(:disabled),
.shared-tools .primary:hover:not(:disabled) {
  background: #7a629b;
}
.pad,
.shared-pad {
  background: linear-gradient(145deg, #393043ed, #282431f5);
  border: 1px solid #b69ac035;
  box-shadow:
    0 4px 15px #0d091322,
    inset 0 1px #ffffff06;
}
.pad:hover,
.shared-pad:hover {
  background: linear-gradient(145deg, #493b58ed, #302938f5);
  border-color: #c3a3d27a;
}
.pad.is-playing,
.shared-pad.is-playing {
  background: linear-gradient(145deg, #50435e, #30293f);
  border-color: #d6bc8e;
  box-shadow:
    0 0 18px #c3a1df26,
    inset 0 0 18px #dab9840c;
}
.shared-art {
  background: radial-gradient(circle at 50% 30%, #51415b, #211b2a);
  color: #d1b8eb;
}
.mini-pad .sound-symbol {
  color: #d3bce8;
  text-shadow: 0 0 18px #ac80cf40;
}
.mini-pad .pad-play > img,
.shared-art img {
  border: 1px solid #d2b7da24;
}
.favorite[aria-pressed="true"],
.shared-favorite[aria-pressed="true"] {
  color: var(--spell-gold);
}
.favorite-filter {
  display: flex;
  margin: 0 0 12px;
}
.favorite-filter button,
.shared-mobile-filters button {
  background: #282230;
  border: 1px solid #b79ac035;
  font-size: 12px;
  color: #d0c6db;
}
.favorite-filter button[aria-pressed="true"],
.shared-mobile-filters button[aria-pressed="true"] {
  background: #55415f;
  color: #f3dfb6;
  border-color: #d1b37590;
}
.shared-mobile-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.filter.selected {
  background: #554260;
}
.mixer,
.shared-stopbar {
  background: #1c1824f5;
  border-color: #8d769e80;
  box-shadow: 0 6px 24px #0c07184d;
}
.stop-all,
.shared-stop {
  background: #853d52;
}
.stop-all:hover:not(:disabled),
.shared-stop:hover:not(:disabled) {
  background: #a34d65;
}
.view-switcher > button {
  background: #382c49;
  border-color: #c1a1d385;
}
.mode-menu,
body dialog,
body .lab-shell {
  background-color: #292332;
  border-color: #897199;
}
body .lab-header,
body .lab-save-target {
  background: #241e2e;
  border-color: #5f4b6b;
}
body .lab-kicker,
body .lab-header h2 {
  color: #e8d5b6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: #e2c99c;
}
.spell-burst {
  position: fixed;
  width: 62px;
  height: 62px;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid #e4c899aa;
  border-radius: 50%;
  background: radial-gradient(circle, #c0a1eb18 20%, transparent 68%);
  box-shadow:
    0 0 17px #b392e344,
    inset 0 0 10px #b392e32b;
}
.spell-burst::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #c2a5e38f;
  transform: rotate(45deg);
}
.spell-burst i {
  position: absolute;
  inset: -6px;
  transform: rotate(var(--spark-turn));
}
.spell-burst i::before {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: -4px;
  width: 6px;
  height: 12px;
  background: #f1d8a6;
  clip-path: polygon(
    50% 0,
    65% 35%,
    100% 50%,
    65% 65%,
    50% 100%,
    35% 65%,
    0 50%,
    35% 35%
  );
}
.spell-burst[data-kind="stop"] {
  width: 42px;
  height: 42px;
  border-color: #d6b8c0;
  box-shadow: none;
  background: none;
}
.spell-burst[data-kind="stop"]::before {
  border-radius: 3px;
  transform: none;
  border-color: #d6b8c0;
}
@media (max-width: 760px) {
  .brand .brand-title {
    font-size: 20px;
  }
  .shared-wordmark .brand-title {
    font-size: 28px;
  }
  .favorite-filter {
    margin-bottom: 10px;
  }
  body::before {
    background-position: 60% top;
    opacity: 0.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spell-burst {
    display: none;
  }
}
@media (forced-colors: active) {
  body::before,
  .spell-burst {
    display: none;
  }
  .brand-title,
  .shared-wordmark .brand-title {
    color: CanvasText;
    text-shadow: none;
  }
}
