/* ------------------------------
   HEADER STYLES
   ------------------------------ */
:root {
  --header-bg: rgba(239, 236, 231, 0.82);
  --header-pink: #ff2d55;
  --header-pink-light: rgba(255, 45, 85, 0.08);
  --header-black: #0f0f0f;
  --header-gray: #000000;
  --header-border: rgba(0, 0, 0, 0.2);
}

header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: var(--header-height-desktop, calc(62px + env(safe-area-inset-top, 0px)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--safe-top, env(safe-area-inset-top, 0px)) max(48px, var(--safe-right, 0px)) 0 max(48px, var(--safe-left, 0px));
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
  font-family: 'Satoshi', sans-serif;
}

header.main-header,
.mobile-header,
.top-bar,
.preview-fixed-header {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              opacity 0.4s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease !important;
  will-change: transform, opacity;
}

/* Full header style for homepage only */
header.main-header.full-header {
  background: rgba(255, 255, 255, 0.01);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

header.main-header.header-hidden,
.mobile-header.header-hidden,
.top-bar.header-hidden,
.preview-fixed-header.header-hidden {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Visible state */
header.main-header.header-visible,
.mobile-header.header-visible,
.top-bar.header-visible,
.preview-fixed-header.header-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

header.main-header .logo,
header.main-header .app-logo,
.top-bar .app-logo,
.preview-fixed-header .output-logo-center {
  font-family: 'Satoshi', sans-serif;
  font-size: var(--logo-font-size, 24px);
  font-weight: 700; /* Standardized to 700 */
  text-decoration: none;
  color: #000 !important;
  display: flex;
  align-items: center;
  letter-spacing: -0.025em;
  gap: 0;
  cursor: pointer;
}

header.main-header .logo .lens,
header.main-header .app-logo .lens,
.top-bar .app-logo .lens,
.preview-fixed-header .output-logo-center .lens {
  color: #F12850 !important;
}

@media (min-width: 1025px) {
  header.main-header .logo,
  header.main-header .app-logo,
  .top-bar .app-logo,
  .preview-fixed-header .output-logo-center {
    letter-spacing: -0.03em;
  }
}


header.main-header nav, header.main-header .center-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

header.main-header .app-logo {
  justify-self: start;
}

header.main-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-wrap: nowrap !important;
}

header.main-header .header-actions a {
  text-decoration: none;
  font-size: calc(var(--btn-font-size, 18px) - 2px);
}

header.main-header nav a, header.main-header .center-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--header-gray);
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.18s;
}

header.main-header nav a:hover {
  color: var(--header-black);
  background: rgba(0, 0, 0, 0.05);
}

header.main-header .nav-cta {
  background: var(--header-black) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

header.main-header .nav-cta:hover {
  background: var(--header-pink) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.3) !important;
}

