@charset "UTF-8";
/*
 * NEA Coin shop. Builds on the tokens and primitives in site.css --
 * every class here is either rendered by shop.php or generated at
 * runtime by assets/js/shop.js, so class names are contract.
 */

.shop-app {
  border: 1px solid var(--line);
  background: var(--panel);
}

/* ------------------------------------------------------------------ */
/* Header: character picker + balance                                  */
/* ------------------------------------------------------------------ */

.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #18212a, #111820);
}

.shop-header-controls {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-character-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.shop-character-picker > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-character-picker select {
  height: 42px;
  min-width: 210px;
  padding: 0 12px;
  background: var(--panel-sunken);
  border: 1px solid #2e3a46;
  color: var(--text);
  font-size: 12px;
  border-radius: 0;
}

.shop-character-picker select:focus { border-color: var(--gold); }

.shop-currency {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-gold);
  background: #eac58809;
  font-variant-numeric: tabular-nums;
}

.shop-currency-icon { width: 22px; height: 22px; object-fit: contain; }

.shop-currency [data-shop-balance] {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
}

.shop-currency-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Body layout                                                         */
/* ------------------------------------------------------------------ */

.shop-body {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) minmax(290px, 340px);
  align-items: stretch;
  min-height: 460px;
}

/* Sidebar ---------------------------------------------------------- */

.shop-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-right: 1px solid var(--line);
  background: #0f151b;
}

.shop-sidebar-item {
  position: relative;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: color .16s, background .16s;
}

.shop-sidebar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
}

.shop-sidebar-item:hover { color: var(--text); background: #ffffff04; }

.shop-sidebar-item.is-active {
  color: var(--gold);
  background: #eac5880a;
}

.shop-sidebar-item.is-active::before { background: var(--gold); }

/* Fills the rail below the categories instead of leaving a dark well. */
.shop-sidebar-note {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.shop-sidebar-note p:not(.eyebrow) {
  margin: 7px 0 16px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted-dim);
}

.shop-sidebar-note p:last-child { margin-bottom: 0; }
.shop-sidebar-note strong { color: var(--muted); }

/* Item grid -------------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  align-content: start;
  gap: 12px;
  padding: 20px;
  min-width: 0;
}

.shop-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 16px 13px 13px;
  border: 1px solid var(--line);
  background: var(--panel-sunken);
  color: inherit;
  text-align: center;
  transition: border-color .18s, background .18s, transform .18s;
}

.shop-card:hover {
  border-color: var(--gold-deep);
  background: #151d25;
  transform: translateY(-2px);
}

.shop-card.is-active {
  border-color: var(--gold);
  background: #eac5880d;
}

.shop-card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 4px 10px #00000066);
}

.shop-card-name {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.shop-card-price-icon { width: 15px; height: 15px; object-fit: contain; }

/* Detail panel ----------------------------------------------------- */

.shop-detail {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  background: #0f151b;
  min-width: 0;
}

.shop-detail-icon-frame {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(circle at 50% 42%, #eac58814, transparent 68%),
    #0b1117;
}

.shop-detail-icon { width: 84px; height: 84px; object-fit: contain; }

.shop-detail-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.32;
}

.shop-detail-meta {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-detail-price {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-left: 2px solid var(--gold);
  background: #eac58808;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.shop-detail-price-icon { width: 19px; height: 19px; object-fit: contain; }

.shop-detail-id {
  font-size: 10px;
  line-height: 1.75;
  color: var(--muted);
}

.shop-detail-id code {
  color: var(--cyan);
  font-size: 10px;
  overflow-wrap: anywhere;
}

/* Quantity --------------------------------------------------------- */

.shop-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.shop-quantity-row > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-quantity-input {
  width: 84px;
  height: 40px;
  padding: 0 10px;
  background: var(--panel-sunken);
  border: 1px solid #2e3a46;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
}

.shop-quantity-input:focus { border-color: var(--gold); }

.shop-quantity-total {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #ffffff05;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.shop-quantity-total img { width: 16px; height: 16px; object-fit: contain; }

.shop-quantity-total span:last-child {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Acknowledgement + gifting ---------------------------------------- */

.shop-ack,
.shop-gift-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  cursor: pointer;
}

.shop-ack {
  padding: 11px 12px;
  border-left: 2px solid var(--danger);
  background: #ff929108;
}

.shop-ack input[type="checkbox"],
.shop-gift-toggle input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  border: 1px solid #46525e;
  background: var(--panel-sunken);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.shop-ack input[type="checkbox"]::after,
.shop-gift-toggle input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  background: var(--gold);
  transition: transform .12s;
}

.shop-ack input[type="checkbox"]:checked,
.shop-gift-toggle input[type="checkbox"]:checked { border-color: var(--gold); }

.shop-ack input[type="checkbox"]:checked::after,
.shop-gift-toggle input[type="checkbox"]:checked::after { transform: scale(1); }

.shop-gift-toggle {
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.shop-gift-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel-sunken);
}

.shop-gift-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-left: 2px solid var(--cyan);
  background: #87d6de0a;
  font-size: 12px;
  color: var(--cyan);
}

.shop-gift-clear {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 10px;
}

.shop-gift-search {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  background: #0b1117;
  border: 1px solid #2e3a46;
  color: var(--text);
  font-size: 12px;
  border-radius: 0;
}

.shop-gift-search:focus { border-color: var(--cyan); }

.shop-gift-results {
  display: grid;
  max-height: 190px;
  overflow-y: auto;
}

.shop-gift-results:not(:empty) { margin-top: 9px; border: 1px solid var(--line); }

.shop-gift-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  text-align: left;
  transition: background .14s;
}

.shop-gift-result + .shop-gift-result { border-top: 1px solid var(--line-soft); }
.shop-gift-result:hover { background: #eac5880d; color: var(--gold); }

.shop-gift-result-race {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-gift-results .dashboard-empty { padding: 14px; border: 0; text-align: left; }

/* Buy + status ----------------------------------------------------- */

.shop-buy-button {
  width: 100%;
  margin-top: 4px;
  min-height: 46px;
  font-size: 12px;
}

.shop-status {
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #0f151b;
  font-size: 12px;
  text-align: center;
}

.shop-status:empty { display: none; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .shop-body {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .shop-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .shop-sidebar { grid-row: 1; }
  .shop-grid { grid-row: 1; }
  .shop-detail-icon-frame { padding: 16px; }
  .shop-detail-icon { width: 70px; height: 70px; }
}

@media (max-width: 720px) {
  .shop-header { padding: 18px; align-items: stretch; }
  .shop-header-controls { width: 100%; }
  .shop-character-picker { flex: 1 1 180px; }
  .shop-character-picker select { min-width: 0; width: 100%; }

  .shop-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .shop-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* The rail turns into a horizontal tab strip on phones; the note
     does not belong in it. */
  .shop-sidebar-note { display: none; }

  .shop-sidebar-item { white-space: nowrap; padding: 13px 16px; }

  .shop-sidebar-item::before {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
  }

  .shop-grid {
    grid-row: 2;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    padding: 16px;
    gap: 10px;
  }

  .shop-detail { grid-row: 3; padding: 18px; }
  .shop-card-icon { width: 48px; height: 48px; }
  .shop-status { padding: 13px 18px; }
}
