/* ============================================================
   taimb66 — Design System CSS
   Brand: taimb66 | Domain: taimb66apk.com
   Theme: Dark Luxury | Layout: Grid-first
   Prefix: pw | Naming: camelCase
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Ubuntu:wght@400;500;700&display=swap');

/* ──────────────────────────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ────────────────────────────────────────────────────────────── */

:root {
  /* brand palette */
  --pw-accent: #70cbdb;
  --pw-bg: #0d1117;
  --pw-ink: #ebedef;
  --pw-muted: #98a8bd;
  --pw-surface: #1a2028;
  --pw-btn-ink: #1f3033;
  --pw-radius: 16px;

  /* gradient triplet */
  --pw-grad-dl: linear-gradient(135deg, #5f5fd8 0%, #a26be1 100%);
  --pw-grad-login: linear-gradient(135deg, #29bcb5 0%, #66ea3e 100%);
  --pw-grad-reg: linear-gradient(135deg, #e274c1 0%, #c12f89 100%);

  /* surface variants */
  --pw-surface-raised: #212a34;
  --pw-surface-overlay: rgba(13, 17, 23, 0.92);
  --pw-border: rgba(112, 203, 219, 0.12);
  --pw-border-strong: rgba(112, 203, 219, 0.28);

  /* typography scale */
  --pw-fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --pw-fs-sm: clamp(0.8rem, 0.74rem + 0.3vw, 0.9rem);
  --pw-fs-base: clamp(0.95rem, 0.88rem + 0.35vw, 1.05rem);
  --pw-fs-md: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --pw-fs-lg: clamp(1.35rem, 1.15rem + 1vw, 1.8rem);
  --pw-fs-xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --pw-fs-xxl: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);

  /* spacing scale */
  --pw-sp-xs: 0.35rem;
  --pw-sp-sm: 0.65rem;
  --pw-sp-md: 1rem;
  --pw-sp-lg: 1.6rem;
  --pw-sp-xl: 2.6rem;
  --pw-sp-xxl: 4rem;

  /* layout */
  --pw-max-w: 1200px;
  --pw-header-h: 64px;

  /* transitions */
  --pw-ease-quick: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --pw-ease-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pw-ease-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  /* shadows */
  --pw-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35);
  --pw-shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(112, 203, 219, 0.1);
  --pw-shadow-btn: 0 4px 14px rgba(0, 0, 0, 0.3);

  /* focus ring */
  --pw-focus-ring: 0 0 0 3px rgba(112, 203, 219, 0.55);
}

/* ─────────────────────────���────────────────────────────────────
   2. RESETS & BASE
   ────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pw-header-h) + var(--pw-sp-lg));
  -webkit-text-size-adjust: 100%;
}

body.pw-body {
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: var(--pw-fs-base);
  line-height: 1.65;
  color: var(--pw-ink);
  background-color: var(--pw-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pw-accent);
  text-decoration: none;
  transition: color var(--pw-ease-quick);
}

a:hover {
  color: #9de0ec;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pw-ink);
}

ul, ol {
  list-style: none;
}

/* ──────────────────────────────────────────────────────────────
   3. ACCESSIBILITY
   ────────────────────────────────────────────────────────────── */

/* skip link */
.pw-skip {
  position: absolute;
  top: -100%;
  left: var(--pw-sp-md);
  z-index: 10000;
  padding: var(--pw-sp-sm) var(--pw-sp-lg);
  background: var(--pw-accent);
  color: var(--pw-btn-ink);
  font-weight: 700;
  border-radius: 0 0 var(--pw-radius) var(--pw-radius);
  transition: top var(--pw-ease-quick);
}

.pw-skip:focus {
  top: 0;
}

/* focus-visible global */
:focus-visible {
  outline: none;
  box-shadow: var(--pw-focus-ring);
  border-radius: 4px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   4. LAYOUT PRIMITIVES
   ────────────────────────────────────────────────────────────── */

.pw-wrap {
  width: 100%;
  max-width: var(--pw-max-w);
  margin-inline: auto;
  padding-inline: var(--pw-sp-lg);
}

.pw-section {
  padding-block: var(--pw-sp-xxl);
}

.pw-section__title {
  font-size: var(--pw-fs-xl);
  text-align: center;
  margin-bottom: var(--pw-sp-xl);
  position: relative;
  padding-bottom: var(--pw-sp-md);
}

.pw-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--pw-grad-dl);
  border-radius: 3px;
}

