/* Aurora: the default theme. A black room with one family of soft light moving
   through it (js/backdrop.js), its hue taken from the covers ranked highest in
   the list on screen, and frosted glass floating over it. Panels float with a
   margin and round corners; tiers are trays of clear glass; rank is brightness
   (the top tier's chip is the brightest, each one below a step dimmer), so the
   only colour on the page is the light and the covers themselves. The one
   solid thing is the primary button. Covers are objects standing on the glass:
   records, tapes, books, cases (the "title objects", switchable).

   Dark is the default appearance; light mirrors it. Both are token sets on
   [data-appearance]. With data-transparency='reduced' the glass turns solid. */

:root[data-theme='aurora'] {
  --font-ui: 'Geist', 'Onest', system-ui, sans-serif;
  --font-display: 'Geist', 'Onest', system-ui, sans-serif;
  --font-label: 'Geist', 'Onest', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --bg: #06070b;
  --bg-2: #101117;
  --bg-3: #1b1c25;
  --bar: transparent;
  --ink: #f5f6fa;
  --ink-2: rgba(245, 246, 250, 0.74);
  --ink-3: rgba(245, 246, 250, 0.56);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --accent-ink: #0a0b10;
  --focus: #ffffff;
  --sel: #ffffff;
  --match: #ffe27a;
  --danger: #ff7a70;
  --ok: #6fe7ae;

  /* the glass: chrome (bars, panels), trays (tiers, cards), floating (menus, dialogs) */
  --glass: rgba(16, 17, 24, 0.5);
  --glass-tray: rgba(255, 255, 255, 0.055);
  --glass-float: rgba(22, 23, 32, 0.72);
  --glass-solid: #15161e;
  --rim: rgba(255, 255, 255, 0.24);
  --rim-soft: rgba(255, 255, 255, 0.07);
  --sheen: rgba(255, 255, 255, 0.07);
  --well: rgba(0, 0, 0, 0.3);
  --shade: 0 0 0;
  --shadow-card: 0 12px 24px -20px rgb(var(--shade) / 0.24);
  --shadow-card-hover: 0 18px 30px -20px rgb(var(--shade) / 0.36);
  --blur: blur(30px) saturate(1.7);

  --r-1: 12px;
  --r-2: 16px;
  --r-3: 22px;
  --r-panel: 26px;
  --tile-r: 9px;
  --btn-h: 44px;
  --topbar-h: 84px;
  --gap: 12px;
  --label-w: 92px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --menu-bg: var(--glass-float);
  --field: var(--well);
  --toast-bg: rgba(245, 246, 250, 0.92);
  --toast-ink: #0a0b10;
  --tip-bg: rgba(245, 246, 250, 0.94);
  --tip-ink: #0a0b10;
  --deck-bg: transparent;
  color-scheme: dark;
}

:root[data-theme='aurora'][data-appearance='light'] {
  --bg: #eef0f6;
  --bg-2: #ffffff;
  --bg-3: #e3e6ef;
  --ink: #0b0c12;
  --ink-2: rgba(11, 12, 18, 0.74);
  --ink-3: rgba(11, 12, 18, 0.58);
  --line: rgba(14, 18, 40, 0.09);
  --line-2: rgba(14, 18, 40, 0.18);
  --accent: #0b0c12;
  --accent-ink: #ffffff;
  --focus: #0b0c12;
  --sel: #0b0c12;
  --match: #c77a00;
  --danger: #c8322a;
  --ok: #0f8a55;

  --glass: rgba(255, 255, 255, 0.56);
  --glass-tray: rgba(255, 255, 255, 0.4);
  --glass-float: rgba(255, 255, 255, 0.82);
  --glass-solid: #f6f7fb;
  --rim: rgba(255, 255, 255, 0.95);
  --rim-soft: rgba(255, 255, 255, 0.5);
  --sheen: rgba(255, 255, 255, 0.5);
  --well: rgba(255, 255, 255, 0.5);
  --shade: 40 48 90;
  --blur: blur(30px) saturate(1.5);

  --toast-bg: rgba(11, 12, 18, 0.9);
  --toast-ink: #ffffff;
  --tip-bg: rgba(11, 12, 18, 0.92);
  --tip-ink: #ffffff;
  color-scheme: light;
}

/* ---------- the backdrop: a canvas of moving light, fine grain over it ---------- */

#backdrop,
.backdrop-grain {
  display: none;
}

[data-theme='aurora'] #backdrop,
[data-theme='aurora'] .backdrop-grain {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

[data-theme='aurora'] .backdrop-grain {
  background-size: 160px;
  mix-blend-mode: soft-light;
  opacity: 0.19;
}

[data-theme='aurora'][data-appearance='light'] .backdrop-grain {
  opacity: 0.13;
}

/* without WebGL the same four lights are a still wash */
[data-theme='aurora'][data-backdrop-engine='css'] #backdrop {
  background:
    radial-gradient(60% 70% at 14% 16%, rgb(var(--light-0, 76 110 245) / 0.34), transparent 70%),
    radial-gradient(50% 60% at 86% 84%, rgb(var(--light-1, 112 72 232) / 0.26), transparent 70%),
    var(--bg);
}

[data-theme='aurora'] body {
  background: var(--bg);
  font-family: var(--font-ui);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.006em;
}

[data-theme='aurora'] ::selection {
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  color: var(--ink);
}

[data-theme='aurora'] :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- glass ---------- */

/* chrome: the bars and the side panel */
[data-theme='aurora'] :is(.topbar, .cart) {
  background:
    radial-gradient(420px circle at var(--mx) var(--my), var(--sheen), transparent 70%),
    linear-gradient(135deg, var(--sheen), transparent 32%),
    var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 0;
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 1px var(--rim-soft),
    0 24px 60px -34px rgb(var(--shade) / 0.75),
    0 2px 10px -4px rgb(var(--shade) / 0.3);
}

/* floating: whatever opens above the page */
[data-theme='aurora'] :is(.menu, .dialog, .selbar, .now-playing, .spot-card) {
  background:
    linear-gradient(135deg, var(--sheen), transparent 36%),
    var(--glass-float);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 0;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 1px var(--rim-soft),
    0 40px 90px -30px rgb(var(--shade) / 0.8),
    0 6px 20px -8px rgb(var(--shade) / 0.4);
}

/* ---------- controls ---------- */

[data-theme='aurora'] .btn {
  height: var(--btn-h);
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 70%),
    var(--glass-tray);
  /* at rest the light sits above the button; the pointer takes it over */
  --mx: 50%;
  --my: -60px;
  color: var(--ink);
  font: 600 14.5px/1 var(--font-ui);
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.18s var(--ease), color 0.2s;
}

[data-theme='aurora'] .btn:hover {
  background-color: color-mix(in srgb, var(--ink) 9%, transparent);
}

[data-theme='aurora'] .btn:active {
  transform: scale(0.97);
}

[data-theme='aurora'] .btn:disabled {
  opacity: 0.36;
  transform: none;
}

/* the one solid thing on the page */
[data-theme='aurora'] .btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

[data-theme='aurora'] .btn.primary:hover {
  background: color-mix(in srgb, var(--accent), var(--accent-ink) 9%);
}

[data-theme='aurora'] .btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
}

[data-theme='aurora'] .btn.ghost:hover {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink);
}

[data-theme='aurora'] .btn.icon-only {
  width: var(--btn-h);
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
}

[data-theme='aurora'] .btn.icon-only:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}

[data-theme='aurora'] .btn.danger {
  color: var(--danger);
}

[data-theme='aurora'] kbd {
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-2);
}

[data-theme='aurora'] .btn.primary kbd {
  background: color-mix(in srgb, var(--accent-ink) 12%, transparent);
  color: inherit;
  opacity: 0.75;
}

[data-theme='aurora'] :is(.field, .search, .sort) {
  border: 0;
  border-radius: 14px;
  background-color: var(--well);
  box-shadow: inset 0 1px 2px rgb(var(--shade) / 0.35), inset 0 0 0 1px var(--rim-soft);
  color: var(--ink);
}

[data-theme='aurora'] .search {
  height: 46px;
  border-radius: 999px;
}

/* a field in focus: one quiet ring on the field itself. The input inside a
   search field draws none of its own (two rings, one of them square, was the
   result). */
[data-theme='aurora'] .search:focus-within,
[data-theme='aurora'] .field:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--focus) 52%, transparent);
}

[data-theme='aurora'] .search :is(input, input:focus, input:focus-visible) {
  outline: 0;
}

[data-theme='aurora'] .sort {
  height: 36px;
  border-radius: 999px;
  padding-left: 14px;
  font: 500 13.5px/1 var(--font-ui);
}

[data-theme='aurora'] .segmented {
  border: 0;
  border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--rim-soft);
  padding: 3px;
}

[data-theme='aurora'] .segmented button {
  border-radius: 999px;
}

[data-theme='aurora'] .segmented button {
  color: var(--ink-3);
}

[data-theme='aurora'] .segmented button[aria-checked='true'] {
  background: color-mix(in srgb, var(--ink) 24%, transparent);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 72%, transparent);
}

/* ---------- the floating top bar ---------- */

[data-theme='aurora'] .topbar {
  position: absolute;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  height: 60px;
  padding: 0 8px 0 8px;
  border-radius: 999px;
  z-index: 30;
}

[data-theme='aurora'] .tb-group {
  border-right: 0;
  padding-right: 0;
  margin-right: 6px;
}

[data-theme='aurora'] .wordmark {
  padding-left: 16px;
  font: 700 22px/1 var(--font-display);
  letter-spacing: -0.04em;
}

