.harbor-frame {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #173c39;
  font:
    16px system-ui,
    sans-serif;
}
.harbor-frame main {
  width: min(100%, 680px);
}
.harbor {
  color: #f4f4df;
  background: #214d4a;
  border-radius: 6px;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}
.harbor:focus-visible {
  outline: 3px solid #c99b52;
  outline-offset: 3px;
}
.harbor-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  aspect-ratio: 7/4.5;
  border: 1px solid #567973;
  background: radial-gradient(ellipse at 75% 50%, #427870, #2a5857 62%, #244b4d);
}
.harbor-cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #c1decd24;
}
.harbor-cell::before {
  content: '';
  position: absolute;
  width: 16%;
  height: 4%;
  border-radius: 50%;
  background: #a0d1b640;
  top: 24%;
  left: 18%;
}
.harbor-island::after {
  content: '';
  width: 76%;
  height: 65%;
  background: radial-gradient(ellipse at 35% 23%, #8f9d61 6%, #83925c 32%, #708452 63%);
  border: 3px solid #cbb987;
  border-radius: 48% 38% 51% 32%;
  transform: rotate(-12deg);
  box-shadow: 0 3px 0 #294b3d66;
}
.harbor-cell:nth-child(even).harbor-island::after {
  transform: rotate(28deg) scale(0.9);
}
.harbor-trail:not(.harbor-island)::before {
  width: 13%;
  height: auto;
  aspect-ratio: 1;
  inset: auto;
  background: #d9c482;
}
.harbor-dock {
  width: 50%;
  height: 33%;
  border: 2px solid #a17d56;
  background: repeating-linear-gradient(0deg, #c5ab75 0 4px, #a38d64 4px 6px);
  border-radius: 2px;
  transform: rotate(-9deg);
}
.harbor-light {
  position: relative;
  width: 35%;
  height: 67%;
  background: linear-gradient(
    to bottom,
    #edd8a0 0 13%,
    #8d493c 13% 22%,
    #f4edd2 22% 47%,
    #c47758 47% 68%,
    #f4edd2 68%
  );
  clip-path: polygon(
    50% 0,
    84% 14%,
    77% 19%,
    80% 35%,
    73% 37%,
    90% 98%,
    10% 98%,
    27% 37%,
    20% 35%,
    23% 19%,
    16% 14%
  );
}
.harbor-boat {
  position: absolute;
  z-index: 1;
  width: 47%;
  height: 55%;
  filter: drop-shadow(2px 3px 2px #133733);
}
.harbor-boat::before {
  content: '';
  position: absolute;
  inset: 0 1% 17%;
  background: linear-gradient(90deg, #fff5cb 53%, #816a48 54% 59%, #e3ae65 60%);
  clip-path: polygon(55% 0, 96% 96%, 59% 87%, 55% 8%, 48% 86%, 0 85%);
}
.harbor-boat::after {
  content: '';
  position: absolute;
  inset: 78% 0 0;
  background: #e5b15d;
  clip-path: polygon(0 0, 100% 0, 78% 96%, 25% 96%);
}
.harbor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: #193c38;
  min-height: 48px;
}
.harbor-location {
  font-size: 0.83rem;
}
.harbor-helm {
  display: flex;
  gap: 0.3rem;
}
.harbor-helm[hidden] {
  display: none;
}
.harbor-helm button {
  border: 1px solid #80988a;
  border-radius: 4px;
  min-width: 32px;
  min-height: 34px;
  padding: 0.2rem 0.5rem;
  color: #f4f1d7;
  font: 600 1rem/1 system-ui;
  background: #355a50;
  cursor: pointer;
}
.harbor-helm button:hover {
  background: #527968;
}
