:root {
  --color-bg: #4b7f47;
  --color-text-main: white;
  --color-text-muted: rgba(226, 226, 226, 0.799);
  --color-accent: #f3f0e1;
  --color-surface: #e5e5ea;
  --color-text-inverse: #333333;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);

  --color-bg-hover: rgba(255, 255, 255, 0.1);
  --color-border-translucent: rgba(255, 255, 255, 0.5);
  /* #ffffff88 */
  --color-border-subtle: rgba(255, 255, 255, 0.2);
  --color-bg-terminal: #030303;
  --color-surface-hover: #d1d1d6;
  /* SVG Data URI for the coffee bean icon, colored green for inside the thumb */
  --bean-icon-green: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 10 10' fill='%234b7f47' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='rotate(25 5 5)'%3E%3Cellipse cx='5' cy='5' rx='3' ry='4.5' stroke='%23f3f0e1' stroke-width='0.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.6 0.8C3 5 7 5 4.4 9.2' stroke='%23f3f0e1' stroke-width='0.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
  --acaia-icon: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IB2cksfwAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+kMDgsuDjhasRIAAAJmSURBVFjDxZjPi41hFMc/z8XMNNFMo8mPkdhoyIbVbGQYC0WzEDUbUjaz0JS9P0CR2JpZTMmKkUEslJKZMFEWEmExpIwYiasmMz42r7renvfeuT9ezvKc85z3c5/neb/vOTdQg6ltwBZgPdAOCHwD3gNPQghF8jK1Qz2u3lUXzLZ5dUo9qXY1EmCjesfabVLtqRdiUC1avy2oZ5KavelgJYgRG2/n1b4YSIgALAHOAkMxPuA2MAE8Bp4DM8AC0AlsAnqBbuAQ0BSp8QzYWuoIIYTYTlzI+DUT6vYqjnVDcrErWmzx0YzckWSnqr1jzepwVSDqWvVrJO9SLRCp2qeqATkXyTndQBkYrAiitqifUvGn6rIGi+LbSiADkfiuHNT5SCWQsVRsNqfPxFL1RQykoAagL7XmRh4gIYR54GIsVgDWAW0p/wT52VQWSOwL+TJHkJ9ZIC0R/wz/2AoZ/qb/AfIj4u/8HyCvI/5tOT6zIwoSQpiNwOzPEWRfOaEZjnRUhRwEbbn6JSpoSc5Y5MgGctiNoaTrL0s7mQItqt0N3I1VWd1/+vW9klrbCowlM0y9EM3A5TJy8VfyCnU6AvxQba8DolUdr7ZV7FE/Z/SrPTVA7FAfVd2zJot3q3MZs8noYu6N2pV0fHOLbZ5DRqF+YDzrOcAt4F7JOPErUeNuoB/YCWT1udeTnPLjRAnMCfVjA4er7+qxqie9klfuagMgHqibaxo5U0AH1Tc1ALxSD5eqdBZIqAKmAOwBDiRnvCYjdRq4D1wDboYQ5lJ1VgN7U3dkNNShDyuTP2r+CF4ReBdC+FBLvd/+VWktq23bawAAAABJRU5ErkJggg==");

  --z-index-vessel: 100;
  --z-index-dripper: 200;
  --z-index-kettle: 300;
}

body {
  margin: 0;
  font-family: "Mulish", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  height: 100%;
  width: 100vw;
}

.text-display {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "SOFT" 30,
    "WONK" 1;
}

input {
  color: var(--color-text-main);
}

[hidden] {
  display: none !important;
}

header {
  display: flex;
  align-items: center;
  gap: 20px;
  top: 0;
  padding: 10px 20px;
  z-index: 100;
  position: sticky;
  background-color: var(--color-bg);
}

main {
  padding: 0 20px;
  margin: 0 auto;
}

.weight-display {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text-main);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.timer-display {
  text-align: center;
  font-size: 3rem;
  margin: 0;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-right: auto;
}

button {
  padding: 8px 12px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff00;
  font-family: inherit;
  transition: background 0.2s;
}

