@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --ink: #3a1722;
  --ink-soft: #6e4050;
  --cream: #fff6ed;
  --paper: #f8e8da;
  --pink: #f2a9bd;
  --pink-light: #ffd7e2;
  --red: #9d243f;
  --red-dark: #65172b;
  --brown: #5a382f;
  --gold: #c8964b;
  --shadow: rgba(76, 22, 41, 0.18);
  --border: rgba(93, 32, 52, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 215, 226, 0.95), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(157, 36, 63, 0.13), transparent 24rem),
    linear-gradient(180deg, #fff8f2 0%, #f5ded9 100%);
  font-family: "DM Mono", monospace;
  line-height: 1.65;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(157, 36, 63, 0.14);
  border-radius: 50%;
}

body::before {
  top: -7rem;
  left: -6rem;
  box-shadow:
    2.2rem 2.2rem 0 -1px transparent,
    2.2rem 2.2rem 0 0 rgba(157, 36, 63, 0.09);
}

body::after {
  right: -7rem;
  bottom: -8rem;
  box-shadow:
    -2rem -2rem 0 -1px transparent,
    -2rem -2rem 0 0 rgba(157, 36, 63, 0.09);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 50;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.site-header,
.site-shell,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--cream);
  background: var(--red);
  border: 2px solid var(--red-dark);
  border-radius: 45% 55% 58% 42%;
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-4deg);
}

.site-logo strong,
.site-logo small {
  display: block;
}

.site-logo strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
}

.site-logo small {
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.74rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: rgba(255, 246, 237, 0.78);
  border-color: var(--border);
}

.site-shell {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.hero-panel,
.player-card,
.paper-card,
.about-card,
.warning-card,
.link-board {
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 2rem;
  min-height: 430px;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2rem 2rem 0.7rem 2rem;
  background:
    linear-gradient(115deg, rgba(255, 246, 237, 0.96), rgba(255, 215, 226, 0.76)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(157, 36, 63, 0.04) 24px 25px);
}

.hero-panel::before {
  content: "✦";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: rgba(157, 36, 63, 0.23);
  font-size: 6rem;
  line-height: 1;
  transform: rotate(16deg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 9%;
  bottom: -2.2rem;
  width: 8rem;
  height: 5.5rem;
  background: var(--red);
  border-radius: 55% 45% 0 0;
  clip-path: polygon(0 45%, 20% 36%, 35% 51%, 47% 20%, 58% 48%, 74% 30%, 100% 45%, 100% 100%, 0 100%);
  opacity: 0.86;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  letter-spacing: -0.05em;
}

h1 em {
  color: var(--red);
  font-weight: 600;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.intro {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--red-dark);
  border-radius: 0.7rem 0.7rem 0.7rem 0.25rem;
  text-decoration: none;
  font-size: 0.78rem;
  box-shadow: 4px 4px 0 rgba(101, 23, 43, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(101, 23, 43, 0.16);
}

.button.primary {
  color: var(--cream);
  background: var(--red);
}

.button.secondary {
  background: rgba(255, 246, 237, 0.7);
}

.status-card {
  position: relative;
  align-self: center;
  padding: 1.4rem;
  background: rgba(255, 246, 237, 0.74);
  border: 1px dashed var(--red);
  border-radius: 0.8rem;
  transform: rotate(1.5deg);
}

.status-pin {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--gold);
  border: 2px solid #8a5e20;
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(85, 37, 15, 0.35);
}

.status-label {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.status-card dl,
.status-card dd {
  margin: 0;
}

.status-card dl {
  display: grid;
  gap: 1rem;
}

.status-card dt {
  color: var(--red);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.status-card dd {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.player-card,
.paper-card,
.about-card,
.warning-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.2rem;
}

.player-card {
  grid-row: span 2;
  background:
    linear-gradient(rgba(58, 23, 34, 0.97), rgba(71, 25, 42, 0.98)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
  color: var(--cream);
}

.player-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(255, 215, 226, 0.18);
  border-radius: 50%;
  box-shadow:
    -1.7rem -1.7rem 0 -1px transparent,
    -1.7rem -1.7rem 0 0 rgba(255, 215, 226, 0.1);
}

.player-card .eyebrow {
  color: var(--pink);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.tiny-label {
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255, 246, 237, 0.28);
  border-radius: 0.35rem;
  color: var(--pink-light);
  font-size: 0.65rem;
}

.mp3-player {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 430px;
  margin: 1.3rem auto 0;
}

.album-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: min(100%, 300px);
  border: 1px solid rgba(255, 246, 237, 0.25);
  border-radius: 1.2rem 1.2rem 1.2rem 0.35rem;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.18);
}

.album-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-shine {
  position: absolute;
  inset: -40% 55% -40% -20%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.17), transparent);
  transform: rotate(10deg);
}

.track-info {
  text-align: center;
}

.track-title,
.track-artist {
  margin: 0;
}

