/* ── EXCHANGE STYLES ──────────────────────────────────────── */

/* ── Panel body ── */
.ex-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px;
  gap: 14px;
}

/* ── Reference table ── */
.ex-reference {
  background: rgba(245,230,180,0.04);
  border: 1px solid rgba(200,144,58,0.2);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ex-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
}
.ex-ref-label {
  color: rgba(242,232,208,0.38);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 62px;
  flex-shrink: 0;
}
.ex-ref-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}
.ex-ref-eq {
  color: rgba(242,232,208,0.3);
  font-weight: normal;
}
.ex-ref-dot {
  color: rgba(242,232,208,0.2);
  font-weight: normal;
}

/* ── Dialogue ── */
.ex-dialogue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(242,232,208,0.65);
  line-height: 1.7;
  border-left: 2px solid rgba(200,144,58,0.3);
  padding-left: 14px;
  margin-bottom: 2px;
}

/* ── Stations layout ── */
.ex-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Individual station ── */
.ex-station {
  background: rgba(245,230,180,0.03);
  border: 1px solid rgba(200,144,58,0.2);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.ex-station--firing {
  box-shadow: 0 0 22px rgba(200,144,58,0.45);
  border-color: rgba(200,144,58,0.65);
}
.ex-station-title {
  font-family: var(--display);
  font-size: 14px;
  color: var(--amber2);
  text-align: center;
  border-bottom: 1px solid rgba(200,144,58,0.15);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.ex-station-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Supply row ── */
.ex-supply {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
}

/* ── Clickable coin ── */
.ex-coin {
  cursor: pointer;
  transition: transform 0.12s;
  line-height: 0;
}
.ex-coin:hover  { transform: translateY(-4px) scale(1.1); }
.ex-coin:active { transform: scale(0.92); }
.ex-coin-svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* ── Clickable liquid drop ── */
.ex-drop {
  cursor: pointer;
  transition: transform 0.12s;
  line-height: 0;
}
.ex-drop:hover  { transform: translateY(-4px) scale(1.1); }
.ex-drop:active { transform: scale(0.92); }
.ex-drop-svg {
  width: 22px;
  height: 30px;
  display: block;
}

/* ── Drop zone ── */
.ex-drop-zone {
  width: 100%;
  background: rgba(0,0,0,0.18);
  border: 1px dashed rgba(200,144,58,0.28);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-sizing: border-box;
}
.ex-zone-count {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(242,232,208,0.55);
  text-align: center;
  letter-spacing: 0.3px;
}
.ex-zone-bar {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.ex-zone-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  transition: width 0.18s ease;
}
.ex-zone-fill--blue {
  background: #4a9eff;
}

/* ── Conversion label ── */
.ex-arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(200,144,58,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ── Output slot ── */
.ex-output-slot {
  min-height: 54px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(200,144,58,0.14);
  border-radius: 4px;
  box-sizing: border-box;
}
.ex-output-empty {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(242,232,208,0.18);
}
.ex-output-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 5px;
  animation: ex-pop 0.32s cubic-bezier(0.2,0.8,0.3,1);
}
.ex-output-vial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1.5px solid;
  animation: ex-pop 0.32s cubic-bezier(0.2,0.8,0.3,1);
}
.ex-output-count {
  font-family: var(--display);
  font-size: 20px;
  color: rgba(255,255,255,0.88);
  line-height: 1;
}
.ex-output-unit {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@keyframes ex-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  65%  { transform: scale(1.12); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Footer ── */
.ex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(200,144,58,0.15);
  margin-top: auto;
}
.ex-footer-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(242,232,208,0.38);
}
.ex-footer-progress {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(242,232,208,0.32);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── Shared button ── */
.ex-btn {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.ex-btn:hover {
  background: var(--amber2);
}

/* ── Order stub (Tiers 2-4) ── */
.ex-order-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 40px;
  text-align: center;
  border: 1px dashed rgba(200,144,58,0.2);
  border-radius: 6px;
}
.ex-order-stub-title {
  font-family: var(--display);
  font-size: 18px;
  color: var(--amber2);
}
.ex-order-stub-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(242,232,208,0.48);
  line-height: 1.7;
  max-width: 360px;
}

/* ── Mastery complete screen ── */
.ex-tier-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 40px;
  text-align: center;
}
.ex-tc-icon {
  font-size: 48px;
  color: var(--amber);
}
.ex-tc-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--parch);
}
.ex-tc-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(242,232,208,0.65);
  max-width: 420px;
  line-height: 1.7;
}
