:root {
  color-scheme: dark;
  --bg: #11121a;
  --panel: #171821;
  --ink: #f1eee9;
  --muted: #9997a1;
  --line: #ffffff20;
  --lavender: #d6c8ef;
  --mono: Consolas, "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--sans);
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.6vw;
  border-bottom: 1px solid #ffffff12;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 500 10px var(--mono);
  letter-spacing: .14em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d6c8ef8c;
  border-radius: 50%;
  color: var(--lavender);
  font: 10px var(--mono);
  letter-spacing: -.08em;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a9a8b1;
  font: 9px var(--mono);
  letter-spacing: .07em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2d5c0;
  box-shadow: 0 0 12px #c2d5c08c;
}

.divider {
  width: 1px;
  height: 12px;
  margin: 0 5px;
  background: #ffffff30;
}

.top-note {
  color: #878491;
  font: 8px var(--mono);
  letter-spacing: .12em;
}

.donate-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #9cc4ff;
  border-radius: 11px;
  background: #72a4f2;
  color: #fff;
  font: 600 13px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px #72a4f233;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.donate-button:hover {
  transform: translateY(-1px);
  background: #82aff7;
  box-shadow: 0 5px 16px #72a4f255;
}

.donate-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.donate-heart {
  color: #ff704b;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 1px 2px #25334c55;
}

.hero {
  position: relative;
  min-height: 570px;
  height: min(720px, 75vw);
  overflow: hidden;
  background: #20212a;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 67% 42%, #737486 0, #363744 30%, #252631 65%, #171821 100%);
  background-position: center 52%;
  background-size: cover;
  transition: transform 1s ease;
}

.hero-image.has-image {
  transform: scale(1.015);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #12131bef 0%, #12131bd9 27%, #12131b47 66%, #11121a12 100%), linear-gradient(0deg, #11121a 0%, transparent 35%, #11121a22 100%);
  content: "";
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: 19%;
  left: 12.1%;
  max-width: 600px;
}

.eyebrow {
  color: var(--lavender);
  font: 9px var(--mono);
  letter-spacing: .16em;
}

.eyebrow-line {
  display: inline-block;
  width: 31px;
  height: 1px;
  margin-right: 10px;
  background: var(--lavender);
  vertical-align: middle;
}

.hero h1 {
  margin: 31px 0 19px;
  color: #f4f0ef;
  font: 500 clamp(39px, 5.2vw, 71px)/1.45 var(--serif);
  letter-spacing: .08em;
}

.hero h1 em {
  color: #d4c8e2;
  font-style: normal;
}

.hero-intro {
  max-width: 355px;
  color: #cfccd2;
  font: 13px/2.1 var(--serif);
  letter-spacing: .06em;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 58px;
  margin-top: 60px;
}

.explore-link {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-bottom: 11px;
  border-bottom: 1px solid #d6c8ef82;
  color: #f3edf8;
  font-size: 12px;
  text-decoration: none;
}

.explore-link span {
  color: var(--lavender);
  font: 16px var(--mono);
}

.hero-coordinate {
  color: #b9b7c1;
  font: 8px/1.9 var(--mono);
  letter-spacing: .12em;
}

.hero-caption {
  position: absolute;
  z-index: 1;
  bottom: 42px;
  left: 5.6vw;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e8e5e8;
  font: 11px var(--serif);
}

.caption-kicker {
  color: #c4bed0;
  font: 8px var(--mono);
  letter-spacing: .13em;
}

.hero-index {
  position: absolute;
  z-index: 1;
  right: 5.6vw;
  bottom: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d6d0dc;
  font: 9px var(--mono);
}

.hero-index i {
  width: 33px;
  height: 1px;
  background: var(--lavender);
}

.manifesto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 58px 12.1%;
  border-bottom: 1px solid var(--line);
  background: #15161e;
}

.manifesto-label {
  color: #bdb1d0;
  font: 8px var(--mono);
  letter-spacing: .15em;
  white-space: nowrap;
}

.manifesto p {
  margin: 0;
  color: #e9e5e8;
  font: 14px/2.1 var(--serif);
  letter-spacing: .05em;
}

.manifesto p span {
  color: #a6a3ad;
  font-size: 12px;
}

.manifesto-symbol {
  color: #a9a1b7;
  font: 32px var(--serif);
}

.collection {
  padding: 95px 10.2% 120px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
}

.section-eyebrow {
  color: #9993a7;
  font-size: 8px;
}

.section-head h2 {
  margin: 14px 0 0;
  font: 500 30px var(--serif);
  letter-spacing: .08em;
}

.section-head h2 span {
  margin-left: 10px;
  color: #9f9ba8;
  font: 10px var(--mono);
  vertical-align: middle;
}

.search-box {
  display: flex;
  width: 242px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff30;
  color: #c7bfd0;
}

.search-box>span {
  font-size: 20px;
  line-height: 14px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 10px var(--serif);
}

.search-box input::placeholder {
  color: #777681;
}

.search-box kbd {
  color: #74717e;
  font: 9px var(--mono);
}

.filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.filter-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  padding: 4px 20px 4px 0;
}

.filter {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: #9997a1;
  font: 10px var(--serif);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.filter:hover,
.filter.active {
  color: #f2e8f8;
}

.filter.active {
  font-weight: 500;
  border-bottom: 1px solid var(--lavender);
  margin-bottom: -1px;
}

.filter span {
  color: #888492;
  font: 8px var(--mono);
}

.filter.tag-item {
  padding: 4px 10px;
  border: 1px solid #ffffff14;
  border-radius: 2px;
  background: #1f1e27;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}

.filter.tag-item:hover {
  border-color: #d9c4ec70;
  background: #2c2738;
}

.filter.tag-item.active {
  border-color: #d9c4ec;
  background: #3c324c;
  color: #ffffff;
}

.filter.tag-item span {
  color: #bcaecf;
}

.filter-actions {
  flex-shrink: 0;
}

.all-tags-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid #d9c4ec40;
  border-radius: 2px;
  color: #e5dbee;
  font: 10px var(--mono);
  text-decoration: none;
  letter-spacing: .05em;
  transition: all .2s;
}

.all-tags-link:hover {
  border-color: #d9c4ec;
  background: #d6c8ef18;
  color: #ffffff;
}

.all-tags-link span {
  font-size: 11px;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 12px;
  background: #201e28;
  border: 1px solid #ffffff12;
  border-radius: 3px;
  font: 10px var(--mono);
  color: #c9bfd6;
}

.active-filter-bar[hidden] {
  display: none;
}

.active-filter-badge {
  color: #ffffff;
  background: #373045;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid #d9c4ec40;
}

.active-filter-reset {
  margin-left: auto;
  border: 0;
  background: none;
  color: #a9a4b1;
  font: 9px var(--mono);
  cursor: pointer;
}

.active-filter-reset:hover {
  color: #ffffff;
  text-decoration: underline;
}

.filter-note {
  margin-left: auto;
  color: #777582;
  font: 8px var(--mono);
  letter-spacing: .07em;
}

.filter-note span {
  margin-left: 8px;
  color: #c4b4d8;
}

.gallery {
  columns: 3;
  column-gap: 24px;
}

.art-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  padding: 0 0 29px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}

