/* ======================================================================
   WW5 / ww5game-apk.com content skin for Grav Quark2
   Scope: .ww5x-* only. Native Quark2 header/navigation/footer are untouched.
   Supports Quark2 html[data-theme="light"] and html[data-theme="dark"].
   ====================================================================== */

:root {
  --ww5x-accent: #e24b2f;
  --ww5x-accent-2: #ff8a2a;
  --ww5x-accent-soft: #fff0ea;
  --ww5x-danger: #b42318;
  --ww5x-danger-soft: #fff1f0;
  --ww5x-info: #185aa6;
  --ww5x-info-soft: #edf6ff;
  --ww5x-text: #24272d;
  --ww5x-title: #111318;
  --ww5x-muted: #656b76;
  --ww5x-surface: #ffffff;
  --ww5x-surface-2: #f6f7f9;
  --ww5x-surface-3: #f0f2f5;
  --ww5x-line: #e1e4e8;
  --ww5x-line-strong: #ced3da;
  --ww5x-shadow: 0 18px 54px rgba(24, 28, 35, .09);
  --ww5x-shadow-soft: 0 8px 24px rgba(24, 28, 35, .06);
  --ww5x-hero-bg: #181114;
  --ww5x-hero-panel: #24171a;
  --ww5x-hero-text: #fffaf7;
  --ww5x-hero-muted: #e7d9d4;
  --ww5x-radius: 18px;
  --ww5x-radius-sm: 12px;
  --ww5x-content: 1160px;
}

