.sea-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e8e7ce;
  --sea-back: #6faaa2;
  --sea-mid: #478b85;
  --sea-front: #286d70;
  --sky: #e9e8d6;
  background: var(--sky);
}
.time-sunrise {
  --sky: #f0dfbd;
  --sea-back: #80aaa0;
  --sea-mid: #5b938c;
  --sea-front: #326f73;
}
.time-day {
  --sky: #dfe8d9;
  --sea-back: #7eb5ad;
  --sea-mid: #4d9693;
  --sea-front: #317c80;
}
.time-sunset {
  --sky: #eee2c6;
  --sea-back: #7aa69a;
  --sea-mid: #4f8a80;
  --sea-front: #2e6b6a;
}
.time-night {
  --sky: #233b4c;
  --sea-back: #456c79;
  --sea-mid: #325667;
  --sea-front: #244354;
}
.sky-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 56%, #fff7dc66 0, transparent 64%);
}
.sun-disc {
  position: absolute;
  width: 16vw;
  height: 16vw;
  max-width: 250px;
  max-height: 250px;
  background: #dfad61;
  border-radius: 50%;
  left: 54%;
  top: 22%;
  box-shadow: 0 4px 0 #b58d5020;
  opacity: 0.8;
}
.time-sunset .sun-disc {
  top: 39%;
  background: #d7935f;
}
.time-sunrise .sun-disc {
  top: 41%;
  left: 35%;
  background: #e0af67;
}
.time-night .sun-disc {
  display: none;
}
.moon-disc {
  display: none;
  position: absolute;
  left: 56%;
  top: 20%;
  height: 75px;
  width: 75px;
  background: #f1e7be;
  border-radius: 50%;
  box-shadow: 9px 4px 0 #213b4e;
}
.time-night .moon-disc {
  display: block;
}
.stars {
  display: none;
  position: absolute;
  inset: 13% 25% 48% 23%;
  background-image: radial-gradient(circle, #f3e5bb 1px, transparent 2px);
  background-size: 79px 67px;
  opacity: 0.65;
}
.time-night .stars {
  display: block;
}
.cloud {
  position: absolute;
  width: 17%;
  height: auto;
  fill: #fff8e4;
  opacity: 0.7;
  filter: drop-shadow(3px 5px 0 #735e3820);
  animation: cloud-drift 30s ease-in-out infinite alternate;
}
.cloud-one {
  top: 18%;
  left: 35%;
}
.cloud-two {
  top: 31%;
  left: 71%;
  width: 12%;
  animation-delay: -16s;
}
.time-night .cloud {
  fill: #6b7f88;
  opacity: 0.4;
}
.seabird {
  position: absolute;
  color: #4f6860;
  font-size: 28px;
  letter-spacing: -8px;
  transform: rotate(-8deg);
}
.bird-one {
  top: 29%;
  left: 53%;
}
.bird-two {
  top: 34%;
  left: 57%;
  font-size: 21px;
}
.time-night .seabird {
  display: none;
}
.ocean-layer {
  position: absolute;
  width: 120%;
  left: -10%;
  filter: drop-shadow(0 -5px 0 #122e3520);
  animation: tide 8s ease-in-out infinite alternate;
}
.ocean-back {
  fill: var(--sea-back);
  height: 43%;
  bottom: -2%;
  z-index: 2;
  animation-delay: -3s;
}
.ocean-mid {
  fill: var(--sea-mid);
  height: 29%;
  bottom: -2%;
  z-index: 5;
  animation-duration: 10s;
}
.ocean-front {
  fill: var(--sea-front);
  height: 19%;
  bottom: -2%;
  z-index: 6;
  animation-delay: -5s;
  animation-duration: 12s;
}
.boat-rig {
  position: absolute;
  width: 45vw;
  max-width: 710px;
  aspect-ratio: 600/380;
  left: 49%;
  top: 58%;
  translate: -50% -50%;
  z-index: 4;
  transform-origin: 50% 82%;
  animation: boat-rock 7s ease-in-out infinite;
}
.boat-structure {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.paper-shadow {
  filter: drop-shadow(5px 7px 0 #233b342b);
}
.boat-crew {
  position: absolute;
  left: 25%;
  right: 22%;
  bottom: 32%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2%;
  z-index: 3;
}
.aboard {
  position: relative;
  width: 26%;
  max-width: 90px;
  animation: crew-sway 4s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.aboard:nth-child(2n) {
  animation-delay: -2s;
}
.aboard .avatar {
  width: 100%;
  height: auto;
  display: block;
}
.aboard > .crew-label {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: 101%;
  font-size: 10px;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  padding: 3px 6px;
  box-shadow: 2px 3px 0 #112e3025;
}
.aboard.departed {
  opacity: 0.15;
  filter: grayscale(1);
}
.aboard.task-rest {
  animation: none;
}
.castaway-body {
  position: relative;
  transform-origin: 50% 68%;
}
.aboard.task-rest .castaway-body {
  transform: rotate(-85deg) translate(-12%, 6%);
}
.sleep-marks {
  display: none;
  position: absolute;
  left: 5%;
  top: -12%;
  width: 100%;
  height: 80%;
}
.task-rest:not(.departed) .sleep-marks {
  display: block;
}
.sleep-marks i {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  color: #fff4d8;
  text-shadow: 1px 2px #244b4d;
  opacity: 0;
  animation: sleepy-z 3s ease-out infinite;
}
.sleep-marks i:nth-child(2) {
  animation-delay: 1s;
}
.sleep-marks i:nth-child(3) {
  animation-delay: 2s;
}
.meal-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.consume-prop {
  position: absolute;
  width: 44%;
  height: 40%;
  left: 29%;
  top: 27%;
  z-index: 5;
  animation: have-a-bite 2.6s ease-in-out both;
  filter: drop-shadow(2px 3px 0 #173d3e44);
}
.consume-prop .icon {
  width: 100%;
  height: 100%;
  padding: 3px;
  color: #834d2d;
  background: #fff0c7;
  border-radius: 35%;
}
.consume-prop.is-drinking .icon {
  color: #286b83;
  background: #dcebef;
}
@keyframes sleepy-z {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.65);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(36px, -65px) scale(1.25);
  }
}
@keyframes have-a-bite {
  0% {
    opacity: 0;
    transform: translate(36px, 32px) rotate(20deg);
  }
  20%,
  55% {
    opacity: 1;
    transform: translate(0, 0) rotate(-12deg);
  }
  40% {
    transform: translate(3px, 3px) rotate(5deg);
  }
  70% {
    opacity: 1;
    transform: translate(1px, 0) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(20px, 24px) scale(0.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sleep-marks i {
    opacity: 1;
    position: static;
  }
  .consume-prop {
    opacity: 1;
    animation: none;
  }
}
.aboard.task-fish {
  animation: fishing 3s ease-in-out infinite;
}
.aboard.task-bail {
  animation: bailing 2s ease-in-out infinite;
}
.cough-mark {
  position: absolute;
  right: -10px;
  top: 30%;
  color: var(--ink);
  font-size: 22px;
  font-style: normal;
}
.empty-boat-note {
  font-size: 12px;
  font-family: var(--serif);
  font-style: italic;
  white-space: nowrap;
  color: #715e46;
  position: absolute;
  bottom: -24px;
}
.bilge-water {
  position: absolute;
  width: 43%;
  height: 4%;
  left: 27%;
  bottom: 28%;
  background: #598f90;
  border-radius: 40%;
  z-index: 4;
  opacity: 0.8;
}
.water-lines {
  position: absolute;
  z-index: 7;
  height: 8px;
  border-top: 2px solid #b8d0bb77;
  border-bottom: 2px solid #b8d0bb33;
  width: 70px;
  border-radius: 50%;
  animation: tide 12s ease-in-out infinite alternate;
}
.line-one {
  bottom: 24%;
  left: 18%;
}
.line-two {
  bottom: 18%;
  left: 69%;
  width: 100px;
}
.distant-land {
  position: absolute;
  width: 24%;
  left: 51%;
  bottom: 40%;
  z-index: 1;
}
.weather-storm {
  --sky: #657879;
  --sea-back: #587e7e;
  --sea-mid: #376366;
  --sea-front: #234d55;
}
.weather-storm .cloud {
  fill: #354f57;
  opacity: 1;
  width: 34%;
}
.weather-storm .sun-disc,
.weather-fog .sun-disc {
  opacity: 0.15;
}
.weather-fog {
  --sky: #c7d1c6;
}
.weather-fog .cloud {
  opacity: 0.9;
  width: 35%;
}
.weather-rain {
  --sky: #bdcfc5;
}
.rain {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  background: repeating-linear-gradient(
    110deg,
    transparent 0,
    transparent 42px,
    #e1eeeb44 43px,
    transparent 44px
  );
  opacity: 0.4;
}
.weather-rain .rain,
.weather-storm .rain {
  display: block;
  animation: rain-fall 0.7s linear infinite;
}
.weather-storm .ocean-layer {
  animation-duration: 2s;
}
.rock-hard {
  animation: storm-rock 2.3s ease-in-out infinite;
}
.scene-fishing .boat-rig {
  top: 55%;
}
.scene-clouds .boat-rig {
  animation-duration: 4s;
}
.scene-storm .boat-rig {
  animation: storm-rock 1.7s ease-in-out infinite;
}
.scene-adrift .boat-rig {
  top: 56%;
}
.scene-lobby .boat-rig {
  left: 46%;
  top: 64%;
  width: 42vw;
}
.scene-lobby .sun-disc {
  left: 49%;
  top: 37%;
  width: 12vw;
  height: 12vw;
}
.scene-lobby .ocean-back {
  height: 40%;
}
.scene-lobby .ocean-mid {
  height: 28%;
}
.scene-lobby .ocean-front {
  height: 20%;
}
.scene-lobby .cloud-one {
  top: 28%;
  left: 43%;
  width: 13%;
}
.scene-lobby .cloud-two {
  left: 66%;
  top: 19%;
}
.fishing-line {
  position: absolute;
  left: 61%;
  top: 60%;
  height: 15%;
  width: 9%;
  border-right: 1px solid #776b52;
  border-top: 2px solid #776b52;
  transform: rotate(-15deg);
  z-index: 5;
}
.wave-wipe {
  position: fixed;
  inset: -20%;
  background: #286c70;
  border-radius: 45% 40% 0 0;
  z-index: 30;
  animation: wave-wipe 1.8s ease-in-out forwards;
  pointer-events: none;
}
@keyframes tide {
  from {
    transform: translateX(-1%) translateY(0);
  }
  to {
    transform: translateX(3%) translateY(6px);
  }
}
@keyframes boat-rock {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(8px);
  }
}
@keyframes storm-rock {
  0%,
  100% {
    transform: rotate(-8deg) translateY(-12px);
  }
  50% {
    transform: rotate(9deg) translateY(17px);
  }
}
@keyframes cloud-drift {
  from {
    transform: translateX(-20px);
  }
  to {
    transform: translateX(35px);
  }
}
@keyframes crew-sway {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(2deg);
  }
}
@keyframes fishing {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes bailing {
  0%,
  100% {
    transform: rotate(-12deg) translateY(5px);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes rain-fall {
  to {
    background-position: -24px 80px;
  }
}
@keyframes wave-wipe {
  0% {
    translate: 0 100%;
  }
  45% {
    translate: 0 0;
  }
  65% {
    translate: 0 0;
  }
  100% {
    translate: 0 -120%;
  }
}
