:root {
  --bg: #0b0806;
  --gold: #f2b632;
  --gold-deep: #c98a12;
  --text: #f6ead2;
  --muted: rgba(246, 234, 210, 0.6);
  --glass: rgba(24, 17, 11, 0.72);
  --line: rgba(242, 182, 50, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #2b1d0f 0%, #120c07 55%, var(--bg) 100%);
  color: var(--text);
  font-family: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.brand {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  pointer-events: none;
}

.brand small {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.brand__dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.status {
  position: fixed;
  top: max(52px, calc(env(safe-area-inset-top) + 36px));
  left: 20px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}

.panel {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flavors {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.flavor {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 2px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.flavor[aria-checked='true'] {
  border-color: var(--line);
  background: rgba(242, 182, 50, 0.1);
  color: var(--text);
}

.flavor__swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.pour {
  position: relative;
  overflow: hidden;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #2a1803;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.pour.is-active {
  transform: scale(0.97);
  filter: brightness(1.12);
}

.pour:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: default;
}

.pour__label {
  position: relative;
  z-index: 1;
}

.pour__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, 0.28);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.flow {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow input {
  flex: 1;
  min-width: 0;
  accent-color: var(--gold);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.toggle input {
  accent-color: var(--gold);
}

.ghost {
  padding: 6px 12px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ghost:hover,
.flavor:hover {
  background: rgba(242, 182, 50, 0.08);
}

@media (max-width: 420px) {
  .brand {
    font-size: 17px;
  }
  .flavor {
    font-size: 12px;
  }
}
