/* Selected page layouts: home and map details use the cover gallery; creators use work shelves. All selectors stay within those pages. */

body:is([data-page="home"], [data-page="detail"]) .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
}

body[data-page="detail"] .detail-credit-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

body[data-page="home"] .entry-section-label {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
}

body[data-page="home"] .home-hero {
  border: 2px solid var(--edge);
}
body[data-page="home"] .hero-stage {
  height: 410px;
  overflow: visible;
  z-index: 5;
}
body[data-page="home"] .party-scene {
  overflow: hidden;
}
body[data-page="home"] .hero-stage::after {
  pointer-events: none;
}
body[data-page="home"] .hero-sign {
  padding-top: 30px;
}
body[data-page="home"] .hero-sign > img {
  width: 346px;
}
body[data-page="home"] .hero-sign h1 {
  font-size: 33px;
}
body[data-page="home"] .party-person {
  bottom: 24px;
}
body[data-page="home"] .party-xty {
  height: 226px;
}
body[data-page="home"] .party-swk {
  height: 224px;
}
body[data-page="home"] .party-zzl {
  height: 199px;
}
body[data-page="home"] #home-search-form {
  position: absolute;
  z-index: 20;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 55%;
  background: var(--raised);
  box-shadow: 4px 4px #17201750;
}
body[data-page="home"] .hero-dock {
  display: flex;
  justify-content: space-between;
  padding: 17px 24px;
  gap: 16px;
}
body[data-page="home"] .hero-counts {
  padding: 0;
  border: 0;
  gap: 22px;
}
body[data-page="home"] .hero-counts strong {
  font-size: 19px;
}
body[data-page="home"] .home-recent {
  margin-top: 30px;
}
body[data-page="home"] .exhibit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
body[data-page="home"] .map-banners {
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
body[data-page="home"] .map-banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
}
body[data-page="home"] .map-banner:first-child {
  grid-row: span 2;
  min-height: 0;
}
body[data-page="home"] .map-banner::before {
  display: none;
}
body[data-page="home"] .banner-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  color: #fffef2;
  background: #202925;
}
body[data-page="home"] .map-banner:first-child .banner-visual {
  min-height: 350px;
}
body[data-page="home"] .banner-visual > :is(img, .cover-placeholder) {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: scale 0.35s;
}
body[data-page="home"] .banner-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #172218ed, #17221830 48%, transparent 75%);
}
body[data-page="home"]
  .map-banner:is(:hover, :focus-visible)
  .banner-visual
  > img {
  scale: 1.025;
}
body[data-page="home"] .banner-content {
  padding-right: 44px;
}
body[data-page="home"] .map-banner h3 {
  font-size: 22px;
  margin: 8px 0 0;
}
body[data-page="home"] .map-banner:first-child h3 {
  font-size: 29px;
}
body[data-page="home"] .banner-category {
  background: #243821df;
}
body[data-page="home"] .banner-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 2px solid var(--edge);
  background: var(--surface);
}
body[data-page="home"] .banner-authors {
  gap: 6px;
  color: var(--ink);
}
body[data-page="home"] .banner-author {
  gap: 5px;
  padding: 3px 6px 3px 3px;
  border: 1px solid var(--line);
  background: var(--raised);
  font-size: 12px;
}
body[data-page="home"] .banner-author .avatar {
  width: 20px;
  height: 20px;
  box-shadow: none;
}
body[data-page="home"] .banner-replays {
  color: var(--muted);
  font-size: 12px;
  text-shadow: none;
}
body[data-page="home"] .banner-arrow {
  position: absolute;
  right: 17px;
  bottom: 17px;
  width: 36px;
  height: 36px;
}
body[data-page="home"] .home-bottom {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}
body[data-page="home"] .home-entry {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 124px;
  align-items: center;
  gap: 18px;
  min-height: 146px;
  padding: 16px 22px;
}
body[data-page="home"] .home-entry > div {
  min-width: 0;
  padding-right: 0;
}
body[data-page="home"] .home-entry h2 {
  font-size: 24px;
}
body[data-page="home"] .home-entry p {
  font-size: 14px;
}
body[data-page="home"] .entry-item {
  width: 55px;
  height: 55px;
}
body[data-page="home"] .entry-item img {
  width: 42px;
  height: 42px;
}
body[data-page="home"] .entry-character {
  position: static;
  height: 124px;
  width: 124px;
  max-width: 100%;
  object-fit: contain;
}
body[data-page="home"] .home-entry:hover .entry-character {
  translate: 0 -3px;
  rotate: 3deg;
}
body[data-page="detail"] .back-link {
  margin-bottom: 17px;
  font-size: 14px;
}
body[data-page="detail"] .map-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  box-shadow: 3px 4px var(--shade);
  border-width: 2px;
}
body[data-page="detail"] .detail-cover {
  display: flex;
  align-items: center;
  border-bottom: 0;
  border-right: 2px solid var(--edge);
  background: var(--media-stage);
  min-height: 300px;
}
body[data-page="detail"] .detail-cover > img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}
body[data-page="detail"] .detail-summary {
  padding: 25px 25px 27px;
  min-width: 0;
  align-self: center;
}
body[data-page="detail"] .detail-heading {
  display: block;
}
body[data-page="detail"] .detail-summary h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-top: 14px;
}
body[data-page="detail"] .detail-categories {
  gap: 7px;
}
body[data-page="detail"] .detail-categories .tag {
  font-size: 12px;
  min-height: 31px;
  padding: 4px 9px;
  box-shadow: none;
  border-width: 1px;
}
body[data-page="detail"] .detail-facts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px;
  font-size: 13px;
  text-align: left;
}
body[data-page="detail"] .detail-facts strong {
  font-size: 19px;
}
body[data-page="detail"] .detail-authors {
  margin-top: 8px;
  gap: 8px 11px;
}
body[data-page="detail"] .detail-authors > .creator-signature {
  font-size: 13px;
  padding: 4px;
  border: 0;
  background: none;
  box-shadow: none;
}
body[data-page="detail"] .detail-authors .avatar {
  width: 25px;
  height: 25px;
}
body[data-page="detail"] .detail-actions {
  margin-top: 20px;
  gap: 9px;
}
body[data-page="detail"] .detail-actions .button {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 13px;
  gap: 7px;
}
body[data-page="detail"] .detail-actions .text-link {
  font-size: 13px;
  order: 5;
  flex-basis: 100%;
}
body[data-page="detail"] .episodes {
  margin-top: 29px;
}
body[data-page="detail"] .episode-text strong {
  font-size: 16px;
}
body[data-page="detail"] .detail-eyebrow {
  margin-bottom: 15px;
}
body[data-page="detail"] .map-intro {
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  box-shadow: none;
  background: none;
  border: 0;
  align-items: start;
}
body[data-page="detail"] .detail-cover {
  min-height: 0;
  border: 3px solid var(--edge);
  padding: 5px;
  box-shadow: 5px 5px var(--shade);
}
body[data-page="detail"] .detail-cover > img {
  max-height: none;
}
body[data-page="detail"] .detail-summary {
  align-self: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 24px;
}
body[data-page="detail"] .detail-actions {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
body[data-page="detail"] .episodes {
  padding-top: 10px;
  margin-top: 36px;
}
body[data-page="authors"] .page-heading {
  margin-bottom: 22px;
  padding-bottom: 17px;
  box-shadow: none;
}
body[data-page="authors"] .heading-text h1 {
  font-size: 34px;
}
body[data-page="authors"] .heading-text p {
  font-size: 14px;
  margin-top: 6px;
}
body[data-page="authors"] .results-bar {
  margin: 20px 0;
}
body[data-page="authors"] .author-grid {
  gap: 22px;
}
body[data-page="authors"] .author-card {
  padding: 20px 20px 0;
  background: var(--texture), var(--surface);
  box-shadow: 4px 4px var(--shade);
  border-top: 4px solid var(--accent);
}
body[data-page="authors"] .author-card-heading {
  gap: 14px;
  padding-bottom: 17px;
}
body[data-page="authors"] .author-card .avatar {
  width: 56px;
  height: 56px;
}
body[data-page="authors"] .author-card h2 {
  font-size: 23px;
}
body[data-page="authors"] .mcid {
  font-size: 13px;
}
body[data-page="authors"] .author-workbench {
  display: block;
  padding: 14px 0;
}
body[data-page="authors"] .author-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
body[data-page="authors"] .author-shelf > div {
  min-width: 0;
  border: 1px solid var(--edge);
  padding: 2px;
  background: var(--paper);
}
body[data-page="authors"] .author-shelf img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/11;
  object-fit: cover;
}
body[data-page="authors"] .author-shelf-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
body[data-page="authors"] .author-count {
  margin: 0 -20px;
  padding: 11px 17px;
}

