:root {
  --ink: #071018;
  --soft-ink: #0a1720;
  --deep: #12244b;
  --blue: #0b8fa1;
  --cyan: #11b9cf;
  --glass: #65d9ec;
  --panel: #0a7a97;
  --pickle: #78b846;
  --pickle-dark: #417d2e;
  --brine: #bfd85a;
  --cream: #f8f7ee;
  --stage-scale: 1;
  --stage-top: clamp(54px, 7.2vh, 86px);
  --left-bank-offset: 824px;
  --right-bank-offset: 202px;
  --machine-offset-y: 589px;
}

@media (min-width: 1600px) {
  :root {
    --stage-scale: 1.16;
    --left-bank-offset: 956px;
    --right-bank-offset: 234px;
    --machine-offset-y: 683px;
  }
}

@media (min-width: 1900px) {
  :root {
    --stage-scale: 1.24;
    --left-bank-offset: 1022px;
    --right-bank-offset: 250px;
    --machine-offset-y: 731px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Arial Black, Impact, system-ui, sans-serif;
  color: var(--ink);
  background: #0b7890;
  overflow: hidden;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 194, 207, 0.48), rgba(13, 23, 83, 0.62)),
    radial-gradient(circle at 50% 44%, #12a5b9 0 15%, #087c95 49%, #1b315f 100%);
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 0;
  right: 0;
  height: 42px;
}

.menu-button {
  position: absolute;
  left: calc(50vw - 230px);
  top: 5px;
  display: grid;
  gap: 4px;
  width: 32px;
  padding: 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 3px;
  background: var(--cream);
}

.top-logo {
  position: absolute;
  left: 50vw;
  top: -6px;
  width: 70px;
  transform: translateX(-50%);
}

.top-logo svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25));
}

.social-links {
  position: absolute;
  top: 8px;
  right: calc(50vw - 470px);
  display: flex;
  gap: 9px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border: 4px solid var(--soft-ink);
  border-radius: 6px 4px 7px 5px;
  color: var(--cream);
  background: rgba(9, 103, 145, 0.72);
  font-family: Arial, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--soft-ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}

.logo-shadow {
  fill: #9fd6de;
}

.pickle-body,
.pickle-body-large {
  fill: var(--pickle);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pickle-mark,
.sad-mouth,
.pickle-ridge,
.pickle-mouth {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}

.sad-mouth,
.pickle-mouth {
  stroke-width: 8;
}

.laundromat {
  position: absolute;
  inset: var(--stage-top) 0 0;
  filter: url("#wobble");
}

.washer-grid {
  position: absolute;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, 306px);
  grid-template-rows: repeat(2, 288px);
}

.left-bank {
  left: calc(50vw - var(--left-bank-offset));
  transform: scale(var(--stage-scale));
  transform-origin: top left;
}

.right-bank {
  left: calc(50vw + var(--right-bank-offset));
  transform: scale(var(--stage-scale));
  transform-origin: top left;
}

.small-washer {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0 85%, rgba(4, 24, 45, 0.28) 86%),
    linear-gradient(120deg, rgba(17, 174, 194, 0.75), rgba(16, 29, 78, 0.79));
  border: 6px solid var(--soft-ink);
  border-radius: 9px 5px 8px 4px;
  box-shadow: inset 0 -34px 0 rgba(3, 11, 37, 0.12);
}

.small-washer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 69px;
  width: 150px;
  height: 151px;
  border: 7px solid var(--soft-ink);
  border-radius: 49% 52% 48% 51%;
  transform: translateX(-50%);
  background:
    linear-gradient(120deg, transparent 41%, rgba(173, 237, 255, 0.46) 44% 52%, transparent 55%),
    radial-gradient(circle, rgba(28, 168, 195, 0.55), rgba(15, 41, 94, 0.75));
  box-shadow: inset 0 0 0 10px rgba(9, 21, 48, 0.2);
}