/* ──────────────────────────────────────────────────────────────
   5. STICKY HEADER
   ────────────────────────────────────────────────────────────── */

.pw-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--pw-header-h);
  background: var(--pw-surface-overlay);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--pw-border);
  transition: box-shadow var(--pw-ease-quick);
}

.pw-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.pw-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--pw-sp-lg);
  height: 100%;
  max-width: var(--pw-max-w);
  margin-inline: auto;
  padding-inline: var(--pw-sp-lg);
}

/* logo */
.pw-logo {
  display: flex;
  align-items: center;
  gap: var(--pw-sp-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: var(--pw-fs-md);
  color: var(--pw-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pw-logo img {
  height: 36px;
  width: auto;
}

/* nav */
.pw-nav {
  justify-self: center;
}

.pw-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--pw-sp-lg);
}

.pw-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--pw-fs-sm);
  font-weight: 600;
  color: var(--pw-muted);
  letter-spacing: 0.02em;
  padding: var(--pw-sp-xs) 0;
  position: relative;
  transition: color var(--pw-ease-quick);
}

.pw-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pw-accent);
  border-radius: 2px;
  transition: width var(--pw-ease-medium);
}

.pw-nav-link:hover,
.pw-nav-link[aria-current="page"] {
  color: var(--pw-ink);
}

.pw-nav-link:hover::after,
.pw-nav-link[aria-current="page"]::after {
  width: 100%;
}

/* nav toggle (mobile) */
.pw-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pw-ink);
  cursor: pointer;
  padding: var(--pw-sp-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.pw-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ──────────────────────────────────────────────────────────────
   6. HERO — CASCADE ANIMATION
   ────────────────────────────────────────────────────────────── */

.pw-hero {
  position: relative;
  overflow: hidden;
  min-height: min(85vh, 720px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(112, 203, 219, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(162, 107, 225, 0.06) 0%, transparent 70%),
    var(--pw-bg);
}

.pw-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: var(--pw-sp-xxl) var(--pw-sp-lg);
}

.pw-hero__title {
  font-size: var(--pw-fs-xxl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--pw-sp-lg);
  background: linear-gradient(135deg, var(--pw-ink) 30%, var(--pw-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pw-hero__sub {
  font-size: var(--pw-fs-md);
  color: var(--pw-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--pw-sp-xl);
  line-height: 1.6;
}

.pw-hero__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pw-sp-md);
  margin-bottom: var(--pw-sp-xl);
}

.pw-hero__perks li {
  display: flex;
  align-items: center;
  gap: var(--pw-sp-xs);
  font-size: var(--pw-fs-sm);
  color: var(--pw-muted);
}

.pw-hero__perks li::before {
  content: '✦';
  color: var(--pw-accent);
  font-size: 0.75em;
}

.pw-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pw-sp-md);
}

/* cascade keyframes */
@keyframes pwCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.pw-hero__inner > * {
  animation: pwCascadeIn 0.7s var(--pw-ease-slow) both;
}

.pw-hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.pw-hero__inner > *:nth-child(2) { animation-delay: 0.25s; }
.pw-hero__inner > *:nth-child(3) { animation-delay: 0.4s; }
.pw-hero__inner > *:nth-child(4) { animation-delay: 0.55s; }
.pw-hero__inner > *:nth-child(5) { animation-delay: 0.7s; }

/* particles container */
.pw-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

@keyframes pwFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-80px) rotate(180deg); opacity: 0.15; }
}

.pw-particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pw-accent);
  opacity: 0.3;
  animation: pwFloat 6s ease-in-out infinite;
}

.pw-particles span:nth-child(2n) {
  width: 4px;
  height: 4px;
  background: #a26be1;
  animation-duration: 8s;
}

