/* Beyzosh design system — "Candy Arcade".
   Rules: .claude/skills/game-website-design/SKILL.md */

/* ================= TOKENS ================= */
:root {
  --font-body: "Nunito", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fredoka", var(--font-body);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  --header-h: 68px;
  --sidebar-w: 232px;
  --shell-max: 1520px;
  --gutter: clamp(14px, 2.6vw, 30px);
  --section-gap: clamp(36px, 5vw, 54px);
  --cell: 150px;
  --gap: 14px;

  --dur: 180ms;
  --dur-slow: 300ms;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --ease-pop: cubic-bezier(.34, 1.5, .64, 1);

  --random-shadow: color-mix(in srgb, var(--yellow) 62%, #000);
}

/* ================= PALETTE — "Böğürtlen" (blackberry) =================
   Accent slot names describe roles, not exact hues:
   yellow = brand dot + main CTA, pink = brand + "new" badges, mint = simulation,
   sky = puzzle, lilac = home, peach = guides.
   Other palettes that were considered: .claude/design-archive/v2-candy-arcade-all-palettes.css */
:root {
  --bg: #1d0c24; --bg-deep: #160919;
  --surface: #2c1336; --surface-2: #3a1a47; --surface-3: #4a2359;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --text: #fdf4ff; --muted: #d4b0e0; --faint: #9b78aa;
  --yellow: #ffd95c; --pink: #ff66c4; --mint: #4fe3c7; --sky: #72b8ff; --lilac: #b89cff; --peach: #ffab76;
  --on-candy: #1e0c25;
  --brand: var(--pink); --brand-2: var(--yellow);
  --overlay-rgb: 29, 12, 36; --header-bg: rgba(29, 12, 36, .88);
  --blob-1: rgba(255, 102, 196, .12); --blob-2: rgba(79, 227, 199, .06); --dots: rgba(255, 255, 255, .035);
  --stage-bg: #0f0613; --ink-mix: 100%;
  --shadow-tile: 0 6px 16px rgba(12, 3, 16, .38); --shadow-lift: 0 18px 32px rgba(12, 3, 16, .55);
  color-scheme: dark;
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--dots) 1px, transparent 1.4px),
    radial-gradient(760px 480px at 0% 0%, var(--blob-1), transparent 70%),
    radial-gradient(680px 460px at 100% 12%, var(--blob-2), transparent 70%);
  background-size: 22px 22px, auto, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }

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

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--yellow); color: var(--on-candy); font-weight: 800; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--shell-max); margin-inline: auto; min-height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 18px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: .02em;
  color: var(--brand); text-decoration: none; white-space: nowrap; line-height: 1;
  width: calc(var(--sidebar-w) - 18px); flex: none;
  transition: transform var(--dur) var(--ease-pop);
}
.brand:hover { transform: rotate(-2deg) scale(1.03); }
.brand-dot { color: var(--brand-2); }
/* Wordmark: "BEYZOSH" on a tilted brand-colored sticker + yellow dot.
   Never split the word into two colors. */
.brand { display: inline-flex; align-items: center; }
.brand-word {
  display: inline-block; padding: .16em .42em .2em; border-radius: .42em;
  background: var(--brand); color: var(--on-candy);
  transform: rotate(-3deg); box-shadow: 0 .14em 0 color-mix(in srgb, var(--brand) 60%, #000);
}
.brand-dot { margin-left: .08em; }

.search { position: relative; flex: 1 1 auto; max-width: 560px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 18px 0 46px;
  border-radius: var(--radius-pill); border: 2px solid transparent; background: var(--surface-2);
  font-size: 15px; font-weight: 700;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.search input::placeholder { color: var(--faint); font-weight: 600; }
.search input:hover { background: var(--surface-3); }
.search input:focus-visible { outline: none; border-color: var(--lilac); background: var(--surface-3); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn-random {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--yellow); color: var(--on-candy);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  box-shadow: 0 4px 0 var(--random-shadow);
  transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease);
}
.btn-random svg { width: 22px; height: 22px; transition: transform var(--dur-slow) var(--ease-pop); }
.btn-random:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--random-shadow); }
.btn-random:hover svg { transform: rotate(-20deg); }
.btn-random:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--random-shadow); }

