/* Merge Lab: tutorial visibility and highlights. */

html.merge-tutorial-locked #merge-quests-section,
html.merge-tutorial-locked .merge-puzzle-stat,
html.merge-tutorial-locked #merge-quest-status {
  display: none !important;
}

body.merge-game-page .merge-page-head h1 {
  display: none !important;
}

body.merge-game-page .merge-page-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

body.merge-game-page.merge-energy-experiment .merge-stats {
  display: flex !important;
  width: min(100%, 790px) !important;
  max-width: 790px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

body.merge-game-page.merge-energy-experiment .merge-stats > .merge-stat {
  flex: 0 0 auto;
  min-width: 0;
}

body.merge-game-page.merge-energy-experiment .merge-stats > .merge-energy-stat {
  display: grid !important;
  grid-template-columns: 29px minmax(0, 1fr) !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 160px !important;
  gap: 6px !important;
}

body.merge-game-page.merge-energy-experiment .merge-energy-meta,
body.merge-game-page.merge-energy-experiment .merge-energy-main-row {
  width: 100% !important;
  min-width: 0 !important;
}

body.merge-game-page.merge-energy-experiment .merge-energy-main-row .merge-energy-progress {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 76px !important;
}

body.merge-game-page .merge-puzzle-stat[aria-hidden="true"],
body.merge-game-page .merge-puzzle-stat:has(#merge-puzzle-open[hidden]) {
  display: none !important;
}

@media (max-width: 640px) {
  body.merge-game-page .merge-page-head {
    margin-bottom: 8px;
  }

  body.merge-game-page.merge-energy-experiment .merge-stats {
    gap: 8px !important;
  }

  body.merge-game-page.merge-energy-experiment .merge-stats > .merge-energy-stat {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    min-width: 0 !important;
    gap: 4px !important;
  }
}

.merge-board .merge-cell.is-tutorial-first-merge {
  outline: none !important;
  animation: none !important;
}

.merge-board .merge-cell.is-tutorial-first-merge.is-hint {
  outline: none !important;
  animation: none !important;
}

.merge-board .merge-cell.is-tutorial-first-merge.is-hint .merge-item-icon {
  animation: none !important;
}

.merge-board .merge-cell.is-tutorial-first-merge > .merge-item {
  animation: none !important;
  transform-origin: center center;
  will-change: transform;
}

.merge-board .merge-cell.is-tutorial-first-merge .merge-item-art {
  filter: saturate(1.08) drop-shadow(0 0 5px rgba(86,185,127,.28));
}

@media (prefers-reduced-motion: reduce) {
  .merge-board .merge-cell.is-tutorial-first-merge > .merge-item {
    animation: none !important;
  }
}

body.merge-game-page .merge-cell.is-tutorial-webbed-source,
body.merge-game-page .merge-cell.is-tutorial-webbed-target {
  position: relative !important;
  overflow: visible !important;
}

body.merge-game-page .merge-cell.is-tutorial-webbed-source {
  z-index: 84 !important;
}

body.merge-game-page .merge-cell.is-tutorial-webbed-target {
  z-index: 83 !important;
}

body.merge-game-page .merge-cell.is-tutorial-webbed-source .merge-item,
body.merge-game-page .merge-cell.is-tutorial-webbed-target .merge-item {
  position: relative !important;
  z-index: 85 !important;
  will-change: transform;
}

html.merge-tutorial-star-balance-open,
html.merge-tutorial-star-balance-open body {
  overflow: hidden;
}

body.merge-game-page .merge-tutorial-star-balance-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(24, 22, 15, 0.78);
  pointer-events: auto;
}

body.merge-game-page .merge-tutorial-star-balance-overlay[hidden] {
  display: none !important;
}