.pw-particles span:nth-child(3n) {
  width: 3px;
  height: 3px;
  background: #66ea3e;
  animation-duration: 10s;
}

/* ──────────────────────────────────────────────────────────────
   7. CAROUSEL (HERO)
   ────────────────────────────────────────────────────────────── */

.pw-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pw-radius);
  margin-top: var(--pw-sp-xl);
}

.pw-carousel__track {
  display: flex;
  transition: transform var(--pw-ease-slow);
}

.pw-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.pw-carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--pw-radius);
}

.pw-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--pw-sp-sm);
  margin-top: var(--pw-sp-md);
}

.pw-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--pw-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--pw-ease-quick);
}

.pw-carousel__dot.is-active,
.pw-carousel__dot:hover {
  background: var(--pw-accent);
}

/* ──────────────────────────────────────────────────────────────
   8. BUTTONS
   ────────────────────────────────────────────────────────────── */

.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pw-sp-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--pw-fs-sm);
  font-weight: 700;
  padding: 0.75em 1.8em;
  border: none;
  border-radius: var(--pw-radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--pw-btn-ink);
  background: var(--pw-accent);
  box-shadow: var(--pw-shadow-btn);
  transition:
    filter var(--pw-ease-quick),
    transform var(--pw-ease-quick),
    box-shadow var(--pw-ease-quick);
  min-height: 44px;
  min-width: 44px;
}

.pw-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.pw-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* download */
.pw-btn--dl {
  background: var(--pw-grad-dl);
  color: #fff;
}

/* login */
.pw-btn--login {
  background: var(--pw-grad-login);
  color: var(--pw-btn-ink);
}

/* register */
.pw-btn--reg {
  background: var(--pw-grad-reg);
  color: #fff;
}

/* outline variant */
.pw-btn--outline {
  background: transparent;
  color: var(--pw-accent);
  border: 2px solid var(--pw-accent);
  box-shadow: none;
}

.pw-btn--outline:hover {
  background: rgba(112, 203, 219, 0.1);
}

/* small */
.pw-btn--sm {
  font-size: var(--pw-fs-xs);
  padding: 0.5em 1.2em;
  border-radius: calc(var(--pw-radius) * 0.65);
}

/* ──────────────────────────────────────────────────────────────
   9. CARDS (GENERIC)
   ────────────────────────────────────────────────────────────── */

.pw-card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow: hidden;
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium),
    border-color var(--pw-ease-medium);
  box-shadow: var(--pw-shadow-card);
}

.pw-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
  border-color: var(--pw-border-strong);
}

.pw-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pw-card__body {
  padding: var(--pw-sp-lg);
}

.pw-card__title {
  font-size: var(--pw-fs-md);
  margin-bottom: var(--pw-sp-sm);
}

.pw-card__desc {
  font-size: var(--pw-fs-sm);
  color: var(--pw-muted);
  line-height: 1.6;
}

.pw-card__footer {
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  border-top: 1px solid var(--pw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ──────────────────────────────────────────────────────────────
   10. GAME CARD
   ────────────────────────────────────────────────────────────── */

.pw-game-card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium),
    border-color var(--pw-ease-medium);
  box-shadow: var(--pw-shadow-card);
}

.pw-game-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
  border-color: var(--pw-border-strong);
}

.pw-game-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pw-game-card__info {
  padding: var(--pw-sp-md);
}

.pw-game-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--pw-fs-sm);
  font-weight: 700;
  margin-bottom: var(--pw-sp-xs);
}

.pw-game-card__meta {
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
}

.pw-game-card__actions {
  padding: var(--pw-sp-sm) var(--pw-sp-md) var(--pw-sp-md);
}

/* game grid */
.pw-gameGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--pw-sp-lg);
}

/* ──────────────────────────────────────────────────────────────
   11. ARTICLE CARD
   ────────────────────────────────────────────────────────────── */

.pw-article-card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium);
}

.pw-article-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
}

.pw-article-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pw-article-card__body {
  padding: var(--pw-sp-lg);
  display: grid;
  gap: var(--pw-sp-sm);
}