header.main-header .nav-kofi {
  background: transparent !important;
  color: var(--header-black) !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  margin-left: 6px;
  border: 2px solid var(--header-black) !important;
  transition: all 0.2s !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

header.main-header .nav-kofi:hover {
  background: #ffffff !important;
  transform: translateY(-1px);
}

/* Narrow Laptop Fixes */
@media (min-width: 1025px) and (max-width: 1180px) {
  header.main-header .nav-cta,
  header.main-header .nav-kofi {
    padding: 6px 14px !important;
    font-size: 14px !important;
    margin-left: 4px;
  }
  header.main-header .header-actions {
    gap: 4px;
  }
}

/* Hide desktop header on mobile and portrait tablets only */
@media (max-width: 1024px) and (orientation: portrait) {
  header.main-header {
    display: none !important;
  }
}
@media (max-width: 767px) {
  header.main-header {
    display: none !important;
  }
}

/* Hide mobile header on desktop and tablet landscape */
@media (min-width: 1025px) {
  .mobile-header, .mobile-menu-drawer, .mobile-menu-overlay {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .mobile-header, .mobile-menu-drawer, .mobile-menu-overlay {
    display: none !important;
  }
}


@media (max-width: 1024px) and (orientation: portrait), (max-width: 767px) {
  .mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--header-height-mobile, calc(64px + env(safe-area-inset-top, 0px))) !important;
    padding: 0 max(20px, var(--safe-right, 0px)) 0 max(20px, var(--safe-left, 0px)) !important;
    padding-top: var(--safe-top, env(safe-area-inset-top, 0px)) !important;
    background: rgba(244, 244, 240, 0.01) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 10005 !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Modern 2-Line Hamburger — 44×44 hit area; icon lines stay ~18px */
  .mobile-menu-toggle {
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
    min-width: var(--touch-min, 44px);
    min-height: var(--touch-min, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    order: 3;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.02);
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: #000;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .mobile-menu-toggle span:last-child {
    width: 18px;
  }

  .mobile-menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg) !important;
    width: 18px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  }

  .mobile-menu-toggle.active span:last-child {
    transform: translateY(-3px) rotate(-45deg) !important;
    width: 18px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  }

  /* Center: Logo */
  .mobile-logo {
    position: absolute !important;
    left: 50% !important;
    top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 32px) !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    font-family: 'Satoshi', sans-serif;
    font-size: var(--logo-font-size, 18px);
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    white-space: nowrap;
    order: 2; /* Centered in absolute position */
  }

  @media (min-width: 768px) {
    .mobile-logo {
      font-size: var(--logo-font-size, 24px) !important;
    }
  }

  .mobile-logo .lens {
    color: #F12850;
  }

  /* Tablet portrait: taller app header + larger menu button */
  @media (min-width: 768px) and (max-width: 1024px) {
    .mobile-header {
      height: var(--header-height-mobile, calc(80px + env(safe-area-inset-top, 0px))) !important;
      padding: 0 max(24px, var(--safe-right, 0px)) 0 max(24px, var(--safe-left, 0px)) !important;
      padding-top: var(--safe-top, env(safe-area-inset-top, 0px)) !important;
    }

    .mobile-logo {
      top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 40px) !important;
      font-size: var(--logo-font-size, 24px) !important;
    }

    .mobile-menu-toggle {
      width: 52px !important;
      height: 52px !important;
      min-width: 52px !important;
      min-height: 52px !important;
      border-radius: 14px !important;
      /* Keep original line gap/size so hamburger→X morph stays correct */
      gap: 5px !important;
    }

    .mobile-menu-toggle span {
      width: 18px !important;
      height: 2px !important;
    }

    .mobile-menu-toggle span:last-child {
      width: 18px !important;
    }

    .mobile-menu-toggle.active span:first-child {
      transform: translateY(4px) rotate(45deg) !important;
      width: 18px !important;
    }

    .mobile-menu-toggle.active span:last-child {
      transform: translateY(-3px) rotate(-45deg) !important;
      width: 18px !important;
    }

    .mobile-menu-close {
      width: 48px !important;
      height: 48px !important;
      border-radius: 14px !important;
    }

    .mobile-menu-close svg {
      width: 22px !important;
      height: 22px !important;
    }
  }

  /* Right: CTA */
  .mobile-cta {
    display: none !important;
  }

  /* Compact adjustment for smaller screens */
  @media (max-width: 370px) {
    .mobile-logo {
      font-size: 17px !important;
    }
    .mobile-cta {
      padding: 0 14px;
      font-size: 12px;
      height: 34px;
      min-width: 88px;
      border-radius: 8px;
    }
    .mobile-header {
      padding-left: 16px;
      padding-right: 16px;
    }
  }

  .mobile-cta:active {
    transform: scale(0.96);
    background: #F12850;
  }

  /* Hide header CTA when drawer is open to avoid redundancy */
  .mobile-menu-toggle.active ~ .mobile-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
  }

  /* --- BACKDROP OVERLAY --- */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* --- TOP DROPDOWN DRAWER (Slides down from behind header) --- */
  .mobile-menu-drawer {
    position: fixed;
    top: 0; /* Start from the very top to prevent any gaps */
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100dvh;
    max-height: 100dvh;
    background: #F4F4F0;
    z-index: 10004; /* Above footer (9999) */
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height-mobile, calc(64px + env(safe-area-inset-top, 0px))); /* Offset content by header height */
    padding-bottom: 32px;
    padding-left: var(--safe-left, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-right, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    transform: translateY(-101%); /* Start tucked behind header */
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-menu-drawer.active {
    transform: translateY(0);
  }

  /* --- Hide redundant drawer header (using main header toggle) --- */
  .mobile-menu-drawer-header {
    display: none;
  }

  .mobile-menu-drawer-logo {
    font-family: 'Satoshi', sans-serif;
    font-size: var(--logo-font-size, 18px);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .mobile-menu-drawer-logo .lens {
    color: #F12850;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .mobile-menu-close:active {
    background: rgba(241, 40, 80, 0.1);
    border-color: rgba(241, 40, 80, 0.3);
    transform: scale(0.92);
  }

  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
  }

  /* --- Nav Links --- */
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    flex-shrink: 0;
  }

  .mobile-menu-links a {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
    border-left: 3px solid transparent;
    /* Entrance animation */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease,
                color 0.15s ease, background 0.15s ease,
                border-color 0.15s ease;
  }

  .mobile-menu-links a:active {
    background: rgba(241, 40, 80, 0.08);
    color: #F12850;
    border-left-color: #F12850;
  }

  .mobile-menu-drawer.active .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered entrance */
  .mobile-menu-drawer.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.06s; }
  .mobile-menu-drawer.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.10s; }
  .mobile-menu-drawer.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.14s; }
  .mobile-menu-drawer.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.18s; }

  /* --- Divider --- */
  .mobile-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 20px;
    flex-shrink: 0;
  }

  /* --- Drawer CTA --- */
  .mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.22s, transform 0.35s ease 0.22s;
  }

  .mobile-menu-drawer.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: #000;
    color: #fff;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: normal;
  }

  .mobile-menu-cta a:active {
    background: #F12850;
    transform: scale(0.97);
  }

  .mobile-menu-cta a.mobile-kofi {
    background: transparent;
    color: #000;
    border: 2px solid #000;
  }

  .mobile-menu-cta a.mobile-kofi:active {
    background: #f5f5f5;
    transform: scale(0.97);
  }

  /* --- Drawer Footer --- */
  .mobile-menu-footer {
    margin-top: auto;
    padding: 20px 20px;
    padding-bottom: max(20px, var(--safe-bottom, env(safe-area-inset-bottom, 16px)));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.35s ease 0.28s;
  }

  .mobile-menu-drawer.active .mobile-menu-footer {
    opacity: 1;
  }

  .mobile-menu-footer-brand {
    font-family: 'Satoshi', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.5;
  }

  .mobile-menu-footer-version {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-family: 'Satoshi', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.65) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* --- PREMIUM BLURRED MINIMAL HEADERS (Mobile & Tablet) --- */