html[data-theme="light"] {
  --ww5x-text: var(--q2-text, #24272d);
  --ww5x-title: var(--q2-text-strong, #111318);
  --ww5x-muted: var(--q2-text-muted, #656b76);
  --ww5x-surface: var(--q2-bg-elev, #ffffff);
  --ww5x-surface-2: var(--q2-bg-muted, #f6f7f9);
  --ww5x-surface-3: #eef1f4;
  --ww5x-line: var(--q2-divider, #e1e4e8);
  --ww5x-line-strong: #cfd4da;
  --ww5x-accent-soft: #fff0ea;
  --ww5x-danger-soft: #fff1f0;
  --ww5x-info-soft: #edf6ff;
}

html[data-theme="dark"] {
  --ww5x-text: var(--q2-text, #d9dde4);
  --ww5x-title: var(--q2-text-strong, #f8fafc);
  --ww5x-muted: var(--q2-text-muted, #aab0ba);
  --ww5x-surface: var(--q2-bg-elev, #1b1e23);
  --ww5x-surface-2: var(--q2-bg-muted, #15181c);
  --ww5x-surface-3: #22262c;
  --ww5x-line: var(--q2-divider, rgba(255,255,255,.12));
  --ww5x-line-strong: rgba(255,255,255,.2);
  --ww5x-accent-soft: #34201b;
  --ww5x-danger-soft: #321d1d;
  --ww5x-info-soft: #14263a;
  --ww5x-shadow: 0 18px 54px rgba(0,0,0,.28);
  --ww5x-shadow-soft: 0 8px 24px rgba(0,0,0,.22);
  --ww5x-hero-bg: #0f0b0d;
  --ww5x-hero-panel: #1b1114;
  --ww5x-hero-muted: #d9ccc8;
}

/* ---------- shared layout ---------- */
.ww5x-hero,
.ww5x-feature-media,
.ww5x-section,
.ww5x-grid,
.ww5x-alert,
.ww5x-editorial,
.ww5x-finalcta,
.ww5x-pagehead,
.ww5x-guidegrid,
.ww5x-article {
  width: min(var(--ww5x-content), calc(100% - 34px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.ww5x-section,
.ww5x-article,
.ww5x-pagehead,
.ww5x-guidegrid,
.ww5x-editorial {
  color: var(--ww5x-text);
}

.ww5x-section a,
.ww5x-article a,
.ww5x-guidegrid a,
.ww5x-pagehead a {
  color: var(--ww5x-accent);
  text-underline-offset: 3px;
}

.ww5x-section p,
.ww5x-article p,
.ww5x-pagehead p,
.ww5x-guidegrid p {
  line-height: 1.78;
}

.ww5x-section h2,
.ww5x-section h3,
.ww5x-article h2,
.ww5x-article h3,
.ww5x-pagehead h1,
.ww5x-pagehead h2,
.ww5x-guidegrid h2,
.ww5x-editorial h2,
.ww5x-finalcta h2 {
  color: var(--ww5x-title);
}

.ww5x-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ww5x-accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ww5x-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

/* ---------- home hero ---------- */
.ww5x-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 82% 4%, rgba(255,122,32,.18), transparent 32%),
    linear-gradient(135deg, var(--ww5x-hero-bg) 0%, #291316 58%, #381711 100%);
  box-shadow: var(--ww5x-shadow);
}

.ww5x-hero__copy {
  padding: clamp(34px, 5.8vw, 72px);
}

.ww5x-hero .ww5x-kicker { color: #ff9b68; }

.ww5x-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ww5x-hero-text);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.ww5x-lead {
  max-width: 840px;
  margin: 24px 0 0;
  color: var(--ww5x-hero-muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.ww5x-lead strong { color: #ffffff; }

.ww5x-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 30px;
}

.ww5x-textlink {
  color: #ffd7c5 !important;
  font-weight: 750;
  text-decoration: none !important;
}
.ww5x-textlink:hover { text-decoration: underline !important; }

.ww5x-answerstrip {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 20px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #d9cac5;
  font-size: .86rem;
}
.ww5x-answerstrip strong { color: #ffffff; }

.ww5x-hero__note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 48px);
  border-left: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.19);
  color: #e8dbd7;
}

.ww5x-note__label {
  margin-bottom: 16px;
  color: #ff9b68;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ww5x-hero__note h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.18;
}

.ww5x-hero__note ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ww5note;
}
.ww5x-hero__note li {
  counter-increment: ww5note;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  line-height: 1.5;
}
.ww5x-hero__note li::before {
  content: counter(ww5note, decimal-leading-zero);
  color: #ff9b68;
  font-size: .72rem;
  font-weight: 900;
  padding-top: 3px;
}

/* ---------- supplied hero/banner image ---------- */
.ww5x-feature-media {
  margin-top: 18px;
  margin-bottom: 12px;
}
.ww5x-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--ww5x-line);
  box-shadow: var(--ww5x-shadow-soft);
}
.ww5x-feature-media figcaption {
  margin-top: 9px;
  color: var(--ww5x-muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* ---------- buttons ---------- */
.ww5x-btn,
a.ww5x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ww5x-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.ww5x-btn--primary {
  background: linear-gradient(135deg, var(--ww5x-accent), var(--ww5x-accent-2));
  color: #fff !important;
  box-shadow: 0 9px 24px rgba(226,75,47,.22);
}
.ww5x-btn--light {
  background: #ffffff;
  color: #231416 !important;
}
.ww5x-btn:focus-visible { outline: 3px solid rgba(255,138,42,.4); outline-offset: 3px; }

/* ---------- normal section ---------- */
.ww5x-section {
  padding: clamp(42px, 6vw, 70px) 0;
}
.ww5x-section--intro { max-width: 1000px; }

.ww5x-section__heading {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}
.ww5x-section__heading > span {
  padding-top: 7px;
  color: var(--ww5x-accent);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ww5x-section__heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ww5x-prose { max-width: 900px; }
.ww5x-prose p { margin: 0 0 18px; }
.ww5x-prose h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
}

/* ---------- cards/grids ---------- */
.ww5x-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.ww5x-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ww5x-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }

.ww5x-card {
  position: relative;
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-surface);
  color: var(--ww5x-text);
  box-shadow: var(--ww5x-shadow-soft);
}
.ww5x-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg,var(--ww5x-accent),var(--ww5x-accent-2));
}
.ww5x-card__num {
  display: block;
  margin-bottom: 24px;
  color: var(--ww5x-accent);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.ww5x-card h3 { margin: 0 0 10px; font-size: 1.14rem; }
.ww5x-card p { margin: 0 0 14px; color: var(--ww5x-muted); line-height: 1.7; }
.ww5x-card a { font-size: .88rem; font-weight: 800; text-decoration: none; }
.ww5x-card a:hover { text-decoration: underline; }

/* ---------- split layouts ---------- */
.ww5x-split {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.55fr);
  gap: 38px;
  align-items: start;
}
.ww5x-split--reverse { grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); }

.ww5x-sidebox {
  padding: 26px;
  border: 1px solid var(--ww5x-line);
  border-top: 4px solid var(--ww5x-accent);
  background: var(--ww5x-surface-2);
  color: var(--ww5x-text);
}
.ww5x-sidebox > span {
  display: block;
  margin-bottom: 16px;
  color: var(--ww5x-title);
  font-size: .92rem;
  font-weight: 850;
}
.ww5x-sidebox ul { margin: 0; padding-left: 18px; }
.ww5x-sidebox li { margin: 8px 0; line-height: 1.55; }
.ww5x-sidebox p { margin: 0 0 20px; }
.ww5x-sidebox--accent {
  border-color: rgba(226,75,47,.25);
  background: var(--ww5x-accent-soft);
}

/* ---------- checklists ---------- */
.ww5x-checklist {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.ww5x-checklist li {
  position: relative;
  margin: 0;
  padding: 15px 0 15px 32px;
  border-bottom: 1px solid var(--ww5x-line);
  color: var(--ww5x-text);
  line-height: 1.7;
}
.ww5x-checklist li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ww5x-accent-soft);
  color: var(--ww5x-accent);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  line-height: 20px;
}
.ww5x-checklist--numbered { counter-reset: ww5check; }
.ww5x-checklist--numbered li {
  counter-increment: ww5check;
  padding-left: 46px;
}
.ww5x-checklist--numbered li::before {
  content: counter(ww5check, decimal-leading-zero);
  width: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--ww5x-accent);
  font-size: .75rem;
  text-align: left;
}

.ww5x-bullets { padding-left: 22px; }
.ww5x-bullets li { margin: 8px 0; line-height: 1.7; }

/* ---------- numbered troubleshooting steps ---------- */
.ww5x-steps {
  border-top: 1px solid var(--ww5x-line);
}
.ww5x-steps article {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--ww5x-line);
}
.ww5x-steps article > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(226,75,47,.34);
  color: var(--ww5x-accent);
  font-size: .78rem;
  font-weight: 900;
}
.ww5x-steps h3 { margin: 2px 0 8px; font-size: 1.18rem; }
.ww5x-steps p { margin: 0; color: var(--ww5x-muted); }

/* ---------- alerts ---------- */
.ww5x-alert {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid var(--ww5x-line);
}
.ww5x-alert__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 950;
}
.ww5x-alert h2,
.ww5x-alert h3 { margin: 0 0 8px; font-size: 1.25rem; }
.ww5x-alert p { margin: 0 0 8px; line-height: 1.72; }
.ww5x-alert p:last-child { margin-bottom: 0; }
.ww5x-alert--danger {
  border-color: rgba(180,35,24,.28);
  background: var(--ww5x-danger-soft);
}
.ww5x-alert--danger .ww5x-alert__icon { background: var(--ww5x-danger); color: #fff; }
.ww5x-alert--danger h2,
.ww5x-alert--danger h3 { color: var(--ww5x-title); }
.ww5x-alert--info {
  border-color: rgba(24,90,166,.25);
  background: var(--ww5x-info-soft);
}
.ww5x-alert--info .ww5x-alert__icon { background: var(--ww5x-info); color: #fff; }

/* ---------- tables ---------- */
.ww5x-tablewrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 12px;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-surface);
}
.ww5x-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  color: var(--ww5x-text);
  font-size: .93rem;
}
.ww5x-table th,
.ww5x-table td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--ww5x-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.58;
}
.ww5x-table th {
  background: var(--ww5x-surface-2);
  color: var(--ww5x-title);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ww5x-table tr:last-child td { border-bottom: 0; }
.ww5x-table tbody tr:hover td { background: var(--ww5x-surface-2); }
.ww5x-table--faq td:first-child { width: 31%; color: var(--ww5x-title); font-weight: 780; }
.ww5x-caption { margin-top: 12px; color: var(--ww5x-muted); font-size: .88rem; }

/* ---------- status flow ---------- */
.ww5x-statusflow {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin: 26px 0;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-line);
}
.ww5x-statusflow > div {
  position: relative;
  min-height: 170px;
  padding: 24px;
  background: var(--ww5x-surface);
}
.ww5x-statusflow > div:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 25px;
  right: -10px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ww5x-accent);
  color: #fff;
  font-size: .72rem;
  text-align: center;
  line-height: 20px;
}
.ww5x-statusflow span {
  display: block;
  margin-bottom: 24px;
  color: var(--ww5x-accent);
  font-size: .75rem;
  font-weight: 900;
}
.ww5x-statusflow strong { display: block; color: var(--ww5x-title); }
.ww5x-statusflow p { margin: 8px 0 0; color: var(--ww5x-muted); line-height: 1.55; }