.small-washer::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 104px;
  width: 108px;
  height: 28px;
  border: 5px solid var(--soft-ink);
  border-radius: 5px 3px 6px 4px;
  background:
    radial-gradient(circle at 19px 14px, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 38px 14px, var(--ink) 0 3px, transparent 4px),
    linear-gradient(90deg, #1ec3d1, #2b4d91);
}

.main-machine {
  position: absolute;
  z-index: 5;
  left: 50vw;
  top: calc(var(--stage-top) + 22px);
  width: 408px;
  transform: translateX(-50%) scale(var(--stage-scale));
  transform-origin: top center;
  border: 8px solid var(--soft-ink);
  border-radius: 11px 7px 12px 8px;
  background: var(--panel);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.14);
  filter: url("#wobble");
}

.machine-top {
  position: relative;
  display: grid;
  grid-template-columns: 184px 97px 56px;
  gap: 16px;
  align-items: center;
  height: 109px;
  padding: 14px 15px 12px;
  border-bottom: 7px solid var(--soft-ink);
  background: #0b6d9c;
}

.display {
  height: 80px;
  padding: 8px 19px;
  border-radius: 9px 14px 8px 11px;
  background: linear-gradient(90deg, #0bb7d0, #159cb8);
}

.time {
  color: var(--cream);
  font-size: 48px;
  line-height: 45px;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.19);
}

