body.midnight-template {
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-sans: "Space Grotesk", Arial, sans-serif;
  --theme-bg: #F0EEE9;
  --theme-bg-soft: #F9F8F5;
  --theme-surface: rgba(255, 253, 248, 0.86);
  --theme-surface-solid: #FFFFFF;
  --theme-ink: #42413e;
  --theme-muted: #90a2aa;
  --theme-primary: #b24c54;
  --theme-primary-strong: #9a3f47;
  --theme-secondary: #B8898D;
  --theme-accent: #623438;
  --theme-border: #d5d5d5;
  --theme-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
  margin: 0;
  background:
    linear-gradient(135deg, rgba(184, 137, 141, 0.16), transparent 34%),
    linear-gradient(235deg, rgba(178, 76, 84, 0.16), transparent 36%),
    var(--theme-bg);
  color: var(--theme-ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.midnight-template.app-bg {
  background:
    linear-gradient(135deg, rgba(63, 109, 103, 0.16), transparent 34%),
    linear-gradient(235deg, rgba(141, 63, 73, 0.16), transparent 36%),
    var(--theme-bg);
}

.midnight-template *,
.midnight-template *::before,
.midnight-template *::after {
  box-sizing: border-box;
}

.midnight-template img {
  display: block;
  max-width: 100%;
}

.midnight-template a {
  color: var(--theme-ink);
}

.midnight-template .d-none {
  display: none !important;
}

body.midnight-template.midnight-intro-lock,
body.midnight-template.modal-open {
  overflow: hidden;
}

.midnight-page {
  min-height: 100vh;
  color: var(--theme-ink);
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.midnight-intro-lock .midnight-page {
  opacity: 0;
  transform: translateY(18px);
}

.midnight-ready .midnight-page {
  opacity: 1;
  transform: none;
}

.midnight-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--theme-bg);
  color: var(--theme-ink);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.midnight-intro.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.midnight-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(90deg, rgba(178, 76, 84, 0.03), transparent 16% 32%, rgba(178, 76, 84, 0.04) 46%, transparent 68%),
    linear-gradient(180deg, var(--theme-bg-soft), var(--theme-bg) 48%, var(--theme-bg-soft));
  transition: transform 1.15s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.midnight-curtain-left {
  left: 0;
  border-right: 1px solid rgba(178, 76, 84, 0.26);
}

.midnight-curtain-right {
  right: 0;
  border-left: 1px solid rgba(178, 76, 84, 0.26);
}

.midnight-intro.is-opening .midnight-curtain-left {
  transform: translateX(-103%);
}

.midnight-intro.is-opening .midnight-curtain-right {
  transform: translateX(103%);
}

.midnight-intro-light {
  position: absolute;
  inset: -18%;
  background: linear-gradient(105deg, transparent 0 42%, rgba(178, 76, 84, 0.28) 49%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-36%) skewX(-12deg);
  transition: opacity 0.8s ease, transform 1.35s ease;
}

.midnight-intro.is-opening .midnight-intro-light {
  opacity: 1;
  transform: translateX(34%) skewX(-12deg);
}

.midnight-intro.is-fading .midnight-intro-light {
  opacity: 0;
}

.midnight-intro-mark {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 34px;
  border: 1px solid rgba(178, 76, 84, 0.36);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--theme-shadow);
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.midnight-intro-mark span {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.9;
}

.midnight-intro-mark small {
  color: var(--theme-primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.midnight-intro.is-opening .midnight-intro-mark {
  transform: translateY(-18px) scale(0.92);
  opacity: 0;
}

.midnight-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 14px 20px;
}

.midnight-nav {
  width: min(100%, 1160px);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(66, 65, 62, 0.12);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.midnight-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.midnight-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.midnight-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  color: rgba(66, 65, 62, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.midnight-nav-links a:hover,
.midnight-nav-links a:focus-visible,
.midnight-nav-links a.is-active {
  border-color: rgba(178, 76, 84, 0.34);
  background: var(--theme-ink);
  color: var(--theme-bg-soft);
  outline: 0;
}

.midnight-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 122px 20px 44px;
}

.midnight-hero-image,
.midnight-hero-shade {
  position: absolute;
  inset: 0;
}

.midnight-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.midnight-hero-shade {
  background:
    linear-gradient(90deg, rgba(240, 238, 233, 0.92), rgba(240, 238, 233, 0.52) 46%, rgba(240, 238, 233, 0.22)),
    linear-gradient(180deg, rgba(240, 238, 233, 0.28), rgba(240, 238, 233, 0.9));
}

.midnight-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
}

.midnight-kicker {
  margin: 0 0 12px;
  color: var(--theme-primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.midnight-hero h1,
.midnight-section h2,
.midnight-page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
}

.midnight-hero h1 {
  max-width: 760px;
  font-size: 5.4rem;
}

.midnight-hero h1 span {
  color: var(--theme-primary-strong);
}

.midnight-lead,
.midnight-location-copy p,
.midnight-page-header p {
  max-width: 680px;
  color: rgba(66, 65, 62, 0.78);
  font-size: 1.04rem;
  line-height: 1.78;
}

.midnight-lead {
  margin: 22px 0 0;
}

.midnight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.midnight-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid rgba(178, 76, 84, 0.58);
  background: var(--theme-primary);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.midnight-btn:hover,
.midnight-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--theme-primary-strong);
  color: #ffffff;
  outline: 0;
}

.midnight-btn.ghost {
  border-color: rgba(66, 65, 62, 0.24);
  background: rgba(66, 65, 62, 0.08);
  color: var(--theme-ink);
}

.midnight-btn.ghost:hover,
.midnight-btn.ghost:focus-visible {
  border-color: rgba(178, 76, 84, 0.48);
  background: rgba(178, 76, 84, 0.14);
  color: var(--theme-ink);
}

.midnight-event-grid {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  border-top: 1px solid rgba(66, 65, 62, 0.18);
  border-bottom: 1px solid rgba(66, 65, 62, 0.18);
}

.midnight-event-grid div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  border-right: 1px solid rgba(66, 65, 62, 0.14);
}

.midnight-event-grid div:last-child {
  border-right: 0;
}

.midnight-event-grid span {
  color: var(--theme-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.midnight-event-grid strong {
  color: var(--theme-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.midnight-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 82px 20px;
}

.midnight-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.midnight-section h2 {
  max-width: 760px;
  font-size: 3.4rem;
}

.midnight-photo-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.18fr 0.96fr;
  grid-auto-rows: 230px;
  grid-template-areas:
    "tall small wide"
    "tall last wide";
  gap: 14px;
}

.midnight-photo {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(66, 65, 62, 0.1);
  background: var(--theme-surface-solid);
}

.midnight-photo.tall {
  grid-area: tall;
}

.midnight-photo.wide {
  grid-area: wide;
}

.midnight-photo:nth-child(2) {
  grid-area: small;
}

.midnight-photo:nth-child(4) {
  grid-area: last;
}

.midnight-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.01);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.midnight-photo:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.08);
}