/* ---------- inline CTA ---------- */
.ww5x-inline-cta {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--ww5x-accent);
  background: var(--ww5x-surface-2);
  color: var(--ww5x-text);
}
.ww5x-inline-cta strong { color: var(--ww5x-title); }
.ww5x-inline-cta span { color: var(--ww5x-muted); }
.ww5x-inline-cta a { font-weight: 850; text-decoration: none; }

/* ---------- editorial block ---------- */
.ww5x-editorial {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr);
  gap: 34px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 34px;
  border-top: 1px solid var(--ww5x-line-strong);
  border-bottom: 1px solid var(--ww5x-line-strong);
  background: var(--ww5x-surface-2);
}
.ww5x-editorial > div > span {
  display: block;
  color: var(--ww5x-accent);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ww5x-editorial h2 { margin: 8px 0 10px; font-size: 1.65rem; }
.ww5x-editorial p { margin: 0; line-height: 1.72; }
.ww5x-editorial__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 26px;
  border-left: 1px solid var(--ww5x-line);
}
.ww5x-editorial__meta strong { color: var(--ww5x-title); font-size: 1.08rem; }
.ww5x-editorial__meta span { margin-top: 6px !important; color: var(--ww5x-muted) !important; font-size: .88rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- FAQ ---------- */
.ww5x-faq {
  border-top: 1px solid var(--ww5x-line);
}
.ww5x-faq details {
  border-bottom: 1px solid var(--ww5x-line);
  background: transparent;
}
.ww5x-faq summary {
  position: relative;
  padding: 19px 42px 19px 0;
  color: var(--ww5x-title);
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}
.ww5x-faq summary::-webkit-details-marker { display: none; }
.ww5x-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  color: var(--ww5x-accent);
  font-size: 1.5rem;
  font-weight: 500;
}
.ww5x-faq details[open] summary::after { content: "−"; }
.ww5x-faq details p { margin: 0; padding: 0 42px 20px 0; color: var(--ww5x-muted); }