.mode-label {
  margin-top: 4px;
  color: rgba(7, 17, 21, 0.58);
  font-family: Arial, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.play-button {
  position: relative;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
}

.play-button span {
  position: absolute;
  left: 17px;
  top: 11px;
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-left: 45px solid var(--soft-ink);
}

.play-button.paused span {
  left: 18px;
  top: 14px;
  width: 38px;
  height: 50px;
  border: 0;
  background: linear-gradient(90deg, var(--soft-ink) 0 36%, transparent 36% 64%, var(--soft-ink) 64%);
}

.reset-button {
  position: relative;
  width: 48px;
  height: 70px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reset-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 20px;
  height: 20px;
  border: 6px solid var(--soft-ink);
  border-left-color: transparent;
  border-radius: 50%;
}

.reset-button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-left: 22px solid var(--soft-ink);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.machine-window {
  position: relative;
  height: 383px;
  background:
    radial-gradient(circle at 54% 42%, rgba(55, 183, 203, 0.32), transparent 31%),
    #079bb4;
}

.drum {
  position: absolute;
  left: 55px;
  top: 27px;
  width: 299px;
  height: 299px;
  border: 9px solid var(--soft-ink);
  border-radius: 51% 48% 50% 49%;
  background: radial-gradient(circle at 45% 42%, #6dcbdf, #068298 72%);
  box-shadow: inset 0 0 0 18px #0a5373, inset 0 0 0 28px var(--soft-ink);
  overflow: hidden;
}

.glass-shine {
  position: absolute;
  z-index: 5;
  left: 60px;
  top: -20px;
  width: 72px;
  height: 320px;
  transform: rotate(31deg);
  background: rgba(178, 236, 244, 0.38);
}

.water {
  position: absolute;
  left: -22px;
  right: -22px;
  bottom: -8px;
  height: 89px;
  border-top: 7px solid rgba(2, 89, 104, 0.6);
  background: rgba(4, 151, 154, 0.7);
  animation: slosh 4s ease-in-out infinite;
}

.bubble {
  position: absolute;
  z-index: 8;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(5, 104, 105, 0.75);
}

.bubble-one {
  left: 78px;
  bottom: 66px;
}

.bubble-two {
  right: 87px;
  bottom: 78px;
  width: 8px;
  height: 8px;
}

.bubble-three {
  left: 139px;
  bottom: 48px;
  width: 9px;
  height: 9px;
}

.pickle {
  position: absolute;
  z-index: 4;
  left: -9px;
  top: 111px;
  width: 308px;
  transform: rotate(-4deg);
  animation: pickleFloat 5s ease-in-out infinite;
}

.pickle-shadow {
  fill: rgba(10, 72, 69, 0.3);
}

.pickle-body-large {
  stroke-width: 11;
}

.pickle-ridge {
  opacity: 0.55;
}

.pickle-spot {
  fill: var(--pickle-dark);
}

.pickle-eye {
  fill: var(--ink);
}

.machine-dots {
  position: absolute;
  right: 22px;
  top: 13px;
  display: flex;
  gap: 9px;
}

.machine-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(6, 97, 116, 0.75);
}

.coin-slot {
  position: absolute;
  right: 16px;
  bottom: 23px;
  width: 72px;
  height: 50px;
  border: 6px solid var(--soft-ink);
  border-radius: 4px 7px 4px 5px;
  background:
    radial-gradient(circle at 20px 15px, var(--soft-ink) 0 4px, transparent 5px),
    radial-gradient(circle at 41px 15px, var(--soft-ink) 0 4px, transparent 5px),
    linear-gradient(#23b4c7, #0d6690);
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 62px;
  border-top: 7px solid var(--soft-ink);
  background: #15558d;
}

.tab {
  min-width: 78px;
  height: 33px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: rgba(248, 247, 238, 0.48);
  background: transparent;
  font-family: Arial, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.9);
}

.durations {
  position: absolute;
  z-index: 6;
  left: 50vw;
  top: calc(var(--stage-top) + var(--machine-offset-y));
  margin: 0;
  transform: translateX(-50%);
  color: rgba(248, 247, 238, 0.58);
  font-family: Arial, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

footer {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 21px;
  color: rgba(248, 247, 238, 0.35);
  font-family: Arial, system-ui, sans-serif;
  font-size: 12px;
  text-align: center;
}

.scene::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -54px;
  height: clamp(220px, 24vh, 280px);
  background:
    linear-gradient(93deg, transparent 0 10.8%, var(--soft-ink) 11% 11.45%, transparent 11.8% 23%, var(--soft-ink) 23.2% 23.55%, transparent 24% 37.8%, var(--soft-ink) 38% 38.35%, transparent 38.8% 50%, var(--soft-ink) 50.2% 50.55%, transparent 51% 63.5%, var(--soft-ink) 63.7% 64.05%, transparent 64.5% 77%, var(--soft-ink) 77.2% 77.55%, transparent 78%),
    repeating-linear-gradient(0deg, var(--soft-ink) 0 5px, transparent 5px 63px),
    linear-gradient(90deg, #02a6bb, #456da1);
  transform: perspective(480px) rotateX(55deg);
  transform-origin: top center;
  border-top: 7px solid var(--soft-ink);
  filter: url("#wobble");
}

.token-panel {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 12, 22, 0.28);
}

.token-panel.open {
  display: grid;
}

.panel-card {
  position: relative;
  width: 420px;
  padding: 28px;
  border: 7px solid var(--soft-ink);
  border-radius: 9px 5px 10px 6px;
  background: #b8e85b;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
}

.close-button {
  position: absolute;
  top: 9px;
  right: 11px;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--soft-ink);
  font-size: 22px;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--soft-ink);
}

.panel-card h1 {
  margin: 0 0 20px;
  font-size: 46px;
  line-height: 0.95;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--soft-ink);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 5px solid var(--soft-ink);
  background: var(--cream);
  font-family: Arial, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.ca-row span {
  flex: 1;
}

.ca-row button,
.link-row a {
  border: 5px solid var(--soft-ink);
  color: var(--cream);
  background: #11b9cf;
  text-shadow: 1px 1px 0 var(--soft-ink);
  text-decoration: none;
  cursor: pointer;
}

.ca-row button {
  padding: 7px 10px;
  font-family: Arial, system-ui, sans-serif;
  font-weight: 900;
}

.link-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.link-row a {
  flex: 1;
  padding: 11px 8px;
  font-family: Arial, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

@keyframes pickleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes slosh {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(4px);
  }
}
