/* ── /play-demo/ hub ── */
.pd-page {
  min-height: 70vh;
  padding: 16px 12px 40px;
  color: #3f3f46;
  background:
    radial-gradient(circle at 8% 0%, rgba(124, 58, 237, 0.12), transparent 38%),
    radial-gradient(circle at 92% 5%, rgba(245, 158, 11, 0.10), transparent 40%),
    linear-gradient(180deg, #f0f0f0 0%, #f8f5ff 44%, #f0f0f0 100%);
}

.pd-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* 1. Hero */
.pd-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(251, 191, 36, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(167, 139, 250, 0.35), transparent 50%),
    linear-gradient(145deg, #1e0b3a 0%, #3b1268 38%, #6d28d9 78%, #8b5cf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(49, 16, 99, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: pd-hero-in 0.55s ease both;
}

.pd-hero__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 68%);
  pointer-events: none;
  animation: pd-glow-drift 8s ease-in-out infinite alternate;
}

.pd-hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 4vw, 36px) clamp(18px, 3.5vw, 34px);
}

.pd-hero__brand {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
}

.pd-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 3.6vw, 1.75rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: #fff;
}

.pd-hero__lead {
  max-width: 52ch;
  margin: 0 0 16px;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.88);
}

.pd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-hero__stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  color: rgba(237, 233, 254, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.pd-hero__stats strong {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: #fff;
}

@keyframes pd-hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pd-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12%, -8%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-hero,
  .pd-toolbar,
  .pd-hero__glow {
    animation: none;
  }
}

/* 2. Search + provider filter */
.pd-toolbar {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 10px 28px rgba(76, 29, 149, 0.07);
  backdrop-filter: blur(10px);
  animation: pd-hero-in 0.55s ease 0.08s both;
}

.pd-search {
  display: block;
  position: relative;
  margin-bottom: 12px;
}

.pd-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pd-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  display: flex;
  color: #7c3aed;
  transform: translateY(-50%);
  pointer-events: none;
}

.pd-search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 14px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--color-heading);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-search input::placeholder {
  color: #a1a1aa;
}

.pd-search input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.pd-search-hint {
  margin: -4px 0 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #6d28d9;
}

.pd-tabs-block {
  min-width: 0;
}

.pd-tabs__heading {
  margin: 0 0 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}

.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  max-width: 100%;
}

.pd-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: normal;
  text-align: center;
  color: #5b21b6;
  background: #faf5ff;
  border: 1px solid rgba(124, 58, 237, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

@media (max-width: 767px) {
  .pd-tab {
    padding: 7px 10px;
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

.pd-tab:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 6px 14px rgba(76, 29, 149, 0.1);
}

.pd-tab.is-active {
  color: #1e0b3a;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.32);
}

@media (min-width: 768px) {
  .pd-hero__inner {
    padding: 32px 36px 34px;
  }

  .pd-hero__lead {
    font-size: var(--fs-base);
    max-width: 56ch;
  }

  .pd-toolbar {
    padding: 16px 18px 14px;
  }

  .pd-tab {
    padding: 9px 15px;
  }
}

.pd-note {
  padding: 10px 14px;
  margin: 14px 0 0;
  border-radius: 12px;
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.pd-empty {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  text-align: center;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
}

/* 3. Game grid — mobile 3 / desktop 8 */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

@media (min-width: 992px) {
  .pd-grid { grid-template-columns: repeat(8, 1fr); gap: 12px; }
}

.pd-card__img--lazy {
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
}

.pd-card--filtered {
  display: none;
}

.pd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.10);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pd-card--playable {
  cursor: pointer;
}

.pd-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.pd-card__link:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.pd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(76, 29, 149, 0.12);
}

.pd-card__media {
  position: relative;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
}

.pd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.pd-card--landscape .pd-card__media {
  aspect-ratio: 16 / 9;
}

.pd-card--landscape .pd-card__media img {
  object-position: center center;
}

.pd-card--square .pd-card__media {
  aspect-ratio: 1 / 1;
}

.pd-card--square .pd-card__media img {
  object-position: center center;
}

.pd-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: #fff;
  background: rgba(91, 33, 182, 0.9);
}

.pd-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px 9px;
}