.track-title {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

.track-artist {
  color: var(--pink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.progress-row,
.volume-row {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 246, 237, 0.68);
  font-size: 0.64rem;
}

.progress-row {
  grid-template-columns: 2.8rem 1fr 2.8rem;
}

.volume-row {
  grid-template-columns: auto 1fr auto;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
  cursor: pointer;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(255, 246, 237, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.icon-button:hover,
.icon-button:focus-visible,
.play-button:hover,
.play-button:focus-visible {
  background: rgba(255, 215, 226, 0.14);
  transform: scale(1.06);
}

.icon-button.small {
  width: 2.6rem;
  height: 2.6rem;
}

.play-button {
  width: 4.3rem;
  height: 4.3rem;
  color: var(--ink);
  background: var(--pink);
  border-color: var(--pink-light);
  box-shadow: 0 0 0 5px rgba(242, 169, 189, 0.13);
  font-size: 1.2rem;
}

.play-button:hover,
.play-button:focus-visible {
  background: var(--pink-light);
}

.player-message {
  min-height: 1.35rem;
  margin: 0;
  color: rgba(255, 246, 237, 0.58);
  text-align: center;
  font-size: 0.64rem;
}

.player-message code {
  color: var(--pink-light);
}

.paper-card {
  overflow: visible;
  background:
    linear-gradient(rgba(248, 232, 218, 0.92), rgba(248, 232, 218, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(91, 52, 60, 0.11) 28px 29px);
  transform: rotate(-0.4deg);
}

.paper-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.tape {
  position: absolute;
  top: -0.7rem;
  right: 13%;
  width: 5rem;
  height: 1.6rem;
  background: rgba(242, 169, 189, 0.55);
  border-left: 1px dashed rgba(91, 52, 60, 0.2);
  border-right: 1px dashed rgba(91, 52, 60, 0.2);
  transform: rotate(4deg);
}

.text-link {
  color: var(--red);
  font-weight: 500;
  font-size: 0.75rem;
}

.about-card {
  background: rgba(255, 246, 237, 0.74);
}

.about-card p:not(.eyebrow),
.warning-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.charm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.charm-list li {
  padding: 0.35rem 0.55rem;
  background: var(--pink-light);
  border: 1px solid rgba(157, 36, 63, 0.25);
  border-radius: 999px;
  font-size: 0.65rem;
}

.warning-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  background: var(--red-dark);
  color: var(--cream);
}

.warning-symbol {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 246, 237, 0.28);
  border-radius: 50%;
  color: var(--pink);
  font-size: 2rem;
}

.warning-card .eyebrow {
  color: var(--pink);
}

.warning-card p:not(.eyebrow) {
  color: rgba(255, 246, 237, 0.72);
}

.link-board {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background:
    linear-gradient(rgba(255, 246, 237, 0.75), rgba(255, 246, 237, 0.75)),
    radial-gradient(circle at 10% 50%, rgba(242, 169, 189, 0.5), transparent 12rem);
  border-radius: 1.2rem 1.2rem 2.2rem 1.2rem;
}

.section-title {
  margin-bottom: 1.2rem;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.door {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 180px;
  padding: 1rem;
  align-content: end;
  border: 1px solid var(--border);
  border-radius: 5rem 5rem 0.8rem 0.8rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.door::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(58, 23, 34, 0.42);
  border-radius: 50%;
  background: var(--gold);
}

.door:hover,
.door:focus-visible {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 15px 25px rgba(76, 22, 41, 0.16);
}

.door strong,
.door small {
  display: block;
  position: relative;
  z-index: 1;
}

.door strong {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.door small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.door-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 2rem;
  color: rgba(157, 36, 63, 0.2);
  font-size: 4.5rem;
}

.diary-door {
  background: #f8e6dc;
}

.music-door {
  background: #f3b9c8;
}

.shrine-door {
  background: #ecd2c7;
}

.oddities-door {
  background: #d9b9ad;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.footer-counter span {
  display: inline-block;
  padding: 0.18rem 0.35rem;
  background: var(--ink);
  color: var(--pink-light);
  border-radius: 0.2rem;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .status-card {
    max-width: 460px;
  }

  .player-card {
    grid-row: auto;
  }

  .door-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-shell,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    padding-top: 0.9rem;
  }

  .site-logo small {
    display: none;
  }

  .main-nav {
    gap: 0.2rem;
  }

  .main-nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.65rem;
  }

  .hero-panel {
    padding: 1.5rem;
    border-radius: 1.4rem 1.4rem 0.6rem 1.4rem;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .content-grid {
    gap: 1rem;
  }

  .door-grid {
    grid-template-columns: 1fr;
  }

  .door {
    min-height: 150px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* =========================
   DIARY PAGE
   ========================= */

.diary-page {
  gap: 1.5rem;
}

.diary-hero {
  min-height: 360px;
}

.diary-warning {
  max-width: 620px;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.diary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.diary-entry {
  padding: clamp(1.5rem, 4vw, 3rem);
  transform: rotate(-0.25deg);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(93, 32, 52, 0.28);
}

.entry-header h2 {
  margin-bottom: 0;
}

.entry-header time {
  flex-shrink: 0;
  color: var(--red);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-body {
  padding: 1rem 0;
}

.entry-body p {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

.entry-body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 4rem;
  line-height: 0.8;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.28);
  color: var(--red);
  font-size: 0.65rem;
}

.diary-sidebar {
  display: grid;
  gap: 1.5rem;
}

.diary-note-card {
  transform: none;
}

.entry-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.entry-details div {
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(93, 32, 52, 0.2);
}

.entry-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.entry-details dt {
  color: var(--red);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-details dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.archive-intro {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  position: relative;
  min-height: 190px;
  padding: 1.3rem;
  background: rgba(255, 246, 237, 0.74);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 5px 7px 0 rgba(76, 22, 41, 0.08);
}

.archive-card time {
  color: var(--red);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 0.65rem 0;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.archive-card p {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.archive-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  border-style: dashed;
}

.archive-symbol {
  color: var(--pink);
  font-size: 2rem;
}

@media (max-width: 860px) {
  .diary-layout {
    grid-template-columns: 1fr;
  }

  .diary-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .entry-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .diary-sidebar,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .entry-footer {
    flex-direction: column;
  }
}

/* =========================
   MUSIC PAGE
   ========================= */

.music-page {
  gap: 1.5rem;
}

.music-hero {
  min-height: 390px;
}

.music-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.music-feature-player {
  grid-row: auto;
}

.music-feature-notes {
  display: grid;
  gap: 1.5rem;
}

.liner-card {
  min-height: 0;
  transform: rotate(0.35deg);
}

.release-copy {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.8;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.3rem 0;
}

.release-facts div {
  padding: 0.75rem;
  background: rgba(255, 246, 237, 0.55);
  border: 1px dashed rgba(93, 32, 52, 0.22);
  border-radius: 0.55rem;
}

.release-facts dt {
  color: var(--red);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-facts dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.69rem;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-link {
  display: inline-flex;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(157, 36, 63, 0.25);
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--red-dark);
  font-size: 0.62rem;
}

.platform-link.disabled {
  opacity: 0.72;
  cursor: default;
}

.music-whisper-card {
  min-height: 150px;
}

.music-cabinet {
  scroll-margin-top: 1rem;
}

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

.release-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: rgba(255, 246, 237, 0.76);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 5px 7px 0 rgba(76, 22, 41, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.release-card:hover {
  transform: translateY(-4px) rotate(-0.15deg);
  box-shadow: 8px 12px 0 rgba(76, 22, 41, 0.1);
}

.release-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 1.45 / 1;
  min-height: 135px;
  border-bottom: 1px solid var(--border);
  color: rgba(255, 246, 237, 0.95);
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  text-shadow: 0 3px 0 rgba(58, 23, 34, 0.18);
}

.release-art::before,
.release-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 246, 237, 0.32);
  border-radius: 50%;
}

.release-art::before {
  width: 9rem;
  height: 9rem;
}

.release-art::after {
  width: 6.2rem;
  height: 6.2rem;
}

.release-art span {
  position: relative;
  z-index: 1;
}

.release-art-wildcat {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 246, 237, 0.3), transparent 25%),
    linear-gradient(135deg, #f2a9bd, #9d243f 72%);
}

.release-art-alley {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 215, 226, 0.3), transparent 26%),
    linear-gradient(145deg, #4d1c31, #b74e6c);
}

.release-art-modot {
  background:
    linear-gradient(25deg, rgba(101, 23, 43, 0.35), transparent 52%),
    linear-gradient(145deg, #c8964b, #8d3b42);
}

.release-art-everything {
  background:
    radial-gradient(circle, rgba(255, 246, 237, 0.22) 0 2px, transparent 3px) 0 0 / 22px 22px,
    linear-gradient(145deg, #db889f, #65172b);
}

.release-art-leo {
  background:
    radial-gradient(circle at center, rgba(255, 246, 237, 0.18), transparent 45%),
    linear-gradient(145deg, #614339, #b7725b);
}

.release-art-unknown {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px),
    linear-gradient(145deg, #3a1722, #80505d);
}

.release-card-copy {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.release-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
}

.release-type {
  color: var(--red);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.42rem;
  border: 1px solid rgba(93, 32, 52, 0.2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.release-badge.live {
  background: var(--red);
  color: var(--cream);
}

.release-card h3 {
  margin: 0.7rem 0 0.45rem;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.release-card p {
  flex: 1;
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.muted-link {
  color: var(--ink-soft);
  opacity: 0.72;
  text-decoration: none;
}

.release-placeholder {
  border-style: dashed;
}

.music-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.music-room-card {
  min-height: 240px;
}

.music-room-card p:not(.eyebrow) {
  max-width: 600px;
}

.demo-vault-card {
  transform: rotate(-0.3deg);
}

.disabled-button {
  margin-top: 1rem;
  opacity: 0.68;
  cursor: default;
  box-shadow: none;
}

.disabled-button:hover,
.disabled-button:focus-visible {
  transform: none;
  box-shadow: none;
}

#featured-track {
  scroll-margin-top: 1rem;
}

@media (max-width: 960px) {
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .music-feature-layout {
    grid-template-columns: 1fr;
  }

  .music-feature-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .release-facts,
  .release-grid,
  .music-feature-notes,
  .music-lower-grid {
    grid-template-columns: 1fr;
  }

  .release-card-topline {
    align-items: flex-start;
  }
}

/* =========================
   LYRICS HALL
   ========================= */

.lyrics-page {
  gap: 1.5rem;
}

.lyrics-hero {
  min-height: 380px;
}

.lyrics-directory {
  scroll-margin-top: 1rem;
}

.lyrics-index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.lyric-index-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 145px;
  padding: 1rem;
  align-content: end;
  background: rgba(255, 246, 237, 0.78);
  border: 1px solid var(--border);
  border-radius: 0.8rem 0.8rem 1.5rem 0.8rem;
  box-shadow: 4px 5px 0 rgba(76, 22, 41, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lyric-index-card::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  border: 1px solid rgba(157, 36, 63, 0.15);
  border-radius: 50%;
}

.lyric-index-card:hover,
.lyric-index-card:focus-visible {
  transform: translateY(-4px) rotate(-0.2deg);
  box-shadow: 7px 9px 0 rgba(76, 22, 41, 0.09);
}

.lyric-index-number {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
}

.lyric-index-card strong,
.lyric-index-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.lyric-index-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.05;
}

.lyric-index-card small {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.lyrics-hall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 1.5rem;
  align-items: start;
}

.lyric-drawers,
.lyrics-sidebar {
  display: grid;
  gap: 1rem;
}

.lyric-drawer {
  scroll-margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 246, 237, 0.5);
  box-shadow: 5px 7px 0 rgba(76, 22, 41, 0.07);
}

.lyric-drawer[open] {
  background: rgba(255, 246, 237, 0.72);
}

.lyric-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.lyric-drawer summary::-webkit-details-marker {
  display: none;
}

.lyric-drawer summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.25rem;
  border: 1px solid rgba(157, 36, 63, 0.25);
  border-radius: 50%;
  color: var(--red);
  font-size: 1rem;
}

.lyric-drawer[open] summary::after {
  content: "−";
}

.drawer-symbol {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(157, 36, 63, 0.25);
  border-radius: 45% 55% 55% 45%;
  background: var(--pink-light);
  color: var(--red-dark);
  font-family: "Fraunces", serif;
  font-size: 1rem;
}

.drawer-title {
  min-width: 0;
}

.drawer-title strong,
.drawer-title small {
  display: block;
}

.drawer-title strong {
  overflow-wrap: anywhere;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.drawer-title small {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.6rem;
}

.drawer-action {
  color: var(--red);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lyric-sheet {
  overflow: visible;
  margin: 0 0.85rem 0.85rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 0.9rem;
  box-shadow: none;
  transform: rotate(-0.15deg);
}

.lyric-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(93, 32, 52, 0.24);
}

.lyric-copy {
  padding: 1rem 0;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.9;
}

.lyric-copy p {
  margin: 0 0 1rem;
}

.lyric-copy p:last-child {
  margin-bottom: 0;
}

.lyric-label {
  margin-top: 1.5rem;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lyric-dropcap::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 3.8rem;
  line-height: 0.78;
}

.lyric-placeholder-copy {
  min-height: 170px;
}

.lyric-sheet-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.24);
}

.lyrics-guide-card,
.lyrics-warning-card,
.lyrics-note-card {
  min-height: 0;
  transform: none;
}

.lyrics-note-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.92rem;
}

.memorial-sheet {
  background:
    linear-gradient(rgba(248, 232, 218, 0.94), rgba(248, 232, 218, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(91, 52, 60, 0.11) 28px 29px);
}

@media (max-width: 1040px) {
  .lyrics-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .lyrics-hall-layout {
    grid-template-columns: 1fr;
  }

  .lyrics-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lyrics-note-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .lyrics-index-grid,
  .lyrics-sidebar {
    grid-template-columns: 1fr;
  }

  .lyric-index-card {
    min-height: 120px;
  }

  .lyric-drawer summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .drawer-action {
    display: none;
  }

  .lyric-sheet-header,
  .lyric-sheet-footer {
    flex-direction: column;
  }
}


/* =========================
   SHRINE HALL + ROOMS
   ========================= */

.shrines-page,
.shrine-detail-page {
  gap: 1.5rem;
}

.shrines-hero,
.shrine-detail-hero {
  min-height: 390px;
}

#shrine-doors,
#reliquary {
  scroll-margin-top: 1rem;
}

.shrine-door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.shrine-portal {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 440px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  align-content: end;
  border: 1px solid var(--border);
  border-radius: 9rem 9rem 1.2rem 1.2rem;
  color: var(--ink);
  box-shadow: 0 18px 45px var(--shadow), inset 0 0 0 6px rgba(255, 255, 255, 0.13);
  text-decoration: none;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shrine-portal::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(255, 246, 237, 0.45);
  border-radius: 8rem 8rem 0.75rem 0.75rem;
}

.shrine-portal::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 246, 237, 0.34);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1.7rem rgba(255, 246, 237, 0.07);
}

.shrine-portal:hover,
.shrine-portal:focus-visible {
  transform: translateY(-7px) rotate(-0.3deg);
  box-shadow: 0 26px 55px rgba(76, 22, 41, 0.23), inset 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.mac-portal {
  background:
    linear-gradient(180deg, rgba(255, 246, 237, 0.2), rgba(92, 43, 37, 0.13)),
    linear-gradient(140deg, #d8ad8f 0%, #a85c55 48%, #6d2c39 100%);
}

.emre-portal {
  background:
    linear-gradient(180deg, rgba(255, 246, 237, 0.22), rgba(42, 61, 75, 0.11)),
    linear-gradient(140deg, #d7e1df 0%, #8fa6ac 48%, #4f6572 100%);
}

.portal-number {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  color: rgba(255, 246, 237, 0.7);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.portal-sigil {
  position: absolute;
  top: 4.1rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  color: rgba(255, 246, 237, 0.92);
  border: 1px solid rgba(255, 246, 237, 0.42);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 3.4rem;
  transform: translateX(-50%);
}

.portal-copy,
.portal-action {
  position: relative;
  z-index: 1;
}

.portal-copy small,
.portal-copy strong,
.portal-copy span {
  display: block;
}

.portal-copy small {
  color: rgba(255, 246, 237, 0.76);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-copy strong {
  margin: 0.35rem 0 0.5rem;
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.portal-copy span {
  max-width: 390px;
  color: rgba(255, 246, 237, 0.78);
  font-size: 0.72rem;
}

.portal-action {
  justify-self: start;
  margin-top: 1.25rem;
  padding: 0.55rem 0.75rem;
  color: var(--cream);
  border: 1px solid rgba(255, 246, 237, 0.42);
  border-radius: 999px;
  font-size: 0.65rem;
}

.shrine-hall-notes,
.shrine-intro-grid,
.shrine-keepsake-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.shrine-hall-card,
.shrine-letter-card,
.shrine-facts-card,
.keepsake-card,
.shrine-vow-card {
  min-height: 100%;
  transform: none;
}

.shrine-hall-card p:not(.eyebrow),
.shrine-letter-copy,
.keepsake-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.8;
}

.shrine-etiquette {
  align-self: stretch;
}

.shrine-detail-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

.mac-shrine-hero {
  background:
    linear-gradient(115deg, rgba(255, 246, 237, 0.94), rgba(194, 131, 111, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(101, 23, 43, 0.045) 24px 25px);
}

.emre-shrine-hero {
  background:
    linear-gradient(115deg, rgba(255, 246, 237, 0.95), rgba(188, 207, 207, 0.8)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(61, 87, 99, 0.045) 24px 25px);
}

.shrine-portrait-card {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 300px);
  padding: 1rem 1rem 0.8rem;
  background: rgba(255, 246, 237, 0.78);
  border: 1px solid var(--border);
  border-radius: 10rem 10rem 0.8rem 0.8rem;
  box-shadow: 8px 10px 0 rgba(76, 22, 41, 0.11);
  transform: rotate(1deg);
}

.shrine-portrait-card p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-frame,
.shrine-portrait-image {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid rgba(93, 32, 52, 0.3);
  border-radius: 9rem 9rem 0.5rem 0.5rem;
}

.shrine-portrait-image {
  object-fit: cover;
}

.mac-portrait-frame {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 246, 237, 0.52), transparent 20%),
    linear-gradient(155deg, #c99a78, #6e3540);
}

.emre-portrait-frame {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 246, 237, 0.58), transparent 20%),
    linear-gradient(155deg, #b9cdcc, #536c78);
}

.portrait-monogram {
  color: rgba(255, 246, 237, 0.9);
  font-family: "Fraunces", serif;
  font-size: 7rem;
  line-height: 1;
  text-shadow: 4px 5px 0 rgba(58, 23, 34, 0.13);
}

.portrait-mark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--cream);
  border: 1px solid rgba(255, 246, 237, 0.4);
  border-radius: 50%;
  background: rgba(58, 23, 34, 0.24);
  font-size: 1.25rem;
}

.shrine-letter-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  transform: rotate(-0.2deg);
}

.shrine-letter-copy p {
  margin: 0 0 1rem;
}

.shrine-letter-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 3.8rem;
  line-height: 0.78;
}

.shrine-signature {
  margin: 1.2rem 0 0;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  text-align: right;
}

.emre-letter-card .shrine-letter-copy p:first-child::first-letter,
.emre-shrine-theme .eyebrow,
.emre-shrine-theme .shrine-signature,
.emre-shrine-theme .text-link {
  color: #496a78;
}

.emre-shrine-theme .button.primary,
.emre-shrine-theme .warning-card {
  background: #496a78;
  border-color: #344d59;
}

.emre-shrine-theme .status-card,
.emre-shrine-theme .relic-card,
.emre-shrine-theme .keepsake-card {
  border-color: rgba(73, 106, 120, 0.28);
}

.emre-shrine-theme .status-card dt,
.emre-shrine-theme .entry-details dt,
.emre-shrine-theme .keepsake-list span {
  color: #496a78;
}

.shrine-facts-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  transform: rotate(0.7deg);
}

.reliquary-section {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.2rem 1.2rem 2.2rem 1.2rem;
  background:
    linear-gradient(rgba(255, 246, 237, 0.72), rgba(255, 246, 237, 0.72)),
    radial-gradient(circle at 90% 20%, rgba(157, 36, 63, 0.16), transparent 17rem);
  box-shadow: 0 18px 50px var(--shadow);
}

.emre-reliquary {
  background:
    linear-gradient(rgba(255, 246, 237, 0.75), rgba(255, 246, 237, 0.75)),
    radial-gradient(circle at 90% 20%, rgba(73, 106, 120, 0.19), transparent 17rem);
}

.reliquary-intro {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.reliquary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.relic-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 1.2rem;
  background: rgba(255, 246, 237, 0.78);
  border: 1px solid var(--border);
  border-radius: 0.9rem 0.9rem 1.5rem 0.9rem;
  box-shadow: 4px 6px 0 rgba(76, 22, 41, 0.07);
}

.relic-card::after {
  content: "";
  position: absolute;
  top: -2.7rem;
  right: -2.7rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(157, 36, 63, 0.12);
  border-radius: 50%;
}

.emre-relic-card::after {
  border-color: rgba(73, 106, 120, 0.16);
}

.relic-icon {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 1.2rem;
  color: var(--red);
  border: 1px solid rgba(157, 36, 63, 0.22);
  border-radius: 50%;
  background: var(--pink-light);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.emre-relic-card .relic-icon {
  color: #496a78;
  border-color: rgba(73, 106, 120, 0.25);
  background: #dce8e7;
}

.relic-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.relic-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.keepsake-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.keepsake-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(93, 32, 52, 0.2);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.keepsake-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.keepsake-list span {
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 1rem;
}

.shrine-vow-card {
  align-self: stretch;
}

.shrine-room-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

@media (max-width: 1020px) {
  .reliquary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shrine-door-grid,
  .shrine-intro-grid,
  .shrine-keepsake-layout,
  .shrine-detail-hero {
    grid-template-columns: 1fr;
  }

  .shrine-portal {
    min-height: 390px;
  }

  .shrine-portrait-card {
    width: min(100%, 280px);
  }
}

@media (max-width: 620px) {
  .shrine-door-grid,
  .reliquary-grid {
    grid-template-columns: 1fr;
  }

  .shrine-portal {
    min-height: 360px;
    border-radius: 7rem 7rem 1rem 1rem;
  }

  .portal-copy strong {
    font-size: 3rem;
  }

  .relic-card {
    min-height: 0;
  }

  .shrine-room-nav {
    flex-direction: column;
  }

  .shrine-room-nav .button {
    width: 100%;
  }
}

/* =========================
   CURIOSITIES PAGE
   ========================= */

.curiosities-page {
  gap: 1.5rem;
}

.curiosities-hero {
  min-height: 390px;
  background:
    linear-gradient(115deg, rgba(255, 246, 237, 0.96), rgba(236, 210, 199, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(157, 36, 63, 0.04) 24px 25px);
}

.curiosity-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.curiosity-feature-card,
.curiosity-rule-card {
  min-height: 100%;
}

.curiosity-feature-card {
  padding: clamp(1.5rem, 4vw, 2.7rem);
}

.curiosity-feature-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.85;
}

.curiosity-rule-card {
  align-self: stretch;
}

.curiosity-cabinet,
.curiosity-shelf {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.2rem 1.2rem 2.2rem 1.2rem;
  background:
    linear-gradient(rgba(255, 246, 237, 0.78), rgba(255, 246, 237, 0.78)),
    radial-gradient(circle at 88% 12%, rgba(200, 150, 75, 0.18), transparent 18rem),
    repeating-linear-gradient(0deg, rgba(90, 56, 47, 0.03) 0 1px, transparent 1px 6px);
  box-shadow: 0 18px 50px var(--shadow);
}

.curiosity-section-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.curiosity-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.curiosity-drawer {
  overflow: hidden;
  align-self: start;
  border: 1px solid rgba(90, 56, 47, 0.28);
  border-radius: 0.9rem 0.9rem 1.4rem 0.9rem;
  background:
    linear-gradient(105deg, rgba(255, 246, 237, 0.93), rgba(248, 232, 218, 0.83)),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(90, 56, 47, 0.035) 33px 34px);
  box-shadow: 5px 7px 0 rgba(76, 22, 41, 0.07);
}

.curiosity-drawer summary {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 110px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.curiosity-drawer summary::-webkit-details-marker {
  display: none;
}

.curiosity-drawer summary:hover,
.curiosity-drawer summary:focus-visible {
  background: rgba(242, 169, 189, 0.11);
}

.drawer-number {
  align-self: start;
  color: rgba(93, 32, 52, 0.55);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.drawer-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(157, 36, 63, 0.21);
  border-radius: 50%;
  background: var(--pink-light);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 4px rgba(255, 246, 237, 0.32);
}

.drawer-heading strong,
.drawer-heading small {
  display: block;
}

.drawer-heading strong {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  line-height: 1.05;
}

.drawer-heading small {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.drawer-toggle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--cream);
  background: var(--red);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  transition: transform 160ms ease, background 160ms ease;
}

.curiosity-drawer[open] .drawer-toggle {
  transform: rotate(45deg);
  background: var(--red-dark);
}

.curiosity-drawer[open] summary {
  border-bottom: 1px dashed rgba(93, 32, 52, 0.23);
}

.drawer-inside {
  padding: 1.15rem 1.25rem 1.35rem;
}

.drawer-inside > p {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.curiosity-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.curiosity-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(93, 32, 52, 0.18);
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.curiosity-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.curiosity-list li > span {
  color: var(--red);
  text-align: center;
  font-size: 1rem;
}

.curiosity-list strong {
  color: var(--ink);
}

.compact-list li {
  grid-template-columns: 2rem 1fr;
}

.specimen-tags,
.curiosity-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.specimen-tags span,
.curiosity-token-row span {
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(157, 36, 63, 0.23);
  border-radius: 999px;
  background: rgba(255, 215, 226, 0.72);
  font-size: 0.63rem;
}

.cat-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.cat-file-grid article {
  position: relative;
  min-height: 150px;
  padding: 1rem;
  border: 1px dashed rgba(93, 32, 52, 0.25);
  border-radius: 0.75rem;
  background: rgba(255, 246, 237, 0.68);
}

.cat-file-grid h3 {
  margin: 0.6rem 0 0.35rem;
  font-family: "Fraunces", serif;
}

.cat-file-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.cat-file-stamp {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--cream);
  background: var(--red);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  transform: rotate(-5deg);
}

.swatch-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.swatch {
  width: 2.7rem;
  height: 2.7rem;
  border: 2px solid rgba(255, 246, 237, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(58, 23, 34, 0.2), 3px 4px 0 rgba(76, 22, 41, 0.08);
}

.swatch-cream { background: var(--cream); }
.swatch-pink { background: var(--pink); }
.swatch-red { background: var(--red); }
.swatch-brown { background: var(--brown); }
.swatch-gold { background: var(--gold); }

.button-specimens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.button-specimens span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0.3rem 0.45rem;
  color: var(--cream);
  background: var(--ink);
  border: 2px outset rgba(255, 246, 237, 0.5);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.button-specimens span:nth-child(2),
.button-specimens span:nth-child(4) {
  color: var(--ink);
  background: var(--pink);
}

.curiosity-shelf {
  background:
    linear-gradient(rgba(255, 246, 237, 0.74), rgba(255, 246, 237, 0.74)),
    radial-gradient(circle at 12% 50%, rgba(242, 169, 189, 0.35), transparent 13rem);
}

.curiosity-token-row span:nth-child(3n + 2) {
  background: rgba(236, 210, 199, 0.8);
}

.curiosity-token-row span:nth-child(3n) {
  background: rgba(200, 150, 75, 0.17);
}

@media (max-width: 860px) {
  .curiosity-feature-grid,
  .curiosity-drawer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .curiosity-drawer summary {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
  }

  .drawer-number {
    display: none;
  }

  .drawer-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .drawer-heading strong {
    font-size: 1.2rem;
  }

  .cat-file-grid,
  .button-specimens {
    grid-template-columns: 1fr;
  }

  .swatch {
    width: 2.25rem;
    height: 2.25rem;
  }
}


/* =========================
   PERSONAL HOMEPAGE PASS
   red, gold, and a little bad judgment
   ========================= */

.site-logo strong {
  letter-spacing: 0.025em;
}

.site-logo small {
  color: var(--red-dark);
  font-style: italic;
}

.logo-mark {
  border-color: var(--gold);
  box-shadow:
    4px 4px 0 var(--pink),
    7px 7px 0 rgba(200, 150, 75, 0.42);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  border-color: rgba(200, 150, 75, 0.72);
  box-shadow: inset 0 -2px 0 rgba(157, 36, 63, 0.18);
}

.button {
  border-color: var(--gold);
  box-shadow:
    4px 4px 0 rgba(101, 23, 43, 0.16),
    inset 0 0 0 1px rgba(255, 246, 237, 0.18);
}

.button:hover,
.button:focus-visible {
  box-shadow:
    7px 7px 0 rgba(101, 23, 43, 0.16),
    0 0 0 2px rgba(200, 150, 75, 0.23);
}

.heart-emoticon {
  display: inline-block;
  color: var(--red);
  font-size: 1.08em;
  white-space: nowrap;
}

.status-card {
  border-color: var(--red);
  box-shadow:
    5px 7px 0 rgba(200, 150, 75, 0.2),
    inset 0 0 0 1px rgba(200, 150, 75, 0.15);
}

.home-content-grid {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "player about"
    "player diary"
    "warning warning";
  align-items: stretch;
}

.home-player-card {
  grid-area: player;
  border-color: rgba(200, 150, 75, 0.58);
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 0 0 1px rgba(200, 150, 75, 0.12);
}

.radio-note {
  margin: -0.45rem 0 0;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.home-diary-card {
  grid-area: diary;
  align-self: start;
  border-color: rgba(157, 36, 63, 0.34);
  box-shadow:
    0 18px 50px var(--shadow),
    7px 8px 0 rgba(200, 150, 75, 0.12);
}

.home-diary-card p:not(.eyebrow) {
  font-size: 0.93rem;
  line-height: 1.78;
}

.home-diary-card p a {
  color: var(--red);
  font-weight: 700;
  text-decoration-color: rgba(200, 150, 75, 0.86);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.home-about-card {
  grid-area: about;
  align-self: stretch;
  border-top: 4px solid var(--gold);
}

.home-warning-card {
  grid-area: warning;
  border-color: rgba(200, 150, 75, 0.72);
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 0 0 1px rgba(200, 150, 75, 0.12);
}

.warning-symbol {
  border-color: rgba(200, 150, 75, 0.66);
  color: var(--gold);
}

.link-board {
  border-color: rgba(200, 150, 75, 0.45);
}

.door {
  border-color: rgba(157, 36, 63, 0.33);
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,0.12),
    inset 0 -4px 0 rgba(200, 150, 75, 0.13);
}

.door:hover,
.door:focus-visible {
  box-shadow:
    0 15px 25px rgba(76, 22, 41, 0.16),
    0 0 0 2px rgba(200, 150, 75, 0.24),
    inset 0 -4px 0 rgba(157, 36, 63, 0.15);
}

.door::before {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(200, 150, 75, 0.17);
}

.site-footer {
  align-items: center;
  flex-wrap: wrap;
}

.site-sound-toggle {
  padding: 0.28rem 0.52rem;
  color: var(--red-dark);
  background: rgba(255, 246, 237, 0.72);
  border: 1px solid rgba(200, 150, 75, 0.58);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.6rem;
  transition: transform 150ms ease, background 150ms ease;
}

.site-sound-toggle:hover,
.site-sound-toggle:focus-visible {
  background: var(--pink-light);
  transform: translateY(-1px);
}

.cursor-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  translate: -50% -50%;
  animation: cinnana-trail 620ms ease-out forwards;
  will-change: transform, opacity;
}

.cursor-sparkle {
  color: var(--gold);
  font-size: 0.86rem;
  text-shadow:
    0 0 5px rgba(255, 246, 237, 0.9),
    0 0 8px rgba(200, 150, 75, 0.42);
}

.cursor-droplet {
  width: 0.42rem;
  height: 0.55rem;
  background: var(--red);
  border: 1px solid rgba(101, 23, 43, 0.55);
  border-radius: 55% 55% 65% 35%;
  box-shadow: inset 0.08rem 0.08rem 0 rgba(255, 215, 226, 0.48);
  transform: rotate(45deg);
}

body.door-leaving .site-shell,
body.door-leaving .site-header,
body.door-leaving .site-footer {
  opacity: 0.18;
  transform: scale(0.992);
  transition: opacity 260ms ease, transform 260ms ease;
}

@keyframes cinnana-trail {
  from {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--trail-x), var(--trail-y), 0) rotate(var(--trail-turn));
  }
}

