/* ReklamUp ad test site: shared styles. Plain CSS, no build step, no web fonts.
 *
 * Design: dark chrome (header, page headers, footer) over a light content area, with one
 * accent: ReklamUp green. Buttons are bright brand green with near-black text (#04140c on
 * #20b870: 7.3:1). Links on light surfaces use the darker #0b7a4b (5.4:1 on white).
 * Inside the content, colour is kept for state (mode band, slot status, notices). */

:root {
  /* content area */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e7ebf2;
  --text: #0b1220;
  --text-2: #334155;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e3e8f0;
  --border-strong: #cfd6e2;
  /* brand */
  --brand: #20b870;
  --btn: #20b870;
  --btn-hover: #1aa463;
  --on-btn: #04140c;
  --accent: #0b7a4b;
  --accent-hover: #086a41;
  --accent-soft: #e7f8ef;
  --accent-border: #a6e3c4;
  --on-accent: #ffffff;
  --focus: rgba(32, 184, 112, 0.5);
  --gradient: linear-gradient(135deg, #3ddc97 0%, #20b870 45%, #14b8a6 100%);
  /* dark chrome: header, page headers, footer */
  --chrome: #070b14;
  --chrome-2: #0c1322;
  --chrome-3: #131c30;
  --chrome-text: #e6edf7;
  --chrome-muted: #94a3b8;
  --chrome-border: rgba(255, 255, 255, 0.08);
  --chrome-accent: #3ddc97;
  /* state */
  --ok: #027a48;
  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --warn: #7a4d00;
  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --error: #b42318;
  --error-bg: #fef3f2;
  --error-border: #fecdca;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-border: #b2ddff;
  --pending: #b54708;
  --test: #fdb022;
  --on-test: #3d2c00;
  --live: #d92d20;
  --invalid: #475467;
  --code-bg: #f1f4f9;
  --code-border: #e3e8f0;
  --canvas: #f8fafc;
  --ink: #0b1220;
  --on-ink: #ffffff;
  /* card illustrations */
  --art-bg: linear-gradient(180deg, #f7f9fc, #eef2f8);
  --art-page: #ffffff;
  --art-line: #dfe5ee;
  --art-dark: #0b1220;
  --art-text: #0b7a4b;
  --slot-lightness: 38%;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -12px rgba(15, 23, 42, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.3), 0 8px 16px -6px rgba(15, 23, 42, 0.1);
  --container: 1160px;
  --main-pt: 32px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c16;
    --surface: #0f1626;
    --surface-2: #131c2e;
    --surface-3: #1a2438;
    --text: #e6edf7;
    --text-2: #c3cede;
    --muted: #94a3b8;
    --subtle: #7c8aa0;
    --border: #1e293b;
    --border-strong: #2b3a52;
    --accent: #3ddc97;
    --accent-hover: #5fe5ab;
    --accent-soft: #0f2a1e;
    --accent-border: #1d5c3f;
    --on-accent: #052016;
    --ok: #6ce9a6;
    --ok-bg: #0c2a1c;
    --ok-border: #135c38;
    --warn: #fec84b;
    --warn-bg: #2a2009;
    --warn-border: #5c4510;
    --error: #fda29b;
    --error-bg: #2a1311;
    --error-border: #6b1d17;
    --info: #84caff;
    --info-bg: #0d2033;
    --info-border: #1d4a73;
    --pending: #fdb022;
    --code-bg: #131c2e;
    --code-border: #24314a;
    --canvas: #0c1322;
    --ink: #e6edf7;
    --on-ink: #070b14;
    --art-bg: linear-gradient(180deg, #111a2c, #0c1322);
    --art-page: #182338;
    --art-line: #2a3953;
    --art-dark: #04070d;
    --art-text: #3ddc97;
    --slot-lightness: 70%;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
    --shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #080c16;
  --surface: #0f1626;
  --surface-2: #131c2e;
  --surface-3: #1a2438;
  --text: #e6edf7;
  --text-2: #c3cede;
  --muted: #94a3b8;
  --subtle: #7c8aa0;
  --border: #1e293b;
  --border-strong: #2b3a52;
  --accent: #3ddc97;
  --accent-hover: #5fe5ab;
  --accent-soft: #0f2a1e;
  --accent-border: #1d5c3f;
  --on-accent: #052016;
  --ok: #6ce9a6;
  --ok-bg: #0c2a1c;
  --ok-border: #135c38;
  --warn: #fec84b;
  --warn-bg: #2a2009;
  --warn-border: #5c4510;
  --error: #fda29b;
  --error-bg: #2a1311;
  --error-border: #6b1d17;
  --info: #84caff;
  --info-bg: #0d2033;
  --info-border: #1d4a73;
  --pending: #fdb022;
  --code-bg: #131c2e;
  --code-border: #24314a;
  --canvas: #0c1322;
  --ink: #e6edf7;
  --on-ink: #070b14;
  --art-bg: linear-gradient(180deg, #111a2c, #0c1322);
  --art-page: #182338;
  --art-line: #2a3953;
  --art-dark: #04070d;
  --art-text: #3ddc97;
  --slot-lightness: 70%;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
  --shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Components below set display; the hidden attribute must still win. */
[hidden] { display: none !important; }
/* Site language (js/i18n.js): every text is in the page in Turkish and English; the other language is hidden. */
html[lang="en"] [lang="tr"],
html[lang="tr"] [lang="en"] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(32, 184, 112, 0.25); }

code, pre { font-family: var(--mono); font-size: 0.84em; }
code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 0.08em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 420px;
  margin: 0;
  line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; }

h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.015em; }
h1 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.35em;
}
h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 750; letter-spacing: -0.02em; margin: 2.4em 0 0.85em; }
h3 { font-size: 1.02rem; line-height: 1.35; font-weight: 650; margin: 1.3em 0 0.5em; }
h4 { font-size: 0.98rem; font-weight: 650; }
/* Section headings on test pages: a brand marker and a hairline to the right. */
main > h2 { display: flex; align-items: center; gap: 12px; }
main > h2::before {
  content: "";
  flex: none;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--gradient);
}
main > h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- header */

