/* A single workspace for choosing items and checking the suggested size. */
.storage-site #calculator.packing-game:not([data-celebration]) {
  background: radial-gradient(ellipse at 12% 0%, #304f8b, transparent 65%),
    linear-gradient(130deg, #172f60, #101e37);
}
.storage-site #calculator.packing-game .calculator-shell {
  border-radius: 24px;
  border: 1px solid #ffffff36;
  background: #fff;
  box-shadow: 0 24px 65px #09152e50;
}
.storage-site #calculator.packing-game .calculator-heading {
  padding: clamp(22px, 4vw, 38px);
  gap: 12px 20px;
}
.storage-site #calculator.packing-game .calculator-heading h2 {
  margin: 0;
  color: #142c50;
  font-size: clamp(32px, 4.3vw, 56px);
  letter-spacing: -.045em;
  line-height: 1.06;
}
.storage-site #calculator.packing-game .calculator-heading > p {
  color: #4c617d;
  max-width: 50ch;
}
.estimate-jump {
  display: none;
}
.storage-site #calculator.packing-game .discovery-tools {
  padding: 16px clamp(16px, 3vw, 30px);
  background: #f4f7fc;
}
.storage-site #calculator.packing-game .calculator-shell .calc {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
}
.storage-site #calculator.packing-game .calculator-shell .calc-tabs {
  padding: 22px 24px 0;
}
.storage-site #calculator.packing-game .calculator-shell #calcGroups {
  padding: 22px 24px 26px;
}
.storage-site #calculator.packing-game .calculator-shell .calc-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
}
.storage-site #calculator.packing-game.discovery-searching .discovery-shelf {
  max-height: none;
  overflow: visible;
}
.storage-site #calculator.packing-game .calculator-shell .calc-item {
  align-items: center;
  min-height: 68px;
  padding: 10px;
  gap: 8px;
  border-radius: 13px;
  box-shadow: 0 2px 5px #022d6709;
}
.storage-site #calculator.packing-game .calculator-shell .calc-item::before {
  position: static;
  flex: 0 0 32px;
  width: 32px;
  height: 36px;
}
.storage-site #calculator.packing-game .calculator-shell .calc-item > :first-child {
  flex: 1 1 65px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  text-align: left;
}
.storage-site #calculator.packing-game .calculator-shell .stepper {
  gap: 2px;
}
.storage-site #calculator.packing-game .calculator-shell .stepper output {
  width: 27px;
  font-variant-numeric: tabular-nums;
}
.storage-site #calculator.packing-game:not([data-celebration]) .calculator-shell .calc-out {
  background: #f3f6fc;
}
.storage-site #calculator.packing-game .calculator-shell .calc-out {
  padding: clamp(16px, 2.2vw, 26px);
  scroll-margin-top: 16px;
}
.estimate-result {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #033982, #172f60);
  color: #fff;
}
.storage-site #calculator.packing-game .estimate-result :is(.estimate-heading, .estimate-primary-label, .estimate-primary, .estimate-start) {
  color: #fff;
}
.storage-site #calculator.packing-game[data-celebration] .estimate-result {
  background: linear-gradient(135deg, var(--game-accent, #033982), #172f60);
}
.estimate-result .estimate-size-scale {
  margin-bottom: 0;
}
.estimate-result .estimate-size-scale > span {
  background: #ffffff18;
  color: #fff;
}
.estimate-result .estimate-size-scale > .is-suggested {
  background: #fff;
  color: #022d67;
}
.storage-site #calculator.packing-game .calculator-shell .calc-out .btn-row .btn {
  width: 100%;
  justify-content: center;
}
@media (min-width: 761px) {
  .storage-site #calculator.packing-game .calculator-shell .calc-list {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1200px) {
  .storage-site #calculator.packing-game .calculator-shell .calc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .storage-site #calculator.packing-game .calculator-shell .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .storage-site #calculator.packing-game .calculator-shell #calcGroups {
    padding: 16px;
  }
  .storage-site #calculator.packing-game .calculator-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .storage-site #calculator.packing-game .packing-toolbar {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .estimate-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d1dcf0;
    border-radius: 9px;
    background: #eef3fd;
    color: #022d67;
    font-weight: 700;
  }
}

/* Keep the small labels readable against the result gradient. */
.storage-site #calculator.packing-game .estimate-result .estimate-heading > span:first-child {
  color: #e1eaff;
}
.storage-site #calculator.packing-game .estimate-result .estimate-dot {
  background: #a9c7ff;
}
.estimate-result .estimate-size-scale > span {
  border-radius: 5px;
}
.storage-site #calculator.packing-game .calculator-shell .calc-item.is-packed > :first-child {
  font-weight: 700;
}
@media (max-width: 360px) {
  .storage-site #calculator.packing-game .calculator-shell .calc-item > :first-child {
    flex-basis: calc(100% - 46px);
  }
  .storage-site #calculator.packing-game .discovery-search {
    min-width: 0;
    flex-basis: 100%;
  }
}
