/* ============================================================
   theme_012 — BOB palette (bob-web.com)
   Deep navy base + rose/copper primary (#d7967f).
   ============================================================ */

:root {
  --t3-bg:        #07101c;
  --t3-bg-elev:   #101c2a;
  --t3-bg-card:   #1a2838;
  --t3-bg-soft:   #273240;
  --t3-line:      rgba(255, 255, 255, 0.12);
  --t3-line-soft: rgba(255, 255, 255, 0.08);

  --t3-text:      #ffffff;
  --t3-text-mid:  rgba(255, 255, 255, 0.8);
  --t3-text-dim:  rgba(255, 255, 255, 0.55);

  /* BOB primary rose/copper — kept as --t3-gold for template compat */
  --t3-gold:      #d7967f;
  --t3-gold-2:    #edbfaf;
  --t3-crimson:   #cb9179;
  --t3-crimson-2: #b87559;
  --t3-live:      #ff5c5c;

  --t3-radius:    16px;
  --t3-radius-sm: 10px;
  --t3-shadow:    0 10px 40px rgba(0, 0, 0, 0.55);

  --t3-serif:     'Segoe UI', 'Microsoft YaHei', sans-serif;
  --t3-sans:      'Segoe UI', 'Microsoft YaHei', sans-serif;

  --t12-gold-grad:   linear-gradient(90deg, #cb9179, #edbfaf);
  --t12-violet-grad: linear-gradient(90deg, #b87559, #d7967f);
  --t12-glow-gold:   0 0 0 1px rgba(215,150,127,.24), 0 18px 50px rgba(184,117,89,.18);
  --t12-btn-grad:        linear-gradient(90deg, #cb9179, #edbfaf);
  --t12-btn-grad-hover:  linear-gradient(90deg, #b87559, #e49f87);
  --t12-header-grad: linear-gradient(
    90deg,
    rgba(7, 16, 28, 0.94),
    rgba(16, 28, 42, 0.94) 28%,
    rgba(39, 50, 64, 0.88) 58%,
    rgba(16, 28, 42, 0.94) 84%,
    rgba(7, 16, 28, 0.94)
  );
}

body.theme-012, .t3-portal {
  background: var(--t3-bg);
  color: var(--t3-text);
  font-family: var(--t3-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.theme-012 *,
body.theme-012 *::before,
body.theme-012 *::after {
  box-sizing: border-box;
}


body.theme-012 a { color: var(--t3-gold); text-decoration: none; transition: color .15s ease; }
body.theme-012 a:hover { color: var(--t3-gold-2); }

body.theme-012 h1,
body.theme-012 h2,
body.theme-012 h3 { font-family: var(--t3-serif); letter-spacing: 0.01em; color: var(--t3-text); }

.t3-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.t3-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--t12-header-grad);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--t3-line-soft);
}
.t3-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px;
}
.t3-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--t3-text) !important;
  font-weight: 600;
}
.t3-brand:hover { color: var(--t3-gold) !important; }
.t3-brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, var(--t3-gold), var(--t3-crimson));
  color: #07101c; font-weight: 800; font-size: 16px;
  box-shadow: 0 2px 6px rgba(215, 150, 127, 0.28);
}
/* Sports sigil variant: stadium circle + center line, pure CSS / no glyph */
.t3-brand-mark--sport {
  background: #07101c;
  border: 2px solid var(--t3-gold);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(215, 150, 127, 0.2) inset,
    0 2px 6px rgba(215, 150, 127, 0.28);
}
.t3-brand-mark--sport::before {
  content: ""; position: absolute;
  top: 50%; left: 4px; right: 4px;
  height: 2px; background: var(--t3-gold);
  transform: translateY(-1px);
}
.t3-brand-logo {
  width: 32px; height: 32px; border-radius: 6px;
  object-fit: cover;
  background: #07101c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.t3-brand-name { font-size: 18px; letter-spacing: 0.02em; }
.t3-brand-tag {
  font-size: 11px; color: var(--t3-text-dim); border: 1px solid var(--t3-line);
  padding: 2px 8px; border-radius: 999px;
}

/* "LIVE" indicator — red dot + steady pulse, sits in the top bar. */
.t3-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--t3-text-mid);
  border: 1px solid var(--t3-line);
  background: rgba(210, 58, 58, 0.06);
  padding: 5px 11px; border-radius: 999px;
  margin-left: auto;
}
.t3-live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--t3-live);
  box-shadow: 0 0 0 0 rgba(210, 58, 58, 0.7);
  animation: t3-live-pulse 1.6s ease-out infinite;
  vertical-align: middle;
}
@keyframes t3-live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(210, 58, 58, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(210, 58, 58, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(210, 58, 58, 0);   }
}
.t3-hero-eyebrow .t3-live-dot { margin-right: 2px; }

.t3-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.t3-nav-active {
  color: var(--t3-gold) !important;
  background: rgba(215, 150, 127, 0.12);
  box-shadow: inset 0 -2px 0 var(--t3-gold);
}
.t3-nav a {
  display: inline-block;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--t3-text-mid) !important;
  transition: background .15s ease, color .15s ease;
}
.t3-nav a:hover {
  color: var(--t3-text) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Hero ---------- */
.t3-hero {
  position: relative;
  padding: 96px 0 88px;
  background-color: #07101c;
  background-image: url("../img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--t3-line-soft);
  overflow: hidden;
}
.t3-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(210, 58, 58, 0.18), transparent 60%),
    radial-gradient(circle at 10% 110%, rgba(215, 150, 127, 0.12), transparent 55%);
  pointer-events: none;
}
/* Hero variant when a photographic image is pulled from the media pool:
   add a heavier scrim so text stays readable over arbitrary photos. */
.t3-hero--photo::before {
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.55) 0%, rgba(7, 16, 28, 0.85) 100%),
    radial-gradient(circle at 80% -10%, rgba(210, 58, 58, 0.22), transparent 60%);
}
.t3-hero-cta {
  margin-top: 36px;
  font-size: 12px;
  color: var(--t3-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: t3-bob 2.4s ease-in-out infinite;
}
@keyframes t3-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.t3-hero > * { position: relative; }

.t3-hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t3-gold);
  border: 1px solid rgba(215, 150, 127, 0.4);
  border-radius: 999px;
  margin-bottom: 24px;
}
.t3-hero-title {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 600;
}
.t3-hero-accent {
  background: linear-gradient(120deg, var(--t3-gold), var(--t3-crimson));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
}
.t3-hero-lead {
  max-width: 720px;
  margin: 0 0 36px;
  font-size: 18px;
  color: var(--t3-text-mid);
}

.t3-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}
.t3-pillar {
  background: rgba(27, 36, 71, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--t3-radius);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}
.t3-pillar-k {
  font-family: var(--t3-serif);
  font-size: 22px;
  color: var(--t3-gold-2);
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.t3-pillar-v {
  font-size: 14px;
  color: var(--t3-text-mid);
  line-height: 1.6;
}
/* Hero sits on a dark scrim / photo — lift pillars a notch more */
.t3-hero .t3-pillar {
  background: rgba(35, 46, 88, 0.88);
  border-color: rgba(215, 150, 127, 0.28);
}
.t3-hero .t3-pillar-v {
  color: #d8ddf5;
}

/* ---------- Section ---------- */
.t3-section { padding: 80px 0; position: relative; }
.t3-section--alt { background: var(--t3-bg-elev); border-top: 1px solid var(--t3-line-soft); border-bottom: 1px solid var(--t3-line-soft); }
.t3-section--page { padding: 56px 0 80px; }

/* Section variant: background image from the media pool */
.t3-section--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.t3-section--bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.92) 0%, rgba(7, 16, 28, 0.96) 100%);
}

.t3-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--t3-gold);
  margin-bottom: 10px;
}
.t3-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.t3-section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.3;
  margin: 0;
}
.t3-section-sub {
  margin: 14px 0 0;
  color: var(--t3-text-mid);
  font-size: 15px;
  line-height: 1.7;
}
.t3-section-sub strong { color: var(--t3-gold); font-weight: 600; }

/* ---------- Quick card grid ---------- */
.t3-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.t3-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 22px;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  color: var(--t3-text) !important;
  font-family: var(--t3-serif);
  font-size: 20px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.t3-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--t3-gold), var(--t3-crimson));
  opacity: 0; transition: opacity .15s ease;
}
.t3-card:hover {
  transform: translateY(-2px);
  border-color: var(--t3-gold);
  background: var(--t3-bg-soft);
}
.t3-card:hover::after { opacity: 1; }
.t3-card-num {
  font-family: var(--t3-serif);
  font-size: 22px;
  color: var(--t3-gold);
  min-width: 36px;
}
.t3-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.t3-card-title { line-height: 1.2; }
.t3-card-sub {
  font-family: var(--t3-sans);
  font-size: 12px;
  color: var(--t3-text-dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t3-card-arrow { color: var(--t3-text-dim); font-size: 18px; }

/* ---------- Principles (4-col) ---------- */
.t3-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.t3-principle {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 28px 24px 24px;
  position: relative;
}
/* Roman numeral fallback (scores / database / analysis pages) */
.t3-principle-num {
  font-family: var(--t3-serif);
  font-size: 22px; line-height: 1;
  color: var(--t3-gold);
  letter-spacing: 0.05em;
  border: 1px solid rgba(215, 150, 127, 0.4);
  border-radius: 999px;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 14px;
}
/* Homepage principles — icon on top, title below, both centered */
.t3-principle--with-icon .t3-principle-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: center;
}
.t3-principle--with-icon .t3-principle-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--t3-text);
  text-align: center;
}
.t3-principle-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(215, 150, 127, 0.1);
  border: 1px solid rgba(215, 150, 127, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.t3-principle-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.t3-principle h3 { font-size: 18px; margin: 0 0 8px; color: var(--t3-text); }
.t3-principle p { color: var(--t3-text-mid); font-size: 14px; line-height: 1.65; margin: 0; }

/* ---------- Editorial (3-col list) ---------- */
.t3-editorial {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.t3-editorial > li {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 24px 24px 22px;
  position: relative;
}
.t3-editorial-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t3-bg);
  background: var(--t3-gold);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.t3-editorial h3 { font-size: 19px; margin: 4px 0 8px; }
.t3-editorial p { color: var(--t3-text-mid); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* ---------- Prose two-col ---------- */
.t3-two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.t3-prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  margin: 6px 0 18px;
}
.t3-prose p {
  color: var(--t3-text-mid);
  margin: 0 0 14px;
}
.t3-prose strong { color: var(--t3-gold); font-weight: 600; }
.t3-prose a {
  color: var(--t3-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 3px;
}
.t3-prose a:hover {
  color: var(--t3-text);
  text-decoration-color: var(--t3-gold);
}

/* Value-prop: left-half photo · gradient to the right · prose | 4 feature cards */
.t3-section--value-split {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 7vh, 64px) 0;
}
.t3-section--value-split-photo {
  background: var(--t3-bg-elev);
}
.t3-section--value-split-photo > .t3-wrap {
  width: 100%;
  max-width: 100%;
}
.t3-value-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(58%, 720px);
  max-width: 100%;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.t3-value-bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.05);
}
/* Fade photo into section bg toward the right */
.t3-value-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 16, 28, 0.2) 0%,
    rgba(7, 16, 28, 0.05) 40%,
    rgba(19, 26, 53, 0.55) 72%,
    var(--t3-bg-elev) 100%
  );
  pointer-events: none;
}

.t3-value-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Prose + features stacked on the right; left column is the photo zone */
.t3-value-main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 32px);
  min-width: 0;
  max-width: 100%;
}
.t3-section--value-split .t3-value-main .t3-prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.3;
  margin: 6px 0 14px;
}
.t3-section--value-split .t3-value-main .t3-prose p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.t3-section--value-split .t3-value-main .t3-prose p:last-child {
  margin-bottom: 0;
}
.t3-section--value-split-photo .t3-value-main .t3-prose h2,
.t3-section--value-split-photo .t3-value-main .t3-prose p {
  text-shadow: none;
}
.t3-section--value-split .t3-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.t3-section--value-split .t3-feature {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-left: 3px solid var(--t3-gold);
  border-radius: var(--t3-radius);
  padding: 16px 18px;
}
.t3-section--value-split .t3-feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--t3-text);
}
.t3-section--value-split .t3-feature p {
  color: var(--t3-text-mid);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .t3-section--value-split .t3-feature-list {
    align-items: stretch;
  }
  .t3-section--value-split .t3-feature {
    display: flex;
    flex-direction: column;
  }
  .t3-section--value-split .t3-feature p {
    flex: 1;
  }
}
.t3-section--value-split:not(.t3-section--value-split-photo) .t3-value-body {
  grid-template-columns: 1fr;
}
.t3-section--value-split:not(.t3-section--value-split-photo) .t3-value-main {
  grid-column: 1;
}

/* ---------- Article grid ---------- */
.t3-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.t3-post {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 0 0 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.t3-post:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 150, 127, 0.5);
}

/* Article cover thumb (top of each card) */
.t3-post-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--t3-bg-soft);
  margin-bottom: 18px;
}
.t3-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: saturate(0.95) contrast(1.05);
}
.t3-post:hover .t3-post-thumb img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.1);
}
.t3-post-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 16, 28, 0.55) 100%);
  pointer-events: none;
}

/* Procedural placeholder thumb (deterministic hue per article) */
.t3-post-thumb--placeholder {
  background:
    radial-gradient(circle at 70% 30%, hsla(var(--t3-thumb-hue, 40), 60%, 35%, 0.55), transparent 60%),
    linear-gradient(135deg,
      hsl(var(--t3-thumb-hue, 40), 28%, 22%) 0%,
      hsl(calc(var(--t3-thumb-hue, 40) + 40), 40%, 12%) 100%);
}
.t3-post-thumb--placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.t3-post-thumb-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--t3-serif);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.t3-post-cat {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3-bg) !important;
  background: var(--t3-gold);
  border-radius: 4px;
  margin: 0 22px 14px;
}
.t3-post-title {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 22px 10px;
}
.t3-post-title a {
  color: var(--t3-text) !important;
  background-image: linear-gradient(var(--t3-gold), var(--t3-gold));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .15s ease;
}
.t3-post:hover .t3-post-title a { color: var(--t3-gold) !important; background-size: 100% 1px; }
.t3-post-desc {
  color: var(--t3-text-mid);
  font-size: 14px;
  margin: 0 22px 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.t3-post-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--t3-line);
  margin: 0 22px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--t3-text-dim);
}
.t3-post-more {
  font-weight: 500;
  color: var(--t3-gold) !important;
}

/* ---------- Steps ---------- */
.t3-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.t3-steps > li {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 28px 26px;
  position: relative;
}
.t3-step-num {
  font-family: var(--t3-serif);
  font-size: 40px; color: var(--t3-gold);
  line-height: 1; margin-bottom: 12px;
}
.t3-step-body h3 { font-size: 20px; margin: 0 0 6px; }
.t3-step-body p { color: var(--t3-text-mid); font-size: 14.5px; margin: 0; }

/* ---------- Trust ---------- */
.t3-section--trust {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 150, 127, 0.12), transparent 55%),
    var(--t3-bg);
  border-top: 1px solid var(--t3-line-soft);
}
.t3-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.t3-trust-lead h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.3; margin: 6px 0 14px;
}
.t3-trust-lead p { color: var(--t3-text-mid); margin: 0; }
.t3-trust-lead strong { color: var(--t3-gold); }

.t3-trust-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.t3-trust-grid { align-items: start; }
.t3-trust-points li {
  display: flex; gap: 14px;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius-sm);
  padding: 16px 16px;
}
.t3-trust-points li > span {
  font-family: var(--t3-serif);
  font-size: 22px; color: var(--t3-gold);
  min-width: 32px;
}
.t3-trust-points b { color: var(--t3-text); display: block; font-size: 14px; }
.t3-trust-points div { color: var(--t3-text-mid); font-size: 13.5px; line-height: 1.6; }

/* ---------- Empty state ---------- */
.t3-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--t3-bg-card);
  border: 1px dashed var(--t3-line);
  border-radius: var(--t3-radius);
  color: var(--t3-text-mid);
}
.t3-empty code {
  background: rgba(215, 150, 127, 0.08);
  color: var(--t3-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ---------- Article page ---------- */
.t3-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--t3-text-dim);
  margin-bottom: 28px;
}
.t3-breadcrumb a { color: var(--t3-text-mid); }
.t3-breadcrumb a:hover { color: var(--t3-gold); }
.t3-breadcrumb-current { color: var(--t3-text); }

