.ceremony-scene {
  min-height: 100svh;
  padding: 62px 14px 78px;
  background: linear-gradient(#efa052 0 18%, #71ad49 18%);
  color: #44271f;
}

.ceremony-scene__title {
  width: min(100%, 760px);
  margin: 0 auto 22px;
  color: #fff5d6;
  font-size: clamp(1.75rem, 8vw, 2.6rem);
  letter-spacing: 0;
  text-align: center;
  text-shadow: 3px 3px #874429;
}

.ceremony-scene__frame,
.ceremony-scene__dialogue,
.ceremony-scene__journal {
  width: min(100%, 760px);
  margin-inline: auto;
}

.ceremony-scene__frame {
  padding: 9px;
  border: 8px solid #6f3d29;
  outline: 4px solid #c07942;
  background: #a95f38;
  box-shadow: 8px 9px 0 rgb(52 73 36 / 35%);
}

.ceremony-scene__stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(48 103 53 / 86%), transparent 18% 82%, rgb(48 103 53 / 86%)),
    linear-gradient(transparent 0 24%, #a98b59 24% 100%);
  image-rendering: pixelated;
}

.ceremony-scene__stage::before {
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  background: url("../../../assets/stardew/scenes/spring-panorama.png") center bottom / cover no-repeat;
  content: "";
}

.ceremony-scene__stage::after {
  position: absolute;
  inset: 24% 15% 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgb(83 61 42 / 18%) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgb(83 61 42 / 18%) 22px 24px);
  content: "";
}

.ceremony-scene__arch {
  position: absolute;
  z-index: 2;
  top: 118px;
  left: 50%;
  width: 166px;
  height: 128px;
  border: 9px solid #f7d8e9;
  border-bottom: 0;
  box-shadow: inset 0 0 0 4px #a16b83, 0 0 0 4px #57372b;
  transform: translateX(-50%);
}

.ceremony-scene__arch::before {
  position: absolute;
  inset: -15px -18px auto;
  height: 28px;
  background: repeating-linear-gradient(90deg, #f4a8c0 0 16px, #fff0f5 16px 28px, #6da649 28px 42px);
  content: "";
}

.ceremony-scene__couple {
  position: absolute;
  z-index: 4;
  top: 174px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}

.ceremony-scene__character {
  width: 40px;
  height: 80px;
  object-fit: fill;
  image-rendering: pixelated;
  animation: ceremony-character-idle 1.8s steps(2, end) infinite;
}

.ceremony-scene__heart {
  margin: -72px -4px 0;
  color: #e05068;
  font-size: 1.2rem;
  text-shadow: 2px 2px #fff2d8;
  animation: ceremony-heart 1.5s steps(2, end) infinite;
}

.ceremony-scene__mayor {
  position: absolute;
  z-index: 4;
  top: 188px;
  left: calc(50% + 96px);
}

.ceremony-scene__audience {
  position: absolute;
  z-index: 3;
  right: 14%;
  bottom: 28px;
  left: 14%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px 8px;
}

.ceremony-scene__guest {
  justify-self: center;
  width: 19px;
  height: 34px;
  border: 3px solid #4b2e27;
  border-radius: 6px 6px 2px 2px;
  background: #b4464d;
  box-shadow: inset 0 9px #f0b36a;
}

.ceremony-scene__guest[data-guest="2"] { background: #4386a3; box-shadow: inset 0 9px #ddb76c; }
.ceremony-scene__guest[data-guest="3"] { background: #66549b; box-shadow: inset 0 9px #d88966; }
.ceremony-scene__guest[data-guest="4"] { background: #477c4d; box-shadow: inset 0 9px #efc590; }
.ceremony-scene__guest[data-guest="5"] { background: #c56c34; box-shadow: inset 0 9px #8f4a29; }
.ceremony-scene__guest[data-guest="6"] { background: #2c547c; box-shadow: inset 0 9px #e1a777; }

.ceremony-scene__dialogue {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  margin-top: 24px;
  padding: 16px;
  border: 6px solid #6f3d29;
  background: #fff0bd;
  gap: 14px;
  box-shadow: inset 0 0 0 3px #d49a56;
}

.ceremony-scene__host-sprite {
  width: 48px;
  height: 96px;
  object-fit: fill;
  image-rendering: pixelated;
}

.ceremony-scene__dialogue-copy cite { color: #a33d4d; font-style: normal; font-weight: 800; }
.ceremony-scene__dialogue-copy p { margin: 7px 0 0; line-height: 1.7; }

.ceremony-scene__journal {
  display: grid;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.ceremony-scene__journal-entry {
  display: grid;
  grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
  padding: 14px 16px;
  border-left: 6px solid #d05c6f;
  background: rgb(255 239 188 / 88%);
  gap: 12px;
}

.ceremony-scene__journal-entry h3,
.ceremony-scene__journal-entry p { margin: 0; line-height: 1.55; }
.ceremony-scene__journal-entry h3 { color: #9e3c4b; font-size: 1rem; }

@keyframes ceremony-character-idle { 50% { transform: translateY(-2px); } }
@keyframes ceremony-heart { 50% { transform: translateY(-5px); } }

@media (max-width: 360px) {
  .ceremony-scene__audience { right: 8%; left: 8%; }
  .ceremony-scene__journal-entry { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ceremony-scene__character,
  .ceremony-scene__heart { animation: none; }
}