.select-wrap { position: relative; display: inline-flex; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select {
  appearance: none; -webkit-appearance: none;
  height: 46px; max-width: 170px; padding: 0 34px 0 16px;
  border-radius: var(--radius-pill); border: 0; background: var(--surface-2);
  font-weight: 800; font-size: 14px; cursor: pointer; text-overflow: ellipsis;
}
.select:hover { background: var(--surface-3); }

/* ================= SHELL + SIDEBAR ================= */
.shell {
  max-width: var(--shell-max); margin-inline: auto;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.sidebar {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 18px 12px 24px var(--gutter);
  scrollbar-width: thin;
}
.side-label {
  margin: 18px 10px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.side-label:first-child { margin-top: 2px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item, .chip-cat, .cat-card, .section-ico { --cat-ink: color-mix(in srgb, var(--cat) var(--ink-mix), var(--text)); }
.nav-item {
  --cat: var(--lilac);
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 46px; padding: 6px 10px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--muted); text-decoration: none; text-align: left;
  font-weight: 800; font-size: 15px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item[aria-current="true"] { background: var(--surface-2); color: var(--text); }
.nav-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--cat) 18%, transparent); color: var(--cat-ink);
  transition: transform var(--dur) var(--ease-pop), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-ico svg { width: 19px; height: 19px; }
.nav-item:hover .nav-ico { transform: rotate(-6deg) scale(1.06); }
.nav-item[aria-current="true"] .nav-ico { background: var(--cat); color: var(--on-candy); }
.nav-count { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--faint); }

/* mobile icon strip (same items as the sidebar) */
.cat-strip { display: none; }

/* ================= MAIN ================= */
.main { min-width: 0; padding: 18px var(--gutter) 0 calc(var(--gutter) * .6); }
.section { margin-top: var(--section-gap); }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-ico {
  --cat: var(--lilac);
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cat); color: var(--on-candy);
}
.section-ico svg { width: 20px; height: 20px; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.1; }
.section-count {
  padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-2);
  color: var(--muted); font-size: 13px; font-weight: 800;
}
.section-link {
  margin-left: auto; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.section-link:hover { background: var(--surface-2); color: var(--text); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-play {
  background: var(--game-accent, var(--yellow)); color: var(--on-candy);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--game-accent, var(--yellow)) 62%, #000);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--game-accent, var(--yellow)) 62%, #000); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--game-accent, var(--yellow)) 62%, #000); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn-candy { background: var(--yellow); color: var(--on-candy); }

/* ================= FEATURED GAME ================= */
.featured {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-2xl); background: var(--surface);
  border: 1px solid var(--line);
}
.featured-bg {
  position: absolute; inset: -60px; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(46px) saturate(1.3); opacity: .75; transform: scale(1.1);
}
.featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(var(--overlay-rgb), .2) 0%, rgba(var(--overlay-rgb), .7) 45%, rgba(var(--overlay-rgb), .9) 100%);
}
.featured-inner {
  display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: clamp(18px, 3.5vw, 48px); align-items: center; padding: clamp(12px, 1.8vw, 20px);
}
.featured-art {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-xl); background: var(--stage-bg);
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur) var(--ease-pop);
}
.featured-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--thumb-pos, center 30%);
  transition: transform var(--dur-slow) var(--ease);
}
.featured-art:hover { transform: rotate(-1deg); }
.featured-art:hover img { transform: scale(1.04); }
.featured-copy { padding: 6px clamp(0px, 2vw, 22px) 6px 0; }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .03em;
  background: var(--yellow); color: var(--on-candy);
  transform: rotate(-2.5deg);
}
.sticker svg { width: 14px; height: 14px; }
.chip-cat {
  --cat: var(--lilac);
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cat) 20%, transparent); color: var(--cat-ink);
  font-weight: 800; font-size: 13px;
}
.featured-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 58px); line-height: 1; margin: 16px 0 12px;
}
.featured-lead { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 44ch; margin-bottom: 24px; font-weight: 600; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================= MOSAIC TILES ================= */
.mosaic {
  display: grid; gap: var(--gap); grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr));
}
.tile {
  position: relative; isolation: isolate; display: block; aspect-ratio: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-tile);
  color: inherit; text-decoration: none;
  transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease);
}
.tile.big { grid-column: span 2; grid-row: span 2; border-radius: var(--radius-xl); }
.tile[data-art="dark"] { background: var(--stage-bg); }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--thumb-pos, center);
  transition: transform var(--dur-slow) var(--ease);
}
a.tile:hover, a.tile:focus-visible {
  transform: translateY(-4px) rotate(-1deg); z-index: 2;
  box-shadow: 0 0 0 3px var(--game-accent, var(--yellow)), var(--shadow-lift);
}
a.tile:focus-visible { outline: none; }
a.tile:hover img { transform: scale(1.05); }
.tile-label {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 30px 12px 10px;
  background: linear-gradient(to top, rgba(14, 9, 30, .92) 10%, rgba(14, 9, 30, 0));
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.15; }
.tile-sub { margin-top: 4px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .78); }
a.tile:hover .tile-label, a.tile:focus-visible .tile-label, .tile.big .tile-label { opacity: 1; transform: none; }
.tile.big .tile-label { padding: 56px 18px 16px; }
.tile.big .tile-title { font-size: 24px; }
.tile-play {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--game-accent, var(--yellow)); color: var(--on-candy);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
  transition: transform var(--dur) var(--ease-pop);
}
.tile-play svg { width: 20px; height: 20px; margin-left: 2px; }
a.tile:hover .tile-play { transform: scale(1.1); }
.tile-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 9px; border-radius: 8px;
  background: var(--pink); color: var(--on-candy);
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.tile.soon {
  display: grid; place-items: center; align-content: center; gap: 2px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, color-mix(in srgb, var(--surface-2) 70%, var(--surface)) 12px 24px);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.tile.soon .q { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--faint); }