.site-nav {
  background: var(--chrome);
  color: var(--chrome-text);
  border-bottom: 1px solid var(--chrome-border);
}
.nav-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 16px 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; filter: drop-shadow(0 4px 12px rgba(32, 184, 112, 0.35)); }
.brand-word { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.brand-word b { color: var(--brand); font-weight: 800; }
.brand-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  padding: 3px 9px;
}

/* Page tabs: one row; scrolls sideways inside itself on narrow screens. */
.nav-links {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: none;
  padding: 12px 10px 12px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--chrome-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 650;
  border-bottom-color: var(--brand);
  text-shadow: 0 0 18px rgba(61, 220, 151, 0.45);
}
.nav-sep { flex: none; width: 1px; margin: 13px 6px; background: var(--chrome-border); }

/* Test pages: vertical menu (js/page.js renderNav). Two top-level menus, each opening a submenu.
 * Wide screens: a fixed column on the left. Narrow screens: a panel under the logo, opened by "Menü". */
:root { --nav-w: 252px; }
.site-nav .nav-top { justify-content: space-between; }
.nav-toggle,
.nav-toggle:hover {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--chrome-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  box-shadow: none;
  font-size: 0.86rem;
}
.nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
/* Language switch "TR | EN" (js/i18n.js switchHtml, placed by js/page.js). */
.nav-top .lang-switch { margin-left: auto; }
.nav-top .lang-switch + .nav-toggle { margin-left: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--chrome-muted);
  text-decoration: none;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(61, 220, 151, 0.14); box-shadow: inset 0 -2px 0 var(--brand); }
.lang-sep { color: var(--chrome-border); }
.nav-tree, .nav-items { list-style: none; margin: 0; padding: 0; }
.nav-tree { padding: 6px 10px 22px; }
.nav-group + .nav-group { margin-top: 4px; }
.nav-group-btn,
.nav-group-btn:hover {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 0.93rem;
  font-weight: 700;
  text-align: left;
}
.nav-group-btn:hover { background: rgba(255, 255, 255, 0.05); }
.nav-chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--chrome-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.nav-group-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-sub { margin: 2px 0 8px 12px; padding-left: 8px; border-left: 1px solid var(--chrome-border); }
.nav-sub[hidden] { display: none; }
.nav-caption { margin: 10px 0 3px 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome-muted); }
.nav-caption:first-child { margin-top: 4px; }
.nav-items a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--chrome-muted);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav-items a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
/* A nested group inside a submenu ("Video" ▸ VAST, Videomade): looks like a link, opens its own list. */
.nav-item-btn,
.nav-item-btn:hover {
  width: 100%;
  min-height: 0;
  justify-content: space-between;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--chrome-muted);
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 550;
  text-align: left;
}
.nav-item-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-item-btn[aria-expanded="true"] { color: #fff; }
.nav-item-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-nested-items { margin: 0 0 2px 12px; padding-left: 6px; border-left: 1px solid var(--chrome-border); }
.nav-nested-items[hidden] { display: none; }
.nav-items a[aria-current="page"] {
  color: #fff;
  font-weight: 650;
  background: rgba(61, 220, 151, 0.12);
  box-shadow: inset 2px 0 0 var(--brand);
}
/* Wide screens: the menu is a fixed column on the left. */
@media (min-width: 1024px) {
  body.has-sidenav { padding-left: var(--nav-w); }
  body.has-sidenav .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: var(--nav-w);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 0;
    border-right: 1px solid var(--chrome-border);
  }
  .site-nav .nav-top { padding: 20px 18px 14px; }
  /* The column is narrow: the "Reklam test" badge goes under the word mark instead of being cut off. */
  .site-nav .brand { flex-wrap: wrap; row-gap: 8px; white-space: normal; }
  .site-nav .nav-toggle { display: none; }
}
/* Narrow screens: a panel under the logo, opened by "Menü". */
@media (max-width: 1023px) {
  .site-nav .nav-top { padding-bottom: 12px; }
  .site-nav:not(.is-open) .nav-menu { display: none; }
  .nav-menu { border-top: 1px solid var(--chrome-border); }
}
.nav-menu .nav-tree { max-width: var(--container); margin: 0 auto; }
@media (min-width: 640px) {
  .nav-menu .nav-group { max-width: 360px; }
}

/* ---------------------------------------------------------------- mode band */