/* ---------- inner page header ---------- */
.ww5x-pagehead {
  position: relative;
  margin-top: 28px;
  padding: clamp(34px, 5.6vw, 68px);
  overflow: hidden;
  border: 1px solid var(--ww5x-line);
  background:
    linear-gradient(110deg, var(--ww5x-surface) 0%, var(--ww5x-surface) 62%, var(--ww5x-accent-soft) 100%);
  box-shadow: var(--ww5x-shadow-soft);
}
.ww5x-pagehead::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(226,75,47,.08);
  border-radius: 50%;
  pointer-events: none;
}
.ww5x-pagehead > * { position: relative; z-index: 1; }
.ww5x-pagehead h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.ww5x-pagehead p {
  max-width: 850px;
  margin: 22px 0 0;
  color: var(--ww5x-muted);
  font-size: 1.03rem;
}
.ww5x-pagehead .ww5x-btn { margin-top: 24px; }
.ww5x-pagehead--plain { background: var(--ww5x-surface); }
.ww5x-pagehead--plain::after { opacity: .5; }
.ww5x-pagehead--download { background: linear-gradient(110deg,var(--ww5x-surface) 0%,var(--ww5x-surface) 56%,var(--ww5x-info-soft) 100%); }
.ww5x-pagehead--guides { background: linear-gradient(110deg,var(--ww5x-surface) 0%,var(--ww5x-surface) 55%,var(--ww5x-accent-soft) 100%); }

