.private-evening-window {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0 0 17px;
  padding: 15px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  overflow: hidden;
  border: 2px solid #17282e;
  color: #fff9e7;
  background: #17282e;
  box-shadow: 7px 7px 0 #9a6b52;
}

.private-evening-window::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgb(255 240 177 / 32%);
  content: "";
  pointer-events: none;
}

.private-evening-window > * { position: relative; z-index: 1; }

.private-evening-window-light {
  position: relative;
  display: grid;
  width: 96px;
  height: 76px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 3px solid #fff9e7;
  background: #513a49;
  box-shadow: 0 0 30px rgb(255 214 102 / 30%);
}

.private-evening-window-light i { background: #ffd967; }
.private-evening-window-light i:nth-child(2) { background: #f3b75f; }
.private-evening-window-light i:nth-child(3) { background: #e99863; }
.private-evening-window-light i:nth-child(4) { background: #f7cc78; }
.private-evening-window-light b {
  position: absolute;
  right: -5px;
  bottom: -7px;
  padding: 4px 6px;
  border: 1px solid #fff9e7;
  color: #fff9e7;
  background: #17282e;
  font: 900 0.45rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(3deg);
}

.private-evening-window-copy { min-width: 0; }
.private-evening-window-copy small,
.private-evening-result-heading small,
.private-evening-slip > small,
.private-evening-slip dt {
  color: #ffd967;
  font: 900 0.53rem/1.25 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
}

.private-evening-window-copy h2 {
  margin: 4px 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.private-evening-window-copy p {
  max-width: 58ch;
  margin: 0;
  color: #dae3dc;
  font-size: 0.7rem;
  line-height: 1.45;
}

.private-evening-window button,
.private-evening-result-back button {
  border: 2px solid #fff9e7;
  color: #17282e;
  background: #ffd967;
  cursor: pointer;
  box-shadow: 4px 4px 0 #d36c57;
}

.private-evening-window button {
  display: flex;
  min-width: 205px;
  padding: 10px 12px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.private-evening-window button span { display: grid; gap: 2px; }
.private-evening-window button small {
  font: 900 0.47rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.06em;
}
.private-evening-window button strong { font-size: 0.75rem; }
.private-evening-window button b { color: #8b3c45; font-size: 1.35rem; }
.private-evening-window button:hover { background: #ffe999; transform: translate(-1px, -1px); }
.private-evening-window button:active { box-shadow: 2px 2px 0 #d36c57; transform: translateY(1px); }

.private-evening-window button:focus-visible,
.private-evening-result button:focus-visible,
.private-evening-result:focus-visible {
  outline: 4px solid #3d7eff;
  outline-offset: 3px;
}

.private-evening-result {
  width: min(calc(100% - 28px), 980px);
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid #14262d;
  color: #17282e;
  background: #f6ecd3;
  box-shadow: 12px 14px 0 rgb(16 27 31 / 38%);
  font-family: Arial, Helvetica, sans-serif;
}

.private-evening-result::backdrop {
  background: rgb(11 18 23 / 78%);
  backdrop-filter: blur(4px);
}

.private-evening-result-back {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  margin: 0;
  padding: 9px 14px;
  justify-content: flex-start;
  border-bottom: 2px solid #17282e;
  background: #17282e;
}

.private-evening-result-back button {
  padding: 7px 10px;
  font: 900 0.6rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.private-evening-result-heading {
  display: flex;
  min-width: 0;
  padding: 23px 25px 18px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed rgb(23 40 46 / 45%);
  background: #f6ecd3;
}

.private-evening-result-heading > div { min-width: 0; }
.private-evening-result-heading small { color: #8b3c45; }
.private-evening-result-heading h1 {
  max-width: 720px;
  margin: 5px 0 7px;
  font-size: clamp(1.85rem, 5vw, 3.7rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}
.private-evening-result-heading p {
  max-width: 68ch;
  margin: 0;
  color: #4d5d5d;
  font-size: 0.72rem;
  line-height: 1.5;
}
.private-evening-result-heading > span {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 3px double #8b3c45;
  border-radius: 50%;
  color: #8b3c45;
  font: 900 0.52rem/1.25 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  transform: rotate(7deg);
}

.private-evening-result-body {
  display: grid;
  min-width: 0;
  padding: 24px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 22px;
  background: linear-gradient(135deg, #efe0bd, #f8f0df 58%, #e5d5bb);
}

.private-evening-scene {
  position: relative;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  border: 3px solid #14262d;
  background: linear-gradient(#3b405f 0 43%, #73525a 43% 58%, #28383b 58%);
  box-shadow: inset 0 0 0 8px #f6ecd3, 7px 8px 0 #9a6b52;
  isolation: isolate;
}

.private-evening-scene::before {
  position: absolute;
  inset: 9px;
  z-index: 4;
  border: 1px solid rgb(255 249 231 / 35%);
  content: "";
  pointer-events: none;
}

.private-evening-sky { position: absolute; inset: 0 0 42%; overflow: hidden; }
.private-evening-sky i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3b7;
  box-shadow: 0 0 8px #fff3b7;
}
.private-evening-sky i:nth-child(1) { top: 15%; left: 14%; }
.private-evening-sky i:nth-child(2) { top: 31%; left: 29%; }
.private-evening-sky i:nth-child(3) { top: 11%; right: 36%; }
.private-evening-sky i:nth-child(4) { top: 35%; right: 17%; }
.private-evening-sky i:nth-child(5) { top: 54%; right: 44%; }

.private-evening-moon {
  position: absolute;
  top: 10%;
  right: 11%;
  z-index: 1;
  color: #ffe8a1;
  font: 3.7rem/1 Georgia, serif;
  filter: drop-shadow(0 0 14px rgb(255 232 161 / 50%));
}

.private-evening-window-frame {
  position: absolute;
  top: 13%;
  right: 18%;
  left: 18%;
  z-index: 2;
  display: grid;
  height: 46%;
  padding: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 8px solid #17282e;
  background: #17282e;
  box-shadow: 0 0 24px rgb(255 210 98 / 25%);
}
.private-evening-window-frame i { background: rgb(221 160 105 / 20%); }

.private-evening-desk {
  position: absolute;
  right: 12%;
  bottom: 12%;
  left: 12%;
  z-index: 3;
  height: 23%;
  border: 3px solid #17282e;
  background: #7c5d4f;
  box-shadow: inset 0 10px 0 #9f775e;
}

.private-evening-lamp {
  position: absolute;
  right: 20%;
  bottom: 35%;
  z-index: 4;
  width: 62px;
  height: 48px;
  border: 3px solid #17282e;
  border-radius: 50% 50% 8px 8px;
  background: #ffd967;
  box-shadow: 0 0 38px rgb(255 217 103 / 72%);
}
.private-evening-lamp i {
  position: absolute;
  top: 45px;
  left: 27px;
  width: 5px;
  height: 52px;
  background: #17282e;
}

.private-evening-object {
  position: absolute;
  bottom: 16%;
  z-index: 4;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 3px solid #17282e;
  border-radius: 50%;
  color: #17282e;
  background: #f5c55f;
  font: 900 0.47rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  box-shadow: 5px 6px 0 rgb(23 40 46 / 30%);
}
.private-evening-object.is-first { left: 17%; transform: rotate(-7deg); }
.private-evening-object.is-second { left: 39%; transform: rotate(6deg); }
.private-evening-object i {
  position: absolute;
  right: 12px;
  bottom: -17px;
  left: 12px;
  height: 16px;
  border: 3px solid #17282e;
  border-top: 0;
  background: #a78368;
}

.private-evening-clock,
.private-evening-sign,
.private-evening-overtime-form {
  position: absolute;
  z-index: 5;
  font: 900 0.5rem/1.15 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
}
.private-evening-clock {
  top: 8%;
  left: 7%;
  padding: 6px 8px;
  border: 2px solid #fff9e7;
  color: #fff9e7;
  background: #17282e;
}
.private-evening-sign {
  right: 5%;
  bottom: 5%;
  padding: 9px;
  border: 3px double #ffd967;
  color: #ffd967;
  background: #17282e;
  white-space: pre-line;
  transform: rotate(6deg);
}
.private-evening-overtime-form {
  right: 31%;
  bottom: 18%;
  display: none;
  padding: 8px;
  border: 1px solid #17282e;
  color: #17282e;
  background: #fff9e7;
  transform: rotate(-8deg);
}

.private-evening-scene[data-close-choice-id="choice-1"] {
  background: linear-gradient(#68516b 0 38%, #df885e 38% 58%, #344245 58%);
}
.private-evening-scene[data-close-choice-id="choice-1"] .private-evening-moon { opacity: 0.3; }
.private-evening-scene[data-close-choice-id="choice-1"] .private-evening-lamp { box-shadow: none; filter: saturate(0.65); }
.private-evening-scene[data-close-choice-id="choice-2"] .private-evening-overtime-form { display: block; }

.private-evening-slip {
  position: relative;
  min-width: 0;
  padding: 25px 20px 20px;
  border: 2px solid #17282e;
  background: #fffaf0;
  box-shadow: inset 0 -8px 0 #e7ba61, 6px 7px 0 rgb(23 40 46 / 20%);
  transform: rotate(0.35deg);
}
.private-evening-slip::before {
  position: absolute;
  top: -8px;
  left: 24%;
  width: 78px;
  height: 22px;
  border: 1px solid rgb(23 40 46 / 20%);
  background: rgb(213 224 211 / 86%);
  content: "";
  transform: rotate(-2deg);
}
.private-evening-slip > small { color: #8b3c45; }
.private-evening-slip h2 {
  margin: 5px 0 9px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}
.private-evening-slip > p:not(.private-evening-private-note) {
  margin: 0 0 17px;
  color: #4d5d5d;
  font-size: 0.72rem;
  line-height: 1.5;
}
.private-evening-slip dl {
  display: grid;
  margin: 0;
  border: 1px solid #17282e;
}
.private-evening-slip dl > div {
  display: grid;
  min-width: 0;
  padding: 9px 10px;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.private-evening-slip dl > div + div { border-top: 1px dashed rgb(23 40 46 / 45%); }
.private-evening-slip dt { color: #6c4650; }
.private-evening-slip dd {
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 3px;
  font-size: 0.68rem;
  line-height: 1.35;
}
.private-evening-slip dd strong { font-size: 0.72rem; }
.private-evening-slip code {
  color: #687675;
  font: 700 0.53rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  overflow-wrap: anywhere;
}
.private-evening-private-note {
  margin: 15px 0 0;
  padding: 10px;
  border: 1px solid #17282e;
  color: #394b4c;
  background: #e1e9df;
  font-size: 0.65rem;
  line-height: 1.45;
}

@keyframes private-evening-window-glow {
  0%, 100% { box-shadow: 0 0 26px rgb(255 214 102 / 25%); }
  50% { box-shadow: 0 0 38px rgb(255 214 102 / 43%); }
}

@keyframes private-evening-arrive {
  from { opacity: 0; transform: translateY(10px) rotate(0.35deg); }
  to { opacity: 1; transform: translateY(0) rotate(0.35deg); }
}

.private-evening-window-light { animation: private-evening-window-glow 2.8s ease-in-out infinite; }
.private-evening-result[open] .private-evening-slip { animation: private-evening-arrive 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@media (max-width: 760px) {
  .private-evening-window { grid-template-columns: 78px minmax(0, 1fr); }
  .private-evening-window-light { width: 78px; height: 67px; }
  .private-evening-window button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .private-evening-result-body { grid-template-columns: minmax(0, 1fr); }
  .private-evening-scene { min-height: 330px; }
}

@media (max-width: 480px) {
  .private-evening-result { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .private-evening-result-heading { align-items: start; padding: 18px 16px 14px; }
  .private-evening-result-heading > span { padding: 7px 8px; font-size: 0.43rem; }
  .private-evening-result-heading h1 { font-size: clamp(1.65rem, 10vw, 2.5rem); }
  .private-evening-result-body { padding: 13px; gap: 17px; }
  .private-evening-scene { min-height: 270px; box-shadow: inset 0 0 0 6px #f6ecd3, 4px 5px 0 #9a6b52; }
  .private-evening-object { width: 53px; height: 53px; font-size: 0.4rem; }
  .private-evening-object.is-first { left: 14%; }
  .private-evening-object.is-second { left: 39%; }
  .private-evening-lamp { right: 15%; width: 48px; height: 38px; }
  .private-evening-lamp i { top: 36px; left: 21px; height: 40px; }
  .private-evening-window-frame { right: 13%; left: 13%; }
  .private-evening-sign { font-size: 0.42rem; }
  .private-evening-slip { padding: 23px 15px 16px; }
  .private-evening-slip dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .private-evening-window-light,
  .private-evening-result[open] .private-evening-slip { animation: none; }
  .private-evening-window button { transition: none; }
}