.art-image {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #252630;
}

.art-card.standard .art-image {
  aspect-ratio: 1.11;
}

.art-card.portrait .art-image {
  aspect-ratio: .83;
}

.art-card.wide .art-image {
  aspect-ratio: 1.38;
}

.art-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.77);
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s;
}

.art-card:hover .art-image img {
  transform: scale(1.045);
  filter: saturate(1);
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #11121a70, transparent 40%);
  opacity: .55;
  transition: opacity .3s;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

.art-open {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  transform: translateY(4px);
  border: 1px solid #ffffff65;
  border-radius: 50%;
  background: #11121a70;
  color: white;
  opacity: 0;
  transition: .25s;
}

.art-card:hover .art-open {
  transform: none;
  opacity: 1;
}

.art-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
}

.art-category {
  color: #c8bad8;
  font: 8px var(--mono);
  letter-spacing: .07em;
}

.art-number {
  color: #74727e;
  font: 8px var(--mono);
}

.art-title {
  display: block;
  margin-top: 9px;
  color: #efebed;
  font: 500 15px/1.7 var(--serif);
  letter-spacing: .03em;
}

.art-excerpt {
  display: block;
  margin-top: 6px;
  color: #9997a0;
  font: 10px/1.85 var(--serif);
}

.loading-state,
.load-error {
  display: flex;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #aaa6b0;
  font: 11px var(--serif);
}

.loading-state span {
  width: 14px;
  height: 14px;
  border: 1px solid #8f849c;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.load-error {
  display: block;
  padding: 75px 0;
  text-align: center;
  line-height: 2;
}

.load-error span {
  color: #817e8a;
}

.image-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #888593;
  font: 9px/1.8 var(--mono);
  text-align: center;
}

.empty-state {
  padding: 75px 0;
  color: #a6a1ad;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state>span {
  color: #bfb1cf;
  font: 35px var(--serif);
}

.empty-state h3 {
  color: #e5e0e7;
  font: 400 16px var(--serif);
}

.empty-state p {
  color: #96929d;
  font: 11px var(--serif);
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
  color: #85818f;
  font: 9px var(--mono);
}

.load-more[hidden] {
  display: none;
}

.load-more button {
  padding: 11px 16px;
  border: 1px solid #c7b6d97a;
  background: transparent;
  color: #e5dbee;
  font: 10px var(--serif);
  cursor: pointer;
}

.load-more button:hover:not(:disabled) {
  background: #d6c8ef18;
}

.load-more button:disabled {
  opacity: .5;
  cursor: wait;
}

.load-more button span {
  margin-left: 15px;
  color: var(--lavender);
}

#load-sentinel {
  height: 1px;
}

.footer {
  display: flex;
  min-height: 87px;
  align-items: center;
  justify-content: space-between;
  padding: 23px 5.6vw;
  border-top: 1px solid var(--line);
  color: #777581;
  font: 8px var(--mono);
  letter-spacing: .1em;
}

.footer .mark {
  width: 24px;
  height: 24px;
}

.footer-right span {
  margin-left: 9px;
  color: #c2b4d2;
}

.detail {
  width: min(1120px, 94vw);
  height: min(780px, 92vh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #ffffff29;
  background: #171821;
  color: var(--ink);
  box-shadow: 0 30px 120px #000a;
}

.detail::backdrop {
  background: #080910df;
  backdrop-filter: blur(8px);
}

.detail-shell {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
}

.detail-visual {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 25px;
  background: #0e0f15;
}

.detail-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  position: relative;
  overflow: auto;
  padding: 70px 42px 40px;
}

.detail-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 18px;
  border: 0;
  background: none;
  color: #dbd6df;
  font-size: 31px;
  font-weight: 200;
  cursor: pointer;
}

.detail-info h2 {
  margin: 22px 0 24px;
  font: 500 23px/1.7 var(--serif);
}

.detail-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 29px;
  background: var(--line);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 22px;
}

.detail-tags[hidden] {
  display: none;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border: 1px solid #d9c4ec33;
  border-radius: 2px;
  background: #22202c;
  color: #cbb9db;
  font: 9px/1.3 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2, .7, .2, 1);
}

.tag-pill:hover {
  border-color: #d9c4ec;
  background: #352d43;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #05050a60;
}

.tag-pill::before {
  content: '#';
  color: #8e839e;
}

.prompt-label {
  display: flex;
  justify-content: space-between;
  color: #c3b7d1;
  font: 8px var(--mono);
  letter-spacing: .1em;
}

.prompt-label span {
  color: #777582;
  font: 9px var(--serif);
}