/* ---------- guides listing ---------- */
.ww5x-guidegrid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 26px;
}
.ww5x-guidecard {
  padding: 30px;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-surface);
  box-shadow: var(--ww5x-shadow-soft);
}
.ww5x-guidecard__tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ww5x-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
}
.ww5x-guidecard h2 { margin: 0 0 12px; font-size: 1.55rem; line-height: 1.2; }
.ww5x-guidecard h2 a { color: var(--ww5x-title); text-decoration: none; }
.ww5x-guidecard h2 a:hover { color: var(--ww5x-accent); }
.ww5x-guidecard p { margin: 0 0 18px; color: var(--ww5x-muted); }
.ww5x-guidecard ul { margin: 0 0 20px; padding-left: 20px; color: var(--ww5x-text); }
.ww5x-guidecard li { margin: 6px 0; }
.ww5x-readmore { font-weight: 850; text-decoration: none; }

/* ---------- link list ---------- */
.ww5x-linklist {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border-top: 1px solid var(--ww5x-line);
  border-left: 1px solid var(--ww5x-line);
}
.ww5x-linklist a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 24px;
  border-right: 1px solid var(--ww5x-line);
  border-bottom: 1px solid var(--ww5x-line);
  background: var(--ww5x-surface);
  text-decoration: none;
}
.ww5x-linklist strong { color: var(--ww5x-title); }
.ww5x-linklist span { color: var(--ww5x-muted); font-size: .9rem; }
.ww5x-linklist a:hover { background: var(--ww5x-surface-2); }

/* ---------- article pages ---------- */
.ww5x-article {
  max-width: 960px;
  padding-top: 28px;
  padding-bottom: 60px;
}
.ww5x-articlehead {
  margin-bottom: 42px;
  padding: clamp(32px,5vw,56px);
  border-left: 5px solid var(--ww5x-accent);
  background: var(--ww5x-surface-2);
}
.ww5x-articlehead h1 {
  margin: 0;
  color: var(--ww5x-title);
  font-size: clamp(2.05rem,4.4vw,3.75rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.ww5x-articlehead p { margin: 20px 0 0; color: var(--ww5x-muted); font-size: 1.02rem; }
.ww5x-articlehead strong { color: var(--ww5x-title); }

.ww5x-article > h2 {
  margin: 48px 0 16px;
  padding-top: 5px;
  font-size: clamp(1.55rem,3vw,2.25rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.ww5x-article > h3 { margin: 30px 0 10px; font-size: 1.25rem; }
.ww5x-article > p { margin: 0 0 18px; }
.ww5x-article > ul { padding-left: 22px; }
.ww5x-article > ul li { margin: 9px 0; line-height: 1.65; }
.ww5x-article .ww5x-grid,
.ww5x-article .ww5x-alert,
.ww5x-article .ww5x-tablewrap,
.ww5x-article .ww5x-statusflow { width: 100%; }

/* ---------- withdrawal proof grid ---------- */
.ww5x-proofgrid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  margin: 24px 0;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-line);
}
.ww5x-proofgrid > div { padding: 22px; background: var(--ww5x-surface); }
.ww5x-proofgrid strong { display: block; margin-bottom: 6px; color: var(--ww5x-title); }
.ww5x-proofgrid span { color: var(--ww5x-muted); font-size: .9rem; line-height: 1.5; }

.ww5x-messagebox {
  margin: 20px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--ww5x-info);
  background: var(--ww5x-info-soft);
}
.ww5x-messagebox p { margin: 0; }

/* ---------- article CTA/post nav ---------- */
.ww5x-articlecta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 46px;
  padding: 26px;
  border: 1px solid var(--ww5x-line);
  background: var(--ww5x-surface-2);
}
.ww5x-articlecta strong { display: block; color: var(--ww5x-title); }
.ww5x-articlecta span { display: block; margin-top: 4px; color: var(--ww5x-muted); }