button:hover {
  background: var(--color-bg-hover);
}

button.btn-ghost {
  color: var(--color-text-main);
  background: transparent;
}

button.btn-ghost:hover {
  background-color: var(--color-bg-hover);
}

button.btn-primary {
  background-color: var(--color-text-main);
  color: var(--color-bg);
}

button.btn-outline {
  color: var(--color-text-main);
  border: 2px solid var(--color-text-muted);
  border-radius: 10px;
}

button.btn-small {
  font-size: 1rem;
  padding: 4px 6px;
}

button.btn-large {
  font-size: 1.5rem;
  padding: 0.5rem 2rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-connect {
  min-width: 46px;
  min-height: 39px;
}

.btn-connect.btn-ghost {
  background-image: var(--acaia-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

.btn-connect {
  position: relative;
}

.connection-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  border-radius: 50%;
  border: 1px solid var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  padding: 3px;
  box-sizing: border-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.btn-connect.connected .connection-check {
  display: block;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  /* Ensure the glider is positioned relative to this container */
  z-index: 1;
  width: auto;
  justify-content: center;
  font-size: 1.1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.text-normal {
  font-style: normal;
}

.tabs .glider {
  position: absolute;
  height: calc(100% - 8px);
  /* Account for padding */
  top: 3px;
  left: 2px;
  /* Starting position */
  border: 2px solid var(--color-text-muted);
  border-radius: 10px;
  z-index: 1;
  /* Behind the text but above the container bg */
  box-shadow: var(--shadow-sm);
  /* This creates the smooth slide and resize effect */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: var(--glider-width);
  transform: translateX(var(--glider-offset, 50vw));
}

.tabs .tab-trigger {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.tab-label {
  position: relative;
  /* z-index must be higher than glider */
  z-index: 2;
  margin: 0 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.tab-label:hover {
  background: var(--color-bg-hover);
}

.tab-trigger:not(:checked)+.tab-label {
  color: var(--color-text-muted);
}

#log {
  text-align: left;
  background: var(--color-bg-terminal);
  padding: 10px;
  border-radius: 8px;
  height: 150px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  margin-top: 20px;
  display: none;
}

.view-stack {
  display: grid;
  grid-template-areas: "stack";
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.view-grind {
  padding-top: 20px;
}

.view-grind,
.view-brew {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s ease, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-mode="grind"] .view-grind,
html[data-mode="recipe"] .view-brew,
html[data-mode="brewing"] .view-brew,
html[data-mode="enjoy"] .view-brew {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border-translucent);
  border-radius: 10px;
}

.input-row.centered {
  justify-content: center;
  border: none;
}

.input-row label {
  padding: 0.8rem 1.5rem;
  color: var(--color-text-main);
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 80px;
}

.input-row input[type="number"] {
  flex-grow: 1;
  margin-right: 10px;
  border-radius: 8px;
  border: none;
  font-size: 2.5rem;
  text-align: right;
  font-family: "Mulish", sans-serif;
  background-color: transparent;
}

.input-row input[type="number"]:focus {
  outline-color: var(--color-text-main);
}

.ratio-container {
  margin-top: 0.8rem;
}

.slider-container {
  position: relative;
}

.slider-tooltip {
  position: absolute;
  top: 40px;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 10px;
  background-color: var(--color-bg);
  /* #4b8c4d */
  box-shadow: 0 0 5px 5px var(--color-bg);
  /* #4b8c4db3 */
}

/* Custom Range Slider Styling */
/* This CSS variable is updated by JS to handle the fill percentage */
input[type=range] {
  --slider-pos: 50%;
  /* Default starting pos */
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  /* Essential for the outline look */
  height: 24px;
  /* Taller height to accommodate thumb */
  padding: 0;
  margin: 0;
  cursor: pointer;
}

input[type=range]:focus {
  outline: none;
}

/* --- The Track (Chrome/Safari/Edge) --- */
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  /* The outline styling for the whole track */
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  /* The magic trick for the filled left side: 
      A linear gradient that stops at the javascript variable position */
  background-image: linear-gradient(to right, var(--color-accent) var(--slider-pos), transparent var(--slider-pos));
  background-clip: padding-box;
  /* Ensures border isn't covered by fill */
}

/* --- The Thumb/Handle (Chrome/Safari/Edge) --- */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  background-image: var(--bean-icon-green);
  background-repeat: no-repeat;
  background-position: center;
  /* Center thumb vertically on the track */
  margin-top: -11px;
  /* (Thumb height 30px / 2) - (Track height 12px / 2) + border adj */
}

/* --- Firefox Support --- */
/* Firefox needs slightly different math for centering and track styling */
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  /* Firefox handles the progress fill natively, so we don't need the gradient trick here.
      We just set the unfilled part transparent */
  background: transparent;
  box-sizing: border-box;
}

/* Firefox native progress fill */
input[type=range]::-moz-range-progress {
  background-color: var(--color-accent);
  height: 12px;
  border-radius: 6px 0 0 6px;
}

input[type=range]::-moz-range-thumb {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: var(--bean-icon-green);
  background-repeat: no-repeat;
  background-position: center;
  /* border: 2px solid var(--bg-color); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  /* Firefox centers thumb automatically */
}

/* Labels below slider */
.ratio-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin: 12px 1px 0;
  font-weight: 600;
}

.recipe-title {
  text-align: center;
  margin: 2.5rem 0 0;
}

[data-mode="brewing"] .recipe-title,
[data-mode="enjoy"] .recipe-title {
  height: 0;
  margin: 0;
  overflow: hidden;
  transition: height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

.step-box {
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 5px;
  padding: 5px 15px;
  cursor: pointer;
  transition: background 0.2s, grid-template-rows 0.3s ease-out, border-color 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  display: grid;
  grid-template-rows: min-content 0fr;
}

.step-box.open {
  grid-template-rows: min-content 1fr;
  border-color: var(--color-border-translucent);
  padding: 15px;
}

.step-box:hover {
  background: var(--color-bg-hover);
}

.step-box:has(.post-step button:hover) {
  background: transparent;
}

.step-header {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-title-container {
  height: 100%;
  position: relative;
  flex-grow: 1;
}

.step-indicator {
  width: 24px;
  height: 24px;
  position: relative;
  opacity: 0;
  margin-right: 5px;
}

html[data-mode="brewing"] .view-brew .step-indicator,
html[data-mode="enjoy"] .view-brew .step-indicator {
  opacity: 1;
}

.step-indicator>div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.indicator-countdown {
  transition: opacity 0.2s ease;
}

.step-indicator[data-indicator="countdown"] .indicator-countdown {
  opacity: 0.5;
}

.indicator-countdown svg {
  transform: rotate(-90deg);
  width: 20px;
  height: 20px;
}

.indicator-countdown circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-dasharray: 56.5;
  stroke-dashoffset: -56.5;
}

.step-indicator[data-indicator="countdown"] .indicator-countdown circle {
  animation: countdown 10s linear forwards;
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -56.5;
  }
}

.indicator-pour {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: lowercase;
  color: var(--color-accent);
  transition: opacity 0.3s ease;
}

.step-indicator[data-indicator="pouring"] .indicator-pour {
  opacity: 1;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.indicator-check {
  transition: opacity 1s ease;
}

.step-indicator[data-indicator="done"] .indicator-check {
  opacity: 0.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.indicator-check svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-content {
  min-height: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease-out, padding-top 0.3s ease-out;
  padding-top: 0;
}

.step-box.open .step-content {
  opacity: 1;
  padding-top: 15px;
}

.step-instruction {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  position: absolute;
}

.step-box.open .step-instruction {
  opacity: 1;
}

.step-progress-bar {
  width: calc(100% - 4px);
  height: 8px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-progress-bar {
  position: relative;
  transition: border-width ease-out .1s, height ease-out .1s;
}

html[data-mode="brewing"] .step-progress-bar,
html[data-mode="enjoy"] .step-progress-bar {
  opacity: 1;
}

html[data-mode="brewing"] .step-box:not(.open) .step-progress-bar,
html[data-mode="enjoy"] .step-box:not(.open) .step-progress-bar {
  height: 1px;
  border-width: 0px;
}

.progress-weight-indicator {
  position: absolute;
  top: -6px;
  left: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transform: translateX(-50%);
  opacity: 0;
  transition: left 0.2s linear, opacity 0.3s ease-out;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.view-brew.scale-connected .step-box.open .progress-weight-indicator {
  opacity: 1;
}

.step-progress-fill {
  height: 100%;
  background-color: var(--color-accent);
  width: 0%;
}

.step-progress-fill.filled {
  width: 100%;
}

.step-box:not(.open) .step-progress-fill {
  min-width: 3%;
}

.post-step {
  flex-direction: row;
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

.step-box.open .post-step {
  opacity: 1;
  pointer-events: initial;
  transition: opacity 0.1s ease-out 0.2s;
}

.post-step button {
  opacity: 1;
  display: inline-block;
}

html[data-mode="recipe"] .step-box {
  border-color: transparent;
  pointer-events: none;
  grid-template-rows: min-content 1fr;
}

html[data-mode="recipe"] .step-content {
  opacity: 1;
  padding-top: 15px;
}

html[data-mode="recipe"] .step-box.open .step-title-group,
html[data-mode="recipe"] .step-title-group {
  opacity: 1;
}

html[data-mode="recipe"] .step-instruction {
  opacity: 1;
  transform: translateY(1.2rem);
}

.step-title-group {
  display: flex;
  gap: 0.5em;
  align-items: baseline;
  opacity: 1;
  transition: opacity 0.3s ease-out;
  position: absolute;
}

.step-box.open .step-title-group {
  opacity: 0;
}

.step-time {
  font-weight: normal;
  opacity: 0.7;
}

.timer-wrapper {
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
  justify-items: center;
}

.timer-wrapper>* {
  grid-area: stack;
  transition: opacity 1s ease;
}

#center-stage-enjoy-display {
  opacity: 0;
}

.timer-wrapper.finished #center-stage-timer-display {
  opacity: 0;
}

.timer-wrapper.finished #center-stage-enjoy-display {
  opacity: 1;
}

.center-stage-wrapper {
  display: grid;
  grid-template-areas: "stack";
  position: sticky;
  top: 58px;
  background-color: var(--color-bg);
  z-index: 90;
  padding-bottom: 10px;
}

.center-stage {
  grid-area: stack;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.center-stage--brewing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.center-stage--brewing.scale-connected {
  justify-content: space-between;
}

.center-stage--brew-ready {
  padding-top: 20px;
}

html[data-mode="brewing"] .center-stage--brew-ready,
html[data-mode="enjoy"] .center-stage--brew-ready {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-mode="brewing"] .center-stage--brewing,
html[data-mode="enjoy"] .center-stage--brewing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 450px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  /* undo .main padding */
  margin-left: -20px;
  margin-right: -20px;
}

.scene {
  position: relative;
  width: 300px;
  height: 100%;
  display: flex;
  justify-content: center;
}

.brewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 90px;
}

.brewer.has-no-kettle {
  margin-top: 0;
  transition: margin-top 10s ease-in-out;
}

.dripper-wrapper {
  width: 100%;
  height: 165px;
  position: relative;
  display: flex;
  justify-content: center;
  touch-action: pan-y;
}

.dripper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 3rem;
  cursor: pointer;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.2s;
  font-family: "Mulish", sans-serif;
  line-height: 1;
  z-index: 10;
}

.dripper-nav:hover {
  color: var(--color-text-main);
  background: none;
}

.dripper-nav.prev {
  left: -50%
}

.dripper-nav.next {
  right: -50%;
}

html[data-mode="grind"] .dripper-nav {
  opacity: 1;
  pointer-events: auto;
}

.dripper {
  position: absolute;
  width: 165px;
  height: 165px;
  transform: translateX(0);
  opacity: 1;
}

.dripper--front {
  z-index: calc(var(--z-index-dripper) + 1);
}
.dripper--back {
  z-index: calc(var(--z-index-dripper) - 1);
}

.vessel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 195px;
  height: 195px;
  transition: transform .5s ease-in-out;
}