.detail-prompt {
  max-height: 38vh;
  overflow: auto;
  margin: 19px 0 26px;
  padding-right: 8px;
  color: #c9c5cd;
  font: 11px/2.05 var(--serif);
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-button,
.share-button {
  padding: 10px 13px;
  border: 1px solid #c7b6d97a;
  background: transparent;
  color: #e5dbee;
  font: 10px var(--serif);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background .2s, border-color .2s;
}

.copy-button:hover,
.share-button:hover {
  background: #d6c8ef18;
  border-color: #d9c4ec;
}

.copy-button span,
.share-button span {
  margin-left: 10px;
}

.detail-seed {
  color: #74717e;
  font: 8px var(--mono);
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 8px);
  padding: 11px 18px;
  border: 1px solid #ffffff30;
  background: #22232d;
  color: #f2eef2;
  font: 11px var(--serif);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  .hero-copy {
    left: 8%;
    top: 16%;
  }

  .manifesto {
    padding: 45px 8%;
  }

  .collection {
    padding: 75px 7% 90px;
  }

  .gallery {
    columns: 2;
  }

  .filter-note {
    display: none;
  }

  .detail-shell {
    grid-template-columns: 1.1fr .9fr;
  }

  .detail-info {
    padding: 64px 28px 30px;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 62px;
    padding: 0 5%;
  }

  .top-meta {
    display: none;
  }

  .donate-button {
    min-height: 38px;
    gap: 7px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hero {
    height: 680px;
    min-height: 0;
    max-height: calc(100svh - 62px);
  }

  .hero-image {
    background-position: 61% center;
  }

  .hero-image::after {
    background: linear-gradient(90deg, #12131bd9, #12131b55 100%), linear-gradient(0deg, #11121a 0%, transparent 38%);
  }

  .hero-copy {
    top: 18%;
    right: 7%;
    left: 7%;
  }

  .hero h1 {
    margin-top: 27px;
    font-size: 42px;
  }

  .hero-intro {
    max-width: 290px;
    font-size: 12px;
  }

  .hero-bottom {
    gap: 30px;
    margin-top: 42px;
  }

  .hero-caption {
    bottom: 26px;
    left: 7%;
  }

  .hero-index {
    right: 7%;
    bottom: 27px;
  }

  .manifesto {
    align-items: flex-start;
    padding: 35px 7%;
  }

  .manifesto-label {
    display: none;
  }

  .manifesto p {
    font-size: 12px;
  }

  .manifesto-symbol {
    font-size: 22px;
  }

  .collection {
    padding: 67px 6% 75px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 27px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .search-box {
    width: 100%;
  }

  .filter-row {
    gap: 18px;
    overflow: auto;
    white-space: nowrap;
  }

  .filter {
    font-size: 9px;
  }

  .gallery {
    columns: 2;
    column-gap: 13px;
  }

  .art-card {
    padding-bottom: 23px;
  }

  .art-card.standard .art-image,
  .art-card.wide .art-image {
    aspect-ratio: .86;
  }

  .art-meta {
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
  }

  .art-title {
    font-size: 12px;
    line-height: 1.6;
  }

  .art-excerpt {
    font-size: 9px;
    line-height: 1.65;
  }

  .footer {
    flex-wrap: wrap;
    gap: 14px;
    padding: 19px 6%;
  }

  .footer>span:nth-child(2) {
    order: 3;
    width: 100%;
    font-size: 7px;
  }

  .footer-right {
    font-size: 7px;
  }

  .detail {
    width: 100vw;
    height: 100dvh;
    border: 0;
  }

  .detail-shell {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  .detail-visual {
    flex: none;
    height: 43vh;
    padding: 20px;
  }

  .detail-info {
    overflow: visible;
    padding: 27px 23px 30px;
  }

  .detail-info h2 {
    margin: 15px 0;
    font-size: 20px;
  }

  .detail-prompt {
    max-height: none;
    font-size: 11px;
  }

  .detail-close {
    position: fixed;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #11121a99;
  }
}

.art-date {
  display: block;
  margin-top: 8px;
  color: #85808a;
  font: 9px/1.7 var(--sans);
  letter-spacing: .02em
}

.detail-dates {
  margin: -12px 0 24px;
  color: #8d8993;
  font: 10px/1.7 var(--sans);
  letter-spacing: .02em
}

/* Full-screen archive viewer: keep the artwork primary and metadata available beside it. */
.detail {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #171821;
  overflow: hidden
}

.detail-shell {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28vw)
}

.detail-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 56px 68px;
  background: #0e0f15;
  touch-action: pan-y
}

.detail-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain
}

.detail-info {
  padding: 78px 36px 34px;
  background: #171821
}

.detail-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff35;
  border-radius: 50%;
  background: #171821dd;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer
}

.detail-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 62px;
  border: 1px solid #ffffff45;
  border-radius: 10px;
  background: #171821aa;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, opacity .15s
}

.detail-nav:hover:not(:disabled) {
  background: #ffffff30
}

.detail-nav:disabled {
  opacity: .32;
  cursor: default
}

.detail-prev {
  left: 12px
}

.detail-next {
  right: 12px
}

#detail-index {
  margin-left: 8px;
  color: #a9a3b2
}

.detail:focus-visible,
.detail-nav:focus-visible,
.detail-close:focus-visible {
  outline: 2px solid #d3c2eb;
  outline-offset: 3px
}

@media(max-width:900px) {
  .detail-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw)
  }

  .detail-visual {
    padding: 54px 58px
  }

  .detail-info {
    padding: 74px 25px 26px
  }
}

@media(max-width:600px) {
  .detail {
    width: 100vw;
    height: 100dvh
  }

  .detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 68vh) minmax(0, 1fr);
    overflow: hidden
  }

  .detail-visual {
    padding: 45px 42px 12px
  }

  .detail-info {
    min-height: 0;
    overflow: auto;
    padding: 19px 22px 22px
  }

  .detail-info h2 {
    margin: 10px 0;
    font-size: 18px
  }

  .detail-rule {
    margin-bottom: 16px
  }

  .detail-dates {
    margin: -5px 0 15px
  }

  .detail-prompt {
    max-height: 14vh;
    margin: 10px 0 14px
  }

  .detail-close {
    top: 9px;
    right: 10px;
    width: 37px;
    height: 37px
  }

  .detail-nav {
    width: 36px;
    height: 50px;
    font-size: 32px
  }

  .detail-prev {
    left: 4px
  }

  .detail-next {
    right: 4px
  }

  .detail-actions {
    padding-bottom: 6px
  }
}

.hero-image {
  z-index: 0;
  overflow: hidden
}

.hero-image.has-image {
  transform: none
}

.hero-image::after {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #12131b88 0%, #12131b44 33%, #12131b08 72%), linear-gradient(0deg, #11121a55 0%, transparent 38%)
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.15s ease, transform 8s linear
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.035)
}

.hero-copy,
.hero-caption,
.hero-index {
  z-index: 3
}

.hero-caption {
  bottom: 34px
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -8px
}

.hero-dot {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer
}

.hero-dot span {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #d6c8ef99;
  border-radius: 50%;
  background: #17182188;
  transition: width .2s, border-radius .2s, background .2s
}

