/* Polar expedition cover */
body:not(.underway) .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #081b26;
  min-height: 72px;
  padding-block: 0;
  border-bottom: 1px solid #8ecad334;
}
body:not(.underway) .brand { color: #f0f4ee; }
body:not(.underway) .brand svg { color: #a4e6e8; }
body:not(.underway) .site-nav a { color: #c4d5da; }
body:not(.underway) .site-nav a:hover { color: #fff; }
.nav-game {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 38px;
  padding: .4rem .95rem;
  border: 1px solid #8fbac582;
  border-radius: 3px;
  color: #eaf7fa;
  font-size: .88rem;
  font-weight: 760;
}
.nav-game svg { width: .75rem; height: .75rem; color: #ffb87e; }
.nav-game:hover { background: #1d3842; }
.game-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #081b26;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(545px, 78svh, 810px);
  padding: 58px var(--gutter) 82px;
}
.cover-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 25%;
}
.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 62%;
}
.cover-art::after {
  position: absolute;
  content: '';
  inset: 0;
  background: linear-gradient(90deg,#081b26 0%,#081b26ec 7%,#081b2694 22%,#081b2612 45%,transparent 63%),
              linear-gradient(0deg,#061924cf 0%,#071e2d25 19%,transparent 45%);
}
.cover-copy { position: relative; max-width: 640px; z-index: 1; }
.cover-kind {
  display: flex;
  gap: .65rem;
  align-items: center;
  font: 650 .79rem var(--mono);
  color: #acf3fa;
  letter-spacing: .102em;
  text-transform: uppercase;
}
.cover-kind svg { width: 28px; height: 18px; }
#heroTitle {
  color: #f6f3ea;
  font-size: clamp(5.9rem,8.5vw,10.1rem);
  letter-spacing: -.065em;
  line-height: .82;
  margin: .23em 0 .25em -.035em;
}
#heroTitle span { font: 800 .92em/.95 var(--body); letter-spacing: -.081em; }
#heroTitle em {
  display: block;
  font: italic 400 1.16em/.77 var(--display);
  letter-spacing: -.048em;
  padding-bottom: .03em;
  color: #badfe1;
}
.cover-lead { max-width: 37ch; color: #e3edf0; font-size: clamp(1rem,1.3vw,1.22rem); line-height: 1.55; text-wrap: pretty; }
.cover-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-top: 1.65rem; }
.play-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 54px;
  border-radius: 3px;
  padding: .75rem 1.25rem;
  color: #172730;
  background: #ffb67b;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 16px #07151e38;
  transition: transform .18s, background .18s;
}
.play-game:hover { transform: translateY(-2px); background: #ffd3a4; }
.play-game svg { width: 18px; height: 18px; }
.cover-preview { padding: 0; text-decoration: underline; display: inline-flex; gap: .47rem; align-items: center; min-height: 44px; color: #e6f5f6; font-weight: 700; font-size: .9rem; text-underline-offset: 5px; text-decoration-color: #99babeb0; }
.cover-preview svg { width: 18px; height: 18px; }
.cover-preview:hover { color: #ffcc9a; }
.cover-current { position: absolute; pointer-events: none; z-index: -1; left: 0; bottom: -29px; width: min(49vw,720px); height: auto; color: #69b4c13d; }
.current-pulse { stroke-dasharray: 12 540; animation: cover-current 8s linear infinite; }
@keyframes cover-current { from { stroke-dashoffset: 120; } to { stroke-dashoffset: -432; } }
.cover-folio {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  left: var(--gutter);
  display: flex;
  justify-content: end;
  align-items: end;
  gap: 1.6rem;
}
.cover-location { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 .58rem; justify-content: start; color: #fff; text-shadow: 0 1px 6px #0317208f; }
.folio-rule { grid-row: 1; width: 25px; height: 1px; background: #a9e3e5; }
#photoCaption { font: 680 .9rem var(--body); }
.cover-location a { grid-column: 2; color: #e4edee; font-size: .75rem; text-decoration-color: #d0dddc77; }
.folio-controls { display: flex; align-items: center; }
.folio-controls button { width: 34px; min-height: 40px; padding: 0 3px; }
.folio-controls button::before { content: ''; display: block; height: 3px; background: #c6d4d49c; border-radius: 1px; }
.folio-controls button:hover::before { background: #fff; }
.folio-controls button[aria-pressed=true]::before { background: #ffb67b; }
.atlas-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 var(--gutter); background: #0e2936; border-block: 1px solid #91c9d13d; }
.atlas-index a { display: flex; align-items: center; justify-content: center; gap: clamp(10px,1.4vw,25px); padding: 18px 8px; min-height: 82px; font: 400 clamp(1.55rem,2.1vw,2.6rem)/1 var(--display); color: #eaf0e7; text-decoration: none; }
.atlas-index a + a { border-left: 1px solid #8ac5d03d; }
.atlas-index em { color: #b1d6d8; }
.atlas-index svg { width: 33px; height: 33px; flex-shrink: 0; fill: none; stroke: #91d5e4; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.atlas-index .index-route { stroke: #ffb67b; stroke-dasharray: 2 2; }
.atlas-index a:hover,.atlas-index a:focus-visible { background: #193b48; }
:is(#ship-atlas,#voyage-atlas,#interieur,#voilier) { scroll-margin-top: 72px; }
@media (min-width:1600px) {
  .cover-art { left: 27%; }
  .cover-copy { max-width: 760px; }
}
@media (min-width:701px) and (max-width:990px) {
  .game-cover { min-height: 535px; }
  .cover-copy { max-width: 475px; }
  .cover-art { left: 17%; }
  .cover-art::after { background: linear-gradient(90deg,#081b26,#081b26d9 18%,#081b2622 62%,transparent),linear-gradient(0deg,#081b26c4,transparent 30%); }
  .cover-actions { gap: 10px 15px; }
}
@media (max-width:720px) {
  body:not(.underway) .topbar { display: flex; justify-content: space-between; min-height: 58px; }
  body:not(.underway) .site-nav { display: none; }
  :is(#ship-atlas,#voyage-atlas,#interieur,#voilier) { scroll-margin-top: 58px; }
  .nav-game { min-height: 35px; }
  .game-cover { min-height: 0; padding: clamp(192px,45vw,305px) var(--gutter) 39px; }
  .cover-art { inset: 0 0 auto; height: clamp(280px,68vw,435px); }
  .cover-art img { object-position: 50% 56%; }
  .cover-art::after { background: linear-gradient(0deg,#081b26 0%,#081b26be 16%,#081b2620 43%,transparent 65%); }
  .cover-kind { font-size: .72rem; letter-spacing: .08em; }
  .cover-kind svg { width: 23px; }
  #heroTitle { display: flex; align-items: baseline; gap: .12em; font-size: clamp(3.35rem,12.3vw,6.6rem); margin: 10px 0 18px; letter-spacing: -.05em; }
  #heroTitle em { display: inline; line-height: .92; }
  .cover-lead { max-width: 43ch; line-height: 1.5; }
  .cover-actions { margin-top: 17px; gap: 4px 14px; }
  .play-game { min-height: 47px; font-size: .94rem; padding-inline: 1rem; }
  .cover-preview { font-size: .84rem; }
  .cover-folio { top: 10px; left: auto; right: 13px; bottom: auto; background: #0b2330c9; align-items: center; gap: 6px; border-radius: 2px; padding: 4px 6px 4px 9px; }
  #photoCaption { font-size: .72rem; }
  .cover-location a { font-size: .66rem; }
  .folio-rule { display: none; }
  .cover-location { display: flex; align-items: start; flex-direction: column; line-height: 1.2; }
  .folio-controls button { width: 26px; min-height: 34px; }
  .cover-current { width: 370px; left: auto; right: -58px; opacity: .65; bottom: -48px; }
  .atlas-index { padding: 0 7px; }
  .atlas-index a { flex-direction: column; text-align: center; min-height: 80px; gap: 4px; padding: 7px 3px; font-size: clamp(1rem,3.8vw,1.55rem); }
  .atlas-index a svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .current-pulse { animation: none; }
  .play-game { transition: none; }
}
.slalom-preview {
  width: min(840px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #8ab9c283;
  border-radius: 5px;
  background: #102733;
  color: #f4f4ea;
  box-shadow: 0 24px 110px #03121dae;
  overflow-y: auto;
}
.slalom-preview::backdrop { background: #04111de8; }
.preview-heading,.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 19px; }
.preview-heading h2 { font-size: clamp(1.8rem,3vw,2.6rem); }
.preview-heading button { font-size: 1.6rem; }
#slalomFilm { display: block; width: 100%; max-height: 64dvh; background: #041622; }
.preview-footer p { font-size: .95rem; max-width: 48ch; }
.preview-footer button { min-height: 42px; white-space: nowrap; }
@media (max-width:660px) {
  .preview-footer { flex-direction: column; align-items: start; }
}