.ww5x-postnav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ww5x-line);
}
.ww5x-postnav a { font-size: .88rem; font-weight: 800; text-decoration: none; }

/* ---------- final CTA ---------- */
.ww5x-finalcta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 40px;
  padding: clamp(28px,4.5vw,46px);
  background:
    radial-gradient(circle at 85% 0%, rgba(255,138,42,.22), transparent 34%),
    linear-gradient(135deg,#241114,#481a12);
  color: #f4e5df;
}
.ww5x-finalcta > div > span {
  display: block;
  margin-bottom: 8px;
  color: #ff9b68;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.ww5x-finalcta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.6rem,3vw,2.3rem); }
.ww5x-finalcta p { margin: 0; max-width: 760px; color: #e7d8d3; line-height: 1.65; }

/* ---------- details for dark theme ---------- */
html[data-theme="dark"] .ww5x-card,
html[data-theme="dark"] .ww5x-guidecard,
html[data-theme="dark"] .ww5x-tablewrap,
html[data-theme="dark"] .ww5x-statusflow > div,
html[data-theme="dark"] .ww5x-proofgrid > div,
html[data-theme="dark"] .ww5x-linklist a,
html[data-theme="dark"] .ww5x-pagehead {
  box-shadow: none;
}

html[data-theme="dark"] .ww5x-pagehead::after {
  border-color: rgba(255,138,42,.08);
}

html[data-theme="dark"] .ww5x-btn--primary {
  color: #fff !important;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .ww5x-hero { grid-template-columns: 1fr; }
  .ww5x-hero__note { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .ww5x-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ww5x-split,
  .ww5x-split--reverse { grid-template-columns: 1fr; }
  .ww5x-statusflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ww5x-statusflow > div:nth-child(2)::after { display: none; }
  .ww5x-guidegrid { grid-template-columns: 1fr; }
  .ww5x-proofgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .ww5x-hero,
  .ww5x-feature-media,
  .ww5x-section,
  .ww5x-grid,
  .ww5x-alert,
  .ww5x-editorial,
  .ww5x-finalcta,
  .ww5x-pagehead,
  .ww5x-guidegrid,
  .ww5x-article {
    width: min(100% - 22px, var(--ww5x-content));
  }

  .ww5x-hero__copy { padding: 30px 24px; }
  .ww5x-hero h1 { font-size: clamp(2.15rem,11vw,3.35rem); }
  .ww5x-answerstrip { grid-template-columns: 1fr; }
  .ww5x-hero__note { padding: 28px 24px; }

  .ww5x-feature-media img { min-height: 200px; object-fit: cover; }

  .ww5x-section { padding: 38px 0; }
  .ww5x-section__heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
  .ww5x-section__heading > span { padding-top: 0; }

  .ww5x-grid--4,
  .ww5x-grid--2 { grid-template-columns: 1fr; }

  .ww5x-steps article { grid-template-columns: 50px minmax(0,1fr); gap: 12px; }
  .ww5x-steps article > b { width: 42px; height: 42px; }

  .ww5x-alert { grid-template-columns: 1fr; padding: 22px; }
  .ww5x-alert__icon { width: 36px; height: 36px; }

  .ww5x-statusflow { grid-template-columns: 1fr; }
  .ww5x-statusflow > div:not(:last-child)::after { display: none; }
  .ww5x-statusflow > div { min-height: 0; }

  .ww5x-inline-cta { grid-template-columns: 1fr; }

  .ww5x-editorial { grid-template-columns: 1fr; padding: 26px 22px; }
  .ww5x-editorial__meta { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--ww5x-line); }

  .ww5x-pagehead { padding: 32px 24px; }
  .ww5x-pagehead h1 { font-size: clamp(2.05rem,10vw,3rem); }

  .ww5x-linklist { grid-template-columns: 1fr; }

  .ww5x-articlehead { padding: 28px 22px; }
  .ww5x-articlehead h1 { font-size: clamp(2rem,10vw,3rem); }

  .ww5x-proofgrid { grid-template-columns: 1fr; }

  .ww5x-articlecta,
  .ww5x-finalcta { grid-template-columns: 1fr; }
  .ww5x-finalcta .ww5x-btn { justify-self: start; }
  .ww5x-postnav { flex-direction: column; }

  .ww5x-table { min-width: 650px; }
}

@media (max-width: 430px) {
  .ww5x-hero,
  .ww5x-pagehead,
  .ww5x-card,
  .ww5x-guidecard,
  .ww5x-alert,
  .ww5x-editorial,
  .ww5x-finalcta,
  .ww5x-articlehead,
  .ww5x-articlecta,
  .ww5x-sidebox {
    border-radius: 0;
  }
  .ww5x-btn { width: 100%; box-sizing: border-box; }
  .ww5x-hero__actions { align-items: stretch; }
  .ww5x-feature-media { width: 100%; }
  .ww5x-feature-media figcaption { padding: 0 11px; }
}

/* ---------- homepage game-provider rail ---------- */
.ww5x-providers {
  width: min(var(--ww5x-content), calc(100% - 34px));
  margin: 20px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 137, 58, .26);
  background:
    radial-gradient(circle at 86% -20%, rgba(255, 151, 73, .2), transparent 38%),
    linear-gradient(115deg, #5c0d0d 0%, #76110c 48%, #421011 100%);
  box-shadow: 0 16px 42px rgba(63, 7, 7, .18);
  color: #fff7f2;
}

.ww5x-providers__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: end;
  padding: 26px 30px 22px;
  border-bottom: 1px solid rgba(255, 188, 119, .22);
}

.ww5x-providers__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #ffb278;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ww5x-providers__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.028em;
}

