/* Six finish improvements, scoped to the reversible haunted direction. */
html[data-art-direction='haunted'] .bo .boVolume {
  display: inline;
}
html[data-art-direction='haunted'] .bo .boLine {
  stroke-width: 1.5;
  opacity: 0.64;
}
html[data-art-direction='haunted'] .bo .boArm {
  fill: var(--bo-material, var(--b2));
  stroke-width: 1.8;
}
html[data-art-direction='haunted'] .bo .boCore {
  opacity: 0.74;
}
html[data-art-direction='haunted'] .bo .boShade {
  opacity: 0.65;
}
html[data-art-direction='haunted'] .bo .boSheen {
  opacity: 0.2;
  filter: blur(1.3px);
}
html[data-art-direction='haunted'] .bo .boPupil {
  filter: drop-shadow(0 -1px 0 #ffffff52);
}
html[data-art-direction='haunted'] .bo .boRimSoft {
  filter: blur(1px);
}

/* The illustrated frame lives outside the grid and never handles input. */
html[data-art-direction='haunted'] .boardWrap {
  box-shadow: 0 12px 28px #10091e77;
}
html[data-art-direction='haunted'] .boardWrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: 3;
  pointer-events: none;
  border: 18px solid transparent;
  border-image: url('../art/haunted-board-frame.webp') 150 / 18px stretch;
}

