/* ==========================================================================
   Deck Architecture - Zero Browser Scrolling Viewport & Deck HUD
   ========================================================================== */

/* WordPress Admin Bar Elimination & Front-end Zero-Offset */
:root {
  --admin-bar-height: 0px !important;
}

#wpadminbar {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html,
body,
* html body {
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.admin-bar {
  --admin-bar-height: 0px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-height: 0px !important;
  }
}

.deck-viewport {
  position: fixed;
  top: var(--admin-bar-height, 0px);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--admin-bar-height, 0px));
  height: calc(100dvh - var(--admin-bar-height, 0px));
  overflow: hidden !important;
  scrollbar-width: none !important;
  z-index: 1;
}

.deck-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.deck-slider {
  width: max-content;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  transition: transform var(--transition-deck);
  will-change: transform;
  position: relative;
  z-index: 2;
  overflow: visible;
  scrollbar-width: none !important;
}

.deck-slider::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.deck-slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden !important;
  scrollbar-width: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--admin-bar-height, 0px) + clamp(1.25rem, 2.5vh, 2.25rem));
  padding-bottom: clamp(1.25rem, 2.5vh, 2.25rem);
  box-sizing: border-box;
}

.deck-slide::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Consistent Persistent Ambient Backdrop Across All Sections */
.deck-persistent-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Background Backdrop Layers (In-Place Smooth Cross-Fading) */
.deck-backdrop-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity, transform;
  transform: scale(1.025);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.deck-backdrop-layer.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
}

/* Background Backdrops */
.slide-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.backdrop-features {
  background: radial-gradient(circle at 50% 35%, rgba(6, 78, 59, 0.12) 0%, rgba(13, 18, 31, 0.28) 65%, rgba(7, 9, 14, 0.40) 100%);
}

.backdrop-blog {
  background: radial-gradient(circle at 65% 40%, rgba(30, 58, 138, 0.10) 0%, rgba(15, 23, 42, 0.28) 65%, rgba(7, 9, 14, 0.40) 100%);
}

.backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.overlay-dark {
  background: radial-gradient(circle at 60% 40%, rgba(11, 15, 25, 0.15) 0%, rgba(7, 9, 14, 0.38) 100%);
}

.overlay-green {
  background: radial-gradient(circle at 50% 50%, rgba(6, 78, 59, 0.10) 0%, rgba(7, 11, 20, 0.32) 100%);
}

.overlay-contact {
  background: radial-gradient(circle at 50% 50%, rgba(11, 15, 25, 0.15) 0%, rgba(7, 9, 14, 0.38) 100%);
}

.overlay-subtle {
  background: rgba(7, 9, 14, 0.35);
}

/* Slide Content Container - Proportional & Focused Width */
.deck-container {
  width: 100%;
  max-width: 1060px;
  margin: auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Slide Entrance Animations - Directional Entrance (Left / Right based on navigation direction) */
.animate-entrance {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Coming from the left (when moving backwards to previous slide) */
.deck-slider.nav-prev .deck-slide .animate-entrance {
  transform: translateX(-45px);
}

/* Coming from the right (default forward movement) */
.deck-slider.nav-next .deck-slide .animate-entrance {
  transform: translateX(45px);
}

.deck-slide.active .animate-entrance {
  opacity: 1;
  transform: translateX(0) !important;
}

.deck-slide.active .animate-delay-1 {
  transition-delay: 0.08s;
}
.deck-slide.active .animate-delay-2 {
  transition-delay: 0.18s;
}
.deck-slide.active .animate-delay-3 {
  transition-delay: 0.28s;
}


/* Remove Deck Nav Side Chevrons */
.deck-nav-arrow,
.deck-nav-arrow-prev,
.deck-nav-arrow-next {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Hover vicinity ramp up */
.deck-nav-arrow.is-vicinity {
  opacity: 0.65;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

/* Reveal & Glow Green on Mouseover */
.deck-nav-arrow:hover,
.deck-nav-arrow:focus-visible {
  opacity: 1;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.36);
  border-color: #34d399;
  box-shadow: 0 0 35px rgba(52, 211, 153, 0.75), inset 0 0 18px rgba(52, 211, 153, 0.35);
}

.deck-nav-arrow:hover i,
.deck-nav-arrow:focus-visible i {
  color: #ffffff;
  text-shadow: 0 0 16px #34d399, 0 0 30px rgba(52, 211, 153, 0.9);
  transform: scale(1.22);
  transition: transform 0.22s ease, text-shadow 0.22s ease;
}

.deck-nav-arrow:active {
  background: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.9);
}

.deck-nav-arrow:disabled,
.deck-nav-arrow.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}



@keyframes returnArrowPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.35), 0 8px 32px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 26px rgba(52, 211, 153, 0.65), 0 8px 32px rgba(0, 0, 0, 0.55);
  }
}