.midnight-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--theme-ink);
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.midnight-location {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding-top: 46px;
}

.midnight-location-copy {
  padding: 28px 0;
}

.midnight-location-copy h2 {
  font-size: 3rem;
}

.midnight-location-copy .midnight-btn {
  margin-top: 16px;
}

.midnight-map-panel {
  min-height: 360px;
  padding: 8px;
  border: 1px solid rgba(178, 76, 84, 0.28);
  background: rgba(66, 65, 62, 0.06);
  box-shadow: var(--theme-shadow);
}

.midnight-map {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
  filter: grayscale(0.24) contrast(1.02);
}

.midnight-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 116px 20px 96px;
}

.midnight-page-header {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(66, 65, 62, 0.14);
}

.midnight-page-header h1 {
  font-size: 4rem;
}

.midnight-page-header p {
  margin: 0;
}

.midnight-panel,
.midnight-gallery-panel {
  border: 1px solid rgba(66, 65, 62, 0.12);
  background:
    linear-gradient(135deg, rgba(66, 65, 62, 0.08), rgba(66, 65, 62, 0.02)),
    rgba(28, 26, 23, 0.82);
  box-shadow: var(--theme-shadow);
  backdrop-filter: blur(18px);
}

.midnight-panel {
  padding: 24px;
}

.midnight-gallery-panel {
  padding: 18px;
}

