:root {
  --bg: #141a19;
  --panel: #1b2320;
  --line: #323b34;
  --text: #e9e8de;
  --muted: #939b8d;
  --accent: #d1d6aa;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
button:active {
  transform: translateY(1px);
}
.header {
  height: 110px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.16;
  min-width: 210px;
}
.brand b {
  font-weight: 500;
}
.brand-icon {
  display: grid;
  place-content: center;
  border: 1px solid #7e8668;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 17px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon span {
  color: var(--accent);
  font-size: 20px;
  margin: 0 1px;
}
.header nav {
  display: flex;
  height: 100%;
  gap: 28px;
}
.nav {
  background: none;
  border: 0;
  color: #a3ab9c;
  font-size: 12px;
  padding: 0;
  position: relative;
  white-space: nowrap;
}
.nav > span {
  font: 9px var(--mono);
  margin-right: 6px;
  opacity: 0.65;
}
.nav.active {
  color: var(--accent);
}
.nav.active:after {
  position: absolute;
  content: "";
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--accent);
}
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #252c22;
  border-radius: 4px;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.button:hover {
  background: #e3e6c5;
}
.add {
  padding: 12px 17px;
  white-space: nowrap;
}
main {
  max-width: 1440px;
  padding: 0 5%;
  margin: auto;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.8px;
  color: #b4bca0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.welcome {
  display: flex;
  padding-top: 36px;
  gap: 10px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.muted {
  opacity: 0.3;
}
.edition {
  margin-left: auto;
  font-size: 8px;
  color: #838b7d;
  letter-spacing: 1.4px;
}
.intro {
  padding: 33px 0 43px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.intro h1 {
  font: 500 clamp(42px, 4.5vw, 66px)/1.13 var(--serif);
  letter-spacing: -2.1px;
  margin: 0 0 19px;
}
.intro h1 em {
  font-weight: 500;
  color: var(--accent);
}
.intro p {
  font-size: 12px;
  color: #a3ab9d;
  line-height: 1.85;
  margin: 0;
}
.intro-note {
  margin-right: 9%;
  transform: rotate(-7deg);
  text-align: center;
}
.intro-note p {
  font: italic 18px/1.45 var(--serif);
  color: #b4b9a5;
}
.small-star {
  font-size: 40px;
  display: block;
  color: #9da985;
  margin-bottom: 11px;
}
.note-line {
  display: inline-block;
  width: 65px;
  height: 16px;
  border-bottom: 1px solid #788366;
  border-radius: 0 0 60% 40%;
  transform: rotate(-8deg);
}
.toolbar {
  border-top: 1px solid var(--line);
  padding: 24px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.space-label,
.tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.space-label > span:first-child {
  font-size: 23px;
  color: var(--accent);
}
.space-label h2 {
  font: 500 24px var(--serif);
  margin: 0;
}
.pill {
  background: #293128;
  border: 1px solid #3e4736;
  border-radius: 20px;
  padding: 4px 9px;
  color: #adb89d;
  font: 9px var(--mono);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85907f;
}
.search > span {
  font-size: 24px;
}
.search input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 10px;
  width: 168px;
  outline: none;
  padding: 7px 0;
}
.search input::placeholder {
  color: #85907f;
}
.sound-button {
  border: 1px solid #424b3b;
  border-radius: 30px;
  background: #222b22;
  padding: 8px 12px;
  color: #bdc6a7;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.book-feature {
  display: grid;
  grid-template-columns: 43% 57%;
  border: 1px solid #3b4435;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 45%, #38433077, transparent 60%), linear-gradient(120deg, #232b21, #1b241e);
}
.cart-info {
  padding: 36px 0 33px 36px;
  z-index: 2;
}
.tiny-square {
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
}
.cart-info h2,
.cinema-feature h2,
.gaming-feature h2 {
  font: 500 43px/1.16 var(--serif);
  letter-spacing: -1.2px;
  margin: 20px 0 17px;
}
.cart-info h2 em,
.cinema-feature h2 em,
.gaming-feature h2 em {
  color: var(--accent);
  font-weight: 500;
}
.cart-info p,
.cinema-feature p,
.gaming-feature p {
  color: #a6b09c;
  font-size: 11px;
  line-height: 1.85;
  margin: 0;
}
.cart-totals {
  display: flex;
  gap: 30px;
  margin: 25px 0;
}
.cart-totals > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-totals > div + div {
  border-left: 1px solid #46503c;
  padding-left: 27px;
}
.cart-totals strong {
  font: 500 26px var(--serif);
  letter-spacing: -0.5px;
}
.cart-totals span {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #a0aa91;
}
.cart-info .button {
  padding: 11px 18px;
}
.hand-note {
  display: block;
  color: #9ba68a;
  font: italic 12px var(--serif);
  margin-top: 14px;
}
.cart-stage {
  position: relative;
  min-height: 390px;
  perspective: 900px;
  align-self: stretch;
  isolation: isolate;
}
.scene-label {
  position: absolute;
  top: 27px;
  right: 26px;
  color: #849379;
  font: 7px var(--mono);
  letter-spacing: 1.5px;
}
.cart-svg {
  width: 110%;
  height: 100%;
  position: absolute;
  left: -8%;
  bottom: -7px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(3px 8px 10px #090f0e55);
}
.cart-contents {
  position: absolute;
  left: 20%;
  top: 30%;
  width: 60%;
  height: 40%;
  z-index: 2;
  transform: rotate(-4deg);
  perspective: 900px;
}
.cart-book {
  width: 65px;
  height: 100px;
  position: absolute;
  left: calc(var(--n) * 12%);
  bottom: calc(10px + mod(var(--n), 3) * 9px);
  background: #7d7050;
  transform: rotateY(-22deg) rotateZ(calc(-19deg + var(--n) * 8deg));
  transform-origin: center bottom;
  box-shadow:
    5px 3px 0 #d1c8ad,
    8px 4px 0 #3c4035,
    12px 14px 18px #0b120d80;
}
.cart-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scene-bottom {
  position: absolute;
  bottom: 24px;
  left: 35px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8e9d80;
  font: 7px var(--mono);
  letter-spacing: 1px;
}
.scene-number {
  position: absolute;
  right: 25px;
  bottom: 24px;
  font: 8px var(--mono);
  color: #728369;
}
.cart-strip {
  display: flex;
  gap: 20px;
  border: 1px solid #3b4435;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  padding: 14px 23px;
  align-items: center;
  background: #1d261f;
  min-height: 58px;
}
.cart-strip > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  white-space: nowrap;
  color: #a7b194;
}
.cart-strip > span b {
  font-weight: 400;
  margin-left: 6px;
  color: #d6dfbc;
}
.cart-strip > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.cart-chip {
  border: 1px solid #46503b;
  background: #2a3426;
  border-radius: 3px;
  padding: 6px 9px;
  font-size: 9px;
  color: #c4ceb1;
}
.cart-chip span {
  color: #8c9c78;
  margin-left: 5px;
}
.cart-chip:hover {
  background: #3c4832;
}
.collection {
  padding-top: 46px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.section-heading .eyebrow {
  font-size: 7px;
  color: #909d7d;
  letter-spacing: 1.5px;
}
.section-heading h2 {
  font: 500 27px var(--serif);
  margin: 8px 0 0;
  letter-spacing: -0.5px;
}
.section-heading select {
  background: transparent;
  color: #a6b19a;
  border: 1px solid #384232;
  font-size: 10px;
  border-radius: 4px;
  padding: 9px 13px;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 33px 27px;
}
.media-card {
  min-width: 0;
  animation: appear 0.6s both;
  animation-delay: calc(var(--index) * 35ms);
}
.cover-button {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #222a2200, #30382c70);
  padding: 12px 15px 18px;
  position: relative;
  height: 225px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 5px solid #414332;
  border-radius: 4px;
  perspective: 700px;
  box-shadow: 0 8px 7px -6px #070c0a;
}
.cover-object {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 2/3;
  transform: rotateY(-12deg);
  transform-origin: left center;
  box-shadow:
    4px 0 0 #d0c7ad,
    6px 1px 0 #575742,
    10px 8px 16px #080e0a;
  transition: transform 0.35s;
  background: #353e31;
}
.cover-object img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}
.cover-object:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 3px 0 4px #090e0c55,
    inset 6px 0 1px #fff1;
  border-radius: 2px;
}
.cover-button:hover .cover-object {
  transform: translateY(-9px) rotateY(0deg) rotateZ(-2deg);
}
.cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #fff2, transparent 20%, transparent 80%, #fff1);
}
.card-meta {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  font: 7px var(--mono);
  color: #97a28a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 17px;
  line-height: 1.5;
}
.card-meta span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-meta span + span {
  white-space: nowrap;
}
.card-meta i {
  color: #c8c48f;
  font-style: normal;
  margin-left: 3px;
}
.media-card h3 {
  font: 500 14px/1.45 var(--serif);
  margin: 6px 0 4px;
}
.media-card h3 button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font: inherit;
}
.media-card > p {
  font-size: 9px;
  color: #8d9987;
  margin: 0;
  line-height: 1.5;
}
.card-action {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #414d37;
  color: #abb994;
  padding: 8px 0 5px;
  font-size: 9px;
  margin-top: 9px;
}
.card-action:hover {
  color: #e0e5ba;
}
.cover-missing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 14px;
  font: 15px var(--serif);
  background: #384333;
}
.cover-missing small {
  font: 8px var(--mono);
  margin-top: 15px;
  color: #bdc7ab;
}
.empty {
  grid-column: 1/-1;
  padding: 30px;
  border: 1px dashed var(--line);
  text-align: center;
}
.empty h3 {
  font: 24px var(--serif);
}
.empty p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #819077;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
}
.footer-brand {
  font: 13px var(--serif);
  color: #b9c1aa;
  letter-spacing: 0;
}
.footer-brand span {
  font: 9px var(--sans);
  color: #7e8c75;
  margin-left: 12px;
}
#save-status {
  cursor: pointer;
}
.outline-button {
  border: 1px solid #536044;
  border-radius: 4px;
  background: transparent;
  color: #c0cbae;
  font-size: 11px;
  padding: 11px 14px;
}
.outline-button:hover {
  background: #38452e;
}
dialog {
  border: 1px solid #536046;
  border-radius: 10px;
  padding: 28px;
  background: #1e281f;
  color: var(--text);
  width: min(540px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #080d0bd9;
}
dialog::backdrop {
  background: #070e0bd6;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 23px;
}
.dialog-heading h2,
dialog h2 {
  font: 27px/1.2 var(--serif);
  margin: 9px 0 0;
}
.close {
  background: none;
  border: 0;
  font-size: 26px;
  color: #aebd9e;
  line-height: 1;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #bec8b1;
  margin-bottom: 17px;
}
form input,
form select {
  width: 100%;
  border: 1px solid #47553d;
  background: #172017;
  color: var(--text);
  border-radius: 4px;
  padding: 11px;
  font-size: 12px;
  min-width: 0;
}
form small {
  font-size: 10px;
  line-height: 1.5;
  color: #879b7e;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 6px;
}
.muted-copy {
  font-size: 11px;
  line-height: 1.8;
  color: #9ead91;
}
.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.detail-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 25px;
}
.detail-cover {
  height: 210px;
  background: #36442f;
  position: relative;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-body p {
  color: #a4b498;
  font-size: 12px;
  line-height: 1.7;
}
.detail-body .detail-price {
  font: 24px var(--serif);
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  background: #d1d6aa;
  color: #26301f;
  padding: 14px 23px;
  border-radius: 5px;
  box-shadow: 0 8px 25px #080e0b66;
  z-index: 50;
  font-size: 12px;
  max-width: calc(100% - 30px);
  text-align: center;
  pointer-events: none;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.flying-book {
  position: fixed;
  width: 95px;
  height: 145px;
  pointer-events: none;
  z-index: 40;
  background: #9c8c66;
  box-shadow:
    5px 0 #d9d2b5,
    9px 1px #5a614a,
    15px 20px 35px #070d0a99;
  transform-style: preserve-3d;
}
.flying-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinema-feature,
.gaming-feature {
  padding: 38px;
  border: 1px solid #424b3b;
  border-radius: 8px;
  background: radial-gradient(ellipse at 80% 55%, #41423688, transparent 60%), #222a22;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  min-height: 390px;
}
.cinema-feature .button {
  margin-top: 25px;
}
.tv {
  background: linear-gradient(110deg, #594e38, #2c3028 40%, #4a4534);
  padding: 22px 55px 22px 22px;
  border-radius: 32px 35px 25px 25px;
  border: 3px solid #77715b;
  position: relative;
  align-self: center;
  box-shadow: 12px 16px 0 #10181388;
  transform: perspective(900px) rotateY(-9deg);
}
.tv-screen {
  height: 220px;
  overflow: hidden;
  border-radius: 40%/9%;
  border: 9px solid #101b16;
  background: #141f1a;
  position: relative;
}
.tv-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: sepia(0.2) brightness(0.7);
}
.tv-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, #0a120f44 3px 4px);
}
.tv-screen > span {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 20px;
  font: 8px var(--mono);
  letter-spacing: 2px;
  text-shadow: 0 2px 5px #000;
}
.tv-controls {
  position: absolute;
  right: 14px;
  top: 40px;
  bottom: 30px;
  width: 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.tv-controls i {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: linear-gradient(45deg, #9b967c, #333a2b);
  border: 2px solid #1b2219;
  box-shadow: 2px 3px 5px #121c16;
}
.tv-controls b {
  font: 6px var(--mono);
  writing-mode: vertical-rl;
  margin-top: 25px;
  color: #b8b6a3;
}
.tv-feet {
  position: absolute;
  bottom: -17px;
  left: 15%;
  right: 15%;
  height: 15px;
  border-left: 15px solid #77705a;
  border-right: 15px solid #77705a;
}
.movie-case {
  border: 3px solid #363a30;
  box-shadow:
    4px 0 #6d725e,
    10px 8px 16px #080e0a;
}
.game-case {
  border: 4px solid #495146;
  box-shadow:
    4px 0 #77826d,
    10px 8px 16px #080e0a;
}
.gaming-feature {
  background: radial-gradient(ellipse at 80% 20%, #414a3266, transparent 65%), #1e281f;
}
.game-copy {
  z-index: 1;
}
.game-stats {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.game-stats > span {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #a3b18f;
}
.game-stats b {
  display: block;
  font: 30px var(--serif);
  color: var(--accent);
  margin-bottom: 5px;
}
.snack-scene {
  position: relative;
  align-self: end;
  min-height: 300px;
  border-bottom: 9px solid #56523a;
  background: linear-gradient(0deg, #403d2c55, transparent 40%);
  perspective: 800px;
}
.snack-objects {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}
.can-button,
.nachos {
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.can-button {
  width: 75px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 500px;
}
.can {
  --crush: 0;
  position: relative;
  width: 60px;
  height: 145px;
  display: block;
  background: linear-gradient(
    95deg,
    #424f7b 0%,
    #8393af 10%,
    #263760 20%,
    #162c54 45%,
    #b2babe 48%,
    #e0e1d5 65%,
    #8a9492 95%
  );
  border-radius: 13px 13px 15px 15px;
  box-shadow:
    8px 10px 15px #07100a88,
    inset -3px 0 5px #ffffff66;
  transform: scaleY(calc(1 - var(--crush) * 0.16)) skewX(calc(var(--crush) * 3deg));
  transform-origin: bottom;
  transition: transform 0.2s;
  clip-path: polygon(
    8% 0,
    92% 0,
    100% 12%,
    calc(100% - var(--crush) * 4%) 27%,
    100% 45%,
    calc(100% - var(--crush) * 5%) 64%,
    100% 86%,
    90% 100%,
    10% 100%,
    0 86%,
    calc(var(--crush) * 5%) 65%,
    0 45%,
    calc(var(--crush) * 4%) 25%,
    0 12%
  );
}
.can-top {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 65% 45%, #26302c 10%, #b8c3bc 16%, #7e9188 25%, #c9cec0 40%, #7f8a85 70%);
  border: 2px solid #ced5c7;
}
.can-base {
  position: absolute;
  bottom: 0;
  left: 7px;
  right: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(#707c75, #d4d7c8);
}
.can-label {
  position: absolute;
  inset: 32px 0 15px;
  text-align: center;
  color: #b52628;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  text-shadow: 0 1px #fff4;
}
.can-label small {
  display: block;
  color: #c1c6c1;
  font-size: 5px;
  letter-spacing: 1px;
  margin-top: 4px;
}
.can-label b {
  display: block;
  font-size: 32px;
  line-height: 1.5;
  color: #e0af51;
}
.nachos {
  width: 160px;
  height: 100px;
  display: flex;
  align-items: flex-end;
}
.plate {
  display: block;
  position: relative;
  width: 160px;
  height: 85px;
  background: radial-gradient(ellipse, #9b9e83 0 50%, #d7d7ba 52% 64%, #a7ad93 67%, #59624d 69%, #d5d5bc 72%);
  border-radius: 50%;
  box-shadow: 4px 15px 17px #09120b80;
  transform: rotateX(25deg);
}
.chip {
  width: 49px;
  height: 43px;
  background: linear-gradient(135deg, #d9a340, #ae721d 70%, #ebbb56);
  clip-path: polygon(50% 0, 100% 93%, 0 90%);
  display: block;
  position: absolute;
  left: 28px;
  top: 12px;
  filter: drop-shadow(2px 4px 2px #3c2b13);
}
.chip-1 {
  left: 68px;
  top: 12px;
  rotate: 40deg;
}
.chip-2 {
  left: 92px;
  top: 20px;
  rotate: 80deg;
}
.chip-3 {
  left: 46px;
  top: 34px;
  rotate: 10deg;
}
.chip-4 {
  left: 14px;
  top: 27px;
  rotate: -35deg;
}
.chip-5 {
  left: 74px;
  top: 27px;
  rotate: -35deg;
}
.chip-6 {
  left: 38px;
  top: 2px;
  rotate: 90deg;
}
.chip-7 {
  left: 60px;
  top: 13px;
  rotate: -20deg;
}
.dip {
  width: 32px;
  height: 24px;
  border: 5px solid #bdbfa4;
  background: #894c2c;
  display: block;
  position: absolute;
  right: 22px;
  top: 26px;
  border-radius: 50%;
  box-shadow: 1px 3px 3px #27321a;
}
.bin {
  width: 54px;
  height: 63px;
  border: 3px solid #8a967c;
  border-top: 5px solid #a4af94;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, #76866b77 8px 10px),
    repeating-linear-gradient(0deg, transparent 0 8px, #76866b77 8px 10px);
  transform: perspective(300px) rotateX(-8deg);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 15% 100%);
  position: relative;
  margin-left: 15px;
  opacity: 0.75;
}
.bin span {
  position: absolute;
  inset: 15px;
  font: 20px var(--sans);
  border: 1px solid #a3ae8a;
  border-radius: 50%;
}
.snack-labels {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -34px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: #97a483;
}
.controller {
  position: absolute;
  right: 75px;
  top: 16px;
  width: 140px;
  height: 70px;
  border-radius: 40% 40% 28% 28%;
  background: linear-gradient(#838b71, #4b5946);
  transform: rotate(-13deg);
  box-shadow:
    4px 8px 2px #172219,
    5px 15px 20px #0b150a;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 2px solid #9ba388;
}
.controller > span:first-child {
  font-size: 44px;
  color: #243021;
  font-weight: 700;
}
.controller > span + span {
  color: #bcbf8e;
  font-size: 22px;
  position: relative;
}
.controller small {
  position: absolute;
  top: -7px;
  left: -13px;
  font-size: 17px;
  color: #9ba981;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  main {
    padding: 0 65px;
  }
  .header {
    padding: 0 calc((100% - 1310px) / 2);
  }
  .cover-button {
    height: 250px;
  }
}
@media (max-width: 1100px) {
  .header {
    gap: 12px;
  }
  .brand {
    min-width: 170px;
  }
  .header nav {
    gap: 16px;
  }
  .nav {
    font-size: 10px;
  }
  .add {
    padding: 10px;
  }
  .shelf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px 20px;
  }
  .cover-button {
    height: 210px;
  }
  .cart-info {
    padding-left: 27px;
  }
  .cart-info h2 {
    font-size: 39px;
  }
  .cart-stage {
    min-height: 390px;
  }
  .scene-bottom {
    font-size: 6px;
    left: 0;
  }
  .cart-contents {
    top: 34%;
  }
  .cart-book {
    width: 53px;
    height: 85px;
  }
  .snack-objects {
    gap: 8px;
  }
  .bin {
    margin-left: 0;
  }
  .nachos {
    width: 135px;
  }
  .plate {
    width: 135px;
  }
  .game-copy h2 {
    font-size: 36px;
  }
  .gaming-feature {
    padding: 28px;
    gap: 10px;
  }
}
@media (max-width: 800px) {
  .header {
    height: auto;
    padding: 20px 5% 0;
    flex-wrap: wrap;
  }
  .brand {
    flex: 1;
  }
  .header nav {
    order: 3;
    width: 100%;
    height: 54px;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
  }
  .nav {
    font-size: 12px;
  }
  .intro {
    padding-bottom: 32px;
  }
  .intro h1 {
    font-size: 47px;
  }
  .intro-note {
    margin-right: 4%;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .tools {
    flex: 1;
    justify-content: flex-end;
  }
  .search input {
    width: 145px;
  }
  .space-label h2 {
    font-size: 22px;
  }
  .sound-button {
    font-size: 10px;
  }
  .book-feature {
    grid-template-columns: 45% 55%;
  }
  .cart-info h2 {
    font-size: 33px;
  }
  .cart-info {
    padding: 28px 0 24px 24px;
  }
  .cart-totals {
    gap: 16px;
  }
  .cart-totals > div + div {
    padding-left: 15px;
  }
  .cart-totals span {
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .cart-totals strong {
    font-size: 23px;
  }
  .cart-stage {
    min-height: 355px;
  }
  .cart-svg {
    width: 130%;
    left: -25%;
    bottom: 0;
  }
  .cart-contents {
    left: 10%;
    top: 35%;
  }
  .cart-book {
    width: 47px;
    height: 74px;
  }
  .scene-bottom {
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .scene-number {
    display: none;
  }
  .scene-label {
    font-size: 6px;
    right: 15px;
  }
  .hand-note {
    font-size: 10px;
  }
  .shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px 20px;
  }
  .cover-button {
    height: 210px;
    padding: 8px 12px 15px;
  }
  .cinema-feature,
  .gaming-feature {
    grid-template-columns: 1fr 1fr;
    padding: 25px;
    gap: 20px;
  }
  .tv {
    padding: 15px 36px 15px 15px;
  }
  .tv-screen {
    height: 190px;
  }
  .tv-controls {
    right: 6px;
  }
  .tv-controls i {
    width: 19px;
    height: 19px;
  }
  .cinema-feature h2,
  .gaming-feature h2 {
    font-size: 32px;
  }
  .snack-scene {
    min-height: 300px;
  }
  .snack-objects {
    gap: 6px;
    left: -30px;
    right: -10px;
  }
  .can-button {
    width: 65px;
  }
  .bin {
    width: 42px;
    height: 55px;
  }
  .nachos {
    width: 120px;
  }
  .plate {
    width: 120px;
  }
  .chip {
    width: 39px;
    height: 34px;
  }
  .chip-2 {
    left: 75px;
  }
  .dip {
    right: 13px;
  }
  .game-stats {
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }
  .controller {
    right: 50px;
    width: 120px;
  }
  .snack-labels {
    left: -10px;
    right: 0;
    font-size: 6px;
    gap: 10px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .footer-brand span {
    display: block;
    margin: 5px 0 0;
  }
}
@media (max-width: 560px) {
  main {
    padding: 0 5%;
  }
  .header {
    padding-top: 16px;
  }
  .brand {
    font-size: 14px;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .add {
    font-size: 10px;
    gap: 6px;
    padding: 10px;
  }
  .nav {
    font-size: 10px;
  }
  .nav > span {
    font-size: 7px;
    margin-right: 3px;
  }
  .welcome {
    padding-top: 26px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .edition {
    font-size: 5px;
    letter-spacing: 0.4px;
  }
  .intro {
    padding: 28px 0 30px;
  }
  .intro h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }
  .intro p {
    font-size: 10px;
  }
  .intro-note {
    display: none;
  }
  .toolbar {
    padding: 18px 0;
    gap: 15px;
  }
  .space-label h2 {
    font-size: 22px;
  }
  .tools {
    justify-content: space-between;
    width: 100%;
    flex-basis: 100%;
  }
  .search input {
    width: 200px;
    font-size: 10px;
  }
  .sound-button {
    font-size: 9px;
    padding: 7px 10px;
  }
  .book-feature {
    grid-template-columns: 1fr;
    position: relative;
  }
  .cart-info {
    padding: 26px 24px 0;
  }
  .cart-info h2 {
    font-size: 37px;
    margin-top: 17px;
  }
  .cart-info p {
    font-size: 10px;
  }
  .cart-totals {
    margin: 20px 0;
    gap: 27px;
  }
  .cart-totals > div + div {
    padding-left: 26px;
  }
  .cart-totals span {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .cart-totals strong {
    font-size: 25px;
  }
  .hand-note {
    font-size: 11px;
  }
  .cart-stage {
    min-height: 285px;
  }
  .cart-svg {
    width: 105%;
    left: -5%;
    height: 310px;
    bottom: 0;
  }
  .cart-contents {
    left: 22%;
    top: 22%;
    width: 55%;
  }
  .cart-book {
    width: 49px;
    height: 78px;
  }
  .scene-label {
    top: 15px;
    right: 15px;
  }
  .scene-bottom {
    bottom: 18px;
    left: 25px;
    font-size: 6px;
  }
  .cart-strip {
    padding: 13px 15px;
    align-items: flex-start;
    gap: 11px;
    flex-direction: column;
  }
  .cart-strip > div {
    gap: 6px;
  }
  .cart-chip {
    font-size: 8px;
  }
  .collection {
    padding-top: 32px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .section-heading select {
    font-size: 9px;
    padding: 8px;
  }
  .shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .cover-button {
    height: 175px;
    padding: 8px 8px 13px;
  }
  .card-meta {
    font-size: 6px;
    display: block;
    line-height: 1.8;
    margin-top: 12px;
  }
  .card-meta span + span {
    display: block;
  }
  .media-card h3 {
    font-size: 12px;
  }
  .media-card > p {
    font-size: 8px;
  }
  .card-action {
    font-size: 8px;
    margin-top: 5px;
    padding-top: 6px;
  }
  .cinema-feature,
  .gaming-feature {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 30px;
  }
  .cinema-feature h2,
  .gaming-feature h2 {
    font-size: 38px;
  }
  .tv {
    margin: 0 8px 10px;
  }
  .tv-screen {
    height: 200px;
  }
  .gaming-feature {
    padding-bottom: 50px;
  }
  .snack-scene {
    min-height: 255px;
  }
  .snack-objects {
    left: 0;
    right: 0;
    gap: 13px;
  }
  .plate {
    width: 140px;
  }
  .nachos {
    width: 140px;
  }
  .chip {
    width: 45px;
    height: 40px;
  }
  .bin {
    width: 45px;
    height: 58px;
  }
  .snack-labels {
    left: 5px;
    right: 5px;
    font-size: 6px;
  }
  .game-stats {
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }
  .controller {
    right: 60px;
    top: 0;
  }
  .detail-body {
    grid-template-columns: 110px 1fr;
    gap: 17px;
  }
  .detail-cover {
    height: 170px;
  }
  dialog {
    padding: 22px;
  }
  .detail-body h2 {
    font-size: 23px;
  }
  footer {
    margin-top: 40px;
    padding: 22px 0;
  }
  .footer-brand {
    font-size: 11px;
  }
  #save-status {
    font-size: 6px;
    letter-spacing: 0;
  }
  .audio-actions {
    gap: 8px;
  }
  .audio-actions .button,
  .audio-actions .outline-button {
    font-size: 10px;
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .flying-book {
    display: none;
  }
}
/* Tactile collection displays, inspired by the reference sanctuary. */
.room-display {
  display: block;
}
.display-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #7f714138;
  padding: 0 4px 12px;
}
.display-label h3 {
  font: 500 17px var(--serif);
  margin: 0;
  color: #d1c69f;
}
.display-label h3 span {
  color: #998b67;
  font-style: italic;
}
.display-label > span,
.station-label {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #acaa87;
}
.book-display {
  padding: 26px;
  border: 7px solid #463421;
  border-radius: 9px;
  background: radial-gradient(ellipse at top right, #74603622, transparent 65%), #211c14;
  box-shadow:
    inset 0 2px 28px #0b100ccc,
    0 15px 30px #090e0b44;
}
.archive-genre + .archive-genre {
  margin-top: 30px;
}
.wood-shelf {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 24px 16px 8px;
  overflow-x: auto;
  border-bottom: 13px solid #58432b;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#211c1433, #100f0bcc);
  box-shadow:
    0 6px 8px #0b100b88,
    inset 0 -2px #a4844b66;
}
.archive-volume {
  flex: 0 0 128px;
}
.bound-book {
  display: flex;
  align-items: stretch;
  width: 128px;
  height: var(--height);
  padding: 0;
  background: var(--binding);
  border: 1px solid #b5a06a55;
  border-radius: 3px 1px 1px 3px;
  box-shadow:
    5px 0 #d0c5a0,
    8px 1px #493e29,
    12px 7px 15px #090e0abb;
  transform: perspective(800px) rotateY(-12deg);
  transition: transform 0.3s;
}
.bound-book:hover,
.bound-book:focus-visible {
  transform: perspective(800px) translateY(-9px) rotateY(0deg);
}
.book-spine {
  width: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 12px 4px;
  border-right: 2px solid #090e0a66;
  background: linear-gradient(90deg, #ffffff0d, transparent 30%, #090e0a55);
  color: #dfcf98;
}
.book-spine strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 11px var(--serif);
  max-height: 135px;
  overflow: hidden;
}
.book-spine small {
  font: 7px var(--mono);
  max-width: 100%;
  overflow: hidden;
}
.book-face.cover-object {
  width: 91px;
  max-width: none;
  height: 100%;
  transform: none;
  box-shadow: none;
  aspect-ratio: auto;
}
.book-face img {
  object-fit: contain;
  background: var(--binding);
}
.archive-volume .card-action {
  font-size: 9px;
  margin-top: 14px;
  margin-bottom: 4px;
}
.movie-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.broadcast {
  min-width: 0;
  background: linear-gradient(135deg, #30372d, #1a231e);
  border: 1px solid #49513e;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 13px 25px #080e0b44;
}
.antenna {
  height: 29px;
  width: 90px;
  margin: auto;
  position: relative;
}
.antenna:before,
.antenna:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 35px;
  background: linear-gradient(#b2b6a0, #5a6655);
  transform-origin: bottom;
  left: 45px;
  transform: rotate(-50deg);
}
.antenna:after {
  transform: rotate(45deg);
}
.broadcast .display-label {
  border: 0;
  padding-bottom: 14px;
}
.mini-tv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 14px;
  padding: 16px;
  border-radius: 19px;
  background: linear-gradient(120deg, #75694c, #3c3e30 50%, #5a533d);
  border: 2px solid #8e8465;
  box-shadow:
    5px 6px #111b14,
    0 12px 22px #090e0a88;
}
.broadcast-screen {
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 7px solid #121b17;
  border-radius: 50%/8%;
  aspect-ratio: 4/3;
  background: #0f1814;
  width: 100%;
}
.broadcast-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: sepia(0.12);
}
.broadcast-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(transparent 0 3px, #101b1438 3px 4px), linear-gradient(125deg, #ffffff13, transparent 35%);
}
.channel-bug {
  position: absolute;
  left: 10px;
  top: 10px;
  font: 9px var(--mono);
  text-shadow: 0 1px 4px #101911;
  background: #122019bb;
  padding: 4px 6px;
  color: #d1d6aa;
}
.screen-off {
  display: none;
}
.off img,
.off .channel-bug,
.off .cover-missing {
  visibility: hidden;
}
.off .screen-off {
  display: block;
  position: absolute;
  inset: 0;
  align-content: center;
  color: #7d8b77;
  font: 10px var(--mono);
}
.broadcast-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 7px 0;
}
.broadcast-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #222e21;
  background: linear-gradient(135deg, #b3b09a, #4a5140);
  box-shadow: 2px 3px 4px #111b15;
  color: #18281d;
  font-size: 19px;
}
.speaker-grille {
  flex: 1;
  width: 24px;
  background: repeating-linear-gradient(0deg, #1c291b 0 2px, transparent 2px 5px);
  opacity: 0.6;
}
.broadcast-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.broadcast-caption h3 {
  font: 18px var(--serif);
  margin: 0 0 6px;
}
.broadcast-caption p {
  font-size: 10px;
  color: #a2af95;
  margin: 0;
}
.channel-controls {
  display: flex;
  gap: 5px;
}
.channel-controls button {
  width: 33px;
  height: 33px;
  background: #303c2b;
  border: 1px solid #616b50;
  border-radius: 4px;
  color: #d1d6aa;
}
.station-label {
  display: block;
  margin-top: 17px;
  font-size: 7px;
  color: #83937a;
}
.game-display {
  background: radial-gradient(ellipse at 50% 0, #57654433, transparent 70%), #1c251e;
  border: 1px solid #46523c;
  border-radius: 10px;
  padding: 30px 30px 0;
  overflow: hidden;
}
.desk-heading p {
  font-size: 11px;
  color: #9fac94;
  margin: 10px 0 28px;
}
.case-piles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 45px;
  padding: 0 8px 35px;
}
.jewel-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding-top: 20px;
}
.jewel-case {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 73px;
  width: 100%;
  padding: 5px 10px 5px 5px;
  background: linear-gradient(175deg, #ffffff18, transparent 40%, #10191166), var(--binding);
  border: 2px solid #79877b88;
  border-radius: 3px;
  box-shadow:
    0 6px 8px #0b130cbb,
    inset 0 1px #e4ead944;
  transform: translateX(var(--offset));
  transition: transform 0.25s;
  text-align: left;
}
.jewel-case:hover,
.jewel-case:focus-visible {
  transform: translateX(18px);
  z-index: 1;
  border-color: #becaaa;
}
.case-art {
  height: 59px;
  flex: 0 0 41px;
  position: relative;
  overflow: hidden;
  background: #29372b;
}
.case-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-art .cover-missing {
  font-size: 8px;
  padding: 2px;
}
.case-art .cover-missing small {
  display: none;
}
.case-hinge {
  width: 5px;
  align-self: stretch;
  border-left: 1px solid #ffffff44;
  border-right: 1px solid #ffffff33;
  flex-shrink: 0;
}
.case-title {
  min-width: 0;
  flex: 1;
}
.case-title strong {
  font: 13px var(--serif);
  display: block;
  line-height: 1.35;
}
.case-title small {
  display: block;
  font-size: 8px;
  color: #a9b49f;
  margin-top: 5px;
}
.case-rating {
  font: 10px var(--mono);
  color: #dbd2a0;
  flex-shrink: 0;
  text-align: right;
}
.case-rating small {
  font-size: 6px;
  display: block;
  letter-spacing: 0.4px;
  color: #a3b091;
  margin-top: 8px;
}
.desk-edge {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 -30px;
  padding: 15px 25px;
  border-top: 6px solid #5a573b;
  background: repeating-linear-gradient(2deg, #383e2d 0 2px, #343b2b 2px 6px);
  font: 7px var(--mono);
  letter-spacing: 1.5px;
  color: #b0b599;
}
.room-display .empty {
  grid-column: 1/-1;
}
@media (max-width: 800px) {
  .movie-display {
    gap: 22px;
  }
  .broadcast {
    padding: 15px;
  }
  .mini-tv {
    padding: 10px;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) 30px;
  }
  .broadcast-screen {
    border-width: 5px;
  }
  .case-piles {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .jewel-case {
    max-width: 540px;
  }
  .book-display {
    padding: 18px;
  }
  .archive-volume {
    flex-basis: 128px;
  }
}
@media (max-width: 560px) {
  .movie-display {
    grid-template-columns: 1fr;
  }
  .broadcast {
    padding: 22px;
  }
  .book-display {
    padding: 17px 10px;
    border-width: 5px;
  }
  .wood-shelf {
    gap: 17px;
    padding-left: 8px;
    padding-right: 14px;
  }
  .display-label h3 {
    font-size: 15px;
  }
  .display-label > span {
    font-size: 7px;
  }
  .game-display {
    padding: 22px 18px 0;
  }
  .case-piles {
    padding-left: 0;
    padding-right: 8px;
  }
  .jewel-case {
    gap: 7px;
    padding-right: 7px;
  }
  .case-rating small {
    font-size: 5px;
  }
  .case-title strong {
    font-size: 12px;
  }
  .desk-edge {
    margin: 0 -18px;
    font-size: 6px;
    padding: 13px 18px;
  }
  .header nav {
    overflow-x: auto;
  }
  .nav {
    font-size: 10px;
  }
  .space-label {
    gap: 7px;
  }
  .space-label h2 {
    font-size: 21px;
  }
}

/* ---------- Uploaded background music ---------- */
#music-dialog {
  width: min(560px, calc(100% - 28px));
}
.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed #5d6b4c;
  border-radius: 8px;
  background: #222d22;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.upload-zone:hover,
.upload-zone.drag {
  background: #2a3628;
  border-color: var(--accent);
}
.upload-zone.busy {
  opacity: 0.55;
  pointer-events: none;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #252c22;
  font-size: 18px;
  flex-shrink: 0;
}
.upload-copy {
  font-size: 12px;
  color: #c3cbb2;
  line-height: 1.5;
}
.upload-copy b {
  color: var(--text);
  font-weight: 600;
}
.upload-copy small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: #909d7d;
  margin-top: 4px;
  text-transform: uppercase;
}
.upload-progress {
  margin-top: 12px;
}
.upload-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  color: #b4bca0;
  margin-bottom: 6px;
}
.upload-progress-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-bar {
  height: 4px;
  border-radius: 4px;
  background: #323b34;
  overflow: hidden;
}
.upload-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.round-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #536044;
  background: transparent;
  color: #c0cbae;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.round-button:hover {
  background: #38452e;
}
.round-button.main {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-color: var(--accent);
  color: #252c22;
  font-size: 13px;
}
.round-button.main:hover {
  background: #e3e6c5;
}
.now-playing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin-left: 6px;
}
.now-playing b,
.mini-info b {
  font: 500 16px var(--serif);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font: 10px var(--mono);
  color: #909d7d;
}
.seek-row input,
.volume-row input {
  flex: 1;
  accent-color: var(--accent);
}
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: #909d7d;
  text-transform: uppercase;
}
.playlist-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.playlist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.playlist-empty {
  font-size: 11px;
  color: #909d7d;
  padding: 12px 0;
}
.track {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}
.track:hover {
  background: #263126;
}
.track.current {
  background: #2c3a2a;
  color: var(--accent);
}
.track-num {
  font: 10px var(--mono);
  color: #909d7d;
  width: 18px;
  flex-shrink: 0;
}
.track.current .track-num {
  color: var(--accent);
}
.track-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-size {
  font: 9px var(--mono);
  color: #7f8b70;
  flex-shrink: 0;
}
#audio-status:empty {
  display: none;
}
.mini-player {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  max-width: min(340px, calc(100% - 40px));
  border: 1px solid #536046;
  border-radius: 40px;
  background: #1e281fee;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px #080d0bb3;
}
.mini-player[hidden] {
  display: none;
}
.mini-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 0 4px;
}
.mini-info b {
  font-size: 14px;
}
@media (max-width: 560px) {
  .mini-player {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .upload-zone {
    padding: 16px;
  }
  .now-playing b {
    font-size: 14px;
  }
}

/* ---------- Currently reading ---------- */
.reading-nook {
  margin-top: 26px;
  border: 1px solid #4a3b28;
  border-radius: 8px;
  padding: 26px 26px 30px;
  background: radial-gradient(ellipse at 12% 0%, #ffc36a1f, transparent 55%), linear-gradient(160deg, #2a2118, #1a1611);
}
.reading-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.reading-head h2 {
  font: 500 30px/1.15 var(--serif);
  margin: 10px 0 8px;
}
.reading-head h2 em {
  color: #e7c98a;
}
.reading-head p {
  margin: 0;
  color: #b5a88c;
  font-size: 12px;
  line-height: 1.7;
  max-width: 460px;
}
.reading-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.reading-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 6px;
  background: #ffffff08;
  border: 1px solid #ffffff10;
}
.reading-cover {
  flex: 0 0 92px;
  height: 138px;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.reading-cover:hover {
  transform: translateY(-4px) rotateY(0);
}
.bookmark {
  position: absolute;
  top: -4px;
  right: 14px;
  width: 12px;
  height: 42px;
  background: #b3412f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 0 2px 3px #0006;
}
.reading-info {
  min-width: 0;
}
.reading-info h3 {
  font: 500 18px/1.25 var(--serif);
  margin: 8px 0 4px;
  color: #efe4c8;
}
.reading-info p {
  margin: 0;
  color: #a99d82;
  font-size: 11px;
}
.reading-info .reading-with {
  margin-top: 6px;
  color: #c8b98f;
}
.reading-info .reading-with b {
  font-weight: 600;
  color: #e7c98a;
}
.finish-button {
  margin-top: 13px;
  border: 1px solid #e7c98a;
  background: #e7c98a;
  color: #2b2116;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
}
.finish-button:hover {
  background: #f3dba7;
}
.finish-button:disabled {
  opacity: 0.6;
}
.reading-empty {
  grid-column: 1/-1;
  border: 1px dashed #5a4a33;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #b5a88c;
  font-size: 12px;
}
.reading-empty p {
  font: 20px var(--serif);
  color: #e8dcc0;
  margin: 0 0 6px;
}
.reading-empty .outline-button {
  display: block;
  margin: 16px auto 0;
  border-color: #7a6440;
  color: #e7c98a;
}

/* ---------- The finished bookshelf ---------- */
.shelf.book-display {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.bookcase {
  --wood: #5a3a22;
  --wood-dark: #2e1d11;
  position: relative;
  padding: 0 18px 0;
  border-radius: 6px 6px 2px 2px;
  background:
    repeating-linear-gradient(92deg, #ffffff05 0 2px, transparent 2px 9px, #00000012 9px 11px, transparent 11px 23px),
    linear-gradient(90deg, #4a2f1b, #6a4528 18%, #5b3a22 50%, #6d482a 82%, #432a18);
  box-shadow:
    0 30px 60px #0009,
    inset 0 0 0 1px #ffd9a01a;
}
.bookcase-crown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8px 13px;
  border-bottom: 3px solid var(--wood-dark);
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: #f1d7a8;
}
.bookcase-crown b {
  font-weight: 400;
  color: #d7b47b;
}
.case-level {
  position: relative;
  margin: 0;
  padding: 34px 18px 0;
  background:
    radial-gradient(ellipse at 50% 0%, #ffbf6a30, transparent 60%),
    repeating-linear-gradient(0deg, #00000010 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #160e08, #2a1a0e 35%, #3a2514);
  box-shadow:
    inset 0 14px 22px #000a,
    inset 10px 0 18px #0008,
    inset -10px 0 18px #0008;
}
.level-books {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px 0;
  min-height: 210px;
  scrollbar-width: thin;
  scrollbar-color: #6a4528 transparent;
}
.shelf-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.shelf-cover {
  width: 112px;
  height: 168px;
  padding: 0;
  border: 0;
  background: #3b2a1c;
  border-radius: 1px 3px 3px 1px;
  position: relative;
  cursor: pointer;
  transform: rotate(var(--tilt));
  transform-origin: bottom left;
  box-shadow:
    3px 0 0 #e8dcc0,
    5px 1px 0 #6d5a40,
    10px 6px 14px #000c;
  transition: transform 0.3s;
}
.shelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.shelf-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #ffffff1c, transparent 18%, transparent 85%, #0003),
    linear-gradient(90deg, #0006 0 3px, transparent 6px);
  border-radius: inherit;
  pointer-events: none;
}
.shelf-cover:hover,
.shelf-cover:focus-visible {
  transform: translateY(-10px) rotate(0);
}
.shelf-cover .cover-missing {
  visibility: visible;
  font-size: 12px;
  background: #4a3322;
}
.pop-figure {
  position: relative;
  width: 74px;
  margin-left: -14px;
  margin-right: 4px;
  padding: 0 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.25s;
}
.pop-figure .figure-svg {
  display: block;
  width: 74px;
  height: 111px;
  filter: drop-shadow(0 4px 3px #0009);
}
.pop-figure:hover,
.pop-figure:focus-visible {
  transform: translateY(-6px) rotate(-3deg);
}
.pop-figure.unknown .figure-svg {
  opacity: 0.55;
  filter: grayscale(1) drop-shadow(0 4px 3px #0009);
}
.figure-q {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font: 600 26px var(--serif);
  color: #f1d7a8;
  text-shadow: 0 2px 4px #000;
}
.figure-tag {
  display: block;
  margin: 2px auto 0;
  max-width: 86px;
  padding: 2px 5px;
  background: #efe3c4;
  color: #3a2614;
  font: 7px/1.4 var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 3px #0008;
}
.pop-figure.unknown .figure-tag {
  background: #6a5440;
  color: #f1d7a8;
}
.plank {
  position: relative;
  height: 22px;
  margin: 0 -18px;
  background: linear-gradient(180deg, #8a5d36, #6a4528 30%, #4d311c);
  box-shadow:
    0 6px 10px #0009,
    inset 0 1px #ffd9a055;
  z-index: 2;
}
.plank-plate {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  padding: 1px 10px;
  font: 7px/12px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #3b2512;
  background: linear-gradient(180deg, #e9c77f, #b8914b);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px #7a5a2a,
    0 1px 2px #0008;
  white-space: nowrap;
}
.bookcase-base {
  height: 18px;
  margin: 0 -18px;
  background: linear-gradient(180deg, #3a2414, #22150b);
  border-radius: 0 0 3px 3px;
}
.fairy-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  pointer-events: none;
  z-index: 3;
}
.fairy-lights svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fairy-lights path {
  fill: none;
  stroke: #2a2016;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
.fairy-lights i {
  position: absolute;
  width: 6px;
  height: 8px;
  margin: -1px 0 0 -3px;
  border-radius: 50% 50% 45% 45%;
  background: #ffe3a0;
  box-shadow:
    0 0 6px 2px #ffc96bcc,
    0 0 18px 6px #ffb34a55;
  animation: twinkle 3.2s ease-in-out var(--d) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ---------- Figure editor & cover upload ---------- */
.figure-editor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: start;
}
.figure-preview {
  border-radius: 8px;
  padding: 16px 10px 12px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #ffc36a33, transparent 70%), linear-gradient(180deg, #2a1a0e, #3a2514);
  border-bottom: 8px solid #6a4528;
}
.figure-preview .figure-svg {
  width: 120px;
  height: 180px;
}
.figure-preview .figure-tag {
  font-size: 8px;
  max-width: 130px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
form .swatches input {
  padding: 2px;
  height: 34px;
  cursor: pointer;
}
form label.check {
  flex-direction: row;
  align-items: center;
}
form label.check input {
  width: auto;
}
.cover-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}
.cover-preview {
  width: 74px;
  height: 111px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 22px;
  box-shadow: 4px 4px 10px #0008;
}
.cover-upload input {
  padding: 8px;
  cursor: pointer;
}
.status-switch {
  display: inline-flex;
  margin-top: 6px;
  border: 1px solid #536044;
  border-radius: 5px;
  overflow: hidden;
}
.status-switch button {
  border: 0;
  background: transparent;
  color: #c0cbae;
  font-size: 11px;
  padding: 9px 12px;
}
.status-switch button + button {
  border-left: 1px solid #536044;
}
.status-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #252c22;
  font-weight: 600;
}
.file-button {
  position: relative;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
@media (max-width: 560px) {
  .reading-nook {
    padding: 18px;
  }
  .reading-head {
    flex-direction: column;
  }
  .reading-head h2 {
    font-size: 24px;
  }
  .reading-list {
    grid-template-columns: 1fr;
  }
  .bookcase {
    padding: 0 10px;
  }
  .case-level {
    padding: 30px 8px 0;
  }
  .plank,
  .bookcase-base {
    margin: 0 -10px;
  }
  .shelf-cover {
    width: 86px;
    height: 129px;
  }
  .pop-figure,
  .pop-figure .figure-svg {
    width: 58px;
  }
  .pop-figure .figure-svg {
    height: 87px;
  }
  .figure-editor {
    grid-template-columns: 1fr;
  }
  .figure-preview .figure-svg {
    width: 96px;
    height: 144px;
  }
  .status-switch button {
    padding: 8px 9px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fairy-lights i {
    animation: none;
  }
}
[hidden] {
  display: none !important;
}

/* ---------- Movies / series switch ---------- */
.format-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid #5a4330;
  border-radius: 999px;
  background: #1a1511;
  box-shadow: inset 0 1px 0 #ffffff0d;
}
.format-switch[hidden] {
  display: none;
}
.format-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: #c9b597;
  font: 600 12px var(--sans);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.format-switch button:hover {
  background: #ffffff0d;
}
.format-switch button[aria-selected="true"] {
  background: linear-gradient(180deg, #f1c987, #d99a55);
  color: #2a1a0d;
  box-shadow: 0 0 18px #f0a35a55;
}
.format-switch .switch-icon {
  font-size: 11px;
  opacity: 0.8;
}
.format-switch b {
  font: 500 9px var(--mono);
  padding: 2px 6px;
  border-radius: 99px;
  background: #00000026;
}

/* ---------- Up next (watchlist) ---------- */
.queue-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.queue-lanes.single {
  grid-template-columns: 1fr;
}
.queue-lane {
  min-width: 0;
  padding: 16px;
  border-radius: 6px;
  background: #ffffff06;
  border: 1px solid #ffffff10;
}
.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.queue-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  background: #0000002b;
  min-width: 0;
}
.queue-card .queue-info {
  min-width: 0;
}
.queue-card h3 {
  font: 500 16px/1.25 var(--serif);
  margin: 0 0 3px;
  color: #efe4c8;
}
.queue-card p {
  margin: 0;
  color: #a99d82;
  font-size: 11px;
  white-space: normal;
}
.queue-card .finish-button {
  margin-top: 10px;
}
.queue-poster.cover-object {
  flex: 0 0 72px;
  height: 108px;
  padding: 0;
  border: 0;
  cursor: pointer;
  transform: none;
  box-shadow:
    0 0 0 3px #1b1612,
    0 0 0 4px #8b6a45,
    6px 8px 14px #000a;
}
.queue-poster.cover-object:hover {
  transform: translateY(-3px);
}
.format-tag {
  display: inline-block;
  font: 600 7px var(--mono);
  letter-spacing: 1.4px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #2a1a0d;
  background: #e7c98a;
}
.format-tag.series {
  background: #c9a8f0;
  color: #241534;
}
.queue-poster .format-tag {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 4px;
}
.queue-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #5a4a33;
  border-radius: 6px;
  color: #b5a88c;
  font-size: 12px;
  white-space: normal;
}

/* ---------- The Wall of Art ---------- */
.art-display {
  display: block;
}
.art-wall {
  --wall-led: #f0a35a;
  position: relative;
  overflow: hidden;
  padding: 0 4% 0;
  border-radius: 10px;
  border: 1px solid #5a4330;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 30% at 50% 0%, #ffb46a33, transparent 70%),
    radial-gradient(ellipse 50% 40% at 12% 40%, #9a6a3a1c, transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 60%, #9a6a3a1c, transparent 70%),
    linear-gradient(180deg, #2f2925, #241f1b 60%, #1c1815);
  box-shadow:
    inset 0 0 0 7px #15100c,
    inset 0 0 0 8.5px #f0a35a66,
    inset 0 0 26px 8px #f0a35a22,
    inset 0 0 120px #000b,
    0 30px 60px #0009;
}
.art-wall:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 30% 20%, transparent 0 3px, #ffffff03 3px 4px);
}
.wall-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 380px;
  pointer-events: none;
  background: radial-gradient(ellipse 35% 100% at 50% 0%, #ffcf8f26, transparent 70%);
}
.wall-vine {
  position: absolute;
  top: -6px;
  z-index: 4;
  width: 74px;
  height: 330px;
  pointer-events: none;
  filter: drop-shadow(4px 8px 6px #0009);
}
.wall-vine.left {
  left: 10px;
}
.wall-vine.right {
  right: 10px;
  transform: scaleX(-1);
  height: 250px;
}
.wall-sign {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 46px;
  padding: 26px 60px 18px;
  text-align: center;
  background: linear-gradient(180deg, #0f0b09, #17110d);
  border: 1px solid #3a2a1d;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow:
    0 -3px 0 #9a7cf0 inset,
    0 18px 40px #000b,
    0 0 50px #f0a35a1f;
}
.wall-sign h3 {
  margin: 0;
  font: 600 clamp(34px, 5.2vw, 64px)/1 Cinzel, var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff3dd;
  text-shadow:
    0 0 6px #ffd9a0,
    0 0 18px #f0a35acc,
    0 0 42px #f08a3a88;
}
.wall-sign span {
  display: block;
  margin-top: 12px;
  font: 500 12px var(--mono);
  letter-spacing: 6px;
  color: #eadcc4;
}
.wall-sign span i {
  font-style: normal;
  color: #f0a35a;
  margin: 0 6px;
}
.wall-sign small {
  display: block;
  margin-top: 10px;
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #a88f6d;
  text-transform: uppercase;
}
.wall-row {
  position: relative;
  z-index: 2;
  margin-bottom: 52px;
}
.wall-plaque {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 0 auto 30px;
  padding: 7px 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c9a067, #8d6a3c);
  color: #2a1a0d;
  box-shadow:
    0 2px 0 #4a3418,
    0 8px 16px #0008;
  font: 600 9px var(--mono);
  letter-spacing: 2.4px;
}
.wall-plaque b {
  font-weight: 500;
  opacity: 0.7;
}
.frames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 46px 34px;
  justify-items: center;
}
.art-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 200px;
  transform: rotate(var(--tilt));
  transform-origin: 50% 0;
  animation: frame-in 0.6s both;
  animation-delay: calc(var(--n) * 45ms);
}
.art-frame:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 40px -30% -10%;
  background: radial-gradient(ellipse 50% 50% at 50% 45%, #ffc27a26, transparent 70%);
  pointer-events: none;
}
.art-frame.fresh {
  animation: hang-in 1.1s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes frame-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}
@keyframes hang-in {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(-10deg);
  }
  45% {
    opacity: 1;
    transform: translateY(0) rotate(6deg);
  }
  70% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(var(--tilt));
  }
}
.quote-bubble {
  position: relative;
  z-index: 3;
  max-width: 100%;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 9px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #3b2b1e;
  border-radius: 16px;
  background: radial-gradient(ellipse at 30% 20%, #fbf4e4, #e9dcc0 75%, #d9c7a2);
  color: #2a1f16;
  font: 18px/1.1 "Patrick Hand", "Comic Sans MS", cursive;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow:
    0 6px 14px #000a,
    inset 0 -2px 0 #0000001a;
  transition: transform 0.25s;
}
.quote-bubble.long {
  font-size: 14px;
}
.quote-bubble:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 58%;
  width: 16px;
  height: 16px;
  background: #ddcca9;
  border-right: 1.5px solid #3b2b1e;
  border-bottom: 1.5px solid #3b2b1e;
  transform: skewX(22deg) rotate(45deg);
}
.quote-bubble:hover {
  transform: rotate(-2deg) scale(1.04);
}
.quote-bubble.empty {
  background: #1a1410cc;
  color: #c9b597;
  border: 1.5px dashed #8a6d4d;
  font-size: 15px;
  box-shadow: none;
}
.quote-bubble.empty:after {
  background: #1a1410;
  border-color: #8a6d4d;
  border-style: dashed;
}
.hanger {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 86px;
  display: flex;
  justify-content: center;
  margin-bottom: -16px;
}
.hanger .reel {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 8px 6px #000b);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.art-frame:hover .reel {
  transform: rotate(240deg);
}
.hanger .strip {
  position: absolute;
  z-index: -1;
  top: 42px;
  width: 12px;
  height: 68px;
  border-left: 2px solid #0e0c0a;
  border-right: 2px solid #0e0c0a;
  background: repeating-linear-gradient(180deg, #2a2520 0 4px, #6a6158 4px 7px);
  box-shadow: 2px 3px 6px #0009;
}
.hanger .strip.left {
  left: calc(50% - 46px);
  transform: rotate(22deg);
}
.hanger .strip.right {
  right: calc(50% - 46px);
  transform: rotate(-22deg);
}
.hanger .mini-set {
  width: 92px;
  height: 84px;
  filter: drop-shadow(0 8px 6px #000b);
  transition: transform 0.4s;
}
.art-frame:hover .mini-set {
  transform: translateY(-3px) rotate(-3deg);
}
.hanger .wire {
  position: absolute;
  z-index: -1;
  top: 60px;
  width: 1.5px;
  height: 50px;
  background: #b9a98d;
}
.hanger .wire.left {
  left: calc(50% - 30px);
  transform: rotate(24deg);
}
.hanger .wire.right {
  right: calc(50% - 30px);
  transform: rotate(-24deg);
}
.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #111;
  cursor: pointer;
  box-shadow:
    0 0 0 5px #19130f,
    0 0 0 7px #8b6a45,
    0 0 0 8px #2b1f14,
    0 22px 34px #000d;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.art-frame.series .poster {
  box-shadow:
    0 0 0 5px #19130f,
    0 0 0 7px #7a6596,
    0 0 0 8px #241a2e,
    0 22px 34px #000d;
}
.poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.poster:hover,
.poster:focus-visible {
  transform: translateY(-5px) scale(1.03);
  box-shadow:
    0 0 0 5px #19130f,
    0 0 0 7px #d4a96d,
    0 0 0 8px #2b1f14,
    0 26px 40px #000e,
    0 0 40px #f0a35a44;
}
.poster-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #ffffff1f 0%, transparent 32%, transparent 70%, #ffb46a14);
}
.poster .cover-missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  font: 16px var(--serif);
  color: #eadcc4;
  white-space: normal;
}
.frame-plate {
  margin-top: 18px;
  text-align: center;
  font: 7px var(--mono);
  letter-spacing: 1.6px;
  color: #a88f6d;
  white-space: normal;
}
.frame-plate b {
  display: block;
  margin-bottom: 4px;
  font: 500 13px/1.25 var(--serif);
  letter-spacing: 0;
  color: #eadcc4;
}
.wall-empty {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px;
  text-align: center;
  border: 1px dashed #6a5034;
  border-radius: 8px;
  background: #1a141099;
  color: #b5a88c;
}
.wall-empty p {
  margin: 0 0 6px;
  font: 20px var(--serif);
  color: #eadcc4;
}
.wall-empty span {
  display: block;
  font-size: 12px;
  margin-bottom: 14px;
}

/* The ledge along the foot of the wall */
.wall-ledge {
  position: relative;
  z-index: 3;
  margin: 10px -4.5% 0;
}
.ledge-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 0 6%;
  min-height: 110px;
}
.ledge-books {
  display: flex;
  flex-direction: column-reverse;
}
.ledge-books span {
  width: 172px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  translate: var(--x) 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff 10%), var(--c));
  border-left: 6px solid #b48a4f;
  border-right: 6px solid #b48a4f;
  border-radius: 2px;
  color: #e9cf9b;
  font: 600 9px Cinzel, var(--serif);
  letter-spacing: 1.6px;
  box-shadow: 0 3px 5px #000a;
}
.ledge-camera {
  position: relative;
  width: 74px;
  height: 50px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a4640, #23211e 30%, #151412);
  border-top: 8px solid #b9b2a6;
  box-shadow: 4px 6px 10px #000a;
}
.ledge-camera:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  translate: -50% -45%;
  background: radial-gradient(circle at 40% 35%, #6b8aa8, #18222c 45%, #050608 70%);
  border: 4px solid #2c2925;
  box-shadow: 0 0 0 2px #77716a;
}
.ledge-camera i {
  position: absolute;
  top: -15px;
  right: 8px;
  width: 16px;
  height: 7px;
  background: #2c2925;
  border-radius: 2px 2px 0 0;
}
.ledge-candle {
  position: relative;
  width: 22px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d9c9a8, #f4ead5, #c9b58f);
}
.ledge-candle i {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 8px;
  height: 14px;
  translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: radial-gradient(circle at 50% 70%, #fff6d6, #ffb347 60%, transparent 70%);
  box-shadow: 0 0 22px 10px #ffb34755;
  animation: flicker 2.4s infinite alternate;
}
@keyframes flicker {
  50% {
    transform: scale(0.88, 1.08);
    opacity: 0.85;
  }
}
.ledge-popcorn {
  position: relative;
  width: 70px;
  height: 86px;
}
.ledge-popcorn .kernels {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  height: 30px;
  border-radius: 40% 40% 10% 10%;
  background:
    radial-gradient(circle at 15% 60%, #fff3d4 0 8px, transparent 9px),
    radial-gradient(circle at 35% 35%, #fbe6b4 0 9px, transparent 10px),
    radial-gradient(circle at 58% 55%, #fff6dd 0 9px, transparent 10px),
    radial-gradient(circle at 80% 38%, #f6dca0 0 8px, transparent 9px),
    radial-gradient(circle at 48% 15%, #fff1cc 0 7px, transparent 8px);
  filter: drop-shadow(0 2px 2px #0006);
}
.ledge-popcorn .bucket {
  position: absolute;
  inset: 22px 0 0;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  background: repeating-linear-gradient(90deg, #c8282c 0 10px, #f4efe6 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ledge-popcorn .bucket b {
  padding: 5px 4px;
  border-radius: 50%;
  background: #f4efe6;
  border: 2px solid #c8282c;
  color: #c8282c;
  font: 700 8px/1 var(--sans);
  text-align: center;
}
.ledge-plant {
  position: relative;
  width: 54px;
  height: 64px;
}
.ledge-plant:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 24px;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(90deg, #6c6a66, #a8a49c, #5c5a56);
}
.ledge-plant i {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 12px;
  height: 30px;
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(#7d9a43, #4c6629);
  transform-origin: 50% 100%;
}
.ledge-plant i:nth-child(1) {
  transform: translateX(-50%) rotate(-55deg);
}
.ledge-plant i:nth-child(2) {
  transform: translateX(-50%) rotate(-25deg);
}
.ledge-plant i:nth-child(3) {
  transform: translateX(-50%);
}
.ledge-plant i:nth-child(4) {
  transform: translateX(-50%) rotate(25deg);
}
.ledge-plant i:nth-child(5) {
  transform: translateX(-50%) rotate(55deg);
}
.ledge-projector {
  position: relative;
  width: 120px;
  height: 90px;
}
.ledge-projector svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(4px 6px 8px #000a);
}
.ledge-projector .beam {
  position: absolute;
  right: -60px;
  top: 30px;
  width: 80px;
  height: 56px;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
  background: linear-gradient(90deg, #ffe2a855, transparent);
  pointer-events: none;
}
.ledge-plank {
  height: 20px;
  background: linear-gradient(180deg, #8a5a33, #5a3519 55%, #2e1a0b);
  border-top: 1px solid #c08a55;
  box-shadow: 0 12px 24px #000c;
}
.detail-quote {
  margin: 4px 0 10px;
  padding: 10px 14px;
  border-left: 3px solid #e7c98a;
  background: #ffffff08;
  font: 19px/1.2 "Patrick Hand", cursive;
  color: #efe4c8;
  white-space: normal;
}
#quote-dialog form {
  width: min(460px, 82vw);
}
#quote-dialog .muted-copy {
  white-space: normal;
}

@media (max-width: 800px) {
  .queue-lanes {
    grid-template-columns: 1fr;
  }
  .wall-sign {
    padding: 22px 28px 16px;
  }
  .wall-sign span {
    letter-spacing: 3px;
    font-size: 10px;
  }
  .ledge-camera,
  .ledge-candle {
    display: none;
  }
}
@media (max-width: 560px) {
  .format-switch {
    display: flex;
    width: 100%;
  }
  .format-switch[hidden] {
    display: none;
  }
  .format-switch button {
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
  }
  .frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 18px;
  }
  .quote-bubble {
    font-size: 15px;
  }
  .hanger .reel {
    width: 70px;
    height: 70px;
  }
  .wall-vine {
    width: 46px;
    height: 200px;
  }
  .ledge-plant,
  .ledge-projector {
    display: none;
  }
  .ledge-books span {
    width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-frame,
  .art-frame.fresh,
  .ledge-candle i {
    animation: none;
  }
  .reel {
    transition: none;
  }
}

/* ---------- The Wall of Doom ---------- */
.shelf.game-display {
  display: block;
}
.doom-room {
  --d: 14px; /* depth of a game case */
  position: relative;
  margin: 0 -5.5%;
  padding: 34px 2% 0;
  perspective: 1700px;
  perspective-origin: 50% 30%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, #3a2a1c55, transparent 70%),
    linear-gradient(#0c0a0b, #08070a 70%, #050407);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 120px #000;
}
.doom-stage {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 128px;
  grid-template-rows: auto auto;
  gap: 0 18px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 60%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The wall itself: dark veined stone, warm LED edging, pools of spotlight */
.doom-wall {
  position: relative;
  transform-style: preserve-3d;
  padding: 30px 4.5% 62px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 22% 26% at 12% 30%, #ffb46a1c, transparent 70%),
    radial-gradient(ellipse 22% 26% at 50% 28%, #ffb46a1f, transparent 70%),
    radial-gradient(ellipse 22% 26% at 88% 30%, #ffb46a1c, transparent 70%),
    radial-gradient(ellipse 30% 22% at 30% 70%, #ffb46a14, transparent 70%),
    radial-gradient(ellipse 30% 22% at 72% 70%, #ffb46a14, transparent 70%),
    linear-gradient(90deg, #000a, transparent 12%, transparent 88%, #000a),
    linear-gradient(#0008, transparent 18%, transparent 80%, #000c),
    url("/.netlify/images?url=/img/doom-wall.jpg&w=1800&fm=webp&q=70") center / cover,
    #17161a;
  box-shadow:
    0 0 0 1px #2a2420,
    0 -3px 0 #ff9b4a,
    0 -6px 26px #ff8a3a88,
    0 3px 0 #ff9b4a,
    0 8px 30px #ff8a3a77,
    inset 0 0 90px #000d;
}
.doom-led {
  position: absolute;
  inset: auto 6% 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ffb36b 12%, #ffd3a0 50%, #ffb36b 88%, transparent);
  box-shadow:
    0 0 12px #ff9a4a,
    0 -14px 40px #ff8a3a66;
  pointer-events: none;
}
.doom-wall .wall-vine {
  z-index: 6;
  top: -10px;
  height: 300px;
  filter: drop-shadow(4px 10px 6px #000c) brightness(0.8);
}

/* Neon sign */
.doom-sign {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 54px;
  padding: 18px 64px 16px;
  text-align: center;
  background: linear-gradient(#18181f, #0b0b10);
  border: 1px solid #2c2f40;
  border-radius: 6px;
  transform: translateZ(18px);
  box-shadow:
    0 18px 30px #000c,
    inset 0 1px #ffffff14,
    0 0 0 1px #000;
}
.doom-sign:before,
.doom-sign:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 3px;
  background: #7fb2ff;
  box-shadow:
    0 0 8px #5e9bff,
    0 0 22px #3e7bff,
    0 0 44px #2d5dff88;
}
.doom-sign:before {
  top: -2px;
}
.doom-sign:after {
  bottom: -2px;
  left: 25%;
  right: 25%;
}
.doom-sign h3 {
  margin: 0;
  font: 700 clamp(26px, 4.2vw, 52px) / 1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f7ff;
  text-shadow:
    0 0 4px #fff,
    0 0 14px #8fb8ff,
    0 0 32px #4d86ff,
    0 0 60px #2f5fff99;
  animation: doom-neon 6s infinite;
}
.doom-sign > span {
  display: block;
  margin-top: 10px;
  font: 500 clamp(9px, 1.1vw, 13px) var(--mono);
  letter-spacing: 0.45em;
  color: #e3e8f6;
  text-shadow: 0 0 10px #7fa6ff88;
}
.doom-sign > span i {
  font-style: normal;
  color: #7fb2ff;
  margin: 0 0.6em;
}
.doom-sign small {
  display: block;
  margin-top: 8px;
  font: 8px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7c8296;
}
@keyframes doom-neon {
  0%, 92%, 96%, 100% {
    opacity: 1;
  }
  94% {
    opacity: 0.72;
  }
  95% {
    opacity: 0.95;
  }
}

/* The grid of mounted games */
.doom-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 26px clamp(14px, 2vw, 30px);
  align-items: end;
  transform-style: preserve-3d;
}
.doom-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transform-style: preserve-3d;
  animation: appear 0.6s both;
  animation-delay: calc(var(--n) * 40ms);
}
.doom-slot:nth-child(odd) {
  margin-top: 10px;
}
.slot-spot {
  position: absolute;
  z-index: -1;
  left: -40%;
  right: -40%;
  top: -34px;
  bottom: 18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 70% at 50% 0%, #ffc58a33, transparent 70%),
    radial-gradient(circle at 50% 0%, #ffe6c288 0 2px, transparent 4px);
}

/* The pop figure standing on the case */
.doom-figure {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: clamp(96px, 11vw, 158px);
  margin-bottom: -4px;
  padding: 0;
  border: 0;
  background: none;
  transform: translateZ(calc(var(--d) * 0.55));
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.3);
}
.doom-figure .figure-img {
  display: block;
  max-width: 118%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 6px 5px #000d) drop-shadow(0 0 14px #ffb2702a) contrast(1.05) saturate(1.05);
}
.doom-figure.standee .figure-img {
  height: 92%;
  max-width: 90%;
  padding: 3px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff55, #ffffff11 40%, #ffffff33);
  box-shadow:
    0 0 0 1px #ffffff44,
    0 8px 12px #000c;
}
.doom-figure.standee:after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 56%;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(#ffffff40, #ffffff10);
  box-shadow: 0 0 0 1px #ffffff2a;
}
.doom-figure:hover,
.doom-figure:focus-visible {
  transform: translateZ(calc(var(--d) * 0.55 + 6px)) translateY(-5px) scale(1.04);
}
.doom-figure:hover .figure-img,
.doom-figure:focus-visible .figure-img {
  filter: brightness(1.12) contrast(1.05) saturate(1.08);
}
.doom-figure.busy {
  align-items: center;
  cursor: progress;
}
.doom-figure.busy .sculpting {
  gap: 8px;
  font-size: 7px;
}
.doom-figure.busy .sculpting i {
  width: 30px;
  height: 30px;
}

/* Sculpted figures: the cut-out stacked at depth, so the figure has real thickness and turns on its base. */
.fig3d {
  position: relative;
  display: block;
  width: 118%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  animation: fig-sway 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--n, 0) * -0.9s);
}
.fig3d img,
.doom-figure .fig3d .figure-img,
.gfig-figure .fig3d img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}
.fig3d .fig-layer {
  transform: translateZ(calc(var(--k) * -1.25px));
  filter: brightness(0.32) saturate(0.7);
}
.fig3d .fig-layer[style*="--k:7"] {
  filter: brightness(0.2) drop-shadow(0 6px 5px #000d) drop-shadow(0 0 14px #ffb2702a);
}
.fig3d .figure-img {
  transform: translateZ(0.5px);
  filter: contrast(1.05) saturate(1.05);
}
@keyframes fig-sway {
  from {
    transform: rotateY(-16deg);
  }
  to {
    transform: rotateY(16deg);
  }
}
.doom-figure .figure-tag {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.figure-edit {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  font: 600 8px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #10131c;
  background: #9fc2ff;
  box-shadow:
    0 0 12px #5e9bffaa,
    0 4px 8px #000a;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.doom-figure:hover .figure-edit,
.doom-figure:focus-visible .figure-edit,
.doom-figure:hover .figure-tag,
.doom-figure:focus-visible .figure-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: none) {
  .figure-edit {
    opacity: 0.92;
    top: auto;
    bottom: 6px;
    transform: translateX(-50%);
    padding: 3px 6px;
    font-size: 7px;
  }
}
.doom-figure.empty {
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding-bottom: 6px;
}
.figure-ghost {
  height: 62%;
  fill: #ffffff10;
  stroke: #ffffff40;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  transition: fill 0.25s, stroke 0.25s;
}
.figure-add {
  padding: 4px 8px;
  border: 1px dashed #9fc2ff88;
  border-radius: 20px;
  font: 600 8px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c7d8ff;
  background: #0d1220cc;
  white-space: nowrap;
}
.doom-figure.empty:hover .figure-ghost {
  fill: #9fc2ff22;
  stroke: #9fc2ff;
}
.doom-figure.fresh {
  animation: figure-drop 0.8s cubic-bezier(0.25, 1.4, 0.4, 1) both;
}
@keyframes figure-drop {
  from {
    opacity: 0;
    transform: translateZ(calc(var(--d) * 0.55)) translateY(-70px) rotate(-8deg);
  }
}

/* The game case: a real box with depth, mounted on the wall */
.game-case.game-case {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6.4;
  padding: 0;
  border: 0;
  background: none;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  box-shadow:
    6px 20px 22px #000c,
    0 34px 40px -10px #000a;
}
.gc-face {
  position: absolute;
  display: block;
  backface-visibility: hidden;
}
.gc-front {
  inset: 0;
  overflow: hidden;
  border: 3px solid #0b0b0d;
  border-radius: 2px;
  background: #111;
  transform: translateZ(var(--d));
  box-shadow:
    inset 0 0 0 1px #ffffff1c,
    inset 0 0 18px #000a;
}
.gc-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-front .cover-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 8px;
  text-align: center;
  font: 600 12px var(--serif);
  background: linear-gradient(160deg, #262838, #121218);
}
.gc-front .cover-missing small {
  display: block;
  font: 7px var(--mono);
  color: #8a8fa0;
  margin-top: 4px;
}
.gc-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, #ffffff2e 0%, #ffffff08 28%, transparent 42%, transparent 70%, #ffffff12 86%, transparent),
    linear-gradient(#ffd4a01c, transparent 30%);
  mix-blend-mode: screen;
}
.gc-left,
.gc-right {
  top: 0;
  width: var(--d);
  height: 100%;
  background: linear-gradient(#26262c, #0d0d10);
}
.gc-left {
  left: 0;
  transform-origin: left center;
  transform: rotateY(-90deg);
}
.gc-right {
  right: 0;
  transform-origin: right center;
  transform: rotateY(90deg);
  background: linear-gradient(#1d1d22, #08080a);
}
.gc-top,
.gc-bottom {
  left: 0;
  width: 100%;
  height: var(--d);
}
.gc-top {
  top: 0;
  transform-origin: center top;
  transform: rotateX(90deg);
  background: linear-gradient(90deg, #2a2420, #6b5340 50%, #2a2420);
}
.gc-bottom {
  bottom: 0;
  transform-origin: center bottom;
  transform: rotateX(-90deg);
  background: #060607;
}
.game-case:hover,
.game-case:focus-visible {
  transform: translateZ(10px);
}
.game-case:hover .gc-front {
  box-shadow:
    inset 0 0 0 1px #ffffff33,
    0 0 24px #ffb47040;
}
.doom-plate {
  position: relative;
  max-width: 100%;
  margin-top: 12px;
  padding: 3px 7px;
  overflow: hidden;
  border-radius: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #8f8a84;
  background: #0c0b0dcc;
  box-shadow: 0 0 0 1px #ffffff10;
}
.doom-plate b {
  font-weight: 500;
  color: #d9d2c6;
  margin-right: 5px;
}
.doom-slot.fresh {
  animation: mount-in 0.9s cubic-bezier(0.2, 1.2, 0.3, 1) both;
}
@keyframes mount-in {
  from {
    opacity: 0;
    transform: translateZ(140px) rotateX(-18deg);
  }
}
.doom-wall .wall-empty {
  position: relative;
  z-index: 3;
  border-color: #5e9bff66;
  background: #0b0d16cc;
  color: #a6adc4;
}
.doom-wall .wall-empty p {
  color: #eef2ff;
}

/* Side towers: shelves with books, neon signs and plants */
.doom-tower {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 40px;
  transform-style: preserve-3d;
}
.doom-tower.left {
  transform: rotateY(14deg);
  transform-origin: right center;
}
.doom-tower.right {
  transform: rotateY(-14deg);
  transform-origin: left center;
}
.tower-shelf {
  position: relative;
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 3px;
  background: linear-gradient(#141217, #0c0b0e);
  box-shadow:
    inset 0 16px 24px #000c,
    inset 0 0 0 1px #ffffff0c;
}
.tower-shelf:after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(#3b3530, #1a1714);
  box-shadow:
    0 2px 0 #ff9b4a,
    0 4px 18px #ff8a3a99;
}
.tower-books {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.tower-books i {
  display: block;
  width: 12px;
  height: calc(74px + var(--k) * 4px);
  border-radius: 1px;
  background: linear-gradient(90deg, #ffffff10, transparent 40%, #0006), var(--c);
  transform: translateY(var(--x));
  box-shadow: inset 0 6px 0 #ffffff0d, inset 0 -8px 0 #ffffff0d;
}
.tower-books.lying {
  flex-direction: column-reverse;
  align-items: center;
  gap: 1px;
}
.tower-books.lying i {
  width: calc(54px + var(--k) * 3px);
  height: 9px;
  transform: translateX(var(--x));
}
.tower-box {
  width: 36px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, #2c2a30, #15141a);
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.tower-shelf.neon {
  align-items: center;
}
.tower-shelf.neon.blue {
  background: radial-gradient(circle at 50% 50%, #2f5fff2e, transparent 70%), linear-gradient(#0f1220, #090a12);
}
.tower-shelf.neon.violet {
  background: radial-gradient(circle at 50% 50%, #b04dff2a, transparent 70%), linear-gradient(#150f1f, #0b0912);
}
.neon-word {
  font: 700 26px var(--sans);
  letter-spacing: 2px;
  color: #f5f8ff;
  text-shadow:
    0 0 4px #fff,
    0 0 12px var(--glow),
    0 0 30px var(--glow);
}
.neon.blue {
  --glow: #4d86ff;
}
.neon.violet {
  --glow: #b45cff;
}
.neon-pad svg {
  display: block;
  width: 78px;
  fill: none;
  stroke: #f3e9ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px var(--glow)) drop-shadow(0 0 10px var(--glow));
}
.tower-plant {
  position: relative;
  width: 46px;
  height: 70px;
}
.tower-plant:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 22px;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(90deg, #1c1b1e, #3a383d, #161518);
}
.tower-plant i {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 11px;
  height: 36px;
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(#5f7a34, #2f4219);
  transform-origin: 50% 100%;
}
.tower-plant i:nth-child(1) { transform: translateX(-50%) rotate(-55deg); }
.tower-plant i:nth-child(2) { transform: translateX(-50%) rotate(-25deg); }
.tower-plant i:nth-child(3) { transform: translateX(-50%); }
.tower-plant i:nth-child(4) { transform: translateX(-50%) rotate(25deg); }
.tower-plant i:nth-child(5) { transform: translateX(-50%) rotate(55deg); }

/* The desk at the foot of the wall */
.doom-desk {
  grid-column: 1 / -1;
  position: relative;
  margin: -12px -3% 0;
  transform-style: preserve-3d;
}
.desk-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 6vw, 90px);
  height: 92px;
  padding: 0 8%;
  background: linear-gradient(#2a2420, #15110f);
  transform-style: preserve-3d;
  transform: rotateX(62deg);
  transform-origin: 50% 100%;
  box-shadow: inset 0 20px 30px #0009;
}
.desk-top > * {
  transform: rotateX(-62deg);
  transform-origin: 50% 100%;
}
.desk-front {
  height: 34px;
  background: linear-gradient(#1a1513, #0a0807);
  box-shadow:
    0 -2px 0 #ff9b4a,
    0 -4px 22px #ff8a3a88;
}
.desk-books {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1px;
}
.desk-books span {
  display: block;
  width: 180px;
  padding: 4px 0;
  text-align: center;
  font: 700 7px var(--sans);
  letter-spacing: 1.5px;
  color: #b8ab98;
  background: linear-gradient(#24201f, #141110);
  border-radius: 1px;
  transform: translateX(var(--x));
  box-shadow: inset 0 1px #ffffff12, 0 2px 4px #0009;
}
.desk-books .big {
  width: 230px;
  padding: 7px 0;
  font-size: 8px;
  color: #e9dfcf;
}
.neon-cube {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: radial-gradient(circle, #3a2a80aa, #0c0a1c 75%);
  box-shadow:
    0 0 0 2px #9d8bff,
    0 0 16px #7a5cff,
    0 0 40px #5a3cff88,
    inset 0 0 18px #7a5cff88;
}
.neon-cube span {
  font: 700 8px/1.4 var(--mono);
  letter-spacing: 1.5px;
  text-align: center;
  color: #efeaff;
  text-shadow: 0 0 6px #b9a8ff;
}
.desk-plant {
  width: 50px;
  height: 64px;
}
.desk-plant:after {
  background: linear-gradient(90deg, #1a191c, #3a383d, #161518);
}
.desk-console {
  position: relative;
  width: 120px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(#24242a, #0e0e12);
  box-shadow: inset 0 1px #ffffff1a, 0 4px 8px #000a;
}
.desk-console i {
  position: absolute;
  right: 12px;
  top: 9px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #5e9bff;
  box-shadow: 0 0 8px #5e9bff;
}

/* Game figure studio dialog */
.gfig-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 16px;
  padding: 26px 20px 30px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, #ffc58a33, transparent 70%),
    linear-gradient(#0007, #000a),
    url("/.netlify/images?url=/img/doom-wall.jpg&w=900&fm=webp&q=65") center / cover,
    #151418;
  box-shadow: inset 0 0 50px #000c;
}
.gfig-figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 220px;
  height: 210px;
  margin-bottom: -4px;
}
.gfig-figure {
  perspective: 700px;
}
.gfig-figure .fig3d {
  width: 100%;
  animation: fig-turn 4.5s ease-in-out infinite alternate;
}
@keyframes fig-turn {
  from {
    transform: rotateY(-32deg);
  }
  to {
    transform: rotateY(32deg);
  }
}
.gfig-figure > img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 8px 6px #000c);
}
.gfig-figure.standee img {
  height: 92%;
  padding: 3px;
  border-radius: 6px;
  background: #ffffff33;
  box-shadow: 0 0 0 1px #ffffff55;
}
.gfig-figure .figure-ghost {
  height: 80%;
}
.gfig-figure.busy {
  align-items: center;
}
.sculpting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font: 9px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c7d8ff;
}
.sculpting i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #9fc2ff33;
  border-top-color: #9fc2ff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.gfig-case {
  width: 150px;
  aspect-ratio: 5 / 6.4;
  overflow: hidden;
  border: 3px solid #0b0b0d;
  box-shadow:
    0 -6px 0 -2px #4a3b30,
    6px 16px 20px #000c;
}
.gfig-case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gfig-source {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ffffff44;
  box-shadow: 0 6px 12px #000a;
}
#gfig-status.error {
  color: #ff9f8a;
}

@media (max-width: 1100px) {
  .doom-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .doom-stage {
    grid-template-columns: 96px minmax(0, 1fr) 96px;
  }
  .neon-word {
    font-size: 20px;
  }
  .neon-pad svg {
    width: 60px;
  }
}
@media (max-width: 800px) {
  .doom-room {
    margin: 0 -5%;
    border-radius: 0;
  }
  .doom-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .doom-tower {
    display: none;
  }
  .doom-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .doom-figure {
    height: 120px;
  }
  .desk-books,
  .desk-plant {
    display: none;
  }
}
@media (max-width: 560px) {
  .doom-room {
    --d: 9px;
    padding-top: 22px;
  }
  .doom-wall {
    padding: 22px 16px 50px;
  }
  .doom-sign {
    padding: 14px 22px 12px;
    margin-bottom: 36px;
  }
  .doom-sign > span {
    letter-spacing: 0.25em;
  }
  .doom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .doom-figure {
    height: 100px;
  }
  .doom-slot:nth-child(odd) {
    margin-top: 0;
  }
  .gfig-figure {
    width: 170px;
    height: 170px;
  }
  .gfig-case {
    width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .doom-stage,
  .doom-figure,
  .game-case {
    transition: none;
  }
  .doom-slot,
  .doom-slot.fresh,
  .doom-figure.fresh,
  .fig3d,
  .doom-sign h3 {
    animation: none;
  }
}

/* ---------- Account & subscription ---------- */
.membership-page { max-width: 1150px; margin: 65px auto; padding: 0 26px; }
.membership-page h1 { font: 500 clamp(44px, 7vw, 80px)/1.08 var(--serif); margin: 22px 0; }
.membership-page h1 em { color: var(--accent); }
.membership-intro { max-width: 610px; color: var(--muted); line-height: 1.8; font-size: 16px; }
.membership-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; margin-top: 42px; align-items: start; }
.membership-card { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.membership-card h2 { font: 500 29px var(--serif); }
.membership-card p, .rating-panel p { color: var(--muted); line-height: 1.75; }
.membership-card label { display: grid; gap: 10px; margin: 22px 0; }
.membership-card input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 13px; }
.membership-actions, .rating-stars { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.payment-placeholder { padding: 24px; border: 1px dashed var(--muted); margin: 28px 0; }
button:disabled { cursor: default; opacity: .55; }
.rating-panel { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0; }
.rating-stars button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.membership-page [hidden] { display: none; }
.header > a.outline-button { text-decoration: none; text-align: center; }
@media (max-width: 700px) { .membership-grid { grid-template-columns: 1fr; } .membership-card { padding: 22px; } .membership-page { margin-top: 35px; } .header { flex-wrap: wrap; gap: 15px; } }