@media (max-width: 960px) {
  body[data-page="home"] .hero-dock {
    flex-wrap: wrap;
  }
  body[data-page="home"] .map-banner:first-child h3 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-stage {
    height: 285px;
  }
  body[data-page="home"] .hero-sign {
    width: 72%;
    padding-top: 19px;
  }
  body[data-page="home"] .hero-sign > img {
    width: 235px;
  }
  body[data-page="home"] .hero-sign h1 {
    font-size: 24px;
    letter-spacing: 4px;
  }
  body[data-page="home"] .hero-sign > p {
    font-size: 11px;
    margin-top: 10px;
  }
  body[data-page="home"] .hero-splash {
    font-size: 12px;
    top: 90px;
    right: -3px;
  }
  body[data-page="home"] #home-search-form {
    width: calc(100% - 30px);
    bottom: 17px;
    min-height: 50px;
  }
  body[data-page="home"] .party-xty {
    height: 145px;
    left: 1%;
    bottom: 45px;
  }
  body[data-page="home"] .party-lgg {
    height: 91px;
    bottom: 76px;
    left: -12%;
  }
  body[data-page="home"] .party-swk {
    height: 132px;
    bottom: 51px;
    right: 1%;
  }
  body[data-page="home"] .party-zzl {
    height: 117px;
    right: -12%;
    bottom: 40px;
  }
  body[data-page="home"] .party-wsd {
    height: 85px;
    bottom: 45px;
    left: 27%;
  }
  body[data-page="home"] .party-gou {
    height: 83px;
    bottom: 49px;
    right: 25%;
  }
  body[data-page="home"] .hero-dock {
    display: grid;
    padding: 16px 14px;
    gap: 14px;
    justify-content: stretch;
  }
  body[data-page="home"] .hero-actions {
    gap: 10px;
    width: 100%;
  }
  body[data-page="home"] .hero-actions .button {
    min-width: 0;
    font-size: 13px;
    gap: 6px;
    padding: 9px;
    flex: 1;
  }
  body[data-page="home"] .hero-counts {
    justify-content: center;
    gap: 15px;
  }
  body[data-page="home"] .hero-counts > span {
    font-size: 10px;
    gap: 4px;
  }
  body[data-page="home"] .hero-counts strong {
    font-size: 16px;
  }
  body[data-page="home"] .hero-counts .icon {
    width: 16px;
    height: 16px;
  }
  body[data-page="home"] .map-banners {
    grid-template-columns: 1fr;
  }
  body[data-page="home"] .map-banner,
  body[data-page="home"] .map-banner:first-child {
    grid-row: auto;
    min-height: 0;
    padding: 0;
  }
  body[data-page="home"] .banner-visual,
  body[data-page="home"] .map-banner:first-child .banner-visual {
    min-height: 210px;
    padding: 15px;
  }
  body[data-page="home"] .banner-meta {
    gap: 8px;
    padding: 11px;
  }
  body[data-page="home"] .banner-arrow {
    width: 31px;
    height: 31px;
    right: 12px;
    bottom: 12px;
  }
  body[data-page="home"] .map-banner h3,
  body[data-page="home"] .map-banner:first-child h3 {
    font-size: 21px;
  }
  body[data-page="home"] .exhibit-heading {
    display: block;
    margin-bottom: 15px;
  }
  body[data-page="home"] .exhibit-heading p {
    font-size: 12px;
    margin-top: 7px;
  }
  body[data-page="home"] .home-bottom {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  body[data-page="home"] .home-entry {
    grid-template-columns: 42px minmax(0, 1fr) 78px;
    gap: 12px;
    min-height: 112px;
    padding: 14px;
  }
  body[data-page="home"] .home-entry h2 {
    font-size: 20px;
  }
  body[data-page="home"] .home-entry p {
    font-size: 12px;
    max-width: 200px;
  }
  body[data-page="home"] .entry-item {
    width: 42px;
    height: 42px;
  }
  body[data-page="home"] .entry-item img {
    width: 33px;
    height: 33px;
  }
  body[data-page="home"] .entry-character {
    height: 78px;
    width: 78px;
  }
  body[data-page="home"] .home-entry > div {
    padding-right: 0;
  }
  body[data-page="detail"] .map-intro {
    display: block;
    grid-template-columns: 1fr;
  }
  body[data-page="detail"] .detail-cover {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--edge);
  }
  body[data-page="detail"] .detail-summary {
    padding: 20px 18px;
  }
  body[data-page="detail"] .detail-summary h1 {
    font-size: 26px;
  }
  body[data-page="detail"] .detail-authors {
    gap: 7px 9px;
  }
  body[data-page="detail"] .detail-actions {
    gap: 9px;
    display: flex;
    flex-wrap: wrap;
  }
  body[data-page="detail"] .detail-actions .button {
    font-size: 13px;
    gap: 6px;
    padding: 7px 10px;
  }
  body[data-page="detail"] .detail-summary {
    margin-top: 19px;
    padding: 20px 18px;
  }
  body[data-page="detail"] .detail-cover {
    border: 2px solid var(--edge);
  }
  body[data-page="authors"] .author-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body[data-page="authors"] .heading-text h1 {
    font-size: 28px;
  }
  body[data-page="authors"] .heading-text p {
    font-size: 12px;
  }
  body[data-page="authors"] .page-total {
    font-size: 12px;
  }
  body[data-page="authors"] #author-result-count {
    font-size: 12px;
  }
  body[data-page="authors"] .author-card {
    padding: 18px 18px 0;
  }
  body[data-page="authors"] .author-count {
    margin: 0 -18px;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .home-entry h2 {
    font-size: 18px;
  }
}

