#exhibit-equipment, #exhibit-equipment * { box-sizing: border-box; }
#exhibit-equipment { position: fixed; inset: 0; z-index: 380; color: #eee9de; font-family: "Noto Sans KR Variable", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; font-size: 16px; line-height: 1.5; word-break: keep-all; }
#exhibit-equipment[hidden], #exhibit-equipment [hidden] { display: none !important; }
#exhibit-equipment.exshop-show-details { pointer-events: none; }
#exhibit-equipment button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
#exhibit-equipment button:focus-visible { outline: 3px solid #eee9de; outline-offset: 3px; }
#exhibit-equipment button:disabled { cursor: default; }
#exhibit-equipment h2, #exhibit-equipment p { margin: 0; }
.exshop-simple { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2vh, 25px); width: 100%; height: 100%; min-height: 0; padding: clamp(22px, 4vh, 52px) max(24px, calc((100vw - 1540px) / 2)); background: #171c20; overflow: hidden; }
.exshop-simple > .exshop-heading, .exshop-simple > .exshop-footer, .exshop-simple > .exshop-feedback, .exshop-simple > .exshop-shortcuts { flex-shrink: 0; }
.exshop-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.exshop-kicker { color: #c1bbae; font-size: .8em; font-weight: 700; letter-spacing: .025em; }
.exshop-heading h2 { margin: 4px 0 6px !important; font-size: clamp(24px, 2.35vw, 40px); letter-spacing: -.035em; line-height: 1.3; }
.exshop-help { color: #c1bbae; font-size: .85em; }
.exshop-budget { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 22px; border-left: 1px solid #74766d66; }
.exshop-wallet { color: #eee9de; font-size: 1.7em; font-variant-numeric: tabular-nums; }
.exshop-limit { color: #c1bbae; font-size: .85em; }
.exshop-cards { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 22px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #85877f #171c20; }
.exshop-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #74766d99; border-color: color-mix(in srgb, var(--exshop-tier-color) 48%, #131a1e); background: #131a1e; background: color-mix(in srgb, var(--exshop-tier-color) 11%, #131a1e); }
.exshop-card.selected { box-shadow: inset 0 0 0 1px #eee9de; }
.exshop-card.locked { border-top: 3px solid #eee9de; }
.exshop-buy { display: flex; flex: 1; flex-direction: column; align-items: stretch; width: 100%; padding: clamp(14px, 1.3vw, 22px); border: 0; background: none; text-align: left; }
.exshop-buy:not(:disabled):hover { background: #eee9de09; }
.exshop-card-top { display: flex; align-items: center; gap: 9px; color: #b8b193; font-size: .8em; }
.exshop-number { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid #74766d99; color: #eee9de; font: 700 14px ui-monospace, monospace; }
.exshop-tier { margin-left: auto; color: #d8d1c3; font-size: .95em; letter-spacing: 1px; }
.exshop-card .exshop-tier { padding: 1px 5px; border-radius: 2px; background: #131a1e; color: var(--exshop-tier-color); white-space: nowrap; }
.exshop-quality-mark { padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; background: #131a1e; color: var(--exshop-comparison-color); font-size: .92em; font-weight: 750; white-space: nowrap; }
.exshop-card[data-quality="better"] { --exshop-comparison-color: #a4d999; }
.exshop-card[data-quality="worse"] { --exshop-comparison-color: #f0a699; }
.exshop-art { display: flex; justify-content: center; align-items: center; height: clamp(78px, 14vh, 152px); margin: 8px 0; background: transparent; }
.exshop-art img { width: clamp(72px, 8vw, 128px); height: clamp(72px, 8vw, 128px); object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 5px 0 #0006); }
.exshop-name { font-size: clamp(18px, 1.6vw, 28px); line-height: 1.3; }
.exshop-method { margin-top: 7px; color: #d8d1c3; font-size: .78em; min-height: 1.5em; }
.exshop-worn { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 5px; padding-bottom: 16px; color: #b5b6ad; font-size: 12px; min-height: 1.5em; }
.exshop-price { display: block; margin-top: auto; padding: 10px 6px; color: #eee9de; border: 1px solid #85877f; background: #eee9de0a; text-align: center; font-size: .8em; font-weight: 700; }
.exshop-buy:disabled .exshop-price { color: #9f9b85; border-color: #65705b66; background: #0002; }
.exshop-card.bought .exshop-price { color: #b5b6ad; }
.exshop-lock { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 15px; border: 0; border-top: 1px solid #74766d66; background: #0002; color: #c1bbae !important; font-size: 12px !important; }
.exshop-lock[aria-pressed="true"] { color: #eee9de !important; background: #eee9de12; }
.exshop-lock:disabled { opacity: .35; }
.exshop-lock span { font-family: ui-monospace, monospace; }
.exshop-feedback { min-height: 1.5em; color: #bdd7a7; text-align: center; font-size: .8em; }
.exshop-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
.exshop-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.exshop-reroll, .exshop-details { padding: 10px 16px; border: 1px solid #74766d99; background: #171c20; font-size: .75em !important; }
.exshop-reroll:disabled { opacity: .4; }
.exshop-details { color: #c1bbae !important; border-color: transparent; background: transparent; }
.exshop-secondary p { flex-basis: 100%; color: #b5b6ad; font-size: 12px; }
.exshop-leave { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 7px; }
.exshop-timer { color: #c1bbae; font-size: .7em; font-variant-numeric: tabular-nums; }
.exshop-continue { min-width: 250px; padding: 14px 23px; border: 1px solid #eee9de; background: #eee9de; color: #1b211e !important; font-size: .9em !important; font-weight: 750 !important; }
.exshop-continue span { margin-left: 20px; color: #50564e; font-size: .7em; }
.exshop-shortcuts { color: #b5b6ad; text-align: center; font-size: .65em; }
.exshop-return { position: fixed; z-index: 1; top: 14px; left: 18px; padding: 10px 17px; border: 1px solid #85877f; background: #171c20; color: #eee9de !important; font-size: 14px !important; box-shadow: 0 4px 15px #0006; pointer-events: auto; }
@media (max-height: 780px) and (min-width: 900px) {
  .exshop-simple { gap: 10px; padding-top: 22px; padding-bottom: 18px; }
  .exshop-heading h2 { font-size: 25px; }
  .exshop-art { height: 74px; margin: 6px 0; }
  .exshop-art img { width: 74px; height: 74px; }
  .exshop-buy { padding: 14px; }
  .exshop-lock { padding: 8px 12px; }
  .exshop-continue { padding: 11px 17px; }
}
@media (max-width: 899px) {
  #exhibit-equipment { font-size: 14px; overflow: hidden; }
  .exshop-simple { height: 100%; min-height: 0; padding: 18px 16px; gap: 12px; justify-content: flex-start; overflow: hidden; }
  .exshop-heading { align-items: flex-start; gap: 12px; flex-shrink: 0; }
  .exshop-heading h2 { font-size: 22px; }
  .exshop-help { max-width: 32em; }
  .exshop-budget { padding-left: 12px; }
  .exshop-wallet { font-size: 1.4em; }
  .exshop-cards { flex: 1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
  .exshop-art { height: 70px; margin: 5px 0; }
  .exshop-art img { width: 70px; height: 70px; }
  .exshop-name { font-size: 19px; }
  .exshop-feedback { flex-shrink: 0; }
  .exshop-footer { flex-direction: column-reverse; gap: 10px; flex-shrink: 0; }
  .exshop-leave { width: 100%; align-items: stretch; }
  .exshop-timer { text-align: right; }
  .exshop-continue { min-width: 0; }
  .exshop-secondary p { font-size: .72em; }
  .exshop-shortcuts { display: none; }
}

/* A stone card equips immediately; the other shop controls are outside this choice. */
.exshop-first { display: flex; flex-direction: column; justify-content: safe center; align-items: center; gap: 12px; width: 100%; height: 100%; padding: clamp(16px, 4vh, 48px) clamp(14px, 3vw, 36px); background: #171c20; overflow: auto; }
.exshop-first-heading, .exshop-first-cards, .exshop-first-feedback, .exshop-first-footer { flex: none; width: min(1040px, 100%); }
.exshop-first-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.exshop-first-heading h2 { margin-bottom: 4px !important; font-size: clamp(25px, 3vw, 42px); line-height: 1.25; letter-spacing: -.04em; }
.exshop-first-heading p, .exshop-first-wallet { color: #c1bbae; font-size: clamp(12px, 1.4vw, 16px); }
.exshop-first-wallet { white-space: nowrap; font-variant-numeric: tabular-nums; }
.exshop-first-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 18px); margin-top: 6px; }
.exshop-first-upgrade { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; padding: clamp(10px, 1.5vw, 18px); border: 1px solid #74766d99; background: #131a1e; text-align: left; }
.exshop-first-upgrade:not(:disabled):hover { border-color: #eee9de; background: #20292c; }
.exshop-first-upgrade:disabled { opacity: .6; }
.exshop-first-number {
  display: inline-grid;
  place-items: center;
  width: clamp(34px, 4vw, 46px);
  aspect-ratio: 1;
  border: 1px solid #a5a18e;
  border-radius: 50%;
  background: #2a3235;
  box-shadow: inset 0 1px 0 #eee9de36, 0 3px 0 #0b0f12;
  color: #eee9de;
  font: 800 clamp(18px, 2.2vw, 25px)/1 ui-monospace, monospace;
}
.exshop-first-upgrade:focus .exshop-first-number {
  border-color: #ffe0a6;
  background: #f2cf90;
  color: #211c16;
}
.exshop-first-art { display: grid; place-items: center; }
.exshop-first-art img { width: clamp(56px, 14vh, 108px); height: clamp(56px, 14vh, 108px); object-fit: contain; image-rendering: pixelated; }
.exshop-first-name { color: #eee9de; font-size: clamp(17px, 2vw, 27px); line-height: 1.3; }
.exshop-first-effect { color: #d5cfbf; font-size: clamp(12px, 1.3vw, 15px); min-height: 2.8em; }
.exshop-first-upgrade .exshop-price { padding-block: 7px; }
.exshop-first-feedback { color: #d5cfbf; text-align: center; font-size: 14px; }
.exshop-first-feedback:empty { display: none; }
.exshop-first-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: #b5b6ad; font-size: 12px; }
.exshop-first-skip { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid #74766d99; background: #171c20; color: #eee9de !important; font-size: 13px !important; }
.exshop-first-skip > span, .exshop-first-timer { color: #b5b6ad; font-size: 11px; }
.exshop-first-timer { text-align: center; }
@media (max-width: 719px) {
  .exshop-first-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exshop-first-upgrade { gap: 5px; }
  .exshop-first-art img { width: clamp(42px, 10vh, 72px); height: clamp(42px, 10vh, 72px); }
}