.t3-article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  overflow: hidden;
}
.t3-article-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  margin: 0;
  background: var(--t3-bg-soft);
  overflow: hidden;
}
.t3-article-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.t3-article-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--t3-bg-card) 100%);
  pointer-events: none;
}
.t3-article-cover--placeholder {
  background:
    radial-gradient(circle at 70% 30%, hsla(var(--t3-thumb-hue, 40), 60%, 35%, 0.55), transparent 60%),
    linear-gradient(135deg,
      hsl(var(--t3-thumb-hue, 40), 28%, 22%) 0%,
      hsl(calc(var(--t3-thumb-hue, 40) + 40), 40%, 12%) 100%);
}
.t3-article-cover--placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.t3-article-cover--placeholder .t3-post-thumb-mark {
  font-size: clamp(72px, 11vw, 120px);
}

.t3-article > .t3-article-head,
.t3-article > .t3-article-body,
.t3-article > .t3-article-foot {
  padding-left: 48px;
  padding-right: 48px;
}
.t3-article > .t3-article-head { padding-top: 36px; margin-bottom: 32px; }
.t3-article > .t3-article-foot { padding-bottom: 56px; }
.t3-article-head h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25;
  margin: 14px 0 16px;
}
.t3-article-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--t3-text-dim);
}
.t3-dot { color: var(--t3-text-dim); }
.t3-article-lede {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--t3-gold);
  color: var(--t3-text-mid);
  font-size: 16px;
  line-height: 1.7;
}

.t3-article-body { color: var(--t3-text); font-size: 16.5px; line-height: 1.85; }
.t3-article-body h2 { font-size: 26px; margin: 36px 0 14px; }
.t3-article-body h3 { font-size: 20px; margin: 28px 0 10px; color: var(--t3-gold); }
.t3-article-body p { margin: 0 0 16px; color: var(--t3-text-mid); }
.t3-article-body ul, .t3-article-body ol { margin: 0 0 16px 22px; color: var(--t3-text-mid); }
.t3-article-body li { margin-bottom: 6px; }
.t3-article-body a { border-bottom: 1px dashed currentColor; }
.t3-article-body blockquote {
  margin: 20px 0; padding: 14px 18px;
  background: rgba(215, 150, 127, 0.06);
  border-left: 3px solid var(--t3-gold);
  color: var(--t3-text);
  border-radius: 0 var(--t3-radius-sm) var(--t3-radius-sm) 0;
}
.t3-article-body code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.t3-article-body pre {
  background: var(--t3-bg-soft);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}

.t3-article-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--t3-line);
}
.t3-back { font-size: 14px; color: var(--t3-gold) !important; }

/* ---------- Article: top reading-progress bar ---------- */
.t3-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 60;
  background: transparent;
  pointer-events: none;
}
.t3-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--t3-gold), var(--t3-crimson));
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(215, 150, 127, 0.45);
}

/* ---------- Article: layout (body + sticky side) ---------- */
.t3-article-section { padding-top: 36px; }
.t3-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.t3-article-layout > .t3-article { max-width: none; }

.t3-article-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.t3-side-card {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 18px 18px;
}
.t3-side-h {
  font-family: var(--t3-sans);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--t3-gold);
  margin: 0 0 12px;
}
.t3-side-blurb {
  margin: 0 0 12px; color: var(--t3-text-mid);
  font-size: 13.5px; line-height: 1.65;
}
.t3-side-links { list-style: none; padding: 0; margin: 0; }
.t3-side-links li { margin-bottom: 8px; }
.t3-side-links li:last-child { margin-bottom: 0; }
.t3-side-links a {
  display: inline-block; font-size: 13.5px;
  color: var(--t3-text-mid);
}
.t3-side-links a:hover { color: var(--t3-gold); }

/* Auto-TOC */
.t3-toc {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 60vh; overflow-y: auto;
}
.t3-toc a {
  display: block;
  font-size: 13.5px; line-height: 1.45;
  color: var(--t3-text-mid);
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--t3-line);
  transition: border-color .15s, color .15s;
}
.t3-toc a:hover { color: var(--t3-gold); border-left-color: var(--t3-gold); }
.t3-toc-sub a { padding-left: 22px; font-size: 12.5px; color: var(--t3-text-dim); }

/* ---------- Article: meta icons row ---------- */
.t3-article-meta {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.t3-article-meta .t3-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--t3-text-dim);
  font-size: 13px;
}
.t3-article-meta .t3-meta-item svg { color: var(--t3-gold); flex-shrink: 0; }

/* Drop cap on the first paragraph of long-form articles */
.t3-article-body > p:first-of-type::first-letter {
  font-family: var(--t3-serif);
  font-size: 3.2em;
  float: left;
  line-height: 1;
  padding: 4px 10px 0 0;
  color: var(--t3-gold);
}
.t3-article-body img,
.t3-article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--t3-radius-sm);
  margin: 8px 0;
}
.t3-article-body figure { margin: 22px 0; }
.t3-article-body figcaption {
  font-size: 13px; color: var(--t3-text-dim);
  text-align: center; margin-top: 8px;
}
.t3-article-body h2 { scroll-margin-top: 80px; }
.t3-article-body h3 { scroll-margin-top: 80px; }

/* ---------- Article: tags / share / prev-next ---------- */
.t3-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 48px;
  margin-top: 28px;
}
.t3-tag {
  font-size: 12.5px;
  color: var(--t3-text-mid) !important;
  background: rgba(215, 150, 127, 0.08);
  border: 1px solid rgba(215, 150, 127, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
a.t3-tag:hover {
  color: var(--t3-gold) !important;
  border-color: rgba(215, 150, 127, 0.45);
  background: rgba(215, 150, 127, 0.14);
}

.t3-share {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 20px 48px 0;
  margin-top: 24px;
  border-top: 1px solid var(--t3-line);
}
.t3-share-label {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--t3-text-dim);
  margin-right: 4px;
}
.t3-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--t3-text-mid) !important;
  background: var(--t3-bg-soft);
  border: 1px solid var(--t3-line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.t3-share-btn:hover {
  color: var(--t3-text) !important;
  border-color: var(--t3-gold);
  background: rgba(215, 150, 127, 0.08);
}

.t3-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 48px 0;
}
.t3-prev-next-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: var(--t3-bg-soft);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius-sm);
  color: var(--t3-text-mid) !important;
  transition: border-color .15s, transform .15s;
  min-height: 70px;
}
.t3-prev-next-card:hover {
  border-color: var(--t3-gold);
  color: var(--t3-text) !important;
}
.t3-prev-next-card--next { text-align: right; }
.t3-prev-next-hint {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t3-gold);
}
.t3-prev-next-title {
  font-family: var(--t3-serif);
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- Related articles ---------- */
.t3-related { margin-top: 56px; }
.t3-related-head {
  margin-bottom: 22px;
}
.t3-related-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 6px 0 0;
}
.t3-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ---------- Article responsive ---------- */
@media (max-width: 1024px) {
  .t3-article-layout { grid-template-columns: minmax(0, 1fr); }
  .t3-article-side { position: static; }
}

/* ---------- Category page ---------- */
.t3-cat-head { margin-bottom: 36px; text-align: left; max-width: 720px; }
.t3-cat-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 6px 0 12px; }
.t3-cat-lead { color: var(--t3-text-mid); margin: 0 0 14px; }
.t3-cat-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--t3-text-dim);
  margin: 0;
}

/* ---------- Leagues / competitions chip grid ---------- */
.t3-leagues {
  display: flex; flex-direction: column; gap: 28px;
  max-width: 980px; margin: 0 auto;
}
.t3-league-group {
  border-left: 2px solid var(--t3-gold);
  padding-left: 18px;
}
.t3-league-head {
  font-family: var(--t3-sans);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t3-text-dim);
  margin: 0 0 12px;
}
.t3-league-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.t3-league-chip {
  display: inline-flex; align-items: center;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px; color: var(--t3-text);
  font-weight: 500;
  transition: border-color 160ms ease, color 160ms ease;
}
.t3-league-chip:hover {
  border-color: var(--t3-gold);
  color: var(--t3-gold);
}
.t3-leagues-note {
  max-width: 700px; margin: 32px auto 0;
  font-size: 13px; color: var(--t3-text-dim);
  text-align: center; line-height: 1.7;
}

/* ---------- Pager ---------- */
.t3-pager {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.t3-pager-link {
  padding: 8px 16px;
  border: 1px solid var(--t3-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--t3-text-mid) !important;
}
.t3-pager-link:hover { border-color: var(--t3-gold); color: var(--t3-gold) !important; }
.t3-pager-link--disabled { opacity: 0.4; pointer-events: none; }
.t3-pager-info { font-size: 13px; color: var(--t3-text-dim); }

/* ---------- Footer ---------- */
.t3-footer {
  background: #151b2b;
  border-top: 1px solid var(--t3-line-soft);
  padding: 64px 0 24px;
  font-size: 14px;
  color: var(--t3-text-mid);
}
.t3-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--t3-line-soft);
}
.t3-footer-col h4.t3-footer-h {
  font-family: var(--t3-sans);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t3-gold);
  margin: 0 0 16px;
}
.t3-footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--t3-serif);
  font-size: 20px; color: var(--t3-text);
  margin-bottom: 12px;
}
.t3-footer-blurb { color: var(--t3-text-dim); margin: 0; font-size: 14px; line-height: 1.7; }

.t3-meta { margin: 0; display: grid; gap: 10px; }
.t3-meta > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.t3-meta dt { color: var(--t3-text-dim); margin: 0; }
.t3-meta dd { color: var(--t3-text); margin: 0; }

.t3-footer-links { list-style: none; padding: 0; margin: 0; }
.t3-footer-links li { margin-bottom: 8px; }
.t3-footer-links a { color: var(--t3-text-mid); }
.t3-footer-links a:hover { color: var(--t3-gold); }

.t3-fineprint { color: var(--t3-text-dim); font-size: 13px; line-height: 1.7; margin: 0; }

.t3-footer-bar {
  padding-top: 18px;
  font-size: 12px;
  color: var(--t3-text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .t3-two-col { grid-template-columns: 1fr; gap: 36px; }
  .t3-section--value-split-photo {
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }
  .t3-value-body {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
  .t3-value-main {
    grid-column: 1;
    gap: 24px;
    width: 100%;
  }
  .t3-section--value-split .t3-value-main .t3-prose h2 {
    font-size: clamp(22px, 5.5vw, 28px);
    overflow-wrap: anywhere;
  }
  .t3-section--value-split .t3-value-main .t3-prose p {
    overflow-wrap: anywhere;
  }
  .t3-section--value-split .t3-feature-list {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .t3-section--value-split .t3-feature {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .t3-value-bg {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: clamp(160px, 44vw, 220px);
    flex-shrink: 0;
  }
  .t3-value-bg img {
    display: block;
  }
  .t3-value-bg::after {
    background: linear-gradient(
      180deg,
      transparent 30%,
      rgba(19, 26, 53, 0.7) 75%,
      var(--t3-bg-elev) 100%
    );
  }
  .t3-trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .t3-steps { grid-template-columns: 1fr; }
  .t3-pillars { grid-template-columns: repeat(2, 1fr); }
  .t3-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .t3-article > .t3-article-head,
  .t3-article > .t3-article-body,
  .t3-article > .t3-article-foot { padding-left: 28px; padding-right: 28px; }
  .t3-article > .t3-article-head { padding-top: 28px; }
  .t3-article > .t3-article-foot { padding-bottom: 36px; }
  .t3-tags,
  .t3-share,
  .t3-prev-next { padding-left: 28px; padding-right: 28px; }
  .t3-prev-next { margin-left: 0; margin-right: 0; }
}

@media (max-width: 600px) {
  .t3-section { padding: 56px 0; }
  .t3-section--value-split-photo {
    padding-bottom: 48px;
  }
  .t3-value-body {
    padding-left: 14px;
    padding-right: 14px;
  }
  .t3-hero { padding: 64px 0 56px; }
  .t3-header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 10px; }
  /* theme_012 uses hamburger drawer — do not force a horizontal nav strip */
  body:not(.theme-012) .t3-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  body:not(.theme-012) .t3-nav a { white-space: nowrap; }
  .t3-live-pill { display: none; }
  .t3-pillars { grid-template-columns: 1fr; }
  .t3-trust-points { grid-template-columns: 1fr; }
  .t3-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .t3-league-row { gap: 6px; }
  .t3-league-chip { font-size: 12px; padding: 5px 11px; }
  .t3-article > .t3-article-head,
  .t3-article > .t3-article-body,
  .t3-article > .t3-article-foot { padding-left: 20px; padding-right: 20px; }
  .t3-article > .t3-article-head { padding-top: 24px; }
  .t3-article > .t3-article-foot { padding-bottom: 30px; }
  .t3-article-body { font-size: 15.5px; }
  .t3-tags,
  .t3-share,
  .t3-prev-next { padding-left: 20px; padding-right: 20px; }
  .t3-prev-next { margin-left: 0; margin-right: 0; grid-template-columns: 1fr; }
  .t3-prev-next-card--next { text-align: left; }
}

/* ===========================================================
   Sports-section landing pages (scores / database / analysis / community)
   =========================================================== */

/* Slim hero variant for section pages (less padding than home hero). */
.t3-hero--inner { padding: 64px 0 56px; }
.t3-hero--inner .t3-hero-title { font-size: clamp(28px, 4.4vw, 48px); }
.t3-hero--inner .t3-hero-lead { max-width: 880px; }

/* ---------- Sub-tab strip (scores filter switcher) ---------- */
.t3-subtabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 32px;
}
.t3-subtab {
  font-family: inherit; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--t3-text-mid);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.t3-subtab:hover {
  background: rgba(255,255,255,0.04);
  color: var(--t3-text);
}
.t3-subtab--active {
  background: rgba(215, 150, 127, 0.12);
  color: var(--t3-gold);
  border-color: rgba(215, 150, 127, 0.32);
}
.t3-subtab--gear {
  margin-left: auto;
  color: var(--t3-text-dim);
  font-size: 13px;
}

/* ---------- Match cards ---------- */
.t3-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.t3-match-card {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.t3-match-card--live {
  border-color: rgba(210, 58, 58, 0.35);
  box-shadow: 0 0 0 1px rgba(210, 58, 58, 0.18) inset;
}
.t3-match-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--t3-text-dim);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.t3-match-league { font-weight: 500; }
.t3-match-status {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--t3-line);
  border-radius: 999px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}
.t3-match-status--live {
  color: var(--t3-crimson);
  border-color: rgba(210, 58, 58, 0.35);
  background: rgba(210, 58, 58, 0.08);
}
.t3-match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.t3-match-team {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  min-width: 0;
}
.t3-match-team--away { flex-direction: row-reverse; text-align: right; }
.t3-match-team-flag {
  width: 16px; height: 16px; border-radius: 3px;
  background: var(--team-c, var(--t3-gold));
  flex-shrink: 0;
}
.t3-match-score {
  font-family: var(--t3-serif);
  font-size: 28px; font-weight: 700;
  color: var(--t3-text);
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.t3-match-vs {
  color: var(--t3-text-dim);
  font-size: 14px; font-weight: 400;
  font-family: var(--t3-sans);
}
.t3-match-score--upcoming {
  font-size: 18px; color: var(--t3-text-dim);
}
.t3-match-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--t3-line);
  font-size: 12px;
  color: var(--t3-text-dim);
}