/* Same carved material for control sockets; icons carry a single readable shape. */
html[data-art-direction='haunted'] .btn {
  border-color: #d6c3ec55;
  box-shadow:
    inset 0 1px 0 #e4ccf442,
    inset 0 -3px 0 #261b3e88,
    0 3px 0 #130d2380;
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    box-shadow 0.12s ease;
}
html[data-art-direction='haunted'] .btn.gold {
  box-shadow:
    inset 0 2px 0 #fff4cf80,
    inset 0 -3px 0 #b8833966,
    0 3px 0 #452b3880;
}
html[data-art-direction='haunted'] .btn.round {
  background: linear-gradient(#584568, #33263f);
  border: 1px solid #c4a9df66;
  box-shadow:
    inset 0 1px 0 #e5cef43b,
    inset 0 -3px 0 #1b122c80,
    0 3px 5px #100a224d;
}
html[data-art-direction='haunted'] .btn.round.teal {
  background: linear-gradient(#a2e2c6, #67b5a5);
  border-color: #d8f8e3;
  box-shadow:
    inset 0 2px 0 #eaffed77,
    inset 0 -3px 0 #357b7066,
    0 3px 5px #100a224d;
}
html[data-art-direction='haunted'] .btn:active {
  box-shadow: inset 0 2px 4px #140c284d;
}
html[data-art-direction='haunted'] .tool .btn .artIcon {
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 2px 1px #150c2733);
}
html[data-art-direction='haunted'] .tool .btn.off {
  opacity: 0.58;
}
html[data-art-direction='haunted'] .tool .btn.off .artIcon {
  filter: grayscale(0.8);
  opacity: 0.86;
}
html[data-art-direction='haunted'] .tool .lbl {
  color: #f3e9fb;
}
html[data-art-direction='haunted'] .dockBar {
  background: linear-gradient(#3d304be8, #2b2038e8);
  box-shadow:
    inset 0 1px 0 #d2bddf38,
    0 6px 16px #120b2438;
}
html[data-art-direction='haunted'] .home .door .btn {
  border: 0;
  box-shadow: none;
  background: none;
}

/* Actual glass and an illustrated frame surround the existing live outfit preview. */
html[data-art-direction='haunted'] .mirror {
  --mirror-width: min(58vw, 22vh, 200px);
  isolation: isolate;
}
html[data-art-direction='haunted'] .mirror::before {
  content: '';
  display: block;
  width: calc(var(--mirror-width) * 0.74);
  height: auto;
  aspect-ratio: 0.66;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #afc2e13b, #8d8cba0d 44%, #9ce7d426 67%, #66528445);
  box-shadow:
    inset 5px 4px 16px #d4e7ff20,
    inset -4px -6px 18px #1a103555;
}
html[data-art-direction='haunted'] .mirror::after {
  content: '';
  display: block;
  width: var(--mirror-width);
  height: auto;
  aspect-ratio: 2 / 3;
  z-index: 3;
  border-radius: 0;
  background: url('../art/haunted-mirror-frame.webp') center / contain no-repeat;
  animation: none;
  box-shadow: none;
  pointer-events: none;
}
html[data-art-direction='haunted'] .mirrorStage {
  z-index: 2;
}
html[data-art-direction='haunted'] .mirrorStage::after {
  content: '';
  position: absolute;
  inset: -30% -12%;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, #eefcff16 45%, transparent 51%);
  opacity: 0.5;
}
@media (min-aspect-ratio: 6/5) {
  html[data-art-direction='haunted'] .shop .mirror {
    --mirror-width: min(30vw, 59vh, 350px);
  }
}
@media (max-width: 520px) {
  html[data-art-direction='haunted'] .shop .tab {
    padding: 9px;
    font-size: 0.82rem;
    min-height: 42px;
  }
}
@media (min-width: 375px) and (max-width: 520px) {
  html[data-art-direction='haunted'] .shop .tabs {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* A larger character, deliberate reward plaques and a short readable reveal. */
html[data-art-direction='haunted'] #modal > .panel.victory {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 28%, #55406d, #30213f 70%);
  border: 1px solid #c2a8d27a;
  box-shadow:
    inset 0 0 0 4px #2a1b3c,
    inset 0 0 0 5px #b9945b52,
    0 20px 60px #08041388;
}
html[data-art-direction='haunted'] .victory .winTitle {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}
html[data-art-direction='haunted'] .victory .modalBo.big {
  height: 208px;
  width: 100%;
  align-items: center;
  margin: 0;
}
html[data-art-direction='haunted'] .victory .modalBo.big .bo {
  --bo: 230px;
}
html[data-art-direction='haunted'] .victory .modalBo::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #d6c0ff29, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
html[data-art-direction='haunted'] .victory .stars {
  margin: -8px 0 0;
  gap: 10px;
}
html[data-art-direction='haunted'] .victory .stars span {
  width: 54px;
  height: 54px;
}
html[data-art-direction='haunted'] .victory .stars span:nth-child(2) {
  width: 64px;
  height: 64px;
  margin-top: -8px;
}
html[data-art-direction='haunted'] .victory .stars span.on.in {
  filter: drop-shadow(0 3px 3px #28133377);
}
html[data-art-direction='haunted'] .victory .winSub {
  margin: 0;
  line-height: 1.25;
}
html[data-art-direction='haunted'] .victory .winMeta {
  display: flex;
  gap: 10px;
  margin: 4px 0;
  width: min(100%, 310px);
}
html[data-art-direction='haunted'] .victory .winMeta > div {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: #251a34a6;
  box-shadow:
    inset 0 1px 0 #dac1f02e,
    inset 0 -2px 0 #140c242e;
  animation: rewardReveal 0.3s ease-out 0.9s both;
}
html[data-art-direction='haunted'] .victory .winMeta > div:has(.coins) {
  background: #5a4438;
  box-shadow: inset 0 0 0 1px #e0b97469;
  animation-delay: 1.05s;
}
html[data-art-direction='haunted'] .victory .winMeta small {
  color: #e5d8ed;
  margin-bottom: 3px;
}
html[data-art-direction='haunted'] .victory .winMeta b {
  font-size: 1.6rem;
}
html[data-art-direction='haunted'] .victory .winExtra {
  margin: 0;
}
html[data-art-direction='haunted'] .victory .winLine.new {
  box-shadow: inset 0 0 0 1px #e0b97480;
  background: #392642;
  animation-delay: 1.2s;
}
html[data-art-direction='haunted'] .victory > .row {
  margin: 4px 0 0;
  width: 100%;
  justify-content: center;
}
html[data-art-direction='haunted'] .victory.settled .winSub,
html[data-art-direction='haunted'] .victory.settled .winMeta > div,
html[data-art-direction='haunted'] .victory.settled .winLine {
  animation: none;
}
@keyframes rewardReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-height: 700px) {
  html[data-art-direction='haunted'] #modal > .panel.victory {
    gap: 5px;
    padding: 16px;
  }
  html[data-art-direction='haunted'] .victory .winTitle {
    font-size: 1.65rem;
  }
  html[data-art-direction='haunted'] .victory .modalBo.big {
    height: 130px;
  }
  html[data-art-direction='haunted'] .victory .modalBo.big .bo {
    --bo: 170px;
  }
  html[data-art-direction='haunted'] .victory .stars span {
    width: 40px;
    height: 40px;
  }
  html[data-art-direction='haunted'] .victory .stars span:nth-child(2) {
    width: 48px;
    height: 48px;
  }
  html[data-art-direction='haunted'] .victory .winMeta > div {
    padding: 6px 12px;
  }
}
@media (max-height: 560px) and (min-aspect-ratio: 6/5) {
  html[data-art-direction='haunted'] #modal > .panel.victory {
    width: min(720px, 100%);
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.6fr);
    grid-template-areas: 'bo title' 'bo stars' 'bo sub' 'bo meta' 'bo extra' 'bo row';
    column-gap: 16px;
  }
  html[data-art-direction='haunted'] .victory .modalBo.big {
    height: 230px;
  }
  html[data-art-direction='haunted'] .victory .modalBo.big .bo {
    --bo: 210px;
  }
  html[data-art-direction='haunted'] .victory .winMeta {
    width: 100%;
    margin: 0;
  }
  html[data-art-direction='haunted'] .victory .stars {
    margin: 0;
    align-items: center;
  }
  html[data-art-direction='haunted'] .victory .stars span:nth-child(2) {
    margin-top: 0;
  }
}

/* Gentle lamp breathing changes opacity only, leaving the camera and clear center still. */
html[data-art-direction='haunted'] .scene.art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(ellipse 12% 24% at 8% 28%, #a9e6be33, transparent 75%),
    radial-gradient(ellipse 12% 24% at 92% 28%, #f5d9a52e, transparent 75%);
  animation: lampBreath 6.8s ease-in-out infinite alternate;
}
@keyframes lampBreath {
  from {
    opacity: 0.22;
  }
  to {
    opacity: 0.58;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-art-direction='haunted'] .scene.art::after,
  html[data-art-direction='haunted'] .victory *,
  html[data-art-direction='haunted'] .logoShine {
    animation: none !important;
    transition: none !important;
  }
}
html[data-art-direction='haunted'] body.calm .scene.art::after {
  animation: none !important;
  opacity: 0.3;
}
/* End of src/styles/haunted-polish.css */

/* End of dist-static/assets/haunted-polish-BFKtGyoh.css */