.hero-dot.active span {
  width: 17px;
  border-radius: 6px;
  background: #d6c8ef
}

.hero-dot:focus-visible {
  outline: 2px solid #d6c8ef;
  outline-offset: -2px;
  border-radius: 5px
}

.hero-index {
  bottom: 36px
}

@media(max-width:600px) {
  .hero-slide {
    object-position: 61% center
  }

  .hero-caption {
    bottom: 19px
  }

  .hero-index {
    bottom: 24px
  }
}

/* Dreamcore archive direction */
:root {
  --bg: #12121a;
  --panel: #1b1a25;
  --lavender: #d9c4ec;
  --ink: #f5eff7;
  --line: #ffffff18;
  --serif: 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif
}

body {
  background: radial-gradient(ellipse at 50% -18%, #30283b 0, transparent 42%), var(--bg);
  font-family: var(--sans)
}

.topbar {
  border-color: #d7c4ec20;
  background: #111118b8;
  backdrop-filter: blur(14px)
}

.wordmark {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em
}

.mark {
  border-radius: 9px;
  background: #d8c4e91c;
  color: #edddf7;
  font-family: var(--serif);
  font-size: 14px
}

.top-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .1em
}

.live-dot {
  background: #d9c4ec;
  box-shadow: 0 0 13px #d9c4ec99
}

.donate-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #dac7eb55;
  border-radius: 99px;
  background: #d9c4ec12;
  color: #f4eafb;
  font: 11px var(--sans);
  box-shadow: none
}

.donate-button:hover {
  background: #d9c4ec25;
  box-shadow: 0 0 22px #c8a9e51b
}

.hero {
  min-height: 620px;
  height: min(760px, 74vw);
  background: #24212b
}

.hero-image {
  background: radial-gradient(ellipse at 67% 42%, #96859f 0, #514859 30%, #292631 65%, #17151f 100%)
}

.hero-image::after {
  background: linear-gradient(90deg, #12121af0 0%, #12121ad9 25%, #17151f62 58%, #17151f12 100%), linear-gradient(0deg, #12121a99 0%, transparent 38%, #17151f22 100%)
}

.hero-copy {
  top: 17%;
  left: 12.1%;
  max-width: 570px
}

.eyebrow {
  color: #ddc9eb
}

.eyebrow-line {
  background: #ddc9eb
}

.hero h1 {
  margin: 28px 0 15px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 1.25;
  letter-spacing: .12em;
  text-shadow: 0 5px 35px #08070b88
}

.hero h1 em {
  color: #dfc8ed
}

.hero-intro {
  max-width: 410px;
  margin: 0;
  color: #e0d9e4;
  font: 13px/2.15 var(--sans);
  letter-spacing: .07em;
  text-shadow: 0 1px 12px #0008
}

.hero-bottom {
  gap: 42px;
  margin-top: 42px
}

.explore-link {
  border-color: #d9c4ec99;
  font-family: var(--sans);
  letter-spacing: .08em
}

.hero-coordinate {
  font-family: var(--sans);
  font-size: 9px;
  line-height: 2;
  color: #d0c8d5;
  letter-spacing: .1em
}

.hero-caption {
  right: 12.1%;
  bottom: 38px;
  left: auto;
  align-items: flex-end;
  text-align: right;
  font-family: var(--sans)
}

.caption-kicker {
  color: #d6c7df
}

.hero-index i {
  background: #d9c4ec
}

.collection {
  padding-top: 86px
}

.section-eyebrow {
  color: #b7a8c3
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: .12em
}

.search-box {
  border-color: #cbb3df55
}

.search-box input {
  font-family: var(--sans)
}

.filter-row {
  gap: 30px
}

.filter {
  font-family: var(--sans);
  font-size: 11px
}

.filter:hover,
.filter.active {
  color: #f2e8f8
}

.filter.active::after {
  background: #d9c4ec
}

.art-card {
  padding-bottom: 35px
}

.art-image {
  border: 1px solid #ffffff10;
  border-radius: 3px;
  background: #25232d;
  box-shadow: 0 16px 42px #05050a35
}

.art-image img {
  filter: saturate(.73) contrast(.96)
}

.art-card:hover .art-image {
  box-shadow: 0 22px 48px #05050a70
}

.art-meta {
  padding-top: 13px
}

.art-category {
  color: #cbb9db;
  font-family: var(--sans);
  letter-spacing: .1em
}

.art-title {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .07em
}

.art-excerpt {
  font-family: var(--sans)
}

.footer {
  font-family: var(--sans);
  letter-spacing: .08em
}

.footer .wordmark {
  font-size: 11px
}

.footer-right span {
  color: #d9c4ec
}

.detail-info {
  background: radial-gradient(ellipse at 100% 0, #3a3045 0, transparent 45%), #191821
}

.detail-visual {
  background: #0d0d13
}

.detail-info h2 {
  font-family: var(--serif);
  letter-spacing: .08em
}

.detail-prompt {
  font-family: var(--sans)
}

.copy-button,
.share-button {
  border-color: #d9c4ec66;
  font-family: var(--sans)
}

@media(max-width:900px) {
  .hero-copy {
    left: 8%;
    top: 17%
  }
}

@media(max-width:600px) {
  .topbar {
    height: 62px
  }

  .top-meta {
    display: none
  }

  .donate-button {
    min-height: 36px;
    font-size: 10px
  }

  .hero {
    height: calc(100svh - 62px);
    min-height: 580px;
    max-height: 760px
  }

  .hero-image {
    background-position: 61% center
  }

  .hero-image::after {
    background: linear-gradient(90deg, #12121ae6, #12121a62 100%), linear-gradient(0deg, #12121a 0%, transparent 45%)
  }

  .hero-copy {
    top: 15%;
    right: 7%;
    left: 7%
  }

  .hero h1 {
    margin-top: 25px;
    font-size: 48px;
    line-height: 1.35
  }

  .hero-intro {
    max-width: 310px;
    font-size: 12px;
    line-height: 2
  }

  .hero-bottom {
    gap: 25px;
    margin-top: 33px
  }

  .hero-coordinate {
    font-size: 8px
  }

  .hero-caption {
    right: 7%;
    bottom: 19px;
    left: auto;
    align-items: flex-end;
    text-align: right
  }

  .collection {
    padding-top: 64px
  }

  .section-head h2 {
    font-size: 27px
  }

  .filter-row {
    gap: 20px
  }

  .art-title {
    font-size: 13px
  }

  .footer>span:nth-child(2) {
    order: initial;
    width: auto;
    font-size: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero-slide {
    transition: none;
    transform: none
  }

  .hero-slide.active {
    transform: none
  }
}

/* All Tags Directory Styles */
.tags-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 4% 80px;
}

.tags-hero {
  margin-bottom: 45px;
}

.tags-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 64px);
  letter-spacing: .08em;
  margin: 18px 0 16px;
  color: #f5eff7;
}

.tags-hero h1 em {
  color: #dfc8ed;
}

.tags-hero p {
  max-width: 580px;
  color: #b6b0be;
  font: 13px/2 var(--sans);
}

.tags-search-wrap {
  margin: 30px 0 42px;
  max-width: 500px;
  position: relative;
}

.tags-search-input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #ffffff22;
  border-radius: 4px;
  background: #1a1924;
  color: #fff;
  font: 12px var(--sans);
  transition: border-color .2s;
}

.tags-search-input:focus {
  outline: none;
  border-color: #d9c4ec;
  box-shadow: 0 0 16px #d9c4ec26;
}

.tags-section {
  margin-bottom: 48px;
}

.tags-section-title {
  font-family: var(--mono);
  font-size: 10px;
  color: #b7a8c3;
  letter-spacing: .12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tags-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid #ffffff12;
  border-radius: 3px;
  background: #191823;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.tag-card:hover {
  border-color: #d9c4ec77;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px #06050b80;
  background: #222030;
}

.tag-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tag-card-name {
  font-family: var(--serif);
  font-size: 18px;
  color: #f4eafb;
  letter-spacing: .04em;
}

.tag-card-name::before {
  content: "#";
  color: #9f91b0;
  font-size: 14px;
  margin-right: 2px;
}

.tag-card-count {
  font-family: var(--mono);
  font-size: 10px;
  color: #9c94a6;
}

.tag-card-bar {
  height: 2px;
  width: 100%;
  background: #2b2737;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.tag-card-fill {
  height: 100%;
  background: linear-gradient(90deg, #bca1dc, #dfc8ed);
  border-radius: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfbfdf;
  font: 10px var(--mono);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #d9c4ec33;
  border-radius: 99px;
  transition: all .2s;
}

.back-link:hover {
  border-color: #d9c4ec;
  color: #fff;
  background: #d9c4ec14;
}

/* ========================================================
   Ambient Audio Player · Dreamcore Style
   ======================================================== */
.topbar-bgm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #d9c4ec33;
  border-radius: 99px;
  background: #1e1b27aa;
  backdrop-filter: blur(8px);
  color: #dfd5e8;
  font: 10px var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s ease;
}

.topbar-bgm-toggle:hover {
  border-color: #d9c4ec88;
  background: #2b2539;
  color: #fff;
}

.topbar-bgm-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.topbar-bgm-bars i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: #d9c4ec;
  transition: height .2s;
}

