:root {
  --bg: #09131b;
  --panel: rgba(10, 28, 40, 0.82);
  --panel-strong: rgba(7, 20, 29, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --ink: #f4f1e8;
  --muted: #b7c4cb;
  --accent: #4dc1d9;
  --accent-soft: rgba(77, 193, 217, 0.16);
  --warm: #d0a96f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 193, 217, 0.22), transparent 25%),
    linear-gradient(135deg, #071018 0%, #0f2634 48%, #051018 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-width: 1920px;
  min-height: 1080px;
}

.screen {
  width: 100%;
  height: 100%;
  padding: 36px 42px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
}

.bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.82fr);
  gap: 24px;
}

.bottom-bar-primary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.brand-block {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font: 600 16px/1.2 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead h1,
.panel-header h3,
.hero-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.masthead h1 {
  font-size: 44px;
}

.contact-line {
  margin: 0;
  color: var(--muted);
  font: 600 22px/1.3 Arial, sans-serif;
}

.status-cluster {
  text-align: right;
}

.clock {
  font: 700 54px/1 Arial, sans-serif;
}

.status-line {
  margin-top: 8px;
  color: var(--muted);
  font: 500 16px/1.3 Arial, sans-serif;
}

.content-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 0;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.1), rgba(8, 18, 28, 0.75));
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #0a141c;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 20, 0.1), rgba(7, 14, 20, 0.02) 40%, rgba(7, 14, 20, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 14, 20, 0.1), rgba(7, 14, 20, 0.42));
  pointer-events: none;
}

.hero-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(5, 16, 24, 0.16), transparent 20%, transparent 60%, rgba(5, 16, 24, 0.16) 100%);
}

.hero-top,
.hero-bottom {
  display: flex;
}

.hero-top {
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 4px;
  padding-left: 4px;
}

.hero-bottom {
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: 4px;
  padding-left: 4px;
}

.boat-pill-cluster {
  width: min(1060px, 82%);
}

.boat-pill-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-status-cluster {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding-left: 16px;
}