.t3-mock-note {
  text-align: center;
  font-size: 13px;
  color: var(--t3-text-dim);
  margin: 24px auto 0;
  max-width: 720px;
  line-height: 1.7;
}
.t3-mock-note strong { color: var(--t3-gold); font-weight: 600; }
.t3-inline-link { color: var(--t3-gold); border-bottom: 1px solid rgba(215, 150, 127, 0.4); }
.t3-inline-link:hover { color: #ffd87b; }

/* ---------- Data table (database page) ---------- */
.t3-table-wrap {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  overflow-x: auto;
  margin: 0 auto;
  max-width: 980px;
}
.t3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.t3-table thead {
  background: rgba(255,255,255,0.04);
}
.t3-table th {
  padding: 12px 10px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--t3-text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--t3-line);
  white-space: nowrap;
}
.t3-table th.t3-th-pos { width: 40px; }
.t3-table th.t3-th-team { text-align: left; padding-left: 18px; min-width: 130px; }
.t3-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--t3-line-soft);
  font-variant-numeric: tabular-nums;
}
.t3-table tbody tr:last-child td { border-bottom: 0; }
.t3-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.t3-table td:nth-child(2) { text-align: left; padding-left: 18px; font-weight: 500; }
.t3-td-pts {
  font-weight: 700;
  color: var(--t3-gold);
}
.t3-form-w, .t3-form-d, .t3-form-l {
  display: inline-block;
  width: 18px; height: 18px;
  font-size: 10px;
  line-height: 18px;
  border-radius: 4px;
  margin: 0 1px;
  font-weight: 700;
  color: #fff;
  font-family: var(--t3-sans);
}
.t3-form-w { background: #2e9e6a; }
.t3-form-d { background: #8a8a8a; }
.t3-form-l { background: var(--t3-crimson); }

/* ---------- Prediction cards (analysis page) ---------- */
.t3-pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.t3-pred-card {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 22px 24px;
}
.t3-pred-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--t3-text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.t3-pred-league { color: var(--t3-gold); font-weight: 500; }
.t3-pred-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--t3-line);
  margin-bottom: 18px;
}
.t3-pred-team { display: flex; flex-direction: column; gap: 4px; }
.t3-pred-team--away { text-align: right; }
.t3-pred-team-name { font-size: 17px; font-weight: 600; color: var(--t3-text); }
.t3-pred-team-form {
  font-size: 11px;
  color: var(--t3-text-dim);
  font-family: monospace;
  letter-spacing: 0.08em;
}
.t3-pred-vs {
  font-family: var(--t3-serif);
  color: var(--t3-text-dim);
  font-size: 18px;
}
.t3-pred-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
}
.t3-pred-label {
  font-size: 12px;
  color: var(--t3-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.t3-pred-meta { font-size: 14px; color: var(--t3-text); }
.t3-pred-meta b { color: var(--t3-gold); }
.t3-pred-bars {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  font-size: 11px;
}
.t3-pred-bar {
  display: inline-flex; align-items: center; justify-content: center;
  flex: var(--p, 33) 0 0;
  min-width: 0;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  padding: 0 6px;
}
.t3-pred-bar--home { background: #2e9e6a; }
.t3-pred-bar--draw { background: #6a6a6a; }
.t3-pred-bar--away { background: var(--t3-crimson); }

/* ---------- Posts (community page) ---------- */
.t3-posts {
  display: flex; flex-direction: column; gap: 12px;
}
.t3-post-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 18px 22px;
  transition: border-color 160ms ease;
}
.t3-post-row:hover { border-color: rgba(215, 150, 127, 0.32); }
.t3-post-vote {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px;
  color: var(--t3-text-dim);
}
.t3-post-vote-up { color: var(--t3-gold); font-size: 14px; }
.t3-post-vote-down { color: var(--t3-text-dim); font-size: 14px; }
.t3-post-vote-n { font-weight: 700; color: var(--t3-text); font-variant-numeric: tabular-nums; }
.t3-post-main { min-width: 0; }
.t3-post-tags { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.t3-post-tag {
  display: inline-block;
  font-size: 11px; padding: 2px 8px; border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: var(--t3-text-dim);
  border: 1px solid var(--t3-line);
}
.t3-post-tag--circle { color: var(--t3-gold); border-color: rgba(215, 150, 127, 0.32); }
.t3-post-tag--hot      { background: rgba(210, 58, 58, 0.14); color: var(--t3-crimson); border-color: rgba(210, 58, 58, 0.32); }
.t3-post-tag--video    { background: rgba(120, 81, 169, 0.14); color: #b294e0; border-color: rgba(120, 81, 169, 0.28); }
.t3-post-tag--analysis { background: rgba(46, 158, 106, 0.14); color: #7ad2a3; border-color: rgba(46, 158, 106, 0.28); }
.t3-post-tag--discuss  { background: rgba(98, 130, 184, 0.14); color: #98b5e8; border-color: rgba(98, 130, 184, 0.28); }
.t3-post-row-title {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--t3-text);
}
.t3-post-row-excerpt {
  font-size: 13.5px; color: var(--t3-text-dim);
  line-height: 1.65;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.t3-post-meta-row {
  font-size: 12px;
  color: var(--t3-text-dim);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.t3-post-meta-row b { color: var(--t3-gold); }

/* ---------- FAQ accordion (no JS, uses <details>) ---------- */
.t3-faq { display: flex; flex-direction: column; gap: 8px; }
.t3-faq-item {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  overflow: hidden;
}
.t3-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--t3-text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.t3-faq-q::-webkit-details-marker { display: none; }
.t3-faq-q::after {
  content: "+";
  color: var(--t3-gold);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.t3-faq-item[open] .t3-faq-q::after { content: "−"; }
.t3-faq-item[open] .t3-faq-q {
  border-bottom: 1px solid var(--t3-line);
}
.t3-faq-a {
  padding: 14px 22px 20px;
  font-size: 14.5px;
  color: var(--t3-text-mid);
  line-height: 1.75;
}

/* ---------- Related news (compact) ---------- */
.t3-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.t3-related-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  transition: border-color 160ms ease;
}
.t3-related-item:hover { border-color: rgba(215, 150, 127, 0.32); }
.t3-related-cat {
  font-size: 11px;
  color: var(--t3-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.t3-related-title {
  font-size: 15px; line-height: 1.5;
  color: var(--t3-text);
  margin: 0;
}
.t3-related-time {
  font-size: 12px;
  color: var(--t3-text-dim);
  font-variant-numeric: tabular-nums;
}

.t3-prose--center { text-align: center; }
.t3-prose--center p { margin-left: auto; margin-right: auto; max-width: 640px; }

/* Mobile tweaks for section pages */
@media (max-width: 600px) {
  .t3-subtab { font-size: 12px; padding: 6px 12px; }
  .t3-subtab--gear { font-size: 11px; }
  .t3-match-card { padding: 14px 14px; }
  .t3-match-body { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .t3-match-team { font-size: 13px; }
  .t3-match-score { font-size: 22px; }
  .t3-table { font-size: 12px; }
  .t3-table th, .t3-table td { padding: 8px 6px; }
  .t3-pred-matchup { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .t3-pred-team-name { font-size: 15px; }
  .t3-pred-row { grid-template-columns: 84px 1fr; gap: 10px; }
  .t3-post-row { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 16px; }
  .t3-post-row-title { font-size: 15px; }
}

/* ------------------------------------------------------------------ */
/* Betting rules documentation (imported CN rules pack)               */
/* ------------------------------------------------------------------ */

.t3-rules-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 64px);
  align-items: start;
}

.t3-rules-aside {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px 16px 32px 20px;
  background: rgba(8, 12, 24, 0.92);
  border-right: 1px solid var(--t3-border);
}

.t3-rules-aside-head { margin-bottom: 16px; }
.t3-rules-aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--t3-text);
  margin: 6px 0 0;
  line-height: 1.4;
}

.t3-rules-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.t3-rules-nav-list--depth-1 { padding-left: 10px; margin-top: 4px; }
.t3-rules-nav-list--depth-2 { padding-left: 10px; margin-top: 2px; }

.t3-rules-nav-item { margin: 2px 0; }
.t3-rules-nav-item > a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--t3-text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.t3-rules-nav-item > a:hover {
  color: var(--t3-text);
  background: rgba(215, 150, 127, 0.08);
}
.t3-rules-nav-item.is-active > a {
  color: var(--t3-gold);
  background: rgba(215, 150, 127, 0.12);
  font-weight: 600;
}
.t3-rules-nav-item.has-children > a { font-weight: 600; color: var(--t3-text); }

.t3-rules-main {
  padding: 32px 40px 64px;
  max-width: 920px;
}

.t3-rules-h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--t3-text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.t3-rules-subtitle {
  font-size: 14px;
  color: var(--t3-text-dim);
  margin: 0 0 24px;
}

.t3-prose-rules {
  font-size: 15px;
  line-height: 1.75;
  color: var(--t3-text-muted);
}
.t3-prose-rules h2,
.t3-prose-rules h3,
.t3-prose-rules h4 {
  color: var(--t3-text);
  margin: 1.6em 0 0.6em;
  line-height: 1.35;
}
.t3-prose-rules h2 { font-size: 1.35rem; }
.t3-prose-rules h4 { font-size: 1.05rem; }
.t3-prose-rules p { margin: 0 0 1em; }
.t3-prose-rules ol,
.t3-prose-rules ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
}
.t3-prose-rules li { margin: 0.35em 0; }
.t3-prose-rules strong { color: var(--t3-text); }
.t3-prose-rules table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 14px;
}
.t3-prose-rules th,
.t3-prose-rules td {
  border: 1px solid var(--t3-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.t3-prose-rules th {
  background: rgba(215, 150, 127, 0.1);
  color: var(--t3-gold);
  font-weight: 600;
}
.t3-prose-rules a {
  color: var(--t3-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.t3-tags--rules { margin-top: 14px; }
.t3-rules-kw-note {
  margin-top: 2em;
  padding-top: 1.25em;
  border-top: 1px solid var(--t3-border);
  font-size: 14px;
  color: var(--t3-text-dim);
  line-height: 1.65;
}

/* Collapsible rules TOC — summary hidden on desktop via script + CSS */
.t3-rules-nav-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  user-select: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(215, 150, 127, 0.28);
  background: rgba(215, 150, 127, 0.08);
  color: var(--t3-text);
  font-size: 14px;
  font-weight: 600;
}
.t3-rules-nav-summary::-webkit-details-marker { display: none; }
.t3-rules-nav-summary-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--t3-gold);
}
.t3-rules-nav-summary-hint::after { content: '展开'; }
.t3-rules-nav-details[open] .t3-rules-nav-summary-hint::after { content: '收起'; }

@media (max-width: 900px) {
  .t3-rules-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .t3-rules-main {
    order: 1;
    padding: 20px 16px 32px;
    max-width: none;
  }
  .t3-rules-aside {
    order: 2;
    position: relative;
    top: 0;
    max-height: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--t3-border);
    padding: 16px 16px 24px;
    background: rgba(8, 12, 24, 0.96);
  }
  .t3-rules-aside-head {
    margin-bottom: 10px;
  }
  .t3-rules-aside-title {
    font-size: 14px;
  }
  .t3-rules-nav-summary {
    display: flex;
  }
  .t3-rules-h1 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.3;
    word-break: break-word;
  }
  .t3-rules-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
    word-break: break-word;
  }
  .t3-prose-rules {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .t3-prose-rules p,
  .t3-prose-rules li {
    text-align: left !important;
  }
  .t3-prose-rules h2 { font-size: 1.2rem; }
  .t3-prose-rules h4 { font-size: 1rem; }
  .t3-prose-rules table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .t3-prose-rules table tbody,
  .t3-prose-rules table thead,
  .t3-prose-rules table tr {
    display: table;
    width: 100%;
    min-width: 520px;
    table-layout: auto;
  }
  .t3-prose-rules th,
  .t3-prose-rules td {
    padding: 8px 10px;
    white-space: normal;
    min-width: 72px;
  }
  .t3-tags--rules {
    gap: 8px;
  }
  .t3-tags--rules .t3-tag {
    font-size: 11px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .t3-rules-nav-item > a {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .t3-rules-nav-list--depth-1 { padding-left: 8px; }
  .t3-rules-nav-list--depth-2 { padding-left: 6px; }
}

@media (min-width: 901px) {
  .t3-rules-nav-summary { display: none !important; }
}

@media (max-width: 600px) {
  .t3-rules-main {
    padding: 16px 14px 28px;
  }
  .t3-rules-aside {
    padding: 14px 14px 20px;
  }
  .t3-prose-rules {
    font-size: 14.5px;
  }
}

/* ============================================================
   theme_012 — Studio Noir overrides (homepage-focused)
   PG-inspired premium game-studio skin on top of the base.
   ============================================================ */

/* Subtle grain/vignette so the near-black bg reads cinematic. */
body.theme-012 {
  background:
    radial-gradient(1200px 600px at 50% -8%, rgba(203,145,121,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 8%, rgba(215,150,127,.06), transparent 55%),
    var(--t3-bg);
}

/* ---------- Header ---------- */
.t12-header {
  /* Solid fallback; blur lives on ::before so fixed mobile nav is NOT trapped
     by backdrop-filter (which would cover brand/toggle on phones). */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 10, 0.94);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-top: env(safe-area-inset-top, 0px);
  /* Override .t3-header backdrop-filter — it creates a fixed containing block */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.t12-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.t12-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.t12-brand {
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  max-width: calc(100% - 120px);
}
.t12-brand__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.t12-brand .t3-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.t12-brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--t12-gold-grad);
  color: #0a0a0f; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 14px rgba(184,117,89,.4);
}
.t12-brand-tag {
  color: var(--t3-gold);
  border-color: rgba(215,150,127,.4);
  letter-spacing: .16em; font-weight: 600;
}
.t12-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  flex-wrap: nowrap;
}
.t12-nav > a,
.t12-nav-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--t3-text-mid) !important;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.t12-nav > a:hover,
.t12-nav-more__btn:hover {
  color: var(--t3-text) !important;
  background: rgba(255, 255, 255, 0.05);
}
.t12-nav > a.t3-nav-active,
.t12-nav-more__btn.t3-nav-active {
  color: var(--t3-gold) !important;
  background: rgba(215, 150, 127, 0.12);
  box-shadow: inset 0 -2px 0 var(--t3-gold);
}
.t12-nav-more {
  position: relative;
}
.t12-nav-more__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform .15s ease;
}
.t12-nav-more__btn[aria-expanded="true"] .t12-nav-more__caret {
  transform: rotate(180deg);
}
.t12-nav-more__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12, 18, 28, 0.96);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  display: grid;
  gap: 2px;
  z-index: 60;
}
.t12-nav-more__panel[hidden] { display: none !important; }
.t12-nav-more__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--t3-text-mid) !important;
  font-size: 13.5px;
  font-weight: 500;
}
.t12-nav-more__panel a:hover,
.t12-nav-more__panel a.is-active {
  color: var(--t3-gold) !important;
  background: rgba(215, 150, 127, 0.12);
}
.t12-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.t12-cta--header {
  margin-left: 0;
  padding: 9px 16px;
  font-size: 13.5px;
  flex-shrink: 0;
}
.t12-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--t3-text);
  cursor: pointer;
}
.t12-nav-toggle__bars,
.t12-nav-toggle__bars::before,
.t12-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform .18s ease, opacity .18s ease;
}
.t12-nav-toggle__bars::before,
.t12-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.t12-nav-toggle__bars::before { top: -6px; }
.t12-nav-toggle__bars::after { top: 6px; }
.t12-header.is-nav-open .t12-nav-toggle__bars { background: transparent; }
.t12-header.is-nav-open .t12-nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.t12-header.is-nav-open .t12-nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
body.t12-nav-lock { overflow: hidden; }

@media (max-width: 1180px) {
  .t12-brand-tag { display: none; }
  .t12-nav > a,
  .t12-nav-more__btn { padding: 8px 8px; font-size: 13px; }
}

@media (max-width: 1100px) {
  .t12-nav > a,
  .t12-nav-more__btn { padding: 7px 7px; font-size: 12.5px; letter-spacing: 0; }
}

@media (max-width: 980px) {
  .t12-nav-toggle { display: grid !important; }
  .t12-nav {
    position: fixed;
    top: calc(68px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    z-index: 1; /* below .t12-header__inner (2) so brand/toggle stay visible */
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(5, 8, 14, 0.97);
    border-top: 1px solid rgba(255,255,255,.06);
    /* no backdrop-filter here — would re-trap fixed descendants */
  }
  .t12-header.is-nav-open .t12-nav { display: flex !important; }
  .t12-nav > a,
  .t12-nav-more__btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 14px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
  }
  .t12-nav-more__panel {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255,255,255,.03);
  }
  .t12-cta--header {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  /* Kill legacy t3-nav mobile rules that force a second horizontal strip */
  .t12-header .t3-nav.t12-nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .t12-header__inner { min-height: 60px; gap: 8px; }
  .t12-nav {
    top: calc(60px + env(safe-area-inset-top, 0px));
  }
  .t12-header .t12-cta--header { display: none !important; }
  .t12-brand { max-width: calc(100% - 56px); }
  .t3-brand-name { font-size: 16px; }
}

