.pathpage ::selection {
  background: rgba(128, 0, 255, 0.45);
  color: #fff;
}

.pathpage {
  scrollbar-color: rgba(191, 152, 255, 0.35) var(--ink);
}

.pathhead {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 10rem var(--gutter) 4.5rem;
  overflow: hidden;
}

.pathhead > :not(.aurora) {
  position: relative;
  z-index: 1;
}

.pathhead .aurora {
  z-index: 0;
  top: -22rem;
  right: auto;
  left: -8rem;
  opacity: 0.75;
}

.pathhead .path {
  font-size: 0.86rem;
  align-self: flex-start;
}

.pathhead h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 0.98;
  max-width: 18ch;
}

.pathhead .lede {
  margin-top: 0.2rem;
  max-width: 38rem;
  font-size: 1.18rem;
}

.pathpage section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.pathpage section .head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 24ch;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.6rem;
}

.pager {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.pg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.6rem var(--gutter) 1.6rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.pg b {
  color: var(--lit);
  font-weight: 500;
}

.pg > span:first-child {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.pg.next {
  align-items: flex-end;
  text-align: right;
  border-left: 1px solid var(--line);
}

.pg:hover {
  color: var(--text);
  background: var(--glass);
}

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.4rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  min-width: 0;
}

.tile-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-handle b {
  color: var(--text);
  font-weight: 500;
}

.tile-open {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--lit);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tile-open:hover {
  color: var(--text);
}

.tile-open svg {
  width: 0.75rem;
  height: 0.75rem;
}

.tile-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-lit);
  border-radius: 1.1rem;
  background: var(--ink-raised);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}

.tile:hover .tile-frame {
  transform: translateY(-4px);
  border-color: rgba(191, 152, 255, 0.4);
}

.tile-frame .page {
  position: absolute;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding: 1.5rem 1rem;
  transition: none;
}

.tile-frame .page-stack {
  width: min(21rem, 94%);
  transform: scale(0.88);
  transform-origin: center;
}

.wallnote {
  margin-top: 2.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--faint);
}

.wall-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 4rem 1rem;
  border: 1px dashed var(--line-lit);
  border-radius: 1.25rem;
  text-align: center;
  color: var(--muted);
}

.whysec .why-table {
  margin-top: 0;
}

.rowlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.row h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.row-us {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lit);
}

.row-us .mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.row-us .mark svg {
  width: 0.9rem;
  height: 0.9rem;
}

.row-us .mark.yes svg {
  color: var(--good);
}

.row.lose .row-us {
  color: #fbbf24;
}

.row.lose .mark.no svg {
  color: #fbbf24;
}

.row > p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.row.lose {
  grid-column: 1 / -1;
  padding: 1.8rem 1.6rem;
  margin-top: -1px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 1rem;
  background: rgba(251, 191, 36, 0.04);
}

.row.lose > p:last-child {
  max-width: 60ch;
}

.pathpage-design .studio .head {
  gap: 0.6rem;
}

.pathpage-design .studio .head .lede {
  margin-top: 0;
}

.arrange .head .lede {
  max-width: 40rem;
}

.lay-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.lay {
  position: relative;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  border: 1px solid var(--line-lit);
  border-radius: 1.25rem;
  background: radial-gradient(circle at 72% 18%, #2e1065, var(--ink) 68%);
  box-shadow: 0 40px 90px -50px rgba(128, 0, 255, 0.45);
  container-type: inline-size;
}

.lay-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(191, 152, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 152, 255, 0.1) 1px, transparent 1px);
  background-size: calc(100% / 41) calc(100% / 41);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 100%);
}