.player.enjoy .vessel-wrapper {
  transform: translateY(-80px);
  transition: transform 4s ease-in-out 2s;
}

.vessel {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 2;
  flex-shrink: 0;
  fill: none;
}

.vessel--front {
  z-index: calc(var(--z-index-vessel) + 1);
}
.vessel--back {
  z-index: calc(var(--z-index-vessel) - 1);
}

.vessel.carafe {
  width: 195px;
  height: 195px;
}

.steam {
  opacity: 0;
  width: 40px;
  height: 40px;
  z-index: var(--z-index-vessel);
  position: absolute;
  stroke-dasharray: 9.89;
  animation-duration: 8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: steaming;

  transform: translate(-15px, -20px);
  animation-delay: 2s;
  transition: opacity ease-in-out 1s;
}
.steam.svg-stroke {
  stroke-width: .4px;
}
.steam + .steam {
  transform: translate(0px, -45px);
  animation-delay: 6s;
}
.steam + .steam + .steam {
  transform: translate(15px, -27px);
  animation-delay: 0s;
}
@keyframes steaming {
  0% {
    top: 5px;
    stroke-dashoffset: 9.89;
  }
  60% {
    stroke-dashoffset: -9.89;
  }
  100% {
    top: -60px;
    stroke-dashoffset: -9.89;
  }
}
.player.enjoy .steam {
  opacity: 1;
}