/* ---------- Gold CTA button ---------- */
.t12-cta {
  --_bg: var(--t12-gold-grad);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--_bg);
  color: #0a0a0f !important;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(184,117,89,.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space: nowrap;
}
.t12-cta:hover { transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(184,117,89,.42); color:#0a0a0f !important; }
.t12-cta span { transition: transform .16s ease; }
.t12-cta:hover span { transform: translateX(3px); }
.t12-cta--header { margin-left: 0; }
.t12-cta--lg { padding: 15px 30px; font-size: 15.5px; }
.t12-cta--ghost {
  background: transparent; color: var(--t3-text) !important;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.t12-cta--ghost:hover {
  border-color: var(--t3-gold); color: var(--t3-gold) !important;
  box-shadow: none; filter: none;
}

/* ---------- Hero ---------- */
.t12-hero {
  padding: 132px 0 116px;
  background-color: #07101c;
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
}
.t12-hero::before {
  background:
    radial-gradient(60% 80% at 82% -10%, rgba(203,145,121,.24), transparent 60%),
    radial-gradient(50% 70% at 8% 115%, rgba(215,150,127,.16), transparent 55%),
    linear-gradient(180deg, rgba(7, 16, 28,.2), rgba(7, 16, 28,.75));
}
.t12-hero--photo::before {
  background:
    linear-gradient(180deg, rgba(7, 16, 28,.6) 0%, rgba(7, 16, 28,.9) 100%),
    radial-gradient(60% 80% at 82% -10%, rgba(203,145,121,.28), transparent 60%);
}
.t12-hero-eyebrow {
  background: rgba(255,255,255,.04);
  border-color: rgba(215,150,127,.35);
  backdrop-filter: blur(6px);
}
.t12-hero-kicker {
  font-family: var(--t3-serif);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 104px);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(245,243,236,.32);
  text-transform: uppercase;
}
.t12-hero-kicker em {
  font-style: normal;
  -webkit-text-stroke: 0;
  background: var(--t12-gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(184,117,89,.35));
}
.t12-hero-title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--t3-text-mid);
  max-width: 780px;
  margin: 0 0 18px;
  letter-spacing: .01em;
}
.t12-hero-lead { max-width: 640px; color: var(--t3-text-mid); }
.t12-hero-lead strong { color: var(--t3-gold); }
.t12-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.t12-hero-scroll {
  margin-top: 46px; display: flex; align-items: center; gap: 12px;
  color: var(--t3-text-dim); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.t12-hero-scroll-line {
  width: 60px; height: 1px; background: linear-gradient(90deg, var(--t3-gold), transparent);
  position: relative; overflow: hidden;
}
.t12-hero-scroll-line::after {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: var(--t3-gold-2);
  animation: t12-scan 1.8s ease-in-out infinite;
}
@keyframes t12-scan { 0%{left:-30%} 100%{left:110%} }

/* Floating game orbs */
.t12-hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.t12-orb {
  position: absolute; border-radius: 26px;
  background-size: cover; background-position: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
  opacity: .55; filter: saturate(1.05);
  animation: t12-float 9s ease-in-out infinite;
}
.t12-orb[style*="--t12-orb-hue"] {
  background-image:
    linear-gradient(140deg,
      hsl(var(--t12-orb-hue,250) 70% 55% / .9),
      hsl(calc(var(--t12-orb-hue,250) + 40) 70% 40% / .9));
}
.t12-orb--1 { width: 150px; height: 190px; right: 6%;  top: 14%; transform: rotate(6deg);  animation-delay: 0s; }
.t12-orb--2 { width: 110px; height: 140px; right: 22%; top: 46%; transform: rotate(-8deg); animation-delay: -1.4s; opacity:.42; }
.t12-orb--3 { width: 128px; height: 160px; right: 15%; bottom: 8%; transform: rotate(4deg); animation-delay: -2.8s; opacity:.5; }
.t12-orb--4 { width: 92px;  height: 118px; right: 38%; top: 20%; transform: rotate(10deg); animation-delay: -4.2s; opacity:.34; }
.t12-orb--5 { width: 80px;  height: 100px; right: 30%; bottom: 22%; transform: rotate(-5deg); animation-delay: -5.6s; opacity:.3; }
@keyframes t12-float {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -18px; }
}
@media (max-width: 900px) { .t12-hero-orbs { display: none; } }

/* ---------- Shared section eyebrow / head ---------- */
.t12-eyebrow {
  letter-spacing: .24em; font-weight: 700;
  color: var(--t3-gold);
}
.t12-section-head { margin-bottom: 44px; }

/* ---------- Hero (full-bleed bg + overlay, no video) ---------- */
.dbg-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dbg-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dbg-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}
.dbg-home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(7, 16, 28, 0.94) 0%,
      rgba(7, 16, 28, 0.82) 34%,
      rgba(16, 28, 42, 0.52) 58%,
      rgba(16, 28, 42, 0.22) 78%,
      rgba(7, 16, 28, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 16, 28, 0.12) 0%,
      rgba(7, 16, 28, 0.08) 42%,
      rgba(7, 16, 28, 0.72) 100%
    );
}
.dbg-home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(100px, 12vh, 148px) 24px clamp(48px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
}
.dbg-home-hero__content { max-width: 760px; }
.dbg-home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(215,150,127,.35);
  background: rgba(255,255,255,.04);
  font-size: 11px;
  letter-spacing: .22em;
}
.dbg-home-hero__title {
  margin: 0 0 20px;
  font-family: var(--t3-serif);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .01em;
  color: #fff;
  text-transform: uppercase;
}
.dbg-home-hero__accent {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
  background: var(--t12-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dbg-home-hero__lead {
  margin: 0 0 28px;
  max-width: 620px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.85;
  color: rgba(255,255,255,.82);
}
.dbg-home-hero__actions { margin-top: 4px; }
.dbg-home-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 5vh, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.dbg-home-hero__tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.dbg-home-hero__tab:hover {
  border-color: rgba(215,150,127,.55);
  background: rgba(215,150,127,.12);
  color: var(--t3-gold-2) !important;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .dbg-home-hero { min-height: min(78vh, 700px); }
  .dbg-home-hero__media img { object-position: center 40%; }
  .dbg-home-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 16, 28, 0.55) 0%,
        rgba(7, 16, 28, 0.88) 62%,
        rgba(7, 16, 28, 0.94) 100%
      );
  }
  .dbg-home-hero__tabs { gap: 8px; }
  .dbg-home-hero__tab { padding: 8px 14px; font-size: 12px; }
}

/* ---------- DB Gaming 游戏产品 (Home — static bg + overlay, no video) ---------- */
.dbg-products {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 880px);
  padding: clamp(64px, 8vh, 96px) 0 clamp(48px, 6vh, 72px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dbg-products__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dbg-products__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .45s ease;
}
.dbg-products__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(7, 16, 28, 0.82);
  pointer-events: none;
}
.dbg-products__shell {
  position: relative;
  z-index: 2;
}

.dbg-products__card {
  background: rgba(16, 28, 42, 0.78);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 36px) clamp(32px, 4vw, 44px);
  backdrop-filter: blur(10px);
  box-shadow: var(--t3-shadow);
}

.dbg-products__heading.titile-header {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--t3-serif);
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--t3-text);
}

/* Accent line — BOB gold/copper (replaces dbgaming orange) */
.dbg-line-orange {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
}
.dbg-line-orange span {
  display: block;
  height: 7.5px;
  width: 26px;
  margin-right: 8px;
  transform: skewX(-45deg);
}
.dbg-line-orange span:last-child { margin-right: 0; }
.dbg-line-orange__one,
.dbg-line-orange__two { background: var(--t3-crimson); }
.dbg-line-orange__three { background: var(--t3-gold); }

/* Category tabs — inset tray inside the card */
.dbg-products__tabs-tray {
  margin-bottom: 0;
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.5vw, 16px);
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.55);
}
.dbg-products__tabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
}
.dbg-products__tab-col { flex: 0 0 auto; }
.dbg-products__tab-btn {
  --dbg-ped-w: 92px;
  --dbg-ped-h: 50px;
  --dbg-ped-bottom: 8px;
  position: relative;
  display: block;
  width: 118px;
  height: 96px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform .2s ease;
}
.dbg-products__tab-btn:hover {
  background: transparent;
}
.dbg-products__tab-btn.is-active {
  background: transparent;
  box-shadow: none;
}
.dbg-products__tab-btn:focus-visible {
  outline: 2px solid rgba(215, 150, 127, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}
.dbg-products__tab-btn .tab-title {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(var(--dbg-ped-bottom) + var(--dbg-ped-h) * 0.48);
  z-index: 4;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: calc(var(--dbg-ped-w) - 8px);
  opacity: 1;
  pointer-events: none;
  transition: transform .22s ease, color .2s ease;
}
.dbg-products__tab-btn .title-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
  opacity: 0.92;
  transition: opacity .2s ease, filter .2s ease;
}
.dbg-products__tab-btn .title-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3-text-mid);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  transition: color .2s ease;
}
.dbg-products__tab-btn:hover .title-icon,
.dbg-products__tab-btn.is-active .title-icon {
  opacity: 1;
}
.dbg-products__tab-btn:hover .title-text {
  color: var(--t3-text);
}
.dbg-products__tab-btn.is-active .title-text {
  color: #0c1018;
  font-weight: 700;
  text-shadow: none;
}
.dbg-products__tab-btn.is-active .title-icon {
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.25));
}
.dbg-products__tab-btn .img,
.dbg-products__tab-btn .img_move,
.dbg-products__tab-btn .img_hover {
  position: absolute;
  left: 50%;
  bottom: var(--dbg-ped-bottom);
  transform: translateX(-50%);
  width: var(--dbg-ped-w);
  height: auto;
  object-fit: contain;
  transition: opacity .22s ease, transform .28s ease;
}
.dbg-products__tab-btn .img { opacity: 1; z-index: 1; }
.dbg-products__tab-btn .img_move {
  opacity: 0;
  z-index: 2;
  animation: dbg-tab-bounce 2.4s ease-in-out infinite;
}
.dbg-products__tab-btn .img_hover { opacity: 0; z-index: 2; }
.dbg-products__tab-btn:hover .img_move { opacity: 1; }
.dbg-products__tab-btn:hover .img { opacity: .35; }
.dbg-products__tab-btn:hover:not(.is-active) .tab-title {
  transform: translate(-50%, calc(50% - 2px));
}
/* Active: gold pedestal + centered icon/label inside */
.dbg-products__tab-btn.is-active .img { opacity: 0; }
.dbg-products__tab-btn.is-active .img_move,
.dbg-products__tab-btn.is-active .img_hover { opacity: 0; }
.dbg-products__tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--dbg-ped-bottom);
  z-index: 2;
  width: calc(var(--dbg-ped-w) - 4px);
  height: var(--dbg-ped-h);
  transform: translateX(-50%) skewX(-14deg);
  border-radius: 3px;
  background: var(--t12-btn-grad);
  box-shadow: 0 8px 22px rgba(184, 117, 89, 0.38);
}

@keyframes dbg-tab-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* Detail panel — fixed slot so tab switches do not reflow */
.dbg-products__panels {
  position: relative;
  height: 460px;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--t3-line-soft);
  overflow: hidden;
}
.dbg-products__panel {
  position: absolute;
  inset: 24px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease, visibility .22s ease;
}
.dbg-products__panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dbg-products__panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
  gap: 12px 24px;
  height: 100%;
  position: relative;
}
.dbg-products__panel .left-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 8px;
  text-align: left;
  min-height: 0;
}
.dbg-products__panel .img-title {
  margin: 0 0 12px;
  min-height: 1.35em;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--t3-text);
  letter-spacing: .02em;
}
.dbg-products__panel .h-span {
  margin: 0 0 16px;
  min-height: calc(1.85em * 4);
  max-height: calc(1.85em * 4);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--t3-text-mid);
  max-width: 640px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.dbg-products__bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  min-height: 76px;
  margin-bottom: 20px;
}
.dbg-products__panel .list-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t3-text-mid);
}
.dbg-products__panel .list-text img {
  flex-shrink: 0;
  margin-top: 3px;
  filter: hue-rotate(-18deg) saturate(0.85);
}
.dbg-products__panel .circle-text { flex: 1; }

.dbg-products__cta.t12-cta {
  min-width: 200px;
  justify-content: center;
  letter-spacing: .06em;
}

.dbg-products__person-slot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 400px;
  height: 420px;
  flex-shrink: 0;
  margin-left: auto;
}
.dbg-products__panel .person_img {
  display: block;
  width: 400px;
  height: 420px;
  margin: 0;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
}
.dbg-products__panel .game_btn_group {
  flex-shrink: 0;
  min-height: 52px;
}

@media (max-width: 960px) {
  .dbg-products { min-height: auto; padding-top: 56px; }
  .dbg-products__tabs-tray { padding: 12px 8px; }
  .dbg-products__tab-btn {
    --dbg-ped-w: 72px;
    --dbg-ped-h: 40px;
    --dbg-ped-bottom: 6px;
    width: 88px;
    height: 84px;
  }
  .dbg-products__tab-btn .title-icon { width: 22px; height: 22px; }
  .dbg-products__tab-btn .title-text { font-size: 11px; }
  .dbg-products__panels {
    height: 680px;
    min-height: 680px;
    overflow: hidden;
  }
  .dbg-products__panel {
    position: absolute;
    inset: 24px 0 0;
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .dbg-products__panel.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .dbg-products__panel-row {
    grid-template-columns: 1fr;
    height: 100%;
    align-content: end;
  }
  .dbg-products__panel .left-panel {
    justify-content: flex-end;
  }
  .dbg-products__panel .h-span {
    min-height: calc(1.85em * 3);
    max-height: calc(1.85em * 3);
    -webkit-line-clamp: 3;
  }
  .dbg-products__bullets { min-height: 56px; }
  .dbg-products__person-slot {
    width: 320px;
    height: 340px;
    margin: 0 auto;
  }
  .dbg-products__panel .person_img {
    width: 320px;
    height: 340px;
  }
  .dbg-products__bullets { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dbg-products__tabs-row { gap: 4px; }
  .dbg-products__tab-btn {
    --dbg-ped-w: 58px;
    --dbg-ped-h: 32px;
    --dbg-ped-bottom: 4px;
    width: 72px;
    height: 72px;
  }
  .dbg-products__tab-btn .title-icon { width: 20px; height: 20px; }
  .dbg-products__tab-btn .title-text { font-size: 10px; }
  .dbg-products__person-slot {
    width: 260px;
    height: 280px;
  }
  .dbg-products__panel .person_img {
    width: 260px;
    height: 280px;
  }
}

/* Value-split hero: h1 mirrors the h2 sizing used by the base layout. */
.t12-hero-split { padding: clamp(64px, 9vh, 92px) 0; }
.t12-hero-split .t3-value-main .t3-prose h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.22;
  margin: 8px 0 16px;
  color: var(--t3-text);
}
.t12-hero-split .t3-value-main .t3-prose { max-width: none; }
.t12-hero-split .t12-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

/* Mirror the split (desktop only): photo on the RIGHT, prose on the LEFT.
   Scoped to >=921px so the mobile stacked layout (base rules) is untouched. */
@media (min-width: 921px) {
  .t12-hero-split .t3-value-bg { left: auto; right: 0; }
  .t12-hero-split .t3-value-bg::after {
    background: linear-gradient(
      270deg,
      rgba(5, 6, 10, 0.20) 0%,
      rgba(5, 6, 10, 0.05) 40%,
      rgba(21, 24, 38, 0.55) 72%,
      var(--t3-bg-elev) 100%
    );
  }
  .t12-hero-split .t3-value-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .t12-hero-split .t3-value-main { grid-column: 1; }
}

/* ---------- DATA stats band ---------- */
.t12-stats-band {
  background:
    linear-gradient(180deg, rgba(203,145,121,.06), transparent),
    var(--t3-bg-elev);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 34px 0;
}
.t12-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.t12-stat { position: relative; padding: 6px 8px; }
.t12-stat + .t12-stat::before {
  content: ""; position: absolute; left: -10px; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,.08);
}
.t12-stat-k {
  font-family: var(--t3-serif); font-weight: 900;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1;
  background: var(--t12-gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t12-stat-k span { -webkit-text-fill-color: var(--t3-crimson); }
.t12-stat-v { margin-top: 8px; color: var(--t3-text-mid); font-size: 13.5px; letter-spacing: .04em; }

/* ---------- GAMES matrix (legacy cards, category pages) ---------- */
.t12-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ---------- GAMES (PG Soft gamewall) ---------- */
.pg-game-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--t3-bg-elev);
}
.pg-game-scroll { position: relative; }
.pg-game-intro {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(64px, 8vh, 92px) 24px 32px;
}
.pg-game-title {
  margin: 0 0 20px;
  font-family: var(--t3-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--t3-text);
}
.pg-game-lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--t3-text-mid);
}
.pg-game-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--t12-btn-grad);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 12px 32px rgba(184,117,89,.32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pg-game-all-btn:hover {
  transform: translateY(-2px);
  background: var(--t12-btn-grad-hover);
  box-shadow: 0 16px 40px rgba(184,117,89,.42);
  color: #fff !important;
}
.pg-game-all-arrow { font-size: 16px; line-height: 1; }

/* Mobile icon rows */
.pg-game-mob-wall {
  display: none;
  overflow: hidden;
  padding: 8px 0 40px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pg-game-wall-row { overflow: hidden; margin-bottom: 10px; }
.pg-game-wall-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: pg-game-marquee 30s linear infinite;
}
.pg-game-wall-tile {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
}
.pg-game-wall-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop wall */
.pg-game-wall {
  position: relative;
  min-height: 520px;
  padding-bottom: 48px;
}
.pg-game-wall-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pg-game-wall-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 45%, rgba(7, 16, 28,.15), rgba(7, 16, 28,.82) 72%),
    linear-gradient(180deg, transparent 0%, rgba(7, 16, 28,.55) 100%);
}
.pg-game-feature {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  text-align: center;
  pointer-events: auto;
}
.pg-game-phone {
  position: relative;
  width: min(220px, 42vw);
  margin: 0 auto;
}
.pg-game-phone-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.55));
}
.pg-game-phone-screen {
  position: absolute;
  z-index: 1;
  left: 11%;
  right: 11%;
  top: 8%;
  bottom: 8%;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}