.pw-article-card__tag {
  display: inline-block;
  font-size: var(--pw-fs-xs);
  font-weight: 600;
  color: var(--pw-accent);
  background: rgba(112, 203, 219, 0.1);
  padding: 0.2em 0.7em;
  border-radius: calc(var(--pw-radius) * 0.5);
  width: fit-content;
}

.pw-article-card__title {
  font-size: var(--pw-fs-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.pw-article-card__excerpt {
  font-size: var(--pw-fs-sm);
  color: var(--pw-muted);
  line-height: 1.6;
}

.pw-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--pw-sp-lg);
}

/* ──────────────────────────────────────────────────────────────
   12. GUIDE CARD
   ────────────────────────────────────────────────���───────────── */

.pw-guide-card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-lg);
  display: grid;
  gap: var(--pw-sp-sm);
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium);
}

.pw-guide-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
}

.pw-guide-card__icon {
  width: 48px;
  height: 48px;
  border-radius: calc(var(--pw-radius) * 0.6);
  background: rgba(112, 203, 219, 0.1);
  display: grid;
  place-items: center;
  color: var(--pw-accent);
  font-size: 1.3rem;
}

/* ──────────────────────────────────────────────────────────────
   13. EDITOR PICKS
   ────────────────────────────────────────────────────────────── */

.pw-editorPicks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--pw-sp-lg);
}

/* ──────────────────────────────────────────────────────────────
   14. CODE TABS
   ────────────────────────────────────────────────────────────── */

.pw-code-tabs {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow: hidden;
}

.pw-code-tabs__nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--pw-border);
  background: rgba(0, 0, 0, 0.15);
}

.pw-code-tab {
  background: none;
  border: none;
  color: var(--pw-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--pw-fs-xs);
  font-weight: 600;
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--pw-ease-quick);
  min-height: 44px;
}

.pw-code-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pw-accent);
  transform: scaleX(0);
  transition: transform var(--pw-ease-quick);
}

.pw-code-tab[aria-selected="true"],
.pw-code-tab.is-active {
  color: var(--pw-ink);
}

.pw-code-tab[aria-selected="true"]::after,
.pw-code-tab.is-active::after {
  transform: scaleX(1);
}

.pw-code-tab:hover {
  color: var(--pw-ink);
}

.pw-code-panel {
  display: none;
  padding: var(--pw-sp-lg);
  position: relative;
}

.pw-code-panel.is-active {
  display: block;
}

.pw-code-panel pre {
  margin: 0;
  overflow-x: auto;
}

.pw-code-panel code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: var(--pw-fs-sm);
  line-height: 1.7;
  color: var(--pw-ink);
}

.pw-copy-btn {
  position: absolute;
  top: var(--pw-sp-md);
  right: var(--pw-sp-md);
  background: rgba(112, 203, 219, 0.15);
  color: var(--pw-accent);
  border: 1px solid var(--pw-border);
  border-radius: calc(var(--pw-radius) * 0.5);
  padding: var(--pw-sp-xs) var(--pw-sp-sm);
  font-size: var(--pw-fs-xs);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background var(--pw-ease-quick);
  min-height: 36px;
  min-width: 36px;
}

.pw-copy-btn:hover {
  background: rgba(112, 203, 219, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   15. COMPARE TABLE
   ────────────────────────────────────────────────────────────── */

.pw-compare {
  overflow: hidden;
  border-radius: var(--pw-radius);
  border: 1px solid var(--pw-border);
}

.pw-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pw-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.pw-compare__table th,
.pw-compare__table td {
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  text-align: left;
  border-bottom: 1px solid var(--pw-border);
  font-size: var(--pw-fs-sm);
}

.pw-compare__table th {
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pw-accent);
  position: sticky;
  top: 0;
}

.pw-compare__table tr:nth-child(even) td {
  background: rgba(26, 32, 40, 0.5);
}

.pw-compare__table tr:hover td {
  background: rgba(112, 203, 219, 0.04);
}

.pw-compare__table td:first-child {
  font-weight: 600;
  color: var(--pw-ink);
}

/* ──────────────────────────────────────────────────────────────
   16. STEPS (QUICKSTART)
   ────────────────────────────────────────────────────────────── */

.pw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--pw-sp-lg);
  counter-reset: pwStep;
}