.kettle {
  position: absolute;
  top: -40px;
  left: -120px;
  width: 225px;
  height: 225px;
  opacity: 0;
  transform: translateX(-45px) rotate(-15deg);
  transition: all 0.5s ease-in-out;
  z-index: var(--z-index-kettle);
  pointer-events: none;
}

.svg-fill {
  fill: var(--color-bg);
}
.svg-fill--accent {
  fill: var(--color-accent);
}

.svg-stroke {
  stroke: var(--color-accent);
  stroke-width: 0.1px;
  stroke-linecap: round;
}

.svg-stroke:not(.svg-fill) {
  fill: none;
}

.svg-fill:not(.svg-stroke) {
  stroke: none;
}

.svg-stroke.svg-stroke--width-007 {
    stroke-width: 0.07px;
}
.svg-stroke.svg-stroke--width-02 {
    stroke-width: 0.2px;
}
.svg-stroke.svg-stroke--width-13 {
    stroke-width: 1.3px;
}

.player.pouring .kettle {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.dripper.is-animating {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.dripper.is-animating-fast {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dripper.is-animating-slow {
  transition: transform 3s ease-in-out, opacity 3.5s ease-out;
}

.dripper.is-offscreen-left {
  transform: translateX(-225px);
  opacity: 0;
}

.dripper.is-offscreen-right {
  transform: translateX(225px);
  opacity: 0;
}

.coffee-drop {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  z-index: var(--z-index-vessel);
  bottom: 195px;
  transform: translateX(-50%);
  transition: bottom 10s ease-in-out;
}

.brewer.has-no-kettle .coffee-drop {
  bottom: 285px;
}

.coffee-drop.drop1 {
  left: calc(50% - 10px);
}

.coffee-drop.drop2 {
  left: calc(50% - 2px);
  animation-delay: 1.5s;
}

.player.dripping .coffee-drop {
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: drip;
  animation-fill-mode: backwards;
}

@keyframes drip {
  0% {
    transform: translateY(-40px);
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

.pouring-water {
  position: absolute;
  width: 85px;
  height: 85px;
  top: 64px;
  left: 74px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: var(--z-index-dripper);
  stroke-dasharray: 0.6;
  animation-duration: 1.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: pour;
}

.player.pouring .pouring-water {
  opacity: 1;
  transition: opacity 0.3s ease 0.5s;
}

@keyframes pour {
  0% {
    stroke-dashoffset: 12px;
  }
  100% {
    stroke-dashoffset: 0px;
  }
}

body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
  transition: none !important;
  animation: none !important;
}