.mode-band { background: var(--invalid); color: #fff; font-size: 0.84rem; }
.mode-band:empty { display: none; }
/* Site-wide notice under the mode band (js/page.js renderSiteNotice; static copy on about / privacy / 404). */
.site-notice { background: #fff4d6; color: #5c3d00; border-bottom: 1px solid #f1d58a; font-size: 0.86rem; font-weight: 600; }
.site-notice-inner { max-width: var(--container); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
.site-notice .icon { width: 18px; height: 18px; flex: none; color: #9a6700; }
.mode-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.mode-net { background: rgba(255, 255, 255, 0.16); border-color: transparent; color: inherit; }
.mode-text { opacity: 0.95; min-width: 0; overflow-wrap: anywhere; }

/* Safe mode: part of the dark chrome, calm. Test and live modes: loud. */
.mode-band.mode-safe { background: var(--chrome-2); color: var(--chrome-muted); border-bottom: 1px solid var(--chrome-border); }
.mode-band.mode-safe .mode-pill {
  background: rgba(32, 184, 112, 0.12);
  color: var(--chrome-accent);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35);
}
.mode-band.mode-safe .mode-dot { box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2), 0 0 10px #3ddc97; }
.mode-band.mode-safe .mode-net { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }

.mode-band.mode-test { background: var(--test); color: var(--on-test); }
.mode-band.mode-test .mode-pill { background: var(--on-test); color: var(--test); }
.mode-band.mode-test .mode-net { background: rgba(255, 255, 255, 0.45); }

.mode-band.mode-live { background: var(--live); color: #fff; }
.mode-band.mode-live .mode-pill { background: #fff; color: #b42318; }
.mode-band.mode-live .mode-text { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .mode-band.mode-live .mode-dot { animation: ru-pulse 1.6s ease-in-out infinite; }
}
@keyframes ru-pulse { 50% { opacity: 0.25; } }

/* ---------------------------------------------------------------- layout */

main { max-width: var(--container); margin: 0 auto; padding: var(--main-pt) 16px 120px; }
main.narrow { max-width: 780px; }
/* oop.html: where GPT shows side rails (viewport >= 1200x650), the column sits next to the left menu, so all the free
   width is right of the content for the right side rail (it needs at least 120x500 px of empty space). */
@media (min-width: 1200px) {
  main.rail-right { margin-left: 24px; margin-right: auto; }
}

/* Test page header: a dark band that continues the chrome, full width. The box-shadow
   paints the band edge to edge without widening the page; clip-path trims it vertically. */
.page-head {
  position: relative;
  margin: calc(-1 * var(--main-pt)) 0 12px;
  padding: 38px 0 34px;
  color: var(--chrome-text);
  background:
    radial-gradient(34% 120% at 64% 0%, rgba(32, 184, 112, 0.2), transparent 100%),
    radial-gradient(24% 90% at 72% 110%, rgba(34, 211, 238, 0.1), transparent 100%),
    var(--chrome);
  box-shadow: 0 0 0 100vmax var(--chrome);
  clip-path: inset(0 -100vmax);
}
.page-head h1 { color: #fff; }
.page-head p { margin: 0.35em 0; }
.page-head .eyebrow, .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-accent);
}
.page-head .eyebrow::before, .hero .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.ad-paths { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.ad-paths code { font-size: 0.8rem; }
.page-head .ad-paths { color: var(--chrome-muted); }
.page-head code { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.lead { font-size: 1.04rem; line-height: 1.65; color: var(--muted); max-width: 78ch; }
.page-head .lead {
  margin-top: 18px;
  max-width: 90ch;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--chrome-border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.97rem;
}
.lead-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-head .lead-label { color: var(--chrome-accent); }

/* Test steps: a grid of numbered cards. */
ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 62px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 0.95rem;
  min-width: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--on-btn);
  background: var(--gradient);
  box-shadow: 0 6px 14px -6px rgba(32, 184, 112, 0.7);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-2 > * { min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.panel > h3:first-child, .panel > h2:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  padding: 30px 16px;
  background: var(--chrome);
  border-top: 1px solid var(--chrome-border);
  color: var(--chrome-muted);
  font-size: 0.86rem;
}
.site-footer a { color: var(--chrome-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { flex-basis: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--chrome-muted); }
.footer-brand .brand-word { font-size: 1rem; }
.footer-brand .brand-mark { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- notices */

#page-notices:empty { display: none; }
#page-notices { display: grid; gap: 10px; margin: 14px 0; }
.notice {
  display: block;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  border-left-width: 4px;
  font-size: 0.92rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
#page-notices .notice { margin: 0; }
.notice-info { background: var(--info-bg); border-color: var(--info-border); border-left-color: var(--info); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-border); border-left-color: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); border-left-color: var(--pending); }
.notice-error { background: var(--error-bg); border-color: var(--error-border); border-left-color: var(--error); }

/* ---------------------------------------------------------------- ads */

.ad-box {
  margin: 16px 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.ad-box figcaption {
  margin: 0;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ad-box figcaption strong { color: var(--text); }
/* The slot area: a quiet canvas so the creative stands out. */
.ad-box > .ad-slot,
.ad-box > .ad-scroll {
  margin: 16px;
  padding: 12px;
  background: var(--canvas);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}
.ad-box > .slot-status {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
/* Wide creatives (728/970) scroll inside the box instead of widening the page. */
.ad-scroll { overflow-x: auto; max-width: 100%; }
.ad-slot { margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.ad-slot:empty::before { content: "reklam alanı"; color: var(--subtle); font-size: 0.78rem; letter-spacing: 0.04em; }

.slot-status { margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.slot-status[data-status-for]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  vertical-align: 0.05em;
}
.slot-status[data-kind="ok"] { color: var(--ok); }
.slot-status[data-kind="ok"]::before { background: var(--ok); }
.slot-status[data-kind="empty"] { color: var(--warn); }
.slot-status[data-kind="empty"]::before { background: var(--pending); }
.slot-status[data-kind="pending"]::before { background: var(--info); }
.slot-status[data-kind="blocked"] { color: var(--error); }
.slot-status[data-kind="blocked"]::before { background: var(--error); }

/* Reserved heights prevent layout shift (CLS) while ads load. */
.h-50 { min-height: 50px; }
.h-90 { min-height: 90px; }
.h-250 { min-height: 250px; }
.w-300 { min-width: 300px; }

.spacer-content { color: var(--muted); }
.spacer-content p { max-width: 70ch; }

/* ---------------------------------------------------------------- controls */

button, .button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--btn);
  background: var(--btn);
  color: var(--on-btn);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
button:hover, .button:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--on-btn);
  box-shadow: 0 8px 22px -8px rgba(32, 184, 112, 0.65);
}
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
button:disabled, button:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--btn);
  border-color: var(--btn);
  box-shadow: none;
}
button.secondary:disabled { background: var(--surface); border-color: var(--border-strong); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.button-row .slot-status { margin: 0; }

/* On/off switches for boolean URL parameters (RU.page.renderToggles). */
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s;
}
.toggle:hover { border-color: var(--accent); color: var(--text); }
.toggle-switch {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  transition: background-color 0.15s;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.3);
  transition: transform 0.15s;
}
.toggle.is-on .toggle-switch { background: var(--btn); border-color: var(--btn); }
.toggle.is-on .toggle-switch::after { transform: translateX(14px); }
.toggle-state { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); }
.toggle.is-on .toggle-state { color: var(--accent); }

form.config-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-items: start; }
.form-actions { grid-column: 1 / -1; margin: 4px 0 0; }
.field { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 650; color: var(--text); letter-spacing: 0.01em; }
.field input, .field select {
  font: inherit;
  font-size: 0.93rem;
  font-weight: 400;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  min-width: 0;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--subtle); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.field small { color: var(--muted); font-weight: 400; font-size: 0.78rem; }

details { margin-top: 14px; }
details > summary { cursor: pointer; font-size: 0.88rem; font-weight: 650; color: var(--text-2); }
details[open] > summary { margin-bottom: 10px; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
tbody tr:last-child > * { border-bottom: 0; }
thead th {
  background: var(--surface-2);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:hover { background: var(--canvas); }
.kv-table th { width: 38%; color: var(--muted); font-weight: 500; }
td code { white-space: nowrap; }
.yes { color: var(--ok); font-weight: 650; }
.no { color: var(--error); font-weight: 650; }

/* ---------------------------------------------------------------- home page */

/* Hero: dark, full width (same box-shadow trick as .page-head), soft brand glows and a faint grid. */
.hero {
  position: relative;
  margin: calc(-1 * var(--main-pt)) 0 8px;
  padding: 64px 0 56px;
  color: var(--chrome-text);
  background:
    radial-gradient(36% 70% at 62% 28%, rgba(32, 184, 112, 0.3), transparent 100%),
    radial-gradient(30% 55% at 46% 100%, rgba(34, 211, 238, 0.14), transparent 100%),
    var(--chrome);
  box-shadow: 0 0 0 100vmax var(--chrome);
  clip-path: inset(0 -100vmax);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(34% 60% at 62% 42%, #000 20%, transparent 100%);
  mask-image: radial-gradient(34% 60% at 62% 42%, #000 20%, transparent 100%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 15ch;
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #3ddc97, #2dd4bf 50%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin: 0; color: #a8b3c7; font-size: 1.1rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { min-height: 46px; padding: 11px 20px; font-size: 0.95rem; border-radius: 12px; }
.hero .button.secondary { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.hero .button.secondary:hover { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 26px 0 0; padding: 0; font-size: 0.88rem; color: #a8b3c7; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--chrome-accent); stroke-width: 2.4; }
.hero code { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--chrome-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--chrome-border);
}
.hero-stats > div { padding: 16px 18px; background: rgba(7, 11, 20, 0.92); }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.hero-stats span { font-size: 0.82rem; color: var(--chrome-muted); }

/* Hero illustration: a browser window with the placements this site tests. */
.hero-art { position: relative; min-width: 0; }
.mock {
  position: relative;
  border-radius: 14px;
  background: #0f1729;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(61, 220, 151, 0.06), 0 0 60px -10px rgba(32, 184, 112, 0.35);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mock-bar span {
  margin-left: 10px;
  flex: 1;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #7c8aa0;
  font: 500 0.72rem/1.4 var(--mono);
}
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-ad {
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px dashed rgba(61, 220, 151, 0.7);
  background: linear-gradient(135deg, rgba(32, 184, 112, 0.22), rgba(20, 184, 166, 0.12));
  color: #8af0c3;
  font: 700 0.66rem/1 var(--mono);
  letter-spacing: 0.04em;
}
.mock-leader { height: 34px; }
.mock-cols { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 12px; }
.mock-article { display: grid; gap: 7px; align-content: start; }
.mock-article b { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); }
.mock-article b.h { height: 12px; width: 75%; background: rgba(255, 255, 255, 0.18); margin-bottom: 3px; }
.mock-article b.s { width: 60%; }
.mock-mrec { height: 74px; margin: 4px 0; }
.mock-half { height: 100%; min-height: 150px; }
.mock-anchor { height: 26px; border-style: solid; }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #e6edf7;
  background: rgba(15, 23, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.float-chip b { color: var(--chrome-accent); }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
.chip-1 { top: 22%; left: -18px; }
.chip-2 { bottom: 26%; right: -14px; }
.chip-3 { bottom: -14px; left: 18%; }
@media (prefers-reduced-motion: no-preference) {
  .chip-1 { animation: ru-float 6s ease-in-out infinite; }
  .chip-2 { animation: ru-float 7s ease-in-out -2s infinite; }
  .chip-3 { animation: ru-float 8s ease-in-out -4s infinite; }
}
@keyframes ru-float { 50% { transform: translateY(-8px); } }

/* Page groups and format cards. */
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.group-head h3 { margin: 0; font-size: 0.76rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.group-head span { font-size: 0.8rem; color: var(--subtle); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; margin: 0; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { color: var(--text); border-color: rgba(32, 184, 112, 0.55); box-shadow: var(--shadow-md), 0 0 0 4px rgba(32, 184, 112, 0.08); transform: translateY(-3px); }
.card-art {
  display: block;
  height: 132px;
  background: var(--art-bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card-art svg { display: block; width: 100%; height: 100%; transition: transform 0.3s; }
.card:hover .card-art svg { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.card h3, .card h4 { margin: 0; padding-right: 28px; font-size: 1.02rem; color: var(--text); }
.card p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.card::after {
  content: "→";
  position: absolute;
  top: 146px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--subtle);
  background: var(--surface-2);
  transition: transform 0.2s, color 0.2s, background-color 0.2s;
}
.card:hover::after { color: var(--on-btn); background: var(--btn); transform: translateX(3px); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  font-size: 0.7rem;
  font-weight: 650;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Card illustrations (inline SVG, viewBox 0 0 240 120). */
.art-page { fill: var(--art-page); stroke: var(--art-line); stroke-width: 1; }
.art-k { fill: var(--art-line); }
.art-dot { fill: var(--art-line); }
.art-ad { fill: rgba(32, 184, 112, 0.16); stroke: #20b870; stroke-width: 1.4; stroke-dasharray: 4 3; }
.art-g { fill: #20b870; }
.art-g2 { fill: #3ddc97; }
.art-dark { fill: var(--art-dark); }
.art-w { fill: #ffffff; }
.art-dim { fill: #0b1220; opacity: 0.38; }
.art-amber { fill: #f79009; }
.art-t { font: 700 8px var(--font); fill: var(--art-text); letter-spacing: 0.02em; }
.art-t-light { font: 700 8px var(--font); fill: #ffffff; }
.art-t-dark { font: 800 8px var(--font); fill: #04140c; }
.art-mono { font: 600 7.5px var(--mono); fill: #3ddc97; }
.art-mono-muted { font: 600 7.5px var(--mono); fill: #7c8aa0; }
.art-line { stroke: #20b870; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.param-hint { margin: 12px 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.9; }

/* ---------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2147483000;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  width: min(440px, 100%);
}
.modal h3 { margin-top: 0; font-size: 1.15rem; }
.modal p { color: var(--muted); }


/* ---------------------------------------------------------------- timeline */

.timeline { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.timeline li { padding: 7px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t {
  display: inline-block;
  min-width: 64px;
  margin-right: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--subtle);
}

/* ---------------------------------------------------------------- video */

.player {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player video, .player .ima-container { position: absolute; inset: 0; width: 100%; height: 100%; }
.outstream-box {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  background: var(--canvas);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* ---------------------------------------------------------------- game */

.game-layout { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
.game-column, .game-side { min-width: 0; }
/* The game keeps its aspect ratio (config.game.aspectRatio, width / height)
   and fits the viewport height, so it is fully visible in portrait and landscape. */
.game-stage {
  --game-ar: 0.75;
  position: relative;
  width: min(100%, 420px);
  width: min(100%, 420px, max(240px, calc((100vh - 150px) * var(--game-ar))));
  width: min(100%, 420px, max(240px, calc((100svh - 150px) * var(--game-ar))));
  aspect-ratio: var(--game-ar);
  margin: 0 auto;
  background: #0b1f17;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.game-cover, .game-ad-layer { position: absolute; inset: 0; }
.game-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 30%, rgba(32, 184, 112, 0.35), transparent 60%),
    linear-gradient(180deg, #10291f, #08140f);
}
.game-cover h3 { margin: 0; color: #fff; font-size: 1.3rem; }
.game-cover p { margin: 0; color: #c8dcd2; max-width: 30ch; }
.game-cover button { background: var(--brand); border-color: var(--brand); color: #052016; }
.game-cover button:hover { background: #3ddc97; border-color: #3ddc97; color: #052016; }
.game-ad-layer { background: #000; z-index: 2; }
/* Page interstitial at a game's level break (js/game-ads.js): a full-screen layer with one display ad. */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 9, 18, 0.88);
}
.game-overlay-box {
  max-width: 100%;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.game-overlay-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.game-overlay-label { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #667085; }
.game-overlay-close,
.game-overlay-close:hover { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
.game-overlay-slot { min-width: 300px; min-height: 250px; display: flex; align-items: center; justify-content: center; }
.game-overlay .slot-status { margin: 6px 0 0; font-size: 0.75rem; }
/* IMA puts its ad layer before this empty video in the DOM, so without z-index -1 the
   placeholder would paint over the ad (sound, no picture) and catch its clicks. */
.ima-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.creative-preview { display: block; border: 0; margin: 0 auto; }
/* html5.html: the sample creative right under the heading, above the fold. */
.render-table td code { white-space: normal; overflow-wrap: anywhere; }
.format-list { list-style: none; padding: 0; margin: 0; }
.format-list li { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.format-list li:last-child { border-bottom: 0; }
.format-list code { overflow-wrap: anywhere; font-size: 0.78rem; justify-self: start; }
.format-list .slot-status { margin: 0; }
.checklist { padding-left: 20px; font-size: 0.9rem; color: var(--text-2); }
.checklist li { margin: 5px 0; }
button.big { min-height: 48px; min-width: 160px; font-size: 1.05rem; font-weight: 700; border-radius: 12px; }
.game-nav-bar { margin-top: 12px; }
.game-nav-bar .button { margin-top: 10px; }
/* Space between the game's own controls and the banner below it on mobile. */
.game-side { margin-top: 8px; }
.game-banner-slot { min-height: 50px; }
@media (min-width: 900px) {
  .game-side { margin-top: 0; }
  .game-banner-slot { min-height: 250px; }
}

/* ---------------------------------------------------------------- debug panel */

.ru-debug {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147483600;
  font: 12px/1.45 var(--font);
  color: var(--text);
}
.ru-debug button { min-height: 0; box-shadow: none; }
.ru-debug-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow);
}
.ru-debug-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); opacity: 0.9; }
.ru-debug-pill .ru-debug-count { background: var(--brand); color: #052016; border-radius: 999px; padding: 0 7px; margin-left: 2px; font-weight: 750; }
.ru-debug-body { display: none; }
.ru-debug.is-open .ru-debug-pill { display: none; }
.ru-debug.is-open .ru-debug-body {
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ru-debug-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: move;
  touch-action: none;
  user-select: none;
}
.ru-debug-head .ru-debug-count { color: var(--muted); }
.ru-debug-close { margin-left: auto; padding: 0 8px; font-size: 18px; line-height: 1.2; background: transparent; color: var(--text); border-color: transparent; }
.ru-debug-close:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }
.ru-debug-summary { padding: 8px 12px; border-bottom: 1px solid var(--border); display: grid; gap: 3px; }
.ru-debug-summary > div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.ru-debug-summary > div > span:first-child { color: var(--muted); }
.ru-debug-summary code { font-size: 11px; }
.ru-mode { font-weight: 700; }
.ru-mode-safe { color: var(--ok); }
.ru-mode-test { color: var(--warn); }
.ru-mode-live, .ru-mode-invalid { color: var(--error); }
.ru-debug-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
.ru-debug-tools button { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.ru-debug-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 12px 8px; color: var(--muted); }
.ru-debug-status { padding: 0 12px; color: var(--ok); min-height: 0; }
.ru-debug-status:empty { display: none; }
.ru-debug-log { flex: 1; overflow: auto; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; }
.ru-row { border-bottom: 1px solid var(--border); }
.ru-row summary { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 5px 12px; cursor: pointer; list-style: none; }
.ru-row summary:hover { background: var(--canvas); }
.ru-row summary::-webkit-details-marker { display: none; }
.ru-row pre { margin: 0 12px 8px; max-height: 260px; font-size: 11px; }
.ru-t { color: var(--subtle); min-width: 52px; text-align: right; }
.ru-src { font-weight: 700; min-width: 44px; }
.ru-src-gpt .ru-src { color: #1d8bd1; }
.ru-src-pb .ru-src { color: #d1771d; }
.ru-src-ima .ru-src { color: #9b3fd1; }
.ru-src-page .ru-src { color: var(--muted); }
.ru-type { font-weight: 600; }
.ru-slot { color: var(--slot-color); font-weight: 600; }
.ru-msg { color: var(--muted); flex-basis: 100%; padding-left: 58px; overflow-wrap: anywhere; }
.ru-debug-log[data-hide~="gpt"] .ru-src-gpt,
.ru-debug-log[data-hide~="pb"] .ru-src-pb,
.ru-debug-log[data-hide~="ima"] .ru-src-ima,
.ru-debug-log[data-hide~="page"] .ru-src-page { display: none; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .card, .card::after, button, .button, .toggle, .toggle-switch, .toggle-switch::after, .field input, .field select {
    transition: none;
  }
  .card:hover { transform: none; }
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 979px) {
  .hero-art { max-width: 560px; }
}

@media (max-width: 640px) {
  :root { --main-pt: 22px; }
  .nav-top { padding-top: 12px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 1.08rem; }
  .mode-band { font-size: 0.78rem; line-height: 1.45; }
  .mode-inner { padding: 7px 16px; gap: 4px 8px; }
  .page-head { padding: 28px 0 26px; }
  .hero { padding: 40px 0 40px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-stats { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats strong { font-size: 1.3rem; }
  .float-chip { display: none; }
  .panel { padding: 16px; }
  .steps li { padding: 14px 14px 14px 56px; }
  .steps li::before { left: 12px; top: 13px; }
}

@media (max-width: 520px) {
  .ru-msg { padding-left: 0; }
  .brand-badge { display: none; }
  /* Full-bleed ad boxes: a 300 px creative fits a 320 px screen. */
  .ad-box {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ad-box figcaption { border-radius: 0; }
  .ad-box > .ad-slot,
  .ad-box > .ad-scroll {
    margin: 12px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

/* ---------------------------------------------------------------- sample publisher page
 * Realistic scenarios: each format page shows its ads inside a mock news site ("Örnek Haber").
 * The mock keeps a light theme of its own (it stands for someone else's site), so the theme
 * tokens are redefined inside it. */

.pub {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #eaecf0;
  --text: #101828;
  --text-2: #344054;
  --muted: #475467;
  --subtle: #667085;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --accent: #0b7a4b;
  --accent-hover: #086a41;
  --accent-soft: #e8f7ef;
  --accent-border: #a6e3c4;
  --on-accent: #ffffff;
  --ok: #027a48;
  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --warn: #7a4d00;
  --error: #b42318;
  --info: #175cd3;
  --pending: #b54708;
  --code-bg: #f2f4f7;
  --code-border: #e4e7ec;
  --canvas: #f9fafb;
  --pub-red: #c8102e;
  --pub-serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
  margin: 16px 0;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.pub-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #eef1f6;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.pub-dots { display: inline-flex; gap: 6px; }
.pub-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e3; }
.pub-dots i:first-child { background: #ff5f57; }
.pub-dots i:nth-child(2) { background: #febc2e; }
.pub-dots i:nth-child(3) { background: #28c840; }
.pub-url {
  flex: 1;
  min-width: 0;
  max-width: 460px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--subtle);
  font: 500 0.75rem/1.4 var(--mono);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-url b { color: var(--text-2); font-weight: 600; }
.pub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 12px 20px;
  border-bottom: 3px solid var(--pub-red);
  background: #fff;
}
.pub-logo { font: 800 1.3rem/1 var(--pub-serif); letter-spacing: -0.02em; color: #111; white-space: nowrap; }
.pub-logo b { color: var(--pub-red); }
.pub-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pub-note {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.pub-body { padding: 24px 28px 28px; }
.pub-layout { display: grid; gap: 28px; }
@media (min-width: 980px) {
  .pub-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.pub-layout > * { min-width: 0; }
.pub-kicker { margin: 0 0 6px; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pub-red); }
.pub-title { margin: 0 0 10px; font: 700 clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem)/1.2 var(--pub-serif); letter-spacing: -0.01em; color: #111; }
.pub-title::before { display: none; }
.pub-meta { margin: 0 0 18px; font-size: 0.82rem; color: var(--subtle); }
.pub-p { font: 1.06rem/1.75 var(--pub-serif); color: #1d2433; margin: 0 0 1.05em; }
.pub-article h3 { font-family: var(--pub-serif); font-size: 1.2rem; margin: 1.4em 0 0.6em; }
.pub-side h3, .pub-side-title { margin: 0 0 10px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* An ad placement inside the mock: a "Reklam" label, the slot, then the test status. */
.pub-ad { margin: 24px 0; min-width: 0; }
.pub-ad-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.pub-ad-label code { font-size: 0.68rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.pub-ad .ad-slot, .pub-ad .ad-scroll { background: var(--canvas); border-radius: 6px; }
.pub-ad .ad-scroll .ad-slot { background: transparent; }
.pub-ad .slot-status { font-size: 0.78rem; margin-top: 6px; }

/* Rewarded: premium content behind an opt-in reward offer. */
.paywall { position: relative; margin-top: -90px; padding-top: 90px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90px); }
.paywall-card {
  text-align: center;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--canvas));
  box-shadow: var(--shadow-md);
}
.paywall-card h3 { margin: 10px 0 6px; font-family: var(--font); font-size: 1.15rem; }
.paywall-card p { margin: 0 auto; max-width: 46ch; color: var(--muted); font: 0.95rem/1.6 var(--font); }
.paywall-card .button-row { justify-content: center; margin: 18px 0 8px; }
.paywall-card .slot-status { font-size: 0.8rem; }
.paywall-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.paywall-icon .icon { width: 24px; height: 24px; }
.unlock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok);
  font: 600 0.9rem/1.4 var(--font);
}

/* News feed with sponsored cards (native). */
.feed { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.feed > li { padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.feed > li:last-child { border-bottom: 0; }
.feed-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.feed-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font: 800 1.4rem/1 var(--pub-serif);
  background: linear-gradient(135deg, var(--thumb-a, #5b7fa6), var(--thumb-b, #2c4a6b));
}
img.feed-thumb { width: 100%; height: auto; object-fit: cover; }
.feed-cat, .feed-title, .feed-time { display: block; }
.feed-sponsored:hover .feed-title { text-decoration: underline; }
.pub-side-title { margin: 28px 0 8px; }
.pub-side .pub-ad { margin-top: 0; }
.feed-ad { margin: 8px 0; padding: 12px; background: var(--canvas); border-radius: 10px; }
.feed-ad .ad-slot { background: transparent; }
.feed-cat { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pub-red); }
.feed-title { margin: 2px 0 4px; font: 700 1.02rem/1.35 var(--pub-serif); color: #111; }
.feed-time { font-size: 0.78rem; color: var(--subtle); }
.feed-sponsored .feed-cat { color: var(--subtle); }
.feed > li.is-ad { background: var(--canvas); margin: 0 -12px; padding: 14px 12px; border-radius: 8px; }

/* "Bunlar da ilginizi çekebilir": sponsored natives, two side by side when two columns fit, else one
 * column. native.html reads the resolved column count at load to decide how many ads to request.
 * Each native is a 300x250 box, the IAB Medium Rectangle (owner 2026-11-18); a card is the box plus its 12 px
 * padding (324 px), so two columns need 324 + 12 + 324 = 660 px. */
.native-widget { container-type: inline-size; margin: 20px 0 8px; }
.native-widget-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111;
}
.native-widget-title { margin: 0; font: 700 1.2rem/1.3 var(--pub-serif); letter-spacing: -0.01em; color: #111; }
.native-widget-by { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.native-grid { display: grid; grid-template-columns: minmax(0, 324px); gap: 12px; }
@container (min-width: 660px) {
  .native-grid { grid-template-columns: repeat(2, 324px); }
}
.native-grid > .feed-ad { margin: 0; }
.native-grid .ad-slot,
.native-grid [data-native-box] { width: 300px; max-width: 100%; height: 250px; overflow: hidden; margin: 0 auto; }
/* The Prebid native ad as a card of its own: white, framed, an "Ad" badge, the picture on top. */
.native-ad-card { position: relative; display: flex; flex-direction: column; width: 300px; height: 250px; box-sizing: border-box;
  overflow: hidden; background: #fff; border: 1px solid #cfd6e0; border-radius: 10px; box-shadow: 0 1px 4px rgba(16, 24, 40, 0.14);
  color: #111; text-decoration: none; }
.native-ad-card:hover .nac-title { text-decoration: underline; }
.nac-badge { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: 4px; background: #f5b700; color: #111;
  font: 700 10px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.nac-img { display: block; width: 100%; height: 140px; flex: none; object-fit: cover; background: #e9edf2; }
.nac-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; min-height: 0; }
.nac-title, .nac-text { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.nac-title { font: 700 14px/1.3 var(--pub-serif); -webkit-line-clamp: 2; }
.nac-text { font-size: 12px; line-height: 1.35; color: #4b5563; -webkit-line-clamp: 1; }
.nac-by { margin-top: auto; font-size: 11px; color: #6b7280; }
.native-layout-note { margin: 8px 0 0; font-size: 0.76rem; color: var(--subtle); }

/* Story navigation (interstitial on page change). */
.story-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  font: 600 0.95rem/1.4 var(--pub-serif);
}
.story-link:hover { border-color: var(--pub-red); color: #111; }
.story-link[aria-current="page"] { background: var(--surface-2); pointer-events: none; }
.story-num { font: 800 1.1rem/1.3 var(--font); color: var(--pub-red); }
.story-next { display: flex; justify-content: flex-end; margin-top: 18px; }

/* Video article. */
.video-frame { position: relative; }
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
  box-shadow: none;
  font-size: 1rem;
}
.play-overlay:hover { background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); color: #fff; border: 0; }
.play-overlay:disabled, .play-overlay:disabled:hover { background: transparent; opacity: 1; }
.play-overlay .play-circle {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pub-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.play-overlay .play-circle .icon { width: 30px; height: 30px; fill: #fff; stroke: #fff; margin-left: 4px; }
.video-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.video-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--state-color, var(--border-strong)); }
.video-state[data-state="ad"] { --state-color: #f79009; }
.video-state[data-state="content"] { --state-color: #12b76a; }
.video-state[data-state="error"] { --state-color: var(--error); }
.outstream-slot { transition: max-height 0.4s ease, opacity 0.4s ease; max-height: 600px; overflow: hidden; }
.outstream-slot.is-collapsed { max-height: 0; opacity: 0; margin: 0; }

/* Transient confirmation (reward granted, interstitial shown …). */
.ru-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #0b2a1d;
  color: #e9fbf2;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translate(-50%, 0);
}
.ru-toast .icon { color: #3ddc97; }
.ru-toast[data-kind="warn"] { background: #3d2c00; color: #fff3d6; }
.ru-toast[data-kind="warn"] .icon { color: #fdb022; }
@media (prefers-reduced-motion: no-preference) {
  .ru-toast { animation: ru-toast-in 0.25s ease-out; }
}
@keyframes ru-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  .outstream-slot { transition: none; animation: none; }
}

@media (max-width: 640px) {
  .pub-body { padding: 18px 16px 22px; }
  .pub-bar { padding: 10px 16px; }
  .pub-nav { display: none; }
  .feed-item { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 520px) {
  /* Full-bleed mock and ad placements: a 300 px creative fits a 320 px screen. */
  .pub { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .pub-browser { border-radius: 0; }
  .pub-ad { margin-left: -16px; margin-right: -16px; }
  .pub-ad-label, .pub-ad .slot-status { padding: 0 16px; }
  .pub-ad .ad-slot, .pub-ad .ad-scroll { border-radius: 0; }
}

/* Rewarded: the offer card below the unlocked article ("earn more points") and the last result. */
.paywall-card .reward-result {
  margin: 12px auto 0;
  max-width: 52ch;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font: 600 0.88rem/1.5 var(--font);
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}
.paywall-card .reward-result[data-kind="warn"] { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }

/* Scenario switcher (videomade.html) and the player slot. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip[aria-current="page"] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
#vm-target:empty { aspect-ratio: 16 / 9; background: #0b1220; border-radius: 8px; }

/* ---------------------------------------------------------------- ReklamUp ad server pages (rk-*.html)
 * The demo ad script fills the placements; the page labels each one with the source that served it. */

.mode-band.mode-reklamup { background: #0b2a1d; color: #d7f5e6; border-bottom: 1px solid var(--chrome-border); }
.mode-band.mode-reklamup .mode-pill {
  background: rgba(32, 184, 112, 0.18);
  color: var(--chrome-accent);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.45);
}

/* Source chips: which line item source served a placement (window.__ads.served / "ads:served"). */
.rk-served { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; min-height: 22px; }
.rk-src {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font: 650 0.72rem/1.6 var(--font);
  letter-spacing: 0.01em;
  background: var(--surface-3);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.rk-src-reklamup { background: #20b870; color: #04140c; }
.rk-src-google { background: #175cd3; color: #fff; }
.rk-src-prebid { background: #0f766e; color: #fff; }
.rk-src-vast { background: #b54708; color: #fff; }
.rk-src-server { background: #6d28d9; color: #fff; }
.rk-src-none { background: var(--surface-3); color: var(--muted); }
.rk-legend { margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.rk-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.rk-legend li:last-child { border-bottom: 0; }
.rk-legend code { margin-right: 4px; }
.rk-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.86rem; color: var(--muted); }

/* Durum box: the ad server's decision trace (chain) of a unit, one row per line item in decision order. */
.rk-durum { margin: 8px 0 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.8rem; overflow: hidden; }
.rk-durum:empty { display: none; }
.rk-durum-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 7px 10px; background: var(--surface-2); color: var(--muted); }
.rk-durum-head strong { color: var(--text); }
.rk-durum-win, .rk-durum-sub, .rk-durum-note { margin: 0; padding: 6px 10px; color: var(--text-2); overflow-wrap: anywhere; }
.rk-durum-win { font-weight: 600; border-top: 1px solid var(--border); }
.rk-durum-note { color: var(--subtle); border-top: 1px solid var(--border); }
.rk-cells { margin: 0; padding: 0 10px 6px 28px; color: var(--text-2); }
.rk-cells li[data-filled="0"] { color: var(--warn); }
.rk-chain { list-style: none; margin: 0; padding: 0; }
.rk-chain li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 0 6px; padding: 6px 10px; border-top: 1px solid var(--border); }
.rk-chain li[data-st="skipped"] { color: var(--subtle); }
.rk-chain li[data-st="skipped"] .rk-li-name { font-weight: 500; }
.rk-chain li[data-st="filled"] { background: var(--ok-bg); }
.rk-n { font-weight: 700; color: var(--subtle); text-align: right; }
.rk-li-head { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.rk-li-name { font-weight: 650; overflow-wrap: anywhere; }
.rk-meta { color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; }
.rk-why { color: var(--text-2); overflow-wrap: anywhere; }
.rk-st { display: inline-block; padding: 0 7px; border-radius: 999px; border: 1px solid transparent; font: 650 0.7rem/1.6 var(--font); white-space: nowrap; }
.rk-st-filled { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok); }
.rk-st-empty { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.rk-st-remaining { background: var(--info-bg); border-color: var(--info-border); color: var(--info); }
.rk-st-skipped { background: var(--surface-3); color: var(--muted); }
.rk-durum details { border-top: 1px solid var(--border); }
.rk-durum summary { padding: 6px 10px; cursor: pointer; color: var(--accent); font-weight: 600; }
/* A page's own log of what an ad script or a game told it (rk-game, rk-icerik). */
.rk-log { margin: 0; padding: 0 0 0 20px; font-size: 0.82rem; color: var(--text-2); }
.rk-log li { padding: 2px 0; overflow-wrap: anywhere; }
.rk-vast { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.rk-vast[data-kind="ok"] { color: var(--ok); }
.rk-kv-pick a[aria-current="true"], .rk-kv-pick a[aria-current="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rk-kind { margin: 6px 0 0; font-size: 0.84rem; font-weight: 600; color: var(--text-2); overflow-wrap: anywhere; }
.rk-kind[data-kind="ok"] { color: var(--ok); }
.rk-kind[data-kind="empty"] { color: var(--warn); }

/* A placement the ad script fills: reserved height until it decides, so the page does not jump. */
.rk-slot { min-height: 40px; min-width: 0; }
.pub-ad .rk-slot { background: var(--canvas); border-radius: 6px; }

/* Kitle pages: what the collector holds for this browser. */
.rk-profile .rk-seg {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font: 600 0.8rem/1.6 var(--mono);
}
.rk-profile p { margin: 6px 0; font-size: 0.86rem; color: var(--muted); }
.rk-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.86rem; }
.rk-cross { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