/* Subtle Section Indicators - Snug at bottom edge */
.deck-section-indicators {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.35rem 0.75rem;
  background: transparent; /* No background container */
  border: none;
  box-shadow: none;
  user-select: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.deck-hud-line {
  position: relative;
  display: block;
  width: 32px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-hud-line:hover {
  width: 44px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.deck-hud-line.active {
  width: 52px;
  height: 4.5px;
  background: var(--color-primary-light);
  box-shadow: 0 0 12px var(--color-primary-light), 0 0 24px rgba(52, 211, 153, 0.85);
  filter: brightness(1.25);
}

.deck-hud-line-tooltip {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  top: auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  pointer-events: none !important;
  opacity: 0;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-glass);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.deck-hud-line-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

.deck-hud-line:hover .deck-hud-line-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Credit Below Indicators */
.deck-copyright {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  z-index: 90;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.deck-copyright-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.deck-copyright-link:hover,
.deck-copyright-link:focus-visible {
  color: #34d399;
  text-decoration: underline;
}

.deck-link-icon {
  display: none;
}

/* Guarantee No Overlap: Automatically hide indicators and copyright when category view is active */
body.is-category-open .deck-section-indicators,
body.is-category-open .deck-copyright {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(12px) !important;
}

/* Ensure Footer and Indicators are clearly visible and styled when reading an article */
body.is-article-open .deck-section-indicators,
body.is-reading-mode .deck-section-indicators {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

body.is-article-open .deck-copyright,
body.is-reading-mode .deck-copyright {
  opacity: 1 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(0) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Drop side navigation arrows completely when reading an article (user uses top-left PAW Back button) */
body.is-article-open .deck-nav-arrow,
body.is-reading-mode .deck-nav-arrow {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

@media (max-width: 768px) {
  .deck-nav-arrow {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    height: 48px !important;
    width: 26px !important;
    font-size: 0.85rem;
    opacity: 0.35;
    pointer-events: auto;
    z-index: 80;
  }
  .deck-nav-arrow:hover,
  .deck-nav-arrow:active {
    opacity: 1;
  }
  .deck-nav-arrow-prev {
    left: 2px !important;
    border-radius: 0 8px 8px 0 !important;
  }
  .deck-nav-arrow-next {
    right: 2px !important;
    border-radius: 8px 0 0 8px !important;
  }
  .deck-section-indicators {
    position: fixed !important;
    left: auto !important;
    right: 8px !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding: 10px 5px !important;
    z-index: 92 !important;
    background: rgba(10, 15, 29, 0.42) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .deck-hud-line {
    position: relative !important;
    width: 3.5px !important;
    height: 16px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Generous invisible touch target expansion for effortless thumb tapping */
  .deck-hud-line::before {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: -12px;
    right: -12px;
  }
  .deck-hud-line:active,
  .deck-hud-line:hover {
    height: 22px !important;
    background: rgba(255, 255, 255, 0.85) !important;
  }
  .deck-hud-line.active {
    width: 4px !important;
    height: 30px !important;
    background: var(--color-primary-light, #34d399) !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.85), 0 0 20px rgba(52, 211, 153, 0.4) !important;
    filter: brightness(1.2) !important;
  }
  .deck-hud-line-tooltip {
    bottom: auto !important;
    top: 50% !important;
    left: auto !important;
    right: calc(100% + 12px) !important;
    transform: translateY(-50%) translateX(6px) !important;
  }
  .deck-hud-line-tooltip::after {
    top: 50% !important;
    left: 100% !important;
    transform: translateY(-50%) !important;
    border-width: 4px 0 4px 4px !important;
    border-color: transparent transparent transparent rgba(15, 23, 42, 0.94) !important;
  }
  .deck-hud-line:hover .deck-hud-line-tooltip,
  .deck-hud-line:active .deck-hud-line-tooltip {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
  }
  .deck-copyright {
    bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    z-index: 100035 !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
  }
  .deck-copyright-text,
  .deck-copyright-sep,
  .deck-link-text {
    display: none !important;
  }
  .deck-link-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
  }
  .deck-copyright-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
  }
  .deck-copyright-link:active,
  .deck-copyright-link:hover {
    transform: scale(1.12) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    background: rgba(6, 78, 59, 0.75) !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;
  }
  .deck-slide {
    padding-top: calc(var(--admin-bar-height, 0px) + env(safe-area-inset-top, 0px) + 4.2rem);
    padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
    padding-left: 0.75rem;
    padding-right: 2rem; /* Dedicated gutter for vertical right indicator rail */
  }
  .deck-container {
    max-height: calc(100% - 0.5rem);
    padding: 0 0.5rem;
  }

  /* Slide-out animation when category view or reader is open */
  body.is-category-open .deck-section-indicators,
  body.is-article-open .deck-section-indicators,
  body.is-reading-mode .deck-section-indicators {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(24px) !important;
  }

  /* Light mode adaptation for mobile vertical glass capsule */
  [data-theme="light"] .deck-section-indicators {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  }
  [data-theme="light"] .deck-hud-line-tooltip::after {
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.96) !important;
  }
}

@media (max-width: 480px) {
  /* On compact phones, users swipe smoothly — hide side arrows to eliminate any card tap interference */
  .deck-nav-arrow {
    display: none !important;
  }
  .deck-slide {
    padding-top: calc(var(--admin-bar-height, 0px) + env(safe-area-inset-top, 0px) + 3.6rem);
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: 0.5rem;
    padding-right: 1.85rem; /* Dedicated gutter on compact phones */
  }
  .deck-container {
    padding: 0 0.2rem;
    max-height: calc(100% - 0.25rem);
  }
  .deck-section-indicators {
    right: 6px !important;
    gap: 8px !important;
    padding: 8px 4px !important;
  }
  .deck-hud-line {
    width: 3.5px !important;
    height: 15px !important;
  }
  .deck-hud-line.active {
    width: 4px !important;
    height: 26px !important;
  }
}

/* Large Screens (1600px+ & 2200px+ Ultrawide / 4K) — Retain Proportional Card Layout */
@media (min-width: 1600px) {
  .deck-container {
    max-width: 1100px;
    padding: 0 2rem;
  }
}

@media (min-width: 2200px) {
  .deck-container {
    max-width: 1140px;
    padding: 0 2rem;
  }
}

/* Compact Vertical Height Adaptations (Laptops, 1080p scaled, compact windows) */
@media (max-height: 760px) {
  .deck-slide {
    padding-top: calc(var(--admin-bar-height, 0px) + 2.75rem);
    padding-bottom: 2.75rem;
  }
  .deck-container {
    max-height: calc(100dvh - var(--admin-bar-height, 0px) - 5.5rem);
  }
  .deck-section-indicators {
    bottom: 20px;
  }
  .deck-copyright {
    bottom: 5px;
  }
}

@media (max-height: 560px) {
  .deck-slide {
    padding-top: calc(var(--admin-bar-height, 0px) + 1.85rem);
    padding-bottom: 1.85rem;
  }
  .deck-container {
    max-height: calc(100dvh - var(--admin-bar-height, 0px) - 3.7rem);
  }
  .deck-section-indicators {
    bottom: 14px;
  }
  .deck-copyright {
    display: none;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .deck-backdrop-layer {
    transition: opacity 0.05s ease !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Deck Architecture - Light Mode Overrides
   ========================================================================== */
[data-theme="light"] .deck-nav-arrow {
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  opacity: 0.40;
}

[data-theme="light"] .deck-nav-arrow.is-vicinity {
  opacity: 0.90;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(5, 150, 105, 0.45);
  color: #047857;
  box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.10), 0 0 16px rgba(5, 150, 105, 0.14);
}

[data-theme="light"] .deck-nav-arrow:hover,
[data-theme="light"] .deck-nav-arrow:focus-visible {
  opacity: 1;
  color: #ffffff;
  background: #059669;
  border-color: #047857;
  box-shadow: 0 10px 28px -4px rgba(5, 150, 105, 0.45), 0 2px 8px rgba(5, 150, 105, 0.25);
}

[data-theme="light"] .deck-nav-arrow:hover i,
[data-theme="light"] .deck-nav-arrow:focus-visible i {
  color: #ffffff;
  text-shadow: none;
}



[data-theme="light"] .deck-hud-line {
  background: rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .deck-hud-line:hover {
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .deck-hud-line.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
  filter: none;
}

[data-theme="light"] .deck-hud-line-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .deck-hud-line-tooltip::after {
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

[data-theme="light"] .deck-copyright {
  color: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .backdrop-features {
  background: radial-gradient(circle at 50% 35%, rgba(5, 150, 105, 0.08) 0%, rgba(241, 245, 249, 0.75) 65%, #f8fafc 100%);
}

[data-theme="light"] .backdrop-blog {
  background: radial-gradient(circle at 65% 40%, rgba(2, 132, 199, 0.08) 0%, rgba(241, 245, 249, 0.75) 65%, #f8fafc 100%);
}

[data-theme="light"] .overlay-dark,
[data-theme="light"] .overlay-green,
[data-theme="light"] .overlay-contact {
  background: rgba(248, 250, 252, 0.90);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

[data-theme="light"] .overlay-subtle {
  background: rgba(248, 250, 252, 0.85);
}

/* Item Focus / Highlight Animation when navigated from CURATOR */
.sb-item-focused {
  position: relative !important;
  z-index: 999 !important;
  animation: sbItemFocusPulse 4.2s ease-out forwards !important;
}

@keyframes sbItemFocusPulse {
  0% {
    outline: 3px solid #38bdf8;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.95), 0 0 15px rgba(255, 255, 255, 0.9);
    transform: scale(1.035);
  }
  30% {
    outline: 3px solid #f59e0b;
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.95), 0 0 20px rgba(255, 255, 255, 0.9);
    transform: scale(1.045);
  }
  70% {
    outline: 2px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    transform: scale(1.01);
  }
  100% {
    outline: 2px solid transparent;
    box-shadow: none;
    transform: scale(1);
  }
}

/* ==========================================================================
   CURATOR PREVIEW MODE (Clean in-content display: no menus, no dogs, pure item)
   ========================================================================== */
html[data-curator-preview="1"] .site-header,
html[data-curator-preview="1"] .nav-island,
html[data-curator-preview="1"] .nav-hanging-dogs,
html[data-curator-preview="1"] .mobile-nav-toggle,
html[data-curator-preview="1"] .mobile-nav-drawer,
html[data-curator-preview="1"] .dog-summon-dock,
html[data-curator-preview="1"] .dog-companion-wrap,
html[data-curator-preview="1"] .enzo-speech-bubble,
html[data-curator-preview="1"] #dogCompanionCanvas,
html[data-curator-preview="1"] .dog-character-wrap,
html[data-curator-preview="1"] .music-vinyl-container,
html[data-curator-preview="1"] .music-pill-player,
html[data-curator-preview="1"] .visitor-switcher-dock,
html[data-curator-preview="1"] .sb-visitor-switcher,
html[data-curator-preview="1"] .sb-omni-wrap,
html[data-curator-preview="1"] .sb-omni-btn,
html[data-curator-preview="1"] .deck-progress-bar,
html[data-curator-preview="1"] .deck-indicator-pills,
html[data-curator-preview="1"] .deck-pager-nav,
html[data-curator-preview="1"] .deck-prev-btn,
html[data-curator-preview="1"] .deck-next-btn,
html[data-curator-preview="1"] .welcome-modal-backdrop,
html[data-curator-preview="1"] .newsletter-prompt-backdrop,
html[data-curator-preview="1"] .paw-cursor-glow,
body.is-curator-preview .site-header,
body.is-curator-preview .nav-island,
body.is-curator-preview .nav-hanging-dogs,
body.is-curator-preview .mobile-nav-toggle,
body.is-curator-preview .mobile-nav-drawer,
body.is-curator-preview .dog-summon-dock,
body.is-curator-preview .dog-companion-wrap,
body.is-curator-preview .enzo-speech-bubble,
body.is-curator-preview #dogCompanionCanvas,
body.is-curator-preview .dog-character-wrap,
body.is-curator-preview .music-vinyl-container,
body.is-curator-preview .music-pill-player,
body.is-curator-preview .visitor-switcher-dock,
body.is-curator-preview .sb-visitor-switcher,
body.is-curator-preview .sb-omni-wrap,
body.is-curator-preview .sb-omni-btn,
body.is-curator-preview .deck-progress-bar,
body.is-curator-preview .deck-indicator-pills,
body.is-curator-preview .deck-pager-nav,
body.is-curator-preview .deck-prev-btn,
body.is-curator-preview .deck-next-btn,
body.is-curator-preview .welcome-modal-backdrop,
body.is-curator-preview .newsletter-prompt-backdrop,
body.is-curator-preview .paw-cursor-glow {
  display: none !important;
}

/* Adjust deck slide padding so content is vertically centered without header offset */
html[data-curator-preview="1"] .deck-slide,
body.is-curator-preview .deck-slide {
  padding-top: clamp(0.75rem, 1.5vh, 1.25rem) !important;
  padding-bottom: clamp(0.75rem, 1.5vh, 1.25rem) !important;
}

/* Persistent high-contrast highlight for the focused item in Curator preview */
html[data-curator-preview="1"] .sb-item-focused,
body.is-curator-preview .sb-item-focused {
  position: relative !important;
  z-index: 999 !important;
  outline: 3px solid #10b981 !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.9), 0 0 12px rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.03) !important;
  animation: none !important;
}

/* ==========================================================================
   Faint Screen Version Number (Bottom Left)
   ========================================================================== */
.sb-screen-version-tag {
  position: fixed !important;
  left: calc(14px + env(safe-area-inset-left, 0px)) !important;
  bottom: calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: rgba(255, 255, 255, 0.28) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  z-index: 92 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: auto !important;
  line-height: 1 !important;
  transition: color 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease !important;
  cursor: default;
}

.sb-screen-version-tag:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .sb-screen-version-tag {
  color: rgba(15, 23, 42, 0.32) !important;
  text-shadow: none !important;
}

[data-theme="light"] .sb-screen-version-tag:hover {
  color: rgba(15, 23, 42, 0.85) !important;
  text-shadow: 0 0 6px rgba(15, 23, 42, 0.2) !important;
}

@media (max-width: 480px) {
  .sb-screen-version-tag {
    left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 0.58rem !important;
    color: rgba(255, 255, 255, 0.24) !important;
  }
  [data-theme="light"] .sb-screen-version-tag {
    color: rgba(15, 23, 42, 0.26) !important;
  }
}

html[data-curator-preview="1"] .sb-screen-version-tag,
body.is-curator-preview .sb-screen-version-tag {
  display: none !important;
}