.pg-game-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg-game-feature-meta { margin-top: 18px; }
.pg-game-feature-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--t3-text);
  margin-bottom: 8px;
}
.pg-game-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3-gold) !important;
  letter-spacing: .04em;
}

.pg-game-wall-cols {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  overflow: hidden;
  padding: 20px 0 0;
  min-height: 480px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.pg-game-wall-col {
  flex: 0 0 130px;
  height: 480px;
  overflow: hidden;
}
.pg-game-wall-col-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: pg-game-col-scroll 26s linear infinite;
}
.pg-game-wall-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 130px;
  height: 220px;
  transition: transform .2s ease;
}
.pg-game-wall-item:hover { transform: scale(1.04); z-index: 2; }
.pg-game-wall-phone {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.pg-game-wall-cover {
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  top: 7%;
  bottom: 22%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

@keyframes pg-game-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pg-game-col-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (max-width: 900px) {
  .pg-game-wall { display: none; }
  .pg-game-mob-wall { display: block; }
  .pg-game-intro { padding-bottom: 16px; }
}
@media (min-width: 901px) {
  .pg-game-mob-wall { display: none; }
}

.t12-game-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid var(--t3-line);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  color: var(--t3-text) !important;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.t12-game-card--placeholder {
  background-image:
    linear-gradient(160deg,
      hsl(var(--t12-card-hue,250) 60% 22%),
      hsl(calc(var(--t12-card-hue,250) + 30) 55% 10%));
}
.t12-game-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 28,0) 30%, rgba(7, 16, 28,.55) 62%, rgba(7, 16, 28,.92) 100%);
  transition: background .2s ease;
}
.t12-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--t3-gold);
  box-shadow: var(--t12-glow-gold);
}
.t12-game-card:hover .t12-game-scrim {
  background: linear-gradient(180deg, rgba(7, 16, 28,.1) 10%, rgba(7, 16, 28,.6) 55%, rgba(7, 16, 28,.95) 100%);
}
.t12-game-idx {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--t3-serif); font-weight: 800; font-size: 13px;
  color: var(--t3-gold); letter-spacing: .1em;
  background: rgba(7, 16, 28,.5); border: 1px solid rgba(215,150,127,.35);
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.t12-game-body { display: flex; flex-direction: column; gap: 6px; }
.t12-game-title {
  font-family: var(--t3-serif); font-weight: 700; font-size: 20px; line-height: 1.2;
}
.t12-game-play {
  font-size: 12.5px; color: var(--t3-gold-2); letter-spacing: .04em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.t12-game-play b { transition: transform .16s ease; display: inline-block; }
.t12-game-card:hover .t12-game-play { opacity: 1; transform: translateY(0); }
.t12-game-card:hover .t12-game-play b { transform: translateX(4px); }

/* ---------- FEATURES ---------- */
.t12-feature { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.t12-feature:hover { transform: translateY(-3px); border-color: var(--t3-gold); background: var(--t3-bg-soft); }
.t12-feature .t3-principle-num {
  background: rgba(215,150,127,.08);
  color: var(--t3-gold);
  border-color: rgba(215,150,127,.4);
}

/* ---------- LICENSING ---------- */
.t12-license {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.t12-license-card {
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.t12-license-card:hover { transform: translateY(-3px); border-color: var(--t3-gold); }
.t12-license-badge {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 22px; color: #0a0a0f;
  background: var(--t12-gold-grad);
  box-shadow: 0 6px 18px rgba(184,117,89,.35);
}
.t12-license-card h3 { margin: 0 0 8px; font-size: 17px; }
.t12-license-card p { margin: 0; color: var(--t3-text-mid); font-size: 14px; line-height: 1.65; }

/* ---------- PARTNERS marquee ---------- */
.t12-partners { padding: 56px 0 60px; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.t12-partners-head {
  text-align: center; color: var(--t3-gold);
  letter-spacing: .24em; font-weight: 700; font-size: 12px; text-transform: uppercase;
  margin-bottom: 28px;
}
.t12-marquee { position: relative; width: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.t12-marquee-track { display: inline-flex; gap: 44px; white-space: nowrap;
  animation: t12-marquee 32s linear infinite; will-change: transform; }
.t12-marquee:hover .t12-marquee-track { animation-play-state: paused; }
@keyframes t12-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t12-brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease;
}
.t12-brand-chip img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.t12-brand-chip:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ---------- Sport hub (/game/sport) — reuses baccarat hero shell ---------- */
/* Poster is a transparent cutout (players), not a photo: keep it right-aligned
   with `contain` instead of baccarat's full-bleed `cover`. */
.t12-bac-hero--sport .t12-bac-hero__media {
  inset: 0 -2% 0 38%;
}
.t12-bac-hero--sport .t12-bac-hero__media img {
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}
.t12-bac-hero--sport .t12-bac-hero__overlay {
  background:
    linear-gradient(105deg, rgba(7, 16, 28, 0.98) 0%, rgba(7, 16, 28, 0.86) 40%, rgba(16, 28, 42, 0.28) 68%, rgba(7, 16, 28, 0.45) 100%),
    linear-gradient(180deg, transparent 0%, rgba(7, 16, 28, 0.75) 100%),
    radial-gradient(ellipse 48% 58% at 76% 48%, rgba(215, 150, 127, 0.12), transparent 68%);
}
.t12-bac-hero--sport .t12-bac-hero__copy { max-width: 560px; }
.t12-bac-hero--sport .t12-bac-hero__lead { max-width: 48ch; }
@media (max-width: 960px) {
  .t12-bac-hero--sport .t12-bac-hero__media {
    inset: 0;
    opacity: 0.3;
  }
  .t12-bac-hero--sport .t12-bac-hero__media img {
    object-position: center bottom;
  }
  .t12-bac-hero--sport .t12-bac-hero__overlay {
    background:
      linear-gradient(180deg, rgba(7, 16, 28, 0.6) 0%, rgba(7, 16, 28, 0.9) 55%, rgba(7, 16, 28, 0.98) 100%);
  }
}

.t12-sport-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.t12-sport-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--t3-line-soft);
  border-radius: var(--t3-radius);
  background: rgba(7, 16, 28, 0.5);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.t12-sport-card:hover,
.t12-sport-card.is-active {
  border-color: rgba(215, 150, 127, 0.55);
  background: rgba(215, 150, 127, 0.07);
  transform: translateY(-3px);
  box-shadow: var(--t12-glow-gold);
}
.t12-sport-card__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse 70% 80% at 50% 70%, rgba(215, 150, 127, 0.16), transparent 65%),
    var(--t3-bg-elev);
  overflow: hidden;
}
.t12-sport-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.t12-sport-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
}
.t12-sport-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--t3-gold-2);
}
.t12-sport-card__en {
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t3-text-dim);
}
.t12-sport-card__promo {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--t3-gold);
}
.t12-sport-card__desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--t3-text-mid);
}
.t12-sport-platforms__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 960px) {
  .t12-sport-platforms {
    grid-template-columns: 1fr;
  }
}

/* ---------- Baccarat hub (/baccarat/) ---------- */
.t12-bac-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vh, 640px);
  border-bottom: 1px solid var(--t3-line-soft);
}
.t12-bac-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.t12-bac-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.t12-bac-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(7, 16, 28, 0.94) 0%, rgba(7, 16, 28, 0.78) 40%, rgba(16, 28, 42, 0.35) 100%),
    linear-gradient(180deg, transparent 0%, rgba(7, 16, 28, 0.75) 100%);
}
.t12-bac-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(88px, 10vh, 120px) 24px clamp(56px, 7vh, 80px);
}
.t12-bac-crumb { margin-bottom: 20px; }
.t12-bac-hero__title {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: .04em;
}
.t12-bac-hero__en {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--t3-gold);
}
.t12-bac-hero__lead {
  margin: 0 0 26px;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--t3-text-mid);
}
.t12-bac-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.t12-bac-sec {
  padding: clamp(56px, 7vh, 80px) 0;
  border-bottom: 1px solid var(--t3-line-soft);
}
.t12-bac-sec--soft { background: rgba(16, 28, 42, 0.45); }
.t12-bac-head { margin-bottom: 32px; }
.t12-bac-head--center { text-align: center; }
.t12-bac-head__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}
.t12-bac-head__sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--t3-gold);
  text-transform: uppercase;
}

.t12-bac-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.t12-bac-feature {
  padding: 22px 22px 24px;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.45);
}
.t12-bac-feature__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--t3-gold-2);
}
.t12-bac-feature__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--t3-text-mid);
}

.t12-bac-brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.t12-bac-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.35);
  text-align: center;
  color: var(--t3-text) !important;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.t12-bac-brand-card:hover {
  border-color: rgba(215, 150, 127, 0.55);
  background: rgba(215, 150, 127, 0.08);
  transform: translateY(-2px);
  color: var(--t3-gold-2) !important;
}
.t12-bac-brand-card img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.t12-bac-brand-card span {
  font-size: 12px;
  color: inherit;
}

.t12-bac-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.t12-bac-promo {
  padding: 26px 24px;
  border-radius: var(--t3-radius);
  border: 1px solid var(--t3-line-soft);
  background: linear-gradient(145deg, rgba(26, 40, 56, 0.7), rgba(7, 16, 28, 0.8));
}
.t12-bac-promo h3 { margin: 0 0 12px; font-size: 20px; }
.t12-bac-promo p { margin: 0 0 18px; color: var(--t3-text-mid); line-height: 1.85; }

.t12-bac-hosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.t12-bac-host {
  padding: 22px;
  border-left: 3px solid var(--t3-gold);
  background: rgba(7, 16, 28, 0.35);
}
.t12-bac-host h3 { margin: 0 0 10px; font-size: 18px; }
.t12-bac-host p { margin: 0; color: var(--t3-text-mid); line-height: 1.85; }

.t12-bac-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.t12-bac-basic {
  padding: 20px;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.4);
}
.t12-bac-basic h3 { margin: 0 0 10px; font-size: 17px; color: var(--t3-gold-2); }
.t12-bac-basic p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--t3-text-mid); }

.t12-bac-prose {
  margin: 0 0 20px;
  max-width: 820px;
  line-height: 1.9;
  color: var(--t3-text-mid);
}
.t12-bac-prose--note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--t3-gold);
  background: rgba(215, 150, 127, 0.08);
  border-radius: 0 var(--t3-radius-sm) var(--t3-radius-sm) 0;
}
.t12-bac-score-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.t12-bac-score-card {
  padding: 18px;
  text-align: center;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.45);
}
.t12-bac-score-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--t3-text);
}
.t12-bac-score-card span {
  font-size: 22px;
  font-weight: 800;
  color: var(--t3-gold);
}

.t12-bac-table-wrap { overflow-x: auto; }
.t12-bac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.t12-bac-table th,
.t12-bac-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--t3-line-soft);
  text-align: left;
}
.t12-bac-table th {
  color: var(--t3-gold-2);
  font-weight: 700;
  background: rgba(7, 16, 28, 0.55);
}
.t12-bac-table td strong { color: var(--t3-gold); }
.t12-bac-odds-cta { margin-top: 28px; text-align: center; }

.t12-bac-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.t12-bac-term {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.45);
  font-size: 13px;
  color: var(--t3-text-mid);
}

.t12-bac-other {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.t12-bac-other__link {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(215, 150, 127, 0.35);
  background: rgba(215, 150, 127, 0.08);
  color: var(--t3-text) !important;
  font-weight: 600;
  font-size: 14px;
}
.t12-bac-other__link:hover {
  border-color: rgba(215, 150, 127, 0.6);
  color: var(--t3-gold-2) !important;
}

/* Guide hub on /baccarat/ */
.t12-bac-guide-hub { position: relative; }
.t12-bac-guide-hub__intro { margin-bottom: 28px; }
.t12-bac-guide-hub__panel {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.t12-bac-guide-intro {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--t3-text-mid);
  line-height: 1.85;
}
.t12-bac-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.t12-bac-quick-link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--t3-line);
  background: rgba(7, 16, 28, 0.45);
  color: var(--t3-text) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.t12-bac-quick-link:hover {
  border-color: rgba(215, 150, 127, 0.55);
  color: var(--t3-gold-2) !important;
}
.t12-bac-guide-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.t12-bac-guide-group {
  padding: 20px 22px;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.45);
}
.t12-bac-guide-group__title {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--t3-gold-2);
}
.t12-bac-guide-tile-grid {
  display: grid;
  gap: 8px;
}
.t12-bac-guide-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--t3-line-soft);
  background: rgba(16, 28, 42, 0.55);
  color: var(--t3-text) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.t12-bac-guide-tile:hover {
  border-color: rgba(215, 150, 127, 0.55);
  background: rgba(215, 150, 127, 0.1);
  color: var(--t3-gold-2) !important;
  transform: translateX(2px);
}
.t12-bac-guide-tile__arrow {
  color: var(--t3-gold);
  opacity: 0.85;
  flex-shrink: 0;
}
.t12-bac-feature__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3-gold) !important;
}
.t12-bac-host__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3-gold) !important;
}

