.comb-game {
  display: grid;
  gap: 14px;
}

.comb-scene {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 250, 0.96)),
    repeating-linear-gradient(135deg, rgba(75, 85, 99, 0.07) 0, rgba(75, 85, 99, 0.07) 1px, transparent 1px, transparent 18px);
}

.comb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.comb-title {
  color: #151c26;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.comb-subtitle {
  margin-top: 3px;
  color: #56616f;
  font-size: 13px;
  line-height: 1.35;
}

.comb-badge {
  min-height: 32px;
  border: 1px solid #c0903e;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff6dd;
  color: #7a4a12;
  font-size: 13px;
  font-weight: 850;
}

.comb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.comb-stat {
  min-width: 0;
  min-height: 58px;
  border: 1px solid #d4dbe5;
  border-radius: 8px;
  padding: 8px 9px;
  background: #ffffff;
}

.comb-stat span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
}

.comb-stat strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.comb-furnace {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  min-height: 154px;
  border: 1px solid #9aa6b4;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 42px 92px, rgba(251, 146, 60, 0.32), transparent 46px),
    linear-gradient(145deg, #e7ecf1, #f9fafb 62%, #dde4ec);
  box-shadow: inset 0 2px 5px rgba(30, 41, 59, 0.12);
}

.comb-furnace::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 30px;
  width: 62px;
  height: 88px;
  border-radius: 34px 34px 12px 12px;
  background:
    radial-gradient(circle at 50% 70%, #fff4bf 0 16px, #f59e0b 17px 30px, #9a3412 31px);
  border: 5px solid #6b7280;
  box-shadow: inset 0 -10px 14px rgba(111, 52, 18, 0.28);
}

.comb-furnace-hot::before {
  box-shadow: 0 0 0 5px rgba(20, 125, 79, 0.14), inset 0 -10px 14px rgba(111, 52, 18, 0.28);
}

.comb-furnace-prune::before {
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.14), inset 0 -10px 14px rgba(111, 52, 18, 0.28);
}

.comb-flame {
  position: relative;
  z-index: 1;
  min-height: 104px;
}

.comb-target {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-width: 0;
}

.comb-target-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid #d3dae4;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
}

.comb-target-head span {
  color: #56616f;
  font-weight: 800;
}

.comb-target-head strong {
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.comb-gauge {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  min-height: 28px;
}

.comb-gauge-cell {
  min-width: 0;
  min-height: 28px;
  border: 1px solid #cad3df;
  border-radius: 6px;
  background: #ffffff;
}

.comb-gauge-cell-filled {
  border-color: #c77622;
  background: linear-gradient(180deg, #fcd77d, #f59e0b);
}

.comb-gauge-cell-over {
  border-color: #b42318;
  background: #fee2e2;
}

.comb-cart {
  position: relative;
  z-index: 1;
  min-height: 46px;
  border: 1px dashed #9aa6b4;
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: #667085;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
}

.comb-cart-chip {
  min-width: 38px;
  min-height: 34px;
  border-radius: 999px;
  background: #2a7c73;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  position: relative;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.comb-cart-chip small {
  position: absolute;
  left: -7px;
  top: 7px;
  color: #344054;
  font-size: 12px;
}

.comb-mine {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.comb-ore {
  position: relative;
  min-width: 0;
  min-height: 72px;
  border: 1px solid #8f9aaa;
  border-radius: 8px;
  padding: 8px 4px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.82) 0 8px, transparent 9px),
    linear-gradient(145deg, #e4e9ef, #aab4c2);
  color: #17202a;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -5px 0 rgba(30, 41, 59, 0.12), 0 6px 12px rgba(30, 41, 59, 0.08);
}

.comb-ore::after {
  content: "";
  position: absolute;
  inset: 9px 13px;
  border-radius: 42% 58% 46% 54%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  pointer-events: none;
}

.comb-ore:active {
  transform: scale(0.96);
}

.comb-ore-core {
  position: relative;
  z-index: 1;
  color: #101828;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.comb-ore-index {
  position: relative;
  z-index: 1;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
}

.comb-ore-active {
  border-color: #0f766e;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.9) 0 8px, transparent 9px),
    linear-gradient(145deg, #b8eee5, #47a99b);
}

.comb-ore-locked {
  border-color: #b7bec8;
  background:
    repeating-linear-gradient(45deg, rgba(107, 114, 128, 0.12) 0, rgba(107, 114, 128, 0.12) 6px, transparent 6px, transparent 12px),
    linear-gradient(145deg, #eef1f5, #cbd3dd);
  color: #667085;
}

.comb-ore-locked .comb-ore-core,
.comb-ore-locked .comb-ore-index {
  color: #667085;
}

.comb-wrong {
  animation: comb-shake 0.34s ease;
  border-color: #b42318 !important;
  background: #fff1f0 !important;
}

.comb-auto {
  animation: comb-pop 0.38s ease;
}

.comb-trace {
  display: grid;
  gap: 8px;
  border: 1px solid #d4dbe5;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.comb-trace-title {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.comb-stack {
  display: grid;
  gap: 6px;
}

.comb-stack-row {
  min-height: 36px;
  border: 1px solid #e1e6ee;
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  background: #fbfcfe;
  color: #344054;
  font-size: 13px;
}

.comb-stack-row strong {
  color: #101828;
  font-size: 13px;
  white-space: nowrap;
}

.comb-stack-hit {
  border-color: #0f766e;
  background: #d7f4ef;
}

.comb-stack-cut {
  border-color: #b42318;
  background: #fff1f0;
}

.comb-recipes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.comb-recipe {
  min-height: 58px;
  min-width: 0;
  border: 1px solid #d4dbe5;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  display: grid;
  gap: 3px;
  align-content: center;
}

.comb-recipe span {
  color: #344054;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.comb-recipe strong {
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
}

.comb-recipe-done {
  border-color: #0f766e;
  background: #d7f4ef;
}

.comb-recipe-cut {
  border-color: #c0903e;
  background: #fff6dd;
}

.comb-status {
  min-height: 54px;
  border: 1px solid #d4dbe5;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: #344054;
  line-height: 1.45;
}

.comb-status-good {
  border-color: #0f766e;
  background: #d7f4ef;
  color: #0f514b;
}

.comb-status-warn {
  border-color: #b45309;
  background: #fff7ed;
  color: #8a3b07;
}

.comb-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.comb-btn {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #c6ceda;
  border-radius: 8px;
  padding: 8px 9px;
  background: #ffffff;
  color: #243247;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

.comb-btn:active {
  transform: scale(0.98);
}

.comb-btn-primary {
  border-color: #0f766e;
  background: #d7f4ef;
  color: #0f514b;
}

@keyframes comb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes comb-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 520px) {
  .comb-scene {
    padding: 10px;
  }

  .comb-stats,
  .comb-recipes {
    gap: 6px;
  }

  .comb-stat {
    padding: 7px 6px;
  }

  .comb-stat strong {
    font-size: 20px;
  }

  .comb-furnace {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
  }

  .comb-furnace::before {
    left: 19px;
    width: 58px;
  }

  .comb-mine {
    gap: 7px;
  }

  .comb-ore {
    min-height: 68px;
  }

  .comb-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comb-stack-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .comb-stack-row strong {
    white-space: normal;
  }
}