.midnight-template .form-label,
.midnight-template .form-text,
.midnight-template .text-secondary,
.midnight-template .small {
  color: rgba(255, 255, 255, 0.86) !important;
}

.midnight-template .form-control {
  min-height: 52px;
  border: 1px solid rgba(66, 65, 62, 0.16);
  border-radius: 0;
  background-color: rgba(255, 253, 248, 0.68);
  color: var(--theme-ink);
}

.midnight-template .form-control:focus {
  border-color: rgba(178, 76, 84, 0.62);
  background-color: rgba(255, 253, 248, 0.88);
  color: var(--theme-ink);
  box-shadow: 0 0 0 0.2rem rgba(178, 76, 84, 0.14);
}

.midnight-template .progress {
  height: 12px;
  border-radius: 0;
  background: rgba(66, 65, 62, 0.12);
}

.midnight-template .progress-bar {
  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-primary));
  color: var(--theme-bg);
  font-size: 0.74rem;
  font-weight: 700;
}

.midnight-template .alert {
  border-radius: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title-row h2 {
  color: #ffffff;
}

.empty-state,
.midnight-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(66, 65, 62, 0.18);
  background: rgba(255, 253, 248, 0.38);
  color: rgba(66, 65, 62, 0.68);
  text-align: center;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid rgba(66, 65, 62, 0.12);
  background: rgba(255, 253, 248, 0.58);
}

.preview-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(66, 65, 62, 0.08);
}

.preview-meta {
  padding: 14px;
}

.preview-name {
  color: var(--theme-ink);
  font-weight: 700;
  word-break: break-word;
}

.preview-detail {
  color: rgba(66, 65, 62, 0.62);
  font-size: 0.86rem;
}

.midnight-template .btn-outline-primary,
.midnight-template .btn-outline-secondary,
.midnight-template .btn-outline-danger {
  border-color: rgba(66, 65, 62, 0.22);
  color: var(--theme-ink);
}

.midnight-template .btn-outline-primary:hover,
.midnight-template .btn-outline-secondary:hover,
.midnight-template .btn-outline-danger:hover {
  background: rgba(178, 76, 84, 0.14);
  border-color: rgba(178, 76, 84, 0.42);
  color: var(--theme-ink);
}

.midnight-template .btn-success {
  border-color: #3f6d67;
  background: #3f6d67;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-card {
  grid-column: span 4;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(66, 65, 62, 0.12);
  background: rgba(255, 253, 248, 0.58);
  color: var(--theme-ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-card:nth-child(6n + 1),
.gallery-card:nth-child(6n + 5) {
  grid-column: span 8;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(178, 76, 84, 0.38);
  color: var(--theme-bg-soft);
  outline: 0;
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(66, 65, 62, 0.08);
}

.gallery-card:nth-child(6n + 1) .gallery-image-wrap,
.gallery-card:nth-child(6n + 5) .gallery-image-wrap {
  aspect-ratio: 16 / 9;
}

.gallery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.gallery-card-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-image-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.7);
}

.loader-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 18px 0 0 var(--theme-secondary), -18px 0 0 var(--theme-accent);
  animation: midnightPulse 0.9s ease-in-out infinite alternate;
}

.quality-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--theme-primary-strong);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.gallery-card-body {
  display: grid;
  gap: 3px;
  padding: 14px;
}

.gallery-card-title,
.gallery-card-date {
  margin: 0;
}

.gallery-card-title {
  font-weight: 700;
}

.gallery-card-date {
  color: rgba(66, 65, 62, 0.6);
  font-size: 0.84rem;
}

.list-loader {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: rgba(66, 65, 62, 0.68);
}

.scroll-sentinel {
  width: 100%;
  height: 1px;
}

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.editor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.editor-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(178, 76, 84, 0.28);
  background: #f7efe3;
  color: #171411;
  box-shadow: var(--theme-shadow);
}

.editor-modal-content .text-secondary,
.editor-modal-content .small,
.editor-modal-content .form-label {
  color: #6f6358 !important;
}

.editor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.editor-canvas-shell {
  border: 1px solid rgba(255, 253, 248, 0.12);
  background: rgba(255, 253, 248, 0.05);
  padding: 10px;
}