/* Framed archive introduction and the maintainer's small work card. */
body[data-page="about"] .about-intro {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 30px;
  border: 2px solid var(--edge);
  border-top: 5px solid var(--accent);
  box-shadow:
    inset 0 0 0 3px var(--rim),
    4px 4px var(--shade);
}
body[data-page="about"] .about-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
body[data-page="about"] .about-story h2 {
  font-size: 36px;
  line-height: 1.35;
}
body[data-page="about"] .about-story p {
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.9;
}
body[data-page="about"] .about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
body[data-page="about"] .about-highlights > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--soft);
}
body[data-page="about"] .about-highlights .icon {
  width: 24px;
  height: 24px;
}
body[data-page="about"] .about-community-note {
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
body[data-page="about"] .about-recordings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body[data-page="about"] .about-recordings > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
body[data-page="about"] .about-recordings > a:hover {
  background: var(--soft);
}
body[data-page="about"] .about-recordings .icon {
  width: 18px;
  height: 18px;
}
body[data-page="about"] .maintainer-card {
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  padding: 20px;
  border: 2px solid var(--edge);
  box-shadow:
    inset 2px 2px var(--rim),
    3px 3px var(--shade);
  background: var(--paper);
}
body[data-page="about"] .maintainer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--paper-line);
}
body[data-page="about"] .maintainer-label .icon {
  width: 21px;
  height: 21px;
}
body[data-page="about"] .maintainer-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 23px 0 13px;
}
body[data-page="about"] .maintainer-card .avatar {
  width: 64px;
  height: 64px;
  margin: 0;
  outline-width: 2px;
  outline-offset: 4px;
}
body[data-page="about"] .maintainer-card h2 {
  font-size: 25px;
}
body[data-page="about"] .maintainer-mcid {
  display: block;
  color: var(--muted);
  font:
    12px Consolas,
    monospace;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
body[data-page="about"] .maintainer-card p {
  margin: 7px 0 18px;
  font-size: 13px;
}
body[data-page="about"] .maintainer-work {
  display: grid;
  gap: 9px;
  margin-bottom: 23px;
}
body[data-page="about"] .maintainer-work > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--paper-line);
  background: var(--surface);
  font-size: 13px;
}
body[data-page="about"] .maintainer-work .icon {
  width: 24px;
  height: 24px;
}
body[data-page="about"] .maintainer-card > .button {
  margin-top: auto;
  font-size: 14px;
  gap: 7px;
}