@media (max-width: 860px) {
  .home-content-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "about"
      "diary"
      "warning";
  }

  .home-player-card,
  .home-diary-card,
  .home-about-card,
  .home-warning-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-particle {
    display: none !important;
  }

  body.door-leaving .site-shell,
  body.door-leaving .site-header,
  body.door-leaving .site-footer {
    transform: none;
  }
}


/* =========================
   MUSIC ROOM PERSONALIZATION
   ========================= */

.music-turntable-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turntable-credits {
  display: grid;
  gap: 0.35rem;
}

.turntable-credits span {
  display: block;
}

.turntable-credits strong {
  color: var(--red-dark);
  font-weight: 500;
}

.turntable-platforms {
  margin-top: 1.15rem;
}

.platform-link {
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.platform-link:hover,
.platform-link:focus-visible {
  background: var(--cream);
  transform: translateY(-2px);
}

.music-listening-banner {
  grid-template-columns: auto 1fr;
  min-height: 0;
  padding-block: 1rem;
  border-color: rgba(200, 150, 75, 0.72);
}

.music-listening-banner .warning-symbol {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.45rem;
}

.music-listening-banner h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.music-listening-banner p:not(.eyebrow) {
  margin: 0;
}

.liner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.redesigned-release-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.release-art-wildcat-album {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 246, 237, 0.24), transparent 30%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 9px, transparent 9px 18px),
    linear-gradient(145deg, #9d243f, #3a1722);
}

