/* =========================================================
   PTK HOME BLOCKS v1.2.5 — OBSIDIAN CORE
   MONOCHROME / BORDERLESS / POWER SURFACE
========================================================= */

:where(.ptk-home-section, .ptk-home-hero) {
  --ptk-obsidian-0: #08090b;
  --ptk-obsidian-1: #0e0f12;
  --ptk-obsidian-2: #15171b;
  --ptk-obsidian-3: #1d2025;
  --ptk-obsidian-4: #292d33;
  --ptk-obsidian-text: #f3f4f6;
  --ptk-obsidian-muted: #969ba4;
  --ptk-obsidian-soft: #c8cbd1;
  color-scheme: dark;
}

.ptk-home-section {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(30px, 4vw, 46px);
}

/* SECTION IDENTITY */
.ptk-home-section-head {
  gap: 5px;
  margin-bottom: 17px;
  padding-left: 18px;
}

.ptk-home-section-head::before {
  left: 0;
  top: 3px;
  bottom: auto;
  width: 6px;
  height: 27px;
  border-radius: 2px;
  background: linear-gradient(180deg, #777c85 0%, #353941 52%, #17191d 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.14);
}

.ptk-home-section-head h2,
.ptk-home-amulets .ptk-home-section-head h2 {
  color: var(--ptk-obsidian-text);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.ptk-home-section-head p,
.ptk-home-amulets .ptk-home-section-head p {
  color: var(--ptk-obsidian-muted);
}

.ptk-home-section-action {
  min-height: 35px;
  padding: 7px 12px;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #26292f 0%, #1a1c20 100%);
  color: #d8dadd !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.055);
  font-weight: 750;
}

.ptk-home-section-action:hover,
.ptk-home-section-action:focus-visible {
  border: 0 !important;
  background: linear-gradient(180deg, #343840 0%, #24272c 100%);
  color: #ffffff !important;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.08);
}

/* HERO MONOLITH */
.ptk-home-hero {
  min-height: 380px;
  border: 0 !important;
  border-radius: 28px;
  background: var(--ptk-obsidian-0);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44), 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.045);
}

.ptk-home-hero-track {
  min-height: 380px;
}

.ptk-home-hero-slide {
  padding: clamp(30px, 5vw, 58px);
}

.ptk-home-hero-overlay {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.085), transparent 28%),
    linear-gradient(90deg, rgba(3, 4, 5, 0.94) 0%, rgba(7, 8, 10, 0.78) 45%, rgba(8, 9, 11, 0.32) 74%, rgba(8, 9, 11, 0.14) 100%),
    linear-gradient(0deg, rgba(3, 4, 5, 0.34), transparent 48%);
}

.ptk-home-hero-content {
  max-width: 720px;
}

.ptk-home-eyebrow {
  padding: 7px 11px;
  border: 0 !important;
  border-radius: 8px;
  background: rgba(23, 25, 29, 0.82);
  color: #d4d6da;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
  letter-spacing: 0.035em;
}

.ptk-home-hero h1 {
  max-width: 680px;
  color: #ffffff;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 7px 30px rgba(0, 0, 0, 0.58);
}

.ptk-home-hero p {
  max-width: 620px;
  color: rgba(237, 239, 242, 0.74);
  font-size: 15.5px;
  line-height: 1.75;
}

.ptk-home-btn {
  min-height: 44px;
  padding: 10px 17px;
  border: 0 !important;
  border-radius: 11px;
  background: linear-gradient(180deg, #f0f1f3 0%, #b9bdc4 100%);
  color: #0d0e10 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.ptk-home-btn:hover,
.ptk-home-btn:focus-visible {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.82);
}

.ptk-home-btn--ghost {
  border: 0 !important;
  background: linear-gradient(180deg, rgba(42, 45, 51, 0.94), rgba(22, 24, 28, 0.94));
  color: #eceef1 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.07);
}

.ptk-home-hero-dots button::before {
  background: rgba(210, 213, 218, 0.32);
}

.ptk-home-hero-dots button.is-active::before {
  background: #d7d9dd;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.16);
}

/* BORDERLESS DEPTH SYSTEM */
.ptk-home-cat-card,
.ptk-home-card,
.ptk-home-shop-card,
.ptk-home-sponsor-card,
.ptk-home-list-item,
.ptk-home-forum-item,
.ptk-home-forum-room-card {
  border: 0 !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(145deg, #1e2126 0%, #15171b 56%, #101114 100%);
  color: var(--ptk-obsidian-text);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.28), 0 5px 14px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.045);
}

