/* SafeHarborGames modular header — edit the variables below to tune the theme. */
:root {
  --sh-navy: #061b35;
  --sh-navy-mid: #0b3158;
  --sh-blue: #12649b;
  --sh-gold: #d6a744;
  --sh-gold-light: #ffe6a0;
  --sh-silver: #d7e5f1;
  --sh-text: #f7fbff;
  --sh-header-height: 142px;
  --sh-frame-radius: 10px;
}
* { box-sizing: border-box; }
.sh-header {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: var(--sh-header-height);
  overflow: hidden;
  color: var(--sh-text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(35,125,183,.42), transparent 48%),
    linear-gradient(180deg, #123c62 0%, #082849 48%, #04182f 100%);
  border: 3px solid #b98225;
  border-radius: var(--sh-frame-radius);
  box-shadow: inset 0 0 0 2px #ffe39a, inset 0 0 0 5px #123e63,
              inset 0 0 22px rgba(0,0,0,.78), 0 2px 7px rgba(0,0,0,.3);
}
.sh-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid rgba(255,224,151,.72);
  border-radius: 6px;
  box-shadow: 0 0 9px rgba(255,195,78,.22), inset 0 0 18px rgba(0,0,0,.26);
  pointer-events: none;
}
.sh-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/cp/img/bannerimages/header-waves.svg") center bottom / 100% 100% no-repeat;
  opacity: .72;
  pointer-events: none;
}
.sh-header__inner {
  width: min(100%, 1600px);
  min-height: calc(var(--sh-header-height) - 6px);
  margin: 0 auto;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 440px) minmax(230px, 1fr);
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
}
.sh-nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-nav--left { align-items: flex-start; }
.sh-nav--right { align-items: flex-end; }
.sh-nav__top { display: flex; justify-content: flex-end; gap: 10px; width: 100%; }
.sh-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  width: min(100%, 214px);
  padding: 9px 18px;
  border: 1px solid #f5d58d;
  border-radius: 999px;
  color: #f8fbff;
  background: linear-gradient(180deg, #4c91bc 0%, #176394 22%, #0b3e6a 58%, #062847 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -2px 4px rgba(0,0,0,.55),
              0 0 0 2px rgba(10,28,47,.9), 0 0 0 3px rgba(219,171,79,.85),
              0 3px 7px rgba(0,0,0,.42);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px #00182c;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.sh-button:hover, .sh-button:focus-visible {
  filter: brightness(1.14);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 4px rgba(0,0,0,.5),
              0 0 0 2px rgba(10,28,47,.9), 0 0 0 3px #ffe4a0,
              0 0 12px rgba(255,202,97,.48), 0 4px 8px rgba(0,0,0,.42);
  outline: none;
}
.sh-button:active { transform: translateY(1px); filter: brightness(.96); }
.sh-button--compact { width: auto; min-width: 88px; min-height: 39px; padding-inline: 15px; }
.sh-button--downloads { width: min(100%, 214px); }
.sh-brand { display: flex; align-items: center; justify-content: center; min-width: 0; position: relative; z-index: 1; }
.sh-brand img { display: block; width: 100%; max-width: 440px; max-height: 130px; height: auto; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.42)); }
.sh-menu-toggle { display: none; }
@media (min-width: 1100px) {
  .sh-nav--right .sh-button--downloads { margin-top: 0; }
}
@media (max-width: 850px) {
  :root { --sh-header-height: 128px; }
  .sh-header__inner { grid-template-columns: minmax(150px, 1fr) minmax(260px, 380px) minmax(190px, 1fr); gap: 12px; padding-inline: 15px; }
  .sh-button { font-size: 14px; min-height: 39px; padding-inline: 12px; }
  .sh-button--compact { min-width: 76px; }
  .sh-brand img { max-height: 112px; }
}
@media (max-width: 650px) {
  :root { --sh-header-height: auto; }
  .sh-header { border-radius: 7px; }
  .sh-header__inner { min-height: 0; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 14px; }
  .sh-brand { grid-column: 1 / -1; grid-row: 1; }
  .sh-brand img { width: min(88vw, 410px); max-height: none; }
  .sh-menu-toggle {
    grid-column: 1 / -1; grid-row: 2; justify-self: center;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--sh-gold-light); border-radius: 999px;
    padding: 7px 17px; color: white; background: linear-gradient(#1d5c89,#082b4c);
    box-shadow: 0 0 0 2px #09233c, 0 0 0 3px var(--sh-gold); font-weight: 700;
    cursor: pointer;
  }
  .sh-nav { display: none; grid-column: 1 / -1; width: 100%; align-items: stretch; gap: 9px; }
  .sh-nav.is-open { display: flex; }
  .sh-nav--left { grid-row: 3; }
  .sh-nav--right { grid-row: 4; }
  .sh-nav__top { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .sh-nav .sh-button, .sh-nav--right .sh-button--downloads { width: 100%; }
  .sh-button { min-height: 42px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-button { transition: none; }
}