.cat-face-mark {
  font-family: "DM Mono", monospace;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.22em;
  transform: translateX(-0.15em);
}

.release-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
}

.release-link-row .text-link {
  white-space: nowrap;
}

.centered-placeholder {
  grid-column: 2;
}

.lyric-room-button {
  margin-top: 1rem;
}

/* Floating music controller */
.floating-player {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  grid-template-columns: auto 3.2rem minmax(110px, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: min(430px, calc(100vw - 2rem));
  padding: 0.7rem;
  color: var(--cream);
  background:
    linear-gradient(120deg, rgba(58, 23, 34, 0.98), rgba(101, 23, 43, 0.97));
  border: 1px solid rgba(200, 150, 75, 0.75);
  border-radius: 1rem 1rem 0.45rem 1rem;
  box-shadow:
    0 18px 45px rgba(58, 23, 34, 0.35),
    inset 0 0 0 1px rgba(255, 246, 237, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.97);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.floating-player.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-player.is-dragging {
  cursor: grabbing;
  user-select: none;
  transition: none;
}

.floating-player-handle {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 1.2rem;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  cursor: grab;
  touch-action: none;
}

.floating-player > img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border: 1px solid rgba(255, 246, 237, 0.28);
  border-radius: 0.65rem 0.65rem 0.65rem 0.2rem;
}

.floating-player-copy {
  min-width: 0;
}

.floating-player-copy strong,
.floating-player-copy small {
  display: block;
}

.floating-player-copy strong {
  overflow: hidden;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-player-copy small {
  margin-top: 0.2rem;
  color: var(--pink);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
}

.floating-player-copy input {
  display: block;
  margin-top: 0.45rem;
}

.floating-player-controls {
  display: flex;
  gap: 0.28rem;
}

.floating-player-controls button,
.floating-player-restore {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--cream);
  background: rgba(255, 246, 237, 0.08);
  border: 1px solid rgba(255, 246, 237, 0.25);
  border-radius: 50%;
  cursor: pointer;
}

.floating-player-controls button:hover,
.floating-player-controls button:focus-visible,
.floating-player-restore:hover,
.floating-player-restore:focus-visible {
  background: rgba(242, 169, 189, 0.22);
}

.floating-player-restore {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 121;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: var(--pink);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(58, 23, 34, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-player-restore.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Wildcat combined song room */
.wildcat-page {
  gap: 1.5rem;
}

.wildcat-hero {
  min-height: 380px;
}

.wildcat-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 1.5rem;
  align-items: stretch;
}

.wildcat-notes-card {
  transform: rotate(0.25deg);
}

.wildcat-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.25);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.wildcat-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 1.5rem;
  align-items: start;
  scroll-margin-top: 1rem;
}

