/* Homepage news desk: the outer Legends Live shell already supplies the main
   navigation, so embedded pages begin with the newswire itself. */
html.is-shell-embedded .site-header { display: none; }
html.is-shell-embedded .home-news-wire-top,
html.is-shell-embedded .site-header.is-scrolled + .home-news-wire-top { top: 0; }
html.is-shell-embedded .hero { padding-top: 88px; }

.home-tour-alert {
  position: fixed;
  z-index: 97;
  top: 182px;
  left: 0;
  right: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 10px 20px;
  padding: 10px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid rgba(213,169,85,.22);
  color: rgba(255,255,255,.84);
  background: linear-gradient(100deg, #070707, #171009 48%, #080606);
  box-shadow: 0 14px 38px rgba(0,0,0,.32);
}
html.is-shell-embedded .home-tour-alert { top: 88px; }
.site-header.is-scrolled ~ .home-tour-alert { top: 164px; }
.hero { padding-top: 240px; }
html.is-shell-embedded .hero { padding-top: 146px; }
.home-tour-alert-kicker { display: flex; align-items: center; gap: 9px; color: #e5bd60; font: 900 8px "DM Sans", sans-serif; letter-spacing: .13em; }
.home-tour-alert-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #e5bd60; box-shadow: 0 0 0 5px rgba(229,189,96,.1); }
.home-tour-alert strong { color: #fff; font: 900 clamp(12px, 1.05vw, 16px)/1.22 "DM Sans", sans-serif; letter-spacing: -.01em; }
.home-tour-alert small { max-width: 320px; font: 700 8px/1.35 "DM Sans", sans-serif; color: rgba(255,255,255,.56); }
.home-tour-alert-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.home-tour-alert-actions a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #fff; font: 900 7px "DM Sans", sans-serif; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.home-tour-alert-actions a:first-child { border-color: rgba(229,24,43,.72); background: #d91429; }
.home-tour-alert.is-active { background: radial-gradient(circle at 24% 50%, rgba(229,24,43,.18), transparent 34%), linear-gradient(100deg, #070707, #171009 48%, #080606); }
.home-tour-alert.is-active .home-tour-alert-kicker i { background: #f01b33; box-shadow: 0 0 0 5px rgba(240,27,51,.12), 0 0 16px rgba(240,27,51,.68); animation: homeTourPulse 1.8s ease-in-out infinite; }

.home-news-wire-top {
  min-height: 88px;
  grid-template-columns: 178px minmax(0, 1fr) 176px;
  border-color: rgba(213, 169, 85, .28);
  background: linear-gradient(90deg, #110608, #050505 62%, #0b0806);
  box-shadow: 0 16px 46px rgba(0,0,0,.58), 0 0 38px rgba(229,24,43,.1);
}
.home-news-wire-top .home-news-label {
  position: relative;
  padding: 12px 16px;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, #f11d34, #9e0715);
}
.home-news-wire-top .home-news-label small { font-size: 6px; letter-spacing: .13em; }
.home-news-wire-top .home-news-label strong {
  font-size: 25px;
  line-height: .78;
  letter-spacing: -.025em;
}
.home-news-wire-top .home-news-label::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50% -25%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 49%, transparent 60%);
  transform: translateX(-70%);
  animation: homeNewsLabelSweep 5.8s ease-in-out infinite;
}
.home-news-wire-top .home-news-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  background:
    radial-gradient(circle at 22% 50%, rgba(229,24,43,.14), transparent 30%),
    linear-gradient(90deg, rgba(255,255,255,.018), transparent);
}
.home-news-wire-top .home-news-track > div {
  gap: 11px;
  padding: 7px 0;
  animation-duration: 135s;
}
.home-news-wire-top .home-news-track:hover > div,
.home-news-wire-top .home-news-track:focus-within > div { animation-play-state: paused; }
.home-news-wire-top .home-news-track .home-news-story {
  width: clamp(280px, 25vw, 405px);
  min-height: 70px;
  padding: 5px 13px 5px 5px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  box-shadow: 0 13px 34px rgba(0,0,0,.28);
  white-space: normal;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.home-news-wire-top .home-news-track .home-news-story:hover,
.home-news-wire-top .home-news-track .home-news-story:focus-visible {
  border-color: rgba(236,44,58,.72);
  background: linear-gradient(120deg, rgba(236,44,58,.14), rgba(255,255,255,.025));
  transform: translateY(-2px);
  outline: 0;
}
.home-news-story-media {
  position: relative;
  width: 84px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: rgba(255,255,255,.76);
  background:
    linear-gradient(145deg, rgba(229,24,43,.48), rgba(20,8,10,.94)),
    #19080c;
  font: 900 8px "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-align: center;
}
.home-news-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: inherit;
  pointer-events: none;
}
.home-news-story-fallback {
  position: relative;
  z-index: 1;
}
.home-news-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.06) contrast(1.04);
  transition: opacity .35s ease, transform .45s ease;
  transform: scale(1.07);
}
.home-news-story-media.has-image img { opacity: 1; transform: scale(1); }
.home-news-story-media.has-image .home-news-story-fallback { opacity: 0; }
.home-news-story-copy { min-width: 0; display: grid; gap: 6px; }
.home-news-story-copy small {
  color: #e5bd60;
  font: 900 7px "DM Sans", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-news-story-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.92);
  font: 800 10px/1.28 "DM Sans", sans-serif;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-news-wire-top .home-news-track i {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
}
.home-news-wire-top .home-news-open {
  padding: 14px 17px;
  background: linear-gradient(145deg, #110d0a, #080707);
}
.home-news-wire-top .home-news-open span { font-size: 5px; }
.home-news-wire-top .home-news-open b { font-size: 8px; line-height: 1.4; }

@keyframes homeNewsLabelSweep {
  0%, 64% { transform: translateX(-70%); opacity: 0; }
  72% { opacity: 1; }
  88%, 100% { transform: translateX(70%); opacity: 0; }
}
@keyframes homeTourPulse { 50% { transform: scale(.72); opacity: .72; } }

@media (max-width: 900px) {
  .home-tour-alert { grid-template-columns: auto minmax(0,1fr); }
  .home-tour-alert small, .home-tour-alert-actions { grid-column: 2; max-width: none; justify-content: flex-start; }
  .home-news-wire-top { grid-template-columns: 148px minmax(0,1fr); }
  .home-news-wire-top .home-news-track .home-news-story { width: min(74vw, 420px); }
  .home-news-wire-top .home-news-label { padding-inline: 12px; }
  .home-news-wire-top .home-news-label strong { font-size: 22px; }
}
@media (max-width: 820px) {
  .home-tour-alert, .site-header.is-scrolled ~ .home-tour-alert { top: 150px; }
  html.is-shell-embedded .home-tour-alert { top: 78px; }
  .hero { padding-top: 320px; }
  html.is-shell-embedded .hero { padding-top: 226px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 360px; }
  html.is-shell-embedded .hero { padding-top: 270px; }
  .home-news-wire-top { min-height: 78px; grid-template-columns: 112px minmax(0,1fr); }
  .home-news-wire-top .home-news-track > div { padding-block: 5px; }
  .home-news-wire-top .home-news-label { gap: 6px; padding: 8px; }
  .home-news-wire-top .home-news-label strong { font-size: 18px; }
  .home-news-wire-top .home-news-track .home-news-story {
    width: min(78vw, 350px);
    min-height: 66px;
    grid-template-columns: 62px minmax(0,1fr);
    gap: 9px;
  }
  .home-news-story-media { width: 62px; height: 56px; }
  .home-news-story-copy small { font-size: 6px; }
  .home-news-story-copy b { font-size: 10px; }
  .home-tour-alert { grid-template-columns: 1fr; padding: 11px 14px; }
  .home-tour-alert small, .home-tour-alert-actions { grid-column: 1; }
  .home-tour-alert-actions a { padding: 7px 8px; font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-news-wire-top .home-news-label::after,
  .home-news-story-media img { transition: none; }
  .home-tour-alert.is-active .home-tour-alert-kicker i { animation: none; }
}