/* Guide article pages (/baccarat/guide/*) */
.t12-bac-guide-top {
  padding: 24px 0 0;
  border-bottom: 1px solid var(--t3-line-soft);
  background: rgba(7, 16, 28, 0.55);
}
.t12-bac-guide-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  align-items: start;
}
.t12-bac-guide-aside {
  position: sticky;
  top: 84px;
  padding: 18px;
  border-radius: var(--t3-radius-sm);
  border: 1px solid var(--t3-line-soft);
  background: rgba(16, 28, 42, 0.75);
  backdrop-filter: blur(8px);
}
.t12-bac-guide-aside-title {
  margin: 8px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--t3-text);
}
.t12-bac-guide-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--t3-gold) !important;
}
.t12-bac-guide-nav-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-weight: 600;
  color: var(--t3-text);
}
.t12-bac-guide-nav-summary::-webkit-details-marker { display: none; }
.t12-bac-guide-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.t12-bac-guide-nav-list--depth-1 { padding-left: 10px; margin-top: 4px; }
.t12-bac-guide-nav-item { margin: 2px 0; }
.t12-bac-guide-nav-item > a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--t3-text-mid) !important;
  cursor: pointer;
  pointer-events: auto;
}
.t12-bac-guide-nav-item > a:hover {
  background: rgba(215, 150, 127, 0.1);
  color: var(--t3-gold-2) !important;
}
.t12-bac-guide-nav-item.is-active > a {
  background: rgba(215, 150, 127, 0.16);
  color: var(--t3-gold-2) !important;
  font-weight: 600;
}
.t12-bac-guide-nav-item.has-children > a { font-weight: 600; color: var(--t3-text) !important; }
.t12-bac-guide-main {
  min-width: 0;
  padding: 8px 4px 24px;
}
.t12-bac-guide-h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.25;
}
.t12-bac-guide-subtitle {
  margin: 0 0 14px;
  color: var(--t3-text-mid);
}
.t12-bac-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.t12-bac-guide-body { color: var(--t3-text-mid); line-height: 1.85; }
.t12-bac-guide-body .xsjj-guide-page > h1,
.t12-bac-guide-body > h1 {
  margin: 28px 0 14px;
  font-size: 22px;
  color: var(--t3-text);
}
.t12-bac-guide-body .xsjj-guide-page > h1:first-child,
.t12-bac-guide-body > h1:first-child { margin-top: 0; }
.t12-bac-guide-body .xsjj-guide-page > h2,
.t12-bac-guide-body > h2 {
  margin: 22px 0 12px;
  font-size: 18px;
  color: var(--t3-gold-2);
}
.t12-bac-guide-body .guide-figure {
  margin: 16px 0;
  text-align: center;
}
.t12-bac-guide-body .guide-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.t12-bac-guide-body .guide-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.t12-bac-guide-body .guide-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.t12-bac-guide-body .guide-table-wrap th,
.t12-bac-guide-body .guide-table-wrap td {
  padding: 10px 12px;
  border: 1px solid var(--t3-line-soft);
}
.t12-bac-guide-body .guide-table-wrap th {
  background: rgba(7, 16, 28, 0.55);
  color: var(--t3-gold-2);
}
.t12-bac-guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.88);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.t12-bac-guide-lightbox[hidden] {
  display: none !important;
}
.t12-bac-guide-lightbox.is-open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}
.t12-bac-guide-lightbox img {
  max-width: min(96vw, 920px);
  max-height: 90vh;
  object-fit: contain;
}

/* xsjj guide content (ported from theme_007) */
.t12-bac-guide-body.xsjj-guide-body .xsjj-guide-page > h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--t3-text);
  margin: 2em 0 0.65em;
  padding-bottom: 0.45em;
  border-bottom: 2px solid var(--t3-gold);
  line-height: 1.35;
}
.t12-bac-guide-body.xsjj-guide-body .xsjj-guide-page > h1:first-child { margin-top: 0; }
.t12-bac-guide-body.xsjj-guide-body .xsjj-guide-page > h2 { margin-top: 1.35em; }
.t12-bac-guide-body.xsjj-guide-body .xsjj-guide-page > li {
  list-style: none;
  position: relative;
  margin: 0.45em 0;
  padding-left: 1.15em;
  color: var(--t3-text-mid);
}
.t12-bac-guide-body.xsjj-guide-body .xsjj-guide-page > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t3-gold);
  opacity: 0.85;
}
.t12-bac-guide-body.xsjj-guide-body .guide-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.1em auto 1.35em;
  padding: 12px;
  max-width: 100%;
  border-radius: var(--t3-radius-sm);
  background: rgba(7, 16, 28, 0.55);
  border: 1px solid var(--t3-line-soft);
}
.t12-bac-guide-body.xsjj-guide-body .guide-figure + h2,
.t12-bac-guide-body.xsjj-guide-body .guide-figure + h1 { margin-top: 1.75em; }
.t12-bac-guide-body.xsjj-guide-body .guide-inline-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t12-bac-guide-body.xsjj-guide-body .guide-inline-img:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="pz_"]),
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="hl_pic"]),
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="pl_pic"]) {
  max-width: min(100%, 640px);
}
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="mobile_bjl"]),
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="_04_"]),
.t12-bac-guide-body.xsjj-guide-body .guide-figure:has(img[src*="tb_pic"]) {
  max-width: min(100%, 820px);
}
.t12-bac-guide-body.xsjj-guide-body .guide-table-wrap {
  overflow-x: auto;
  margin: 1.25em 0 1.75em;
  -webkit-overflow-scrolling: touch;
}
.t12-bac-guide-body.xsjj-guide-body .guide-table-wrap table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 14px;
}
.t12-bac-guide-body.xsjj-guide-body .guide-table-wrap th,
.t12-bac-guide-body.xsjj-guide-body .guide-table-wrap td {
  border: 1px solid var(--t3-line-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
}
.t12-bac-guide-body.xsjj-guide-body .guide-table-wrap th {
  background: rgba(7, 16, 28, 0.55);
  color: var(--t3-gold-2);
  font-weight: 600;
  white-space: nowrap;
}
.t12-bac-guide-body.xsjj-guide-body table.tb_row_half th,
.t12-bac-guide-body.xsjj-guide-body table.tb_row_half td { text-align: center; }
.t12-bac-guide-body.xsjj-guide-body table.tb_row_half th:first-child,
.t12-bac-guide-body.xsjj-guide-body table.tb_row_half td:first-child { text-align: left; }
.t12-bac-guide-body.xsjj-guide-body table.imgTable td { vertical-align: top; }
.t12-bac-guide-body.xsjj-guide-body table.imgTable .guide-figure {
  margin: 0.35em 0;
  max-width: 120px;
}
.t12-bac-guide-body.xsjj-guide-body table.ycjsm-table td:first-child {
  font-weight: 600;
  color: var(--t3-text);
  white-space: nowrap;
}
.t12-bac-guide-body.xsjj-guide-body .flexC {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}
.t12-bac-guide-body.xsjj-guide-body .flexC p {
  margin: 0;
  color: var(--t3-gold-2);
  font-weight: 600;
}
.t12-bac-guide-body.xsjj-guide-body .imgTd { text-align: center; min-width: 140px; }
.t12-bac-guide-body.xsjj-guide-body img.h85 {
  height: 85px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}
.t12-bac-guide-body.xsjj-guide-body table.width30 { min-width: 480px; }
.t12-bac-guide-body.xsjj-guide-body table.width60 { min-width: 560px; }
.t12-bac-guide-body.xsjj-guide-body th.width15,
.t12-bac-guide-body.xsjj-guide-body td.width15 { width: 15%; }
.t12-bac-guide-body.xsjj-guide-body th.width30,
.t12-bac-guide-body.xsjj-guide-body td.width30 { width: 30%; }
.t12-bac-guide-body.xsjj-guide-body th.width60,
.t12-bac-guide-body.xsjj-guide-body td.width60 { width: 60%; }
.t12-bac-guide-body.xsjj-guide-body .text.mt20 { margin-top: 1.25em; }
.t12-bac-guide-body.xsjj-guide-body .fontBold { font-weight: 700; color: var(--t3-text); }
.t12-bac-guide-body.xsjj-guide-body li.mt20 { margin-top: 1.25em; }
.t12-bac-guide-body.xsjj-guide-body li.ml20 { margin-left: 1.25em; }
.t12-bac-guide-body.xsjj-guide-body .guide-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  vertical-align: middle;
}
.t12-bac-guide-body.xsjj-guide-body .rules-kw-note {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--t3-line-soft);
  font-size: 13px;
  color: var(--t3-text-mid);
  opacity: 0.85;
}

@media (max-width: 960px) {
  .t12-bac-features,
  .t12-bac-promos,
  .t12-bac-hosts,
  .t12-bac-basics { grid-template-columns: 1fr; }
  .t12-bac-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t12-bac-score-cards { grid-template-columns: 1fr; }
  .t12-bac-guide-groups { grid-template-columns: 1fr; }
  .t12-bac-guide-layout {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
  .t12-bac-guide-aside { position: static; }
}
@media (max-width: 560px) {
  .t12-bac-brand-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.t12-cta-band {
  padding: 72px 0;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(203,145,121,.18), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(215,150,127,.14), transparent 60%),
    var(--t3-bg-elev);
  border-top: 1px solid rgba(255,255,255,.06);
}
.t12-cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.t12-cta-band-copy { max-width: 620px; }
.t12-cta-band-copy h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 12px; line-height: 1.25; }
.t12-cta-band-copy p { color: var(--t3-text-mid); margin: 0; }
.t12-cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer (theme_012 compact) ---------- */
.t12-footer {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(215,150,127,.07), transparent 55%),
    #0c1018;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 0 0;
}
.t12-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(240px, 1.2fr) minmax(200px, 1fr);
  gap: 40px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: start;
}
.t12-footer__logo {
  text-decoration: none;
  margin-bottom: 12px;
}
.t12-footer__logo:hover { color: var(--t3-gold) !important; }
.t12-footer__blurb {
  max-width: 34ch;
  margin-bottom: 18px;
}
.t12-cta--footer {
  padding: 9px 16px;
  font-size: 13px;
}
.t12-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.t12-footer .t3-footer-h {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  color: var(--t3-gold);
}
.t12-footer .t3-footer-links li { margin-bottom: 10px; }
.t12-footer .t3-footer-links a {
  color: var(--t3-text-mid) !important;
  font-size: 14px;
  transition: color .15s ease;
}
.t12-footer .t3-footer-links a:hover { color: var(--t3-gold) !important; }
.t12-footer__note .t3-fineprint {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.75;
  margin-top: 12px;
}
.t12-footer__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.t12-footer__kw {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 150, 127, 0.22);
  background: rgba(215, 150, 127, 0.08);
  color: var(--t3-text-mid) !important;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.t12-footer__kw:hover {
  color: var(--t3-gold) !important;
  border-color: rgba(215, 150, 127, 0.45);
  background: rgba(215, 150, 127, 0.14);
}
.t12-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding: 18px 0 22px;
  font-size: 12px;
  color: var(--t3-text-dim);
  letter-spacing: 0.03em;
}
.t12-footer__bar-sep { opacity: 0.45; }
.t12-footer__host {
  opacity: 0.75;
  word-break: break-all;
}

@media (max-width: 980px) {
  .t12-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
  .t12-footer__brand { grid-column: 1 / -1; }
  .t12-footer__nav { grid-column: 1 / -1; }
  .t12-footer__note { grid-column: 1 / -1; max-width: 52ch; }
}

@media (max-width: 560px) {
  .t12-footer { padding-top: 40px; }
  .t12-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .t12-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  .t12-footer__blurb { max-width: none; }
  .t12-footer__bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 0 20px;
  }
  .t12-footer__bar-sep { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .t12-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .t12-stat + .t12-stat:nth-child(odd)::before { display: none; }
  .t12-hero { padding: 96px 0 80px; }
}
@media (max-width: 560px) {
  .t12-games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .t12-game-title { font-size: 16px; }
}

/* ---------- BACK OFFICE (PG Soft official layout) ---------- */
.pg-bo-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pg-bo-cover {
  position: relative;
  padding: clamp(64px, 8vh, 96px) 0 clamp(200px, 22vh, 280px);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(203,145,121,.08), transparent 55%),
    var(--t3-bg-elev);
}
.pg-bo-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.pg-bo-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.pg-bo-intro-title {
  margin: 0 0 24px;
  font-family: var(--t3-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--t3-text);
}
.pg-bo-intro-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--t3-text-mid);
}

/* Swiper (tablet / mobile highlight) */
.pg-bo-swiper {
  display: none;
  max-width: 420px;
  margin: 0 auto 28px;
  position: relative;
}
.pg-bo-swiper-viewport { overflow: hidden; border-radius: var(--t3-radius); }
.pg-bo-swiper-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.pg-bo-slide {
  flex: 0 0 100%;
  padding: 4px;
  --bo-acc: var(--t3-gold);
}
.pg-bo-slide--delay      { --bo-acc: #d7967f; }
.pg-bo-slide--management { --bo-acc: #edbfaf; }
.pg-bo-slide--languages  { --bo-acc: #cb9179; }
.pg-bo-slide--stable     { --bo-acc: #ae6a51; }
.pg-bo-slide-box {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 32px;
  border-radius: var(--t3-radius);
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  min-height: 200px;
}
.pg-bo-slide-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.pg-bo-slide-head b {
  font-family: var(--t3-serif);
  font-size: 36px;
  font-weight: 800;
  color: var(--bo-acc);
  line-height: 1;
}
.pg-bo-slide-head span {
  font-size: 15px;
  font-weight: 700;
  color: var(--t3-text);
  line-height: 1.3;
}
.pg-bo-slide-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--t3-text-mid);
  max-width: 320px;
}
.pg-bo-slide-num {
  position: absolute;
  right: 12px;
  bottom: -8px;
  font-family: var(--t3-serif);
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  color: var(--bo-acc);
  opacity: .08;
  pointer-events: none;
}
.pg-bo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pg-bo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,.2);
  transition: width .2s ease, background .2s ease;
}
.pg-bo-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--t12-gold-grad);
}

/* 4-column content-list */
.pg-bo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pg-bo-card {
  --bo-acc: var(--t3-gold);
  padding: 24px 18px 28px;
  border-radius: var(--t3-radius);
  background: rgba(15,18,29,.72);
  border: 1px solid var(--t3-line);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  cursor: default;
}
.pg-bo-card--delay      { --bo-acc: #d7967f; }
.pg-bo-card--management { --bo-acc: #edbfaf; }
.pg-bo-card--languages  { --bo-acc: #cb9179; }
.pg-bo-card--stable     { --bo-acc: #ae6a51; }
.pg-bo-card.is-active,
.pg-bo-card:hover {
  border-color: color-mix(in srgb, var(--bo-acc) 50%, var(--t3-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bo-acc) 20%, transparent);
  transform: translateY(-3px);
}
.pg-bo-stat {
  display: block;
  font-family: var(--t3-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--bo-acc);
  margin-bottom: 12px;
}
.pg-bo-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--t3-text);
}
.pg-bo-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--t3-text-mid);
}

/* Chart background */
.pg-bo-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 320px);
  z-index: 1;
  pointer-events: none;
  opacity: .55;
}
.pg-bo-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pg-bo-wave--pink { opacity: .25; }
.pg-bo-wave--gold { opacity: .6; animation: pg-bo-dash 12s linear infinite; }
.pg-bo-wave--cyan { opacity: .2; }

@keyframes pg-bo-dash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}

@media (max-width: 1024px) {
  .pg-bo-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pg-bo-swiper { display: block; }
  .pg-bo-cards { display: none; }
  .pg-bo-cover { padding-bottom: 180px; }
}
@media (max-width: 480px) {
  .pg-bo-cards { display: none; }
}

/* ---------- ABOUT (PG Soft official 6-box grid) ---------- */
.pg-about-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pg-about-cover {
  padding: clamp(64px, 8vh, 96px) 0 clamp(72px, 9vh, 100px);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(203,145,121,.07), transparent 58%),
    var(--t3-bg);
}
.pg-about-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.pg-about-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}
.pg-about-intro-title {
  margin: 0 0 24px;
  font-family: var(--t3-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--t3-text);
}
.pg-about-intro-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--t3-text-mid);
}

.pg-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pg-about-box {
  position: relative;
  min-height: 380px;
  border-radius: var(--t3-radius);
  overflow: hidden;
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pg-about-box:hover {
  border-color: color-mix(in srgb, var(--about-acc) 45%, var(--t3-line));
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}

.pg-about-box-cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px 36px;
  height: 100%;
  transition: opacity .28s ease;
}
.pg-about-box:hover .pg-about-box-cover { opacity: 0; pointer-events: none; }

.pg-about-box-heading {
  margin: 0 0 18px;
  font-family: var(--t3-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .02em;
}
.pg-about-box-eyebrow {
  display: block;
  font-size: .72em;
  color: var(--t3-text-dim);
  letter-spacing: .08em;
}
.pg-about-box-highlight {
  display: block;
  color: var(--about-acc);
  font-size: 1.15em;
}
.pg-about-box-icon {
  width: auto;
  max-width: 100px;
  height: auto;
  max-height: 100px;
  margin: 0 0 20px;
  object-fit: contain;
}
.pg-about-box-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--t3-text-mid);
}