.topbar-bgm-toggle.playing .topbar-bgm-bars i:nth-child(1) {
  animation: bgmBarTiny .8s ease-in-out infinite alternate;
}

.topbar-bgm-toggle.playing .topbar-bgm-bars i:nth-child(2) {
  animation: bgmBarTiny 1.1s ease-in-out .2s infinite alternate;
}

.topbar-bgm-toggle.playing .topbar-bgm-bars i:nth-child(3) {
  animation: bgmBarTiny .7s ease-in-out .4s infinite alternate;
}

.topbar-bgm-toggle.playing {
  border-color: #d9c4ec77;
  box-shadow: 0 0 14px #d9c4ec22;
}

.topbar-bgm-toggle.playing #topbar-bgm-status {
  color: #a3e8b0;
  font-style: normal;
}

#topbar-bgm-status {
  color: #a49bb2;
  font-style: normal;
}

@keyframes bgmBarTiny {
  0% {
    height: 3px;
  }

  100% {
    height: 11px;
  }
}

/* Floating Ambient Capsule */
.ambient-player {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  user-select: none;
}

.ambient-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 10px;
  border: 1px solid #d9c4ec2a;
  border-radius: 999px;
  background: rgba(22, 20, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48), 0 0 20px rgba(217, 196, 236, 0.08);
  transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ambient-shell:hover {
  border-color: #d9c4ec55;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.58), 0 0 24px rgba(217, 196, 236, 0.16);
}

.ambient-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d9c4ec3b;
  border-radius: 50%;
  background: #231f30;
  color: #f5eff7;
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}

.ambient-toggle:hover {
  background: #312b43;
  border-color: #d9c4ec99;
  transform: scale(1.05);
}

.ambient-toggle:active {
  transform: scale(0.96);
}

.ambient-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  opacity: 1;
  transition: opacity .2s;
}

.ambient-bars .bar {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: #dfc8ed;
  transition: height .25s ease;
}

.ambient-player.playing .ambient-bars .bar-1 {
  animation: bgmEq .9s ease-in-out infinite alternate;
}

.ambient-player.playing .ambient-bars .bar-2 {
  animation: bgmEq 1.3s ease-in-out .25s infinite alternate;
}

.ambient-player.playing .ambient-bars .bar-3 {
  animation: bgmEq 1.05s ease-in-out .5s infinite alternate;
}

.ambient-player.playing .ambient-bars .bar-4 {
  animation: bgmEq 1.2s ease-in-out .15s infinite alternate;
}

@keyframes bgmEq {
  0% {
    height: 4px;
    opacity: .45;
  }

  50% {
    height: 16px;
    opacity: 1;
  }

  100% {
    height: 7px;
    opacity: .75;
  }
}

.ambient-state-icon {
  display: none;
}

.ambient-toggle:hover .ambient-bars {
  opacity: 0.15;
}

.ambient-toggle:hover .ambient-state-icon {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  color: #fff;
}

.icon-play,
.icon-pause {
  display: none;
}

.ambient-player:not(.playing) .icon-play {
  display: block;
}

.ambient-player.playing .icon-pause {
  display: block;
}

.ambient-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
  max-width: 140px;
}

.ambient-label {
  color: #b7a8c3;
  font: 700 7.5px var(--mono);
  letter-spacing: .15em;
  opacity: .8;
}