.boat-pill.boat-count-pill {
  min-height: 28px;
  padding: 6px 10px;
  color: rgba(244, 241, 232, 0.38);
  font: 400 10px/1 Arial, sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: rgba(6, 17, 24, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-copy {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font: 500 21px/1.45 Arial, sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: 600 17px/1 Arial, sans-serif;
}

.boat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 17, 24, 0.44), rgba(6, 17, 24, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  font: 600 21px/1.2 Arial, sans-serif;
}

.boat-pill-title {
  max-width: 100%;
  font: 700 42px/1.06 Georgia, "Times New Roman", serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boat-description-pill {
  align-items: flex-start;
  width: min(560px, 42%);
  padding: 16px 20px;
  border-radius: 28px;
}

.sidebar {
  min-height: 0;
  display: flex;
  height: 100%;
}

.panel {
  padding: 28px;
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.weather-panel {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header-compact {
  margin-bottom: 14px;
}

.weather-cards,
.warnings-list {
  display: grid;
  gap: 12px;
}

.weather-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.weather-card {
  display: grid;
  grid-template-rows: auto auto;
  align-items: start;
  align-content: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 31, 44, 0.86), rgba(9, 22, 33, 0.94));
  border: 1px solid var(--line);
  min-height: 0;
  min-width: 0;
  justify-items: start;
}

.weather-card-top {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
}

.weather-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.weather-icon svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.weather-temperature-block {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.weather-temperature-label {
  color: var(--muted);
  font: 600 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-temperature-value {
  color: var(--ink);
  font: 700 26px/1.05 Arial, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.weather-temperature-subvalue {
  color: var(--muted);
  font: 700 18px/1.15 Arial, sans-serif;
  white-space: nowrap;
}

.weather-temperature-block-range {
  gap: 6px;
}

.weather-temperature-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.weather-temperature-range-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.weather-temperature-range-item span {
  color: var(--muted);
  font: 600 10px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-temperature-range-item strong {
  color: var(--ink);
  font: 700 20px/1.05 Arial, sans-serif;
  white-space: nowrap;
}

.weather-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.weather-card-head {
  display: block;
}

.weather-card-label {
  margin: 0;
  color: var(--warm);
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.weather-signals {
  display: grid;
  gap: 8px;
  width: 100%;
}

.weather-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font: 700 14px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.weather-signal svg {
  width: 16px;
  height: 16px;
  display: block;
}

.weather-signal-wind svg {
  transform: rotate(var(--signal-rotation, 0deg));
  transform-origin: center;
}

.weather-signal-rain {
  color: #8dddf4;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.weather-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.weather-metric span {
  color: var(--muted);
  font: 600 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-metric strong {
  color: var(--ink);
  font: 700 13px/1.2 Arial, sans-serif;
  white-space: nowrap;
}

.weather-card-current .weather-metrics {
  grid-template-columns: 1fr;
}

.weather-card-current .weather-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.weather-card-forecast .weather-metrics {
  grid-template-columns: 1fr;
}

.weather-observed,
.warning-item p {
  margin: 0;
}

.weather-observed {
  color: var(--muted);
  font: 500 14px/1.35 Arial, sans-serif;
}

.warning-item p,
.empty-state {
  color: var(--muted);
  font: 500 15px/1.45 Arial, sans-serif;
}

.bottom-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
}

.warnings-panel,
.bridge-panel,
.offshore-panel {
  overflow: hidden;
  padding: 18px 22px;
}

.bottom-panel .eyebrow {
  margin-bottom: 0;
}

.bottom-panel h4 {
  margin: 0 0 2px;
  font: 700 20px/1.2 Arial, sans-serif;
}

.bottom-panel p {
  margin: 0;
  color: var(--muted);
  font: 500 14px/1.35 Arial, sans-serif;
}

.bridge-panel {
  grid-template-rows: auto auto auto 1fr;
}

.offshore-rows {
  display: grid;
  gap: 10px;
  align-content: end;
}

.offshore-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 193, 217, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(8, 27, 38, 0.94), rgba(7, 19, 28, 0.98));
}

.offshore-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.offshore-row-label {
  margin: 0;
  color: var(--warm);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
  padding-left: 2px;
}

.offshore-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.offshore-forecast-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.offshore-forecast-cell span {
  color: var(--muted);
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offshore-forecast-cell p {
  margin: 0;
  color: var(--ink);
  font: 600 14px/1.3 Arial, sans-serif;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.warnings-strip {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  align-self: center;
}

.warnings-ticker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding-right: 18px;
  animation: warnings-scroll 28s linear infinite;
}

.warnings-strip:hover .warnings-ticker {
  animation-play-state: paused;
}

.warning-pill {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(100, 39, 32, 0.5), rgba(50, 18, 17, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font: 700 18px/1.25 Arial, sans-serif;
  white-space: nowrap;
}

.marine-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 14px;
  align-items: stretch;
  align-content: stretch;
  align-self: stretch;
  height: 100%;
}

.marine-layout.radar-hidden {
  grid-template-columns: 1fr;
}

.radar-panel {
  display: grid;
  min-height: 100%;
  height: 100%;
}

.radar-map {
  position: relative;
  min-height: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.radar-panel.is-hidden {
  display: none;
}

.radar-base-image,
.radar-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform: scale(var(--radar-image-scale, 0.78));
  transform-origin: center center;
}

.radar-base-image {
  object-fit: cover;
}

.radar-image {
  object-fit: cover;
  mix-blend-mode: screen;
}

.radar-location {
  position: absolute;
  left: 63%;
  top: 71%;
  z-index: 3;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 3px solid #ff9a57;
  background: rgba(255, 154, 87, 0.16);
  box-shadow:
    0 0 0 2px rgba(9, 19, 27, 0.65),
    0 0 18px rgba(255, 154, 87, 0.35);
  pointer-events: none;
}

.radar-location-pin {
  display: none;
}

.radar-location-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #09131b;
  transform: translate(-50%, -50%);
}

.is-hidden {
  display: none !important;
}

@keyframes warnings-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marine-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1.24fr) minmax(124px, 0.56fr);
  gap: 12px;
  align-content: stretch;
  height: 100%;
}

.marine-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  min-height: 0;
}

.marine-card-tide {
  display: grid;
  align-content: start;
  padding-bottom: 22px;
}

.marine-card-astro {
  display: grid;
  align-content: start;
  padding-top: 16px;
  padding-bottom: 16px;
}

.marine-card .eyebrow {
  margin-bottom: 10px;
}

.marine-card h4 {
  margin: 0 0 8px;
  font: 700 22px/1.15 Arial, sans-serif;
}

.marine-card p {
  margin: 0;
  color: var(--muted);
  font: 500 15px/1.45 Arial, sans-serif;
}

.marine-card p + p {
  margin-top: 6px;
}

#tide-next:empty {
  display: none;
}

#tide-next {
  font-size: 17px;
  line-height: 1.35;
}

#tide-window {
  display: grid;
  gap: 2px;
}

#tide-window span {
  display: block;
}

.tide-meta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tide-meta-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tide-meta-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(77, 193, 217, 0.14);
  color: #8dddf4;
}

.tide-meta-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tide-meta-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tide-meta-copy span {
  color: var(--muted);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tide-meta-copy strong {
  color: var(--ink);
  font: 700 16px/1.2 Arial, sans-serif;
  white-space: nowrap;
}

.astro-rotator {
  position: relative;
  min-height: 0;
  height: 100%;
}

.astro-slide {
  display: none;
  height: 100%;
}

.astro-slide-active {
  display: block;
}

.astro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  height: 100%;
}

.astro-time-card,
.moon-phase-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 0;
}

.astro-time-card span,
.moon-phase-copy span {
  color: var(--muted);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.moon-phase-copy span {
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.astro-time-card strong {
  color: var(--ink);
  font: 700 18px/1.1 Arial, sans-serif;
  white-space: nowrap;
}

.moon-phase-copy strong {
  color: var(--ink);
  font: 700 15px/1.15 Arial, sans-serif;
  white-space: normal;
}

.moon-phase-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 0;
  height: 100%;
}

.moon-phase-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.moon-phase-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.moon-phase-copy {
  display: grid;
  gap: 3px;
}