/* Settings use a framed inventory board; the existing controls stay native. */
body[data-page="settings"] .settings-list {
  position: relative;
  padding: 0;
  border: 3px solid var(--edge);
  background: var(--texture), var(--surface);
  box-shadow:
    inset 0 0 0 4px var(--rim),
    5px 5px var(--shade);
}
body[data-page="settings"] .settings-board-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 28px;
  border-bottom: 2px solid var(--edge);
  background: var(--soft);
  box-shadow: inset 0 3px var(--rim);
}
body[data-page="settings"] .settings-board-header > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
body[data-page="settings"] .settings-board-header small {
  color: var(--muted);
  font-size: 12px;
}
body[data-page="settings"] .settings-board-header::before,
body[data-page="settings"] .settings-board-header::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  background: var(--shade);
  box-shadow: 1px 1px var(--rim);
}
body[data-page="settings"] .settings-board-header::before {
  left: 8px;
}
body[data-page="settings"] .settings-board-header::after {
  right: 8px;
}
body[data-page="settings"] .setting-row {
  padding: 26px 29px;
  border-top: 0;
}
body[data-page="settings"] .setting-row + .setting-row {
  border-top: 1px solid var(--line);
}

/* Keep the checkbox semantics, with the same frame and height as the sort menu. */
.result-tools .watched-filter {
  min-height: 46px;
  padding: 8px 12px;
  gap: 8px;
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
  color: var(--ink);
  background: var(--raised);
  cursor: pointer;
  transition: background-color 140ms, color 140ms, translate 100ms;
}
.result-tools .watched-filter .icon {
  width: 20px;
  height: 20px;
}
.result-tools .watched-filter:hover {
  background: var(--soft);
}
.result-tools .watched-filter:has(input:checked) {
  border-color: var(--edge);
  color: var(--accent);
  background: var(--soft);
  box-shadow: inset 3px 3px var(--shade), inset -1px -1px var(--rim);
  translate: 0 2px;
}
.result-tools .watched-filter:has(input:focus-visible) {
  background: var(--soft);
}
.result-tools .watched-filter input {
  outline: none;
}
.result-tools .watched-filter input:focus-visible {
  outline: 2px dotted var(--accent);
  outline-offset: 3px;
}

