/* =========================================================================
   DER COIN SHOP, WIE ER IM SPIEL AUSSIEHT (Renés Auftrag 29.09.2026)
   =========================================================================
   Das Fenster in seinen echten Maßen, 723 x 540 Punkte, aus den Grafiken der
   Standardoptik (assets/img/coinshop, geholt von scripts/fetch/coinshop-holen.mjs).
   Jedes Teil steht absolut an seinem Punkt, die Lage setzt
   features/market/coin-shop-window.js. Skaliert wird das Fenster als Ganzes.
   Schrift wie im Client: klein, dunkel auf hell, keine Umrisse.
   ========================================================================= */

.csw-rahmen {
  position: relative;
  width: 100%;

  /* Höchstens anderthalbfach (siehe coin-shop-window.js), in der großen Ansicht mittig. */
  max-width: 1084.5px;
  margin: 0.4rem auto 1rem;
  text-shadow: none;
}

.csw {
  position: absolute;
  top: 0;
  left: 0;
  width: 723px;
  height: 540px;
  transform-origin: 0 0;
  background: no-repeat 0 0;
  color: #1e2533;
  font:
    11px/1.25 Tahoma,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0;
  box-shadow: 0 10px 30px rgb(0 0 0 / 45%);
}

.csw > *,
.csw-grid > *,
.csw-tabs > *,
.csw-cell > *,
.csw-cart > *,
.csw-row > *,
.csw-cartbox > * {
  position: absolute;
  margin: 0;
}

.csw button {
  padding: 0;
  border: 0;
  background: none no-repeat 0 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.csw-title {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgb(40 60 120 / 70%);
}

/* ------------------------------------------------------------ Die Banner */

.csw-banner {
  opacity: 0;
  transition: opacity 900ms ease;
}

.csw-banner.is-on {
  opacity: 1;
}

.csw .csw-dot {
  z-index: 1;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ Die Reiter */

.csw .csw-tab {
  background-repeat: no-repeat;
}

.csw .csw-tab:hover {
  filter: brightness(1.05);
}

/* ------------------------------------------------------- Knöpfe aus Grafik */

.csw .csw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--n);
}

.csw .csw-btn:active {
  background-image: var(--p);
}

.csw-btn__text {
  position: static;
  font-weight: 700;
}

/* ------------------------------------------------------------- Die Waren */

.csw-cell {
  background: no-repeat 0 0;
}

.csw .csw-name {
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.csw .csw-name:hover,
.csw .csw-name:focus-visible {
  color: #2f55b5;
  text-decoration: underline;
  outline: none;
}

.csw-icon {
  object-fit: contain;
}

/*
  Das 24-Pixel-Icon (Ersatz im Raster, immer im Warenkorb): hart gerastert wie
  in der Datenbank, sonst wird es beim Vergrößern des Fensters weich.
*/
.csw-icon--klein,
.csw-rowicon {
  image-rendering: pixelated;
}

.csw-price {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.csw-empty {
  color: #5a6378;
  text-align: center;
}

.csw-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.csw-pager[hidden] {
  display: none;
}

.csw-pager > * {
  position: static;
}

.csw .csw-pager__links,
.csw .csw-pager__rechts {
  width: 11px;
  height: 12px;
}

.csw .csw-pager__links:disabled,
.csw .csw-pager__rechts:disabled {
  opacity: 0.35;
  cursor: default;
}

.csw-search {
  padding: 0 4px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
}

/* ------------------------------------------------ Rechts: Punkte und Korb */

.csw-label {
  color: #3a4a6b;
  font-weight: 700;
}

.csw-label--hell {
  color: #fff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 60%);
}

.csw-points {
  color: #e8eefc;
  text-align: right;
}

.csw-row {
  background: no-repeat 0 0;
}

.csw-rowname {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.csw-menge {
  text-align: center;
}

.csw .csw-mini {
  opacity: 0;
}

.csw-rowprice {
  text-align: right;
}

.csw-sum {
  text-align: right;
  font-weight: 700;
}

.csw-hint {
  color: #5a6378;
}

.csw-note {
  color: #2f55b5;
  text-align: center;
  opacity: 0;
  transition: opacity 400ms ease;
}

.csw-note.is-on {
  opacity: 1;
}