.pg-about-box-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.pg-about-box:hover .pg-about-box-hover {
  opacity: 1;
  pointer-events: auto;
}
.pg-about-box-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform .5s ease;
}
.pg-about-box:hover .pg-about-box-photo { transform: scale(1); }
.pg-about-box-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 28,.15) 0%, rgba(7, 16, 28,.88) 100%);
}
.pg-about-box-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 22px 28px;
  text-align: left;
}
.pg-about-box-panel h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.pg-about-box-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255,255,255,.88);
}
.pg-about-box-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--about-acc);
  z-index: 3;
}

@media (max-width: 1024px) {
  .pg-about-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-about-box { min-height: 340px; }
}
@media (max-width: 560px) {
  .pg-about-grid { grid-template-columns: 1fr; gap: 12px; }
  .pg-about-box { min-height: 320px; }
}

/* ---------- FEATURES (PG Soft 4-column, dark theme integrated) ---------- */
.pg-soft-features {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vh, 88px) 0;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(203,145,121,.09), transparent 58%),
    radial-gradient(50% 80% at 90% 80%, rgba(215,150,127,.06), transparent 55%),
    var(--t3-bg);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pg-soft-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 28,.4) 100%);
  pointer-events: none;
}
.pg-soft-features > .t3-wrap { position: relative; z-index: 1; }
.pg-soft-features-head { margin-bottom: 40px; }

.pg-soft-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pg-soft-feature-box {
  --feat-acc: var(--t3-gold);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 32px;
  border-radius: var(--t3-radius);
  background: var(--t3-bg-card);
  border: 1px solid var(--t3-line);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pg-soft-feature-box--social     { --feat-acc: #d7967f; }
.pg-soft-feature-box--freegame   { --feat-acc: #edbfaf; }
.pg-soft-feature-box--tournament { --feat-acc: #cb9179; }
.pg-soft-feature-box--smartbot   { --feat-acc: #ae6a51; }

.pg-soft-feature-box:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--feat-acc) 45%, var(--t3-line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--feat-acc) 18%, transparent),
    0 20px 48px rgba(0,0,0,.45);
}

.pg-soft-feature-img {
  position: relative;
  margin: 0 0 22px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.pg-soft-feature-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--feat-acc) 32%, transparent), transparent 72%);
  opacity: .55;
  filter: blur(2px);
  transition: opacity .22s ease, transform .22s ease;
}
.pg-soft-feature-box:hover .pg-soft-feature-glow {
  opacity: .85;
  transform: scale(1.06);
}
.pg-soft-feature-img img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
  transition: transform .22s ease;
}
.pg-soft-feature-box:hover .pg-soft-feature-img img {
  transform: scale(1.04);
}

.pg-soft-feature-body { max-width: 240px; }
.pg-soft-feature-name {
  margin: 0 0 10px;
  font-family: var(--t3-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--feat-acc);
}
.pg-soft-feature-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--t3-text-mid);
}

@media (max-width: 1024px) {
  .pg-soft-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pg-soft-feature-img { max-width: 180px; }
  .pg-soft-feature-img img { max-width: 180px; }
}
@media (max-width: 560px) {
  .pg-soft-features { padding: 52px 0 60px; }
  .pg-soft-features-grid { grid-template-columns: 1fr; gap: 14px; max-width: 360px; margin: 0 auto; }
  .pg-soft-feature-box { padding: 24px 20px 28px; }
  .pg-soft-feature-body { max-width: none; }
}

/* ---------- LICENSING / CERTIFICATION (PG-style tabbed) ---------- */
.pg-licensing {
  position: relative; overflow: hidden;
  padding: 84px 0;
  background:
    radial-gradient(60% 120% at 12% 30%, rgba(203,145,121,.08), transparent 60%),
    var(--t3-bg-elev);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pg-lic-head { text-align: center; margin-bottom: 28px; }
.pg-lic-head .t12-eyebrow { display: inline-block; }
.pg-licensing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px; align-items: center;
}

/* Side columns (Licensing / Certification) */
.pg-lic-col { display: flex; flex-direction: column; gap: 16px; }
.pg-lic-coltitle {
  margin: 0; font-family: var(--t3-serif); font-size: 20px; font-weight: 800;
  letter-spacing: .04em; color: var(--t3-gold);
}
.pg-lic-coltitle::after {
  content: ""; display: block; width: 40px; height: 2px; margin-top: 8px;
  border-radius: 2px; background: var(--t12-gold-grad);
}

/* Center illustration */
.pg-lic-char { position: relative; min-height: 480px; }
.pg-lic-char::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 380px; height: 380px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(215,150,127,.20), transparent 70%);
  z-index: 0; pointer-events: none;
}
.pg-lic-seal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 2; filter: drop-shadow(0 22px 44px rgba(0,0,0,.6));
}
.pg-lic-seal--img { width: min(128%, 660px); }
.pg-lic-seal--img img { display: block; width: 100%; height: auto; }
.pg-paper {
  position: absolute; z-index: 1;
  width: 60px; height: 78px; border-radius: 7px;
  background:
    repeating-linear-gradient(#c8cddb 0 2px, transparent 2px 9px) no-repeat,
    linear-gradient(180deg, #eef1f7, #dde1ec);
  background-position: 9px 22px, 0 0;
  background-size: calc(100% - 18px) calc(100% - 32px), 100% 100%;
  box-shadow: 0 10px 22px rgba(0,0,0,.5);
  animation: pg-float 7s ease-in-out infinite;
}
.pg-paper::before {
  content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 6px;
  border-radius: 2px; background: var(--t12-gold-grad);
}
.pg-paper--1 { left: 9%;   top: 20%;    transform: rotate(-16deg); animation-delay: 0s; }
.pg-paper--2 { right: 10%; top: 15%;    transform: rotate(12deg);  animation-delay: -1.2s; }
.pg-paper--3 { left: 13%;  bottom: 22%; transform: rotate(9deg);   animation-delay: -2.4s; }
.pg-paper--4 { right: 12%; bottom: 24%; transform: rotate(-10deg); animation-delay: -3.6s; }
@keyframes pg-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Head + cards */
.pg-lic-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 8px 0 0; }
.pg-lic-card {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: var(--t3-bg-card); border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius); padding: 20px 22px;
  transition: border-color .16s ease, transform .16s ease;
}
.pg-lic-card:hover { border-color: rgba(215,150,127,.5); transform: translateY(-2px); }
.pg-lic-card p { margin: 0; color: var(--t3-text-mid); font-size: 13.5px; line-height: 1.7; }
.pg-lic-logo {
  flex-shrink: 0; width: 92px; height: 60px;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(215,150,127,.3);
  color: var(--t3-gold); font-family: var(--t3-serif);
  font-weight: 800; font-size: 22px; letter-spacing: .04em;
}

/* Mobile tab switcher (PG-style swiper) — hidden on desktop */
.pg-lic-mtabs { display: none; }
.pg-lic-mtab {
  background: none; border: 0; cursor: pointer;
  color: var(--t3-text-dim); font-family: var(--t3-sans);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 9px 22px; border-radius: 999px;
  transition: color .16s ease, background .16s ease;
}
.pg-lic-mtab.is-active { color: #fff; background: var(--t12-gold-grad); }

@media (max-width: 980px) {
  /* Stack: character on top, tab switcher, then the active group only */
  .pg-licensing-inner { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .pg-lic-char { order: 1; width: 100%; min-height: 340px; }
  .pg-lic-mtabs {
    order: 2; display: flex; justify-content: center; gap: 4px;
    width: fit-content; margin: 0 auto; padding: 5px;
    background: var(--t3-bg-card); border: 1px solid var(--t3-line);
    border-radius: 999px;
  }
  .pg-lic-col { order: 3; }
  .pg-lic-coltitle { display: none; }               /* tabs replace column headings */
  .pg-lic-col:not(.is-active) { display: none; }     /* show only active group */
  /* Compact card: logo left, copy right */
  .pg-lic-card { flex-direction: row; align-items: flex-start; gap: 16px; }
  .pg-lic-logo { width: 84px; height: 56px; font-size: 20px; }
}
@media (max-width: 560px) {
  .pg-lic-char { min-height: 300px; }
}

/* ============================================================
   ABOUT / BRAND page — mirrors pgsoftgaming.com/brand layout
   (centered slogan hero + floating stat card + stacked prose +
   full-width dividers), recolored to the index black-gold palette.
   ============================================================ */
.pgb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.pgb-reveal.is-in { opacity: 1; transform: none; }

/* ---- HERO: centered slogan, fixed cube backdrop (source: 72d22f03) ---- */
.pgb-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(120px, 14vh, 168px) 0 clamp(48px, 6vh, 72px);
  text-align: center; min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--t3-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pgb-hero-bg {
  position: absolute; inset: -8%; z-index: 0; pointer-events: none;
  background-color: #07101c;
  background-image:
    linear-gradient(180deg, rgba(203,145,121,.42) 0%, rgba(7, 16, 28,.55) 45%, rgba(7, 16, 28,.92) 100%),
    url("../img/brand-hero-bg.svg");
  background-position: center 38%;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform .12s linear, opacity .12s linear;
}
@media (min-width: 1025px) {
  .pgb-hero-bg { background-attachment: fixed; }
}
.pgb-hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.pgb-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(72px);
  animation: pgb-orb-drift 14s ease-in-out infinite;
}
.pgb-hero-orb--1 { width: 420px; height: 420px; left: -8%; top: 8%; background: rgba(203,145,121,.28); animation-delay: 0s; }
.pgb-hero-orb--2 { width: 360px; height: 360px; right: -6%; top: 18%; background: rgba(215,150,127,.18); animation-delay: -4.5s; }
.pgb-hero-orb--3 { width: 280px; height: 280px; left: 38%; bottom: 12%; background: rgba(169,140,255,.22); animation-delay: -9s; }
.pgb-hero-beam {
  position: absolute; width: 140%; height: 2px; left: -20%; top: 46%;
  background: linear-gradient(90deg, transparent, rgba(215,150,127,.45), rgba(203,145,121,.35), transparent);
  transform: rotate(-12deg); opacity: .35;
  animation: pgb-beam-sweep 8s ease-in-out infinite;
}
@keyframes pgb-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .75; }
  33%      { transform: translate(18px, -22px) scale(1.06); opacity: 1; }
  66%      { transform: translate(-14px, 12px) scale(.94); opacity: .85; }
}
@keyframes pgb-beam-sweep {
  0%, 100% { opacity: .18; transform: rotate(-12deg) translateX(-4%); }
  50%      { opacity: .55; transform: rotate(-12deg) translateX(4%); }
}

.pgb-hero-inner { position: relative; z-index: 2; flex: 1; display: grid; place-content: center; padding: 20px 0 48px; }
.pgb-hero-foot { position: relative; z-index: 3; width: 100%; }

/* staggered entrance */
.pgb-hero-in { opacity: 0; transform: translateY(32px); animation: pgb-hero-rise .9s cubic-bezier(.22,1,.36,1) forwards; }
.pgb-hero-in--1 { animation-delay: .12s; }
.pgb-hero-in--2 { animation-delay: .32s; }
.pgb-hero-in--3 { animation-delay: .58s; }
@keyframes pgb-hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

.pgb-hero-sub {
  margin: 0 0 18px; font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.6vw, 28px); letter-spacing: .04em;
  color: var(--t3-gold);
  text-shadow: 0 0 40px rgba(215,150,127,.35);
}
.pgb-hero-title {
  margin: 0; font-family: var(--t3-serif); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 7.2vw, 82px); line-height: .88; letter-spacing: .015em;
  color: var(--t3-text);
  text-shadow: 0 4px 0 rgba(0,0,0,.25), 0 24px 80px rgba(0,0,0,.55);
}

/* ---- Floating stats card (overlaps hero/content edge) ---- */
.pgb-stats-card {
  position: relative; margin: 0 auto -60px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 18px; padding: 32px 20px; overflow: hidden;
  background: var(--t12-gold-grad);
  box-shadow: 0 24px 60px rgba(184,117,89,.32), 0 0 0 1px rgba(255,255,255,.14) inset;
  animation: pgb-card-enter .85s cubic-bezier(.22,1,.36,1) .55s both, pgb-card-glow 5s ease-in-out 1.4s infinite;
}
@keyframes pgb-card-enter {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pgb-card-glow {
  0%, 100% { box-shadow: 0 24px 60px rgba(184,117,89,.32), 0 0 0 1px rgba(255,255,255,.14) inset; }
  50%      { box-shadow: 0 32px 80px rgba(184,117,89,.48), 0 0 48px rgba(215,150,127,.12), 0 0 0 1px rgba(255,255,255,.18) inset; }
}
.pgb-stat { position: relative; text-align: center; padding: 4px 10px; }
.pgb-stat + .pgb-stat::before {
  content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px;
  background: rgba(20,16,10,.22);
}
.pgb-stat b {
  display: block; font-family: var(--t3-serif); font-weight: 900; line-height: 1;
  font-size: clamp(26px, 3.6vw, 46px); color: #14100a; letter-spacing: -.01em;
}
.pgb-stat span { display: block; margin-top: 10px; color: rgba(20,16,10,.72); font-size: 14px; font-weight: 600; }

/* ---- Section rhythm ---- */
.pgb-sec { padding: 70px 0; background: var(--t3-bg); }
.pgb-sec--last { padding-bottom: 110px; }
.pgb-prose { max-width: 900px; }

/* Intro: heading (with accent bar) left, paragraph right */
.pgb-intro { padding-top: 116px; }
.pgb-intro-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; max-width: 1000px; }
.pgb-bar-title {
  margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; position: relative; padding-left: 18px;
}
.pgb-bar-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
  background: var(--t12-gold-grad);
}
.pgb-intro-text { margin: 0; color: var(--t3-text-mid); font-size: 16px; line-height: 1.95; }
.pgb-intro-text strong { color: var(--t3-gold); font-weight: 700; }

