/* AGENT_TARGET: sunrise-terrace-styles — imagegen-backed morning destination */

.sunrise-modal {
  position: fixed;
  inset: 0;
  z-index: 10170;
  display: grid;
  place-items: center;
  padding: 16px;
}

.sunrise-modal[hidden] {
  display: none;
}

.sunrise-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(80, 65, 42, 0.58);
  backdrop-filter: blur(4px);
}

.sunrise-shell {
  position: relative;
  display: block;
  width: min(1120px, calc(100vw - 24px));
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 14px;
  border: 3px solid #f0b44a;
  border-radius: 12px;
  background: #fffdf7;
  color: #3e3442;
  box-shadow: 0 24px 70px rgba(80, 65, 42, 0.32);
}

.sunrise-heading,
.sunrise-stage,
.sunrise-tray {
  margin-bottom: 10px;
}

.sunrise-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid rgba(62, 52, 66, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #80511f;
  font: 900 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.sunrise-heading {
  width: min(720px, calc(100% - 56px));
  padding: 2px 4px 0;
}

.sunrise-heading span,
.sunrise-card small {
  display: block;
  color: #80511f;
  font:
    900 12px/1.2 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sunrise-heading h2 {
  margin: 3px 0;
  color: #3e3442;
  font:
    900 25px/1.08 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

.sunrise-heading p,
.sunrise-card span,
.sunrise-finale span {
  margin: 0;
  color: #675f63;
  font: 800 13px/1.34 "Trebuchet MS", Arial, sans-serif;
}

.sunrise-ready-cue {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 7px;
  padding: 8px 11px;
  border: 2px solid rgba(240, 180, 74, 0.34);
  border-radius: 8px;
  background: #fff8df;
  color: #5f4327;
}

.sunrise-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #f4dca9;
  box-shadow: 0 14px 34px rgba(80, 65, 42, 0.2);
}

.sunrise-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.sunrise-arch-target {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(42px, 6.5vw, 72px);
  height: clamp(42px, 6.5vw, 72px);
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.8);
  color: #3e3442;
  font:
    900 18px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  box-shadow: 0 10px 22px rgba(80, 65, 42, 0.22);
  cursor: pointer;
}

.sunrise-arch-target.current {
  border-color: #ffd97e;
  background: #fff1ad;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.55),
    0 0 0 10px rgba(255, 217, 126, 0.28),
    0 12px 24px rgba(80, 65, 42, 0.22);
}

.sunrise-arch-target.lit {
  border-color: #baf4d2;
  background: #e7ffe9;
  color: #23633a;
}

.sunrise-arch-target:disabled {
  opacity: 0.58;
  cursor: default;
}

.sunrise-tray {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sunrise-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(62, 52, 66, 0.14);
  border-radius: 8px;
  background: #fff;
}

.sunrise-card.current {
  border-color: #f0b44a;
  background: #fff8ea;
  box-shadow: 0 0 0 3px rgba(240, 180, 74, 0.16);
}

.sunrise-card.lit {
  background: #edf9f4;
}

.sunrise-card strong {
  color: #3e3442;
  font:
    900 14px/1.12 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}

.sunrise-finale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  border: 2px solid rgba(62, 52, 66, 0.13);
  border-radius: 8px;
  background: #fff8ea;
}

.sunrise-finale strong {
  color: #80511f;
  font:
    900 18px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}

.sunrise-finale button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 128px;
  min-height: 46px;
  border: 2px solid rgba(62, 52, 66, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #3e3442;
  font:
    900 12px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  cursor: pointer;
}

.sunrise-close:focus-visible,
.sunrise-arch-target:focus-visible,
.sunrise-finale button:focus-visible {
  outline: 3px solid rgba(128, 81, 31, 0.72);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .sunrise-modal {
    align-items: start;
    padding: 8px;
  }
  .sunrise-shell {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
    border-radius: 10px;
  }
  .sunrise-heading {
    width: calc(100% - 56px);
  }
  .sunrise-heading h2 {
    font-size: 21px;
  }
  .sunrise-arch-target {
    width: 44px;
    height: 44px;
    border-width: 2px;
    font-size: 14px;
  }
  .sunrise-tray,
  .sunrise-finale {
    grid-template-columns: 1fr;
  }
  .sunrise-finale button {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
  }
}