.pw-steps__item {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-xl) var(--pw-sp-lg) var(--pw-sp-lg);
  position: relative;
  counter-increment: pwStep;
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium);
}

.pw-steps__item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
}

.pw-steps__item::before {
  content: counter(pwStep);
  position: absolute;
  top: calc(var(--pw-sp-md) * -0.5);
  left: var(--pw-sp-lg);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: var(--pw-fs-sm);
  color: var(--pw-btn-ink);
  background: var(--pw-accent);
  border-radius: 50%;
}

.pw-steps__item h3 {
  font-size: var(--pw-fs-md);
  margin-bottom: var(--pw-sp-sm);
}

.pw-steps__item p {
  color: var(--pw-muted);
  font-size: var(--pw-fs-sm);
}

/* ──────────────────────────────────────────────────────────────
   17. PERKS
   ────────────────────────────────────────────────────────────── */

.pw-perks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--pw-sp-lg);
}

.pw-perks__card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-xl) var(--pw-sp-lg);
  text-align: center;
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium);
}

.pw-perks__card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--pw-shadow-card-hover);
}

.pw-perks__card__icon {
  font-size: 2rem;
  margin-bottom: var(--pw-sp-md);
}

.pw-perks__card h3 {
  font-size: var(--pw-fs-md);
  margin-bottom: var(--pw-sp-sm);
}

.pw-perks__card p {
  color: var(--pw-muted);
  font-size: var(--pw-fs-sm);
}

/* ──────────────────────────────────────────────────────────────
   18. SCREENSHOTS / GALLERY
   ────────────────────────────────────────────────────────────── */

.pw-screenshots {
  padding-block: var(--pw-sp-xxl);
}

.pw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--pw-sp-md);
}

.pw-gallery__item {
  border-radius: var(--pw-radius);
  overflow: hidden;
  border: 1px solid var(--pw-border);
  transition:
    transform var(--pw-ease-medium),
    box-shadow var(--pw-ease-medium);
}

.pw-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--pw-shadow-card-hover);
}

.pw-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   19. FORUM
   ────────────────────────────────────────────────────────────── */

.pw-forum {
  display: grid;
  gap: var(--pw-sp-md);
}

.pw-forum__post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--pw-sp-lg);
  align-items: start;
  padding: var(--pw-sp-lg);
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  transition:
    border-color var(--pw-ease-quick),
    box-shadow var(--pw-ease-quick);
}

.pw-forum__post:hover {
  border-color: var(--pw-border-strong);
  box-shadow: var(--pw-shadow-card);
}

.pw-forum__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pw-border);
}

.pw-forum__author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-sm);
}

.pw-forum__time {
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
}

.pw-forum__text {
  font-size: var(--pw-fs-sm);
  color: var(--pw-muted);
  line-height: 1.6;
  margin-top: var(--pw-sp-xs);
}

.pw-forum__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--pw-sp-xs);
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
}

/* ──────────────────────────────────────────────────────────────
   20. FAQ (DETAILS/SUMMARY)
   ────────────────────────────────────────────────────────────── */

.pw-faq-list {
  display: grid;
  gap: var(--pw-sp-md);
  max-width: 800px;
  margin-inline: auto;
}

.pw-faq-item {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow: hidden;
  transition: border-color var(--pw-ease-quick);
}

.pw-faq-item[open] {
  border-color: var(--pw-border-strong);
}

.pw-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pw-sp-lg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-base);
  cursor: pointer;
  color: var(--pw-ink);
  list-style: none;
  user-select: none;
  min-height: 44px;
  transition: color var(--pw-ease-quick);
}

.pw-faq-item summary::-webkit-details-marker {
  display: none;
}