.pd-card__provider {
  margin: 0;
  font-size: 0.6rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-card__body h2 {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--color-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.5em;
}

.pd-card__name-th {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pd-card__body { padding: 10px 11px 12px; gap: 3px; }
  .pd-card__provider { font-size: 0.66rem; }
  .pd-card__body h2 { font-size: var(--fs-sm); }
  .pd-card__name-th { font-size: 0.62rem; }
  .pd-card__badge { top: 9px; left: 9px; padding: 3px 8px; font-size: 0.6rem; }
}

/* 4. SEO content below grid */
.pd-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.pd-seo {
  padding: 22px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(124, 58, 237, 0.10);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.06);
}

.pd-seo h2 {
  margin: 0 0 10px;
  font-size: clamp(var(--fs-lg), 3.2vw, var(--fs-xl));
  line-height: var(--lh-snug);
  color: var(--color-heading);
}

.pd-seo h3 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-heading);
}

.pd-seo__lead {
  max-width: 72ch;
  margin: 0 0 12px;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.pd-seo p {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}

.pd-seo p:last-child {
  margin-bottom: 0;
}

.pd-providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.pd-provider {
  padding: 12px 14px;
  border-radius: 14px;
  background: #faf5ff;
  border: 1px solid rgba(124, 58, 237, 0.10);
}

.pd-provider h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pd-provider h3 span {
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.10);
  padding: 2px 8px;
  border-radius: 999px;
}

.pd-provider p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.pd-provider__more {
  margin-top: 8px !important;
}

.pd-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #faf5ff;
  border: 1px solid rgba(124, 58, 237, 0.10);
}

.pd-step__no {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.pd-step b {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-sm);
  color: var(--color-heading);
}

.pd-step span {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.pd-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-benefits li {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  background: #faf5ff;
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.pd-benefits b {
  color: #5b21b6;
}

.pd-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-faq__item {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid rgba(124, 58, 237, 0.10);
}

.pd-faq__item h3 {
  margin-bottom: 6px;
  font-size: var(--fs-sm);
}

.pd-faq__item p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.pd-cta {
  margin-top: 16px;
  padding: 20px 18px;
  border-radius: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.pd-cta h2 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
}

.pd-cta p {
  max-width: 52ch;
  margin: 0 auto 14px;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.pd-cta__btn--play {
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.pd-cta__btn--register {
  color: #5b21b6;
  background: #f5f3ff;
  border: 1px solid rgba(124, 58, 237, 0.18);
}

/* ── Play page ── */
.pd-play-page {
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #120a24;
}

.pd-play-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 20% 60% 20%;
  align-items: center;
  gap: 0;
  height: 56px;
  max-height: 56px;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: visible;
  color: #fff;
  background: rgba(18, 10, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-play-bar__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  height: 40px;
  overflow: visible;
}

.pd-play-bar__back {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #ede9fe;
  background: rgba(255, 255, 255, 0.08);
}

.pd-play-bar__back:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pd-play-bar__logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 40px;
  overflow: visible;
}

.pd-play-bar__logo img {
  display: block;
  width: auto;
  height: 40px;
  transform: scale(1.75);
  transform-origin: left center;
  object-fit: contain;
}

.pd-play-bar__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.pd-play-bar__title--swap {
  transition: opacity 0.7s ease;
}

.pd-play-bar__title--swap.is-fading {
  opacity: 0.15;
}

@media (prefers-reduced-motion: reduce) {
  .pd-play-bar__title--swap {
    transition: none;
  }
}

.pd-play-bar__title {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-play-bar__provider {
  margin: 2px 0 0;
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-play-bar__real {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.pd-play-bar__real-icon {
  flex-shrink: 0;
}

.pd-play-bar__real:hover {
  filter: brightness(1.06);
}

.pd-play-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
}

.pd-play-frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  border: 0;
  background: #000;
}

.pd-play-disclaimer {
  flex: 0 0 auto;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: #120a24;
}

.pd-play-fallback {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 12px 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: #120a24;
}

.pd-play-fallback a {
  color: #ffd700;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .pd-play-bar {
    height: 56px;
    max-height: 56px;
    padding: 0 8px;
  }

  .pd-play-bar__back {
    width: 36px;
    height: 36px;
  }

  .pd-play-bar__left {
    height: 36px;
  }

  .pd-play-bar__logo img {
    height: 36px;
    transform: scale(1.65);
  }

  .pd-play-bar__title {
    font-size: 0.78rem;
  }

  .pd-play-bar__real {
    height: 36px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .pd-play-disclaimer {
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom, 0px));
    font-size: 0.68rem;
  }
}