.editor-canvas {
  width: 100%;
  max-height: 58vh;
  display: block;
  background: var(--theme-bg);
}

.midnight-bottom-nav {
  display: none;
}

.midnight-template .template-switcher {
  border-color: rgba(178, 76, 84, 0.28);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.midnight-template .template-switcher-label,
.midnight-template .template-option {
  color: var(--theme-ink);
}

.midnight-template .template-option:hover,
.midnight-template .template-option:focus-visible,
.midnight-template .template-option.is-active {
  background: rgba(66, 65, 62, 0.1);
}

@keyframes midnightPulse {
  from {
    transform: translateY(0);
    opacity: 0.56;
  }

  to {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (min-width: 1120px) {
  .midnight-hero h1 {
    font-size: 6.4rem;
  }
}

@media (max-width: 980px) {
  .midnight-hero h1 {
    font-size: 4.2rem;
  }

  .midnight-section h2,
  .midnight-location-copy h2,
  .midnight-page-header h1 {
    font-size: 3rem;
  }

  .midnight-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
    grid-template-areas:
      "tall small"
      "tall last"
      "wide wide";
  }

  .midnight-location {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:nth-child(6n + 1),
  .gallery-card:nth-child(6n + 5) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .midnight-topbar {
    padding: 10px 12px;
  }

  .midnight-nav {
    min-height: 52px;
    padding: 9px 12px;
  }

  .midnight-nav-links {
    display: none;
  }

  .midnight-hero {
    min-height: 88vh;
    padding: 104px 16px 34px;
  }

  .midnight-hero-shade {
    background:
      linear-gradient(180deg, rgba(240, 238, 233, 0.2), rgba(240, 238, 233, 0.94)),
      linear-gradient(90deg, rgba(240, 238, 233, 0.82), rgba(240, 238, 233, 0.24));
  }

  .midnight-hero h1 {
    font-size: 3.35rem;
  }

  .midnight-lead,
  .midnight-location-copy p,
  .midnight-page-header p {
    font-size: 0.98rem;
  }

  .midnight-actions {
    flex-direction: column;
  }

  .midnight-btn {
    width: 100%;
  }

  .midnight-event-grid {
    grid-template-columns: 1fr;
  }

  .midnight-event-grid div {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid rgba(66, 65, 62, 0.14);
  }

  .midnight-event-grid div:last-child {
    border-bottom: 0;
  }

  .midnight-section,
  .midnight-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .midnight-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .midnight-section h2,
  .midnight-location-copy h2,
  .midnight-page-header h1 {
    font-size: 2.55rem;
  }

  .midnight-photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-template-areas: none;
  }

  .midnight-photo,
  .midnight-photo.tall,
  .midnight-photo.wide,
  .midnight-photo:nth-child(2),
  .midnight-photo:nth-child(4) {
    grid-area: auto;
    min-height: 260px;
  }

  .midnight-map-panel {
    min-height: 280px;
  }

  .midnight-map {
    height: 280px;
  }

  .midnight-panel,
  .midnight-gallery-panel {
    padding: 14px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:nth-child(6n + 1),
  .gallery-card:nth-child(6n + 5) {
    grid-column: auto;
  }

  .gallery-card:nth-child(6n + 1) .gallery-image-wrap,
  .gallery-card:nth-child(6n + 5) .gallery-image-wrap,
  .gallery-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .midnight-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 40;
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(66, 65, 62, 0.14);
    background: rgba(255, 253, 248, 0.86);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .midnight-bottom-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(66, 65, 62, 0.68);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }

  .midnight-bottom-nav a.is-active,
  .midnight-bottom-nav a:hover,
  .midnight-bottom-nav a:focus-visible {
    background: rgba(178, 76, 84, 0.16);
    color: var(--theme-bg-soft);
  outline: 0;
  }

  .midnight-template .template-switcher {
    bottom: 82px;
  }
}

@media (max-width: 420px) {
  .midnight-hero h1 {
    font-size: 2.75rem;
  }

  .midnight-intro-mark span {
    font-size: 3.1rem;
  }

  .midnight-shell {
    padding-top: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .midnight-template *,
  .midnight-template *::before,
  .midnight-template *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