/* Stacked prose blocks */
.pgb-block { margin-bottom: 40px; }
.pgb-block:last-child { margin-bottom: 0; }
.pgb-block-h { margin: 0 0 14px; font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; }
.pgb-block p { margin: 0; color: var(--t3-text-mid); font-size: 15.5px; line-height: 1.95; }
.pgb-accent {
  margin: 0 0 14px !important; font-size: clamp(16px, 2vw, 20px); font-weight: 700;
  background: var(--t12-gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Full-width fixed image bands (source: 5f4d7329 / 3cebc049 etc.) ---- */
.pgb-band {
  position: relative; min-height: 320px; overflow: hidden;
  background-color: var(--t3-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.pgb-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(7, 16, 28,.62);
}
@media (min-width: 1025px) {
  .pgb-band { background-attachment: fixed; }
}
.pgb-band--design { background-image: url("../img/data-processing.png"); }
.pgb-band--art    { background-image: url("../img/tactical-team.png"); }
.pgb-band--tech   { background-image: url("../img/68539b90-584a-11f1-8b8c-6d33e1d5abb6.jpg"); }
.pgb-band--music  { background-image: url("../img/time-manager.png"); }

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .pgb-hero { min-height: 560px; padding-bottom: 56px; }
  .pgb-hero-bg { inset: -4%; }
  .pgb-stats-card { padding: 22px 12px; border-radius: 14px; animation: none; }
  .pgb-intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .pgb-band { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgb-hero-in, .pgb-stats-card, .pgb-hero-orb, .pgb-hero-beam { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 520px) {
  .pgb-stats-card { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .pgb-stat:nth-child(3)::before { display: none; }
}

/* ============================================================
   GAMES — PG Soft all-games layout (pgsoft.com/en/games/all/)
   Light lister panel + sidebar + game-card + listed table
   ============================================================ */

.pgm-page {
  display: block; width: 100%; min-height: calc(100vh - 64px);
  background: #f5f5f7; color: #111;
}
.pgm-lister { display: block; width: 100%; position: relative; padding: 0 0 80px; }
.pgm-lister-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: hsla(0,0%,100%,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pgm-lister-cover { position: relative; z-index: 1; }
.pgm-scroll {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 0;
}

/* ---- Sidebar ---- */
.pgm-nav { flex: none; width: 160px; position: sticky; top: 88px; align-self: flex-start; }
.pgm-sidemenu { padding: 20px 0 0; }
.pgm-side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 0; margin: 0 0 12px; border: 0; background: none;
  font-size: 14px; color: rgba(0,0,0,.55); text-decoration: none; cursor: pointer;
  transition: color .15s ease;
}
.pgm-side-item:first-child { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,.1); }
.pgm-side-item:hover, .pgm-side-item.is-active { color: #000; }
.pgm-side-item.is-active { font-weight: 700; }
.pgm-side-icon { width: 20px; height: 20px; opacity: .65; flex: none; }
.pgm-side-icon svg { width: 20px; height: 20px; display: block; }

/* ---- Search overlay ---- */
.pgm-search {
  position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,.96);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 120px;
}
.pgm-search[hidden] { display: none !important; }
.pgm-search-inner { display: flex; align-items: center; gap: 16px; width: min(560px, 90vw); }
.pgm-search-input {
  flex: 1; height: 48px; border: 0; border-bottom: 2px solid #000;
  background: transparent; font-size: 22px; color: #000; outline: none;
}
.pgm-search-close {
  border: 0; background: none; font-size: 22px; cursor: pointer; color: #000; opacity: .5;
}

/* ---- Main content ---- */
.pgm-content { flex: 1; min-width: 0; padding: 0 0 0 20px; }
.pgm-allgame { display: block; width: 100%; }

/* Header */
.pgm-allgame-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 30px; margin: 0 0 50px; flex-wrap: wrap;
}
.pgm-allgame-header h1 {
  margin: 0; font-size: 30px; font-weight: 700; color: #000; line-height: 30px;
}
.pgm-header-ctrl { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pgm-sort-wrap, .pgm-view-wrap { display: flex; align-items: center; gap: 12px; }
.pgm-sort-label { font-size: 14px; color: rgba(0,0,0,.7); white-space: nowrap; }
.pgm-sort-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 20px 0 0; cursor: pointer; user-select: none;
}
.pgm-sort-btn b { font-size: 14px; font-weight: 700; color: #000; }
.pgm-sort-cover {
  position: absolute; top: 30px; right: 0; width: 220px;
  background: #fff; border-radius: 8px; box-shadow: 0 0 10px 5px rgba(0,0,0,.08);
  padding: 8px 0; z-index: 30;
}
.pgm-sort-cover[hidden] { display: none !important; }
.pgm-sortbox {
  padding: 10px 20px; font-size: 14px; font-weight: 700; color: rgba(0,0,0,.4); cursor: pointer;
}
.pgm-sortbox.is-active, .pgm-sortbox:hover { color: #000; }
.pgm-subsort { padding: 4px 0 0 12px; }
.pgm-subsortbox {
  padding: 6px 0; font-size: 13px; font-weight: 500; color: rgba(0,0,0,.45); cursor: pointer;
}
.pgm-subsortbox:hover { color: #000; }
.pgm-viewbox {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0;
  border: 0; background: none; font-size: 13px; color: rgba(0,0,0,.35); cursor: pointer;
  transition: opacity .15s ease, color .15s ease;
}
.pgm-viewbox.is-active { color: #000; opacity: 1; }
.pgm-viewbox:not(.is-active) { opacity: .35; }

/* ---- Grid: PG game-card (3 per row) ---- */
.pgm-boxed-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pgm-boxed-list[hidden] { display: none !important; }
.pgm-gamebox {
  display: block; width: 100%; height: 400px; margin: 0;
}
.pgm-clear { display: none; }
.pgm-game-card { display: block; position: relative; height: 400px; text-decoration: none; color: inherit; }
.pgm-game-card:hover { cursor: pointer; }
.pgm-g-game {
  position: relative; width: 100%; height: 400px; overflow: hidden; border-radius: 14px;
  top: 0; transition: top .3s ease, box-shadow .3s ease;
}
.pgm-game-card:hover .pgm-g-game { top: -15px; box-shadow: 0 30px 20px -20px rgba(14,6,23,.3); }
.pgm-g-cover, .pgm-g-reflect {
  display: block; width: 100%; height: 180px;
  background-repeat: no-repeat !important; background-position: 50% 50% !important; background-size: cover !important;
}
.pgm-g-reflect {
  position: absolute; top: 180px; left: 0; z-index: 1;
  transform: rotate(180deg) scaleX(-1); filter: blur(0);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, #000 94%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, #000 94%, #000 100%);
}
.pgm-g-bg {
  display: block; position: absolute; width: 100%; height: calc(100% - 180px);
  bottom: 0; left: 0; background: var(--pgm-color, #222); transition: height .3s ease;
}
.pgm-g-detail {
  display: block; position: absolute; width: 100%; height: 220px; bottom: 0; left: 0;
  overflow: hidden; box-sizing: border-box; padding: 20px; z-index: 5;
  transition: bottom .3s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pgm-g-blur {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.pgm-g-blur::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--pgm-color, #222);
  opacity: .32; transition: opacity .35s ease;
}
.pgm-coverimg {
  position: absolute; z-index: 0; width: 100%; height: 180px;
  top: -180px; left: 0;
  background-repeat: no-repeat !important;
  background-position: 50% 50% !important;
  background-size: cover !important;
  transition: top .35s ease, transform .35s ease;
  will-change: top;
}
.pgm-game-card:hover .pgm-g-detail { bottom: 50px; }
.pgm-game-card:hover .pgm-g-blur::after { opacity: .78; }
.pgm-game-card:hover .pgm-coverimg { top: -130px; }
.pgm-detailtop { position: relative; z-index: 2; height: 60px; overflow: hidden; }
.pgm-d-icon { float: left; width: 60px; height: 60px; }
.pgm-d-icon img { display: block; width: 60px; height: 60px; border-radius: 10px; }
.pgm-d-note { float: right; width: calc(100% - 80px); height: 60px; overflow: hidden; }
.pgm-d-note b { display: block; font-size: 18px; color: #fff; line-height: 20px; }
.pgm-d-note span {
  display: -webkit-box; opacity: .5; font-size: 12px; color: #fff; line-height: 14px;
  height: 28px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 6px;
}
.pgm-detailbottom {
  position: absolute; z-index: 2; width: calc(100% - 40px); height: calc(100% - 100px);
  bottom: 18px; padding-top: 26px; overflow: hidden;
}
.pgm-detailrow { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.pgm-detailrow:last-child { margin: 0; }
.pgm-value { font-size: 16px; line-height: 16px; color: #fff; text-align: left; }
.pgm-title { font-size: 12px; line-height: 12px; opacity: .5; color: #fff; padding-top: 4px; }
.pgm-g-button {
  display: block; position: absolute; width: 101%; height: 50px;
  background: hsla(0,0%,100%,.1); bottom: -50px; left: 0; z-index: 6; transition: bottom .3s ease;
}
.pgm-game-card:hover .pgm-g-button { bottom: 0; }
.pgm-g-button.onebutton div {
  display: block; text-align: center; width: 100%; height: 50px; line-height: 50px;
  font-size: 12px; color: #fff; cursor: pointer;
}
.pgm-g-button div:hover { background: hsla(0,0%,100%,.2); }

/* Volatility bars */
.pgm-volbars { display: inline-flex; gap: 3px; align-items: flex-end; height: 20px; }
.pgm-volbars i {
  display: block; width: 4px; border-radius: 2px; background: rgba(255,255,255,.25);
}
.pgm-volbars i:nth-child(1) { height: 6px; }
.pgm-volbars i:nth-child(2) { height: 10px; }
.pgm-volbars i:nth-child(3) { height: 14px; }
.pgm-volbars i:nth-child(4) { height: 18px; }
.pgm-volbars i:nth-child(5) { height: 20px; }
.pgm-volbars i.is-on { background: #fff; }
.pgm-volbars--lg i { width: 5px; }
.pgm-volbars--lg i:nth-child(1) { height: 8px; }
.pgm-volbars--lg i:nth-child(2) { height: 12px; }
.pgm-volbars--lg i:nth-child(3) { height: 16px; }
.pgm-volbars--lg i:nth-child(4) { height: 20px; }
.pgm-volbars--lg i:nth-child(5) { height: 24px; }
.pgm-volbars--lg i.is-on { background: #111; }

.pgm-lang-icons, .pgm-cert-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pgm-lang-icons span, .pgm-cert-icons span {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
  background: rgba(255,255,255,.15); color: #fff;
}
.pgm-listed-list .pgm-lang-icons span, .pgm-listed-list .pgm-cert-icons span {
  background: rgba(0,0,0,.06); color: #333;
}
.pgm-listed-list .pgm-volbars i { background: rgba(0,0,0,.12); }
.pgm-listed-list .pgm-volbars i.is-on { background: #111; }

/* ---- List view ---- */
.pgm-listed-list { display: block; width: 100%; }
.pgm-listed-list[hidden] { display: none !important; }
.pgm-listed-header {
  display: flex; height: 60px; width: 100%; background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.1); border-radius: 10px;
  padding: 0 10px; margin: 0 0 10px; box-sizing: border-box;
}
.pgm-listed-header > div {
  display: flex; align-items: center; opacity: .6; font-size: 12px; color: #000;
}
.pgm-listed-header > div > div { width: 100%; text-align: center; }
.pgm-listed-content { display: block; width: 100%; padding-bottom: 38px; }
.pgm-listcol {
  display: block; position: relative; width: 100%; min-height: 60px; border-radius: 10px;
  padding: 0 10px; margin: 0 0 10px; overflow: hidden; box-sizing: border-box;
  text-decoration: none; color: inherit; transition: background .2s ease;
}
.pgm-listcol.even { background: rgba(0,0,0,.02); }
.pgm-listcol:hover { background: rgba(0,0,0,.04); }
.pgm-ripple { display: none; }
.pgm-gamelist { display: flex; width: 100%; color: #000; }
.pgm-gamecol {
  display: flex; align-items: center; justify-content: center; height: 120px;
  box-sizing: border-box; font-size: 14px;
}
.pgm-gamecol > div { width: 100%; }
.pgm-gamecol > div > div { display: flex; align-items: center; justify-content: center; width: 100%; }
.pgm-game-name > div > div { justify-content: flex-start; padding-left: 10px; gap: 14px; }
.pgm-list-icon { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.pgm-game-name span { font-weight: 600; font-size: 15px; }

/* Bottom bar */
.pgm-bottombar { position: relative; padding: 20px 0 0; text-align: center; }
.pgm-barcover {
  display: inline-block; border: 0; background: none; cursor: pointer; padding: 0;
}
.pgm-barcover[hidden] { display: none !important; }
.pgm-loadmore, .pgm-backtop { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pgm-loadtext, .pgm-backtext { font-size: 16px; font-weight: 700; color: #000; line-height: 48px; }
.pgm-loadarrow span, .pgm-backarrow span {
  display: block; width: 8px; height: 8px; border-right: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(45deg); margin: -4px 0 0;
}

@media (max-width: 900px) {
  .pgm-boxed-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pgm-scroll { flex-direction: column; padding-top: 20px; }
  .pgm-nav { position: static; width: 100%; }
  .pgm-sidemenu { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 0 20px; border-bottom: 1px solid rgba(0,0,0,.08); }
  .pgm-side-item { width: auto; margin: 0; padding: 6px 0; }
  .pgm-side-item:first-child { border: 0; padding-bottom: 6px; margin-bottom: 0; }
  .pgm-content { padding: 20px 0 0; }
  .pgm-allgame-header { flex-direction: column; align-items: flex-start; height: auto; gap: 20px; }
  .pgm-header-ctrl { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pgm-boxed-list { grid-template-columns: 1fr; }
  .pgm-listed-header { display: none; }
  .pgm-gamelist { flex-wrap: wrap; height: auto; padding: 16px 0; }
  .pgm-gamecol { height: auto; width: 50% !important; padding: 8px 0; }
  .pgm-game-name { width: 100% !important; }
}

/* ============================================================
   GAME DETAIL — one-page (cfmjs / mejhogan reference layout)
   ============================================================ */
.pgt-page {
  --pgt-accent: #3d2a0a;
  background: #1a1c24;
  color: #e8e8ec;
  min-height: calc(100vh - 64px);
  padding-bottom: 56px;
  position: relative;
}
.pgt-page::before {
  content: "";
  position: fixed;
  inset: 64px 0 0;
  background: var(--pgt-cover) center/cover no-repeat;
  opacity: .12;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}
.pgt-container { position: relative; z-index: 1; max-width: 960px; padding: 0 16px 40px; }

.pgt-top-menu {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
  padding: 12px 16px; background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 64px; z-index: 30;
  backdrop-filter: blur(8px);
}
.pgt-top-menu a { font-size: 14px; color: rgba(255,255,255,.75); text-decoration: none; }
.pgt-top-menu a:hover { color: var(--t3-gold); }

.pgt-card {
  background: rgba(20,22,30,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,.78);
}
.pgt-card p { margin: 0 0 14px; }
.pgt-card ul, .pgt-card ol { margin: 0 0 14px; padding-left: 22px; }
.pgt-card li { margin-bottom: 6px; }

.pgt-card-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-areas:
    "pic meta"
    "text text";
  gap: 20px 28px;
  padding: 28px;
  margin-top: 20px;
}
.pgt-game-pic { grid-area: pic; text-align: center; }
.pgt-game-pic img {
  max-width: 100%; height: auto; border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.pgt-game-meta { grid-area: meta; }
.pgt-game-text { grid-area: text; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.pgt-game-title { margin: 0 0 16px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #fff; }

.pgt-game-window {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px;
}
.pgt-win-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,.65);
}
.pgt-win-item img { width: 28px; height: 28px; object-fit: contain; }

.pgt-btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pgt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 4px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: opacity .15s ease;
}
.pgt-btn:hover { opacity: .88; }
.pgt-btn--gold { background: var(--t12-btn-grad); color: #fff !important; }
.pgt-btn--line { border: 1px solid rgba(255,255,255,.35); color: #fff !important; background: rgba(255,255,255,.06); }

.pgt-card-title {
  position: relative; text-align: center; margin: 28px 0 0; padding: 18px 16px 14px;
}
.pgt-card-title-bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .85; pointer-events: none; }
.pgt-card-title-bg img { max-width: 100%; height: auto; }
.pgt-card-title h2 {
  position: relative; margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 800;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.pgt-card-payout h3 {
  margin: 28px 0 14px; font-size: 18px; font-weight: 700; color: var(--t3-gold);
  text-align: center;
}
.pgt-card-payout h3:first-child { margin-top: 0; }
.pgt-img-center { text-align: center; margin: 12px 0 16px; }
.pgt-img-center img { max-width: 100%; height: auto; border-radius: 4px; }

.pgt-table {
  width: 100%; max-width: 720px; margin: 16px auto;
  border-collapse: collapse; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
}
.pgt-table td {
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px 10px; vertical-align: middle;
}
.pgt-td-center { text-align: center; }
.pgt-table img { max-width: 120px; height: auto; }
.pgt-table--pair img { max-width: 100%; width: 280px; }
.pgt-payout-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); white-space: normal; }

.pgt-fact-list { margin: 16px 0 0; }
.pgt-rules-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.pgt-more-games {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px;
}
.pgt-more-item { margin: 0; text-align: center; }
.pgt-more-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
}
.pgt-more-item figcaption { margin-top: 8px; font-size: 13px; }
.pgt-more-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.pgt-more-item a:hover { color: var(--t3-gold); }

.pgt-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 16px;
  padding: 10px 16px; background: rgba(10,10,14,.95);
  border-top: 1px solid rgba(255,255,255,.1);
}
.pgt-bottom-bar a { font-size: 12px; color: rgba(255,255,255,.6); text-decoration: none; }
.pgt-bottom-bar a:hover { color: var(--t3-gold); }

@media (max-width: 720px) {
  .pgt-card-grid { grid-template-columns: 1fr; grid-template-areas: "pic" "meta" "text"; }
  .pgt-top-menu { display: none; }
  .pgt-table img { max-width: 80px; }
}

@media (max-width: 520px) {
  .pgt-card { padding: 16px; }
  .pgt-game-title { font-size: 22px; }
}