.wildcat-reading-sidebar {
  display: grid;
  gap: 1.5rem;
}

.wildcat-lyric-sheet {
  min-height: 620px;
}

@media (max-width: 960px) {
  .centered-placeholder {
    grid-column: auto;
  }

  .redesigned-release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wildcat-feature-layout,
  .wildcat-reading-layout {
    grid-template-columns: 1fr;
  }

  .floating-player {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
  }

  .floating-player-handle {
    display: none;
  }
}

@media (max-width: 620px) {
  .redesigned-release-grid {
    grid-template-columns: 1fr;
  }

  .floating-player {
    grid-template-columns: 2.75rem minmax(90px, 1fr) auto;
  }

  .floating-player > img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .floating-player-controls {
    gap: 0.18rem;
  }

  .floating-player-controls button {
    width: 1.8rem;
    height: 1.8rem;
  }

  .floating-player-controls #floating-restart {
    display: none;
  }

  .music-listening-banner {
    grid-template-columns: 1fr;
  }

  .music-listening-banner .warning-symbol {
    display: none;
  }
}

@media (pointer: coarse) {
  .floating-player {
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    left: auto !important;
    top: auto !important;
  }
}


/* =========================
   MUSIC ROOM LYRICS PASS
   ========================= */

.music-feature-layout {
  align-items: start;
}

