/* ==========================================================================
   Item Shop 2.0 — GRIMVANE SHOP
   Grafit + złote akcenty; fiolet wyłącznie dla kosmetyków. Ostre krawędzie jak reszta UI gry.
   Rozmiary czcionek mają odpowiedniki w ui-text-scale.css (suwak „Skala tekstu”).
   ========================================================================== */

.gshop {
  --gs-bg: #121317;
  --gs-panel: #191b21;
  --gs-card: #1f2229;
  --gs-card-hi: #272b34;
  --gs-line: #33373f;
  --gs-line-gold: #6e5424;
  --gs-gold: #c9a227;
  --gs-gold-hi: #f0c040;
  --gs-violet: #8b6cd9;
  --gs-violet-hi: #b18cff;
  --gs-text: #ece6d6;
  --gs-muted: #8f8a7c;
  --gs-ok: #7fc48a;
  --gs-bad: #e07a6a;
  position: fixed;
  inset: 0;
  z-index: 79; /* jak MENU: nad HUD i oknami, pod samouczkiem */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(5, 5, 8, 0.72);
  pointer-events: auto;
  font-family: var(--font-ui);
  color: var(--gs-text);
}
.gshop.hidden { display: none; }
html.item-shop-visible #starter-tutorial-window { display: none !important; }
.gshop button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; font-family: inherit; }
.gshop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.gshop-window {
  position: relative;
  width: min(1120px, 100%);
  height: min(720px, 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #1a1c22 0%, var(--gs-bg) 100%);
  border: 2px solid var(--gs-line-gold);
  outline: 1px solid rgba(201, 162, 39, 0.5);
  outline-offset: -4px;
  box-shadow: 0 0 0 1px #08080a, 0 14px 44px rgba(0, 0, 0, 0.7);
}
/* Animacja wejścia tylko przy otwarciu — okno jest przebudowywane przy każdym renderze i nie może wtedy migać. */
.gshop.is-opening .gshop-window { animation: gshop-in 160ms ease-out; }
@keyframes gshop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Nagłówek ----------------------------------------------------------- */
.gshop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--gs-line-gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent);
  flex: none;
}
.gshop-title {
  margin: 0 auto 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gs-text);
  white-space: nowrap;
}
.gshop-title span { color: var(--gs-gold-hi); }
.gshop-chip {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gs-muted);
  background: transparent;
  border: 1px solid var(--gs-line);
  cursor: pointer;
  white-space: nowrap;
}
.gshop-chip.is-active { color: var(--gs-gold-hi); border-color: var(--gs-line-gold); }
.gshop-wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #0d0e11;
  border: 1px solid var(--gs-line-gold);
  font-size: 14px;
  white-space: nowrap;
}
.gshop-wallet b { color: var(--gs-gold-hi); font-variant-numeric: tabular-nums; }
.gshop-wallet span { color: var(--gs-muted); font-size: 11px; }
.gshop-coin { width: 14px; height: 14px; flex: none; vertical-align: -2px; }

.gshop-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--gs-line);
  background: var(--gs-card);
  color: var(--gs-text);
  white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.gshop-btn:hover:not(:disabled) { background: var(--gs-card-hi); border-color: var(--gs-muted); }