.ptk-home-cat-card:hover,
.ptk-home-card:hover,
.ptk-home-shop-card:hover,
.ptk-home-sponsor-card:hover,
.ptk-home-list-item:hover,
.ptk-home-forum-item:hover,
.ptk-home-forum-room-card:hover {
  border: 0 !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.075), transparent 38%),
    linear-gradient(145deg, #272b31 0%, #1b1e23 56%, #131519 100%);
  box-shadow: 0 23px 50px rgba(0, 0, 0, 0.36), 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.065);
  transform: translateY(-3px);
}

.ptk-home-cat-card:active,
.ptk-home-card:active,
.ptk-home-shop-card:active,
.ptk-home-sponsor-card:active,
.ptk-home-list-item:active,
.ptk-home-forum-item:active,
.ptk-home-forum-room-card:active {
  border: 0 !important;
  background: linear-gradient(145deg, #22252a, #15171a);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.22);
  transform: translateY(0);
}

.ptk-home-cat-card:focus-visible,
.ptk-home-card:focus-within,
.ptk-home-shop-card:focus-visible,
.ptk-home-sponsor-card:focus-within,
.ptk-home-list-item:focus-visible,
.ptk-home-forum-item:focus-visible,
.ptk-home-forum-room-card:focus-visible,
.ptk-home-tag-cloud a:focus-visible,
.ptk-home-section-action:focus-visible,
.ptk-home-btn:focus-visible {
  outline: 2px solid rgba(221, 224, 229, 0.68);
  outline-offset: 3px;
}

/* CATEGORIES */
.ptk-home-cat-grid {
  gap: 12px;
}

.ptk-home-cat-card--clean {
  isolation: isolate;
  min-height: 98px;
  padding: 16px 14px;
  border: 0 !important;
  border-radius: 17px;
  overflow: hidden;
}

.ptk-home-cat-card--clean::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82px;
  height: 82px;
  right: -32px;
  top: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075), transparent 68%);
  pointer-events: none;
}

.ptk-home-cat-card--clean strong {
  color: #f0f1f3;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.4;
}

.ptk-home-cat-card--clean em {
  color: #878c95;
  font-size: 11.5px;
  font-weight: 650;
}

.ptk-home-cat-card--clean.is-active {
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(145deg, #30343b 0%, #202329 58%, #17191d 100%);
  box-shadow: 0 23px 48px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
}

/* ARTICLE CARDS */
.ptk-home-card {
  border-radius: 20px;
}

.ptk-home-thumb {
  position: relative;
  background: #090a0c;
}

.ptk-home-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 7, 0.35) 100%);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.025);
}