.music-feature-notes {
  align-self: start;
  align-content: start;
}

.music-feature-notes .liner-card {
  align-self: start;
  min-height: 0;
  padding-block: clamp(1.25rem, 2vw, 1.7rem);
}

.compact-release-copy {
  max-width: 32rem;
  margin: 0.15rem 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.65;
}

.liner-streaming-row {
  margin: 0.95rem 0 0;
}

.wildcat-lyrics-copy {
  display: grid;
  gap: 1.45rem;
}

.wildcat-lyrics-copy p {
  margin: 0;
  white-space: normal;
}

.wildcat-lyrics-copy .lyric-emphasis {
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  line-height: 1.65;
}

.wildcat-lyrics-copy .lyric-quote {
  margin-inline: clamp(0rem, 3vw, 2rem);
  padding: 1rem 1.2rem;
  color: var(--red-dark);
  background: rgba(242, 169, 189, 0.18);
  border-left: 3px solid var(--gold);
  font-style: italic;
}

.wildcat-lyrics-copy .lyric-ending {
  padding-top: 1rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.28);
  font-weight: 700;
}

@media (max-width: 620px) {
  .wildcat-lyrics-copy {
    gap: 1.2rem;
  }

  .wildcat-lyrics-copy .lyric-quote {
    margin-inline: 0;
  }
}


/* =========================
   WILDCAT PAGE — PROCESS NOTES
   ========================= */

.wildcat-notes-card {
  align-self: start;
}

.wildcat-process-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.28);
}

.wildcat-process-note > p,
.wildcat-process-more-copy p {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.82;
}

.wildcat-process-note > p {
  margin: 0;
}

.wildcat-process-more {
  margin-top: 1.1rem;
}

.wildcat-process-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.82rem;
  color: var(--red-dark);
  background: rgba(242, 169, 189, 0.3);
  border: 1px solid rgba(157, 36, 63, 0.28);
  border-radius: 999px;
  box-shadow: 3px 4px 0 rgba(200, 150, 75, 0.16);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.wildcat-process-more summary::-webkit-details-marker {
  display: none;
}

.wildcat-process-more summary::before {
  content: "＋";
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
}

.wildcat-process-more[open] summary::before {
  content: "−";
}

.wildcat-process-more summary:hover,
.wildcat-process-more summary:focus-visible {
  background: rgba(255, 215, 226, 0.7);
  transform: translate(-1px, -1px);
  box-shadow: 5px 6px 0 rgba(200, 150, 75, 0.16);
}

.wildcat-process-more-copy {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(93, 32, 52, 0.14);
}

.wildcat-process-more-copy p {
  margin: 0;
}

.wildcat-process-more-copy .wildcat-process-closing {
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-style: italic;
}

.wildcat-reading-sidebar .warning-card > div > h2:first-child {
  margin-top: 0;
}

@media (max-width: 620px) {
  .wildcat-process-note > p,
  .wildcat-process-more-copy p {
    font-size: 0.93rem;
    line-height: 1.75;
  }

  .wildcat-process-more summary {
    width: 100%;
    justify-content: center;
  }
}


/* =========================
   LYRICS HALL — MANUSCRIPT PASS
   ========================= */

.lyrics-info-banners {
  display: grid;
  gap: 0.9rem;
}

.lyrics-thin-banner {
  min-height: 0;
  padding: 1rem 1.25rem;
  align-items: center;
}

.about-card.lyrics-thin-banner {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  border-left: 4px solid var(--gold);
}

.warning-card.lyrics-thin-banner {
  grid-template-columns: auto minmax(190px, 0.45fr) minmax(0, 1fr);
}

.lyrics-thin-banner h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.lyrics-thin-banner p {
  margin: 0;
}

.lyrics-thin-banner .warning-symbol {
  width: 3rem;
  height: 3rem;
  font-size: 1.35rem;
}

.lyrics-index-grid {
  align-items: stretch;
}

.lyrics-directory-divider {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0;
  padding: 0.65rem 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(157, 36, 63, 0.3);
  border-bottom: 1px dashed rgba(157, 36, 63, 0.3);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lyrics-directory-divider span:last-child {
  color: var(--red);
  text-align: right;
}

.lyrics-sidebar {
  align-self: start;
}

.lyrics-note-card {
  position: sticky;
  top: 1rem;
}

.lyrics-note-card p:not(.eyebrow) {
  line-height: 1.75;
}

/* Dedicated unfinished-song rooms */
.song-preview-page {
  gap: 1.5rem;
}

.song-preview-hero {
  min-height: 360px;
}

.song-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.construction-player {
  grid-row: auto;
}

.construction-player .album-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 169, 189, 0.18), transparent 33%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px),
    linear-gradient(145deg, #3a1722, #65172b);
}

.construction-player-mark {
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  text-shadow: 4px 5px 0 rgba(200, 150, 75, 0.16);
}

.construction-progress {
  opacity: 0.45;
  pointer-events: none;
}

.construction-controls button {
  opacity: 0.45;
  pointer-events: none;
}

.construction-message {
  color: var(--pink-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.song-preview-manuscript {
  min-height: 430px;
}

@media (max-width: 860px) {
  .song-preview-layout {
    grid-template-columns: 1fr;
  }

  .about-card.lyrics-thin-banner,
  .warning-card.lyrics-thin-banner {
    grid-template-columns: 1fr;
  }

  .lyrics-thin-banner .warning-symbol {
    display: none;
  }
}

@media (max-width: 620px) {
  .lyrics-directory-divider {
    display: grid;
  }

  .lyrics-directory-divider span:last-child {
    text-align: left;
  }
}


/* =========================
   SHRINE HALL — PERSONAL PASS
   ========================= */

.shrine-hero-secondary {
  margin-top: 0.85rem;
}

.shrine-heart-card {
  display: grid;
  place-items: center;
  min-height: 245px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 169, 189, 0.35), transparent 38%),
    linear-gradient(145deg, rgba(255, 246, 237, 0.88), rgba(255, 215, 226, 0.7));
  border-style: solid;
  transform: rotate(1.5deg);
}

.shrine-heart-card::before,
.shrine-heart-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(157, 36, 63, 0.16);
  border-radius: 50%;
}

.shrine-heart-card::before {
  width: 11rem;
  height: 11rem;
}

.shrine-heart-card::after {
  width: 15rem;
  height: 15rem;
}

.shrine-heart-graphic {
  position: relative;
  z-index: 1;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  text-shadow:
    5px 6px 0 rgba(242, 169, 189, 0.45),
    9px 10px 0 rgba(200, 150, 75, 0.14);
  transform: rotate(-5deg);
}