.gshop-btn.is-ghost.is-active { border-color: var(--gs-gold); color: var(--gs-gold-hi); }
.gshop-btn.is-gold {
  color: #1a1408;
  background: linear-gradient(180deg, var(--gs-gold-hi), var(--gs-gold));
  border-color: #8a6a28;
}
.gshop-btn.is-gold:hover:not(:disabled) { background: linear-gradient(180deg, #ffd65a, #d9b233); border-color: #f0c040; }
.gshop-btn:disabled { opacity: 0.45; cursor: default; }
.gshop-btn.is-wide { width: 100%; height: 40px; font-size: 14px; }
.gshop-btn:focus-visible, .gshop-chip:focus-visible, .gshop-nav-btn:focus-visible, .gshop-x:focus-visible, .gshop-card-media:focus-visible { outline: 2px solid var(--gs-gold-hi); outline-offset: 1px; }
.gshop-x {
  width: 32px;
  height: 32px;
  flex: none;
  font-size: 14px;
  color: var(--gs-muted);
  background: transparent;
  border: 1px solid var(--gs-line);
  cursor: pointer;
}
.gshop-x:hover { color: var(--gs-text); border-color: var(--gs-muted); }

/* --- Układ -------------------------------------------------------------- */
.gshop-body { display: grid; grid-template-columns: 216px minmax(0, 1fr); flex: 1 1 auto; min-height: 0; }
.gshop-nav { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; border-right: 1px solid var(--gs-line); background: rgba(0, 0, 0, 0.22); min-height: 0; }
.gshop-search, .gshop-field select {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  font: 600 13px var(--font-ui);
  color: var(--gs-text);
  background: #0d0e11;
  border: 1px solid var(--gs-line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.gshop-search:focus, .gshop-field select:focus { outline: none; border-color: var(--gs-gold); }
.gshop-search::placeholder { color: var(--gs-muted); }
.gshop-field select { width: auto; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--gs-muted) 50%), linear-gradient(135deg, var(--gs-muted) 50%, transparent 50%); background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.gshop-nav-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.gshop-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--gs-muted);
  background: transparent;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.gshop-nav-btn:hover { color: var(--gs-text); background: rgba(255, 255, 255, 0.03); }
.gshop-nav-btn.is-active { color: var(--gs-gold-hi); background: rgba(201, 162, 39, 0.09); border-left-color: var(--gs-gold-hi); }
.gshop-nav-btn small { font-size: 11px; color: var(--gs-muted); font-variant-numeric: tabular-nums; }

.gshop-main { padding: 14px 16px 18px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.gshop-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gshop-heading { margin: 0 auto 0 0; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gs-text); }
.gshop-heading small { margin-left: 8px; font-family: var(--font-ui); font-size: 11px; color: var(--gs-muted); letter-spacing: 0; }
.gshop-heading.is-sub { margin: 18px 0 10px; }
.gshop-empty { margin: 40px 0; text-align: center; font-size: 13px; color: var(--gs-muted); }
.gshop-notice { margin: 0 0 12px; padding: 9px 12px; font-size: 13px; border: 1px solid var(--gs-line); border-left-width: 3px; background: #0d0e11; }
.gshop-notice.is-success { border-left-color: var(--gs-ok); color: var(--gs-ok); }
.gshop-notice.is-error { border-left-color: var(--gs-bad); color: var(--gs-bad); }
.gshop-hint { font-size: 12px; line-height: 1.5; color: var(--gs-muted); }

/* --- Karty -------------------------------------------------------------- */
.gshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.gshop-card {
  display: flex;
  flex-direction: column;
  background: var(--gs-card);
  border: 1px solid var(--gs-line);
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}
.gshop-card:hover { border-color: var(--gs-line-gold); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.gshop-card.type-skin:hover, .gshop-card.type-aura:hover, .gshop-card.type-glow:hover, .gshop-card.type-skill_fx:hover { border-color: var(--gs-violet); }
.gshop-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--gs-line);
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.12), transparent 65%), #14161b;
  cursor: pointer;
}
.gshop-card.type-skin .gshop-card-media, .gshop-card.type-aura .gshop-card-media, .gshop-card.type-glow .gshop-card-media, .gshop-card.type-skill_fx .gshop-card-media,
.gshop-detail.type-skin .gshop-detail-stage, .gshop-detail.type-aura .gshop-detail-stage, .gshop-detail.type-glow .gshop-detail-stage, .gshop-detail.type-skill_fx .gshop-detail-stage {
  background: radial-gradient(ellipse at 50% 100%, rgba(139, 108, 217, 0.2), transparent 65%), #14161b;
}
.gshop-glyph { width: 72px; height: 72px; image-rendering: pixelated; }
.gshop-thumb-img, .gshop-thumb-canvas { max-width: 96px; max-height: 96px; image-rendering: pixelated; }
.gshop-card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.gshop-badge { padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #0d0e11; border: 1px solid var(--gs-line); color: var(--gs-muted); }
.gshop-badge.is-sale { color: #1a1408; background: var(--gs-gold-hi); border-color: #8a6a28; }
.gshop-badge.is-new { color: var(--gs-violet-hi); border-color: var(--gs-violet); }
.gshop-badge.is-owned { color: var(--gs-ok); border-color: #3f6b48; }
.gshop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px; flex: 1 1 auto; }
.gshop-card-type { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gs-muted); }
.gshop-card-name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--gs-text); overflow-wrap: anywhere; }
.gshop-card-price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 6px; }
.gshop-price { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }
.gshop-price b { color: var(--gs-gold-hi); }
.gshop-price-old { font-size: 12px; color: var(--gs-muted); }
.gshop-card-ends { font-size: 11px; color: var(--gs-muted); }
.gshop-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; }
.gshop-card-actions .gshop-btn { padding: 0 6px; }