@media (max-width: 1024px) {
  .mobile-header.minimal,
  .main-header.minimal,
  .preview-fixed-header,
  .error-nav {
    background: rgba(244, 244, 240, 0.01) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    align-items: center !important;
    justify-content: center !important;
    height: var(--header-height-mobile, calc(64px + env(safe-area-inset-top, 0px))) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10005 !important;
    padding-top: var(--safe-top, env(safe-area-inset-top, 0px)) !important;
  }

  @media (min-width: 768px) {
    .mobile-header.minimal,
    .main-header.minimal,
    .preview-fixed-header,
    .error-nav {
      height: var(--header-height-mobile, calc(80px + env(safe-area-inset-top, 0px))) !important;
    }

    .mobile-header.minimal .mobile-logo,
    .main-header.minimal .app-logo,
    .preview-fixed-header .output-logo-center,
    .error-nav .app-logo {
      top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 40px) !important;
      font-size: var(--logo-font-size, 24px) !important;
    }
  }

  /* Visibility Logic: Ensure only one header is visible */
  .mobile-header.minimal {
    display: flex !important;
  }
  @media (min-width: 768px) {
    .mobile-header.minimal { display: none !important; }
    .main-header.minimal { display: flex !important; }
  }
  @media (max-width: 767px) {
    .main-header.minimal { display: none !important; }
  }

  /* Standardized Logo Size for Minimal Headers */
  .mobile-header.minimal .mobile-logo,
  .main-header.minimal .app-logo,
  .preview-fixed-header .output-logo-center,
  .error-nav .app-logo {
    font-size: var(--logo-font-size, 18px) !important;
    font-weight: 700 !important;
    font-family: 'Satoshi', sans-serif !important;
    letter-spacing: -0.025em !important;
    position: absolute !important;
    left: 50% !important;
    top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 32px) !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: #000 !important;
  }

  /* Ensure the "Lens" part is always pink */
  .mobile-header.minimal .lens,
  .main-header.minimal .lens,
  .preview-fixed-header .lens,
  .error-nav .lens {
    color: #F12850 !important;
  }

  @media (min-width: 768px) {
    .mobile-header.minimal .mobile-logo,
    .main-header.minimal .app-logo,
    .preview-fixed-header .output-logo-center {
      font-size: var(--logo-font-size, 24px) !important;
    }
  }

  .mobile-header.minimal .mobile-menu-toggle,
  .mobile-header.minimal .mobile-cta,
  .main-header.minimal nav {
    display: none !important;
  }

}