.pw-faq-item summary::after {
  content: '+';
  font-size: 1.4em;
  color: var(--pw-accent);
  font-weight: 400;
  transition: transform var(--pw-ease-medium);
  flex-shrink: 0;
  margin-left: var(--pw-sp-md);
}

.pw-faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.pw-faq-item summary:hover {
  color: var(--pw-accent);
}

.pw-faq-item__body {
  padding: 0 var(--pw-sp-lg) var(--pw-sp-lg);
  color: var(--pw-muted);
  font-size: var(--pw-fs-sm);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────
   21. BREADCRUMB
   ────────────────────────────────────────────────────────────── */

.pw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pw-sp-xs);
  padding: var(--pw-sp-md) 0;
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
}

.pw-breadcrumb a {
  color: var(--pw-muted);
  transition: color var(--pw-ease-quick);
}

.pw-breadcrumb a:hover {
  color: var(--pw-accent);
}

.pw-breadcrumb__sep {
  color: rgba(152, 168, 189, 0.4);
  margin-inline: 0.15em;
}

.pw-breadcrumb [aria-current="page"] {
  color: var(--pw-ink);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────
   22. CHANNEL HERO
   ────────────────────────────────────────────────────────────── */

.pw-ch-hero {
  position: relative;
  padding: var(--pw-sp-xxl) var(--pw-sp-lg);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(112, 203, 219, 0.06) 0%, transparent 70%),
    var(--pw-surface);
  border-bottom: 1px solid var(--pw-border);
}

.pw-ch-hero__title {
  font-size: var(--pw-fs-xl);
  margin-bottom: var(--pw-sp-md);
}

.pw-ch-hero__desc {
  color: var(--pw-muted);
  font-size: var(--pw-fs-base);
  max-width: 600px;
  margin-inline: auto;
}

/* ──────────────────────────────────────────────────────────────
   23. TABLE OF CONTENTS
   ────────────────────────────────────────────────────────────── */

.pw-toc {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-lg);
}

.pw-toc__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-sm);
  margin-bottom: var(--pw-sp-md);
  color: var(--pw-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pw-toc ol {
  list-style: decimal inside;
  display: grid;
  gap: var(--pw-sp-sm);
}

.pw-toc a {
  font-size: var(--pw-fs-sm);
  color: var(--pw-muted);
}

.pw-toc a:hover {
  color: var(--pw-accent);
}

/* ──────────────────────────────────────────────────────────────
   24. SEARCH
   ────────────────────────────────────────────────────────────── */

.pw-search-input {
  width: 100%;
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  font-family: 'Ubuntu', sans-serif;
  font-size: var(--pw-fs-base);
  color: var(--pw-ink);
  background: var(--pw-surface);
  border: 2px solid var(--pw-border);
  border-radius: var(--pw-radius);
  outline: none;
  transition:
    border-color var(--pw-ease-quick),
    box-shadow var(--pw-ease-quick);
  min-height: 48px;
}

.pw-search-input::placeholder {
  color: var(--pw-muted);
}

.pw-search-input:focus {
  border-color: var(--pw-accent);
  box-shadow: var(--pw-focus-ring);
}

.pw-search-results {
  display: grid;
  gap: var(--pw-sp-md);
  margin-top: var(--pw-sp-lg);
}

/* ─���────────────────────────────────────────────────────────────
   25. HELP SECTION
   ────────────────────────────────────────────────────────────── */

.pw-help-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--pw-sp-xl);
  align-items: start;
}

.pw-help-section__sidebar {
  position: sticky;
  top: calc(var(--pw-header-h) + var(--pw-sp-lg));
}

.pw-help-section__content {
  min-width: 0;
}

/* ──────────────────────────────────────────────────────────────
   26. BYLINE / SOURCE BOX
   ────────────────────────────────────────────────────────────── */

.pw-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pw-sp-md);
  padding: var(--pw-sp-md) 0;
  border-bottom: 1px solid var(--pw-border);
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
}

.pw-byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.pw-byline__author {
  font-weight: 700;
  color: var(--pw-ink);
}

.pw-src-box {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-lg);
  margin-block: var(--pw-sp-lg);
}