.ambient-title {
  color: #f5eff7;
  font: 500 11.5px var(--sans);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  border-left: 1px solid #ffffff14;
}

.ambient-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9bfd5;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s, background .2s, transform .15s;
}

.ambient-btn:hover {
  color: #fff;
  background: #ffffff14;
  transform: scale(1.1);
}

.ambient-btn:active {
  transform: scale(0.92);
}

.ambient-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.ambient-mute {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9bfd5;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s, background .2s;
}

.ambient-mute:hover {
  color: #fff;
  background: #ffffff14;
}

.icon-vol-mute {
  display: none;
}

.ambient-player.muted .icon-vol-mute {
  display: block;
}

.ambient-player.muted .icon-vol-high {
  display: none;
}

.ambient-slider-wrap {
  width: 64px;
  display: flex;
  align-items: center;
}

.ambient-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #353043;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}

.ambient-volume:hover {
  background: #464057;
}

.ambient-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dfc8ed;
  box-shadow: 0 0 6px rgba(223, 200, 237, 0.6);
  cursor: pointer;
  transition: transform .15s ease;
}

.ambient-volume::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.ambient-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #dfc8ed;
  box-shadow: 0 0 6px rgba(223, 200, 237, 0.6);
  cursor: pointer;
  transition: transform .15s ease;
}

/* Ambient Hint Badge */
.ambient-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #d9c4ec33;
  border-radius: 99px;
  background: rgba(22, 20, 30, 0.9);
  backdrop-filter: blur(12px);
  color: #dfd6e7;
  font: 10px var(--sans);
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: hintFloat 3s ease-in-out infinite alternate;
}

.ambient-hint .hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bfa5dc;
  box-shadow: 0 0 8px #d9c4ec;
}

.ambient-hint-close {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: #9c94a6;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ambient-hint-close:hover {
  color: #fff;
}

@keyframes hintFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3px);
  }
}

@media(max-width: 600px) {
  .topbar-bgm-toggle .topbar-bgm-text {
    display: none;
  }

  .ambient-player {
    right: 14px;
    bottom: 18px;
  }

  .ambient-info {
    max-width: 80px;
  }

  .ambient-slider-wrap {
    width: 48px;
  }
}

