/* R72: the world stays primary while the frequent choice controls become a
   shallow, readable shelf. The shelf remains available for filling multiple
   waiting slots; it no longer occupies the workbench like three large cards.
   The hammer control uses the same physical mallet asset as the work surface. */

@media (min-width: 680px) {
  .left-rail,
  .app-shell[data-phase="result"] .left-rail {
    bottom: 7px;
    left: 50%;
    width: min(824px, calc(100vw - 20px));
    height: 58px;
    min-height: 58px;
    transform: translateX(-50%);
  }

  /* R60 lifted the old large shelf to make room for the sale receipt. The
     shallow R72 shelf already clears that receipt horizontally; keep it at
     the bottom so it never rises over the receiving bowl after a sale. */
  .app-shell[data-phase="idle"][data-has-last-outcome="true"] .left-rail {
    bottom: 7px;
  }

  .growth-rail {
    top: auto;
    right: auto;
    bottom: 0;
    left: 197px;
    width: 430px;
    height: 52px;
    min-height: 52px;
  }

  .growth-body,
  .stone-tier-option {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .tier-options {
    height: 52px;
    gap: 5px;
  }

  .tier-button {
    height: 50px;
    min-height: 50px;
    padding: 3px 6px 3px 40px;
    border-width: 1.5px;
    border-radius: 14px 14px 10px 10px;
    box-shadow: 0 4px 0 rgba(96, 61, 71, .14), 0 7px 12px rgba(71, 42, 53, .1), inset 0 1px rgba(255,255,255,.86);
  }

  .tier-button.is-selected {
    box-shadow: 0 0 0 2px rgba(255,204,91,.58), 0 4px 0 rgba(96,61,71,.14), 0 8px 14px rgba(255,157,79,.18);
    transform: translateY(-2px);
  }

  .tier-art {
    top: 4px;
    bottom: auto;
    left: 5px;
    width: 30px;
    height: 40px;
  }

  .tier-button > span:not(.tier-art) {
    max-height: 2.15em;
    font-size: .55rem;
    line-height: 1.02;
    letter-spacing: .01em;
  }

  .tier-button > strong {
    margin-top: 1px;
    font-size: .82rem;
    line-height: 1;
  }

  .tier-button > small {
    display: none;
  }

  .tier-button.is-selected > small {
    display: block;
    max-width: 100%;
    margin-top: 1px;
    overflow: hidden;
    font-size: .4rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Locked/unselected choices stay as recognizable options, but their risk
     chip is not a second dashboard competing with the work surface. The
     selected tier's range remains visible in the dock. */
  .tier-button:not(.is-selected) > small,
  .tier-button[data-tier="geode"]:not(.is-selected) > small {
    display: none !important;
  }

  .hammer-option {
    top: -4px;
    left: -195px;
    z-index: 3;
    display: grid;
    width: 185px;
    height: 56px;
    min-height: 56px;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 16px 14px 22px;
    gap: 1px 7px;
    padding: 4px 6px;
    border: 1px solid rgba(130, 93, 126, .25);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,239,255,.94));
    box-shadow: 0 6px 12px rgba(136,87,105,.12), inset 0 1px rgba(255,255,255,.92);
  }

  .hammer-art {
    position: static;
    inset: auto;
    grid-column: 1;
    grid-row: 1 / -1;
    width: 58px;
    height: 40px;
    align-self: center;
  }

  .hammer-art-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(76, 56, 78, .2));
    transform: rotate(-8deg) scale(1.12);
  }

  .hammer-option .growth-option-heading {
    display: grid;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    gap: 0;
  }

  .hammer-option .growth-option-heading .eyebrow {
    display: block;
    overflow: hidden;
    color: #806779;
    font-size: .44rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hammer-option .growth-option-heading .growth-state {
    display: block;
    color: #4c3a52;
    font-size: .5rem;
    line-height: 1.05;
    text-overflow: ellipsis;
  }

  .hammer-option .upgrade-hint {
    display: block;
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    color: #6c5770;
    font-size: .43rem;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hammer-option .upgrade-button {
    position: static;
    inset: auto;
    display: grid;
    width: 100%;
    min-height: 22px;
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border: 1px solid rgba(140, 124, 241, .42);
    border-radius: 8px;
    background: linear-gradient(135deg, #c9c0ff, #9c91f4);
    box-shadow: 0 4px 8px rgba(117,101,224,.12);
    color: #302765;
  }

  .hammer-option .upgrade-button > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: .48rem;
    font-weight: 850;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hammer-option .upgrade-button strong {
    display: block;
    color: #302765;
    font-size: .62rem;
    line-height: 1;
  }

  .hammer-option .upgrade-button:disabled {
    border-color: rgba(130, 93, 126, .2);
    background: rgba(244, 235, 239, .92);
    color: #9b8798;
    opacity: .82;
  }

  .hammer-option .upgrade-button:disabled strong {
    color: #9b8798;
  }
}

@media (min-width: 680px) and (max-height: 380px) {
  .left-rail,
  .app-shell[data-phase="result"] .left-rail {
    bottom: 5px;
    width: min(780px, calc(100vw - 20px));
    height: 52px;
    min-height: 52px;
  }

  .app-shell[data-phase="idle"][data-has-last-outcome="true"] .left-rail {
    bottom: 5px;
  }

  .growth-rail {
    left: 180px;
    width: 420px;
    height: 48px;
    min-height: 48px;
  }

  .growth-body,
  .stone-tier-option,
  .tier-options {
    height: 48px;
  }

  .tier-button {
    height: 46px;
    min-height: 46px;
    padding-left: 37px;
  }

  .tier-art {
    top: 3px;
    width: 28px;
    height: 36px;
  }

  .hammer-option {
    top: -4px;
    left: -170px;
    width: 160px;
    height: 50px;
    min-height: 50px;
    grid-template-columns: 49px minmax(0, 1fr);
    grid-template-rows: 14px 13px 19px;
    gap: 1px 5px;
    padding: 3px 5px;
  }

  .hammer-art {
    width: 49px;
    height: 34px;
  }

  .hammer-option .upgrade-button {
    min-height: 19px;
  }
}