.pw-src-box__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-xs);
  color: var(--pw-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--pw-sp-sm);
}

/* ──────────────────────────────────────────────────────────────
   27. STORY IMAGES
   ────────────────────────────────────────────────────────────── */

.pw-story-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--pw-sp-md);
  margin-block: var(--pw-sp-lg);
}

.pw-story-images img {
  width: 100%;
  border-radius: var(--pw-radius);
  border: 1px solid var(--pw-border);
}

/* ──────────────────────────────────────────────────────────────
   28. CODE BLOCKS (PROSE)
   ────────────────────────────────────────────────────────────── */

pre:not(.pw-code-panel pre) {
  background: #0b0e13;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding: var(--pw-sp-lg);
  overflow-x: auto;
  margin-block: var(--pw-sp-md);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  background: rgba(112, 203, 219, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--pw-accent);
}

/* ──────────────────────────────────────────────────────────────
   29. FOOTER
   ────────────────────────────────────────────────────────────── */

.pw-footer {
  background: var(--pw-surface);
  border-top: 1px solid var(--pw-border);
  padding-block: var(--pw-sp-xxl) var(--pw-sp-xl);
}

.pw-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--pw-sp-xl);
  max-width: var(--pw-max-w);
  margin-inline: auto;
  padding-inline: var(--pw-sp-lg);
}

.pw-footer__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--pw-fs-sm);
  color: var(--pw-ink);
  margin-bottom: var(--pw-sp-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pw-footer__links {
  display: grid;
  gap: var(--pw-sp-sm);
}

.pw-footer__links a {
  color: var(--pw-muted);
  font-size: var(--pw-fs-sm);
  transition: color var(--pw-ease-quick);
}

.pw-footer__links a:hover {
  color: var(--pw-accent);
}

.pw-footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--pw-fs-xs);
  color: var(--pw-muted);
  padding-top: var(--pw-sp-xl);
  border-top: 1px solid var(--pw-border);
  margin-top: var(--pw-sp-lg);
}

/* ──────────────────────────────────────────────────────────────
   30. MOBILE BANNER (STICKY BOTTOM)
   ────────────────────────────────────────────────────────────── */

.pw-mobile-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  background: var(--pw-surface-overlay);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-top: 1px solid var(--pw-border);
  justify-content: center;
  gap: var(--pw-sp-md);
}

/* ──────────────────────────────────────────────────────────────
   31. PROSE / ARTICLE BODY
   ────────────────────────────────────────────────────────────── */

.pw-prose h2 {
  font-size: var(--pw-fs-lg);
  margin-top: var(--pw-sp-xxl);
  margin-bottom: var(--pw-sp-md);
}

.pw-prose h3 {
  font-size: var(--pw-fs-md);
  margin-top: var(--pw-sp-xl);
  margin-bottom: var(--pw-sp-sm);
}

.pw-prose p {
  margin-bottom: var(--pw-sp-md);
  line-height: 1.75;
}

.pw-prose ul,
.pw-prose ol {
  margin-bottom: var(--pw-sp-md);
  padding-left: var(--pw-sp-lg);
}

.pw-prose ul {
  list-style: disc;
}

.pw-prose ol {
  list-style: decimal;
}

.pw-prose li {
  margin-bottom: var(--pw-sp-sm);
  line-height: 1.7;
  color: var(--pw-muted);
}

.pw-prose a {
  color: var(--pw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pw-prose img {
  border-radius: var(--pw-radius);
  margin-block: var(--pw-sp-lg);
}

.pw-prose blockquote {
  border-left: 4px solid var(--pw-accent);
  padding: var(--pw-sp-md) var(--pw-sp-lg);
  margin-block: var(--pw-sp-lg);
  background: rgba(112, 203, 219, 0.04);
  border-radius: 0 var(--pw-radius) var(--pw-radius) 0;
  color: var(--pw-muted);
  font-style: italic;
}

.pw-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--pw-sp-lg);
}

.pw-prose th,
.pw-prose td {
  padding: var(--pw-sp-sm) var(--pw-sp-md);
  border: 1px solid var(--pw-border);
  font-size: var(--pw-fs-sm);
  text-align: left;
}