.ptk-home-card-body {
  padding: 15px 15px 16px;
  background: linear-gradient(180deg, #191b1f 0%, #121417 100%);
}

.ptk-home-posts .ptk-home-card-body h3 {
  color: #f1f2f4;
  font-weight: 820;
}

.ptk-home-posts .ptk-home-card-body p {
  color: #8f949c;
}

/* AMULET SHOP CARDS */
.ptk-home-amulets .ptk-home-amulet-grid {
  gap: 15px;
}

.ptk-home-amulets .ptk-home-amulet-shop-card-wrap {
  border: 0 !important;
  border-radius: 20px;
  filter: none;
}

.ptk-home-amulets .ptk-amulet-card,
.ptk-home-amulets .ptk-amulet-shop__card {
  border: 0 !important;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(145deg, #1e2126 0%, #15171b 58%, #101114 100%);
  box-shadow: 0 19px 42px rgba(0, 0, 0, 0.3), 0 5px 14px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.ptk-home-amulets .ptk-amulet-shop__content {
  padding: 13px !important;
  background: linear-gradient(180deg, #191b1f 0%, #121417 100%);
}

.ptk-home-amulets .ptk-amulet-shop__title,
.ptk-home-amulets .ptk-amulet-shop__title a {
  color: #f1f2f4 !important;
  font-weight: 820 !important;
}

.ptk-home-amulets .ptk-amulet-shop__price,
.ptk-home-amulets .ptk-amulet-shop__price *,
.ptk-home-amulets .ptk-amulet-price {
  color: #d2d5da !important;
}

.ptk-home-amulets .ptk-amulet-shop__meta,
.ptk-home-amulets .ptk-amulet-shop__meta--category,
.ptk-home-amulets .ptk-amulet-shop__meta--status {
  color: #838891 !important;
}

.ptk-home-amulets .ptk-amulet-shop__badge,
.ptk-home-amulets .ptk-amulet-badge {
  border: 0 !important;
  background: rgba(22, 24, 28, 0.9) !important;
  color: #e7e9ec !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.06);
}

.ptk-home-amulets .ptk-amulet-shop__view-btn {
  border: 0 !important;
  background: linear-gradient(180deg, #343840 0%, #23262b 100%) !important;
  color: #f1f2f4 !important;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.07);
}

.ptk-home-amulets .ptk-home-amulet-shop-card-wrap:hover {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

/* FORUM ROOMS AND TOPICS */
.ptk-home-forum-room-grid,
.ptk-home-forum-grid,
.ptk-home-list {
  gap: 12px;
}

.ptk-home-forum-room-card {
  min-height: 118px;
  border-radius: 18px;
}

.ptk-home-forum-room-icon,
.ptk-home-list-item > span {
  border: 0;
  background: linear-gradient(145deg, #2a2e34, #1c1f23);
  color: #d8dadd;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.055);
}

.ptk-home-forum-room-card strong,
.ptk-home-forum-item strong {
  color: #eef0f2;
}

.ptk-home-forum-room-card em,
.ptk-home-forum-item em {
  color: #858a93;
}

.ptk-home-forum-item {
  min-height: 86px;
  padding: 15px;
  border-radius: 16px;
}

/* POPULAR TAGS */
.ptk-home-tag-cloud {
  gap: 9px;
}

.ptk-home-tag-cloud a {
  padding: 9px 12px;
  border: 0 !important;
  border-radius: 10px;
  background: linear-gradient(145deg, #22252a, #17191d);
  color: #d2d5d9;
  box-shadow: 0 10px 23px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
}

.ptk-home-tag-cloud a:hover,
.ptk-home-tag-cloud a:active,
.ptk-home-tag-cloud a:focus-visible {
  border: 0 !important;
  background: linear-gradient(145deg, #30343a, #202329);
  color: #ffffff;
  box-shadow: 0 14px 29px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.065);
}

.ptk-home-tag-cloud small {
  color: #777c85;
}

/* VIP SHOPS */
.ptk-home-shop-card {
  min-height: 154px;
  padding: 18px 12px;
  border-radius: 18px;
}

.ptk-home-avatar {
  width: 72px;
  height: 72px;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  filter: saturate(0.78) contrast(1.05);
}

.ptk-home-shop-card strong {
  color: #f0f1f3;
}

.ptk-home-shop-card em {
  color: #858a93;
}

/* SPONSOR STAGE */
.ptk-home-sponsor-card {
  min-height: 210px;
  border: 0 !important;
  border-radius: 21px;
}

.ptk-home-sponsor-card::after {
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.02) 0%, rgba(5, 6, 7, 0.16) 38%, rgba(5, 6, 7, 0.82) 76%, rgba(5, 6, 7, 0.98) 100%);
}

.ptk-home-sponsor-content {
  padding: 0 17px 17px;
}

.ptk-home-sponsor-content h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.ptk-home-sponsor-content .ptk-home-sponsor-html {
  color: rgba(231, 233, 236, 0.76);
}

.ptk-home-sponsor-card.no-image {
  border: 0 !important;
  background: radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.05), transparent 34%), linear-gradient(145deg, #1f2227, #121417);
}

/* EMPTY STATE */
.ptk-home-empty {
  border: 0 !important;
  background: linear-gradient(145deg, #1d2024, #121417);
  color: #969ba4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.04);
}

/* RESPONSIVE FORTRESS */
@media (max-width: 768px) {
  .ptk-home-section {
    margin-bottom: 28px;
  }

  .ptk-home-section-head {
    margin-bottom: 14px;
    padding-left: 16px;
  }

  .ptk-home-section-head::before {
    width: 5px;
    height: 25px;
  }

  .ptk-home-section-action {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .ptk-home-hero,
  .ptk-home-hero-track {
    min-height: 310px;
  }

  .ptk-home-hero {
    border-radius: 22px;
  }

  .ptk-home-hero-slide {
    padding: 28px 18px 54px;
  }

  .ptk-home-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .ptk-home-card,
  .ptk-home-amulets .ptk-home-amulet-shop-card-wrap,
  .ptk-home-amulets .ptk-amulet-card,
  .ptk-home-amulets .ptk-amulet-shop__card,
  .ptk-home-sponsor-card {
    border-radius: 16px;
  }

  .ptk-home-cat-grid {
    gap: 8px;
  }

  .ptk-home-cat-card--clean {
    min-height: 86px;
    padding: 11px 9px;
    border-radius: 14px;
  }

  .ptk-home-cat-card--clean strong {
    font-size: 13px;
  }

  .ptk-home-forum-room-card {
    min-height: 100px;
    border-radius: 15px;
  }

  .ptk-home-forum-item {
    min-height: 78px;
    padding: 13px;
  }

  .ptk-home-shop-card {
    min-height: 142px;
    border-radius: 15px;
  }

  .ptk-home-avatar {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 420px) {
  .ptk-home-section-head--with-action {
    gap: 5px 9px;
  }

  .ptk-home-section-action {
    padding-inline: 8px;
    font-size: 11.5px;
  }

  .ptk-home-btn {
    border-radius: 10px;
  }
}
