/* ==========================================================================
   Sword Arcade — Global design system
   Fast Swords. Sharp Reflexes. Endless Arcade Action.
   --------------------------------------------------------------------------
   Load order: style.css -> responsive.css -> (games.css | article.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core surfaces — deep charcoal base */
  --c-bg:            #0b0d13;
  --c-bg-deep:       #07080c;
  --c-surface:       #14171f;
  --c-surface-2:     #1c212c;
  --c-surface-3:     #262c3a;
  --c-line:          #2b3242;
  --c-line-soft:     #212734;

  /* Text — warm off-white */
  --c-text:          #eef1f6;
  --c-text-soft:     #c8ccd4;
  --c-text-mute:     #8b8f99;

  /* Brand — blade steel */
  --c-blade:        #38bdb0;
  --c-blade-bright: #7fd4d1;
  --c-blade-deep:   #0e3b38;
  --c-blade-dark:   #123634;
  --c-blade-glow:   rgba(127, 212, 209, 0.16);

  /* Accents */
  --c-gold:          #f0c04a;
  --c-gold-soft:     #f7dc95;
  --c-ember:         #f2622f;
  --c-ember-soft:    #f2a65a;
  --c-arcane:          #8b5cf6;
  --c-arcane-soft:     #b794f6;

  /* Difficulty chips */
  --c-easy:          #7fd4d1;
  --c-medium:        #f0c04a;
  --c-hard:          #f2622f;
  --c-expert:        #b794f6;

  /* Typography */
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Semibold",
                  "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont,
                  "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;

  /* Scale */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.28rem + 0.70vw, 1.85rem);
  --step-3:  clamp(1.72rem, 1.48rem + 1.20vw, 2.50rem);
  --step-4:  clamp(2.05rem, 1.62rem + 2.10vw, 3.40rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(0,0,0,.35);
  --sh-2: 0 6px 18px rgba(0,0,0,.38);
  --sh-3: 0 18px 44px rgba(0,0,0,.45);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --header-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

/* The UA rule for [hidden] is display:none at the lowest specificity, so any
   component that sets its own display (cards are flex, grids are grid) would
   silently ignore it. Everything that toggles visibility on this site uses the
   hidden attribute, so this rule has to win. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(47,156,104,.13), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(230,178,60,.07), transparent 60%);
  background-attachment: fixed;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); }

a {
  color: var(--c-blade-bright);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--c-gold-soft); text-decoration: underline; }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
li { margin-bottom: var(--sp-2); }

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--sp-6) 0;
}

code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; }
kbd {
  background: var(--c-surface-3);
  border: 1px solid var(--c-line);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  padding: .12em .45em;
  color: var(--c-text);
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-5);
  font-size: var(--step--1);
}
th, td {
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
th {
  font-family: var(--font-display);
  color: var(--c-text);
  background: var(--c-surface-2);
  letter-spacing: .02em;
}
td { color: var(--c-text-soft); }

::selection { background: var(--c-blade); color: #06110c; }

/* Focus visibility — never removed */
:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-gold);
  color: #12110b;
  padding: .8rem 1.2rem;
  font-weight: 700;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
.section--alt {
  background: linear-gradient(180deg, rgba(23,27,30,.0), rgba(23,27,30,.85) 18%, rgba(23,27,30,.85) 82%, rgba(23,27,30,0));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p {
  margin: .35rem 0 0;
  color: var(--c-text-mute);
  max-width: 62ch;
}
.section-head__link {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--c-gold);
  display: inline-block;
}

.lede {
  font-size: var(--step-1);
  color: var(--c-text-soft);
  line-height: 1.55;
}

.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: .02em;
  padding: .78rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--c-surface-3);
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
  min-height: 44px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-blade-bright), var(--c-blade));
  color: #05120b;
  box-shadow: 0 8px 22px rgba(47,156,104,.28);
}
.btn--primary:hover {
  color: #05120b;
  box-shadow: 0 12px 30px rgba(47,156,104,.4);
}

.btn--gold {
  background: linear-gradient(135deg, var(--c-gold-soft), var(--c-gold));
  color: #1a1405;
  box-shadow: 0 8px 22px rgba(230,178,60,.24);
}
.btn--gold:hover { color: #1a1405; }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-text);
}
.btn--ghost:hover {
  border-color: var(--c-blade-bright);
  color: var(--c-blade-bright);
  background: var(--c-blade-glow);
}

.btn--sm { padding: .5rem 1rem; font-size: var(--step--1); min-height: 38px; }
.btn--block { width: 100%; }

