/* ==========================================================================
   Brick Breaker Games - brickbreakergames.xyz
   Core stylesheet. Mobile-first, no frameworks, no external requests.
   Sections: 1 Tokens  2 Reset  3 Layout  4 Header/Nav  5 Hero  6 Cards
             7 Article  8 Forms  9 Game UI  10 Ads  11 Footer  12 Utilities
   ========================================================================== */

/* -------------------------------------------------- 1. Design tokens ---- */
:root {
  --brand: #d8402a;
  --brand-dark: #a92d1c;
  --brand-soft: #fdeeea;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-sunken: #eef0f4;
  --surface: #ffffff;
  --border: #dfe3e8;
  --border-strong: #c3c9d2;

  --text: #16181d;
  --text-muted: #565d6b;
  --text-faint: #7b8290;

  --ok: #15803d;
  --warn: #b45309;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 30, .07);
  --shadow: 0 4px 16px rgba(16, 20, 30, .09);
  --shadow-lg: 0 12px 32px rgba(16, 20, 30, .14);

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #ff6b4f;
    --brand-dark: #ff8a72;
    --brand-soft: #35201b;
    --accent: #6ea8fe;
    --accent-soft: #1b2637;

    --bg: #12141a;
    --bg-alt: #171a21;
    --bg-sunken: #1d212a;
    --surface: #191d25;
    --border: #2b313c;
    --border-strong: #3a414f;

    --text: #e8eaef;
    --text-muted: #a8afbd;
    --text-faint: #858d9c;

    --ok: #4ade80;
    --warn: #fbbf24;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand: #ff6b4f;
  --brand-dark: #ff8a72;
  --brand-soft: #35201b;
  --accent: #6ea8fe;
  --accent-soft: #1b2637;

  --bg: #12141a;
  --bg-alt: #171a21;
  --bg-sunken: #1d212a;
  --surface: #191d25;
  --border: #2b313c;
  --border-strong: #3a414f;

  --text: #e8eaef;
  --text-muted: #a8afbd;
  --text-faint: #858d9c;

  --ok: #4ade80;
  --warn: #fbbf24;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* -------------------------------------------------------- 2. Reset ----- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.32rem); }
h4 { font-size: 1.06rem; }

p, ul, ol, dl, table, figure, pre { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

strong { font-weight: 700; }
small { font-size: .875em; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-sunken);
  border-radius: 4px;
  padding: .12em .38em;
}
kbd {
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  font-weight: 600;
  white-space: nowrap;
}
pre {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }

table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { border: 1px solid var(--border); padding: .6rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }

blockquote {
  margin: 0 0 1.2em;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 4px solid var(--brand);
  color: var(--text-muted);
  font-style: italic;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--brand); color: #fff; }

/* ------------------------------------------------------- 3. Layout ----- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: 2.6rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: .25rem; }
.section-head p { color: var(--text-muted); margin: 0; max-width: 62ch; }
.section-head .more { font-weight: 600; font-size: .95rem; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------- 4. Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-text small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.1;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--border-strong); }

.main-nav {
  display: none;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: .6rem 0 1rem;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: .62rem .2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand); }

.header-tools { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: auto;
  min-height: 38px;
  padding: 0 .7rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------------------------------------------------- 5. Hero/CTA ------ */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0 2.4rem;
}
.hero-inner { display: grid; gap: 1.6rem; align-items: center; }
.hero h1 { margin-bottom: .55rem; }
.hero .lede { font-size: 1.08rem; color: var(--text-muted); max-width: 56ch; margin-bottom: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--text-muted); }
.hero-facts li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.hero-art { justify-self: center; width: 100%; max-width: 460px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); padding-inline: .5rem; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------- 6. Cards ------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-media { position: relative; background: var(--bg-sunken); aspect-ratio: 16 / 9; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--text-muted); font-size: .93rem; margin-bottom: .8rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-plain { background: var(--bg-sunken); color: var(--text-muted); }

.meta-line { font-size: .84rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: .3rem .7rem; }

.fav-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.fav-btn:hover { color: var(--brand); border-color: var(--brand); }
.fav-btn[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.fav-btn svg { width: 18px; height: 18px; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--border); margin: 0; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: block; padding: .62rem 0; font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { display: block; font-weight: 400; font-size: .88rem; color: var(--text-muted); }

/* ----------------------------------------------------- 7. Article ------ */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding: .9rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .3rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--text-faint); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.page-head { padding: .8rem 0 1.4rem; }
.page-head .lede { font-size: 1.06rem; color: var(--text-muted); max-width: 66ch; }

.layout-sidebar { display: grid; gap: 2rem; align-items: start; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .9rem;
  font-size: .9rem;
  color: var(--text-muted);
  border-block: 1px solid var(--border);
  padding: .7rem 0;
  margin-bottom: 1.4rem;
}
.article-meta img { width: 34px; height: 34px; border-radius: 50%; }
.article-meta a { font-weight: 600; }

