:root {
  --text: #43306b;
  --muted: #8a7aa8;
  --accent: #ff5b8a;
  --accent-2: #ff8c42;
  --good: #1fb56b;
  --card: rgba(255, 255, 255, 0.6);
  --card-strong: rgba(255, 255, 255, 0.78);
  --card-brd: rgba(120, 80, 160, 0.16);
  --pill: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(120, 80, 160, 0.22);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(720px 540px at 10% 8%, rgba(254, 232, 130, 0.9), transparent 62%),
    radial-gradient(640px 520px at 92% 10%, rgba(203, 189, 249, 0.8), transparent 60%),
    linear-gradient(172deg, #fee3a0 0%, #f9c8d8 46%, #a8d2f9 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-emoji {
  font-size: 64px;
  line-height: 1;
  animation: loading-bob 1.1s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}
.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: loading-spin 0.8s linear infinite;
}
.loading-text {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(760px 560px at 8% 10%, rgba(254, 232, 130, 0.9), transparent 62%),
    radial-gradient(640px 520px at 92% 8%, rgba(203, 189, 249, 0.8), transparent 60%),
    radial-gradient(700px 580px at 92% 62%, rgba(165, 217, 253, 0.85), transparent 62%),
    radial-gradient(640px 540px at 6% 55%, rgba(254, 218, 138, 0.85), transparent 60%),
    radial-gradient(980px 760px at 50% 34%, rgba(253, 195, 196, 0.55), transparent 66%),
    linear-gradient(172deg, #fee3a0 0%, #f9c8d8 46%, #a8d2f9 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

/* floating background blobs */
.bokeh {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: drift 18s ease-in-out infinite;
}
.b1 { width: 320px; height: 320px; background: #ff9fd0; top: -80px; left: -60px; }
.b2 { width: 260px; height: 260px; background: #fed27a; bottom: -60px; right: -40px; animation-delay: -4s; }
.b3 { width: 220px; height: 220px; background: #a5c9ff; bottom: 20%; left: -90px; animation-delay: -9s; }
.b4 { width: 200px; height: 200px; background: #e3c1ff; top: 8%; right: -70px; animation-delay: -13s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -28px) scale(1.08); }
  66% { transform: translate(-24px, 22px) scale(0.94); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* HUD */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(120, 80, 160, 0.12);
}
.title span {
  font-weight: 800;
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: 0.5px;
  background: linear-gradient(92deg, #ff7a1f, #ff3d7f 46%, #9333ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 5px rgba(150, 55, 125, 0.3));
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(120, 80, 160, 0.12);
  line-height: 1.1;
}

.chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.chip-val {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: transform 0.12s ease;
}
.chip-val.pulse { transform: scale(1.28); color: var(--accent-2); }

.icon-btn {
  min-width: 46px;
  font-size: 20px;
  cursor: pointer;
  flex-direction: row;
  padding: 0;
  height: 46px;
  user-select: none;
}
.icon-btn:hover { border-color: rgba(120, 80, 160, 0.32); }
.icon-btn:active { transform: scale(0.92); }

/* Stage — the blender SVG is the background, the canvas (transparent) holds the fruits */
.stage {
  position: relative;
  padding: 0;
  border: none;
  background: url("blender-photo.webp?v=20260704h") center / 100% 100% no-repeat;
}

/* Control buttons sitting on the blender's base panel */
.blend-controls {
  position: absolute;
  left: 27.68%;
  top: 83.36%;
  width: 45.69%;
  height: 8.13%;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}
.blend-controls button {
  flex: 0 0 28.45%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  cursor: pointer;
  color: #f4f2fa;
  font: 800 12px "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(120% 120% at 35% 28%, #35303f, #0c0a13 70%);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.blend-controls .bc-ico { font-size: 15px; line-height: 1.1; }
.blend-controls .bc-num { color: #ffcf5e; font-size: 11px; line-height: 1; }
.blend-controls button:active { transform: translateY(1px); }
.blend-controls button.disabled {
  /* НЕ прозрачность: под кнопкой нарисованная фото-кнопка, она бы просвечивала */
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.26);
  background: radial-gradient(120% 120% at 35% 28%, #201d27, #0a0811 70%);
  color: rgba(244, 242, 250, 0.35);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.blend-controls button.disabled .bc-ico { filter: grayscale(1) opacity(0.4); }
.blend-controls button.disabled .bc-num { color: rgba(255, 207, 94, 0.35); }
.blend-controls .bc-ico { font-size: 15px; line-height: 1; }
.blend-controls .bc-num { font-weight: 900; }

#game {
  display: block;
  width: 100%;
  aspect-ratio: 400 / 640;
  touch-action: none;
}

.pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.next-pill,
.best-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(120, 80, 160, 0.16);
}
.pill-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.pill-emoji {
  font-size: 20px;
  line-height: 1;
}
.pill-emoji.tiny {
  font-size: 14px;
  opacity: 0.6;
}

/* Toast (celebration / milestones) */
.toast {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--card-brd);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(120, 80, 160, 0.3);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.18, 1.4, 0.4, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.toast-emoji { font-size: 44px; line-height: 1; }
.toast-text { font-size: 15px; font-weight: 800; color: var(--text); }
.toast.big .toast-emoji { font-size: 66px; }
.toast.big .toast-text { font-size: 21px; color: var(--accent-2); }

/* Controls (hold / undo) */
.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.ctrl-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(120, 80, 160, 0.12);
  transition: transform 0.12s ease, background 0.15s ease;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.82); }
.ctrl-btn:active { transform: scale(0.96); }
.ctrl-btn.disabled { opacity: 0.45; pointer-events: none; }
.ctrl-ico { font-size: 18px; line-height: 1; }
.ctrl-slot {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(120, 80, 160, 0.12);
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
}
@media (max-width: 420px) {
  .ctrl-text { display: none; }
  .ctrl-ico { font-size: 20px; }
}

/* Game-over stats + achievements */
.overlay-card p.result-stats {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.ach-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
}
.ach-title { font-size: 13px; font-weight: 800; color: var(--text); }
.ach-item {
  padding: 4px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe08a, #ffb347);
  color: #6a3a00;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(255, 179, 71, 0.32);
}

/* Settings toggles */
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--card-brd); border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 16px; font-weight: 700; color: var(--text);
}
.toggle {
  position: relative; width: 52px; height: 30px; flex: none;
  border: none; border-radius: 999px; cursor: pointer;
  background: rgba(120, 80, 160, 0.25);
  transition: background 0.18s ease;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.toggle.on { background: linear-gradient(135deg, var(--accent-2), var(--good)); }
.toggle.on::after { transform: translateX(22px); }
.lang-select {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  padding: 7px 10px; border-radius: 12px; max-width: 150px;
  border: 1px solid var(--card-brd); background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

/* Leaderboard */
.lb-section { margin: 2px 0 18px; }
.lb-submit { display: flex; gap: 8px; margin-bottom: 10px; }
.lb-input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px;
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--card-brd); background: rgba(255, 255, 255, 0.7); color: var(--text);
}
.lb-input::placeholder { color: var(--muted); }
.lb-input:focus { outline: none; border-color: var(--accent); }
.lb-btn {
  font: inherit; font-weight: 800; font-size: 14px; white-space: nowrap;
  padding: 0 16px; border: none; border-radius: 12px; cursor: pointer;
  color: #2a0d1c; background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.lb-btn:disabled { opacity: 0.6; cursor: default; }
.lb-rank-msg { margin: 0; min-height: 18px; font-size: 14px; font-weight: 800; color: var(--accent); }
.lb-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  max-height: 220px; overflow-y: auto; text-align: left;
  border: 1px solid var(--card-brd); border-radius: 14px; background: rgba(255, 255, 255, 0.5);
}
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid rgba(120, 80, 160, 0.1); font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.me { background: rgba(255, 193, 77, 0.28); }
.lb-pos { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; }
.lb-sc { font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.lb-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.link-btn {
  display: inline-block; margin-top: 12px;
  font: inherit; font-weight: 700; font-size: 14px;
  color: var(--text); background: none; border: none; cursor: pointer;
  text-decoration: underline; opacity: 0.85;
}
.link-btn:hover { opacity: 1; }

/* Evolution legend */
.legend {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 0;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(120, 80, 160, 0.1);
  font-size: 17px;
  line-height: 1.5;
}
.legend i {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  margin: 0 1px;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 244, 248, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  z-index: 5;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.overlay.hidden {
  opacity: 0;
  visibility: hidden; /* скрытые оверлеи выпадают из композитинга — их blur не считается */
  pointer-events: none;
}

.overlay-card {
  text-align: center;
  max-width: 330px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 22px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 26px 64px rgba(88, 38, 140, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: pop-in 0.35s cubic-bezier(0.18, 1.2, 0.4, 1);
}

.big-emoji {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(120, 80, 160, 0.3));
  animation: bob 3s ease-in-out infinite;
}

.record-badge {
  display: inline-block;
  margin: 12px 0 2px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: #6a3a00;
  background: linear-gradient(135deg, #ffe08a, #ffb347);
  box-shadow: 0 8px 22px rgba(255, 179, 71, 0.4);
  animation: badge-pop 0.4s cubic-bezier(0.18, 1.4, 0.4, 1);
}
.record-badge.hidden { display: none; }

.overlay-card h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.overlay-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.overlay-card p.result { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.overlay-card p.result-fruit { font-size: 16px; color: var(--text); margin-bottom: 22px; }
.overlay-card p.result-fruit span { font-size: 22px; vertical-align: middle; }
.overlay-card b { color: var(--accent-2); }

.play-btn {
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  color: #4a1020;
  padding: 14px 40px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 26px rgba(255, 91, 138, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 91, 138, 0.45); }
.play-btn:active { transform: translateY(1px) scale(0.97); }

.hint {
  align-self: center;
  margin: 0;
  padding: 7px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(120, 80, 160, 0.1);
}

/* Rewarded-continue offer */
.continue-timer {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Daily-board label on the game-over screen */
.lb-mode-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
}

/* One-time hint bubble above the blender-base buttons */
.ctrl-hint {
  position: absolute;
  left: 50%;
  bottom: 15.5%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--card-brd);
  box-shadow: 0 10px 26px rgba(120, 80, 160, 0.3);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ctrl-hint.hidden { opacity: 0; }
.ctrl-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.94);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-height: 720px) {
  .hint { display: none; }
  .big-emoji { font-size: 52px; }
  .overlay-card h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bokeh { animation: none; }
}


/* ==== Модерн-полиш 2026-07-03: шум, виньетка, глубина, стекло UI ==== */
.fx-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.fx-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(115% 100% at 50% 42%, transparent 56%, rgba(70, 30, 95, 0.18) 100%);
}

/* глубина: световой ореол за блендером + тень на «столе» */
.stage::before {
  content: ""; position: absolute; inset: -10% -16%; z-index: -1;
  background: radial-gradient(50% 44% at 50% 46%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
}
.stage::after {
  content: ""; position: absolute; left: 17%; right: 17%; bottom: 0.2%; height: 2.8%;
  z-index: -1; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(55, 22, 78, 0.45), rgba(55, 22, 78, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
}

/* стеклянные панели UI — глубже blur, светлая кромка, сочность */
.title, .chip, .next-pill, .best-pill, .legend, .hint {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(95, 45, 145, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.play-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.lb-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, var(--accent-2), var(--accent));
}


/* ==== HUD в стиле прибора (2026-07-04): тёмные панели + LED, как база блендера ==== */
.title, .chip, .next-pill, .best-pill, .legend {
  background: rgba(17, 14, 26, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(60, 25, 90, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.chip-label, .pill-label { color: rgba(255, 255, 255, 0.55); }
.chip-val { color: #fff; }
.chip-val.pulse { color: #ffcf5e; }
.icon-btn:hover { border-color: rgba(255, 255, 255, 0.3); }

/* LED-подчёркивание на счёте и рекорде — как полоска на базе */
.chip { position: relative; overflow: hidden; }
.chip:not(.icon-btn)::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #ff5b8a, #ff8c42);
  opacity: 0.95;
}

/* настоящие фрукты игры вместо эмодзи */
.pill-emoji { display: flex; align-items: center; justify-content: center; min-width: 22px; }
.pill-fruit { width: 22px; height: 22px; object-fit: contain; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.pill-emoji.tiny .pill-fruit { width: 16px; height: 16px; opacity: 0.75; }
.final-fruit-img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }

/* легенда = прогресс эволюции: собранные цветные, дальше — призрачные */
.legend { padding: 8px 14px; gap: 2px; }
.legend img { width: 21px; height: 21px; object-fit: contain; transition: filter 0.35s ease, opacity 0.35s ease; }
.legend img.locked { filter: grayscale(1) brightness(1.6); opacity: 0.3; }
.legend i { color: rgba(255, 255, 255, 0.35); }

/* подсказка-строка дублирует туториал — прячем, воздух чище */
.hint { display: none; }


/* ==== Ползунки громкости (2026-07-08): раздельно музыка и звуки ==== */
.vol-ctl { display: flex; align-items: center; gap: 10px; }
.vol-val {
  min-width: 40px; text-align: right;
  font-size: 13px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vol-range {
  -webkit-appearance: none; appearance: none;
  width: 130px; height: 6px; border-radius: 999px;
  background: rgba(120, 80, 160, 0.22);
  outline: none; cursor: pointer;
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.vol-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.vol-range:active::-webkit-slider-thumb { transform: scale(1.12); }