/* the two capitals carry the pun: they are the only letters at full strength */
[data-theme='aurora'] .wordmark {
  color: var(--ink-3);
}

[data-theme='aurora'] .wordmark b {
  color: var(--ink);
}

[data-theme='aurora'] :is(.list-title, .title-input) {
  font: 600 16px/1.3 var(--font-ui);
  letter-spacing: -0.015em;
  border-radius: 999px;
  padding: 8px 12px;
}

[data-theme='aurora'] .save-status {
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-3);
}

/* ---------- the editor: panels float, the board scrolls under the bar ---------- */

[data-theme='aurora'] .editor {
  grid-template-rows: minmax(0, 1fr);
}

[data-theme='aurora'] .ed-main {
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 10px var(--cart-w);
  padding-right: var(--gap);
}

[data-theme='aurora'] .board {
  padding: calc(var(--topbar-h) + 14px) 16px 150px 20px;
  background: none;
  scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
}

[data-theme='aurora'] .room-heading {
  padding: 10px 10px 22px;
}

/* a touch screen: the tabs clear the floating bar, so the board and the panel under them need not */
[data-theme='aurora'] .touch-tabs {
  margin-top: calc(var(--topbar-h) + 8px);
}

[data-theme='aurora'] .ed-main[data-touch] > .board {
  padding-top: 6px;
}

[data-theme='aurora'] .ed-main[data-touch] > .cart {
  margin: 4px 8px 8px;
}


[data-theme='aurora'] .room-heading h1 {
  font: 600 clamp(22px, 2.1vw, 28px) / 1.1 var(--font-display);
  letter-spacing: -0.03em;
}

[data-theme='aurora'] .room-heading p {
  margin-top: 9px;
  font: 500 12.5px/1.3 var(--font-mono);
  letter-spacing: 0;
  color: var(--ink-3);
}

[data-theme='aurora'] .splitter::after {
  inset: 40% 3px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}

[data-theme='aurora'] .splitter:hover::after,
[data-theme='aurora'] .splitter:focus-visible::after {
  opacity: 1;
  background: var(--ink);
}

/* ---------- tiers: trays of clear glass, a rank chip at the head of each ---------- */

[data-theme='aurora'] .tiers {
  gap: 10px;
}

[data-theme='aurora'] .tier {
  padding: 12px 12px 12px 10px;
  border-radius: var(--r-panel);
  background:
    radial-gradient(520px circle at var(--mx) var(--my), var(--sheen), transparent 70%),
    var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), 0 26px 50px -38px rgb(var(--shade) / 0.7);
  transition: box-shadow 0.3s, background-color 0.3s;
}

/* the tray you are about to drop on lights up from inside */
[data-theme='aurora'] .tier:is(.is-target, .is-file-target) {
  background-color: color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 70px -24px color-mix(in srgb, var(--ink) 50%, transparent);
}

[data-theme='aurora'] .talker {
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 0 0;
}

/* the rank chip: one flat key per tier, brightest at the top (a tier given a
   colour of its own keeps it); no gloss, no glow */
[data-theme='aurora'] .talker-letter {
  display: grid;
  place-items: center;
  width: 64px;
  min-height: 64px;
  padding: 4px 6px;
  border-radius: 20px;
  background: var(--tc);
  color: var(--tc-ink);
  font: 650 30px/1 var(--font-display);
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px -14px rgb(var(--shade) / 0.9);
  transition: transform 0.3s var(--ease);
}

[data-theme='aurora'] .talker-letter:hover,
[data-theme='aurora'] .tier:is(.is-target, .is-file-target) .talker-letter {
  transform: scale(1.06);
}

[data-theme='aurora'] .talker-letter[data-len='2'] {
  font-size: 25px;
}

[data-theme='aurora'] .talker-letter[data-len='3'] {
  font-size: 20px;
}

[data-theme='aurora'] .talker-letter:is([data-len='m'], [data-len='l']) {
  width: 76px;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding: 8px;
}