/* ========================================================
   Day / Night Theme Toggle & Light Theme Palette
   ======================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9c4ec38;
  border-radius: 99px;
  background: #1e1b27aa;
  backdrop-filter: blur(8px);
  color: #e9dff2;
  font: 10px var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  border-color: #d9c4ec99;
  background: #2b2539;
  color: #fff;
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (max-width: 600px) {
  .theme-toggle {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .theme-toggle-label {
    display: none;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2f7;
  --panel: #ffffff;
  --ink: #1c1926;
  --muted: #635c70;
  --line: rgba(28, 25, 38, 0.12);
  --lavender: #6c4f8e;
}

:root[data-theme="light"] body {
  background: radial-gradient(ellipse at 50% -18%, #e5daef 0, transparent 44%), var(--bg);
  color: var(--ink);
}

:root[data-theme="light"] .grain {
  opacity: .05;
}

:root[data-theme="light"] .topbar {
  border-bottom-color: rgba(108, 79, 142, 0.16);
  background: rgba(245, 242, 247, 0.84);
}

:root[data-theme="light"] .mark {
  border-color: rgba(108, 79, 142, 0.45);
  background: rgba(108, 79, 142, 0.1);
  color: #5b3f7d;
}

:root[data-theme="light"] .top-meta {
  color: #676075;
}

:root[data-theme="light"] .live-dot {
  background: #7b5ca3;
  box-shadow: 0 0 10px rgba(123, 92, 163, 0.45);
}

:root[data-theme="light"] .divider {
  background: rgba(28, 25, 38, 0.18);
}

:root[data-theme="light"] .top-note {
  color: #756e82;
}

:root[data-theme="light"] .all-tags-link,
:root[data-theme="light"] .back-link {
  border-color: rgba(108, 79, 142, 0.3);
  background: rgba(255, 255, 255, 0.65);
  color: #46335e;
}

:root[data-theme="light"] .all-tags-link:hover,
:root[data-theme="light"] .back-link:hover {
  border-color: #6c4f8e;
  background: rgba(108, 79, 142, 0.12);
  color: #1c1926;
}

:root[data-theme="light"] .donate-button {
  border-color: rgba(108, 79, 142, 0.32);
  background: rgba(108, 79, 142, 0.1);
  color: #36254b;
}

:root[data-theme="light"] .donate-button:hover {
  background: rgba(108, 79, 142, 0.18);
  box-shadow: 0 4px 16px rgba(108, 79, 142, 0.14);
}

:root[data-theme="light"] .topbar-bgm-toggle,
:root[data-theme="light"] .theme-toggle {
  border-color: rgba(108, 79, 142, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #3a2d4c;
}

:root[data-theme="light"] .topbar-bgm-toggle:hover,
:root[data-theme="light"] .theme-toggle:hover {
  border-color: #6c4f8e;
  background: #ffffff;
  color: #1c1926;
}

:root[data-theme="light"] .topbar-bgm-bars i {
  background: #6c4f8e;
}

:root[data-theme="light"] #topbar-bgm-status {
  color: #756c85;
}

:root[data-theme="light"] .topbar-bgm-toggle.playing #topbar-bgm-status {
  color: #2f7a46;
}

:root[data-theme="light"] .hero {
  background: #ebe6f0;
}

:root[data-theme="light"] .hero-image {
  background: radial-gradient(ellipse at 67% 42%, #dfd6e8 0, #cfc4dc 35%, #e5dfec 70%, #f5f2f7 100%);
}

:root[data-theme="light"] .hero-image::after {
  background:
    linear-gradient(90deg, rgba(245, 242, 247, 0.92) 0%, rgba(245, 242, 247, 0.78) 28%, rgba(245, 242, 247, 0.25) 60%, rgba(245, 242, 247, 0.05) 100%),
    linear-gradient(0deg, #f5f2f7 0%, rgba(245, 242, 247, 0.55) 18%, transparent 42%, rgba(245, 242, 247, 0.15) 100%);
}

:root[data-theme="light"] .eyebrow {
  color: #6c4f8e;
}

:root[data-theme="light"] .eyebrow-line {
  background: #6c4f8e;
}

:root[data-theme="light"] .hero h1 {
  color: #1c1926;
  text-shadow: 0 2px 24px rgba(245, 242, 247, 0.85);
}

:root[data-theme="light"] .hero h1 em {
  color: #6c4f8e;
}

:root[data-theme="light"] .hero-intro {
  color: #3d364a;
  text-shadow: 0 1px 12px rgba(245, 242, 247, 0.9);
}

:root[data-theme="light"] .explore-link {
  border-bottom-color: rgba(108, 79, 142, 0.5);
  color: #1c1926;
}

:root[data-theme="light"] .hero-coordinate {
  color: #5b5369;
}

:root[data-theme="light"] .hero-caption {
  color: #241f30;
}

:root[data-theme="light"] .caption-kicker {
  color: #6c4f8e;
}

:root[data-theme="light"] .hero-index {
  color: #3d364a;
}

:root[data-theme="light"] .hero-index i {
  background: #6c4f8e;
}

:root[data-theme="light"] .hero-dot span {
  border-color: rgba(108, 79, 142, 0.65);
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .hero-dot.active span {
  background: #6c4f8e;
}

:root[data-theme="light"] .section-eyebrow {
  color: #756b85;
}

:root[data-theme="light"] .section-head h2 span {
  color: #756b85;
}

:root[data-theme="light"] .search-box {
  border-bottom-color: rgba(108, 79, 142, 0.35);
  color: #5b5369;
}

:root[data-theme="light"] .search-box input::placeholder,
:root[data-theme="light"] .search-box kbd {
  color: #8c8499;
}

:root[data-theme="light"] .filter {
  color: #6b6478;
}

:root[data-theme="light"] .filter:hover,
:root[data-theme="light"] .filter.active {
  color: #1c1926;
}

:root[data-theme="light"] .filter span {
  color: #857d92;
}

:root[data-theme="light"] .filter.tag-item {
  border-color: rgba(28, 25, 38, 0.12);
  background: #ffffff;
  color: #4f475c;
}

:root[data-theme="light"] .filter.tag-item:hover {
  border-color: rgba(108, 79, 142, 0.55);
  background: #efeaf4;
  color: #1c1926;
}

:root[data-theme="light"] .filter.tag-item.active {
  border-color: #6c4f8e;
  background: #6c4f8e;
  color: #ffffff;
}

:root[data-theme="light"] .filter.tag-item.active span {
  color: #e9dff4;
}

:root[data-theme="light"] .filter.tag-item span {
  color: #7d738e;
}

:root[data-theme="light"] .active-filter-bar {
  background: #ede8f3;
  border-color: rgba(108, 79, 142, 0.2);
  color: #4a4059;
}

:root[data-theme="light"] .active-filter-badge {
  background: #ffffff;
  border-color: rgba(108, 79, 142, 0.35);
  color: #3a2a50;
}

:root[data-theme="light"] .active-filter-reset {
  color: #6c637a;
}

:root[data-theme="light"] .active-filter-reset:hover {
  color: #1c1926;
}

:root[data-theme="light"] .art-image {
  border-color: rgba(28, 25, 38, 0.08);
  background: #e7e2ed;
  box-shadow: 0 12px 32px rgba(28, 25, 38, 0.08);
}

:root[data-theme="light"] .art-card:hover .art-image {
  box-shadow: 0 18px 40px rgba(28, 25, 38, 0.15);
}

:root[data-theme="light"] .art-image img {
  filter: saturate(.88) contrast(.98);
}

:root[data-theme="light"] .art-card:hover .art-image img {
  filter: saturate(1.02);
}

:root[data-theme="light"] .art-overlay {
  background: linear-gradient(0deg, rgba(28, 25, 38, 0.24), transparent 40%);
}

:root[data-theme="light"] .art-category {
  color: #6c4f8e;
}

:root[data-theme="light"] .art-number {
  color: #8b8398;
}

:root[data-theme="light"] .art-title {
  color: #1c1926;
}

:root[data-theme="light"] .art-excerpt {
  color: #5f586b;
}

:root[data-theme="light"] .art-date {
  color: #7c7489;
}

:root[data-theme="light"] .loading-state,
:root[data-theme="light"] .load-error,
:root[data-theme="light"] .empty-state {
  color: #5f586b;
}

:root[data-theme="light"] .empty-state>span {
  color: #6c4f8e;
}

:root[data-theme="light"] .empty-state h3 {
  color: #1c1926;
}

:root[data-theme="light"] .empty-state p {
  color: #6c6578;
}

:root[data-theme="light"] .load-more {
  color: #6c6578;
}

:root[data-theme="light"] .load-more button {
  border-color: rgba(108, 79, 142, 0.45);
  color: #36254b;
}

:root[data-theme="light"] .load-more button:hover:not(:disabled) {
  background: rgba(108, 79, 142, 0.1);
}

:root[data-theme="light"] .footer {
  color: #6f687c;
}

:root[data-theme="light"] .footer-right span {
  color: #6c4f8e;
}

:root[data-theme="light"] .detail {
  background: #f5f2f7;
  color: var(--ink);
  border-color: rgba(28, 25, 38, 0.12);
}

:root[data-theme="light"] .detail::backdrop {
  background: rgba(240, 236, 245, 0.82);
}

:root[data-theme="light"] .detail-visual {
  background: #eae5f0;
}

:root[data-theme="light"] .detail-info {
  background: radial-gradient(ellipse at 100% 0, #e6dcef 0, transparent 48%), #f7f5fa;
}

:root[data-theme="light"] .detail-close,
:root[data-theme="light"] .detail-nav {
  border-color: rgba(28, 25, 38, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #1c1926;
}

:root[data-theme="light"] .detail-nav:hover:not(:disabled) {
  background: #ffffff;
}

:root[data-theme="light"] #detail-index {
  color: #6c637a;
}

:root[data-theme="light"] .detail-dates {
  color: #6f677d;
}

:root[data-theme="light"] .tag-pill {
  border-color: rgba(108, 79, 142, 0.24);
  background: #ffffff;
  color: #4b3963;
}

:root[data-theme="light"] .tag-pill:hover {
  border-color: #6c4f8e;
  background: #6c4f8e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(108, 79, 142, 0.2);
}

:root[data-theme="light"] .tag-pill:hover::before {
  color: #e2d5f0;
}

:root[data-theme="light"] .prompt-label {
  color: #5b4776;
}

:root[data-theme="light"] .detail-prompt {
  color: #352f40;
}

:root[data-theme="light"] .copy-button,
:root[data-theme="light"] .share-button {
  border-color: rgba(108, 79, 142, 0.42);
  color: #36254b;
}

:root[data-theme="light"] .copy-button:hover,
:root[data-theme="light"] .share-button:hover {
  background: rgba(108, 79, 142, 0.1);
  border-color: #6c4f8e;
}

:root[data-theme="light"] .detail-seed {
  color: #756d82;
}

:root[data-theme="light"] .toast {
  border-color: rgba(28, 25, 38, 0.15);
  background: #ffffff;
  color: #1c1926;
  box-shadow: 0 8px 26px rgba(28, 25, 38, 0.12);
}

:root[data-theme="light"] .tags-hero h1 {
  color: #1c1926;
}

:root[data-theme="light"] .tags-hero h1 em {
  color: #6c4f8e;
}

:root[data-theme="light"] .tags-hero p {
  color: #595266;
}

:root[data-theme="light"] .tags-search-input {
  border-color: rgba(28, 25, 38, 0.16);
  background: #ffffff;
  color: #1c1926;
}

:root[data-theme="light"] .tags-search-input:focus {
  border-color: #6c4f8e;
  box-shadow: 0 0 16px rgba(108, 79, 142, 0.16);
}

:root[data-theme="light"] .tags-section-title {
  color: #6b5e7c;
}

:root[data-theme="light"] .tag-card {
  border-color: rgba(28, 25, 38, 0.1);
  background: #ffffff;
}

:root[data-theme="light"] .tag-card:hover {
  border-color: rgba(108, 79, 142, 0.55);
  background: #faf8fc;
  box-shadow: 0 14px 34px rgba(28, 25, 38, 0.1);
}

:root[data-theme="light"] .tag-card-name {
  color: #1c1926;
}

:root[data-theme="light"] .tag-card-name::before {
  color: #7d6d94;
}

:root[data-theme="light"] .tag-card-count {
  color: #6d657a;
}

:root[data-theme="light"] .tag-card-bar {
  background: #e8e2ef;
}

:root[data-theme="light"] .tag-card-fill {
  background: linear-gradient(90deg, #8b6cb0, #6c4f8e);
}

:root[data-theme="light"] .ambient-shell {
  border-color: rgba(108, 79, 142, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(28, 25, 38, 0.12), 0 0 18px rgba(108, 79, 142, 0.08);
}

:root[data-theme="light"] .ambient-toggle {
  border-color: rgba(108, 79, 142, 0.25);
  background: #f0ebf5;
  color: #1c1926;
}

:root[data-theme="light"] .ambient-toggle:hover {
  background: #e3d9ee;
  border-color: #6c4f8e;
}

:root[data-theme="light"] .ambient-bars .bar {
  background: #6c4f8e;
}

:root[data-theme="light"] .ambient-toggle:hover .ambient-state-icon {
  color: #1c1926;
}

:root[data-theme="light"] .ambient-label {
  color: #746786;
}

:root[data-theme="light"] .ambient-title {
  color: #1c1926;
}

:root[data-theme="light"] .ambient-controls {
  border-left-color: rgba(28, 25, 38, 0.1);
}

:root[data-theme="light"] .ambient-btn,
:root[data-theme="light"] .ambient-mute {
  color: #5b5269;
}

:root[data-theme="light"] .ambient-btn:hover,
:root[data-theme="light"] .ambient-mute:hover {
  color: #1c1926;
  background: rgba(108, 79, 142, 0.1);
}

:root[data-theme="light"] .ambient-volume {
  background: #ddd6e6;
}

:root[data-theme="light"] .ambient-volume:hover {
  background: #ccc2da;
}

:root[data-theme="light"] .ambient-volume::-webkit-slider-thumb {
  background: #6c4f8e;
  box-shadow: 0 0 6px rgba(108, 79, 142, 0.35);
}

:root[data-theme="light"] .ambient-volume::-moz-range-thumb {
  background: #6c4f8e;
  box-shadow: 0 0 6px rgba(108, 79, 142, 0.35);
}

:root[data-theme="light"] .ambient-hint {
  border-color: rgba(108, 79, 142, 0.25);
  background: rgba(255, 255, 255, 0.94);
  color: #2f283b;
  box-shadow: 0 8px 24px rgba(28, 25, 38, 0.12);
}

:root[data-theme="light"] .ambient-hint .hint-dot {
  background: #6c4f8e;
  box-shadow: 0 0 8px rgba(108, 79, 142, 0.5);
}

:root[data-theme="light"] .ambient-hint-close {
  color: #787085;
}

:root[data-theme="light"] .ambient-hint-close:hover {
  color: #1c1926;
}

@media (max-width: 600px) {
  :root[data-theme="light"] .hero-image::after {
    background:
      linear-gradient(90deg, rgba(245, 242, 247, 0.92), rgba(245, 242, 247, 0.45) 100%),
      linear-gradient(0deg, #f5f2f7 0%, transparent 45%);
  }

  :root[data-theme="light"] .detail-close {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* ========================================================
   SEO Pagination & Standalone Work Detail Page (/work/:id)
   ======================================================== */
.seo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .06em;
}

.seo-pagination a {
  color: var(--lavender);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color .2s, background .2s;
}

.seo-pagination a:hover {
  border-color: var(--lavender);
  background: rgba(217, 196, 236, 0.12);
}

.work-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 5.6vw 80px;
}

.work-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .85fr);
  gap: 36px;
  align-items: start;
}

.work-visual {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0d0d13;
}

.work-visual img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.work-info {
  padding: 12px 6px;
}

.work-info h1 {
  margin: 18px 0 20px;
  font: 500 clamp(24px, 3vw, 34px)/1.45 var(--serif);
  letter-spacing: .05em;
}

.work-prompt {
  max-height: none;
}

.work-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
}

.work-pager a {
  color: var(--lavender);
  text-decoration: none;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-pager a:hover {
  text-decoration: underline;
}

:root[data-theme="light"] .work-visual {
  background: #eae5f0;
}

@media (max-width: 900px) {
  .work-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-visual {
    min-height: 280px;
  }
}