.lay-blk {
  position: absolute;
  left: calc(var(--c) * 100% / 41);
  top: calc(var(--r) * 100% / 41);
  width: calc(var(--cs) * 100% / 41);
  height: calc(var(--rs) * 100% / 41);
  display: flex;
  flex-direction: column;
  gap: 0.35cqw;
  padding: 1.2cqw 1.4cqw;
  overflow: hidden;
  border: 1px solid rgba(191, 152, 255, 0.45);
  border-radius: 1cqw;
  background: rgba(12, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  font-size: 1.25cqw;
  line-height: 1.4;
  color: var(--muted);
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lay-tag {
  position: absolute;
  top: 0.7cqw;
  right: 1cqw;
  font-family: var(--mono);
  font-size: 1cqw;
  letter-spacing: 0.05em;
  color: var(--lit);
}

.lay-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8cqw;
}

.lay-av {
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #9b3dff);
  color: #fff;
  font-size: 2.8cqw;
  font-weight: 800;
}

.lay-name {
  font-size: 2.2cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lay-line b {
  display: block;
  font-size: 1.15cqw;
  color: var(--text);
}

.lay-soc {
  display: flex;
  gap: 0.6cqw;
}

.lay-soc i {
  width: 2cqw;
  height: 2cqw;
  border-radius: 0.5cqw;
  background: rgba(255, 255, 255, 0.22);
}

.lay-links {
  justify-content: center;
  gap: 0.7cqw;
}

.lay-link {
  padding: 0.5cqw 1cqw;
  border: 1px solid var(--line-lit);
  border-radius: 100rem;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lay-discord {
  flex-direction: row;
  align-items: center;
  gap: 1cqw;
}

.lay-dot {
  flex: 0 0 auto;
  width: 1.4cqw;
  height: 1.4cqw;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 1cqw var(--good);
}

.lay-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6cqw;
  padding: 0.8cqw;
}

.lay-gallery i {
  border-radius: 0.6cqw;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.lay-player {
  flex-direction: row;
  align-items: center;
  gap: 1cqw;
}

.lay-art {
  flex: 0 0 auto;
  width: 4.2cqw;
  height: 4.2cqw;
  border-radius: 0.8cqw;
  background: linear-gradient(140deg, var(--accent), #ff5ea8);
}

.lay-track {
  flex: 1;
  min-width: 0;
}

.lay-track b {
  display: block;
  font-size: 1.2cqw;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lay-scrub {
  display: block;
  position: relative;
  height: 0.35cqw;
  margin-top: 0.6cqw;
  border-radius: 100rem;
  background: var(--line-lit);
}

.lay-scrub i {
  position: absolute;
  inset: 0 55% 0 0;
  border-radius: 100rem;
  background: var(--lit);
}

.lay-hud {
  position: absolute;
  left: 1.4cqw;
  bottom: 1.1cqw;
  display: flex;
  gap: 2cqw;
  font-family: var(--mono);
  font-size: 1.05cqw;
  color: var(--faint);
}

.lay-hud b {
  color: var(--lit);
  font-weight: 500;
}

.lay[data-arrangement="a"] .lay-card { --c: 3; --r: 5; --cs: 12; --rs: 24; }
.lay[data-arrangement="a"] .lay-links { --c: 17; --r: 5; --cs: 8; --rs: 16; }
.lay[data-arrangement="a"] .lay-discord { --c: 17; --r: 23; --cs: 8; --rs: 6; }
.lay[data-arrangement="a"] .lay-gallery { --c: 27; --r: 5; --cs: 11; --rs: 20; }
.lay[data-arrangement="a"] .lay-player { --c: 3; --r: 32; --cs: 16; --rs: 4; }

.lay[data-arrangement="b"] .lay-card { --c: 14; --r: 5; --cs: 13; --rs: 24; }
.lay[data-arrangement="b"] .lay-links { --c: 3; --r: 5; --cs: 9; --rs: 24; }
.lay[data-arrangement="b"] .lay-discord { --c: 29; --r: 23; --cs: 9; --rs: 6; }
.lay[data-arrangement="b"] .lay-gallery { --c: 29; --r: 5; --cs: 9; --rs: 16; }
.lay[data-arrangement="b"] .lay-player { --c: 3; --r: 32; --cs: 35; --rs: 4; }

.lay[data-arrangement="c"] .lay-card { --c: 14; --r: 3; --cs: 13; --rs: 20; }
.lay[data-arrangement="c"] .lay-links { --c: 3; --r: 3; --cs: 9; --rs: 16; }
.lay[data-arrangement="c"] .lay-discord { --c: 3; --r: 21; --cs: 9; --rs: 6; }
.lay[data-arrangement="c"] .lay-gallery { --c: 29; --r: 3; --cs: 9; --rs: 24; }
.lay[data-arrangement="c"] .lay-player { --c: 14; --r: 25; --cs: 13; --rs: 4; }

.lay-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.lay-pro {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lit);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(191, 152, 255, 0.4);
  border-radius: 100rem;
}

.lay-copy h3 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.lay-copy p {
  color: var(--muted);
  text-wrap: pretty;
}

.lay-copy ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.lay-copy li {
  display: flex;
  gap: 0.6rem;
}

.lay-copy li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--lit);
}

.lay-copy .knob-act {
  margin-top: 0.8rem;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label tier" "range tier";
  align-items: center;
  column-gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.control-label {
  grid-area: label;
  font-weight: 600;
}

.control-range {
  grid-area: range;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.control-tier {
  grid-area: tier;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.control.pro .control-tier {
  color: var(--lit);
}

.bands {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 2rem;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.band:first-child {
  border-top: 0;
  padding-top: 1rem;
}

.band:nth-child(even) .band-ui {
  order: -1;
}

.band-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  max-width: 20ch;
}

.band-copy p {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.band-docs {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lit);
  text-decoration: none;
  transition: color 0.15s ease;
}

.band-docs:hover {
  color: var(--text);
}

.band-ui .ui {
  margin-top: 0;
}

.rest .more {
  margin-top: 3rem;
}

.rest .more > * {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.7rem 1.5rem 1.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rest .more > a:hover b {
  color: var(--lit);
}

.more-go {
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--lit);
}

.qa {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.qa-rail {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.qa-rail a {
  padding: 0.45rem 0 0.45rem 0.9rem;
  border-left: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.qa-rail a:hover {
  color: var(--muted);
}

.qa-rail a.on {
  color: var(--text);
  border-left-color: var(--lit);
}

.qa-list {
  min-width: 0;
}

.q {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.q:first-child {
  padding-top: 0;
  border-top: 0;
}

.q h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1.35rem;
}

.q-anchor {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.q:hover .q-anchor,
.q:target .q-anchor,
.q-anchor:focus-visible {
  opacity: 1;
}

.q-anchor:hover {
  color: var(--lit);
}

.q p {
  margin-top: 0.8rem;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.qa-more {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.qa-more a {
  color: var(--lit);
}

.pathpage-yours .pathhead {
  align-items: center;
  text-align: center;
  padding-bottom: 1rem;
}

.pathpage-yours .pathhead .path {
  align-self: center;
}

.pathpage-yours .pathhead .aurora {
  left: 50%;
  transform: translateX(-50%);
  top: -20rem;
}

.yours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 0;
  padding-top: 1rem;
}

.yours .claim {
  width: 100%;
  margin-top: 0;
}

.yours .claim button:disabled {
  filter: grayscale(0.4);
  opacity: 0.55;
  cursor: not-allowed;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  min-height: 1.4em;
}

.avail::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.avail[data-state="checking"]::before {
  background: var(--lit);
  animation: avail-pulse 0.9s ease-in-out infinite;
}

.avail[data-state="free"] {
  color: var(--good);
}

.avail[data-state="free"]::before {
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}

.avail[data-state="taken"] {
  color: #fbbf24;
}

.avail[data-state="taken"]::before {
  background: #fbbf24;
}

@keyframes avail-pulse {
  50% { opacity: 0.3; }
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  max-width: 44rem;
  margin-top: 3rem;
  text-align: left;
}

.rules div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.rules b {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.yours .claim-note {
  margin-top: 2.4rem;
}

.yours-have {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.yours-have .acts {
  justify-content: center;
  margin-top: 1.4rem;
}

.yours-url {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--muted);
}

.yours-url b {
  color: var(--lit);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lay-wrap,
  .band,
  .rowlist,
  .controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .band {
    gap: 2rem;
    padding: 3rem 0;
  }
  .band:nth-child(even) .band-ui {
    order: 0;
  }
  .lay-wrap {
    gap: 2rem;
  }
  .qa {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .qa-rail {
    position: static;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
  }
  .pathhead {
    padding: 8rem var(--gutter) 3.5rem;
  }
}

@media (max-width: 640px) {
  .wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pg.next {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .row.lose {
    padding: 1.4rem 1.1rem;
  }
  .q h2 {
    flex-direction: column;
    gap: 0.3rem;
  }
  .q-anchor {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lay-blk,
  .tile-frame,
  .avail::before {
    transition: none;
    animation: none;
  }
}