.btn[aria-pressed="true"] {
  background: var(--c-blade-dark);
  border-color: var(--c-blade-bright);
  color: var(--c-blade-bright);
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11,14,15,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--c-text); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { line-height: 1; }
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: 3px;
  font-weight: 600;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: inline-block;
  padding: .5rem .78rem;
  border-radius: var(--r-sm);
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--c-blade-bright);
  background: var(--c-blade-glow);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text-soft);
  cursor: pointer;
  transition: all .18s var(--ease);
  position: relative;
}
.icon-btn:hover {
  color: var(--c-blade-bright);
  border-color: var(--c-blade);
  background: var(--c-surface-2);
  text-decoration: none;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: #14100a;
  font-size: .66rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
}
.icon-btn__count[data-has-items="true"] { display: flex; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-9) var(--sp-8);
  border-bottom: 1px solid var(--c-line-soft);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-blade), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: var(--sp-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-3); }
/* The brand line sits under the H1 so the heading can carry the search term
   and the tagline can carry the personality, without competing. */
.hero__sub {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-4);
  line-height: 1.35;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--c-blade-bright), var(--c-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--c-text);
  line-height: 1;
}
.hero__stat span {
  font-size: var(--step--1);
  color: var(--c-text-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-bg-deep);
  box-shadow: var(--sh-3);
}
.hero__art svg { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   7. Game cards
   -------------------------------------------------------------------------- */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-blade);
  box-shadow: var(--sh-2);
}
.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--c-bg-deep);
  overflow: hidden;
}
.game-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.game-card:hover .game-card__media img { transform: scale(1.045); }
.game-card__badge {
  position: absolute;
  top: .6rem; left: .6rem;
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: var(--r-sm);
  background: rgba(11,14,15,.82);
  color: var(--c-gold);
  border: 1px solid rgba(230,178,60,.35);
}
.game-card__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}
.game-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0;
  line-height: 1.2;
}
.game-card__title a { color: var(--c-text); }
.game-card__title a:hover { color: var(--c-blade-bright); text-decoration: none; }
.game-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.game-card__desc {
  margin: 0;
  font-size: var(--step--1);
  color: var(--c-text-mute);
  line-height: 1.55;
  flex: 1;
}
.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .35rem;
}
.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 var(--sp-4) var(--sp-4);
}
.game-card__foot .btn { position: relative; z-index: 2; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  color: var(--c-text-mute);
  white-space: nowrap;
}
.chip a { color: inherit; }
/* Long chips (a full control summary) must wrap rather than widen the page. */
.chip--wrap {
  white-space: normal;
  text-align: left;
  max-width: 100%;
  line-height: 1.45;
}
.chip--easy   { color: var(--c-easy);   border-color: rgba(70,193,134,.4);  background: rgba(70,193,134,.09); }
.chip--medium { color: var(--c-gold);   border-color: rgba(230,178,60,.4);  background: rgba(230,178,60,.09); }
.chip--hard   { color: var(--c-ember-soft); border-color: rgba(226,85,44,.4); background: rgba(226,85,44,.1); }
.chip--expert { color: #ef7fb0; border-color: rgba(201,69,127,.45); background: rgba(201,69,127,.12); }

.fav-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  color: var(--c-text-mute);
  cursor: pointer;
  flex: none;
  transition: all .18s var(--ease);
}
.fav-btn:hover { color: var(--c-gold); border-color: var(--c-gold); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn[aria-pressed="true"] {
  color: var(--c-gold);
  border-color: var(--c-gold);
  background: rgba(230,178,60,.13);
}
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Card on a media-less list (guides) */
.post-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-blade);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-left-color: var(--c-gold); }
.post-card h3 {
  font-size: var(--step-1);
  margin: 0;
  line-height: 1.25;
}
.post-card h3 a { color: var(--c-text); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--c-blade-bright); text-decoration: none; }
.post-card p {
  margin: 0;
  color: var(--c-text-mute);
  font-size: var(--step--1);
}
.post-card__meta {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   8. Category cards
   -------------------------------------------------------------------------- */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background:
    linear-gradient(150deg, var(--c-surface-2), var(--c-surface));
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 14px solid rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 12px rgba(230,178,60,.05);
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--c-gold); }
.cat-card__icon {
  width: 44px; height: 44px;
  color: var(--c-blade-bright);
}
.cat-card h3 { margin: 0; font-size: var(--step-1); }
.cat-card h3 a { color: var(--c-text); }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card h3 a:hover { text-decoration: none; color: var(--c-gold); }
.cat-card p { margin: 0; color: var(--c-text-mute); font-size: var(--step--1); }
.cat-card__count {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* --------------------------------------------------------------------------
   9. Panels, callouts, FAQ
   -------------------------------------------------------------------------- */
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.panel--flush { padding: 0; overflow: hidden; }

.callout {
  border-left: 3px solid var(--c-gold);
  background: rgba(230,178,60,.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .4rem;
  display: block;
}
.callout--green { border-left-color: var(--c-blade-bright); background: var(--c-blade-glow); }
.callout--green .callout__title { color: var(--c-blade-bright); }

.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.faq details[open] { border-color: var(--c-blade); }
.faq summary {
  cursor: pointer;
  padding: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-blade-bright);
  flex: none;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--c-surface-2); }