body.merge-game-page .merge-tutorial-star-balance-panel {
  position: fixed;
  left: var(--tutorial-star-panel-left, 16px);
  top: var(--tutorial-star-panel-top, 120px);
  width: var(--tutorial-star-panel-width, min(520px, calc(100vw - 32px)));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body.merge-game-page .merge-tutorial-star-balance-text {
  margin: 0;
  max-width: none;
  color: #fff8e7;
  font: 700 18px/1.45 Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.42);
}

.merge-tutorial-star-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

body.merge-game-page .merge-tutorial-star-balance-ok {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  min-width: 132px;
  background: linear-gradient(180deg, #fff1c7 0%, #ffd973 100%);
  color: #6f4b12;
  font: 800 18px/1 Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.75);
  cursor: pointer;
}

body.merge-game-page .merge-tutorial-star-balance-ok:hover {
  filter: brightness(1.02);
}

body.merge-game-page .merge-tutorial-star-balance-ok:active {
  transform: translateY(1px);
}

.merge-tutorial-skip {
  border: 1px solid rgba(255, 244, 208, .65);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255, 248, 230, .12);
  color: #fff7df;
  font: 700 15px/1.2 Arial, sans-serif;
  cursor: pointer;
  transition: background-color .15s ease;
}

.merge-tutorial-skip:hover,
.merge-tutorial-skip:focus-visible {
  background: rgba(255, 248, 230, .26);
  outline-offset: 3px;
}

body.merge-game-page .merge-stat.is-tutorial-star-focus {
  position: relative !important;
  z-index: 2602 !important;
}

body.merge-game-page .merge-stat.is-tutorial-star-focus::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  border-radius: 18px;
  background: rgba(255, 246, 210, 0.97);
  box-shadow: 0 0 0 2px rgba(255, 232, 156, .95), 0 10px 24px rgba(0,0,0,.18);
  z-index: -1;
  animation: merge-tutorial-star-balance-pulse 1.1s ease-in-out infinite;
}

@keyframes merge-tutorial-star-balance-pulse {
  0%, 100% { opacity: .8; transform: scale(0.98); box-shadow: 0 0 0 2px rgba(255, 232, 156, .84), 0 8px 20px rgba(0,0,0,.16); }
  50% { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 4px rgba(255, 240, 186, 1), 0 12px 28px rgba(0,0,0,.22); }
}

@media (max-width: 760px) {
  body.merge-game-page .merge-tutorial-star-balance-panel {
    gap: 12px;
  }

  body.merge-game-page .merge-tutorial-star-balance-text {
    max-width: none;
    font-size: 16px;
  }

}

body.merge-game-page #merge-board-scene,
body.merge-game-page #merge-board,
body.merge-game-page .merge-board {
  overflow: visible !important;
}

body.merge-game-page .merge-cell.is-tutorial-first-merge {
  position: relative !important;
  overflow: visible !important;
  z-index: 80 !important;
}

body.merge-game-page .merge-cell.is-tutorial-first-merge .merge-item {
  position: relative !important;
  z-index: 81 !important;
  will-change: transform;
}

html.merge-tutorial-energy-balance-open,
html.merge-tutorial-energy-balance-open body {
  overflow: hidden;
}

body.merge-game-page .merge-tutorial-energy-balance-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(24, 22, 15, 0.78);
  pointer-events: auto;
}

body.merge-game-page .merge-tutorial-energy-balance-overlay[hidden] {
  display: none !important;
}

body.merge-game-page .merge-tutorial-energy-balance-panel {
  position: fixed;
  left: var(--tutorial-energy-panel-left, 16px);
  top: var(--tutorial-energy-panel-top, 120px);
  width: var(--tutorial-energy-panel-width, min(620px, calc(100vw - 32px)));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body.merge-game-page .merge-tutorial-energy-balance-text {
  margin: 0;
  max-width: none;
  color: #fff8e7;
  font: 700 18px/1.45 Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.42);
}

