/* The turn panel uses weathered metal and parchment, matching the zombie board. */
.tray {
  background: #37373d;
  border-color: #a98758;
  box-shadow: 0 8px 24px #17151e70;
}
.stage.wide .cat-panel {
  filter: drop-shadow(0 12px 16px #14121b66);
}
.stage.wide .turn,
.turn {
  background: linear-gradient(135deg, #7b8b7480, #303d3999);
  color: #fffaf0;
  border: 1px solid #ffffff45;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 #ffffff35,
    0 4px 12px #100d1e30;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tray .hint {
  color: #f7e9d0;
}
.tray .chip {
  background: linear-gradient(135deg, #9cae944d, #35473f99);
  color: #fffaf0;
  border: 1px solid #ffffff32;
  box-shadow: inset 0 1px 0 #ffffff22;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tray .chip.on {
  background: linear-gradient(135deg, #a9947770, #51483f99);
  box-shadow:
    0 0 0 2px var(--cc),
    inset 0 1px 0 #ffffff38;
}
.dice-btn,
.stage.wide .dice-btn {
  background: linear-gradient(135deg, #6b6460, #464449);
  box-shadow:
    0 0 0 4px #827361,
    inset 0 0 0 3px #a6957e;
}
@media (prefers-contrast: more) {
  .tray .hint,
  .tray .chip {
    color: #fff;
  }
}
.stage.wide .tray {
  background: transparent url("../assets/zombies-hud-panel-v1.webp") center / 100% 100% no-repeat;
  padding: 65px 34px 64px;
  width: 350px;
  filter: drop-shadow(0 12px 14px #17151e70);
}
.stage.wide .cat-panel {
  display: none;
}
.stage.wide .score {
  width: calc(100% - 32px);
  margin-inline: auto;
}
@media (max-height: 500px) and (min-width: 621px) {
  .stage.wide .tray {
    width: 300px;
    padding: 36px 28px 38px;
  }
}
.dice-btn,
.stage.wide .dice-btn {
  background: transparent url("../assets/zombies-dice-plate-v1.webp") center / 100% 100% no-repeat;
  box-shadow: none;
}
#accessoryChoice {
  flex-wrap: wrap;
  max-width: 100%;
}
#accessoryChoice button {
  flex: 0 0 auto;
  max-width: 100%;
}
/* The opening illustration is decorative and keeps the play controls in normal flow. */
.menu-shell[data-view="home"] {
  width: min(850px, 100%);
}
.menu-shell[data-view="home"] .menu-brand img {
  width: min(630px, 48vh, 90vw);
}
.menu-shell[data-view="home"] .menu-body {
  width: 100%;
  box-sizing: border-box;
}
.menu-shell[data-view="home"] #menuHome {
  display: block;
  flex: none;
  width: min(760px, 94vw);
  height: min(28vh, 250px);
}
.zombies-menu-group {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.menu-shell[data-view="home"] .menu-tagline {
  margin: 4px 0 12px;
}
@media (max-height: 650px) {
  .menu-shell[data-view="home"] #menuHome {
    height: min(22vh, 140px);
  }
  .menu-shell[data-view="home"] .menu-brand img {
    width: min(300px, 29vh, 70vw);
  }
}
@media (max-height: 470px) and (orientation: landscape) and (min-width: 701px) {
  .menu-shell[data-view="home"] {
    width: min(780px, 100%);
  }
  .menu-shell[data-view="home"] .menu-brand {
    width: 48%;
  }
  .menu-shell[data-view="home"] .menu-brand img {
    width: min(260px, 85%);
  }
  .menu-shell[data-view="home"] .menu-body {
    width: 52%;
    min-width: 0;
  }
  .menu-shell[data-view="home"] .menu-play {
    width: 100%;
    max-width: 100%;
  }
  .menu-shell[data-view="home"] #menuHome {
    display: none;
  }
}
/* Independent opening layers are decorative and never intercept input. */
.zombies-menu-scene,
.zombies-menu-hands {
  display: none;
  position: fixed;
  inset: -2%;
  pointer-events: none;
}
.menu-screen:has(.menu-shell[data-view="home"]) .zombies-menu-scene,
.menu-screen:has(.menu-shell[data-view="home"]) .zombies-menu-hands {
  display: block;
}
.zombies-menu-scene {
  z-index: 0;
  background: url("../assets/zombies-menu-scene-v3.webp") center / cover no-repeat;
  transform: translate(calc(var(--menu-x, 0px) * -0.25), calc(var(--menu-y, 0px) * -0.25));
}
.zombies-menu-hands {
  z-index: 2;
  transform: translate(var(--menu-x, 0px), var(--menu-y, 0px));
}
.zombies-menu-hands::before,
.zombies-menu-hands::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: min(50%, 55vh, 45vw);
  height: min(100%, 80vw);
  background-image: url("../assets/zombies-menu-hands-v1.webp");
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.zombies-menu-hands::before {
  left: 0;
  background-position: left bottom;
}
.zombies-menu-hands::after {
  right: 0;
  background-position: right bottom;
}
.menu-screen .menu-shell {
  z-index: 1;
}
.menu-shell[data-view="home"] #menuHome {
  width: min(1040px, 96vw);
  height: min(41vh, 370px);
}
.menu-shell[data-view="home"] .zombies-menu-group {
  transform: translate(calc(var(--menu-x, 0px) * 0.35), calc(var(--menu-y, 0px) * 0.35));
}
@media (max-width: 700px) {
  .zombies-menu-hands {
    opacity: 0.85;
  }
  .zombies-menu-hands::before,
  .zombies-menu-hands::after {
    height: min(100%, 55vw);
  }
  .menu-shell[data-view="home"] #menuHome {
    height: min(32vh, 270px);
  }
}
@media (max-height: 650px) {
  .menu-shell[data-view="home"] #menuHome {
    height: min(22vh, 140px);
  }
}
@media (max-height: 470px) and (orientation: landscape) and (min-width: 701px) {
  .menu-shell[data-view="home"] #menuHome {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zombies-menu-scene,
  .zombies-menu-hands,
  .menu-shell[data-view="home"] .zombies-menu-group {
    transform: none;
  }
}
/* Victory retains its color coding while matching the warm zombie-town materials. */
#win .card {
  --ink: #392b25;
  --soft: #67554b;
  background: radial-gradient(
      ellipse 120% 46% at 50% 0%,
      color-mix(in srgb, var(--cc) 22%, #e2c49a),
      transparent 100%
    ),
    #f3e7d3;
  box-shadow:
    0 10px 0 #71574a,
    0 30px 70px #1c111cb0,
    inset 0 0 0 3px #af875d;
}
#win .rank li {
  background: #fff7e9;
}
#win .win-medal {
  box-shadow:
    0 0 0 7px var(--cc),
    0 0 0 11px #e5d4b9,
    0 10px 0 11px #6a4940,
    0 18px 28px #20151250;
}
/* End of css/zombies-hud.css */