.faq__body {
  padding: 0 var(--sp-4) var(--sp-4);
  color: var(--c-text-soft);
}
.faq__body p:last-child { margin-bottom: 0; }

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0;
  color: var(--c-text-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 3px solid var(--c-blade-bright);
  box-shadow: 0 0 0 3px rgba(70,193,134,.15);
}

/* Value / why-play blocks */
.value-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.value-item {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.value-item h3 { font-size: var(--step-1); margin-bottom: .5rem; color: var(--c-text); }
.value-item p { margin: 0; color: var(--c-text-mute); font-size: var(--step--1); }
.value-item__n {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--c-gold);
  letter-spacing: .1em;
  display: block;
  margin-bottom: .5rem;
}

/* --------------------------------------------------------------------------
   10. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding-block: var(--sp-4) 0;
  font-size: var(--step--1);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  color: var(--c-text-mute);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--c-line); }
.breadcrumb a { color: var(--c-text-mute); }
.breadcrumb a:hover { color: var(--c-blade-bright); }
.breadcrumb [aria-current="page"] { color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   11. Page header block
   -------------------------------------------------------------------------- */
.page-head { padding-block: var(--sp-6) var(--sp-5); }
.page-head h1 { margin-bottom: var(--sp-3); }
.page-head .lede { max-width: 68ch; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Toolbar (search / filters / sort)
   -------------------------------------------------------------------------- */
.toolbar {
  display: grid;
  gap: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.toolbar__label {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  flex: none;
  min-width: 74px;
}

.field {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--c-bg-deep);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: .1rem .3rem .1rem 1rem;
  flex: 1 1 260px;
  min-width: 0;
}
.field:focus-within { border-color: var(--c-blade); }
.field svg { width: 18px; height: 18px; color: var(--c-text-mute); flex: none; }
.field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: .7rem 0;
}
.field input:focus { outline: none; }
.field input::placeholder { color: var(--c-text-mute); }

select.control, input.control, textarea.control {
  background: var(--c-bg-deep);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  border-radius: var(--r-md);
  padding: .65rem .85rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  min-height: 44px;
  width: 100%;
}
select.control { cursor: pointer; }
textarea.control { min-height: 150px; resize: vertical; line-height: 1.6; }

.filter-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  cursor: pointer;
  min-height: 38px;
  transition: all .16s var(--ease);
}
.pill:hover { border-color: var(--c-blade); color: var(--c-text); }
.pill[aria-pressed="true"] {
  background: var(--c-blade);
  border-color: var(--c-blade-bright);
  color: #04231f;
  font-weight: 700;
}

.result-count {
  font-family: var(--font-display);
  color: var(--c-text-mute);
  font-size: var(--step--1);
  letter-spacing: .04em;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--c-text-mute); max-width: 48ch; margin-inline: auto; }
.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-5);
}

/* --------------------------------------------------------------------------
   13. Ad slots — clearly labelled, never adjacent to controls
   -------------------------------------------------------------------------- */
.ad-slot {
  margin: var(--sp-7) auto;
  max-width: 970px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.012);
  padding: var(--sp-4);
  position: relative;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute;
  top: -.62rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  background: var(--c-bg);
  padding: 0 .5rem;
}
.ad-slot__note {
  color: var(--c-text-mute);
  font-size: .75rem;
  text-align: center;
  margin: 0;
  max-width: 46ch;
}
/* Guarantees separation from interactive game UI (AdSense policy safety) */
.ad-slot--game-adjacent { margin-block: var(--sp-8); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-deep);
  padding-block: var(--sp-7) var(--sp-5);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  margin-bottom: var(--sp-6);
}
.footer-brand p {
  color: var(--c-text-mute);
  font-size: var(--step--1);
  max-width: 34ch;
  margin-top: var(--sp-3);
}
.footer-col h2 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--c-text-mute); font-size: var(--step--1); }
.footer-col a:hover { color: var(--c-blade-bright); }

.footer-bottom {
  border-top: 1px solid var(--c-line-soft);
  padding-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  color: var(--c-text-mute);
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   15. Utility
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-mute { color: var(--c-text-mute); }
.flex-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.divider-dots {
  height: 1px;
  background-image: linear-gradient(90deg, var(--c-line) 50%, transparent 0);
  background-size: 8px 1px;
  border: 0;
  margin: var(--sp-6) 0;
}

/* Toast for copy-link / share fallbacks */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  background: var(--c-surface-3);
  border: 1px solid var(--c-blade);
  color: var(--c-text);
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   16. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .game-card:hover, .cat-card:hover, .post-card:hover, .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .toolbar, .fav-btn, .game-shell { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