.shrine-hall-banners {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.shrine-info-banner {
  min-height: 0;
  padding: 1.1rem 1.35rem;
  transform: none;
}

.paper-card.shrine-info-banner {
  display: grid;
  grid-template-columns: minmax(225px, 0.42fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  border-left: 4px solid var(--gold);
}

.warning-card.shrine-info-banner {
  grid-template-columns: auto minmax(225px, 0.42fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.shrine-info-banner .warning-symbol {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.45rem;
}

.shrine-banner-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.shrine-banner-copy {
  display: grid;
  gap: 0.85rem;
}

.shrine-banner-copy p {
  margin: 0;
}

.paper-card.shrine-info-banner .shrine-banner-copy p {
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.75;
}

.warning-card.shrine-info-banner .shrine-banner-copy p {
  color: rgba(255, 246, 237, 0.78);
  font-size: 0.8rem;
  line-height: 1.7;
}

.shrine-portal .portal-copy {
  padding-bottom: 0.25rem;
}

.shrine-portal .portal-copy strong {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .paper-card.shrine-info-banner,
  .warning-card.shrine-info-banner {
    grid-template-columns: 1fr;
  }

  .shrine-info-banner .warning-symbol {
    display: none;
  }
}

@media (max-width: 560px) {
  .shrine-heart-card {
    min-height: 190px;
  }

  .shrine-heart-graphic {
    font-size: 7rem;
  }
}


/* =========================
   MACCREADY SHRINE — LIVING ROOM PASS
   ========================= */

.mac-hero-secondary {
  margin-top: 0.85rem;
}

.mac-shrine-hero h1 {
  max-width: 820px;
}

.shrine-letter-promises {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.45rem;
  padding: 1.15rem 0 0 1.15rem;
  border-top: 1px dashed rgba(93, 32, 52, 0.25);
  border-left: 3px solid rgba(200, 150, 75, 0.65);
}

.shrine-letter-promises p {
  margin: 0;
  color: var(--red-dark);
  font-style: italic;
}

.shrine-facts-card .status-label {
  color: var(--red-dark);
}

.mac-keepsake-layout {
  align-items: stretch;
}

.mac-pocket-card {
  min-height: 100%;
}

.mac-pocket-card .keepsake-list li {
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.mac-pocket-card .keepsake-list li:hover {
  background: rgba(255, 215, 226, 0.58);
  transform: translateX(5px);
}

.mac-pocket-card .keepsake-list em {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 0.92em;
}

.mac-standing-order {
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: 220px;
  color: var(--cream);
  background:
    linear-gradient(rgba(58, 23, 34, 0.96), rgba(101, 23, 43, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px);
  border: 1px solid rgba(200, 150, 75, 0.65);
  border-radius: 1.2rem;
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 0 0 1px rgba(255, 246, 237, 0.08);
}

.mac-ticker-label {
  padding: 1.35rem 1.5rem 0.8rem;
}

.mac-ticker-label .eyebrow {
  color: var(--pink);
}

.mac-ticker-label strong {
  font-family: "Fraunces", serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.mac-ticker-window {
  overflow: hidden;
  padding: 0.95rem 0;
  color: var(--red-dark);
  background: var(--gold);
  border-top: 1px solid rgba(255, 246, 237, 0.28);
  border-bottom: 1px solid rgba(58, 23, 34, 0.35);
}

.mac-ticker-track {
  display: flex;
  width: max-content;
  animation: mac-ticker-scroll 18s linear infinite;
}

.mac-ticker-track span {
  padding-right: 1.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

@keyframes mac-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.mac-living-shrine {
  display: grid;
  gap: 1.2rem;
  scroll-margin-top: 1rem;
}

.mac-living-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.mac-message-board,
.mac-gallery-card {
  min-height: 100%;
}

.mac-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.mac-section-heading h2 {
  margin-bottom: 0;
}

.mac-note-count {
  color: var(--red-dark);
  border-color: rgba(157, 36, 63, 0.3);
}

.mac-sticky-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mac-sticky-note {
  position: relative;
  min-height: 155px;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 215, 226, 0.88), rgba(242, 169, 189, 0.7)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(93, 32, 52, 0.08) 25px 26px);
  border: 1px solid rgba(157, 36, 63, 0.22);
  border-radius: 0.35rem 0.35rem 0.9rem 0.35rem;
  box-shadow: 5px 7px 0 rgba(76, 22, 41, 0.09);
  transform: rotate(-1deg);
}

.mac-sticky-note:nth-child(even) {
  background:
    linear-gradient(rgba(248, 232, 218, 0.92), rgba(242, 213, 184, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(93, 32, 52, 0.08) 25px 26px);
  transform: rotate(1.1deg);
}

.mac-sticky-note:nth-child(3n) {
  grid-column: 1 / -1;
  min-height: 125px;
  transform: rotate(-0.3deg);
}

.mac-sticky-note::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 3.2rem;
  height: 1rem;
  background: rgba(200, 150, 75, 0.35);
  border-left: 1px dashed rgba(93, 32, 52, 0.15);
  border-right: 1px dashed rgba(93, 32, 52, 0.15);
  transform: translateX(-50%) rotate(-2deg);
}

.mac-sticky-note time {
  color: var(--red);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mac-sticky-note p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
}

.mac-gallery-card {
  transform: rotate(0.2deg);
}

.mac-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mac-gallery-grid figure {
  min-width: 0;
  margin: 0;
}

.mac-gallery-featured {
  grid-column: 1 / -1;
}

.mac-gallery-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1.35 / 1;
  min-height: 240px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 40%, rgba(242, 169, 189, 0.2), transparent 32%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 9px, transparent 9px 18px),
    linear-gradient(145deg, #3a1722, #65172b);
  border: 8px solid var(--brown);
  outline: 2px solid rgba(200, 150, 75, 0.55);
  outline-offset: -5px;
  box-shadow: 6px 8px 0 rgba(76, 22, 41, 0.12);
}

.mac-gallery-placeholder.small {
  min-height: 130px;
}

.mac-gallery-placeholder span {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.mac-gallery-placeholder small {
  color: var(--pink);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mac-gallery-grid figcaption {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.75rem;
  line-height: 1.55;
}

.mac-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border: 8px solid var(--brown);
  outline: 2px solid rgba(200, 150, 75, 0.55);
  outline-offset: -5px;
  box-shadow: 6px 8px 0 rgba(76, 22, 41, 0.12);
}

@media (max-width: 900px) {
  .mac-living-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mac-sticky-grid,
  .mac-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mac-sticky-note:nth-child(3n),
  .mac-gallery-featured {
    grid-column: auto;
  }

  .mac-section-heading {
    display: grid;
  }

  .mac-standing-order {
    min-height: 185px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-ticker-track {
    animation: none;
    transform: none;
  }
}


/* =========================
   MACCREADY SHRINE — INTERACTIVE DISPLAY PASS
   ========================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mac-status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.58rem;
  color: #fff6ed !important;
  background: #9d243f !important;
  border: 1px solid #65172b !important;
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(200, 150, 75, 0.28);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Split-flap message display */
.mac-message-board {
  overflow: hidden;
  min-width: 0;
}

.mac-note-console {
  display: grid;
  gap: 0.8rem;
}

.mac-note-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 295px;
  padding: 1.1rem;
  color: #ffe9ee;
  background:
    linear-gradient(rgba(26, 10, 16, 0.94), rgba(45, 13, 25, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,0.02) 4px 5px);
  border: 8px solid #5a382f;
  outline: 2px solid rgba(200, 150, 75, 0.72);
  outline-offset: -5px;
  border-radius: 0.55rem;
  box-shadow:
    8px 10px 0 rgba(76, 22, 41, 0.12),
    inset 0 0 35px rgba(242, 169, 189, 0.08);
}

.mac-note-screen::after,
.mac-pocket-card::after,
.mac-standing-order::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(255, 246, 237, 0.018) 3px 4px
  );
  mix-blend-mode: screen;
}

.mac-note-screen-topline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  color: #f2a9bd;
  border-bottom: 1px solid rgba(242, 169, 189, 0.22);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mac-note-signal {
  width: 0.65rem;
  height: 0.65rem;
  background: #f2a9bd;
  border-radius: 50%;
  box-shadow:
    0 0 5px #f2a9bd,
    0 0 13px rgba(242, 169, 189, 0.85);
  animation: mac-signal-pulse 1.8s ease-in-out infinite;
}

.mac-note-position {
  color: #c8964b;
}

.mac-flap-message {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.42rem 0.38rem;
  min-height: 155px;
  margin: 0;
  padding: 1rem 0;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  line-height: 1.45;
  perspective: 700px;
}

.mac-flap-word {
  position: relative;
  display: inline-block;
  padding: 0.24rem 0.34rem;
  color: #fff6ed;
  background:
    linear-gradient(
      180deg,
      #4e1a2d 0 48%,
      #2c0e1a 49% 51%,
      #421425 52% 100%
    );
  border: 1px solid rgba(242, 169, 189, 0.18);
  border-radius: 0.18rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 2px 0 rgba(0,0,0,0.35);
  transform-origin: center;
  backface-visibility: hidden;
}

.mac-flap-message.is-changing .mac-flap-word {
  animation: mac-word-flip 620ms cubic-bezier(.2,.75,.25,1) both;
  animation-delay: var(--flap-delay, 0ms);
}

.mac-note-timer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 3px;
  background: rgba(242, 169, 189, 0.12);
}

.mac-note-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: #c8964b;
  box-shadow: 0 0 8px rgba(200, 150, 75, 0.9);
  transform-origin: left;
}

.mac-note-timer.is-running span {
  animation: mac-note-countdown 12s linear both;
}

.mac-note-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.mac-console-button,
.mac-gallery-arrow {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  color: #fff6ed;
  background: #65172b;
  border: 1px solid #c8964b;
  border-radius: 50%;
  box-shadow: 3px 4px 0 rgba(76, 22, 41, 0.14);
  cursor: pointer;
  font-size: 1.35rem;
}

.mac-console-button:hover,
.mac-console-button:focus-visible,
.mac-gallery-arrow:hover,
.mac-gallery-arrow:focus-visible {
  background: #9d243f;
  transform: translateY(-1px);
}

.mac-note-dots,
.mac-gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mac-note-dot,
.mac-gallery-dot {
  width: 0.58rem;
  height: 0.58rem;
  padding: 0;
  background: rgba(101, 23, 43, 0.2);
  border: 1px solid rgba(101, 23, 43, 0.45);
  border-radius: 50%;
  cursor: pointer;
}

.mac-note-dot.is-active,
.mac-gallery-dot.is-active {
  background: #9d243f;
  box-shadow: 0 0 0 3px rgba(242, 169, 189, 0.28);
}

/* Timed gallery */
.mac-gallery-card {
  min-width: 0;
}

.mac-gallery-carousel {
  position: relative;
  min-width: 0;
}

.mac-gallery-viewport {
  overflow: hidden;
  border-radius: 0.35rem;
}

.mac-gallery-track {
  display: flex;
  width: 100%;
  transition: transform 560ms cubic-bezier(.2,.72,.25,1);
  will-change: transform;
}

.mac-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0.2rem;
}

.mac-gallery-slide .mac-gallery-placeholder,
.mac-gallery-slide > img {
  width: 100%;
  min-height: 300px;
  aspect-ratio: 1.35 / 1;
}

.mac-gallery-slide > img {
  display: block;
  object-fit: cover;
  border: 8px solid #5a382f;
  outline: 2px solid rgba(200, 150, 75, 0.55);
  outline-offset: -5px;
  box-shadow: 6px 8px 0 rgba(76, 22, 41, 0.12);
}

.mac-gallery-slide figcaption {
  min-height: 3.4rem;
  margin-top: 0.75rem;
  color: #6e4050;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.mac-gallery-arrow {
  position: absolute;
  top: calc(50% - 2.8rem);
  z-index: 4;
  background: rgba(58, 23, 34, 0.9);
  backdrop-filter: blur(4px);
}

.mac-gallery-arrow.previous {
  left: 0.85rem;
}

.mac-gallery-arrow.next {
  right: 0.85rem;
}

.mac-gallery-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.mac-gallery-timer-label {
  color: #9d243f;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Inventory screen */
.mac-pocket-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  color: #ffe7b0;
  background:
    radial-gradient(circle at 16% 0%, rgba(200, 150, 75, 0.12), transparent 32%),
    linear-gradient(145deg, #24120f, #3c1b1b);
  border: 8px solid #5a382f;
  outline: 2px solid rgba(200, 150, 75, 0.72);
  outline-offset: -5px;
  border-radius: 0.8rem;
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 0 38px rgba(200, 150, 75, 0.06);
}

.mac-pocket-card .eyebrow {
  color: #f2a9bd;
}

.mac-pocket-card h2 {
  margin-bottom: 0;
  color: #fff6ed;
}

.mac-inventory-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 150, 75, 0.35);
}