.ww5x-providers__head p {
  max-width: 650px;
  margin: 0;
  color: #ecd7d0;
  font-size: .91rem;
  line-height: 1.65;
}

.ww5x-provider-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(62, 0, 0, .28);
}

.ww5x-provider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 14px 22px;
  border-right: 1px solid rgba(255, 190, 126, .18);
  background: rgba(255, 255, 255, .015);
  transition: background-color .18s ease, transform .18s ease;
}

.ww5x-provider:last-child { border-right: 0; }

.ww5x-provider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffb347, #ff6f42);
  transition: width .18s ease;
}

.ww5x-provider:hover {
  background: rgba(255, 255, 255, .055);
  transform: translateY(-1px);
}

.ww5x-provider:hover::after { width: 52%; }

.ww5x-provider img {
  display: block;
  width: auto;
  max-width: min(125px, 82%);
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
}

html[data-theme="dark"] .ww5x-providers {
  border-color: rgba(255, 151, 73, .22);
  background:
    radial-gradient(circle at 86% -20%, rgba(255, 128, 45, .15), transparent 38%),
    linear-gradient(115deg, #320a0b 0%, #4c0c0b 50%, #25090a 100%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
}

@media (max-width: 900px) {
  .ww5x-providers__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ww5x-provider-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ww5x-provider:nth-child(3) { border-right: 0; }
  .ww5x-provider:nth-child(n+4) { border-top: 1px solid rgba(255, 190, 126, .18); }
}

@media (max-width: 720px) {
  .ww5x-providers {
    width: min(100% - 22px, var(--ww5x-content));
    margin-top: 14px;
  }
  .ww5x-providers__head { padding: 22px 20px 18px; }
  .ww5x-providers__head p { font-size: .88rem; }
  .ww5x-provider { min-height: 96px; padding: 12px 14px; }
  .ww5x-provider img { height: 56px; }
}

@media (max-width: 500px) {
  .ww5x-providers { width: 100%; border-left: 0; border-right: 0; }
  .ww5x-provider-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ww5x-provider { border-top: 1px solid rgba(255, 190, 126, .18); }
  .ww5x-provider:nth-child(1),
  .ww5x-provider:nth-child(2) { border-top: 0; }
  .ww5x-provider:nth-child(2n) { border-right: 0; }
  .ww5x-provider:nth-child(3) { border-right: 1px solid rgba(255, 190, 126, .18); }
  .ww5x-provider:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ww5x-provider,
  .ww5x-provider::after { transition: none; }
}