.tile.soon .s { font-weight: 800; font-size: 12.5px; color: var(--faint); }
.tile.soon img { filter: saturate(.6) brightness(.7); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); font-weight: 700; }

/* ================= CATEGORY CARDS ================= */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-card {
  --cat: var(--lilac);
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  min-height: 104px; padding: 16px 18px; border: 2px solid color-mix(in srgb, var(--cat) 30%, transparent);
  border-radius: var(--radius-xl); text-align: left;
  background: color-mix(in srgb, var(--cat) 14%, var(--surface));
  transition: transform var(--dur) var(--ease-pop), border-color var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--cat); }
.cat-card .nav-ico { width: 50px; height: 50px; border-radius: 15px; background: var(--cat); color: var(--on-candy); }
.cat-card .nav-ico svg { width: 26px; height: 26px; }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.cat-count { margin-top: 3px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.cat-thumbs { position: relative; margin-left: auto; width: 86px; height: 70px; flex: none; }
.cat-thumbs img {
  position: absolute; width: 56px; height: 56px; object-fit: cover; border-radius: 12px;
  border: 3px solid color-mix(in srgb, var(--cat) 14%, var(--surface)); box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: transform var(--dur) var(--ease-pop);
}
.cat-thumbs img:nth-child(1) { right: 0; top: 0; transform: rotate(7deg); }
.cat-thumbs img:nth-child(2) { right: 30px; top: 12px; transform: rotate(-8deg); }
.cat-card:hover .cat-thumbs img:nth-child(1) { transform: rotate(12deg) translateY(-2px); }
.cat-card:hover .cat-thumbs img:nth-child(2) { transform: rotate(-12deg) translateY(-2px); }

/* ================= AD SLOTS ================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center; min-height: 100px;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
  color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.ad-wrap { margin-top: var(--section-gap); }
.ad-tile { aspect-ratio: 1; min-height: 0; }

/* ================= GUIDES ================= */
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.guide-card {
  display: block; padding: 18px 20px 20px; border-radius: var(--radius-xl);
  background: var(--surface); text-decoration: none; color: inherit;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease-pop), border-color var(--dur) var(--ease);
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--peach); }
.guide-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--peach) var(--ink-mix), var(--text)); }
.guide-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; margin: 9px 0 7px; }
.guide-excerpt { color: var(--muted); font-size: 14px; line-height: 1.58; font-weight: 600; }

/* ================= GAME PLAYER ================= */
#player { display: none; padding-top: 4px; }
#player.open { display: block; }
body.playing #home { display: none; }
.player-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.player-heading { margin-right: auto; min-width: 0; }
.player-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.05; }
.player-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 800; }
.stage {
  width: 100%; aspect-ratio: 16 / 12; max-height: 78vh;
  background: var(--stage-bg); border: 4px solid var(--surface-2); border-radius: var(--radius-2xl);
  overflow: hidden; box-shadow: var(--shadow-lift);
}
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Portrait games: stage stays landscape, the game sits in a centered 9:16
   box (letterbox). inline-block centering keeps the stage from shrinking. */
#stage.portrait { text-align: center; font-size: 0; white-space: nowrap; }
#stage.portrait iframe { display: inline-block; vertical-align: middle; width: auto; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; }
#stage.portrait::before { content: ""; display: inline-block; vertical-align: middle; height: 100%; }
#stage:fullscreen { aspect-ratio: auto; max-height: none; border-radius: 0; border: 0; }
.ad-player { margin-top: 20px; }
.player-info { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.info-card { padding: 20px 22px; border-radius: var(--radius-xl); background: var(--surface); }
.info-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.info-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--game-accent, var(--yellow)); transform: rotate(45deg); }
.info-text { font-size: 15px; line-height: 1.7; color: var(--muted); font-weight: 600; }