.prose { font-size: 1.05rem; }
.prose > h2 { margin-top: 2.1rem; padding-top: .2rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.prose > h3 { margin-top: 1.5rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.prose li { margin-bottom: .5em; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: .86rem; color: var(--text-faint); margin-top: .45rem; }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.8rem;
}
.toc h2 { font-size: 1rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .96rem; }
.toc li { margin-bottom: .3em; }

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.6rem 0;
}
.callout h3, .callout h4 { margin-bottom: .4rem; font-size: 1.02rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-insight { border-left-color: var(--brand); }
.callout-key { border-left-color: var(--ok); }
.callout-note { border-left-color: var(--warn); }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
  background: var(--surface);
}
details.faq-item > summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after { content: "+"; color: var(--brand); font-size: 1.25rem; line-height: 1; flex: 0 0 auto; }
details.faq-item[open] > summary::after { content: "\2212"; }
.faq-answer { padding: 0 1rem .9rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.author-box {
  display: grid;
  gap: 1rem;
  grid-template-columns: 76px 1fr;
  align-items: start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 2rem 0;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.author-box h2, .author-box h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.author-box .role { font-size: .86rem; color: var(--brand); font-weight: 700; margin-bottom: .45rem; }
.author-box p { font-size: .93rem; color: var(--text-muted); margin-bottom: .5rem; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.6rem 0; }
.share span { font-size: .88rem; font-weight: 700; color: var(--text-muted); }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
  z-index: 150;
  transition: width .1s linear;
}

.sidebar { display: grid; gap: 1.2rem; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.widget h2, .widget h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .6rem; }

/* ------------------------------------------------------- 8. Forms ------ */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field .hint { font-size: .84rem; color: var(--text-faint); margin-top: .3rem; }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%;
  padding: .62rem .75rem;
  font: inherit;
  font-size: .98rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }

.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1 1 auto; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .38rem .85rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--text-muted); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.form-note {
  border: 1px dashed var(--border-strong);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.form-status { margin-top: .8rem; font-weight: 600; font-size: .93rem; }

.newsletter {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.newsletter h2 { margin-bottom: .3rem; }
.newsletter p { color: var(--text-muted); margin-bottom: .9rem; }
.newsletter form { display: grid; gap: .6rem; }

/* ----------------------------------------------------- 9. Game UI ------ */
.game-stage {
  background: #0b0d13;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .6rem;
  position: relative;
  overflow: hidden;
}
.game-canvas-wrap { position: relative; width: 100%; }
canvas.game-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #0b0d13;
  touch-action: none;
}
.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .95rem;
  padding: .5rem .3rem .6rem;
  color: #e8eaef;
  font-size: .88rem;
  font-weight: 600;
}
.game-hud .hud-item { display: flex; gap: .35rem; align-items: baseline; }
.game-hud .hud-label { color: #8b93a4; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.game-hud .hud-value { font-family: var(--font-mono); font-size: 1rem; color: #fff; }

.game-overlay {
  position: absolute;
  inset: .6rem;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.2rem;
  background: rgba(8, 10, 16, .88);
  border-radius: var(--radius-sm);
  color: #fff;
  z-index: 3;
}
.game-overlay[hidden] { display: none; }
.game-overlay h2 { color: #fff; font-size: 1.5rem; margin-bottom: .4rem; }
.game-overlay p { color: #b9c0cd; max-width: 46ch; margin-inline: auto; font-size: .95rem; }
.game-overlay .overlay-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.game-overlay .overlay-stats { display: flex; gap: 1.4rem; justify-content: center; margin: .9rem 0 0; font-family: var(--font-mono); }
.game-overlay .overlay-stats div { text-align: center; }
.game-overlay .overlay-stats span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8b93a4; font-family: var(--font); }
.game-overlay .overlay-stats strong { font-size: 1.3rem; color: #fff; }

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .55rem .3rem .2rem;
}
.game-controls .btn { background: #1c212c; border-color: #2f3644; color: #e8eaef; }
.game-controls .btn:hover { background: #262d3a; border-color: #414a5c; color: #fff; }
.game-controls .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.game-controls .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.touch-pad { display: none; gap: .5rem; padding: .4rem .3rem .2rem; }
.touch-pad button {
  flex: 1 1 0;
  min-height: 56px;
  font-size: 1.4rem;
  background: #1c212c;
  border: 1px solid #2f3644;
  color: #e8eaef;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.touch-pad button:active { background: var(--brand); border-color: var(--brand); color: #fff; }
body.has-touch .touch-pad { display: flex; }

.scores-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.score-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .85rem;
  text-align: center;
}
.score-tile span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; }
.score-tile strong { font-size: 1.35rem; font-family: var(--font-mono); }

.spec-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .5rem; }
.spec-list li { display: flex; gap: .6rem; margin: 0; font-size: .95rem; }
.spec-list dt, .spec-list .k { font-weight: 700; min-width: 108px; flex: 0 0 auto; }

/* --------------------------------------------------- 10. Ad slots ------ */
.ad-slot {
  display: block;
  margin: 1.8rem auto;
  min-height: 90px;
  max-width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-faint);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .5rem;
}
.ad-slot::after { content: "Advertisement space"; }
.ad-slot.is-filled { border: 0; background: none; min-height: 0; padding: 0; }
.ad-slot.is-filled::after { content: none; }
.ad-slot-sidebar { min-height: 250px; }
.ad-slot-bottom { margin-bottom: 0; }

/* ----------------------------------------------------- 11. Footer ------ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 1.4rem;
  margin-top: 3rem;
  font-size: .94rem;
}
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: .6rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4em; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-about p { color: var(--text-muted); max-width: 40ch; }
.social-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.social-row a:hover { color: var(--brand); border-color: var(--brand); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .86rem;
}

/* --------------------------------------------------- 12. Utilities ----- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 160;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: grid; gap: .8rem; max-width: var(--wrap); margin-inline: auto; }
.cookie-inner p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-alt);
}
.empty-state h2 { font-size: 1.1rem; color: var(--text); }

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .93rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.notice strong { color: var(--text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.stack > * + * { margin-top: 1rem; }
.count-note { font-size: .9rem; color: var(--text-muted); margin-bottom: .8rem; }
