/* The black rectangle and the light text share a mask; scenery stays visible outside. */
.warrior-home .warrior-content { overflow-anchor: none; padding-bottom: var(--home-exit-space, 75svh); }
.warrior-home .warrior-card-slot:has(.home-reveal) { display: block; }
.warrior-home .warrior-card.home-reveal {
  --reveal-y: 0px;
  --reveal-x: 0px;
  position: sticky;
  top: var(--home-stick-top, var(--home-safe-top, 60svh));
  width: min(880px, 100%);
  margin-inline: auto;
  min-height: clamp(160px, 26svh, 240px);
  padding: 0;
  display: grid;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  opacity: 1;
  filter: none;
  transition: none;
  visibility: visible;
  pointer-events: auto;
}
@property --home-exit-mask { syntax: '<number>'; inherits: true; initial-value: 1; }
.warrior-home .warrior-card-slot:has(.home-scroll-motion) { view-timeline: --home-card block; view-timeline-inset: 0; }
.warrior-home .warrior-card.home-scroll-motion {
  position: relative;
  top: auto;
  animation: var(--home-position-name) linear both, home-card-unmask ease-in-out both;
  animation-duration: auto;
  animation-timeline: --home-card, --home-card;
  animation-range: entry 0% exit calc(100% + var(--home-travel-tail)),
    exit var(--home-mask-start) exit calc(100% + var(--home-mask-tail));
  will-change: transform;
}
@keyframes home-card-unmask { from { --home-exit-mask: 1; } to { --home-exit-mask: 0; } }
@media (prefers-reduced-motion: reduce) {
  .warrior-home .warrior-card.home-scroll-motion { animation-name: var(--home-position-name); }
}
.home-section-text { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; min-width: 0; }
.home-reveal::before {
  content: "";
  position: absolute;
  inset: calc(var(--reveal-y) * var(--home-exit-mask, 1)) calc(var(--reveal-x) * var(--home-exit-mask, 1));
  background: #161713cc;
  border: 2px solid #ffdc82;
  pointer-events: none;
}
.home-reveal::after {
  content: "";
  position: absolute;
  inset: calc(var(--reveal-y) * var(--home-exit-mask, 1) - 12px) calc(var(--reveal-x) * var(--home-exit-mask, 1) - 12px);
  border: 2px solid #ffdc82;
  pointer-events: none;
}
.home-reveal-content {
  position: relative;
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
}
.warrior-home .home-reveal h2 {
  color: var(--mars-rune-red, #cb6068);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.warrior-home .home-reveal .category-arrow { margin-top: 0; color: #fff4dc; font-size: 22px; line-height: 1; }
.home-section-description { font-size: 15px; line-height: 1.5; text-wrap: balance; }
.home-news-title, .home-news-date { display: block; }
.home-news-date { margin-top: 4px; font-size: 13px; }
.warrior-home .home-reveal .home-section-description { max-width: 100%; color: #fff4dc; font-size: 15px; line-height: 1.5; }
.home-reveal-inside {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(calc(var(--reveal-y) * var(--home-exit-mask, 1)) calc(var(--reveal-x) * var(--home-exit-mask, 1)));
}
.warrior-home .home-reveal-inside h2,
.warrior-home .home-reveal-inside .home-section-description,
.warrior-home .home-reveal-inside .category-arrow { color: #fff4dc; }
.warrior-home .home-reveal:focus-visible {
  outline: none;
}
.warrior-home .home-reveal:focus-visible::after {
  border-width: 3px;
  box-shadow: 0 0 0 3px #ffdc8233;
}
@media (max-width: 560px) {
  .warrior-home .warrior-card.home-reveal { min-height: 160px; }
  .home-reveal-content { padding: 16px; gap: 10px; }
  .warrior-home .home-reveal h2 { font-size: clamp(30px, 8vw, 42px); }
  .warrior-home .home-reveal .home-section-description { font-size: 14px; }
}
@media (max-height: 600px) {
  .warrior-home .warrior-card.home-reveal { min-height: 160px; }
  .home-reveal-content { padding-block: 16px; gap: 10px; }
  .warrior-home .home-reveal h2 { font-size: clamp(30px, 4vw, 48px); }
}
@media (max-height: 450px) {
  .warrior-home .warrior-card.home-reveal { min-height: 0; }
  .home-reveal-content { padding-block: 12px; gap: 8px; }
  .warrior-home .home-reveal h2 { font-size: 32px; }
  .warrior-home .home-reveal .home-section-description { font-size: 14px; }
  .warrior-home .home-reveal .home-reveal-content { flex-direction: row; padding: 8px 20px; }
  .warrior-home .home-reveal h2 { font-size: 28px; }
  .warrior-home .home-reveal .home-section-text { max-width: calc(100% - 40px); }
  .warrior-home .warrior-scroll-cue:not(.warrior-scroll-cue-up) { bottom: 4px; }
}
@media (forced-colors: active), print {
  .home-reveal::before, .home-reveal::after, .home-reveal-inside { display: none; }
  .warrior-home .warrior-card.home-reveal { background: Canvas; color: CanvasText; visibility: visible; transform: none !important; translate: none; animation: none; }
  .warrior-home .home-reveal h2, .warrior-home .home-reveal .home-section-description,
  .warrior-home .home-reveal .category-arrow { color: CanvasText; }
}
@media print { .warrior-home .warrior-content { padding-bottom: 20px; } }