/* --- Premium ------------------------------------------------------------ */
.gshop-premium { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 12px; align-items: start; }
.gshop-premium-status { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--gs-card); border: 1px solid var(--gs-line); }
.gshop-premium-status.is-active { border-color: var(--gs-line-gold); background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), var(--gs-card)); }
.gshop-premium-crown .gshop-glyph { width: 44px; height: 44px; }
.gshop-premium-status strong { display: block; font-size: 14px; color: var(--gs-gold-hi); }
.gshop-premium-status span { font-size: 12px; line-height: 1.45; color: var(--gs-muted); }
.gshop-compare, .gshop-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--gs-card); border: 1px solid var(--gs-line); }
.gshop-compare th, .gshop-compare td, .gshop-table th, .gshop-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--gs-line); font-weight: 400; }
.gshop-compare thead th, .gshop-table thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gs-muted); }
.gshop-compare td, .gshop-compare thead th:not(:first-child) { text-align: center; width: 92px; font-variant-numeric: tabular-nums; }
.gshop-compare .is-premium { color: var(--gs-gold-hi); background: rgba(201, 162, 39, 0.06); font-weight: 700; }
.gshop-yes { color: var(--gs-ok); }
.gshop-no { color: var(--gs-muted); }

/* --- Historia / doładowanie -------------------------------------------- */
.gshop-history h3 { margin: 16px 0 8px; font-size: 13px; color: var(--gs-text); }
.gshop-history h3:first-child { margin-top: 0; }
.gshop-table-wrap { overflow-x: auto; }
.gshop-table td.is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gshop-table td.is-plus { color: var(--gs-ok); }
.gshop-table td.is-minus { color: var(--gs-bad); }
.gshop-table td.is-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--gs-muted); }
.gshop-pools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gshop-pool { padding: 14px; background: var(--gs-card); border: 1px solid var(--gs-line-gold); }
.gshop-pool.is-bonus { border-color: var(--gs-violet); }
.gshop-pool span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gs-muted); }
.gshop-pool b { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: 22px; color: var(--gs-gold-hi); font-variant-numeric: tabular-nums; }
.gshop-pool p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--gs-muted); }
.gshop-callout { margin: 14px 0 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; background: #0d0e11; border: 1px solid var(--gs-line); border-left: 3px solid var(--gs-gold); }

/* --- Szczegóły produktu ------------------------------------------------- */
.gshop-detail-backdrop { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 5, 8, 0.78); }
.gshop-detail {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(680px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--gs-panel);
  border: 1px solid var(--gs-line-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
.gshop.is-detail-opening .gshop-detail { animation: gshop-in 140ms ease-out; }
.gshop-detail > .gshop-x { position: absolute; top: 8px; right: 8px; z-index: 1; background: var(--gs-panel); }
.gshop-detail-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; border-right: 1px solid var(--gs-line); background: radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.14), transparent 65%), #14161b; }
.gshop-detail-stage .gshop-glyph { width: 128px; height: 128px; }
.gshop-detail-stage .gshop-thumb-img, .gshop-detail-stage .gshop-thumb-canvas { max-width: 192px; max-height: 192px; }
.gshop-detail-info { display: flex; flex-direction: column; gap: 8px; padding: 18px 48px 18px 18px; min-width: 0; }
.gshop-detail-info h2 { margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.gshop-detail-desc { margin: 0; font-size: 13px; line-height: 1.55; color: #c9c3b3; white-space: pre-line; }
.gshop-detail-grant { margin: 0; font-size: 12px; color: var(--gs-muted); }
.gshop-detail-price .gshop-price { font-size: 20px; }
.gshop-lowest { margin: 0; font-size: 11px; color: var(--gs-muted); }
.gshop-detail-action { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gshop-detail-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gshop-detail-buttons .gshop-btn { height: 40px; }
.gshop-confirm-text, .gshop-missing { margin: 0; font-size: 13px; line-height: 1.45; }
.gshop-missing { color: var(--gs-bad); }

/* --- Telefon ------------------------------------------------------------ */
@media (max-width: 760px) {
  /* Telefon: pełny ekran i cele dotyku niezależne od skali UI (#ui-root ma zoom) — jak okno MENU. */
  .gshop { padding: 0; zoom: calc(1 / var(--ui-zoom, 1)); }
  .gshop-window { width: 100%; height: 100%; border-width: 0; outline: 0; }
  .gshop-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 40px; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 10px 10px 12px; }
  .gshop-title { grid-column: 1 / 4; grid-row: 1; font-size: 15px; margin: 0; }
  .gshop-header > .gshop-x { grid-column: 4; grid-row: 1; }
  .gshop-wallet { grid-column: 1; grid-row: 2; }
  .gshop-header > .gshop-btn.is-gold { grid-column: 2; grid-row: 2; }
  .gshop-header > .gshop-btn.is-ghost { grid-column: 3 / 5; grid-row: 2; }
  .gshop-chip { grid-column: 1 / -1; grid-row: 3; }
  .gshop-btn, .gshop-chip, .gshop-wallet, .gshop-x { height: 40px; }
  .gshop-x { width: 40px; }
  .gshop-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .gshop-nav { border-right: 0; border-bottom: 1px solid var(--gs-line); padding: 8px 10px; gap: 8px; }
  .gshop-search { height: 40px; }
  .gshop-nav-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 4px; padding-bottom: 2px; scrollbar-width: none; }
  .gshop-nav-list::-webkit-scrollbar { display: none; }
  .gshop-nav-btn { flex: none; min-height: 38px; border-left: 0; border-bottom: 2px solid transparent; }
  .gshop-nav-btn.is-active { border-bottom-color: var(--gs-gold-hi); }
  .gshop-main { padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); }
  .gshop-toolbar { flex-wrap: wrap; }
  .gshop-heading { flex: 1 1 100%; }
  .gshop-field { flex: 1 1 0; }
  .gshop-field select { width: 100%; height: 40px; }
  .gshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gshop-card-media { height: 108px; }
  .gshop-card-actions { grid-template-columns: 1fr; }
  .gshop-premium, .gshop-pools { grid-template-columns: minmax(0, 1fr); }
  .gshop-compare td, .gshop-compare thead th:not(:first-child) { width: 64px; padding: 8px 6px; }
  .gshop-detail-backdrop { padding: 0; align-items: flex-end; }
  .gshop-detail { grid-template-columns: minmax(0, 1fr); width: 100%; max-height: 92%; }
  .gshop-detail-stage { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--gs-line); }
  .gshop-detail-info { padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) and (max-height: 520px) {
  .gshop-chip { display: none; } /* poziomo: status Premium jest w kategorii „Konto Premium” */
  .gshop-nav { padding: 6px 10px; }
}
@media (max-width: 380px) {
  .gshop-header > .gshop-btn { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gshop.is-opening .gshop-window, .gshop.is-detail-opening .gshop-detail { animation: none; }
  .gshop-card { transition: none; }
  .gshop-card:hover { transform: none; }
}

/* --- Panel admina: zakładka Item Shop ----------------------------------- */
.gshop-admin { padding: 14px 18px; overflow-y: auto; width: 100%; box-sizing: border-box; }
.gshop-admin hr { border: 0; border-top: 1px solid var(--premium-card-border, #5a4020); margin: 16px 0; }
.gshop-admin h4 { margin: 10px 0 8px; }
.gshop-admin-status { min-height: 18px; margin: 4px 0 10px; color: #8fd48f; }
.gshop-admin-status.is-error { color: #e07a6a; }
.gshop-admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 8px; }
.gshop-admin-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--premium-card-border, #5a4020); }
.gshop-admin-tile span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.gshop-admin-tile b { font-size: 18px; color: var(--gold-bright, #f0c040); font-variant-numeric: tabular-nums; }
.gshop-admin-tile small { font-size: 11px; opacity: 0.7; }
.gshop-admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gshop-admin-scroll { overflow-x: auto; max-height: 340px; overflow-y: auto; }
.gshop-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gshop-admin-table th, .gshop-admin-table td { padding: 6px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gshop-admin-table th { position: sticky; top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; background: #24160c; }
.gshop-admin-on { color: #8fd48f; }
.gshop-admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0; max-width: 860px; }
.gshop-admin-cols label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.gshop-admin-cols label.checkbox-row { flex-direction: row; align-items: center; gap: 8px; }
.gshop-admin-cols .is-wide { grid-column: 1 / -1; }
.gshop-admin-cols input:not([type="checkbox"]), .gshop-admin-cols select, .gshop-admin-cols textarea, .gshop-admin-inline input, .gshop-admin-inline select { box-sizing: border-box; width: 100%; min-height: 30px; padding: 4px 8px; font: inherit; color: var(--text, #f2e6c8); background: var(--premium-input-bg, #1a120c); border: 1px solid var(--premium-input-border, #6b4a28); }
.gshop-admin-thumb { display: flex; align-items: center; gap: 12px; }
.gshop-admin-thumb img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; background: #14161b; border: 1px solid var(--premium-card-border, #5a4020); }
.gshop-admin-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; max-width: 860px; }
.gshop-admin-inline input, .gshop-admin-inline select { flex: 1 1 180px; width: auto; }
.gshop-admin-inline input[type="number"] { flex: 0 1 150px; }
.gshop-admin-detail { margin-top: 12px; padding: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--premium-card-border, #5a4020); }

/* Telefon poziomo: niski ekran — pełne okno, węższa nawigacja. */
@media (max-height: 520px) and (min-width: 761px) {
  .gshop { padding: 0; zoom: calc(1 / var(--ui-zoom, 1)); }
  .gshop-window { width: 100%; height: 100%; border-width: 0; outline: 0; }
  .gshop-header { padding: 6px max(10px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); }
  .gshop-body { grid-template-columns: 180px minmax(0, 1fr); }
  .gshop-nav { padding: 8px; padding-left: max(8px, env(safe-area-inset-left)); }
  .gshop-btn, .gshop-chip, .gshop-wallet, .gshop-x { height: 36px; }
  .gshop-x { width: 36px; }
  .gshop-card-media { height: 104px; }
  .gshop-detail-stage { min-height: 200px; }
}

/* Kontener przejmuje fokus po przerysowaniu (Escape, blokada skrótów gry) — bez widocznej obwódki całego okna. */
.gshop:focus { outline: none; }
