.night-scene {
  --night-ink: #1b1420;
  --night-paper: #fff0ce;
  --night-pink: #fd91b3;
  --night-yellow: #ffd354;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--night-paper);
  background: var(--night-ink);
  font-family: Onest, sans-serif;
}
.night-security-inner,.night-statement-inner {
  position: relative;
  width: min(100%, 1540px);
  margin-inline: auto;
  display: grid;
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(44px, 7vw, 110px) var(--gutter, 5vw);
}
.night-story { align-self: center; display: grid; gap: 18px; justify-items: start }
.night-story h2 {
  margin: 0; max-width: 8ch; font: 400 clamp(64px, 13vw, 164px)/.99 Anton, Impact, sans-serif;
  letter-spacing: -.035em; scroll-margin-top: 100px;
}
.night-story p { margin: 0; max-width: 36ch; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.45 }
.night-security { background: #271c32 }
.night-security::before {
  content: ""; z-index: -1; position: absolute; inset: 0;
  background: linear-gradient(120deg, #291a32 9%, #201324c7 47%, #20132415), url(./assets/night.webp) 56% 48% / cover;
}
.night-security .night-story h2 { transform: rotate(-3deg); transform-origin: 0 50%; color: var(--night-pink) }
.night-locker {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 340px; padding: 42px 16px;
  background: linear-gradient(10deg,#22132233,transparent 70%),url(./assets/motel-dusk.webp) 76% 79% / cover;
  clip-path: polygon(0 7%,100% 0,100% 93%,0 100%);
}
.night-shutter {
  position: absolute; inset: 0; z-index: -1; transform: translateY(-101%);
  background: repeating-linear-gradient(0deg,#463447 0 15px,#362737 16px 19px,#795969 20px 22px);
  transition: transform .46s cubic-bezier(.24,.82,.28,1);
}
[data-frozen="true"] .night-shutter { transform: translateY(0) }
.night-tag {
  position: relative; width: min(80%, 300px); display: grid; gap: 17px; padding: 21px 23px 23px;
  color: var(--night-ink); background: var(--night-yellow); transform: rotate(-3deg);
  clip-path: polygon(20px 0,100% 0,100% 100%,0 100%,0 20px);
}
.night-tag-hole { width: 9px; height: 9px; border-radius: 50%; background: #493446 }
.night-tag-caption { font-size: 13px; font-weight: 700 }
.night-tag strong { display: block; font: 400 clamp(46px, 7vw, 78px)/1.12 Anton, Impact, sans-serif; letter-spacing: -.025em }
.night-tag p { margin: 5px 0 0; max-width: 23ch; min-height: 2.6em; font-size: 15px; line-height: 1.3 }
#card-freeze {
  min-height: 46px; padding: 10px 15px; border: 0; border-radius: 3px;
  background: var(--night-ink); color: var(--night-paper); font: 650 16px/1.2 Onest, sans-serif;
}
#card-freeze:hover { background: #443146 }
[data-frozen="true"] .night-tag { background: #bce1d6 }
.night-statement { background: #462b51 }
.night-statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,#442642ed,#492947c7 60%,#49294770), url(./assets/ocean-drive.webp) 66% 80% / cover;
}
.night-statement .night-story h2 { color: var(--night-paper) }
.night-return { min-height: 44px; display: inline-flex; gap: 12px; align-items: center; color: #ffd397; text-decoration: underline; text-underline-offset: 4px; font-weight: 650 }
.night-slip {
  position: relative; display: grid; gap: 19px; align-self: start;
  color: var(--night-ink); background: var(--night-paper); padding: clamp(22px, 3.4vw, 52px);
  padding-top: max(26px,3.4vw); border-radius: 2px;
}
.night-slip::after {
  content: ""; position: absolute; inset: auto 0 -7px; height: 8px;
  background: linear-gradient(135deg,var(--night-paper) 25%,transparent 26%) 0 0 / 14px 14px,
              linear-gradient(225deg,var(--night-paper) 25%,transparent 26%) 0 0 / 14px 14px;
}
.night-slip-heading { display: flex; align-items: center; gap: 7px }
.night-slip-heading h3 { margin: 0; font: 700 clamp(17px, 2vw, 23px)/1.2 Onest, sans-serif }
.night-merchant { margin: 0; font: 400 clamp(42px, 6.5vw, 85px)/1 Anton, Impact, sans-serif; letter-spacing: -.03em }
.night-charge { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap }
.night-charge strong { font-size: clamp(28px, 3.5vw, 48px); line-height: 1; letter-spacing: -.05em }
#statement-status {
  justify-self: start; margin: 0; padding: 6px 11px; font-size: 15px; font-weight: 750;
  background: #c5ddbc; color: #244832; transform: rotate(-2deg);
}
[data-state="declined"] #statement-status { background: #ffceba; color: #702530 }
.night-detail { border-top: 1px dashed #907c72 }
.night-detail summary {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; font-weight: 700;
}
.night-detail summary::-webkit-details-marker { display: none }
.night-detail i { height: 9px; width: 9px; margin-right: 5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s }
.night-detail[open] i { transform: rotate(225deg) }
.night-detail dl { margin: 0; display: grid; gap: 10px }
.night-detail dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.night-detail dd { margin: 0; font-weight: 700 }
.night-scene :is(a,button,summary):focus-visible { outline: 3px solid #21a79b; outline-offset: 3px }
@media (min-width: 760px) {
  .night-security-inner { grid-template-columns: .86fr 1.14fr; align-items: center }
  .night-statement-inner { grid-template-columns: 1.05fr 1fr; align-items: center }
  .night-locker { min-height: clamp(400px,37vw,575px) }
  .night-slip { align-self: center }
}
@media (prefers-reduced-motion: reduce) {
  .night-shutter,.night-detail i { transition: none }
}