.pw-prose th {
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--pw-accent);
}

/* ──────────────────────────────────────────────────────────────
   32. RESPONSIVE — TABLET / DESKTOP ≥ 768px
   ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* header */
  .pw-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .pw-nav {
    display: none;
    position: fixed;
    inset: var(--pw-header-h) 0 0 0;
    background: var(--pw-surface-overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 899;
    padding: var(--pw-sp-xl) var(--pw-sp-lg);
    overflow-y: auto;
  }

  .pw-nav.is-open {
    display: block;
  }

  .pw-nav-menu {
    flex-direction: column;
    gap: var(--pw-sp-lg);
  }

  .pw-nav-link {
    font-size: var(--pw-fs-md);
  }

  .pw-nav-toggle {
    display: flex;
  }

  /* hero */
  .pw-hero {
    min-height: auto;
    padding-block: var(--pw-sp-xxl);
  }

  .pw-hero__cta {
    flex-direction: column;
    align-items: center;
  }

  /* grids → single col */
  .pw-steps,
  .pw-perks,
  .pw-editorPicks,
  .pw-articles,
  .pw-gallery,
  .pw-gameGrid {
    grid-template-columns: 1fr;
  }

  /* forum post */
  .pw-forum__post {
    grid-template-columns: auto 1fr;
  }

  .pw-forum__stats {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--pw-sp-md);
  }

  /* help section */
  .pw-help-section {
    grid-template-columns: 1fr;
  }

  .pw-help-section__sidebar {
    position: static;
  }

  /* mobile banner */
  .pw-mobile-banner {
    display: flex;
  }

  /* add bottom padding for mobile banner */
  .pw-footer {
    padding-bottom: calc(var(--pw-sp-xxl) + 72px);
  }

  /* compare table responsive hint */
  .pw-compare::before {
    content: '← cuộn ngang để xem thêm →';
    display: block;
    padding: var(--pw-sp-sm) var(--pw-sp-md);
    font-size: var(--pw-fs-xs);
    color: var(--pw-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--pw-border);
  }
}

/* ──────────────────────────────────────────────────────────────
   33. RESPONSIVE — SMALL ≤ 600px
   ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  :root {
    --pw-radius: 12px;
  }

  .pw-wrap {
    padding-inline: var(--pw-sp-md);
  }

  .pw-section {
    padding-block: var(--pw-sp-xl);
  }

  .pw-section__title {
    font-size: var(--pw-fs-lg);
  }

  .pw-hero__perks {
    flex-direction: column;
    align-items: center;
  }

  .pw-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pw-story-images {
    grid-template-columns: 1fr;
  }

  .pw-code-tabs__nav {
    gap: 0;
  }

  .pw-code-tab {
    padding: var(--pw-sp-sm) var(--pw-sp-md);
    font-size: calc(var(--pw-fs-xs) * 0.9);
  }

  .pw-byline {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ──────────────────────────────────────────────────────────────
   34. PRINT
   ────────────────────────────────────────────────────────────── */

@media print {
  .pw-header,
  .pw-mobile-banner,
  .pw-particles,
  .pw-nav-toggle {
    display: none !important;
  }

  body.pw-body {
    background: #fff;
    color: #111;
  }

  .pw-card,
  .pw-game-card,
  .pw-article-card,
  .pw-faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ──────────────────────────────────────────────────────────────
   35. UTILITY CLASSES
   ────────────────────────────────────────────────────────────── */

.pw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.pw-text-center { text-align: center; }
.pw-text-muted { color: var(--pw-muted); }
.pw-text-accent { color: var(--pw-accent); }
.pw-mt-lg { margin-top: var(--pw-sp-lg); }
.pw-mt-xl { margin-top: var(--pw-sp-xl); }
.pw-mb-lg { margin-bottom: var(--pw-sp-lg); }
.pw-mb-xl { margin-bottom: var(--pw-sp-xl); }
.pw-gap-md { gap: var(--pw-sp-md); }
.pw-gap-lg { gap: var(--pw-sp-lg); }