.mac-inventory-capacity {
  flex-shrink: 0;
  padding: 0.32rem 0.48rem;
  color: #24120f;
  background: #c8964b;
  border-radius: 0.2rem;
  box-shadow: 0 0 11px rgba(200, 150, 75, 0.48);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mac-inventory-column-labels,
.mac-inventory-list li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 4.6rem;
  gap: 0.75rem;
  align-items: center;
}

.mac-inventory-column-labels {
  padding: 0.75rem 0.65rem 0.4rem;
  color: #c8964b;
  font-size: 0.53rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mac-inventory-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mac-inventory-list li {
  min-height: 3.6rem;
  padding: 0.62rem 0.65rem;
  background:
    linear-gradient(90deg, rgba(200, 150, 75, 0.08), transparent 75%);
  border: 1px solid rgba(200, 150, 75, 0.18);
  border-left: 3px solid #9d243f;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.mac-inventory-list li:hover {
  background:
    linear-gradient(90deg, rgba(242, 169, 189, 0.15), rgba(200, 150, 75, 0.04));
  border-color: rgba(242, 169, 189, 0.35);
  transform: translateX(4px);
}

.mac-inventory-slot {
  color: #f2a9bd;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.mac-inventory-item {
  min-width: 0;
  color: #fff6ed;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.mac-inventory-item small {
  display: block;
  margin-top: 0.16rem;
  color: #c8964b;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
}

.mac-inventory-status {
  justify-self: end;
  color: #c8964b;
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Script-driven electronic ribbon */
.mac-standing-order {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.6rem 0;
  background:
    radial-gradient(circle at center, rgba(157, 36, 63, 0.25), transparent 60%),
    linear-gradient(145deg, #17090d, #35101d);
  border: 8px solid #5a382f;
  outline: 2px solid rgba(200, 150, 75, 0.72);
  outline-offset: -5px;
  border-radius: 0.8rem;
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 0 42px rgba(242, 169, 189, 0.08);
}

.mac-ticker-bezel {
  position: absolute;
  inset: 0.45rem;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  pointer-events: none;
}

.mac-ticker-bezel span {
  width: 0.48rem;
  height: 0.48rem;
  background: #f2a9bd;
  border-radius: 50%;
  box-shadow:
    0 0 5px #f2a9bd,
    0 0 12px rgba(242, 169, 189, 0.85);
}

.mac-ticker-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  padding: 1.2rem 0;
  background:
    linear-gradient(180deg, rgba(157, 36, 63, 0.16), rgba(0,0,0,0.08)),
    #190b10;
  border-top: 1px solid rgba(242, 169, 189, 0.35);
  border-bottom: 1px solid rgba(242, 169, 189, 0.35);
  box-shadow:
    inset 0 0 22px rgba(242, 169, 189, 0.1),
    0 0 18px rgba(157, 36, 63, 0.18);
}

.mac-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.mac-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.35rem;
  padding-right: 1.35rem;
}

.mac-ticker-group span {
  color: #ffd7e2;
  font-family: "DM Mono", monospace;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-shadow:
    0 0 4px #f2a9bd,
    0 0 10px rgba(242, 169, 189, 0.95),
    0 0 22px rgba(157, 36, 63, 0.85);
  white-space: nowrap;
}

.mac-ticker-group i {
  color: #c8964b;
  font-size: 1rem;
  font-style: normal;
  text-shadow:
    0 0 5px #c8964b,
    0 0 13px rgba(200, 150, 75, 0.9);
}

@keyframes mac-word-flip {
  0% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(-6px);
  }

  48% {
    opacity: 0.75;
    transform: rotateX(18deg) translateY(0);
  }

  100% {
    opacity: 1;
    transform: rotateX(0);
  }
}

@keyframes mac-note-countdown {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes mac-signal-pulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .mac-inventory-header {
    display: grid;
  }

  .mac-inventory-capacity {
    justify-self: start;
  }

  .mac-inventory-column-labels,
  .mac-inventory-list li {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .mac-inventory-column-labels span:last-child,
  .mac-inventory-status {
    display: none;
  }

  .mac-gallery-slide .mac-gallery-placeholder,
  .mac-gallery-slide > img {
    min-height: 230px;
  }
}

@media (max-width: 480px) {
  .mac-note-screen {
    min-height: 330px;
  }

  .mac-note-screen-topline {
    grid-template-columns: auto 1fr;
  }

  .mac-note-position {
    grid-column: 2;
  }

  .mac-flap-message {
    align-content: start;
  }

  .mac-gallery-arrow {
    top: calc(50% - 3.7rem);
  }

  .mac-gallery-footer {
    grid-template-columns: 1fr;
  }

  .mac-gallery-timer-label {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-note-signal {
    animation: none;
  }

  .mac-flap-message.is-changing .mac-flap-word,
  .mac-note-timer.is-running span {
    animation: none;
  }

  .mac-gallery-track {
    transition: none;
  }
}
