/* Hymn Present — studio shell presentation mode */

body.hp-present-body {
  background: #0c1018 !important;
  color: #e8ecf1;
  overflow: hidden;
}

body.hp-present-body .navbar,
body.hp-present-body footer.site-footer,
body.hp-present-body .footer,
body.hp-present-body #scroll-progress-container,
body.hp-present-body .hl-forum-cta,
body.hp-present-body .site-loader {
  display: none !important;
}

body.hp-present-body main,
body.hp-present-body .container,
body.hp-present-body .ss-main-bleed {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hp-studio {
  --hp-chrome: #10141b;
  --hp-chrome-border: #2a323e;
  --hp-muted: #9aa3ad;
  --hp-ink: #f5f7fa;
  --hp-accent: #6eb6ff;
  --hp-dim: 0.62;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0c1018;
  color: var(--hp-ink);
  isolation: isolate;
}

.hp-studio.is-fs-chrome-hidden .hp-chrome,
.hp-studio.is-fs-chrome-hidden .hp-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.hp-studio.is-fs-chrome-hidden .hp-dock {
  transform: translateY(6px);
}

.hp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0c1018;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.45s ease, background-color 0.45s ease;
}

.hp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, var(--hp-dim)) 45%, rgba(8, 10, 16, 0.78) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Solid / atmospheric fallbacks when no photo */
.hp-bg[data-bg="none"] {
  background-image: none;
  background-color: #0c1018;
}
.hp-bg[data-bg="none"]::after {
  background: radial-gradient(ellipse at 50% 30%, #1a2230 0%, #0c1018 70%);
  opacity: 1;
}

.hp-bg[data-bg="sanctuary"] {
  background-image: url("../img/present/sanctuary.jpg"),
    linear-gradient(145deg, #2a1f18 0%, #12141c 55%, #0b0e14 100%);
}
.hp-bg[data-bg="stained"] {
  background-image: url("../img/present/stained.jpg"),
    radial-gradient(circle at 30% 20%, #3a2a55 0%, #1a1528 45%, #0c1018 100%);
}
.hp-bg[data-bg="cross"] {
  background-image: url("../img/present/cross-light.jpg"),
    linear-gradient(180deg, #1c2438 0%, #10141f 50%, #0a0c12 100%);
}
.hp-bg[data-bg="forest"] {
  background-image: url("../img/present/forest.jpg"),
    linear-gradient(160deg, #14301f 0%, #0e1a14 50%, #0a1010 100%);
}
.hp-bg[data-bg="dawn"] {
  background-image: url("../img/present/dawn.jpg"),
    linear-gradient(180deg, #3a4a68 0%, #1a2438 45%, #0c1018 100%);
}

.hp-chrome,
.hp-dock,
.hp-stage {
  position: relative;
  z-index: 2;
}

.hp-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.9rem;
  background: rgba(16, 20, 27, 0.88);
  border-bottom: 1px solid var(--hp-chrome-border);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-chrome-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.hp-chrome-meta h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.hp-chrome-meta h1 strong {
  font-weight: 700;
}

.hp-chrome-sub {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--hp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #343b48;
  background: rgba(255, 255, 255, 0.04);
  color: #d5dbe3;
  border-radius: 0.45rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.hp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #4a5568;
}

.hp-btn.is-accent {
  background: linear-gradient(135deg, #5aa8ef, #3d7ebd);
  border-color: transparent;
  color: #fff;
}

.hp-btn.is-accent:hover {
  filter: brightness(1.06);
  color: #fff;
}

.hp-btn.is-active {
  background: rgba(110, 182, 255, 0.18);
  border-color: var(--hp-accent);
  color: #dcebff;
}

.hp-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hp-bg-menu {
  position: relative;
}

.hp-bg-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: min(280px, 86vw);
  padding: 0.65rem;
  border-radius: 0.65rem;
  background: #161b24;
  border: 1px solid #343b48;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.hp-bg-panel.is-open {
  display: block;
}

.hp-bg-panel-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 0.45rem;
}

.hp-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.hp-bg-opt {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  padding: 0;
  height: 3.1rem;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hp-bg-opt::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.hp-bg-opt.is-selected {
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 1px rgba(110, 182, 255, 0.35);
}

.hp-bg-opt[data-bg="none"] {
  background: linear-gradient(145deg, #1a2230, #0c1018);
}
.hp-bg-opt[data-bg="sanctuary"] {
  background-image: url("../img/present/sanctuary.jpg"), linear-gradient(145deg, #2a1f18, #12141c);
}
.hp-bg-opt[data-bg="stained"] {
  background-image: url("../img/present/stained.jpg"), radial-gradient(circle, #3a2a55, #1a1528);
}
.hp-bg-opt[data-bg="cross"] {
  background-image: url("../img/present/cross-light.jpg"), linear-gradient(180deg, #1c2438, #0a0c12);
}
.hp-bg-opt[data-bg="forest"] {
  background-image: url("../img/present/forest.jpg"), linear-gradient(160deg, #14301f, #0a1010);
}
.hp-bg-opt[data-bg="dawn"] {
  background-image: url("../img/present/dawn.jpg"), linear-gradient(180deg, #3a4a68, #0c1018);
}

.hp-dim-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--hp-muted);
}

.hp-dim-row input[type="range"] {
  flex: 1;
  accent-color: var(--hp-accent);
}

.hp-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2rem) clamp(0.85rem, 3vw, 2rem);
}

.hp-slide {
  width: min(960px, 100%);
  text-align: center;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1rem;
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.hp-slide-title {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.15rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.hp-slide-text {
  font-size: 1.75rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #f3f5f7;
  margin: 0;
  transition: font-size 0.2s ease;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hp-dock {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  background: rgba(16, 20, 27, 0.9);
  border-top: 1px solid var(--hp-chrome-border);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-counter {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8ecf1;
  font-size: 0.92rem;
}

.hp-dock-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hp-font-readout {
  min-width: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--hp-muted);
}

.hp-studio.is-fullscreen .hp-chrome {
  background: rgba(10, 12, 18, 0.55);
}

.hp-studio.is-fullscreen .hp-dock {
  background: rgba(10, 12, 18, 0.55);
}

@media (max-width: 768px) {
  .hp-chrome-sub {
    display: none;
  }
  .hp-btn .hp-btn-label {
    display: none;
  }
  .hp-slide-text {
    font-size: 1.25rem;
  }
  .hp-chrome-actions {
    gap: 0.25rem;
  }
}

@media (max-width: 520px) {
  .hp-btn[data-compact-hide] {
    display: none;
  }
}
