.play-gallery {
  width: min(calc(100% - 2 * var(--gutter)), 64rem);
  padding-bottom: clamp(1.7rem, 5vw, 4.75rem);
}
.play-gallery .crumb { margin: 0; padding-block: 1rem; }
.gallery-topline {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-music[hidden] { display: none; }
.gallery-music { flex: none; }
.gallery-music-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 46px;
  padding-inline: .55rem;
  border: 1px solid #d5c0ae;
  border-radius: .35rem;
  color: #71534d;
  background: #fcf5ea;
  cursor: pointer;
}
.gallery-music-trigger svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.gallery-music-indicator {
  min-inline-size: 2.1em;
  text-align: center;
  font: 700 .8125rem/1 var(--sans);
}
.gallery-music:not([data-sound="on"]) .bgm-note-on,
.gallery-music[data-sound="on"] .bgm-note-off {
  display: none;
}
.gallery-music-trigger[aria-pressed="true"] { color: #723b4e; border-color: #b78b85; background: #f4e8d9; }
.gallery-music-trigger:hover { color: #6b3f4e; background: #f4e8d9; }
.gallery-music-trigger:focus-visible { outline: 2px solid #8a5063; outline-offset: 2px; }
.gallery-music-credits { margin-top: 1.1rem; color: #685451; font-size: .875rem; }
.gallery-music-credits summary { display: list-item; width: fit-content; padding-block: .4rem; color: #6d605a; font-size: .8125rem; cursor: pointer; }
.gallery-music-credits ul { margin: .4rem 0 0; padding-inline-start: 1.3rem; }
.gallery-music-credits a { text-underline-offset: .2em; }
.catalog-marquee {
  position: sticky;
  top: var(--site-top-inset, 0px);
  z-index: 3;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(5rem, 10vw, 7.5rem);
  background: #f8eadb var(--gallery-room) center 59% / cover;
  border: 1px solid #bb9576;
  border-radius: .35rem;
  box-shadow: 0 2px 9px #482b2426;
}
.catalog-marquee::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f8e9d85e, #fcf0deed 32%, #fff5e6ed 51%, #faecd978 72%, #f3dbc21c);
  box-shadow: inset 0 0 0 3px #fff2d333;
}
.catalog-marquee-toys {
  position: absolute;
  left: clamp(.5rem, 3%, 1.75rem);
  bottom: .5rem;
  width: min(24%, 13rem);
  height: calc(100% - 1rem);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 2px 2px #51351e35);
  pointer-events: none;
}
.gallery-marque-lockup {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.5rem);
  justify-self: center;
  width: min(55%, 27rem);
}
.gallery-marque-lockup::before, .gallery-marque-lockup::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #ac7856);
}
.gallery-marque-lockup::after { transform: rotate(180deg); }
.gallery-marque-lockup h1 { margin: 0; width: clamp(7.85rem, 22vw, 12.75rem); line-height: 1; }
.gallery-marque-lockup img { display: block; width: 100%; height: auto; }
.catalog-guide-seat {
  position: absolute;
  inset: 2px 5% 2px auto;
  width: clamp(5.2rem, 11vw, 8rem);
  display: grid;
  place-items: end center;
  pointer-events: none;
}
.gallery-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.35rem, 3vw, 2.3rem);
  list-style: none;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
}
.gallery-card {
  --gallery-ink: #59283e;
  --gallery-button: #713449;
  --gallery-paper: #f8eddd;
  border: 1px solid #cfb59a;
  border-radius: .4rem;
  background: linear-gradient(125deg, #fffcf5 43%, var(--gallery-paper));
  box-shadow: 0 .45rem 1.5rem #4d2b2310;
}
.gallery-afternoon {
  --gallery-ink: #48344b;
  --gallery-button: #594458;
  --gallery-paper: #f3eae7;
}
.gallery-link {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
  color: #473633;
  border-radius: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  scroll-margin-top: calc(8rem + var(--site-top-inset, 0px));
}
.gallery-link:focus-visible { outline: 3px solid #925b37; outline-offset: 4px; }
.gallery-art {
  position: relative;
  overflow: hidden;
  border-radius: .33rem 0 0 .33rem;
  min-height: 14rem;
  background: #443345;
}
.gallery-art::after {
  content: "";
  position: absolute;
  inset: .43rem;
  border: 1px solid #f5dcb688;
  pointer-events: none;
}
.gallery-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 26%; }
.gallery-oracle {
  --gallery-ink: #5e2d53;
  --gallery-button: #673b5d;
  --gallery-paper: #f2e3ee;
  border-color: #c3a9a7;
}
.gallery-oracle .gallery-art img { object-position: center 48%; }
.gallery-bell {
  --gallery-ink: #26494c;
  --gallery-button: #254c4e;
  --gallery-paper: #e8eee3;
  border-color: #bbac84;
}
.gallery-bell .gallery-art img { object-position: 75% 30%; }
.gallery-card.gallery-casino {
  --gallery-ink: #ffe3ae;
  border-color: #b79b6b;
  background: radial-gradient(ellipse at 100% 0%, #275552 0%, transparent 58%), #112d38;
}
.gallery-casino .gallery-link { color: #fff7e7; }
.gallery-casino .gallery-link:focus-visible { outline-color: #775018; }
.gallery-casino .gallery-art img { object-position: center 56%; }
.gallery-casino .gallery-detail { color: #dedace; }
.gallery-casino .gallery-action {
  background: #f3dbac;
  color: #173a3e;
  border-color: #b89b6c;
}
@media (hover: hover) {
  .gallery-card.gallery-casino:hover .gallery-action { background: #fff1cb; }
}
.gallery-copy { padding: clamp(1.4rem, 3.7vw, 2.9rem); align-self: center; }
.gallery-genre {
  display: flex; align-items: center; gap: .65rem;
  margin: 0 0 .48rem;
  color: var(--gallery-ink);
  font: 600 .84rem/1.5 var(--sans);
  letter-spacing: .08em;
}
.gallery-genre::before {
  content: "";
  width: 1.75rem; height: .42rem;
  background: radial-gradient(ellipse .15rem .18rem at calc(100% - .15rem) 50%, #b1894f 95%, transparent),
    linear-gradient(#b1894f, #b1894f) left center / calc(100% - .26rem) 1px no-repeat;
}
.gallery-copy h2 {
  margin: 0 0 .7rem;
  color: var(--gallery-ink);
  font: 600 clamp(1.45rem, 2.75vw, 2.125rem)/1.46 var(--serif);
  letter-spacing: .035em;
  text-wrap: balance;
}
.gallery-description { margin: 0; font: 400 1rem/1.78 var(--serif); }
.gallery-detail { margin: .6rem 0 0; font: 500 .875rem/1.7 var(--sans); color: #685451; }
.gallery-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  min-height: 2.75rem; margin-top: 1.15rem; padding: .5rem 1.05rem;
  background: var(--gallery-button); color: #fff7e9; border: 1px solid #623344; border-radius: .19rem;
  font: 600 .95rem/1.4 var(--serif); letter-spacing: .06em;
}
.gallery-action i { width: .47rem; height: .47rem; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.gallery-link:active { filter: brightness(.86); }
@media (hover: hover) {
  .gallery-card:hover { border-color: #ae805c; }
  .gallery-card:hover .gallery-action { background: #492b3c; }
}
@media (max-width: 680px) {
  .play-gallery { width: calc(100% - 2 * clamp(.9rem, 4vw, 1.45rem)); }
  .play-gallery .crumb { padding-block: .65rem; }
  .catalog-marquee { min-height: 4.95rem; }
  .catalog-guide-seat { right: 2.5%; }
  .gallery-marque-lockup { width: min(45%, 12rem); margin-right: 3%; }
  .gallery-link { display: block; scroll-margin-top: calc(6rem + var(--site-top-inset, 0px)); }
  .gallery-art { min-height: 0; aspect-ratio: 2.22; border-radius: .33rem .33rem 0 0; }
  .gallery-copy { padding: 1.15rem clamp(1.05rem, 5vw, 1.65rem) 1.25rem; }
  .gallery-copy h2 { font-size: clamp(1.28rem, 5.9vw, 1.85rem); margin-bottom: .5rem; }
  .gallery-description { line-height: 1.75; }
  .gallery-genre { margin-bottom: .33rem; }
  .gallery-action { margin-top: .78rem; }
}
@media (max-width: 370px) {
  .gallery-marque-lockup { margin-right: 0; }
}
@media (max-height: 420px) {
  .catalog-marquee { min-height: 3.2rem; }
  .gallery-marque-lockup h1 { width: 7.5rem; }
  .catalog-guide-seat .catalog-guide { width: 3rem; }
  .gallery-link { scroll-margin-top: calc(4rem + var(--site-top-inset, 0px)); }
}

.gallery-work { --gallery-ink:#5c352d; --gallery-button:#783f3c; --gallery-paper:#f4e7d4; }
.gallery-work .gallery-art img { object-position: center 54%; }
.star-foyer .star-foyer-links { flex-wrap:wrap; }

.gallery-style-duel {
  --gallery-ink: #612e47;
  --gallery-button: #773c55;
  --gallery-paper: #f5e4db;
}
.gallery-style-duel .gallery-art {
  isolation: isolate;
  background: #a87268;
}
.gallery-style-duel .gallery-art > img:first-child {
  object-position: 50% 40%;
}
.gallery-style-duel .gallery-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #4729384d, transparent 24% 76%, #4729384d);
}
.gallery-style-duel .gallery-art .duel-cover-left,
.gallery-style-duel .gallery-art .duel-cover-right {
  z-index: 2;
  inset: 7% auto auto 7%;
  width: 47%;
  height: 152%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 .15rem .16rem #55352e44);
}
.gallery-style-duel .gallery-art .duel-cover-right {
  z-index: 1;
  inset: 10% 4% auto auto;
}
.gallery-style-duel .gallery-art::after {
  z-index: 3;
  border-color: #fff0c7aa;
}