[data-theme='aurora'] .talker-count {
  font: 500 11.5px/1 var(--font-mono);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

[data-theme='aurora'] .talker-more {
  position: static;
  width: 30px;
  height: 30px;
  opacity: 0;
}

[data-theme='aurora'] .tier-drop {
  gap: 18px 14px;
  padding: 4px 8px 6px 6px;
  min-height: calc(var(--th) * var(--k, 1) + 12px);
}

[data-theme='aurora'] .tier-drop:empty::before {
  content: '';
  flex: none;
  width: calc(var(--tw) * var(--k, 1));
  height: calc(var(--th) * var(--k, 1));
  border-radius: var(--tile-r);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}

[data-theme='aurora'] .add-tier {
  margin: 14px 0 0 var(--label-w);
}

/* ---------- covers: lit from above, casting their own colour on the glass ---------- */

[data-theme='aurora'] .item .cov {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: 0 18px 30px -16px rgb(var(--dc, 0 0 0) / 0.85), 0 3px 8px -2px rgb(var(--shade) / 0.5);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

[data-theme='aurora'] .item .cov::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

[data-theme='aurora'] .book {
  transition: transform 0.35s var(--ease);
}

[data-theme='aurora'] .item:is(:hover, :focus-visible) .book {
  transform: translateY(-6px) perspective(700px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
}

[data-theme='aurora'] .item:is(:hover, :focus-visible) .cov {
  box-shadow: 0 28px 44px -18px rgb(var(--dc, 0 0 0) / 1), 0 4px 10px -2px rgb(var(--shade) / 0.5);
}

/* the tick on a selected cover is drawn in the ground's colour: white on the
   dark badge of the light appearance (it was a dark tick on a dark badge) */
[data-theme='aurora'][data-appearance='light'] .item.is-selected::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

[data-theme='aurora'] .item.is-selected .cov {
  outline: 2px solid var(--sel);
  outline-offset: 3px;
}

[data-theme='aurora'] .item.is-match .cov {
  outline: 2px solid var(--match);
  outline-offset: 3px;
}

[data-theme='aurora'] .item.is-placeholder::after {
  border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

[data-theme='aurora'] .item.just-dropped {
  animation: aurora-land 0.5s var(--ease);
}

@keyframes aurora-land {
  0% {
    transform: translateY(-14px) scale(1.06);
    filter: brightness(1.35);
  }
}

[data-theme='aurora'] .cov-text {
  background: var(--cover-fallback);
}

[data-theme='aurora'] .cov-text b {
  text-transform: none;
  font: 650 calc(var(--tw) * var(--k, 1) * 0.115) / 1.08 var(--font-display);
  letter-spacing: -0.02em;
}

[data-theme='aurora'] .cov-text i {
  font: 500 calc(var(--tw) * var(--k, 1) * 0.09) / 1 var(--font-mono);
}

[data-theme='aurora'] [data-captions='always'] .cap,
[data-theme='aurora'][data-captions='always'] .cap {
  font: 500 12px/1.25 var(--font-ui);
  color: var(--ink-2);
}

/* ---------- the unranked panel ---------- */

[data-theme='aurora'] .cart {
  margin: calc(var(--topbar-h) - 0px) 0 var(--gap);
  border-radius: var(--r-panel);
  overflow: hidden;
}

[data-theme='aurora'] .cart-head {
  padding: 18px 18px 12px;
  border-bottom: 0;
  background: none;
}

[data-theme='aurora'] .cart-title h2 {
  font: 650 20px/1 var(--font-display);
  letter-spacing: -0.03em;
}

[data-theme='aurora'] .pool-count {
  font: 500 12px/1 var(--font-mono);
}

[data-theme='aurora'] :is(.tag-chip, .src-chip) {
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-2);
  font: 500 12.5px/1 var(--font-ui);
  box-shadow: inset 0 0 0 1px var(--rim-soft);
}

/* the fill says "on" here, so the indicator dot's gutter goes */
[data-theme='aurora'] .src-chip {
  padding: 0 14px;
}

[data-theme='aurora'] :is(.tag-chip, .src-chip):hover {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  color: var(--ink);
}

[data-theme='aurora'] :is(.tag-chip, .src-chip):is([aria-pressed='true'], .is-on) {
  background: color-mix(in srgb, var(--ink) 24%, transparent);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 72%, transparent);
}

/* a source that is switched on carries a tick, so on and off differ in shape as well as tone */
[data-theme='aurora'] .src-chip[aria-pressed='true']::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-theme='aurora'] .pool {
  gap: 16px 12px;
  padding: 10px 18px 26px;
}

[data-theme='aurora'] .cart-foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

/* ---------- selection bar, menus, dialogs, toasts ---------- */

[data-theme='aurora'] .selbar {
  border-radius: 999px;
  padding: 7px 8px 7px 18px;
}

[data-theme='aurora'] .selbar-tier {
  width: 40px;
  padding: 0;
  border-radius: 14px;
  background: var(--tc);
  color: var(--tc-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font: 650 15px/1 var(--font-display);
}

[data-theme='aurora'] .menu {
  padding: 7px;
  border-radius: 20px;
}

[data-theme='aurora'] .menu-item {
  padding: 10px 12px;
  border-radius: 13px;
  font: 500 14.5px/1.25 var(--font-ui);
}

[data-theme='aurora'] .menu-item:hover:not(:disabled),
[data-theme='aurora'] .menu-item:focus-visible {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

[data-theme='aurora'] .menu-heading {
  padding: 10px 12px 5px;
  font: 500 12.5px/1 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

[data-theme='aurora'] .menu-swatch {
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

[data-theme='aurora'] .menu-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 6px 5px 12px;
  font: 500 14.5px/1.25 var(--font-ui);
}

[data-theme='aurora'] .menu-choice .segmented button {
  height: 30px;
  padding: 0 12px;
  font: 500 13px/1 var(--font-ui);
}

[data-theme='aurora'] .dialog {
  border-radius: 28px;
}

[data-theme='aurora'] .dialog-head h2 {
  font: 650 22px/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

[data-theme='aurora'] .form-label {
  font: 500 13px/1 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

[data-theme='aurora'] .toast {
  border-radius: 999px;
  padding: 9px 9px 9px 18px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font: 600 14px/1.3 var(--font-ui);
}

[data-theme='aurora'] .tooltip {
  border-radius: 10px;
  font: 500 12.5px/1.2 var(--font-ui);
}

/* ---------- the library ---------- */

[data-theme='aurora'] .library {
  grid-template-rows: minmax(0, 1fr);
  background: none;
}

[data-theme='aurora'] .library > .lib {
  grid-row: 1;
}

[data-theme='aurora'] .lib {
  padding: calc(var(--topbar-h) + 40px) clamp(20px, 5vw, 76px) 90px;
  background: none;
}

[data-theme='aurora'] .lib-head {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  align-items: center;
}

[data-theme='aurora'] .lib-head h1 {
  font: 650 clamp(38px, 4.6vw, 64px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] .lib-head h2 {
  font: 650 clamp(24px, 2.6vw, 34px) / 1.1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] .lib-count {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0;
  color: var(--ink-3);
}

[data-theme='aurora'] .lib-search {
  height: 52px;
}

[data-theme='aurora'] .lib-section {
  margin-bottom: 64px;
}

[data-theme='aurora'] .lib-lists {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

[data-theme='aurora'] :is(.list-card, .tpl-card) {
  padding: 10px 10px 16px;
  border: 0;
  border-radius: var(--r-panel);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), var(--sheen), transparent 70%),
    var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), var(--shadow-card);
  animation: none;
  transition: transform 0.45s var(--ease), box-shadow 0.35s, background-color 0.35s;
}

[data-theme='aurora'] :is(.list-card, .tpl-card):is(:hover, :focus-visible) {
  transform: translateY(-4px);
  background-color: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft), var(--shadow-card-hover);
}

/* the well the covers stand in */
[data-theme='aurora'] :is(.mini-shelf, .tpl-fan) {
  height: 186px;
  padding: 24px 22px 22px;
  border: 0;
  border-radius: 18px;
  background: var(--well);
  box-shadow: inset 0 1px 3px rgb(var(--shade) / 0.4), inset 0 0 0 1px var(--rim-soft);
  overflow: hidden;
}

[data-theme='aurora'] :is(.mini-shelf, .tpl-fan)::before,
[data-theme='aurora'] :is(.mini-shelf, .tpl-fan)::after {
  display: none;
}

[data-theme='aurora'] .mini-shelf {
  justify-content: center;
  gap: 0;
}

[data-theme='aurora'] .mini-cover {
  height: 128px;
  border-radius: 3px;
  box-shadow: 0 14px 22px -12px rgb(var(--shade) / 0.9), -6px 0 14px -8px rgb(var(--shade) / 0.7);
  transition: transform 0.45s var(--ease);
}

[data-theme='aurora'] .mini-cover + .mini-cover {
  margin-left: -26px;
}

/* a fan shows four; the rest stay in the list */
[data-theme='aurora'] .mini-cover:nth-child(n + 5) {
  display: none;
}

[data-theme='aurora'] .mini-cover:nth-child(odd) {
  transform: rotate(-3deg);
}

[data-theme='aurora'] .mini-cover:nth-child(even) {
  transform: rotate(2.5deg) translateY(-5px);
}

[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-cover:nth-child(odd) {
  transform: rotate(-5deg) translateY(-4px);
}

[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-cover:nth-child(even) {
  transform: rotate(4deg) translateY(-10px);
}

[data-theme='aurora'] .mini-cover b {
  padding: 10% 10% 0;
  background: var(--cover-fallback);
  font: 650 12.5px / 1.1 var(--font-display);
  letter-spacing: -0.02em;
}

/* The fan fills its well whatever the shape of the covers. The well measures
   itself, so the covers close up on a narrow card instead of spilling out. */
[data-theme='aurora'] .mini-shelf {
  container-type: inline-size;
}

/* square covers: the same fan, as tall as the posters, closed up further */
[data-theme='aurora'] .mini-shelf[data-aspect='square'] .mini-cover {
  --s: min(124px, 46cqw);
  height: var(--s);
}

[data-theme='aurora'] .mini-shelf[data-aspect='square'] .mini-cover + .mini-cover {
  margin-left: calc(clamp(26px, (100cqw - var(--s) - 8px) / 3, 64px) - var(--s));
}

/* wide covers do not fan, they pile: each one lower and further right than
   the one before, like screenshots dropped on a table */
[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover {
  --w: min(172px, 62cqw);
  --dx: clamp(20px, (100cqw - var(--w) - 8px) / 3, 46px);
  width: var(--w);
  height: auto;
  box-shadow: 0 14px 22px -12px rgb(var(--shade) / 0.9), 0 -4px 14px -8px rgb(var(--shade) / 0.6);
}

[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover + .mini-cover {
  margin-left: calc(var(--dx) - var(--w));
}

[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(1) {
  transform: translateY(-46px) rotate(-3deg);
}

[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(2) {
  transform: translateY(-31px) rotate(2deg);
}

[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(3) {
  transform: translateY(-15px) rotate(-1.5deg);
}

[data-theme='aurora'] .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(4) {
  transform: rotate(1.5deg);
}

/* picked up, the pile spreads */
[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(1) {
  transform: translate(-8px, -52px) rotate(-5deg);
}

[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(2) {
  transform: translate(-3px, -35px) rotate(3deg);
}

[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(3) {
  transform: translate(3px, -17px) rotate(-2.5deg);
}

[data-theme='aurora'] .list-card:is(:hover, :focus-visible) .mini-shelf[data-aspect='wide'] .mini-cover:nth-child(4) {
  transform: translate(8px, 0) rotate(2.5deg);
}

[data-theme='aurora'] :is(.list-card-body, .tpl-body) {
  padding: 14px 10px 0;
  gap: 5px;
}

[data-theme='aurora'] :is(.list-card h3, .tpl-title) {
  font: 600 18px/1.25 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

[data-theme='aurora'] .meta-room {
  display: inline;
}

[data-theme='aurora'] .card-room {
  display: none;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

[data-theme='aurora'] :is(.list-meta, .tpl-meta) {
  font: 400 13px/1.35 var(--font-ui);
  color: var(--ink-3);
}

[data-theme='aurora'] .tier-dist {
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  gap: 2px;
  background: none;
}

[data-theme='aurora'] .tier-dist span {
  border-radius: 4px;
}

[data-theme='aurora'] .dist-pool {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

[data-theme='aurora'] .list-card > .btn {
  top: 18px;
  right: 18px;
  background: var(--glass-float);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--ink);
}

[data-theme='aurora'] .lib-templates {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}
/* on a phone two templates stand side by side, with a shorter fan */
@media (max-width: 560px) {
  [data-theme='aurora'] :is(.lib-templates:not(.is-shelved), .tpl-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  [data-theme='aurora'] .lib-templates .tpl-fan { height: 104px; }
  /* one's lists too: two to a row, the fan shorter, the meta line clamped */
  [data-theme='aurora'] .lib-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  [data-theme='aurora'] .lib-lists .mini-shelf { height: 104px; }
  [data-theme='aurora'] .lib-lists .list-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

[data-theme='aurora'] .tpl-fan {
  height: 150px;
  padding: 0;
}

[data-theme='aurora'] .tpl-cover {
  bottom: 18px;
  border-radius: 6px;
}

[data-theme='aurora'] .lib-empty {
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--r-panel);
  background: var(--glass-tray);
}

/* the first visit: the question takes the whole row, and the rooms stand in a
   steady grid instead of shrinking to their words */
[data-theme='aurora'] .lib-lists > .lib-empty {
  grid-column: 1 / -1;
  max-width: 860px;
}

[data-theme='aurora'] .lib-first-section > .lib-empty {
  max-width: 860px;
}

/* the greeting is set as the page's other great headings are */
[data-theme='aurora'] .lib-greet h1 {
  font: 650 clamp(38px, 4.6vw, 64px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] .lib-first .lobby-rooms {
  justify-self: stretch;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

/* ---------- less glass: the same layout on solid panels ---------- */

[data-theme='aurora'][data-transparency='reduced'] :is(.topbar, .cart, .menu, .dialog, .selbar, .now-playing, .spot-card, .list-card > .btn) {
  background: var(--glass-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

[data-theme='aurora'][data-transparency='reduced'] :is(.tier, .list-card, .tpl-card) {
  background: color-mix(in srgb, var(--glass-solid) 90%, var(--tc, transparent));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme='aurora'] :is(.topbar, .cart, .menu, .dialog, .selbar, .now-playing, .spot-card) {
    background: var(--glass-solid);
  }
}

@media (forced-colors: active) {
  [data-theme='aurora'] #backdrop,
  [data-theme='aurora'] .backdrop-grain {
    display: none;
  }

  [data-theme='aurora'] :is(.btn, .tier, .topbar, .cart, .menu, .dialog, .list-card, .tpl-card) {
    border: 1px solid CanvasText;
  }
}

/* ---------- narrow windows ---------- */

@media (max-width: 820px) {
  :root[data-theme='aurora'] {
    --gap: 8px;
    --topbar-h: 72px;
  }

  [data-theme='aurora'] .topbar {
    height: 54px;
  }

  [data-theme='aurora'] .ed-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--gap) var(--gap);
    gap: var(--gap);
  }

  [data-theme='aurora'] .board {
    padding: calc(var(--topbar-h) + 6px) 4px 30px;
  }

  [data-theme='aurora'] .cart {
    margin: 0;
  }

  [data-theme='aurora'] .tier {
    padding: 10px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  [data-theme='aurora'] .talker {
    flex-direction: row;
    align-items: center;
    padding: 0 0 8px;
  }

  [data-theme='aurora'] .talker-letter {
    width: 46px;
    min-height: 46px;
    border-radius: 16px;
    font-size: 24px;
  }

  [data-theme='aurora'] .talker-more {
    opacity: 0.8;
    margin-left: auto;
  }

  [data-theme='aurora'] .add-tier {
    margin-left: 0;
  }

  [data-theme='aurora'] .lib {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme='aurora'] :is(.item .book, .list-card, .tpl-card, .mini-cover, .talker-letter, .btn) {
    transition: none;
  }

  [data-theme='aurora'] .item.just-dropped {
    animation: none;
  }
}

/* ================= title objects =================
   With data-objects='on' a cover is the thing it comes in: a tape box, a
   record in its sleeve, a hardback, a game case. They stand on the glass and
   turn to face you when picked. Off, every cover is a flat tile. */

/* ---------- film and TV: tape boxes, turned a little to show the spine ---------- */

[data-theme='aurora'][data-objects='on'][data-cat='film'] .item {
  --box: calc(var(--th) * var(--k, 1) * 0.14);
}

[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .book {
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}

[data-theme='aurora'][data-objects='on'][data-cat='film'] .book {
  transform: perspective(1000px) rotateY(20deg);
}

[data-theme='aurora'][data-objects='on'][data-cat='film'] .item:is(:hover, :focus-visible) .book {
  transform: perspective(1000px) translate3d(0, -8px, 42px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition-duration: 0.35s;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .cov {
  border-radius: 2px 4px 4px 2px;
  backface-visibility: hidden;
}

/* the clear sleeve over the paper insert: a rim, a hinge, a sheen that follows the pointer */
[data-theme='aurora'][data-objects='on'][data-cat='film'] .item .cov::after {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.13), inset 0 0 0 3px rgba(0, 0, 0, 0.3);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.14) 3%, transparent 7%),
    linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.2) 42%, transparent 56%) var(--sx, 30%) 0 / 260% 100% no-repeat;
}

[data-theme='aurora'][data-objects='on'][data-cat='film'] .spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8%;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: var(--box);
  padding-top: 18%;
  overflow: hidden;
  border-radius: 3px 0 0 3px;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, transparent 5%, rgb(var(--dc, 150 40 50)) 5% 13%, transparent 13%),
    #15161b;
}

[data-theme='aurora'][data-objects='on'][data-cat='film'] .spine b {
  max-height: 70%;
  overflow: hidden;
  writing-mode: vertical-rl;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 650 calc(var(--box) * 0.46) / 1 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #eceef4;
}

/* ---------- books: hardbacks of different heights and thicknesses ---------- */

[data-theme='aurora'][data-objects='on'][data-cat='books'] .book {
  transform: perspective(1100px) rotateY(24deg) scale(1, var(--bh, 1));
}

[data-theme='aurora'][data-objects='on'][data-cat='books'] .item:is(:hover, :focus-visible) .book {
  transform: perspective(1100px) translate3d(0, -10px, 48px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) scale(1, var(--bh, 1));
  transition-duration: 0.35s;
}

[data-theme='aurora'][data-objects='on'][data-cat='books'] .tier-drop,
[data-theme='aurora'][data-objects='on'][data-cat='books'] .pool {
  align-items: flex-end;
}

/* the hinge groove by the spine, a jacket gloss that follows the pointer */
[data-theme='aurora'][data-objects='on'][data-cat='books'] .item .cov::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.14) 3%, rgba(255, 255, 255, 0.16) 5%, rgba(0, 0, 0, 0.12) 7.5%, transparent 10%),
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, transparent 60%) var(--sx, 20%) 0 / 260% 100% no-repeat;
}

[data-theme='aurora'][data-objects='on'][data-cat='books'] .spine {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: var(--thick, 24px);
  overflow: hidden;
  border-radius: 3px 0 0 3px;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.1) 35%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.6)),
    linear-gradient(180deg, transparent 6%, rgba(255, 255, 255, 0.55) 6% calc(6% + 1px), transparent calc(6% + 1px) 92%, rgba(255, 255, 255, 0.55) 92% calc(92% + 1px), transparent calc(92% + 1px)),
    url('/tex/cloth.webp') 0 0 / 160px,
    rgb(var(--dc, 92 60 40));
  background-blend-mode: normal, normal, overlay, normal;
}

[data-theme='aurora'][data-objects='on'][data-cat='books'] .spine b {
  max-height: 74%;
  overflow: hidden;
  writing-mode: vertical-rl;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 calc(var(--thick, 24px) * 0.4) / 1 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f4f1e8;
}

[data-theme='aurora'][data-objects='on'][data-cat='books'] .item.dc-light .spine b {
  color: #1b1711;
}

/* a box or a book leaves a soft shadow where it meets the glass */
[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .shade {
  display: block;
  position: absolute;
  left: -16%;
  right: 4%;
  bottom: -7px;
  z-index: -1;
  height: 13px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--shade) / 0.6), transparent);
  transition: transform 0.45s, opacity 0.45s;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .item:hover .shade {
  transform: scale(1.25, 1.6);
  opacity: 0.5;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .tier-drop {
  gap: 22px 20px;
  padding-left: 16px;
}

/* a box or a book comes forward when it is picked: the first row keeps room
   above it, or the panel would cut its top edge off */
[data-theme='aurora'][data-objects='on']:is([data-cat='film'], [data-cat='books']) .pool {
  gap: 20px 16px;
  padding-top: calc(var(--th) * var(--k, 1) * 0.05 + 16px);
  padding-left: 26px;
}

/* ---------- music: a record waiting in its sleeve ---------- */

[data-theme='aurora'][data-objects='on'][data-cat='music'] .item {
  margin-right: calc(var(--tw) * var(--k, 1) * 0.22);
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .book {
  isolation: isolate;
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .cov {
  border-radius: 2px;
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .book::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 3%;
  right: 3%;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #e9e4da 0 2.2%, rgb(var(--dc, 200 90 60)) 2.6% 17%, #0b0b0c 17.5% 18.5%, transparent 19%),
    conic-gradient(from 200deg, transparent 0deg, rgba(255, 255, 255, 0.34) 25deg, transparent 50deg, transparent 180deg, rgba(255, 255, 255, 0.2) 205deg, transparent 230deg),
    repeating-radial-gradient(circle, #18181c 0 1.1px, #30303a 1.5px 2.3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 8px 16px -6px rgba(0, 0, 0, 0.6);
  transform: translateX(25%);
  transition: transform 0.6s var(--ease);
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .item:is(:hover, :focus-visible) .book::after {
  transform: translateX(52%) rotate(150deg);
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .item:is(:hover, :focus-visible, .is-playing) {
  z-index: 3;
}

/* the play button sits on the bare vinyl. While it plays, the record comes most
   of the way out, lies over the next sleeve and turns; the stop button is its
   label. */
[data-theme='aurora'][data-objects='on'][data-cat='music'] .item > .play {
  top: calc(var(--th) * var(--k, 1) * 0.5 - 15px);
  left: calc(100% + var(--tw) * var(--k, 1) * 0.04);
  right: auto;
  width: 30px;
  height: 30px;
  transition: opacity 0.16s, transform 0.2s var(--ease), background-color 0.16s, color 0.16s, left 0.6s var(--ease);
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .item.is-playing > .play {
  left: calc(var(--tw) * var(--k, 1) * 1.177 - 15px);
}

[data-theme='aurora'][data-objects='on'][data-cat='music'] .item.is-playing .book::after {
  transform: translateX(72%) rotate(240deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 16px 28px -10px rgba(0, 0, 0, 0.8);
  animation: record-out 0.6s var(--ease), record-turn 2.4s linear 0.6s infinite;
}

@keyframes record-out {
  to {
    transform: translateX(72%) rotate(240deg);
  }
}

@keyframes record-turn {
  from {
    transform: translateX(72%) rotate(240deg);
  }
  to {
    transform: translateX(72%) rotate(600deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme='aurora'][data-objects='on'][data-cat='music'] .item.is-playing .book::after {
    animation: none;
  }
}

/* ---------- games and anime: the cover sits in a clear plastic case ---------- */

[data-theme='aurora'][data-objects='on']:is([data-cat='games'], [data-cat='anime']) .book {
  isolation: isolate;
}

/* the shell: a little larger than the paper insert, lit along its top edge */
[data-theme='aurora'][data-objects='on']:is([data-cat='games'], [data-cat='anime']) .book::after {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 20px -12px rgb(var(--shade) / 0.8);
}

[data-theme='aurora'][data-objects='on']:is([data-cat='games'], [data-cat='anime']) .cov {
  border-radius: 4px;
}

/* a gloss across the plastic that turns with the pointer */
[data-theme='aurora'][data-objects='on']:is([data-cat='games'], [data-cat='anime']) .item .cov::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.16) 44%, transparent 56%) var(--sx, 30%) 0 / 260% 100% no-repeat;
}

/* games: a cartridge. The cover is its label; the body is one piece of dark
   plastic carrying a hint of the cover's colour, with a thumb slot under the
   label. No platform band: a cartridge reads the same for every system. */
/* the room under the label belongs to the cartridge, so a caption sits below it */
[data-theme='aurora'][data-objects='on'][data-cat='games'] .book {
  --grip: calc(var(--th) * var(--k, 1) * 0.11);
  margin-top: 3px;
  margin-bottom: calc(var(--grip) + 5px);
}

[data-theme='aurora'][data-objects='on'][data-cat='games'] .book::after {
  inset: -7px -5px calc(-1 * var(--grip) - 5px) -5px;
  border-radius: 8px 8px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.28)),
    color-mix(in srgb, rgb(var(--dc, 70 76 96)) 16%, #1d1e26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 14px 22px -12px rgb(var(--shade) / 0.85);
}

/* the thumb slot */
[data-theme='aurora'][data-objects='on'][data-cat='games'] .book::before {
  content: '';
  position: absolute;
  z-index: 4;
  top: calc(100% + var(--grip) * 0.36);
  left: 31%;
  right: 31%;
  height: max(4px, calc(var(--grip) * 0.26));
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* the label is set into the plastic: no coloured cast, a hairline around it */
[data-theme='aurora'][data-objects='on'][data-cat='games'] .item .cov {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme='aurora'][data-appearance='light'][data-objects='on'][data-cat='games'] .book::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 24%, transparent 76%, rgba(40, 48, 90, 0.16)),
    color-mix(in srgb, rgb(var(--dc, 150 156 176)) 14%, #d6d9e2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(11, 12, 18, 0.08),
    inset 0 -2px 0 rgba(11, 12, 18, 0.14),
    0 14px 22px -12px rgb(var(--shade) / 0.5);
}

[data-theme='aurora'][data-appearance='light'][data-objects='on'][data-cat='games'] .book::before {
  background: rgba(11, 12, 18, 0.2);
  box-shadow: inset 0 1px 2px rgba(11, 12, 18, 0.35), 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme='aurora'][data-appearance='light'][data-objects='on'][data-cat='games'] .item .cov {
  box-shadow: 0 0 0 1px rgba(11, 12, 18, 0.28);
}

/* anime: a jewel case. The paper insert sits beside the hinge, a strip of
   smoked plastic with two ridges; the clear lid catches light across its
   top-left corner. */
[data-theme='aurora'][data-objects='on'][data-cat='anime'] .item {
  --hinge: calc(var(--tw) * var(--k, 1) * 0.11);
  margin-left: var(--hinge);
}

[data-theme='aurora'][data-objects='on'][data-cat='anime'] .book::after {
  left: calc(-3px - var(--hinge));
  inset-block: -3px;
  right: -3px;
  border-radius: 5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.05) 62%, rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(0, 0, 0, 0.22),
    0 14px 22px -12px rgb(var(--shade) / 0.85);
}

[data-theme='aurora'][data-objects='on'][data-cat='anime'] .book::before {
  content: '';
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  right: 100%;
  width: var(--hinge);
  border-radius: 3px 0 0 3px;
  background:
    linear-gradient(90deg, transparent 26%, rgba(0, 0, 0, 0.42) 26% 31%, rgba(255, 255, 255, 0.24) 31% 36%, transparent 36% 62%, rgba(0, 0, 0, 0.42) 62% 67%, rgba(255, 255, 255, 0.24) 67% 72%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 30%, rgba(0, 0, 0, 0.2)),
    rgba(16, 18, 26, 0.72);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

[data-theme='aurora'][data-objects='on'][data-cat='anime'] .cov {
  border-radius: 1px 3px 3px 1px;
}

/* the lid's standing reflection; the moving gloss still follows the pointer */
[data-theme='aurora'][data-objects='on'][data-cat='anime'] .item .cov::after {
  background:
    linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.16) 44%, transparent 56%) var(--sx, 30%) 0 / 260% 100% no-repeat,
    linear-gradient(128deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 20%, transparent 34%);
}

/* ---------- characters: cards with a foil that turns with the pointer ---------- */

[data-theme='aurora'][data-objects='on'][data-cat='characters'] .cov {
  border-radius: 10px;
}

[data-theme='aurora'][data-objects='on'][data-cat='characters'] .item .cov::after {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), inset 0 0 0 4px rgba(0, 0, 0, 0.25);
  background: linear-gradient(115deg, transparent 25%, rgba(255, 120, 220, 0.22) 38%, rgba(120, 220, 255, 0.24) 48%, rgba(180, 255, 160, 0.2) 58%, transparent 70%) var(--sx, 20%) 0 / 300% 100% no-repeat;
  mix-blend-mode: screen;
}

/* ---------- paper: photographs, postcards and stamps ----------
   People are photographs with the name printed on the wide margin under the
   picture; landmarks are postcards with the place in small capitals; countries
   are postage stamps with a perforated edge. Each is one sheet set down by
   hand: it leans a little (--tilt, per title) and straightens when it is
   picked up. In the dark room the sheet is dark card with a hint of the
   picture's colour and light lettering, so the picture stays the bright thing
   (white paper made every title a lamp); in the light appearance it is white
   paper. The sizes live on .book, so the copy that follows the pointer while
   dragging is dressed the same. */

[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .book {
  --edge: calc(var(--tw) * var(--k, 1) * 0.05);
  --lip: calc(var(--tw) * var(--k, 1) * 0.2);
  --paper: color-mix(in srgb, rgb(var(--dc, 70 76 96)) 12%, #1e2029);
  --paper-ink: rgba(245, 246, 250, 0.84);
  --paper-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%);
  --paper-rim: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  --print-edge: rgba(0, 0, 0, 0.5);
  isolation: isolate;
  margin-top: var(--edge);
  margin-bottom: var(--lip);
  rotate: var(--tilt, 0deg);
  transition: transform 0.5s var(--ease), rotate 0.5s var(--ease);
}

[data-theme='aurora'][data-objects='on'][data-cat='landmarks'] .book {
  --edge: calc(var(--tw) * var(--k, 1) * 0.045);
  --lip: calc(var(--tw) * var(--k, 1) * 0.125);
}

[data-theme='aurora'][data-objects='on'][data-cat='countries'] .book {
  --edge: calc(var(--tw) * var(--k, 1) * 0.07);
  --lip: calc(var(--tw) * var(--k, 1) * 0.15);
  --tooth: calc(var(--tw) * var(--k, 1) * 0.05);
  rotate: calc(var(--tilt, 0deg) * 0.6);
}

[data-theme='aurora'][data-appearance='light'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .book {
  --paper: #ffffff;
  --paper-ink: #1c1d24;
  --paper-sheen: none;
  --paper-rim: 0 0 0 1px rgb(var(--shade) / 0.1);
  --print-edge: rgba(11, 12, 18, 0.14);
}

/* the sheet itself */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .book::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--edge)) calc(-1 * var(--edge)) calc(-1 * var(--lip)) calc(-1 * var(--edge));
  border-radius: 2px;
  background: var(--paper-sheen), var(--paper);
  box-shadow: var(--paper-rim), 0 14px 22px -12px rgb(var(--shade) / 0.85);
}

/* a stamp: teeth along every edge. A mask would cut the sheet's own shadow off,
   so the shadow is cast by a plain rectangle under it. */
[data-theme='aurora'][data-objects='on'][data-cat='countries'] .book::after {
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--tooth)) calc(100% - var(--tooth)) no-repeat,
    radial-gradient(circle, transparent calc(var(--tooth) * 0.3), #000 calc(var(--tooth) * 0.3 + 0.5px)) calc(var(--tooth) / -2) calc(var(--tooth) / -2) / var(--tooth) var(--tooth) round;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--tooth)) calc(100% - var(--tooth)) no-repeat,
    radial-gradient(circle, transparent calc(var(--tooth) * 0.3), #000 calc(var(--tooth) * 0.3 + 0.5px)) calc(var(--tooth) / -2) calc(var(--tooth) / -2) / var(--tooth) var(--tooth) round;
}

[data-theme='aurora'][data-objects='on'][data-cat='countries'] .book::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--edge) + 3px) calc(-1 * var(--lip) + 3px) calc(-1 * var(--edge) + 3px);
  box-shadow: 0 12px 20px -8px rgb(var(--shade) / 0.85);
}

/* the picture on the paper: no coloured cast, a hairline where print meets margin */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item .cov {
  border-radius: 1px;
  box-shadow: 0 0 0 1px var(--print-edge);
}

/* a flag is printed whole: what is left of the stamp's window is a field of
   the flag's own colour, pale on white paper and deep on dark card */
[data-theme='aurora'][data-objects='on'][data-cat='countries'] .cov.fit-contain:not(.has-bg)::before {
  background: color-mix(in srgb, rgb(var(--dc, 70 76 96)) 24%, #15161c);
}

[data-theme='aurora'][data-appearance='light'][data-objects='on'][data-cat='countries'] .cov.fit-contain:not(.has-bg)::before {
  background: color-mix(in srgb, rgb(var(--dc, 70 76 96)) 16%, #f2f3f7);
}

/* the name, printed on the margin */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .spine {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--lip);
  min-width: 0;
  pointer-events: none;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .spine b {
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--paper-ink);
  font: 550 clamp(10px, calc(var(--tw) * var(--k, 1) * 0.105), 15px) / 1.1 var(--font-ui);
  letter-spacing: -0.01em;
}

/* a postcard names its place in small capitals, set to the left */
[data-theme='aurora'][data-objects='on'][data-cat='landmarks'] .spine {
  justify-content: flex-start;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='landmarks'], [data-cat='countries']) .spine b {
  font: 600 clamp(8px, calc(var(--tw) * var(--k, 1) * 0.062), 11.5px) / 1.1 var(--font-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* the name is on the paper: no second caption under or over the picture */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item .cap {
  display: none;
}

/* picked up, the sheet straightens */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item:is(:hover, :focus-visible) .book {
  rotate: 0deg;
}

/* selection and focus ring the whole sheet, not the picture inside it */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item:is(.is-selected, .is-match, :focus-visible) .cov {
  outline: 0;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item.is-match .book::after {
  outline: 3px solid var(--match);
  outline-offset: 3px;
}

[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .item:is(.is-selected, :focus-visible) .book::after {
  outline: 2px solid var(--sel);
  outline-offset: 3px;
}

/* the sheets overhang their pictures: the rows leave room for the paper */
[data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) :is(.tier-drop, .pool) {
  gap: 20px calc(var(--tw) * var(--k, 1) * 0.1 + 16px);
  padding-left: 14px;
}

[data-theme='aurora'][data-objects='on'][data-cat='countries'] :is(.tier-drop, .pool) {
  column-gap: calc(var(--tw) * var(--k, 1) * 0.14 + 16px);
}

@media (prefers-reduced-motion: reduce) {
  [data-theme='aurora'][data-objects='on']:is([data-cat='people'], [data-cat='landmarks'], [data-cat='countries']) .book {
    transition: none;
  }
}

/* ================= what opens over the page =================
   One veil for everything modal: the page behind is frosted, not blacked out. */

:root[data-theme='aurora'] {
  --veil: rgba(6, 7, 11, 0.5);
}

:root[data-theme='aurora'][data-appearance='light'] {
  --veil: rgba(238, 240, 246, 0.56);
}

[data-theme='aurora'] dialog::backdrop {
  background: var(--veil);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

/* ---------- quick rank: one cover in front of the frosted board ---------- */

[data-theme='aurora'] dialog.deck {
  background: transparent;
}

/* the board behind the card is blurred, dimmed and nearly drained of colour:
     its covers, smeared, would tint the room brown or green */
[data-theme='aurora'] dialog.deck::backdrop {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(38px) saturate(0.35);
  backdrop-filter: blur(38px) saturate(0.35);
}

/* the frosted board is the whole backdrop: a blurred copy of the cover behind
   the card turned the room the cover's colour (brown, for an orange one) */
[data-theme='aurora'] .deck-glow {
  display: none;
}

[data-theme='aurora'] .deck-progress-text {
  font: 600 15px/1 var(--font-ui);
  letter-spacing: -0.01em;
}

[data-theme='aurora'] .deck-bar {
  height: 4px;
  border-radius: 4px;
}

[data-theme='aurora'] .deck-bar span {
  border-radius: 4px;
}

[data-theme='aurora'] .deck-frame {
  border-radius: 6px;
  background: var(--well);
  box-shadow: 0 50px 90px -30px rgb(var(--shade) / 0.9), inset 0 0 0 1px var(--rim-soft);
}

[data-theme='aurora'] .deck-name {
  font: 650 clamp(26px, 3vw, 40px) / 1.05 var(--font-display);
  letter-spacing: -0.04em;
}

/* a title without a picture: the same lit card it is on the board */
[data-theme='aurora'] .deck-textcover {
  place-items: end start;
  padding: 9%;
  background: linear-gradient(160deg, hsl(var(--hue, 220) 46% 30%), hsl(var(--hue, 220) 48% 14%));
  font: 650 clamp(22px, 10cqh, 52px) / 1.06 var(--font-display);
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: none;
}

[data-theme='aurora'] :is(.deck-meta, .deck-foot) {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

[data-theme='aurora'] .deck-rail {
  gap: 8px;
}

/* the tiers to choose from are the same chips as on the board */
[data-theme='aurora'] .deck-tier {
  min-width: 200px;
  padding: 11px 14px 11px 16px;
  border-radius: 20px;
  background: var(--tc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 26px -18px rgb(var(--shade) / 0.9);
  transition: transform 0.25s var(--ease);
}

[data-theme='aurora'] .deck-tier:is(:hover, :focus-visible) {
  transform: translateX(-6px) scale(1.02);
}

[data-theme='aurora'] .deck-tier-label {
  font: 700 26px/1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] .deck-tier-count {
  font: 500 12.5px/1 var(--font-mono);
}

[data-theme='aurora'] .deck-tier kbd {
  background: color-mix(in srgb, var(--tc-ink) 14%, transparent);
  color: inherit;
}

[data-theme='aurora'] .deck-skip {
  background: var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft);
  color: var(--ink);
}

[data-theme='aurora'] .deck-skip .deck-tier-label {
  font-size: 17px;
  letter-spacing: -0.02em;
}

[data-theme='aurora'] .deck-done h2 {
  font: 650 clamp(32px, 4vw, 54px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

/* ---------- the large view of one title ---------- */

[data-theme='aurora'] .spotlight {
  background: var(--veil);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
}

[data-theme='aurora'] .spot-card {
  align-items: stretch;
  gap: 28px;
  padding: 14px 32px 14px 14px;
  border-radius: 24px;
}

[data-theme='aurora'] .spot-card.is-wide {
  gap: 18px;
  padding: 14px 14px 22px;
}

[data-theme='aurora'] .spot-card.is-wide .spot-caption {
  align-self: stretch;
}

[data-theme='aurora'] .spot-media {
  border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgb(var(--shade) / 0.9);
}

/* leaning, its shadow falls from the edge that is raised */
[data-theme='aurora'] .spot-media.is-leaning {
  box-shadow: calc(var(--tx, 0) * -26px) calc(30px + var(--ty, 0) * -20px) 60px -24px rgb(var(--shade) / 0.9);
}

/* The panel stands over a room that is already dimmed and blurred, so it can
   be clearer than a menu: dense under the cover, clear where the words are,
   and lit by the cover's own colour (--dc, sampled from the picture). Solid,
   as every other panel, where glass was turned down or cannot be drawn. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme='aurora']:not([data-transparency='reduced']) .spot-card {
    --cast: 0.24;
    background:
      linear-gradient(135deg, var(--sheen), transparent 36%),
      radial-gradient(72% 115% at 24% 52%, rgb(var(--dc, 128 132 160) / var(--cast)), transparent 74%),
      linear-gradient(100deg, var(--glass-float), color-mix(in srgb, var(--glass-float) 56%, transparent) 54%, color-mix(in srgb, var(--glass-float) 34%, transparent));
  }

  [data-theme='aurora']:not([data-transparency='reduced']) .spot-card.is-wide {
    background:
      linear-gradient(135deg, var(--sheen), transparent 36%),
      radial-gradient(110% 70% at 50% 26%, rgb(var(--dc, 128 132 160) / var(--cast)), transparent 74%),
      linear-gradient(180deg, var(--glass-float), color-mix(in srgb, var(--glass-float) 56%, transparent) 60%, color-mix(in srgb, var(--glass-float) 38%, transparent));
  }

  [data-theme='aurora'][data-appearance='light']:not([data-transparency='reduced']) .spot-card {
    --cast: 0.18;
  }
}

[data-theme='aurora'] .spot-caption {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* the title leads; "legendary" is one of the facts under it, not a label above it */
[data-theme='aurora'] .spot-name {
  order: -1;
}

[data-theme='aurora'] .spot-legend {
  margin: 12px 0 0;
}

[data-theme='aurora'] .spot-name {
  font: 650 clamp(28px, 3.4vw, 46px) / 1.02 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

[data-theme='aurora'] :is(.spot-facts, .spot-where, .edit-where) {
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

[data-theme='aurora'] :is(.spot-where, .edit-where) {
  font-size: 12.5px;
}

[data-theme='aurora'] .spot-genres span {
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 0 0 1px var(--rim-soft);
}

[data-theme='aurora'] .spot-links a {
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft);
}

@media (max-width: 760px) {
  [data-theme='aurora'] .spot-card {
    padding: 12px 12px 22px;
    border-radius: 26px;
  }
}

/* ---------- choosing what a list is about: each kind is a pane of its room's
   light, with its sign drawn in that light and its name set on the glass ---------- */

[data-theme='aurora'] .room-tile {
  position: relative;
  isolation: isolate;
  align-content: end;
  gap: 3px;
  min-height: 128px;
  /* the top is the sign's: words that run to three lines make the pane taller, they do not climb under it */
  padding: 56px 16px 15px;
  border-radius: 20px;
  transition: transform 0.4s var(--ease);
}

[data-theme='aurora'] .room-box {
  position: absolute;
  inset: 0;
  z-index: -1;
  aspect-ratio: auto;
  margin: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 130% at 8% 0%, rgb(var(--l0) / 0.62), transparent 64%),
    radial-gradient(90% 100% at 100% 100%, rgb(var(--l1) / 0.34), transparent 68%),
    #0a0b10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 30px -20px rgb(var(--shade) / 0.9);
  filter: saturate(0.95) brightness(0.96);
  transition: filter 0.3s;
}

/* the miniature props belong to Material */
[data-theme='aurora'] .room-box::before,
[data-theme='aurora'] .room-box::after,
[data-theme='aurora'] .room-prop {
  display: none;
}

/* the sign of the kind: a line drawing that glows in the room's own colour */
[data-theme='aurora'] .room-emblem {
  position: absolute;
  top: 15px;
  left: 15px;
  display: block;
  width: 30px;
  height: 30px;
  color: color-mix(in srgb, rgb(var(--l0)) 42%, #fff);
  filter: drop-shadow(0 0 10px rgb(var(--l0) / 0.8));
  transition: transform 0.4s var(--ease);
}

[data-theme='aurora'] .room-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

[data-theme='aurora'] .room-blurb {
  display: block;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  font: 400 12.5px/1.3 var(--font-ui);
}

[data-theme='aurora'] .room-tile:is(:hover, :focus-visible) {
  transform: translateY(-3px);
}

[data-theme='aurora'] .room-tile:is(:hover, :focus-visible) .room-box {
  filter: none;
}

[data-theme='aurora'] .room-tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[data-theme='aurora'] .room-tile:active {
  transform: scale(0.98);
}

/* as a choice among twelve: the chosen pane is lit and ringed, the rest wait a step back */
[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false'] .room-box {
  filter: saturate(0.82) brightness(0.86);
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false'] :is(.room-name, .room-emblem) {
  opacity: 0.9;
}

/* a pane among twelve answers the pointer with light, not by stepping out of its row */
[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile:is(:hover, :focus-visible) {
  transform: none;
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false']:is(:hover, :focus-visible) .room-box {
  filter: brightness(1.08);
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='true'] .room-emblem {
  color: #fff;
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false']:hover :is(.room-name, .room-emblem) {
  opacity: 1;
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='true'] .room-box {
  filter: none;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* on the light page a room is a pane of paper with its light on it, not a black box */
[data-theme='aurora'][data-appearance='light'] .room-box {
  background:
    radial-gradient(90% 120% at 18% 0%, rgb(var(--l0) / 0.55), transparent 68%),
    radial-gradient(70% 90% at 100% 100%, rgb(var(--l1) / 0.34), transparent 70%),
    #f7f8fc;
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(22, 26, 44, 0.08), 0 16px 28px -22px rgba(34, 44, 86, 0.5);
  filter: none;
}

/* Thirteen kinds do not stand in even rows. The twelve that name a subject are
   panes; "Other", which names none, is a low bar across under them. */
[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 2px 12px;
  min-height: 60px;
  padding: 12px 16px;
}

[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] .room-emblem {
  position: static;
  width: 26px;
  height: 26px;
}

/* the sign stands in the bar's first column; it is drawn inside the pane of light, which spans the bar */
[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] .room-box {
  display: flex;
  align-items: center;
  padding-left: 16px;
}

[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] :is(.room-name, .room-blurb) {
  grid-column: 2;
  padding-left: 38px;
}

[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] .room-name {
  grid-column: 1 / -1;
}

[data-theme='aurora'] .lobby-rooms .room-tile[data-cat='other'] .room-blurb {
  grid-column: 1 / -1;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-tile[data-cat='other'] {
  min-height: 48px;
  padding: 10px 12px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-tile[data-cat='other'] .room-box {
  padding-left: 12px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-tile[data-cat='other'] .room-emblem {
  width: 22px;
  height: 22px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-tile[data-cat='other'] .room-name {
  padding-left: 32px;
}

/* on paper the sign is ink of the room's colour, not a glow */
[data-theme='aurora'][data-appearance='light'] .room-emblem {
  color: color-mix(in srgb, rgb(var(--l0)) 58%, #171b2c);
  filter: none;
}

[data-theme='aurora'][data-appearance='light'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false'] .room-box {
  filter: saturate(0.75) opacity(0.82);
}

[data-theme='aurora'][data-appearance='light'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='true'] .room-box {
  filter: none;
}

[data-theme='aurora'][data-appearance='light'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='true'] .room-emblem {
  color: var(--ink);
}

/* in a dialog the kinds are a choice among twelve, not a wall: six to a row, low panes */
[data-theme='aurora'] .lobby-rooms.is-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-tile {
  min-height: 86px;
  padding: 44px 10px 11px 12px;
  border-radius: 16px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-emblem {
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-name {
  font-size: 13px;
}

[data-theme='aurora'] .lobby-rooms.is-compact .room-blurb {
  display: none;
}

@media (max-width: 700px) {
  [data-theme='aurora'] .lobby-rooms.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- on the home page the kinds wait quietly ----------
   Twelve panes, each lit in its own colour, were a wall of sweets on a page
   whose only colour is its covers and its mark. Here a pane is the page's own
   glass with a breath of its room's colour under it, and the room's light
   comes on when the pane is pointed at or reached with the keyboard: the
   colour is the pane's answer, not its decoration. (In the New list dialog the
   same panes are a choice among twelve, and the chosen one stays lit.) */
[data-theme='aurora'] .lib-first {
  border: 0;
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft);
}

/* the names stand on one line across a row, however far the words under them run */
[data-theme='aurora'] .lib-first .room-tile:not([data-cat='other']) {
  align-content: start;
}

[data-theme='aurora'] .lib-first .room-box {
  filter: none;
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft);
}

/* the veil over a pane's light: all but drawn while it waits, lifted when it is pointed at (and, where the panes
   are a choice among twelve, from the one that is chosen) */
[data-theme='aurora'] :is(.lib-first, .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false']) .room-box::before {
  content: '';
  position: absolute;
  inset: 0;
  /* (under the sign, over the pane's light) */
  z-index: -1;
  display: block;
  /* (another theme draws a floor with this: none of its shape is wanted here) */
  height: auto;
  clip-path: none;
  border-radius: inherit;
  background: #0d0f15;
  opacity: 0.8;
  transition: opacity 0.4s var(--ease);
}

[data-theme='aurora'][data-appearance='light'] :is(.lib-first, .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false']) .room-box::before {
  background: #f7f8fc;
  opacity: 0.82;
}

[data-theme='aurora'] .lib-first .room-tile:is(:hover, :focus-visible, :active) .room-box::before,
[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false']:is(:hover, :focus-visible, :active) .room-box::before {
  opacity: 0.35;
}

[data-theme='aurora'] .lib-first .room-tile:is(:hover, :focus-visible, :active) .room-box::before {
  opacity: 0;
}

/* (the veil does the stepping back that a filter did for the panes not chosen) */
[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false'] .room-box {
  filter: none;
}

[data-theme='aurora'] .lobby-rooms[role='radiogroup'] .room-tile[aria-checked='false'] .room-emblem {
  color: var(--ink-2);
  filter: none;
}

/* the sign is ink while the pane waits, and takes the room's colour with the light */
[data-theme='aurora'] .lib-first .room-emblem {
  color: var(--ink-2);
  filter: none;
  transition: color 0.3s, filter 0.3s, transform 0.4s var(--ease);
}

[data-theme='aurora'] .lib-first .room-tile:is(:hover, :focus-visible, :active) .room-emblem {
  color: color-mix(in srgb, rgb(var(--l0)) 42%, #fff);
  filter: drop-shadow(0 0 10px rgb(var(--l0) / 0.8));
}

[data-theme='aurora'][data-appearance='light'] .lib-first .room-tile:is(:hover, :focus-visible, :active) .room-emblem {
  color: color-mix(in srgb, rgb(var(--l0)) 58%, #171b2c);
  filter: none;
}

[data-theme='aurora'] .room-name {
  font: 600 15px/1.2 var(--font-display);
  letter-spacing: -0.02em;
  font-style: normal;
}

[data-theme='aurora'] .room-kind {
  display: none;
}

/* ---------- legends: gold that shimmers ----------
   The gilded edge stays; a band of light crosses the cover every few seconds
   (each legend on its own beat, --sd is set per item). Only ranked legends
   move; the ones still waiting in the panel stay still. */

[data-theme='aurora'] .item.is-legend .foil::after {
  padding: 2px;
  background: linear-gradient(135deg, #fff4c8 0%, #e9bd4f 20%, #a8761a 46%, #f6dd8e 70%, #c3922f 100%);
}

[data-theme='aurora'] .item.is-legend .cov {
  box-shadow: 0 0 0 1px rgba(60, 40, 0, 0.4), 0 18px 34px -16px rgba(233, 189, 79, 0.55), 0 3px 8px -2px rgb(var(--shade) / 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  /* about once a minute the light crosses the ranked legends within a moment
     of one another (--sd, up to 2.5s), then the board is still again. The
     editor adds .is-glinting for that moment only: an animation left running
     on every legend would keep a compositor layer alive on each of them. */
  [data-theme='aurora'] .tier-drop .item.is-legend.is-glinting .foil::before {
    animation: foil-sweep 1.8s cubic-bezier(0.45, 0, 0.2, 1) var(--sd, 0s) backwards;
  }

  [data-theme='aurora'] .edit-dialog.is-legend .edit-preview::before {
    animation: legend-breath 7s ease-in-out infinite;
  }

  [data-theme='aurora'] .item.is-legend:hover .foil::before {
    animation: foil-sweep 1.1s cubic-bezier(0.45, 0, 0.2, 1);
  }
}

/* the edit dialog: a legend stands in soft gold light, not in rays */
[data-theme='aurora'] .edit-dialog.is-legend .edit-preview::before {
  width: 390px;
  background: radial-gradient(closest-side, rgba(233, 189, 79, 0.62), rgba(233, 189, 79, 0.46) 44%, rgba(233, 189, 79, 0.17) 63%, rgba(233, 189, 79, 0.04) 76%, transparent 86%);
  mask-image: none;
}

@keyframes legend-breath {
  50% {
    opacity: 0.6;
    scale: 1.07;
  }
}

/* a legend lands: the cover lifts once, and its reason is named on a small
   plate of glass with a gold hairline (no gold slab, no bounce) */
[data-theme='aurora'] .item.is-crowned .cov {
  animation: aurora-crowned 0.9s var(--ease);
}

@keyframes aurora-crowned {
  30% {
    transform: scale(1.07);
  }
}

[data-theme='aurora'] .legend-ribbon {
  gap: 5px;
  padding: 10px 18px 11px;
  border-radius: 16px;
  background: var(--glass-solid);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(233, 189, 79, 0.55), inset 0 1px 0 var(--sheen), 0 18px 40px -18px rgb(var(--shade) / 0.9);
  animation: aurora-ribbon 2.3s var(--ease) forwards;
}

[data-theme='aurora'] .legend-ribbon b {
  color: #e9bd4f;
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.2em;
}

[data-theme='aurora'][data-appearance='light'] .legend-ribbon b {
  color: #8a5d0c;
}

[data-theme='aurora'] .legend-ribbon span {
  margin: 0;
  font: 550 13px/1.2 var(--font-ui);
}

@keyframes aurora-ribbon {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  12%,
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- content leaves under the floating bar ---------- */

/* what scrolls up passes behind the bar's glass and is gone before the edge of
   the window, instead of showing again in the gap above the bar */
[data-theme='aurora'] :is(.library, .editor) {
  position: relative;
}

[data-theme='aurora'] :is(.library, .editor)::before {
  content: '';
  position: absolute;
  z-index: 29;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--gap) + 30px);
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 62%, transparent) 46%, transparent);
  pointer-events: none;
}

/* ---------- Add items: the add badge is glass; only "added" is filled ---------- */

[data-theme='aurora'] .wiki-add {
  background: rgb(12 13 18 / 0.72);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), 0 6px 14px -4px rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
}

[data-theme='aurora'] .wiki-card.is-added .wiki-add {
  background: var(--ok);
  color: #06140b;
  box-shadow: none;
}

/* ---------- people: profile, friends, achievements ---------- */

[data-theme='aurora'] .social-main {
  max-width: 1180px;
}

[data-theme='aurora'] .profile-heading {
  padding-bottom: 0;
  border-bottom: 0;
}

[data-theme='aurora'] .profile-avatar {
  border: 0;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--sheen), transparent 40%), var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft);
  color: var(--ink);
  font: 600 38px/1 var(--font-display);
}

[data-theme='aurora'] .person-link .profile-avatar {
  border-radius: 18px;
  font-size: 20px;
}

[data-theme='aurora'] .profile-identity h1 {
  margin: 8px 0 12px;
  font: 650 clamp(34px, 4.4vw, 56px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] .profile-handle {
  font: 500 12.5px/1 var(--font-mono);
  color: var(--ink-3);
}

/* the public page (/u/) keeps its numbers as plain facts in one line, not a scoreboard */
[data-theme='aurora'] .public-profile .profile-summary {
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 22px 0 46px;
  font: 500 13.5px/1.4 var(--font-ui);
  color: var(--ink-3);
}

[data-theme='aurora'] .public-profile .profile-summary > span {
  display: inline;
  font-size: inherit;
  text-transform: lowercase;
}

[data-theme='aurora'] .public-profile .profile-summary b {
  margin-right: 6px;
  font: 600 13.5px/1.4 var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

[data-theme='aurora'] .public-profile .profile-summary > small {
  flex-basis: auto;
  margin-left: 0;
  font-size: inherit;
}

/* the parts are spaced, not dotted: a line that wraps never starts with a separator */
[data-theme='aurora'] .public-profile .profile-summary > * + *::before {
  content: none;
}

/* a member's profile: the numbers are plain facts, each with what it counts under it */
[data-theme='aurora'] .profile-page:not(.public-profile) .profile-summary {
  gap: 14px 22px;
  margin: 22px 0 16px;
  font: 500 13.5px/1.4 var(--font-ui);
  color: var(--ink-3);
}

[data-theme='aurora'] .profile-page:not(.public-profile) .profile-summary > span b {
  font: 600 24px/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

[data-theme='aurora'] .profile-page:not(.public-profile) .profile-summary > small {
  font-size: inherit;
}

/* one title for the page, a clear step down for its sections */
[data-theme='aurora'] .social-section-head h1 {
  font: 650 clamp(34px, 4.4vw, 56px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

[data-theme='aurora'] :is(.social-section-head h2, .social-section > h2) {
  font: 600 21px/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

[data-theme='aurora'] .social-section > h2 {
  margin-bottom: 14px;
}

[data-theme='aurora'] .social-section > .field[type='search'] {
  width: min(560px, 100%);
  height: 52px;
  padding: 0 20px 0 50px;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868b9b' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px 50%;
  background-size: 20px;
}

[data-theme='aurora'] :is(.achievement, .person-card, .medal-showcase, .profile-featured, .catalogue, .taste, .match-tray, .lib-you) {
  border: 0;
  border-radius: 24px;
  background: var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), var(--shadow-card);
}

[data-theme='aurora'] .achievement.is-earned {
  background: linear-gradient(160deg, var(--sheen), transparent 46%), var(--glass-tray);
}

[data-theme='aurora'] .achievement h3 {
  font: 600 18px/1.25 var(--font-display);
  letter-spacing: -0.025em;
}[data-theme='aurora'] .achievement > small{
  font: 500 11.5px/1.4 var(--font-mono);
  color: var(--ink-3);
}

[data-theme='aurora'] :is(.history-title, .history-result) > img {
  border-radius: 3px;
}

@media (max-width: 560px) {
  /* a phone: three covers to a row, and two ranks stay in sight above the
     unranked sheet (the per-tier cover scale is one size here) */
  [data-theme='aurora'] :is(.tier, .pool) {
    --k: 0.62 !important;
  }

  [data-theme='aurora'] .ed-main {
    grid-template-rows: minmax(0, 1fr) min(40vh, 400px);
  }

  [data-theme='aurora'] .selbar {
    bottom: calc(min(40vh, 400px) + 12px);
  }

  [data-theme='aurora'] .room-heading {
    padding: 2px 8px 10px;
  }

  [data-theme='aurora'] .room-heading h1 {
    font-size: 20px;
  }

  [data-theme='aurora'] .tier {
    padding: 8px 8px 10px;
  }

  [data-theme='aurora'] .tier-drop {
    padding: 4px;
    gap: 10px 8px;
  }

  [data-theme='aurora'] .pool {
    gap: 12px 8px;
    padding: 8px 12px 20px;
  }
}

/* ---------- small things ---------- */

/* a cover of another shape than its tile sits on a matte of its own colour,
   like a printed insert, instead of on a blurred copy of itself */
[data-theme='aurora'] .cov.fit-contain:not(.has-bg)::before {
  inset: 0;
  background: color-mix(in srgb, rgb(var(--dc, 40 44 60)) 30%, #0b0c12);
  filter: none;
}

/* the clear control of a search field in the same thin stroke as the other icons */
[data-theme='aurora'] input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.6;
  cursor: pointer;
}

/* ---------- Insights: the chart sits in a tray of glass ---------- */

[data-theme='aurora'] .ed-main:is([data-view='insights'], [data-view='overview'], .is-finished) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  padding-right: 0;
}

[data-theme='aurora'] .room-actions .segmented button {
  height: 36px;
}

[data-theme='aurora'] .insights {
  padding: 0 10px 40px;
}

[data-theme='aurora'] .ins-rows {
  padding: 10px;
  border-radius: var(--r-panel);
  background: var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), 0 26px 50px -38px rgb(var(--shade) / 0.7);
}

[data-theme='aurora'] .ins-head {
  border-radius: 16px;
}

/* the help button is a small pane of the same glass as the bars */
[data-theme='aurora'] .help-dock {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft), 0 18px 30px -18px rgb(var(--shade) / 0.9);
}

/* a friend's list: the bar floats, so the board takes the whole height and
   keeps its own room under the bar, as the editor's board does */
[data-theme='aurora'] .shared-view {
  grid-template-rows: 0 minmax(0, 1fr);
}

/* friends lately: the same tray of rows */
[data-theme='aurora'] .feed {
  padding: 8px;
  border-radius: var(--r-panel);
  background: var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), 0 26px 50px -38px rgb(var(--shade) / 0.7);
}

[data-theme='aurora'] .feed-row {
  border-radius: 16px;
}

[data-theme='aurora'] .feed-who .profile-avatar {
  border-radius: 12px;
  font-size: 15px;
}

/* the dots' own tray; the ring around a dot is the tray's colour over the ground */
[data-theme='aurora'] .ins-swarm {
  --ins-surface: #14151b;
  padding: 12px 10px;
  border-radius: var(--r-panel);
  background: var(--glass-tray);
  box-shadow: inset 0 1px 0 var(--rim-soft), inset 0 0 0 1px var(--rim-soft), 0 26px 50px -38px rgb(var(--shade) / 0.7);
}

[data-theme='aurora'][data-appearance='light'] .ins-swarm {
  --ins-surface: #f4f5f9;
}

[data-theme='aurora'] .ins-pick {
  border-radius: 16px;
}

[data-theme='aurora'] .ins-pick-name {
  font: 600 14.5px/1.2 var(--font-ui);
  letter-spacing: -0.01em;
}

[data-theme='aurora'] .ins-label {
  font: 600 14.5px/1.2 var(--font-ui);
  letter-spacing: -0.01em;
}

[data-theme='aurora'] .ins-more {
  justify-self: start;
  color: var(--ink-2);
  font-weight: 600;
}

[data-theme='aurora'] .ins-empty h2 {
  font: 600 24px/1.15 var(--font-display);
  letter-spacing: -0.03em;
}

/* a dropdown is a well with no border: hovering it brightens its rim instead */
[data-theme='aurora'] select.field:hover:not(:disabled, :focus) {
  box-shadow: inset 0 1px 2px rgb(var(--shade) / 0.35), inset 0 0 0 1px var(--rim);
}

/* the list a <select> opens is floating glass too */
@supports (appearance: base-select) {
  [data-theme='aurora'] select.field::picker(select) {
    border: 0;
    border-radius: 18px;
    background: var(--glass-float);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-soft), 0 18px 40px -18px rgb(var(--shade) / 0.9);
  }

  [data-theme='aurora'] select.field option {
    border-radius: 12px;
    font: 500 14px/1 var(--font-ui);
  }

  [data-theme='aurora'] select.field option:checked {
    font-weight: 700;
  }
}
