/* The lobby sign sits directly beneath the masthead in every season. */
.foyer-welcome {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: clamp(7.4rem, 18vw, 11rem);
  margin-block: .5rem .8rem;
  padding: .45rem clamp(.45rem, 2.3vw, 1.6rem);
  overflow: hidden;
  border: 1px solid #a9845d;
  border-radius: .45rem;
  background: #eacdaf var(--foyer-wall) center 69% / cover;
  box-shadow: 0 .22rem .65rem #58321d22;
}
.foyer-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#fff1dcca 0%,#ffeed8ab 35%,#fff1dd15 60%,transparent);
}
.foyer-welcome::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #fcdfacb5;
  border-radius: .25rem;
  pointer-events: none;
}
.foyer-sign {
  display: grid;
  justify-items: center;
  gap: .24rem;
  min-width: 0;
  z-index: 1;
}
.foyer-sign h1 {
  width: min(100%, 15rem);
  margin: 0;
  line-height: 1;
  color: #632d34;
}
.foyer-sign h1 img { width: 100%; height: auto; }
.foyer-sign .gallery-music-trigger {
  min-height: 44px;
  gap: .25rem;
  padding-inline: .5rem;
  background: #fff6e7ed;
  color: #613e40;
  border-color: #ad8a68;
}
.foyer-tableau {
  --actor: clamp(4.15rem, 19vw, 8.4rem);
  --die: clamp(.8rem, 3.2vw, 1.25rem);
  --beat: 5.6s;
  position: relative;
  justify-self: center;
  align-self: end;
  width: min(100%, calc(var(--actor) * 2.9));
  height: calc(var(--actor) + .65rem);
  margin-bottom: .1rem;
  pointer-events: none;
}
.foyer-player {
  position: absolute;
  bottom: 0;
  width: var(--actor);
  height: var(--actor);
  transform-origin: center 98%;
  filter: drop-shadow(0 2px 1px #51312555);
}
.foyer-adele { left: 0; --lean: 4deg; }
.foyer-leon { right: 0; --lean: -4deg; }
.foyer-player img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foyer-catch { opacity: 0; }
.foyer-die-path {
  position: absolute;
  width: var(--die);
  height: var(--die);
  left: calc(var(--actor) * .78);
  bottom: calc(var(--actor) * .54);
}
.foyer-die {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #846341;
  border-radius: 24%;
  background:
    radial-gradient(circle at 24% 24%, #653445 0 10%, transparent 13%),
    radial-gradient(circle at 76% 24%, #653445 0 10%, transparent 13%),
    radial-gradient(circle at 50% 50%, #653445 0 10%, transparent 13%),
    radial-gradient(circle at 24% 76%, #653445 0 10%, transparent 13%),
    radial-gradient(circle at 76% 76%, #653445 0 10%, transparent 13%),
    linear-gradient(135deg, #fffbee 35%, #edcd94);
  box-shadow: inset -1px -2px 1px #bd915b, 0 1px 2px #51241355;
  transform: rotate(-12deg);
}
@media (prefers-reduced-motion: no-preference) {
  .foyer-player { animation: foyer-toss var(--beat) ease-in-out infinite; }
  .foyer-rest { animation: foyer-rest-pose var(--beat) step-end infinite; }
  .foyer-catch { animation: foyer-catch-pose var(--beat) step-end infinite; }
  .foyer-leon, .foyer-leon img { animation-delay: -2.8s; }
  .foyer-die-path { animation: foyer-pass var(--beat) linear infinite; }
  .foyer-die { animation: foyer-arc var(--beat) ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .foyer-adele .foyer-catch { opacity: 1; }
  .foyer-adele .foyer-rest { opacity: 0; }
}
@keyframes foyer-toss {
  0%, 19%, 75%, 100% { transform: none; }
  10%, 83% { transform: scale(.99,.97) rotate(var(--lean)); }
  15% { transform: translateY(-4px) rotate(var(--lean)); }
}
@keyframes foyer-catch-pose { 0%, 20%, 80%, 100% { opacity: 1; } 25% { opacity: 0; } }
@keyframes foyer-rest-pose { 0%, 20%, 80%, 100% { opacity: 0; } 25% { opacity: 1; } }
@keyframes foyer-pass {
  0%, 13%, 83%, 100% { left: calc(var(--actor) * .78); }
  33%, 63% { left: calc(100% - var(--actor) * .78 - var(--die)); }
}
@keyframes foyer-arc {
  0%, 13% { transform: translateY(0) rotate(-12deg); }
  23% { transform: translateY(calc(var(--actor) * -.41)) rotate(165deg); }
  33%, 63% { transform: translateY(0) rotate(348deg); }
  73% { transform: translateY(calc(var(--actor) * -.41)) rotate(165deg); }
  83%, 100% { transform: translateY(0) rotate(-12deg); }
}
.star-foyer {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
  isolation: isolate;
  border: 1px solid #c3a884;
  border-radius: .45rem;
  background: #fbf1e2;
  color: #482c31;
  box-shadow: 0 .35rem 1.2rem #4d2e2318;
  margin-bottom: clamp(1.4rem, 4vw, 2.6rem);
}
.star-foyer-scene {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: .4rem 0 0 .4rem;
  overflow: hidden;
  background: #7c553d;
}
.star-foyer-scene .room-stage { width: 100%; height: 100%; border-bottom: 0; }
.star-foyer-fallback {
  position: absolute;
  left: 49%;
  bottom: 7%;
  transform: translateX(-50%);
  height: 66%;
  width: 37%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 .35rem .3rem #49291f77);
  pointer-events: none;
}
.star-foyer-fallback[hidden] { display: none; }
.star-foyer .room-stage::after {
  content: "";
  position: absolute;
  z-index: 102;
  inset: .4rem;
  border: 1px solid #fff1c981;
  border-radius: .16rem;
  box-shadow: 0 0 0 1px #65381830;
  pointer-events: none;
}
.star-foyer-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(145deg,#fff8ed,#f1e3ce);
  border-radius: 0 .4rem .4rem 0;
}
.star-foyer-title h2 {
  margin: 0;
  font: 650 clamp(1.6rem, 3.6vw, 2.3rem)/1.23 var(--serif);
  letter-spacing: .055em;
}
.star-foyer-title p {
  margin: .38rem 0 0;
  color: #744f4b;
  font: 650 clamp(.92rem, 1.8vw, 1.15rem)/1.5 var(--serif);
}
.star-foyer-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .7rem;
  flex-wrap: wrap;
  margin: .55rem 0 .8rem;
  border-bottom: 1px solid #d5bda7;
}
.star-foyer-profile a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  color: #684652;
  font-size: .89rem;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.star-foyer-purse {
  color: #5a3836;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.star-foyer-purse b { font-size: 1.09rem; }
.star-foyer-room,.star-foyer-links a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #d7bda5;
  border-radius: .24rem;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
  padding: .35rem .55rem;
}
.star-foyer-room { color: #fff6e6; background: #663f4d; border-color: #663f4d; }
.star-foyer-room:hover { background: #794d5c; }
.star-foyer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max(44px, 3em);
  align-content: start;
  gap: .35rem;
  margin-top: .5rem;
  font-size: .82rem;
}
.star-foyer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: .125em .4em;
  color: #593841;
  background: #fff8ed;
}
.star-foyer-links a:hover { background: #f5e7d7; }
.star-foyer a:focus-visible { outline: 2px solid #9b5c68; outline-offset: 2px; }
.star-foyer-scene:focus-visible { z-index: 1; }
@media (max-width: 660px) {
  .star-foyer { grid-template-columns: minmax(0, 1fr); }
  .star-foyer-scene { border-radius: .4rem .4rem 0 0; }
  .star-foyer-scene .room-stage { height: auto; aspect-ratio: 3 / 2; }
  .star-foyer-details { border-radius: 0 0 .4rem .4rem; padding: .8rem .9rem .9rem; }
  .star-foyer-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .16rem .7rem; }
  .star-foyer-title p { margin: 0; }
  .star-foyer-profile { margin-top: .2rem; }
}