body.merge-game-page .merge-tutorial-energy-balance-ok {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  min-width: 132px;
  background: linear-gradient(180deg, #fff1c7 0%, #ffd973 100%);
  color: #6f4b12;
  font: 800 18px/1 Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.75);
  cursor: pointer;
  align-self: flex-end;
}

body.merge-game-page .merge-tutorial-energy-balance-ok:hover {
  filter: brightness(1.02);
}

body.merge-game-page .merge-tutorial-energy-balance-ok:active {
  transform: translateY(1px);
}

body.merge-game-page .merge-energy-stat.is-tutorial-energy-focus {
  position: relative !important;
  z-index: 2602 !important;
}

body.merge-game-page .merge-energy-stat.is-tutorial-energy-focus::before {
  content: "";
  position: absolute;
  inset: -8px -10px -8px -10px;
  border-radius: 18px;
  background: rgba(255, 246, 210, 0.97);
  box-shadow: 0 0 0 2px rgba(255, 232, 156, .95), 0 10px 24px rgba(0,0,0,.18);
  z-index: -1;
  animation: merge-tutorial-energy-balance-pulse 1.1s ease-in-out infinite;
}

@keyframes merge-tutorial-energy-balance-pulse {
  0%, 100% {
    opacity: .82;
    transform: scale(.992);
    box-shadow: 0 0 0 2px rgba(255, 232, 156, .84), 0 8px 20px rgba(0,0,0,.16);
  }
  50% {
    opacity: 1;
    transform: scale(1.012);
    box-shadow: 0 0 0 4px rgba(255, 240, 186, 1), 0 12px 28px rgba(0,0,0,.22);
  }
}

@media (max-width: 760px) {
  body.merge-game-page .merge-tutorial-energy-balance-panel {
    gap: 12px;
  }

  body.merge-game-page .merge-tutorial-energy-balance-text {
    font-size: 16px;
  }

  body.merge-game-page .merge-tutorial-energy-balance-ok {
    align-self: flex-end;
  }
}

body.merge-game-page .merge-tutorial-inline-source {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: -7px;
  margin: 0 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

html.merge-tutorial-shop-open,
html.merge-tutorial-shop-open body {
  overflow: hidden;
}

body.merge-game-page .merge-tutorial-shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(24, 22, 15, 0.78);
  pointer-events: auto;
}

body.merge-game-page .merge-tutorial-shop-overlay[hidden] {
  display: none !important;
}

body.merge-game-page .merge-tutorial-shop-panel {
  position: fixed;
  left: var(--tutorial-shop-panel-left, 16px);
  top: var(--tutorial-shop-panel-top, 120px);
  width: var(--tutorial-shop-panel-width, min(620px, calc(100vw - 32px)));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body.merge-game-page .merge-tutorial-shop-text {
  margin: 0;
  max-width: none;
  color: #fff8e7;
  font: 700 18px/1.45 Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.42);
}

body.merge-game-page .merge-tutorial-shop-ok {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  min-width: 132px;
  background: linear-gradient(180deg, #fff1c7 0%, #ffd973 100%);
  color: #6f4b12;
  font: 800 18px/1 Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.75);
  cursor: pointer;
  align-self: flex-end;
}

body.merge-game-page .merge-tutorial-shop-ok:hover {
  filter: brightness(1.02);
}

body.merge-game-page .merge-tutorial-shop-ok:active {
  transform: translateY(1px);
}

body.merge-game-page .merge-crystal-stat.is-tutorial-shop-focus {
  position: relative !important;
  z-index: 2602 !important;
}

body.merge-game-page .merge-crystal-stat.is-tutorial-shop-focus::before {
  content: "";
  position: absolute;
  inset: -8px -10px;
  border-radius: 18px;
  background: rgba(255, 246, 210, 0.97);
  box-shadow: 0 0 0 2px rgba(255, 232, 156, .95), 0 10px 24px rgba(0,0,0,.18);
  z-index: -1;
  animation: merge-tutorial-shop-pulse 1.1s ease-in-out infinite;
}

