/* Shozin Rehberi — oyuncu kitapçığı */

.page-shozin-guide .page-main {
  --sz-ink: #e8dfc8;
  --sz-muted: #9a8f78;
  --sz-line: rgba(201, 162, 84, 0.28);
  --sz-gold: #d4a84b;
  --sz-gold-soft: rgba(212, 168, 75, 0.14);
  --sz-page: #16120e;
  --sz-card: #1c1712;
  --sz-mat: #2a2218;
  --sz-out: #1a2420;
}

.sz-book {
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem 1.5rem;
}

.sz-book__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--sz-line);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(212, 168, 75, 0.12), transparent 55%),
    linear-gradient(145deg, #1a1510, #120e0a);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.sz-search {
  flex: 1 1 280px;
  max-width: 520px;
}

.sz-search__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sz-gold);
}

.sz-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sz-search input[type="search"] {
  flex: 1 1 180px;
  min-height: 2.7rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--sz-line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--sz-ink);
  font-size: 0.95rem;
  outline: none;
}

.sz-search input[type="search"]:focus {
  border-color: var(--sz-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.18);
}

.sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--sz-gold);
  background: linear-gradient(180deg, #e0b65a, #b8862f);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}

.sz-btn:hover {
  filter: brightness(1.06);
  color: #1a1208;
}

.sz-btn--ghost {
  background: transparent;
  color: var(--sz-ink);
  border-color: var(--sz-line);
}

.sz-btn--ghost:hover {
  border-color: var(--sz-gold);
  color: var(--sz-gold);
}

.sz-book__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--sz-ink);
}

.sz-muted {
  color: var(--sz-muted);
  font-size: 0.8rem;
}

.sz-empty {
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: 18px;
  border: 1px dashed var(--sz-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--sz-muted);
}

.sz-empty__icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.sz-empty h3 {
  margin: 0 0 0.4rem;
  color: var(--sz-ink);
  font-family: Cinzel, Georgia, serif;
}

.sz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.sz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--sz-line);
  background:
    linear-gradient(165deg, rgba(40, 32, 22, 0.95), rgba(18, 14, 10, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sz-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 75, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 75, 0.12);
}

.sz-card__head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(201, 162, 84, 0.16);
}

.sz-card__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--sz-line);
  background: rgba(0, 0, 0, 0.35);
  object-fit: contain;
  image-rendering: pixelated;
}

.sz-card__icon--empty {
  display: grid;
  place-items: center;
  color: var(--sz-gold);
  font-size: 1.2rem;
}

.sz-card__titles h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #f5ecd8;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
}

.sz-card__titles p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--sz-muted);
}

.sz-card__section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sz-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sz-gold);
}

.sz-card__arrow {
  text-align: center;
  color: var(--sz-gold);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1;
}

.sz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 130, 100, 0.28);
  background: var(--sz-mat);
}

.sz-chip--out {
  background: var(--sz-out);
  border-color: rgba(74, 160, 120, 0.35);
}

.sz-chip img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  object-fit: contain;
  image-rendering: pixelated;
}

.sz-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sz-chip__meta strong {
  font-size: 0.72rem;
  color: #f0e6d2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sz-chip__meta span {
  font-size: 0.68rem;
  color: var(--sz-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sz-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.sz-page {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--sz-line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--sz-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.sz-page:hover {
  border-color: var(--sz-gold);
  color: var(--sz-gold);
}

.sz-page.is-active {
  background: linear-gradient(180deg, #e0b65a, #b8862f);
  border-color: transparent;
  color: #1a1208;
}

.sz-page--gap {
  border: 0;
  background: transparent;
  color: var(--sz-muted);
  pointer-events: none;
}

@media (max-width: 640px) {
  .sz-book__meta {
    align-items: flex-start;
    width: 100%;
  }

  .sz-grid {
    grid-template-columns: 1fr;
  }

  .sz-chip__meta strong {
    max-width: 180px;
  }
}