/* Unified mobile/tablet vs desktop visibility */
@media (min-width: 1025px) {
  .mobile-header, .mobile-menu-drawer {
    display: none !important;
  }
}

/* --- ANNOUNCEMENT BAR --- */
:root {
  --announcement-height: 44px;
}
@media (min-width: 1025px) {
  :root {
    --announcement-height: 56px;
  }
}

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Content height + notch clearance so text isn't under the status bar */
  height: calc(var(--announcement-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background-color: #F4F4F0;
  color: #000;
  z-index: 10006; /* above header */
  overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.15); font-family: 'Satoshi', sans-serif; font-size: 15px;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, visibility 0.4s ease;
  will-change: transform, opacity;
}

@media (min-width: 1025px) {
  .announcement-bar {
    font-size: 14px;
  }
}
.announcement-slider {
  animation: ann-slide 10s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.announcement-slide {
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  letter-spacing: -0.01em;
}
.announcement-slide span {
  display: inline-block;
  line-height: 1.3;
}
@keyframes ann-slide {
  0%, 40% { transform: translateY(0); }
  45%, 90% { transform: translateY(calc(var(--announcement-height) * -1)); }
  95%, 100% { transform: translateY(calc(var(--announcement-height) * -2)); }
}

body.has-announcement header.main-header,
body.has-announcement .mobile-header,
body.has-announcement .top-bar {
  top: calc(var(--announcement-height) + env(safe-area-inset-top, 0px)) !important;
}
body.has-announcement header.main-header.header-hidden,
body.has-announcement .mobile-header.header-hidden,
body.has-announcement .top-bar.header-hidden {
  transform: translateY(calc((var(--announcement-height) + env(safe-area-inset-top, 0px)) * -1)) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.has-announcement .mobile-menu-drawer.header-hidden {
  transform: translateY(calc(-200% - 44px)) !important;
}
body.has-announcement .mobile-menu-drawer {
  padding-top: calc(var(--header-height-mobile, calc(64px + env(safe-area-inset-top, 0px))) + var(--announcement-height, 44px));
}

@media (max-width: 1024px) {
  .announcement-bar {
    /* height already includes safe-top via base rule; keep content band at 44 */
    min-height: calc(44px + env(safe-area-inset-top, 0px));
  }
  .announcement-slide {
    height: 44px; padding: 4px 16px; line-height: 1.3; font-size: 12px;
    align-items: center;
  }
  @keyframes ann-slide-mobile {
    0%, 40% { transform: translateY(0); }
    45%, 90% { transform: translateY(-44px); }
    95%, 100% { transform: translateY(-88px); }
  }
  .announcement-slider {
    animation: ann-slide-mobile 10s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
  }
  body.has-announcement header.main-header,
  body.has-announcement .mobile-header,
  body.has-announcement .top-bar {
    top: calc(44px + env(safe-area-inset-top, 0px)) !important;
  }
  body.has-announcement header.main-header.header-hidden,
  body.has-announcement .mobile-header.header-hidden,
  body.has-announcement .top-bar.header-hidden {
    transform: translateY(calc(-44px - env(safe-area-inset-top, 0px))) !important;
  }
  body.has-announcement .mobile-menu-drawer.header-hidden {
    transform: translateY(calc(-200% - 44px)) !important;
  }
  body.has-announcement .mobile-menu-drawer {
    padding-top: calc(var(--header-height-mobile, calc(64px + env(safe-area-inset-top, 0px))) + var(--announcement-height, 44px));
  }
}