@keyframes merge-tutorial-shop-pulse {
  0%, 100% {
    opacity: .82;
    transform: scale(.992);
    box-shadow: 0 0 0 2px rgba(255, 232, 156, .84), 0 8px 20px rgba(0,0,0,.16);
  }
  50% {
    opacity: 1;
    transform: scale(1.012);
    box-shadow: 0 0 0 4px rgba(255, 240, 186, 1), 0 12px 28px rgba(0,0,0,.22);
  }
}

body.merge-game-page .merge-tutorial-inline-energy {
  display: inline-block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -6px;
  margin: 0 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

@media (max-width: 760px) {
  body.merge-game-page .merge-tutorial-shop-panel {
    gap: 12px;
  }

  body.merge-game-page .merge-tutorial-shop-text {
    font-size: 16px;
  }

  body.merge-game-page .merge-tutorial-shop-ok {
    align-self: flex-end;
  }
}

/* Merge Lab: account prompt, shop details and quest tutorial overlay. */

.merge-progress-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(84,72,48,.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.merge-progress-auth-overlay[hidden] {
  display: none !important;
}

.merge-progress-auth-card {
  position: relative;
  width: min(440px,calc(100vw - 24px));
  min-height: 310px;
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: 72px 26px 28px;
  border: 4px solid #c9863e;
  border-radius: 26px;
  background: radial-gradient(circle at 35% 10%,rgba(255,255,255,.84),transparent 36%),#fffaf1;
  box-shadow: 0 11px 0 rgba(150,94,39,.25),0 18px 44px rgba(73,53,30,.22);
}

.merge-progress-auth-plaque {
  min-width: 205px;
  height: 60px;
  font-size: 24px;
}

.merge-progress-auth-close {
  right: -13px;
  top: -18px;
}

.merge-progress-auth-scientist {
  width: 128px;
  height: 190px;
  display: grid;
  place-items: center;
  align-self: center;
}

.merge-progress-auth-scientist img {
  display: block;
  width: 125px;
  max-height: 182px;
  object-fit: contain;
  filter: drop-shadow(0 5px 2px rgba(80,61,43,.12));
}

.merge-progress-auth-copy {
  min-width: 0;
  padding-right: 4px;
}

.merge-progress-auth-copy p {
  margin: 0 0 20px;
  color: #53605a;
  font: 500 16px/1.48 Arial,Helvetica,sans-serif;
}

.merge-progress-auth-actions {
  width: min(204px,100%);
  display: grid;
  gap: 10px;
}

.merge-progress-auth-button {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 2px solid;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 700 14px/1 Arial,Helvetica,sans-serif;
  box-shadow: 0 3px 0 rgba(49,68,54,.11);
  user-select: none;
}

.merge-progress-auth-vk {
  background: #0077ff;
  border-color: #0077ff;
  color: #fff !important;
}

.merge-progress-auth-vk-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0077ff;
  font: 900 10px/1 Arial,Helvetica,sans-serif;
  letter-spacing: -.4px;
}

.merge-progress-auth-yandex {
  background: #111;
  border-color: #111;
  color: #fff !important;
}

.merge-progress-auth-yandex-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fc3f1d;
  color: #fff;
  font: 800 13px/1 Arial,Helvetica,sans-serif;
  padding: 0 0 1px;
}

.merge-progress-auth-email {
  background: linear-gradient(#58d66b,#39bb53);
  border-color: #209b39;
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
}

.merge-shop-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font: 700 11px/1 Arial,sans-serif;
  position: absolute !important;
  top: 8px !important;
  right: 7px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 20 !important;
  margin: 0 !important;
}