/* An empty collection is a small pixel scene and a usable next step. */
body[data-page="favorites"] #empty-state {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 500px);
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 35px 42px;
  text-align: left;
  border: 2px solid var(--edge);
  border-top: 5px solid var(--accent);
  box-shadow:
    inset 0 0 0 3px var(--rim),
    4px 4px var(--shade);
  background: var(--texture), var(--surface);
}
body[data-page="favorites"] .favorite-empty-scene {
  position: relative;
  height: 200px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
body[data-page="favorites"] .favorite-empty-scene .empty-character {
  position: absolute;
  height: 154px;
  width: 154px;
  left: 1px;
  bottom: 18px;
  z-index: 2;
  object-fit: contain;
}
body[data-page="favorites"] .empty-chest {
  position: absolute;
  right: 10px;
  bottom: 21px;
  z-index: 3;
}
body[data-page="favorites"] .empty-chest img {
  width: 78px;
  height: 78px;
}
body[data-page="favorites"] .empty-platform {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  height: 14px;
  background: var(--accent);
  box-shadow:
    0 6px var(--shade),
    inset 0 3px var(--rim);
}
body[data-page="favorites"] .empty-copy {
  min-width: 0;
}
body[data-page="favorites"] .empty-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
body[data-page="favorites"] .empty-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
body[data-page="favorites"] .empty-guide > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--raised);
  font-size: 12px;
}
body[data-page="favorites"] .empty-guide .icon {
  width: 18px;
  height: 18px;
}
body[data-page="favorites"]
  #empty-state[data-collection-empty="false"]
  .empty-guide {
  display: none;
}

@media (max-width: 1000px) {
  body[data-page="about"] .about-intro {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
    padding: 23px;
  }
  body[data-page="about"] .maintainer-card {
    padding: 17px;
  }
  body[data-page="favorites"] #empty-state {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 25px;
    padding: 29px;
  }
}
@media (max-width: 760px) {
  body[data-page="about"] .about-intro {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  body[data-page="about"] .about-story h2 {
    font-size: 29px;
  }
  body[data-page="about"] .about-story p {
    font-size: 14px;
  }
  body[data-page="about"] .about-recordings {
    display: grid;
    grid-template-columns: 1fr;
  }
  body[data-page="about"] .maintainer-card {
    max-width: none;
    width: 100%;
  }
  body[data-page="settings"] .settings-board-header {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 6px;
  }
  body[data-page="settings"] .settings-board-header > span {
    font-size: 14px;
  }
  body[data-page="settings"] .settings-board-header small {
    font-size: 11px;
  }
  body[data-page="settings"] .setting-row {
    padding: 23px 18px;
  }
  .result-tools .watched-filter {
    min-height: 44px;
    font-size: 13px;
    padding: 7px 9px;
    gap: 6px;
  }
  .result-tools .watched-filter .icon {
    display: none;
  }
  body[data-page="favorites"] #empty-state {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 23px;
    padding: 25px 19px;
    text-align: center;
  }
  body[data-page="favorites"] .favorite-empty-scene {
    width: min(230px, 100%);
    height: 185px;
  }
  body[data-page="favorites"] .favorite-empty-scene .empty-character {
    height: 142px;
    width: 142px;
  }
  body[data-page="favorites"] .empty-copy h2 {
    font-size: 23px;
  }
  body[data-page="favorites"] .empty-copy p {
    font-size: 14px;
  }
  body[data-page="favorites"] .empty-guide {
    justify-content: center;
  }
}