/* ================= FOOTER ================= */
.site-footer { margin-top: calc(var(--section-gap) + 10px); background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--shell-max); margin-inline: auto; padding: 30px var(--gutter) 26px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.brand-sm { font-size: 22px; width: auto; }
.footer-tag { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { width: 100%; color: var(--faint); font-size: 13px; font-weight: 700; }

/* ================= COOKIE BAR ================= */
.cookie-bar { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 14px; }
.cookie-inner {
  max-width: 800px; margin-inline: auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}
.cookie-inner p { flex: 1 1 320px; font-size: 14px; color: var(--muted); font-weight: 600; }
.cookie-inner a { color: color-mix(in srgb, var(--yellow) var(--ink-mix), var(--text)); font-weight: 800; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { height: 42px; padding: 0 18px; font-size: 15px; }

/* ================= RESPONSIVE ================= */
/* ================= SECONDARY PAGES (guides, privacy, terms) ================= */
.page { max-width: 880px; padding-top: 22px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.page-head .section-ico { width: 46px; height: 46px; border-radius: 15px; }
.page-head .section-ico svg { width: 25px; height: 25px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; }
.page-intro { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.6; max-width: 62ch; margin-bottom: 22px; }
.lang-note {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface);
  color: var(--muted); font-size: 13.5px; font-weight: 700;
}
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--muted); font-weight: 800; font-size: 14px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-pop);
}
.pill:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.pill[aria-pressed="true"] { background: var(--pink); color: var(--on-candy); }
.filter-bar .select-wrap { margin-left: auto; }
.filter-bar .select { background: var(--surface); height: 40px; }
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-row { display: block; }
.guide-row .guide-excerpt { margin-bottom: 10px; }
.guide-more { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: color-mix(in srgb, var(--yellow) var(--ink-mix), var(--text)); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.article-card { padding: clamp(20px, 3.4vw, 36px); border-radius: var(--radius-2xl); background: var(--surface); }
.article { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.75; }
.article h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--text); margin: 0 0 6px; }
.article h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--text); margin: 30px 0 10px; }
.article h2::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--pink); transform: rotate(45deg); }
.article p { margin: 0 0 14px; }
.article ul { margin: 0 0 14px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--pink); }
.article strong { color: var(--text); font-weight: 800; }
.article em { color: var(--faint); font-style: normal; font-weight: 700; font-size: 14px; }
.article a { color: color-mix(in srgb, var(--sky) var(--ink-mix), var(--text)); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:hover { color: var(--text); }
.read-date { color: var(--faint); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 12px; }
.related a { display: block; padding: 10px 0; color: var(--text); font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--line); }
.related a:hover { color: var(--pink); }
@media (max-width: 640px) {
  .filter-bar .select-wrap { margin-left: 0; width: 100%; }
  .filter-bar .select { max-width: none; width: 100%; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 200px; --cell: 136px; }
  .featured-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .brand { width: auto; }
  .main { padding: 0 var(--gutter); }
  .cat-strip {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 4px;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip .nav-item {
    width: auto; flex: none; min-height: 42px; padding: 4px 14px 4px 5px;
    border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; gap: 8px;
  }
  .cat-strip .nav-ico { width: 32px; height: 32px; border-radius: 50%; }
  .cat-strip .nav-count { display: none; }
  .featured { margin-top: 12px; }
}
@media (max-width: 760px) {
  .featured-inner { grid-template-columns: 1fr; }
  .featured-copy { padding: 2px 6px 8px; }
}
@media (max-width: 640px) {
  :root { --cell: 104px; --gap: 10px; }
  .header-inner { flex-wrap: wrap; gap: 10px 10px; padding-block: 10px; }
  .brand { font-size: 23px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .btn-random { height: 42px; padding: 0 12px; }
  .btn-random span { display: none; }
  .select { height: 42px; max-width: 118px; }
  .tile { border-radius: var(--radius-md); }
  .tile .tile-label { opacity: 1; transform: none; padding: 22px 8px 7px; }
  .tile-title { font-size: 13px; }
  .tile.big .tile-title { font-size: 19px; }
  .tile.big .tile-label { padding: 40px 12px 12px; }
  .tile-play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .featured-title { font-size: 32px; margin: 12px 0 8px; }
  .featured-lead {
    font-size: 14.5px; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .featured-actions { flex-wrap: nowrap; }
  .featured-actions .btn { flex: 1 1 0; height: 46px; padding: 0 10px; font-size: 15px; }
  .cat-thumbs { display: none; }
}
@media (hover: none) {
  .tile-label { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