.merge-shop-info:hover::after,
.merge-shop-info:focus-visible::after {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: none !important;
  min-height: 0 !important;
  white-space: nowrap !important;
  padding: 10px 10px !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #496053 !important;
  font: 700 12px/1 Arial,sans-serif !important;
  text-align: center !important;
  box-shadow: 0 6px 18px rgba(41,65,52,.18) !important;
  opacity: 1 !important;
  z-index: 60 !important;
  pointer-events: none !important;
}

.merge-shop-info:hover::before,
.merge-shop-info:focus-visible::before {
  content: none !important;
  display: none !important;
}

.merge-shop-toast,
.merge-energy-shop-toast {
  padding: 10px 16px !important;
  border: 1px solid rgba(194,150,88,.38) !important;
  border-radius: 14px !important;
  background: #f5e8c8 !important;
  box-shadow: 0 4px 12px rgba(94,72,42,.12) !important;
  text-shadow: none !important;
  color: #2f9f58 !important;
  font-weight: 700 !important;
}

.merge-shop-countdown {
  display: inline-block;
  min-width: 66px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.merge-shop-daily-action.is-claimed {
  opacity: .9 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
  cursor: default !important;
  filter: none !important;
}

.merge-shop-pack:hover,
.merge-shop-pack:focus,
.merge-shop-pack:focus-visible,
.merge-shop-pack:active {
  background: linear-gradient(180deg,#fff8ed 0%,#fff8ed 62%,#f5dfcb 62%,#f5dfcb 100%) !important;
  color: #315746 !important;
}

.merge-shop-pack-price {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 72px !important;
  min-height: 28px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg,#73d95b 0%,#48cb46 100%) !important;
  border: 2px solid #87de6d !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38),0 2px 0 #2eac3c !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.merge-shop-pack:hover .merge-shop-pack-price,
.merge-shop-pack:focus-visible .merge-shop-pack-price,
.merge-shop-pack:active .merge-shop-pack-price {
  background: linear-gradient(180deg,#2ca83e 0%,#13872c 100%) !important;
  border-color: #1d8c31 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34),0 2px 0 #0f6e24 !important;
  color: #fff !important;
  filter: none !important;
}

.merge-shop-pack.is-unavailable {
  cursor: default !important;
}

.merge-shop-pack.is-unavailable .merge-shop-pack-price,
.merge-shop-pack.is-unavailable:hover .merge-shop-pack-price,
.merge-shop-pack.is-unavailable:focus .merge-shop-pack-price,
.merge-shop-pack.is-unavailable:focus-visible .merge-shop-pack-price,
.merge-shop-pack.is-unavailable:active .merge-shop-pack-price {
  background: linear-gradient(180deg,#d9d9d9 0%,#bdbdbd 100%) !important;
  border-color: #cecece !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38),0 2px 0 #a0a0a0 !important;
  color: #fff !important;
  filter: none !important;
}

.merge-shop-vk-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #0077ff;
  border-radius: 12px;
  background: #0077ff;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.merge-shop-vk-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: #0077ff;
  font: 900 10px/1 Arial,Helvetica,sans-serif;
  letter-spacing: -.4px;
}

.merge-shop-payment-note {
  margin: 10px 4px 0;
  text-align: center;
  color: #6e786f;
  font: 500 11px/1.35 Arial,Helvetica,sans-serif;
}

.merge-shop-payment-note a {
  color: #3f8d62;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.merge-shop-daily-meta,
.merge-shop-weekly-meta {
  width: 252px;
  max-width: 100%;
  margin: -10px auto 2px !important;
  text-align: left !important;
}

.merge-energy-shop-regen.merge-shop-daily-note,
.merge-energy-shop-regen.merge-shop-weekly-note {
  margin: 0;
  color: #6f776b;
  font: 500 12px/1.18 Arial,Helvetica,sans-serif;
  text-shadow: none;
}

.main-nav .dropdown > summary::after,
.mobile-nav .mobile-menu-dropdown > summary::after,
.mobile-nav .mobile-submenu > summary::after {
  content: "▾" !important;
}

.mobile-nav .mobile-submenu[open] > summary::after {
  content: "▴" !important;
}

.merge-expansion-copy {
  max-width: 430px;
  margin: 8px auto 2px;
  padding: 0 18px;
  color: #52675b;
  font: 700 15px/1.45 Arial,Helvetica,sans-serif;
  text-align: center;
  text-shadow: none;
}

.merge-energy-shop-offer.is-pharmacy-source .merge-energy-shop-bottle img {
  width: min(128px,100%);
  height: auto;
  object-fit: contain;
}

.merge-energy-shop-buy.is-pharmacy-claim {
  min-width: 126px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  border: 1px solid rgba(76,174,76,.38) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.34),0 2px 0 rgba(64,151,67,.24) !important;
}

.merge-shop-daily-reset,
.merge-shop-weekly-reset {
  color: inherit;
  font-weight: inherit;
}

.merge-shop-weekly {
  margin: 0 auto;
  padding-top: 0;
  gap: 14px;
}

.merge-shop-weekly-card {
  width: 85px !important;
  height: 120px !important;
  flex: 0 0 85px !important;
  padding: 41px 6px 9px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  overflow: visible !important;
}

.merge-shop-weekly-card::after {
  content: none !important;
  display: none !important;
}

.merge-shop-weekly-bottle {
  top: 9px !important;
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

.merge-shop-weekly-bottle img {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 4px rgba(63,63,63,.15));
}

.merge-shop-weekly-buy {
  width: 73px !important;
  height: 27px !important;
  min-height: 27px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  gap: 3px !important;
  align-self: auto !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}

.merge-shop-weekly-buy img {
  width: 12px !important;
  height: 12px !important;
  object-fit: contain !important;
}

.merge-shop-weekly-buy:hover,
.merge-shop-weekly-buy:focus-visible {
  background: linear-gradient(180deg,#64d956,#3eae3d) !important;
  border-color: #76ba3d !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.32),0 2px 0 rgba(68,143,55,.32) !important;
}

.merge-shop-weekly-buy.is-locked,
.merge-shop-weekly-buy.is-claimed,
.merge-shop-weekly-buy:disabled {
  border-color: #c8c0b8 !important;
  background: linear-gradient(180deg,#ded8d1,#c9c1b9) !important;
  color: #f8f5f1 !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.30) !important;
  cursor: default !important;
  text-shadow: 0 1px 0 rgba(119,109,99,.28) !important;
  filter: none !important;
}

.merge-shop-weekly-buy.is-claimed {
  font-size: 10px !important;
  font-variant-numeric: tabular-nums;
}

.merge-shop-weekly-card.is-locked .merge-shop-weekly-bottle {
  opacity: .55;
  filter: grayscale(.15);
}

.merge-shop-weekly-buy.is-claimed .merge-shop-countdown {
  min-width: 0 !important;
  font-size: 8.5px !important;
  letter-spacing: -.15px !important;
  white-space: nowrap !important;
}

.merge-shop-pack {
  position: relative !important;
  overflow: hidden !important;
}

.merge-shop-pack-lock {
  position: absolute;
  inset: 0;
  z-index: 80;
  border: 2px solid #dfc39e;
  border-radius: 15px;
  background: linear-gradient(90deg,rgba(190,151,101,.025) 0 1px,transparent 1px 9px),
      linear-gradient(180deg,#fffaf1 0%,#fbf3e6 54%,#f7ead8 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.74),
      inset 0 2px 0 rgba(255,255,255,.78),
      0 3px 0 rgba(190,144,91,.10),
      0 6px 12px rgba(95,69,39,.08);
  pointer-events: none;
}

.merge-shop-pack-lock::before,
.merge-shop-pack-lock::after {
  content: none;
  display: none;
}

.merge-shop-pack-lock-rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #c99d6b;
  border-radius: 50%;
  background: #f4ddbd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72),0 1px 1px rgba(124,86,45,.14);
}

.merge-shop-pack-lock-rivet-tl {
  left: 8px;
  top: 7px;
}

.merge-shop-pack-lock-rivet-tr {
  right: 8px;
  top: 7px;
}

.merge-shop-pack-lock-rivet-bl {
  left: 8px;
  bottom: 7px;
}

.merge-shop-pack-lock-rivet-br {
  right: 8px;
  bottom: 7px;
}

.merge-tutorial-quests-overlay {
  position: fixed;
  inset: 0;
  z-index: 1760;
  background: rgba(45,54,48,.56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.merge-tutorial-quests-overlay[hidden] {
  display: none !important;
}

.merge-tutorial-quests-panel {
  position: fixed;
  z-index: 1762;
  left: var(--tutorial-quests-panel-left,16px);
  top: var(--tutorial-quests-panel-top,16px);
  width: var(--tutorial-quests-panel-width,min(600px,calc(100vw - 32px)));
  box-sizing: border-box;
  padding: 18px 20px 16px;
  border: 3px solid #d49a54;
  border-radius: 19px;
  background: linear-gradient(180deg,#fffdf7 0%,#fff7e8 100%);
  box-shadow: 0 8px 0 rgba(145,94,43,.18),0 18px 38px rgba(41,48,43,.25);
  text-align: center;
}

.merge-tutorial-quests-text {
  margin: 0;
  color: #53605a;
  font: 700 15px/1.45 Arial,Helvetica,sans-serif;
}

.merge-tutorial-quests-ok {
  min-width: 126px;
  height: 39px;
  margin: 14px auto 0;
  padding: 0 20px;
  border: 2px solid #55b94d;
  border-radius: 12px;
  background: linear-gradient(180deg,#71dc62 0%,#48c64a 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35),0 3px 0 rgba(47,145,52,.24);
  color: #fff;
  font: 800 14px/1 Arial,Helvetica,sans-serif;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(38,116,42,.22);
}

.merge-tutorial-quests-ok:hover,
.merge-tutorial-quests-ok:focus-visible {
  filter: brightness(1.04);
}

.merge-quest-strip.is-tutorial-quests-focus {
  position: relative;
  z-index: 1761;
  border-radius: 18px;
  background: rgba(255,250,241,.98);
  box-shadow: 0 0 0 5px rgba(255,255,255,.98),0 0 0 9px rgba(231,176,101,.96),0 12px 30px rgba(39,47,41,.24);
  pointer-events: none;
}

@media (max-width:520px) {
  .merge-progress-auth-card {
    width: min(410px,calc(100vw - 18px));
    grid-template-columns: 108px minmax(0,1fr);
    gap: 14px;
    padding: 66px 20px 24px;
    border-radius: 23px;
  }

  .merge-progress-auth-scientist {
    width: 108px;
    height: 166px;
  }

  .merge-progress-auth-scientist img {
    width: 108px;
    max-height: 164px;
  }

  .merge-progress-auth-copy p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .merge-progress-auth-actions {
    width: min(204px,100%);
  }

  .merge-progress-auth-button {
    height: 42px;
    font-size: 13px;
  }
}

@media (max-width:360px) {
  .merge-progress-auth-card {
    grid-template-columns: 94px minmax(0,1fr);
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .merge-progress-auth-scientist {
    width: 94px;
    height: 150px;
  }

  .merge-progress-auth-scientist img {
    width: 94px;
    max-height: 148px;
  }
}

/* Item chain guide */
.merge-chain-guide {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(48,42,31,.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.merge-chain-guide[hidden] {
  display: none !important;
}

.merge-chain-guide-card {
  position: relative;
  width: min(700px,calc(100vw - 28px));
  max-height: min(760px,calc(100vh - 28px));
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 4px solid #d6974f;
  border-radius: 26px;
  background: linear-gradient(180deg,#fff7df 0%,#ffe7b7 100%);
  box-shadow: 0 12px 0 rgba(156,99,42,.20),0 26px 64px rgba(58,41,21,.28),inset 0 1px 0 rgba(255,255,255,.8);
}

.merge-chain-guide-close {
  position: absolute;
  top: 11px;
  right: 13px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: #f4cf86;
  color: #8d6236;
  cursor: pointer;
  font: 900 30px/1 Arial,sans-serif;
}

.merge-chain-guide-head {
  padding-right: 48px;
}

.merge-chain-guide-kicker {
  display: block;
  margin-bottom: 3px;
  color: #b27c48;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.merge-chain-guide-head h2 {
  margin: 0;
  color: #79512f;
  font-size: 25px;
  line-height: 1.1;
}

.merge-chain-guide-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 8px 12px;
  border: 2px solid rgba(197,143,69,.35);
  border-radius: 16px;
  background: rgba(255,255,255,.36);
}

.merge-chain-guide-source-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
}

.merge-chain-guide-source-icon img {
  display: block;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.merge-chain-guide-source-copy {
  display: grid;
  gap: 2px;
}

.merge-chain-guide-source-copy span {
  color: #ae7f52;
  font-size: 11px;
  font-weight: 800;
}

.merge-chain-guide-source-copy strong {
  color: #765030;
  font-size: 16px;
  line-height: 1.2;
}

.merge-chain-guide-levels {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  column-gap: 18px;
  row-gap: 12px;
}

.merge-chain-guide-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  grid-template-rows: 56px minmax(24px,auto);
  place-items: center;
  align-content: start;
  gap: 3px;
  padding: 7px 5px 16px;
  border: 2px solid #e2bd79;
  border-radius: 13px;
  background: rgba(255,252,231,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.merge-chain-guide-item:not(:nth-child(5n)):not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -15px;
  z-index: 2;
  width: 11px;
  transform: translateY(-58%);
  color: #d9a55e;
  font: 900 25px/1 ui-rounded,"Trebuchet MS","Segoe UI",sans-serif;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  pointer-events: none;
}

.merge-chain-guide-item.is-selected {
  border-color: #71ae58;
  box-shadow: 0 0 0 3px rgba(112,173,87,.18),inset 0 1px 0 rgba(255,255,255,.8);
}

.merge-chain-guide-item img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(91,69,43,.12));
}

.merge-chain-guide-item-name {
  align-self: start;
  color: #7b5b3c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.merge-chain-guide-item-level {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(211,151,72,.72);
  border-radius: 50%;
  background: #fff4cf;
  color: #9a7044;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 1px 2px rgba(108,77,41,.08),0 0 0 2px rgba(255,247,223,.96);
}

.merge-chain-guide-item.is-locked {
  grid-template-rows: 1fr;
  background: rgba(255,248,211,.72);
}

.merge-chain-guide-question {
  color: #dea96a;
  font: 900 46px/1 ui-rounded,"Trebuchet MS","Segoe UI",sans-serif;
  text-shadow: 0 2px 0 rgba(255,255,255,.75);
}

@media (max-width:640px) {
  .merge-chain-guide-card {
    padding: 20px 14px 22px;
    border-radius: 22px;
  }

  .merge-chain-guide-head h2 {
    font-size: 22px;
  }

  .merge-chain-guide-levels {
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 18px;
    row-gap: 10px;
  }

  .merge-chain-guide-item {
    min-height: 96px;
    grid-template-rows: 50px minmax(22px,auto);
    padding: 7px 4px 15px;
  }

  .merge-chain-guide-item:nth-child(5n)::after {
    content: "›";
  }

  .merge-chain-guide-item:nth-child(3n)::after,
  .merge-chain-guide-item:last-child::after {
    content: none;
  }

  .merge-chain-guide-item img {
    width: 48px;
    height: 48px;
  }

  .merge-chain-guide-source {
    margin-top: 16px;
  }
}

