/* Focused redesign layer for the Tools, Games, and Daily directories. Shared tool/game pages keep their existing layouts. */
body[data-section="tools"], body[data-section="games"], body[data-section="daily"] {
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --r-card: 1rem;
  --r-panel: 1.25rem;
  background: var(--section-bg, var(--bg));
  color: var(--section-text, var(--text));
}
/* These semantic defaults establish the three section identities. Later saved palette scopes override the same roles. */
body[data-section="tools"] { --bg:#f8f7f2; --surface:#fffefa; --surface-2:#f0f1e9; --surface-elevated:#fffefa; --border:#e1e2d8; --text:#1d2925; --text-secondary:#405148; --text-muted:#58655e; --accent:#075b4d; --link:#075b4d; --focus:#075b4d; }
body[data-section="games"] { --bg:#06131e; --surface:#0d202e; --surface-2:#102534; --surface-elevated:#112a3a; --border:#203b4d; --text:#f5f7f9; --text-secondary:#d6e0e7; --text-muted:#aebbc5; --accent:#ff5969; --link:#ff8c96; --focus:#ff8c96; }
body[data-section="daily"] { --bg:#fbf7ee; --surface:#fffdf8; --surface-2:#f6eddf; --surface-elevated:#fffdf8; --border:#e9dfcc; --text:#29251f; --text-secondary:#484136; --text-muted:#665d50; --accent:#b4471f; --link:#a33c1b; --focus:#a33c1b; }
html[data-mode="light"] body[data-section="games"] { --bg:#edf2f6; --surface:#fff; --surface-2:#e6edf2; --surface-elevated:#fff; --border:#d4dfe8; --text:#162635; --text-secondary:#354b5d; --text-muted:#526476; --accent:#b83249; --link:#9b263b; --focus:#9b263b; }
html[data-mode="dark"] body[data-section="tools"] { --bg:#101613; --surface:#18221d; --surface-2:#203027; --surface-elevated:#223027; --border:#33453b; --text:#eef5ee; --text-secondary:#d5e2d7; --text-muted:#bdcbbf; --accent:#7ac8a0; --link:#8cddb2; --focus:#8cddb2; }
html[data-mode="dark"] body[data-section="daily"] { --bg:#191711; --surface:#242118; --surface-2:#302b20; --surface-elevated:#302a1f; --border:#484031; --text:#f5efe2; --text-secondary:#e2d8c4; --text-muted:#d0c5ae; --accent:#f28b4c; --link:#ffad7a; --focus:#ffad7a; }
@media (prefers-color-scheme: dark) {
  html:not([data-mode]) body[data-section="tools"] { --bg:#101613; --surface:#18221d; --surface-2:#203027; --surface-elevated:#223027; --border:#33453b; --text:#eef5ee; --text-secondary:#d5e2d7; --text-muted:#bdcbbf; --accent:#7ac8a0; --link:#8cddb2; --focus:#8cddb2; }
  html:not([data-mode]) body[data-section="games"] { --bg:#040d15; --surface:#0b1924; --surface-2:#102534; --surface-elevated:#102534; --border:#233b4a; --text:#f3f6f8; --text-secondary:#d5e0e7; --text-muted:#aab8c3; --accent:#ff6875; --link:#ff929b; --focus:#ff929b; }
  html:not([data-mode]) body[data-section="daily"] { --bg:#191711; --surface:#242118; --surface-2:#302b20; --surface-elevated:#302a1f; --border:#484031; --text:#f5efe2; --text-secondary:#e2d8c4; --text-muted:#d0c5ae; --accent:#f28b4c; --link:#ffad7a; --focus:#ffad7a; }
}
body[data-section="daily"] { --accent-2:var(--game-accent); }
body[data-section="tools"], body[data-section="games"], body[data-section="daily"] {
  --section-bg:var(--bg); --section-surface:var(--surface); --section-raised:var(--surface-elevated); --section-border:var(--border);
  --section-text:var(--text); --section-muted:var(--text-muted); --section-accent:var(--accent); --section-soft:var(--accent-soft);
}
body[data-section="tools"] { --section-accent:var(--tool-accent); --section-soft:color-mix(in srgb,var(--tool-accent) 11%,var(--section-bg)); }
body[data-section="daily"] { --section-accent:var(--game-accent); --section-soft:color-mix(in srgb,var(--game-accent) 11%,var(--section-bg)); }

body[data-section="tools"] .site-header,
body[data-section="games"] .site-header,
body[data-section="daily"] .site-header {
  border-color:var(--section-border);
  background:color-mix(in srgb,var(--section-bg) 90%,transparent);
  box-shadow:0 4px 22px rgb(20 30 24 / .08);
  color:var(--section-text);
}
body[data-section="tools"] .site-header .nav-link[aria-current="page"] { background:var(--section-soft); color:var(--section-accent); }
body[data-section="games"] .site-header .nav-link[aria-current="page"] { background:color-mix(in srgb,var(--section-accent) 18%,var(--section-surface)); color:var(--section-accent); }
body[data-section="daily"] .site-header .nav-link[aria-current="page"] { background:var(--section-soft); color:var(--section-accent); }
body[data-section="tools"] .site-header .search input,
body[data-section="games"] .site-header .search input,
body[data-section="daily"] .site-header .search input {
  min-height:2.8rem; border-color:var(--section-border); border-radius:999px;
  background:var(--section-surface); color:var(--section-text); box-shadow:none;
}
body[data-section="tools"] .site-header .search input::placeholder,
body[data-section="games"] .site-header .search input::placeholder,
body[data-section="daily"] .site-header .search input::placeholder { color:var(--section-muted); opacity:1; }
body[data-section="tools"] .site-header .nav-family-link,
body[data-section="games"] .site-header .nav-family-link,
body[data-section="daily"] .site-header .nav-family-link { border-radius:999px; }
body[data-section="tools"] .site-header .nav-family-link[aria-current="page"] { border-color:color-mix(in srgb,var(--section-accent) 30%,var(--section-border)); }
body[data-section="games"] .site-header .nav-family-link[aria-current="page"] { border-color:color-mix(in srgb,var(--section-accent) 40%,var(--section-border)); }
body[data-section="daily"] .site-header .nav-link[aria-current="page"] { border-radius:999px; }
body[data-section="tools"] .site-header .more-menu,
body[data-section="games"] .site-header .more-menu,
body[data-section="daily"] .site-header .more-menu { border:1px solid var(--section-border); background:var(--section-surface); color:var(--section-text); }
body[data-section="tools"] .site-header .mode-choice[aria-pressed="true"],
body[data-section="games"] .site-header .mode-choice[aria-pressed="true"],
body[data-section="daily"] .site-header .mode-choice[aria-pressed="true"] { border-color:var(--section-border); background:var(--section-soft); color:var(--section-accent); }

body[data-section="tools"] .tools-directory,
body[data-section="games"] .games-page,
body[data-section="daily"] .daily-page { width:min(100% - 2rem, 92rem); max-width:92rem; padding-block:1.35rem 4rem; }
body[data-section="tools"] .tools-directory .catalog-layout { grid-template-columns:minmax(12rem,14rem) minmax(0,1fr); gap:clamp(1rem,2vw,1.75rem); }
body[data-section="tools"] .tools-directory .browse-sidebar { top:5.5rem; max-height:calc(100vh - 6.25rem); border:1px solid var(--section-border); border-radius:1rem; background:var(--section-surface); box-shadow:0 8px 24px rgb(31 44 35 / .06); }
body[data-section="tools"] .tools-directory .browse-sidebar-head { border-color:var(--section-border); }
body[data-section="tools"] .tools-directory .browse-tree-group a:hover,
body[data-section="tools"] .tools-directory .browse-tree-daily:hover { background:var(--section-soft); color:var(--section-accent); }
body[data-section="tools"] .tools-directory .browse-tree-group a[aria-current="page"],
body[data-section="tools"] .tools-directory .browse-tree-group a[aria-current="location"] { background:var(--section-soft); color:var(--section-accent); }

/* Tools: bright editorial hero, category overview, then the full live catalog. */
body[data-section="tools"] .tools-landing-hero {
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(17rem,.92fr); align-items:center;
  min-height:27rem; padding:clamp(1.5rem,3vw,3rem); overflow:hidden;
  border:1px solid var(--section-border); border-radius:var(--r-panel);
  background:linear-gradient(110deg,var(--section-surface) 0%,color-mix(in srgb,var(--section-surface) 88%,#d5e5d2) 100%);
  box-shadow:0 12px 34px rgb(58 70 50 / .07);
}
body[data-section="tools"] .tools-landing-hero::after { display:none; }
body[data-section="tools"] .tools-landing-hero .family-hero-copy { max-width:39rem; }
body[data-section="tools"] .tools-landing-hero .eyebrow,
body[data-section="daily"] .daily-panel-kicker { color:var(--section-accent); font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
body[data-section="tools"] .tools-landing-hero h1 { max-width:11ch; margin:.65rem 0 1rem; color:var(--section-text); font-family:var(--font-serif); font-size:clamp(3.2rem,6.2vw,5.6rem); font-weight:600; line-height:.98; letter-spacing:-.055em; }
body[data-section="tools"] .tools-landing-hero h1 em { color:var(--section-accent); font-weight:500; }
body[data-section="tools"] .tools-landing-hero .lead { max-width:47ch; color:var(--section-muted); font-size:1.08rem; line-height:1.65; }
body[data-section="tools"] .tools-hero-art { position:relative; align-self:stretch; min-height:20rem; margin:-1rem -1.8rem -1rem 0; overflow:hidden; border-radius:1rem; background:linear-gradient(145deg,#f8ecd5,#e7eee3); }
body[data-section="tools"] .tools-hero-art::after { position:absolute; inset:0; background:linear-gradient(90deg,var(--section-surface) 0%,transparent 42%),linear-gradient(0deg,rgb(25 40 25 / .08),transparent 48%); content:""; pointer-events:none; }
body[data-section="tools"] .tools-hero-art img { width:100%; height:100%; min-height:20rem; object-fit:contain; object-position:center; }
body[data-section="tools"] .tools-hero-search { max-width:34rem; margin-top:1.35rem; }
body[data-section="tools"] .tools-hero-search .search { position:relative; }
body[data-section="tools"] .tools-hero-search input { min-height:3.35rem; padding-inline:1.1rem; border:1px solid var(--section-border); border-radius:.8rem; background:var(--section-surface); color:var(--section-text); box-shadow:0 5px 18px rgb(24 45 35 / .08); }
body[data-section="tools"] .tools-quick-links { display:flex; flex-wrap:wrap; gap:.48rem; margin-top:.9rem; }
body[data-section="tools"] .tools-quick-links a { display:inline-flex; align-items:center; gap:.36rem; min-height:2rem; padding:.35rem .7rem; border:1px solid var(--section-border); border-radius:999px; background:var(--section-surface); color:var(--section-text); font-size:.75rem; font-weight:700; text-decoration:none; }
body[data-section="tools"] .tools-quick-links a:hover { border-color:var(--section-accent); color:var(--section-accent); }
body[data-section="tools"] .tools-quick-links .ff-icon { width:1rem; height:1rem; color:var(--section-accent); }
body[data-section="tools"] .tools-privacy-note { align-items:flex-start; max-width:42rem; margin-top:.85rem; color:var(--section-muted); line-height:1.45; }
body[data-section="tools"] .tools-popular-section,
body[data-section="tools"] .tools-categories-section,
body[data-section="tools"] .tools-directory .tool-section { margin-top:clamp(2rem,3.5vw,3.4rem); }
body[data-section="tools"] .tools-popular-section h2,
body[data-section="tools"] .tools-categories-section h2,
body[data-section="tools"] .tools-directory .tool-section > h2 { color:var(--section-text); font-family:var(--font-serif); font-size:clamp(1.65rem,2.8vw,2.2rem); font-weight:600; letter-spacing:-.035em; }
body[data-section="tools"] .tools-popular-section .section-title-row,
body[data-section="tools"] .tools-categories-section .section-title-row,
body[data-section="games"] .section-title-row,
body[data-section="daily"] .section-title-row { align-items:end; }
body[data-section="tools"] .tools-popular-section .section-deck,
body[data-section="tools"] .tools-categories-section .section-deck { margin:.2rem 0 0; color:var(--section-muted); }
body[data-section="tools"] .tools-popular-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; }
body[data-section="tools"] .tools-popular-grid .card { min-width:0; border:1px solid var(--section-border); border-radius:.9rem; background:var(--section-surface); box-shadow:0 4px 14px rgb(30 42 35 / .045); }
body[data-section="tools"] .tools-popular-grid .card:hover,
body[data-section="tools"] .tools-category-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--section-accent) 36%,var(--section-border)); box-shadow:0 10px 24px rgb(30 42 35 / .10); }
body[data-section="tools"] .tools-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
body[data-section="tools"] .tools-category-card { position:relative; display:grid; grid-template-columns:2.65rem minmax(0,1fr); align-items:start; gap:.85rem; min-height:8.8rem; padding:1.05rem; border:1px solid var(--section-border); border-radius:.9rem; background:var(--section-surface); color:var(--section-text); text-decoration:none; box-shadow:0 3px 10px rgb(36 43 34 / .035); transition:transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
body[data-section="tools"] .tools-category-icon { display:grid; place-items:center; width:2.65rem; height:2.65rem; border-radius:.75rem; background:hsl(var(--category-hue) 72% 92%); color:hsl(var(--category-hue) 68% 34%); }
body[data-section="tools"] .tools-category-icon .ff-icon { width:1.35rem; height:1.35rem; }
body[data-section="tools"] .tools-category-copy { display:grid; gap:.25rem; }
body[data-section="tools"] .tools-category-copy strong { padding-top:.1rem; font-size:.95rem; line-height:1.2; }
body[data-section="tools"] .tools-category-copy > span { color:var(--section-muted); font-size:.76rem; line-height:1.4; }
body[data-section="tools"] .tools-category-count { grid-column:2; color:var(--section-muted); font-size:.7rem; font-weight:700; }
body[data-section="tools"] .tools-category-arrow { position:absolute; top:1rem; right:1rem; color:var(--section-accent); opacity:0; transform:translate(-3px,3px); transition:opacity 160ms ease,transform 160ms ease; }
body[data-section="tools"] .tools-category-card:hover .tools-category-arrow,
body[data-section="tools"] .tools-category-card:focus-visible .tools-category-arrow { opacity:1; transform:none; }
body[data-section="tools"] .tools-promo-banner { position:relative; display:flex; align-items:center; min-height:12rem; margin-top:2.3rem; padding:clamp(1.4rem,3.5vw,2.8rem); overflow:hidden; border-radius:var(--r-panel); background:#104d40; color:#fff; }
body[data-section="tools"] .tools-promo-banner > div { position:relative; z-index:1; max-width:36rem; }
body[data-section="tools"] .tools-promo-banner h2 { margin:.45rem 0; color:#fff; font-family:var(--font-serif); font-size:clamp(1.8rem,3.6vw,2.7rem); font-weight:600; line-height:1.1; }
body[data-section="tools"] .tools-promo-banner p { color:#e3eee6; }
body[data-section="tools"] .tools-promo-banner .tools-section-kicker { color:#c5e0c7; font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
body[data-section="tools"] .tools-promo-banner .btn { min-height:2.8rem; margin-top:.5rem; background:#fff8e9; color:#173d34; }
body[data-section="tools"] .tools-promo-banner img { position:absolute; top:-54%; right:-4%; width:min(48%,31rem); height:210%; object-fit:cover; object-position:60% center; opacity:.72; mask-image:linear-gradient(90deg,transparent 0%,#000 35%); }
body[data-section="tools"] .tools-directory .tool-task-card,
body[data-section="tools"] .tools-directory .tool-cat { border-color:var(--section-border); border-radius:1rem; background:var(--section-surface); }
body[data-section="tools"] .tools-directory .tool-task-card { padding:1rem; }
body[data-section="tools"] .tools-directory .tool-cat { padding:1rem; }
body[data-section="tools"] .tools-directory .catalog-category-banner { border-radius:.8rem; }
body[data-section="tools"] .tools-directory .tool-cat .grid { grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr)); gap:.7rem; }
body[data-section="tools"] .tools-directory .tools-all-section { scroll-margin-top:6rem; }
body[data-section="tools"] .tools-directory .tools-all-section > .tool-search { position:sticky; top:4.7rem; z-index:4; padding:.7rem; border:1px solid var(--section-border); border-radius:.9rem; background:color-mix(in srgb,var(--section-surface) 93%,transparent); box-shadow:0 5px 18px rgb(35 42 34 / .06); }
body[data-section="tools"] .tools-directory .tools-all-section .chips { gap:.4rem; }

/* Games: a local-art storefront, with no fabricated ratings or commercial artwork. */
body[data-section="games"] .games-page { padding-top:.85rem; }
body[data-section="games"] .games-featured-hero { margin:0; }
body[data-section="games"] .games-featured-carousel { position:relative; min-height:28rem; overflow:hidden; border:1px solid var(--section-border); border-radius:1rem; background:radial-gradient(ellipse at 82% 38%,color-mix(in srgb,var(--section-accent) 24%,transparent),transparent 28rem),linear-gradient(120deg,#07131d,#102b3c); box-shadow:0 22px 60px rgb(0 0 0 / .28); }
body[data-section="games"] .games-featured-slides { min-height:28rem; }
body[data-section="games"] .games-feature-slide { position:relative; display:grid; align-items:end; min-height:28rem; padding:clamp(1.2rem,4vw,3.2rem); isolation:isolate; }
body[data-section="games"] .games-feature-slide[hidden] { display:none; }
body[data-section="games"] .games-feature-art { position:absolute; z-index:-2; inset:0; overflow:hidden; background:var(--section-raised); }
body[data-section="games"] .games-feature-art img { position:absolute; top:50%; right:3%; width:min(52%,40rem); height:min(88%,21rem); min-height:0; object-fit:contain; object-position:center; transform:translateY(-50%); filter:drop-shadow(0 16px 36px rgb(0 0 0 / .22)); }
body[data-section="games"] .games-feature-slide::before { position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgb(3 12 19 / .97) 0%,rgb(3 12 19 / .86) 32%,rgb(3 12 19 / .2) 73%,rgb(3 12 19 / .06) 100%),linear-gradient(0deg,rgb(3 12 19 / .45),transparent 55%); content:""; }
body[data-section="games"] .games-feature-overlay { max-width:36rem; color:#fff; }
body[data-section="games"] .games-feature-label { display:inline-flex; align-items:center; gap:.5rem; margin:0 0 .85rem; padding:.38rem .7rem; border:1px solid rgb(255 255 255 / .24); border-radius:999px; background:rgb(5 20 30 / .65); color:#ffd6d9; font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
body[data-section="games"] .games-feature-overlay h2 { margin:.15rem 0 .65rem; color:#fff; font-family:var(--font-serif); font-size:clamp(2.6rem,6.5vw,5rem); font-weight:600; line-height:.98; letter-spacing:-.045em; }
body[data-section="games"] .games-feature-overlay > p:not(.games-feature-label) { max-width:44ch; margin:0; color:#e0e8ed; font-size:1rem; line-height:1.6; }
body[data-section="games"] .games-feature-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.15rem; }
body[data-section="games"] .games-feature-actions .btn { min-height:2.9rem; border-radius:.7rem; }
body[data-section="games"] .btn-game-primary { border-color:var(--section-accent); background:var(--section-accent); color:#201318; font-weight:850; }
body[data-section="games"] .btn-game-secondary { border:1px solid rgb(255 255 255 / .38); background:rgb(7 19 28 / .62); color:#fff; }
body[data-section="games"] .games-carousel-controls { position:absolute; z-index:2; right:1rem; bottom:1rem; display:flex; align-items:center; gap:.7rem; }
body[data-section="games"] .games-carousel-controls > button { display:grid; place-items:center; width:2.6rem; height:2.6rem; border:1px solid rgb(255 255 255 / .34); border-radius:50%; background:rgb(5 17 25 / .7); color:#fff; cursor:pointer; }
body[data-section="games"] .games-carousel-dots { display:flex; align-items:center; gap:.38rem; }
body[data-section="games"] .games-carousel-dots button { display:grid; place-items:center; width:1.1rem; height:1.1rem; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }
body[data-section="games"] .games-carousel-dots button span { display:block; width:.55rem; height:.55rem; border-radius:50%; background:#8b9aa4; }
body[data-section="games"] .games-carousel-dots button[aria-current="true"] span { width:1.1rem; border-radius:999px; background:var(--section-accent); }
body[data-section="games"] .games-genre-ribbon { display:flex; gap:.55rem; margin:1rem 0 1.6rem; padding:.25rem 0 .55rem; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--section-border) transparent; }
body[data-section="games"] .games-genre-ribbon a { display:inline-flex; flex:0 0 auto; align-items:center; gap:.45rem; min-height:2.75rem; padding:.55rem .8rem; border:1px solid var(--section-border); border-radius:.7rem; background:var(--section-surface); color:var(--section-muted); font-size:.78rem; font-weight:750; text-decoration:none; }
body[data-section="games"] .games-genre-ribbon a .ff-icon { width:1rem; height:1rem; }
body[data-section="games"] .games-genre-ribbon a:hover,
body[data-section="games"] .games-genre-ribbon a.is-active { border-color:var(--section-accent); background:var(--section-accent); color:#201318; }
body[data-section="games"] .g-section { margin-top:2rem; }
body[data-section="games"] .g-section h2 { margin:0; color:var(--section-text); font-family:var(--font-serif); font-size:clamp(1.55rem,2.7vw,2rem); font-weight:600; letter-spacing:-.025em; }
body[data-section="games"] .section-title-row p { margin:.25rem 0 0; color:var(--section-muted); }
body[data-section="games"] .games-section-kicker { color:#ff8b96 !important; font-size:.68rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
body[data-section="games"] .game-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:.75rem; }
body[data-section="games"] .game-card { min-width:0; overflow:hidden; border:1px solid var(--section-border); border-radius:.78rem; background:var(--section-surface); color:var(--section-text); box-shadow:0 4px 14px rgb(0 0 0 / .14); transition:transform 170ms ease,border-color 170ms ease,box-shadow 170ms ease; }
body[data-section="games"] .game-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--section-accent) 65%,var(--section-border)); box-shadow:0 14px 28px rgb(0 0 0 / .3); }
body[data-section="games"] .gc-art { position:relative; display:block; height:auto; aspect-ratio:16/10; overflow:hidden; background:var(--section-raised); }
body[data-section="games"] .gc-art img { display:block; width:100%; height:100%; object-fit:cover; transition:transform 240ms ease; }
body[data-section="games"] .game-card:hover .gc-art img { transform:scale(1.035); }
body[data-section="games"] .gc-body { display:grid; gap:.42rem; padding:.68rem .72rem .8rem; }
body[data-section="games"] .gc-badges { display:flex; flex-wrap:wrap; gap:.32rem; margin:0; }
body[data-section="games"] .gc-body .badge { border-radius:999px; background:color-mix(in srgb,var(--section-accent) 19%,var(--section-surface)); color:#ffd6da; font-size:.61rem; }
body[data-section="games"] .game-card .gc-title { min-height:2.4em; margin:0; overflow-wrap:anywhere; color:var(--section-text); font-size:.86rem; font-weight:750; line-height:1.25; }
body[data-section="games"] .g-cat { scroll-margin-top:6rem; margin-top:1.6rem; }
body[data-section="games"] .game-category-banner { min-height:7rem; margin:0 0 .7rem; overflow:hidden; border:1px solid var(--section-border); border-radius:.9rem; background:linear-gradient(110deg,var(--section-surface),var(--section-raised)); }
body[data-section="games"] .game-category-banner > a { display:flex; align-items:center; gap:1rem; min-height:7rem; padding:1rem 1.25rem; color:var(--section-text); text-decoration:none; }
body[data-section="games"] .game-category-banner .catalog-category-title { font-family:var(--font-serif); font-size:clamp(1.7rem,3vw,2.6rem); font-weight:600; text-transform:none; }
body[data-section="games"] .game-category-banner .catalog-category-art { width:36%; height:6rem; margin-left:auto; opacity:.82; }
body[data-section="games"] .game-category-banner .catalog-category-art img { max-height:6rem; border-radius:.5rem; object-fit:cover; }

/* Daily: sunlit editorial welcome, honest stored progress, and tactile challenge tiles. */
body[data-section="daily"] .daily-page { width:min(100% - 2rem,82rem); }
body[data-section="daily"] .daily-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(19rem,.92fr); align-items:center; min-height:23rem; padding:clamp(1.35rem,3vw,2.7rem); overflow:hidden; border:1px solid var(--section-border); border-radius:var(--r-panel); background:linear-gradient(110deg,var(--section-surface) 0%,color-mix(in srgb,var(--section-surface) 78%,#f3dfb7) 100%); box-shadow:0 12px 34px rgb(88 66 39 / .08); }
body[data-section="daily"] .daily-hero-copy { position:relative; z-index:1; }
body[data-section="daily"] .daily-today-date { display:block; margin:.25rem 0 .65rem; color:var(--section-muted); font-size:.82rem; font-weight:700; }
body[data-section="daily"] .daily-hero h1 { max-width:none; margin:.2rem 0 .8rem; color:var(--section-text); font-family:var(--font-serif); font-size:clamp(2.5rem,4vw,3.4rem); font-weight:600; line-height:.98; letter-spacing:-.045em; }
body[data-section="daily"] .daily-hero h1 em { color:var(--section-accent); }
body[data-section="daily"] .daily-hero .lead { max-width:48ch; color:var(--section-muted); line-height:1.6; }
body[data-section="daily"] .daily-hero-art { position:relative; z-index:1; justify-self:stretch; align-self:center; width:100%; height:auto; min-height:0; aspect-ratio:3/2; margin:0; overflow:hidden; border-radius:1rem; transform:none; filter:none; opacity:1; }
body[data-section="daily"] .daily-hero-art img { display:block; width:100%; height:100%; min-height:0; object-fit:cover; object-position:56% center; }
body[data-section="daily"] .btn-daily-primary { min-height:2.8rem; border-color:var(--section-accent); border-radius:.7rem; background:var(--section-accent); color:#fff; }
body[data-section="daily"] .daily-streak-panel { display:grid; grid-template-columns:minmax(13rem,.75fr) minmax(0,1.25fr); align-items:center; gap:1.2rem; margin-top:1rem; padding:1rem 1.2rem; border:1px solid var(--section-border); border-radius:1rem; background:var(--section-surface); box-shadow:0 5px 18px rgb(80 64 40 / .055); }
body[data-section="daily"] .daily-streak-summary { display:flex; align-items:center; gap:.9rem; min-width:0; }
body[data-section="daily"] .daily-flame { display:grid; place-items:center; width:3.1rem; height:3.1rem; flex:none; border-radius:1rem; background:#ffead8; color:#c94e20; }
body[data-section="daily"] .daily-flame .ff-icon { width:1.5rem; height:1.5rem; }
body[data-section="daily"] .daily-streak-summary .daily-panel-kicker { margin:0 0 .2rem; }
body[data-section="daily"] .daily-streak-summary h2 { margin:0; color:var(--section-text); font-family:var(--font-serif); font-size:1.5rem; line-height:1.15; }
body[data-section="daily"] .daily-streak-summary h2 strong { color:var(--section-accent); font-size:1.85rem; font-variant-numeric:tabular-nums; }
body[data-section="daily"] .daily-streak-summary > div > p:last-child { margin:.25rem 0 0; color:var(--section-muted); font-size:.76rem; }
body[data-section="daily"] .daily-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.35rem; margin:0; padding:0; list-style:none; }
body[data-section="daily"] .daily-week li { display:grid; justify-items:center; gap:.26rem; padding:.36rem .15rem; border-radius:.6rem; color:var(--section-muted); font-size:.66rem; }
body[data-section="daily"] .daily-week li[data-current="true"],
body[data-section="daily"] .daily-week li[data-selected="true"] { background:var(--section-soft); color:var(--section-text); font-weight:800; }
body[data-section="daily"] .daily-week li strong { display:grid; place-items:center; width:1.55rem; height:1.55rem; border:1px solid var(--section-border); border-radius:50%; background:var(--section-surface); color:var(--section-muted); font-size:.78rem; }
body[data-section="daily"] .daily-week li[data-complete="true"] strong { border-color:var(--section-accent); background:var(--section-accent); color:#fff; }
body[data-section="daily"] .daily-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:1rem; margin:2rem 0 .75rem; }
body[data-section="daily"] .daily-overview-heading .daily-panel-kicker { margin:0; }
body[data-section="daily"] .daily-overview h2,
body[data-section="daily"] .daily-progress-dashboard h2 { margin:.15rem 0 .25rem; color:var(--section-text); font-family:var(--font-serif); font-size:clamp(1.7rem,3vw,2.25rem); font-weight:600; letter-spacing:-.035em; }
body[data-section="daily"] .daily-overview-heading > p:last-child,
body[data-section="daily"] .daily-progress-dashboard .section-title-row p:last-child { margin:0; color:var(--section-muted); }
body[data-section="daily"] .daily-date-nav { display:flex; align-items:center; gap:.45rem; }
body[data-section="daily"] .daily-date-nav > button { display:grid; place-items:center; min-width:2.55rem; min-height:2.55rem; padding:.4rem; border:1px solid var(--section-border); border-radius:.7rem; background:var(--section-surface); color:var(--section-text); font:inherit; cursor:pointer; }
body[data-section="daily"] .daily-date-nav > button:disabled { cursor:default; opacity:.5; }
body[data-section="daily"] .daily-date-nav > div { display:grid; min-width:8rem; text-align:center; }
body[data-section="daily"] .daily-date-nav > div span { color:var(--section-muted); font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; }
body[data-section="daily"] .daily-date-nav > div time { color:var(--section-text); font-size:.85rem; font-weight:750; font-variant-numeric:tabular-nums; }
body[data-section="daily"] .daily-date-nav .daily-today-button { padding-inline:.75rem; font-size:.75rem; font-weight:750; }
body[data-section="daily"] .daily-progress { grid-column:1/-1; display:grid; gap:.35rem; }
body[data-section="daily"] .daily-progress-label { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:var(--section-muted); font-size:.75rem; }
body[data-section="daily"] .daily-progress-label strong { color:var(--section-accent); font-size:.8rem; }
body[data-section="daily"] .daily-progress-track { height:.55rem; overflow:hidden; border-radius:999px; background:var(--section-soft); }
body[data-section="daily"] .daily-progress-fill,
body[data-section="daily"] [data-daily-progress-fill] { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#df7a36,var(--section-accent)); transition:width 220ms ease; }
body[data-section="daily"] .daily-reset { margin:0; color:var(--section-muted); font-size:.68rem; }
body[data-section="daily"] .daily-error { border-color:#bd382d; background:#fff0eb; color:#68241f; }
body[data-section="daily"] .daily-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
body[data-section="daily"] .daily-card { position:relative; min-width:0; min-height:25rem; gap:.65rem; padding:1rem; overflow:hidden; border:1px solid var(--section-border); border-radius:1rem; background:var(--section-surface); color:var(--section-text); box-shadow:0 5px 17px rgb(73 58 35 / .065); }
body[data-section="daily"] .daily-card[data-daily-card="maze"],
body[data-section="daily"] .daily-card[data-daily-card="logic"],
body[data-section="daily"] .daily-card[data-daily-card="circuit"] { border-color:#34574b; background:#16463b; color:#fff8e9; }
body[data-section="daily"] .daily-card[data-daily-card="word"],
body[data-section="daily"] .daily-card[data-daily-card="number"] { border-color:#c5683f; background:#c65b35; color:#fff7ec; }
body[data-section="daily"] .daily-card[data-daily-card="memory"] { border-color:#6d598c; background:#53456f; color:#fff8ef; }
body[data-section="daily"] .daily-card[data-daily-card="maze"] .daily-status,
body[data-section="daily"] .daily-card[data-daily-card="logic"] .daily-status,
body[data-section="daily"] .daily-card[data-daily-card="circuit"] .daily-status,
body[data-section="daily"] .daily-card[data-daily-card="word"] .daily-status,
body[data-section="daily"] .daily-card[data-daily-card="number"] .daily-status,
body[data-section="daily"] .daily-card[data-daily-card="memory"] .daily-status { border:1px solid rgb(255 255 255 / .3); background:rgb(0 0 0 / .13); color:#fff; }
body[data-section="daily"] .daily-illustration { display:grid; place-items:center; height:8.2rem; margin:-1rem -1rem .2rem; overflow:hidden; border-radius:.95rem .95rem 0 0; background:linear-gradient(140deg,rgb(255 255 255 / .12),rgb(255 255 255 / .02)); }
body[data-section="daily"] .daily-illustration svg { display:block; width:min(100%,14rem); max-height:7.8rem; }
body[data-section="daily"] .daily-card-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
body[data-section="daily"] .daily-card-kind { font-size:.62rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
body[data-section="daily"] .daily-status { padding:.32rem .55rem; border:1px solid var(--section-border); border-radius:999px; background:var(--section-soft); color:var(--section-text); font-size:.63rem; font-weight:750; }
body[data-section="daily"] .daily-card h3 { margin:.15rem 0; color:inherit; font-family:var(--font-serif); font-size:1.55rem; font-weight:600; line-height:1.1; }
body[data-section="daily"] .daily-card > p { flex:1; margin:0; color:color-mix(in srgb,currentColor 82%,transparent); font-size:.84rem; line-height:1.5; }
body[data-section="daily"] .daily-card-meta { padding-top:.55rem; border-top:1px solid color-mix(in srgb,currentColor 20%,transparent); color:color-mix(in srgb,currentColor 78%,transparent); font-size:.68rem; }
body[data-section="daily"] .daily-card .btn-daily-card { align-self:stretch; justify-content:space-between; min-height:2.7rem; border:1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius:.7rem; background:color-mix(in srgb,var(--section-surface) 88%,transparent); color:var(--section-text); font-size:.8rem; font-weight:800; }
body[data-section="daily"] .daily-card[data-daily-card="maze"] .btn-daily-card,
body[data-section="daily"] .daily-card[data-daily-card="logic"] .btn-daily-card,
body[data-section="daily"] .daily-card[data-daily-card="circuit"] .btn-daily-card,
body[data-section="daily"] .daily-card[data-daily-card="word"] .btn-daily-card,
body[data-section="daily"] .daily-card[data-daily-card="number"] .btn-daily-card,
body[data-section="daily"] .daily-card[data-daily-card="memory"] .btn-daily-card { border-color:rgb(255 255 255 / .32); background:rgb(255 255 255 / .93); color:#20352e; }
body[data-section="daily"] .daily-card[data-done="true"] { outline:2px solid color-mix(in srgb,var(--section-accent) 45%,transparent); outline-offset:1px; }
body[data-section="daily"] .daily-progress-dashboard { margin-top:2rem; }
body[data-section="daily"] .daily-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-top:.8rem; }
body[data-section="daily"] .daily-stat-card { display:grid; grid-template-columns:2.5rem minmax(0,1fr); align-items:center; column-gap:.75rem; min-width:0; padding:1rem; border:1px solid var(--section-border); border-radius:.85rem; background:var(--section-surface); }
body[data-section="daily"] .daily-stat-icon { display:grid; grid-row:span 2; place-items:center; width:2.5rem; height:2.5rem; border-radius:.75rem; background:var(--section-soft); color:var(--section-accent); }
body[data-section="daily"] .daily-stat-icon .ff-icon { width:1.25rem; height:1.25rem; }
body[data-section="daily"] .daily-stat-card > strong { color:var(--section-text); font-size:1.45rem; font-variant-numeric:tabular-nums; }
body[data-section="daily"] .daily-stat-card > span:not(.daily-stat-icon) { color:var(--section-muted); font-size:.7rem; line-height:1.35; }
body[data-section="daily"] .daily-stat-card > small { grid-column:2; margin-top:.2rem; color:var(--section-muted); font-size:.63rem; line-height:1.35; }
body[data-section="daily"] .daily-motivational-banner { position:relative; min-height:13rem; margin-top:1.2rem; overflow:hidden; border-radius:1rem; background:#48634d; isolation:isolate; }
body[data-section="daily"] .daily-motivational-banner > img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
body[data-section="daily"] .daily-motivational-banner::after { position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgb(24 44 36 / .72),rgb(24 44 36 / .08)); content:""; }
body[data-section="daily"] .daily-motivational-banner > div { display:grid; align-content:center; min-height:13rem; padding:1.5rem 2rem; color:#fff; }
body[data-section="daily"] .daily-motivational-banner > div p { margin:0 0 .35rem; color:#ffe0bd; font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
body[data-section="daily"] .daily-motivational-banner > div span { max-width:25ch; font-family:var(--font-serif); font-size:clamp(1.75rem,3.4vw,2.7rem); line-height:1.07; }
body[data-section="daily"] .daily-storage-note { color:var(--section-muted); font-size:.75rem; }

/* Dark mode keeps section identity while maintaining readable surfaces and text. */
html[data-mode="dark"] body[data-section="tools"] .tools-promo-banner { background:#123d34; }
html[data-mode="dark"] body[data-section="tools"] .tools-category-icon { background:hsl(var(--category-hue) 34% 24%); color:hsl(var(--category-hue) 78% 78%); }
html[data-mode="dark"] body[data-section="daily"] .daily-card[data-daily-card="nonogram"],
html[data-mode="dark"] body[data-section="daily"] .daily-card[data-daily-card="sudoku"] { background:var(--section-surface); color:var(--section-text); }

@media (prefers-color-scheme:dark) {
  html:not([data-mode]) body[data-section="tools"] .tools-category-icon { background:hsl(var(--category-hue) 34% 24%); color:hsl(var(--category-hue) 78% 78%); }
  html:not([data-mode]) body[data-section="daily"] .daily-card[data-daily-card="nonogram"],
  html:not([data-mode]) body[data-section="daily"] .daily-card[data-daily-card="sudoku"] { background:var(--section-surface); color:var(--section-text); }
}

@media (max-width:1200px) {
  body[data-section="tools"] .tools-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-section="tools"] .tools-popular-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="games"] .game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:899px) {
  body[data-section="tools"] .tools-directory .catalog-layout { display:block; }
  body[data-section="tools"] .tools-directory .catalog-main { min-width:0; }
  body[data-section="tools"] .tools-directory .browse-mobile-trigger { display:flex !important; margin-bottom:.7rem; }
}
@media (max-width:720px) {
  body[data-section="tools"] .tools-landing-hero,
  body[data-section="daily"] .daily-hero { grid-template-columns:minmax(0,1fr); }
  body[data-section="tools"] .tools-landing-hero { padding:1.25rem; }
  body[data-section="tools"] .tools-landing-hero h1 { font-size:clamp(3rem,12vw,4.4rem); }
  body[data-section="tools"] .tools-hero-art,
  body[data-section="daily"] .daily-hero { padding-bottom:1.25rem; }
  body[data-section="daily"] .daily-hero-art { position:relative; right:auto; bottom:auto; justify-self:stretch; width:100%; height:auto; min-height:0; margin:.4rem 0 0; border-radius:.8rem; transform:none; opacity:1; }
  body[data-section="tools"] .tools-hero-art img { min-height:13rem; max-height:16rem; }
  body[data-section="daily"] .daily-hero-art img { min-height:0; max-height:none; }
  body[data-section="tools"] .tools-hero-art::after { background:linear-gradient(0deg,var(--section-surface),transparent 46%); }
  body[data-section="tools"] .tools-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="tools"] .tools-promo-banner img { right:-20%; width:70%; opacity:.33; }
  body[data-section="games"] .games-featured-carousel,
  body[data-section="games"] .games-featured-slides,
  body[data-section="games"] .games-feature-slide { min-height:24rem; }
  body[data-section="games"] .games-feature-art img { top:40%; right:0; width:min(100%,36rem); height:66%; object-fit:contain; opacity:.74; }
  body[data-section="games"] .games-feature-slide { padding:1.15rem 1.15rem 4.1rem; }
  body[data-section="games"] .games-feature-slide::before { background:linear-gradient(0deg,rgb(3 12 19 / .98) 0%,rgb(3 12 19 / .8) 45%,rgb(3 12 19 / .22) 100%); }
  body[data-section="games"] .games-feature-overlay { max-width:100%; }
  body[data-section="games"] .games-carousel-controls { right:.7rem; bottom:.7rem; }
  body[data-section="games"] .game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-section="daily"] .daily-hero { padding:1.25rem; }
  body[data-section="daily"] .daily-overview { grid-template-columns:minmax(0,1fr); }
  body[data-section="daily"] .daily-date-nav { justify-self:start; }
  body[data-section="daily"] .daily-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="daily"] .daily-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="daily"] .daily-streak-panel { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:480px) {
  body[data-section="tools"] .tools-directory,
  body[data-section="games"] .games-page,
  body[data-section="daily"] .daily-page { width:min(100% - 1.1rem,92rem); padding-top:.65rem; }
  body[data-section="daily"] .daily-hero h1 { font-size:clamp(2rem,8vw,2.25rem); }
  body[data-section="tools"] .tools-category-grid { gap:.55rem; }
  body[data-section="tools"] .tools-category-card { grid-template-columns:2.2rem minmax(0,1fr); gap:.6rem; min-height:8rem; padding:.75rem; }
  body[data-section="tools"] .tools-category-icon { width:2.2rem; height:2.2rem; }
  body[data-section="tools"] .tools-category-copy strong { font-size:.83rem; }
  body[data-section="tools"] .tools-category-copy > span { font-size:.7rem; }
  body[data-section="tools"] .tools-category-count { font-size:.65rem; }
  body[data-section="tools"] .tools-popular-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
  body[data-section="tools"] .tools-popular-grid .card { min-width:0; }
  body[data-section="games"] .games-genre-ribbon { margin-inline:-.35rem; padding-inline:.35rem; }
  body[data-section="games"] .games-featured-carousel,
  body[data-section="games"] .games-featured-slides,
  body[data-section="games"] .games-feature-slide { min-height:25rem; }
  body[data-section="games"] .games-feature-overlay h2 { font-size:2.55rem; }
  body[data-section="games"] .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
  body[data-section="games"] .gc-body { padding:.55rem; }
  body[data-section="games"] .game-card .gc-title { font-size:.78rem; }
  body[data-section="daily"] .daily-grid { grid-template-columns:minmax(0,1fr); }
  body[data-section="daily"] .daily-card { min-height:0; }
  body[data-section="daily"] .daily-date-nav { flex-wrap:wrap; }
  body[data-section="daily"] .daily-date-nav > div { min-width:6.5rem; }
  body[data-section="daily"] .daily-week { gap:.12rem; }
  body[data-section="daily"] .daily-week li { font-size:.58rem; }
  body[data-section="daily"] .daily-week li strong { width:1.35rem; height:1.35rem; }
  body[data-section="daily"] .daily-stats-grid { gap:.5rem; }
  body[data-section="daily"] .daily-stat-card { grid-template-columns:2rem minmax(0,1fr); column-gap:.55rem; padding:.7rem; }
  body[data-section="daily"] .daily-stat-icon { width:2rem; height:2rem; }
  body[data-section="daily"] .daily-stat-card > strong { font-size:1.2rem; }
  body[data-section="daily"] .daily-stat-card > span:not(.daily-stat-icon) { font-size:.64rem; }
  body[data-section="daily"] .daily-stat-card > small { font-size:.58rem; }
  body[data-section="daily"] .daily-motivational-banner > div { padding:1rem; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-section="tools"] *,body[data-section="games"] *,body[data-section="daily"] * { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* The shared nav uses the active section's own accent, with a simple underline instead of a dropdown treatment. */
body[data-section="tools"] .site-header .nav-family-link[aria-current="page"] { border-color:transparent; background:transparent; box-shadow:none; color:var(--section-accent); }
body[data-section="tools"] .site-header .nav-family-link[aria-current="page"]::after { background:var(--section-accent); }
body[data-section="games"] .site-header .nav-family-link[aria-current="page"] { border-color:transparent; background:transparent; box-shadow:none; color:var(--section-accent); }
body[data-section="games"] .site-header .nav-family-link[aria-current="page"]::after { background:var(--section-accent); }
body[data-section="daily"] .site-header .nav-family-link[aria-current="page"] { border-color:transparent; background:transparent; box-shadow:none; color:var(--section-accent); }
body[data-section="daily"] .site-header .nav-family-link[aria-current="page"]::after { background:var(--section-accent); }

/* Games directory: keep the colorful storefront tone without a featured title or carousel. */
body[data-section="games"] .games-directory-hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(16rem,.8fr); align-items:center; min-height:21rem; margin:.25rem 0 1.2rem; padding:clamp(1.5rem,4vw,3.25rem); overflow:hidden; border:1px solid var(--section-border); border-radius:1.1rem; background:radial-gradient(ellipse at 82% 34%,color-mix(in srgb,var(--section-accent) 28%,transparent),transparent 20rem),linear-gradient(125deg,#07121d 0%,#0b1e2c 62%,#102536 100%); box-shadow:0 18px 50px rgb(0 0 0 / .24); }
body[data-section="games"] .games-directory-copy { position:relative; z-index:2; max-width:37rem; }
body[data-section="games"] .games-directory-copy .games-section-kicker { margin:0 0 .7rem; color:#ff8e9b !important; }
body[data-section="games"] .games-directory-copy h1 { margin:0 0 .75rem; color:#f8fbfd; font-family:var(--font-serif); font-size:clamp(2.9rem,6vw,5rem); font-weight:600; line-height:.94; letter-spacing:-.05em; }
body[data-section="games"] .games-directory-copy h1 em { color:#ff7a88; font-weight:500; }
body[data-section="games"] .games-directory-copy > p:not(.games-section-kicker) { max-width:40ch; margin:0; color:#ced8df; font-size:1rem; line-height:1.6; }
body[data-section="games"] .games-directory-copy .btn { margin-top:1.2rem; }
body[data-section="games"] .games-directory-art { position:relative; display:grid; place-items:center; min-height:16rem; overflow:hidden; isolation:isolate; }
body[data-section="games"] .games-directory-orbit { position:absolute; width:min(92%,19rem); aspect-ratio:1; border:1px solid rgb(255 255 255 / .12); border-radius:50%; box-shadow:0 0 0 1.1rem rgb(255 255 255 / .025),0 0 0 2.5rem rgb(255 255 255 / .02); transform:rotate(-16deg) scaleX(1.25); }
body[data-section="games"] .games-directory-tile { position:absolute; display:grid; place-items:center; width:5.4rem; aspect-ratio:1; border:1px solid rgb(255 255 255 / .26); border-radius:1.35rem; background:linear-gradient(145deg,rgb(255 255 255 / .16),rgb(255 255 255 / .045)); color:#fff; box-shadow:0 18px 38px rgb(0 0 0 / .27),inset 0 1px 0 rgb(255 255 255 / .18); backdrop-filter:blur(12px); }
body[data-section="games"] .games-directory-tile .ff-icon { width:2.3rem; height:2.3rem; }
body[data-section="games"] .games-directory-tile-one { z-index:2; background:linear-gradient(145deg,#ff6575,#c23655); transform:translate(-4rem,.1rem) rotate(-10deg); }
body[data-section="games"] .games-directory-tile-two { z-index:1; background:linear-gradient(145deg,#9270ec,#4a54b9); transform:translate(2.6rem,-3.2rem) rotate(9deg); }
body[data-section="games"] .games-directory-tile-three { z-index:3; background:linear-gradient(145deg,#f4ad48,#d05f35); transform:translate(3.4rem,3.5rem) rotate(8deg); }
body[data-section="games"] .games-directory-spark { position:absolute; width:.72rem; aspect-ratio:1; border-radius:50%; background:#62d6cc; box-shadow:0 0 0 .6rem rgb(98 214 204 / .11); }
body[data-section="games"] .games-directory-spark-one { top:18%; right:18%; }
body[data-section="games"] .games-directory-spark-two { bottom:15%; left:12%; width:.48rem; background:#ff8e9b; }
body[data-section="games"] .games-genre-ribbon { margin-top:1rem; }
body[data-section="games"] .games-all-section { margin-top:1.5rem; }

@media (max-width:720px) {
  body[data-section="games"] .games-directory-hero { grid-template-columns:minmax(0,1fr) minmax(8rem,.65fr); min-height:19rem; padding:1.3rem; }
  body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2.35rem,9vw,3.4rem); }
  body[data-section="games"] .games-directory-art { min-height:13rem; }
  body[data-section="games"] .games-directory-tile { width:4rem; border-radius:1rem; }
  body[data-section="games"] .games-directory-tile .ff-icon { width:1.8rem; height:1.8rem; }
  body[data-section="games"] .games-directory-tile-one { transform:translate(-2rem,.15rem) rotate(-10deg); }
  body[data-section="games"] .games-directory-tile-two { transform:translate(1.4rem,-2.4rem) rotate(9deg); }
  body[data-section="games"] .games-directory-tile-three { transform:translate(2rem,2.5rem) rotate(8deg); }
}
@media (max-width:520px) {
  body[data-section="games"] .games-directory-hero { display:block; min-height:0; padding:1.2rem; }
  body[data-section="games"] .games-directory-art { position:absolute; right:-1rem; bottom:-2rem; width:11rem; min-height:11rem; opacity:.46; }
  body[data-section="games"] .games-directory-copy { max-width:22rem; }
  body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2.25rem,11vw,3rem); }
}

/* Shared editorial, image-led section heroes follow the global header theme defined above. */

body[data-section="tools"] .tools-landing-hero,
body[data-section="daily"] .daily-hero,
body[data-section="games"] .games-directory-hero { position:relative; display:grid; grid-template-columns:minmax(0,1fr); isolation:isolate; }
body[data-section="tools"] .tools-landing-hero { min-height:28rem; padding:clamp(2rem,5vw,4.25rem); background:#f3f1e8; }
body[data-section="tools"] .tools-landing-hero .family-hero-copy { max-width:38rem; }
body[data-section="tools"] .tools-landing-hero h1 { max-width:15ch; font-size:clamp(3rem,5.3vw,5rem); }
body[data-section="tools"] .tools-hero-art { position:absolute; z-index:-1; inset:0 0 0 auto; width:74%; height:100%; min-height:0; margin:0; border-radius:0; background:#e7e7da; }
body[data-section="tools"] .tools-hero-art img { display:block; width:100%; height:100%; min-height:0; object-fit:cover; object-position:68% center; }
body[data-section="tools"] .tools-hero-art::after { position:absolute; inset:0; background:linear-gradient(90deg,#f8f7f2 0%,rgb(248 247 242 / .97) 22%,rgb(248 247 242 / .72) 42%,rgb(248 247 242 / .08) 74%),linear-gradient(0deg,rgb(22 35 27 / .08),transparent 42%); content:""; }
body[data-section="tools"] .tools-privacy-note { max-width:34rem; }

body[data-section="games"] .games-directory-hero { min-height:24rem; margin:.25rem 0 1.2rem; padding:clamp(2rem,5vw,4rem); background:#06131e; }
body[data-section="games"] .games-directory-art { position:absolute; z-index:-2; inset:0; display:block; width:100%; height:100%; min-height:0; opacity:1; }
body[data-section="games"] .games-directory-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:66% 55%; }
body[data-section="games"] .games-directory-hero::after { position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgb(3 14 23 / .97) 0%,rgb(3 14 23 / .84) 37%,rgb(3 14 23 / .23) 76%,rgb(3 14 23 / .04) 100%),linear-gradient(0deg,rgb(3 14 23 / .36),transparent 55%); content:""; }
body[data-section="games"] .games-directory-copy { z-index:1; max-width:38rem; }
body[data-section="games"] .games-directory-copy h1 { font-size:clamp(3rem,6.2vw,5.25rem); }
body[data-section="games"] .games-genre-ribbon { display:flex; gap:.5rem; overflow-x:auto; padding:.2rem .1rem .65rem; scrollbar-width:thin; }
body[data-section="games"] .games-genre-ribbon a { flex:0 0 auto; min-width:5.6rem; }
body[data-section="games"] .games-all-section { margin-top:1rem; }
body[data-section="games"] .games-all-section > .section-title-row { margin-bottom:1rem; }
body[data-section="games"] .game-category-banner { min-height:3.3rem; margin-top:1rem; margin-bottom:.5rem; border-color:color-mix(in srgb,var(--accent) 34%,var(--section-border)); background:linear-gradient(100deg,color-mix(in srgb,var(--accent) 16%,var(--section-surface)),var(--section-surface)); }
body[data-section="games"] .game-category-banner > a { min-height:3.3rem; padding:.55rem .9rem; border-left:3px solid hsl(var(--catalog-hue) 72% 62%); }
body[data-section="games"] .game-category-banner .catalog-category-title { font-family:var(--font-sans); font-size:1.05rem; font-weight:850; letter-spacing:.01em; }
body[data-section="games"] .game-category-banner .catalog-category-art { width:20%; height:2.5rem; opacity:.5; }
body[data-section="games"] .game-category-banner .catalog-category-art img { max-height:2.5rem; }
body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }

body[data-section="daily"] .daily-page { width:min(100% - 2rem,92rem); }
body[data-section="daily"] .daily-hero { min-height:25rem; padding:clamp(2rem,5vw,4rem); background:#f5ead7; }
body[data-section="daily"] .daily-hero-copy { max-width:39rem; }
body[data-section="daily"] .daily-hero h1 { max-width:16ch; font-size:clamp(2.6rem,4.8vw,4rem); }
body[data-section="daily"] .daily-hero-art { position:absolute; z-index:-1; inset:0; width:100%; height:100%; aspect-ratio:auto; border-radius:0; }
body[data-section="daily"] .daily-hero-art img { object-position:68% center; }
body[data-section="daily"] .daily-hero::after { position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#fbf7ee 0%,rgb(251 247 238 / .98) 28%,rgb(251 247 238 / .78) 47%,rgb(251 247 238 / .12) 78%),linear-gradient(0deg,rgb(251 247 238 / .16),transparent 60%); content:""; }

@media (min-width:900px) {
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:899px) {
  .site-header .header-row { background:transparent; }
  .site-header .menu-btn { display:grid; place-items:center; }
}
@media (max-width:720px) {
  body[data-section="tools"] .tools-landing-hero,
  body[data-section="daily"] .daily-hero { min-height:29rem; padding:1.3rem; }
  body[data-section="tools"] .tools-hero-art { width:100%; }
  body[data-section="tools"] .tools-hero-art img { object-position:68% center; }
  body[data-section="tools"] .tools-hero-art::after { background:linear-gradient(90deg,rgb(248 247 242 / .96),rgb(248 247 242 / .83) 40%,rgb(248 247 242 / .24)),linear-gradient(0deg,#f8f7f2 0%,transparent 38%); }
  body[data-section="games"] .games-directory-hero { min-height:22rem; }
body[data-section="games"] .games-directory-art img { object-position:78% center; }
  body[data-section="games"] .games-directory-hero::after { background:linear-gradient(90deg,rgb(3 14 23 / .92),rgb(3 14 23 / .65) 58%,rgb(3 14 23 / .2)),linear-gradient(0deg,rgb(3 14 23 / .48),transparent 70%); }
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-section="daily"] .daily-hero { grid-template-columns:minmax(0,1fr); }
  body[data-section="daily"] .daily-hero-art { position:absolute; inset:0; width:100%; height:100%; }
  body[data-section="daily"] .daily-hero::after { background:linear-gradient(90deg,rgb(251 247 238 / .97),rgb(251 247 238 / .85) 54%,rgb(251 247 238 / .3)),linear-gradient(0deg,#fbf7ee,transparent 48%); }
}
@media (max-width:520px) {
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="games"] .games-directory-hero { min-height:22rem; padding:1.2rem; }
  body[data-section="games"] .games-directory-art { right:0; bottom:0; width:100%; opacity:1; }
  body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2.5rem,11vw,3.35rem); }
  body[data-section="daily"] .daily-hero { min-height:28rem; }
}

/* Tool categories use the colorful, icon-led tiles from the reference design. */
body[data-section="tools"] .tools-category-card {
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:2.9rem auto 1fr;
  align-items:start;
  gap:.45rem .6rem;
  min-height:12rem;
  padding:1rem;
  border-radius:.9rem;
  background:var(--section-surface);
  border-color:color-mix(in srgb,hsl(var(--category-hue) 68% 48%) 22%,var(--section-border));
}
body[data-section="tools"] .tools-category-icon {
  grid-column:1/-1;
  grid-row:1;
  width:2.55rem;
  height:2.55rem;
  border-radius:.7rem;
  background:hsl(var(--category-hue) 76% 42%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .3);
}
body[data-section="tools"] .tools-category-icon .ff-icon { width:1.4rem; height:1.4rem; }
body[data-section="tools"] .tools-category-copy { grid-column:1/-1; grid-row:2; gap:.35rem; }
body[data-section="tools"] .tools-category-copy strong { padding:0; font-size:.98rem; }
body[data-section="tools"] .tools-category-copy > span { display:-webkit-box; overflow:hidden; font-size:.76rem; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
body[data-section="tools"] .tools-category-count { grid-column:1; grid-row:3; align-self:end; margin-top:.35rem; color:var(--section-text); }
body[data-section="tools"] .tools-category-arrow { top:auto; right:.85rem; bottom:.78rem; opacity:1; transform:none; }
body[data-section="tools"] .tools-category-card:hover .tools-category-arrow,
body[data-section="tools"] .tools-category-card:focus-visible .tools-category-arrow { transform:translate(2px,-2px); }
.tool-visual-card .tool-art-frame { aspect-ratio:4/3; min-height:0; padding:0; }
body[data-section="tools"] .tool-visual-card .tool-art-frame { aspect-ratio:4/3; min-height:0; padding:0; }

/* Give each real game cover the taller storefront-card proportions in the reference. */
body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:.8rem; }
body[data-section="games"] .games-all-section .game-card { border-radius:.85rem; box-shadow:0 8px 22px rgb(0 0 0 / .18); }
body[data-section="games"] .games-all-section .game-card .gc-art { aspect-ratio:4/5; }
body[data-section="games"] .games-all-section .game-card:not(.is-custom-cover) .gc-art img { object-fit:cover; object-position:center; }
body[data-section="games"] .games-all-section .game-card:not(.is-custom-cover):hover .gc-art img { transform:scale(1.055); }
body[data-section="games"] .games-all-section .game-card .gc-body { min-height:5.1rem; gap:.38rem; padding:.65rem .68rem .75rem; }
body[data-section="games"] .games-all-section .game-card .gc-title { font-size:.9rem; line-height:1.28; }
body[data-section="games"] .game-card.is-custom-cover .gc-art,
body[data-section="games"] .games-all-section .game-card.is-custom-cover .gc-art { aspect-ratio:16/10; }
@media (min-width:900px) and (max-width:1279px) {
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media (min-width:721px) and (max-width:899px) {
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (min-width:521px) and (max-width:720px) {
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:520px) {
  body[data-section="games"] .games-all-section .game-card .gc-art { aspect-ratio:4/5; }
  body[data-section="tools"] .tools-category-card { min-height:12rem; padding:.8rem; }
  body[data-section="tools"] .tools-category-count { font-size:.64rem; }
}

html[data-mode="dark"] body[data-section="daily"] .daily-hero {
  background:#191711;
}
html[data-mode="dark"] body[data-section="daily"] .daily-hero::after {
  background:linear-gradient(90deg,rgb(25 23 17 / .98) 0%,rgb(25 23 17 / .94) 28%,rgb(25 23 17 / .78) 47%,rgb(25 23 17 / .1) 78%),linear-gradient(0deg,rgb(25 23 17 / .24),transparent 60%);
}
html[data-mode="dark"] body[data-section="tools"] .tools-landing-hero {
  background:var(--section-surface);
}
html[data-mode="dark"] body[data-section="tools"] .tools-hero-art {
  background:var(--section-surface);
}
html[data-mode="dark"] body[data-section="tools"] .tools-hero-art::after {
  background:linear-gradient(90deg,var(--section-surface) 0%,color-mix(in srgb,var(--section-surface) 92%,transparent) 28%,color-mix(in srgb,var(--section-surface) 55%,transparent) 58%,transparent 100%),linear-gradient(0deg,rgb(0 0 0 / .22),transparent 48%);
}

/* Browse rail: keep the complete category list inside a slim, left-hand scroll area. */
body[data-section="tools"] .tools-directory .catalog-layout {
  grid-template-columns:minmax(10.5rem,12rem) minmax(0,1fr);
  gap:clamp(.9rem,1.6vw,1.4rem);
}
body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar {
  position:sticky;
  inset:auto;
  top:4.75rem;
  left:0;
  align-self:start;
  box-sizing:border-box;
  width:100%;
  max-height:calc(100vh - 5.5rem);
  margin:0;
  padding:.7rem .55rem;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-gutter:stable;
}
body[data-section="tools"] .tools-directory .browse-sidebar-head { gap:.4rem; padding:.15rem .2rem .55rem; }
body[data-section="tools"] .tools-directory .browse-sidebar-head { position:sticky; top:-.7rem; z-index:2; margin:-.15rem -.2rem .3rem; padding:.4rem .2rem .55rem; background:color-mix(in srgb,var(--surface) 96%,transparent); }
body[data-section="tools"] .tools-directory .browse-sidebar-head h2 { flex:0 0 auto; }
body[data-section="tools"] .tools-directory .browse-family-switch { margin-left:auto; }
body[data-section="tools"] .tools-directory .browse-tree-group a { min-width:0; overflow-wrap:anywhere; }

/* Put the illustrated game world beneath every Games surface, retaining legible surfaces. */
body[data-section="games"] {
  background-color:var(--bg);
  background-image:linear-gradient(180deg,rgb(249 248 245 / .52),rgb(240 244 248 / .6)),url("../illustrations/games-hero-landscape.jpg");
  background-position:center,center 4rem;
  background-repeat:no-repeat;
  background-size:auto,cover;
  background-attachment:fixed,fixed;
}
html[data-mode="dark"] body[data-section="games"] {
  background-image:linear-gradient(180deg,rgb(3 11 18 / .6),rgb(4 13 22 / .64)),url("../illustrations/games-hero-landscape.jpg");
}

/* The Games shelf is both a live random play prompt and a sticky genre navigator. */
body[data-section="games"] .games-directory-hero {
  grid-template-columns:minmax(0,1fr) minmax(16rem,.86fr);
  align-items:center;
  min-height:24rem;
}
body[data-section="games"] .games-directory-copy {
  grid-column:1;
  align-self:center;
  max-width:34rem;
}
body[data-section="games"] .games-directory-copy h1 { margin:0; }
body[data-section="games"] .games-directory-copy .btn { margin-top:1.35rem; }
body[data-section="games"] .games-showcase {
  position:relative;
  grid-column:2;
  justify-self:stretch;
  min-width:0;
  height:19rem;
  isolation:isolate;
}
body[data-section="games"] .games-showcase-images {
  position:absolute;
  inset:0;
  overflow:hidden;
  mask-image:radial-gradient(ellipse at 52% 48%,#000 38%,rgb(0 0 0 / .86) 62%,transparent 88%);
}
body[data-section="games"] .games-showcase-images img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 1rem 1.5rem rgb(0 0 0 / .4));
  opacity:0;
  transform:scale(.96);
  mask-image:radial-gradient(ellipse at 50% 48%,#000 22%,rgb(0 0 0 / .72) 38%,transparent 70%);
  transition:opacity 780ms ease,transform 1.1s cubic-bezier(.2,.7,.2,1);
}
body[data-section="games"] .games-showcase-images img.is-active { opacity:1; transform:scale(1); }
body[data-section="games"] .games-showcase-shade {
  position:absolute;
  z-index:1;
  inset:auto 0 0;
  height:62%;
  background:linear-gradient(0deg,rgb(3 13 22 / .84),rgb(3 13 22 / .36) 48%,transparent);
  pointer-events:none;
}
body[data-section="games"] .games-showcase-copy {
  position:absolute;
  z-index:2;
  right:0;
  bottom:.6rem;
  left:0;
  display:grid;
  justify-items:start;
  gap:.4rem;
  padding:1rem clamp(.8rem,2vw,1.5rem) .55rem;
  color:#f8fbfd;
}
body[data-section="games"] .games-showcase-label {
  color:#ffd76f;
  font-size:.66rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body[data-section="games"] .games-showcase-copy h2 {
  max-width:24ch;
  margin:0;
  color:#fff;
  font-family:var(--font-serif);
  font-size:clamp(1.35rem,2.4vw,2.1rem);
  line-height:1.05;
  text-shadow:0 2px 14px rgb(0 0 0 / .55);
}
body[data-section="games"] .games-showcase-actions { display:flex; align-items:center; gap:.5rem; }
body[data-section="games"] .games-showcase-actions .btn { min-height:2.65rem; margin:0; padding:.55rem .9rem; }
body[data-section="games"] .games-showcase-next,
body[data-section="games"] .games-showcase-pause {
  display:grid;
  width:2.65rem;
  height:2.65rem;
  place-items:center;
  border:1px solid rgb(255 255 255 / .52);
  border-radius:50%;
  background:rgb(8 20 30 / .64);
  color:#fff;
  font:700 1.2rem/1 var(--font-sans);
  cursor:pointer;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
body[data-section="games"] .games-showcase-next:hover,
body[data-section="games"] .games-showcase-pause:hover { background:color-mix(in srgb,var(--game-accent) 70%,#08141e); }
body[data-section="games"] .games-showcase-next:focus-visible,
body[data-section="games"] .games-showcase-pause:focus-visible,
body[data-section="games"] .games-showcase-actions .btn:focus-visible { outline:3px solid #ffe189; outline-offset:3px; }
body[data-section="games"] .games-showcase-next:disabled { cursor:wait; opacity:.65; }

body[data-section="games"] .games-genre-ribbon {
  position:sticky;
  top:4.25rem;
  z-index:25;
  margin-top:.45rem;
  padding:.55rem .65rem .65rem;
  border:1px solid color-mix(in srgb,var(--game-accent) 25%,var(--border));
  border-radius:1rem;
  background:color-mix(in srgb,var(--surface) 84%,transparent);
  box-shadow:0 .6rem 1.7rem rgb(9 22 32 / .1);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
  scroll-margin-top:4.75rem;
}
body[data-section="games"] .games-genre-ribbon a { min-height:2.65rem; }
body[data-section="games"] .games-genre-ribbon a.is-active { border-color:var(--game-accent); background:var(--game-accent); color:var(--on-accent); }
body[data-section="games"] .games-all-section,
body[data-section="games"] .games-all-section .g-cat { scroll-margin-top:8.5rem; }
body[data-section="games"] .games-all-section > .section-title-row { display:none; }

/* Compact, uniform game tiles: artwork stays prominent and cards align across each grid row. */
body[data-section="games"] .games-all-section .game-grid { align-items:stretch; grid-auto-rows:1fr; }
body[data-section="games"] .games-all-section .favorite-card-wrap { display:flex; min-width:0; height:100%; }
body[data-section="games"] .games-all-section .game-card { display:flex; flex-direction:column; width:100%; height:100%; min-width:0; }
body[data-section="games"] .games-all-section .game-card .gc-art,
body[data-section="games"] .games-all-section .game-card.is-custom-cover .gc-art { flex:0 0 auto; aspect-ratio:4/5; }
body[data-section="games"] .games-all-section .game-card .gc-body {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto;
  align-content:center;
  flex:1 0 auto;
  min-height:3.35rem;
  gap:.18rem .4rem;
  padding:.4rem .52rem .48rem;
}
body[data-section="games"] .games-all-section .game-card .gc-badges { grid-column:1/-1; min-height:0; gap:.25rem; }
body[data-section="games"] .games-all-section .game-card .gc-title { display:-webkit-box; grid-column:1; min-height:0; overflow:hidden; font-size:.87rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
body[data-section="games"] .games-all-section .game-card .card-meta { grid-column:2; font-size:.68rem; }

@media(max-width:899px) {
  body[data-section="tools"] .tools-directory .catalog-layout { grid-template-columns:minmax(0,1fr); }
  body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar:modal {
    position:fixed;
    inset:0 auto 0 0;
    width:min(20rem,88vw);
    max-width:88vw;
    height:100dvh;
    max-height:100dvh;
    margin:0;
  }
  body[data-section="games"] .games-genre-ribbon { top:3.9rem; }
}
@media(max-width:640px) {
  body[data-section="games"] .games-directory-hero { display:grid; grid-template-columns:minmax(0,1fr); min-height:33rem; align-content:start; gap:.35rem; }
  body[data-section="games"] .games-directory-copy { grid-column:1; max-width:24rem; }
  body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2.45rem,11vw,3.35rem); }
  body[data-section="games"] .games-showcase { grid-column:1; width:100%; height:14rem; margin-top:.3rem; }
  body[data-section="games"] .games-showcase-copy { bottom:.15rem; }
  body[data-section="games"] .games-showcase-copy h2 { font-size:1.4rem; }
  body[data-section="games"] .games-genre-ribbon { top:3.9rem; gap:.35rem; padding:.45rem .5rem .55rem; }
  body[data-section="games"] .games-all-section .game-card .gc-body { min-height:3.5rem; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-section="games"] .games-showcase-images img { transition:none; }
  body[data-section="games"] .games-genre-ribbon { scroll-behavior:auto; }
}

/* Keep every Tools category visible in the sticky Browse rail without an inner scrollbar. */
body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar {
  max-height:none;
  overflow:visible;
  scrollbar-gutter:auto;
}
body[data-section="tools"] .tools-directory .browse-sidebar-head {
  gap:.3rem;
  padding:.1rem .15rem .35rem;
}
body[data-section="tools"] .tools-directory .browse-sidebar-head h2 { font-size:.62rem; }
body[data-section="tools"] .tools-directory .browse-family-switch { gap:.25rem; }
body[data-section="tools"] .tools-directory .browse-family-switch a {
  min-height:1.65rem;
  padding:.18rem .38rem;
  font-size:.67rem;
}
body[data-section="tools"] .tools-directory .browse-tree { gap:.12rem; padding-top:.3rem; }
body[data-section="tools"] .tools-directory .browse-tree-heading { margin:0; }
body[data-section="tools"] .tools-directory .browse-tree-heading>a,
body[data-section="tools"] .tools-directory .browse-tree-group a,
body[data-section="tools"] .tools-directory .browse-tree-daily {
  min-height:1.75rem;
  padding:.13rem .3rem;
  font-size:.72rem;
  line-height:1.12;
}
body[data-section="tools"] .tools-directory .browse-tree-group ul { gap:0; }
body[data-section="tools"] .tools-directory .browse-tree-group a { gap:.38rem; }
body[data-section="tools"] .tools-directory .browse-tree-icon {
  display:grid;
  flex:0 0 1rem;
  place-items:center;
  width:1rem;
  height:1rem;
  color:var(--section-accent);
}
body[data-section="tools"] .tools-directory .browse-tree-icon .ff-icon { width:.92rem; height:.92rem; }
@media(max-width:639px) {
  body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar:not(:modal) { display:none; }
  body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar:modal { max-height:calc(100dvh - 2rem); overflow:auto; }
  body[data-section="tools"] .tools-directory .browse-sidebar:modal .browse-tree-group a { min-height:2.55rem; padding:.4rem .55rem; }
}

/* Keep category banners compact while leaving their actual illustrations visible. */
body[data-section="tools"] .tools-directory .tool-category-banner>a {
  min-height:3rem;
  height:3rem;
  padding:.15rem .9rem;
}
body[data-section="tools"] .tools-directory .tool-category-banner .catalog-category-title {
  position:relative;
  z-index:2;
  max-width:62%;
  font-size:clamp(1.05rem,2vw,1.35rem);
  line-height:1.05;
}
body[data-section="tools"] .tools-directory .tool-category-banner .catalog-category-art {
  width:36%;
  height:100%;
  opacity:.7;
}
body[data-section="tools"] .tools-directory .tool-category-banner .catalog-category-art>.tool-visual-preview {
  width:min(96%,22rem);
  min-height:0;
  height:2.75rem;
  transform:scale(1);
}
body[data-section="tools"] .tools-directory .tool-category-banner .catalog-category-art .tool-illustration { height:100%; }
body[data-section="games"] .games-directory-hero { grid-template-columns:minmax(0,.9fr) minmax(20rem,1.1fr); min-height:25rem; }
body[data-section="games"] .games-showcase { height:21.5rem; }
body[data-section="games"] .games-showcase-images { mask-image:radial-gradient(ellipse at 52% 43%,#000 47%,rgb(0 0 0 / .94) 68%,transparent 100%); }
body[data-section="games"] .games-showcase-images img {
  transform:scale(1.03);
  mask-image:linear-gradient(180deg,#000 0%,#000 54%,rgb(0 0 0 / .86) 77%,transparent 100%);
  transition:opacity 520ms ease,transform 760ms cubic-bezier(.2,.7,.2,1);
}
body[data-section="games"] .games-showcase-images img.is-active { transform:scale(1.1); }
body[data-section="games"] .games-showcase-shade {
  height:72%;
  background:linear-gradient(0deg,rgb(3 13 22 / .97) 0%,rgb(3 13 22 / .76) 36%,rgb(3 13 22 / .34) 66%,transparent 100%);
}
body[data-section="games"] .games-showcase-previous,
body[data-section="games"] .games-showcase-next,
body[data-section="games"] .games-showcase-pause { width:2.45rem; height:2.45rem; }
body[data-section="games"] .games-showcase-previous {
  display:grid;
  flex:0 0 2.45rem;
  place-items:center;
  border:1px solid rgb(255 255 255 / .52);
  border-radius:50%;
  background:rgb(8 20 30 / .64);
  color:#fff;
  font:700 1.2rem/1 var(--font-sans);
  cursor:pointer;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
body[data-section="games"] .games-showcase-previous:hover,
body[data-section="games"] .games-showcase-next:hover,
body[data-section="games"] .games-showcase-pause:hover { background:color-mix(in srgb,var(--game-accent) 70%,#08141e); }
body[data-section="games"] .games-showcase-previous:focus-visible,
body[data-section="games"] .games-showcase-previous:focus-visible { outline:3px solid #ffe189; outline-offset:3px; }
body[data-section="games"] .games-showcase-previous:disabled { cursor:wait; opacity:.65; }
body[data-section="games"] .games-genre-ribbon {
  top:3.825rem;
  padding:.42rem .58rem .48rem;
  scroll-margin-top:4.35rem;
}
body[data-section="games"] .games-genre-ribbon a { min-height:2.4rem; padding:.44rem .72rem; }
body[data-section="games"] .games-all-section,
body[data-section="games"] .games-all-section .g-cat { scroll-margin-top:7.8rem; }
body[data-section="games"] .game-category-banner { min-height:3.3rem; }
body[data-section="games"] .game-category-banner>a {
  position:relative;
  min-height:3.3rem;
  gap:.55rem;
  padding:.22rem .8rem;
}
body[data-section="games"] .game-category-banner .catalog-category-title { position:relative; z-index:2; }
body[data-section="games"] .game-category-banner .catalog-category-title { flex:0 0 auto; max-width:none; font-size:1.05rem; line-height:1.1; }
body[data-section="games"] .game-category-banner .catalog-category-art {
  inset:0 0 0 auto;
  display:flex;
  align-items:stretch;
  justify-content:flex-end;
  gap:.32rem;
  width:32%;
  height:100%;
  margin:0;
  opacity:.62;
  mask-image:linear-gradient(90deg,transparent 0%,#000 36%);
}
body[data-section="games"] .game-category-banner .catalog-category-art img {
  width:32%;
  height:100%;
  max-height:none;
  border-radius:.35rem;
  object-fit:cover;
}
body[data-section="games"] .browse-family-switch .browse-daily-head { gap:.22rem; }
body[data-section="games"] .browse-family-switch .browse-daily-head .ff-icon { width:.88rem; height:.88rem; }
body[data-section="tools"] .browse-family-switch .browse-daily-head { gap:.2rem; }
body[data-section="tools"] .browse-family-switch .browse-daily-head .ff-icon { width:.82rem; height:.82rem; }
@media(max-width:899px) {
  body[data-section="games"] .games-directory-hero { grid-template-columns:minmax(0,1fr) minmax(17rem,.95fr); min-height:23rem; }
  body[data-section="games"] .games-showcase { height:19rem; }
  body[data-section="games"] .games-genre-ribbon { top:3.51rem; }
}
@media(max-width:640px) {
  body[data-section="games"] .games-directory-hero { min-height:33rem; }
  body[data-section="games"] .games-showcase { height:16rem; }
  body[data-section="games"] .games-showcase-images img { transition:opacity 520ms ease,transform 760ms cubic-bezier(.2,.7,.2,1); }
  body[data-section="games"] .games-genre-ribbon { top:3.51rem; gap:.35rem; padding:.38rem .45rem .42rem; }
  body[data-section="games"] .games-genre-ribbon a { min-height:2.38rem; padding:.4rem .58rem; }
  body[data-section="games"] .game-category-banner .catalog-category-art { width:28%; opacity:.42; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-section="games"] .games-showcase-images img { transition:none; }
  .theme-toggle-track,.theme-toggle-thumb { transition:none; }
}

/* Keep the Tools Browse rail identical on its index and every detail page. */
body[data-section="tools"] .catalog-layout { grid-template-columns:minmax(10.5rem,12rem) minmax(0,1fr); gap:clamp(.9rem,1.6vw,1.4rem); }
body[data-section="tools"] .tools-directory .catalog-layout > .browse-sidebar,
body[data-section="tools"] .catalog-layout > .browse-sidebar { position:sticky; inset:auto; top:4.75rem; left:0; align-self:start; box-sizing:border-box; width:100%; max-height:calc(100vh - 5.5rem); margin:0; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; }
body[data-section="tools"] .site-header[data-scrolled="true"],
body[data-section="games"] .site-header[data-scrolled="true"],
body[data-section="daily"] .site-header[data-scrolled="true"] { background-color:color-mix(in srgb,var(--section-bg) 72%,transparent); box-shadow:0 8px 24px rgb(10 20 24 / .12); backdrop-filter:blur(22px) saturate(155%); -webkit-backdrop-filter:blur(22px) saturate(155%); }
body[data-section="tools"] .site-header .header-row>.search input,
body[data-section="games"] .site-header .header-row>.search input,
body[data-section="daily"] .site-header .header-row>.search input { min-height:2.3rem; }
body[data-section="daily"] .site-header .nav-family-link { min-height:2.23rem; }
body[data-section="daily"] .daily-hero { min-height:20rem; padding:clamp(1.6rem,4vw,3.2rem); }
body[data-section="games"] .games-showcase-images { mask-image:radial-gradient(ellipse at center,#000 24%,rgb(0 0 0 / .92) 45%,rgb(0 0 0 / .5) 69%,transparent 93%); }
body[data-section="games"] .games-showcase-images img { mask-image:radial-gradient(ellipse at center,#000 25%,rgb(0 0 0 / .92) 45%,rgb(0 0 0 / .48) 70%,transparent 93%); transition:opacity 850ms ease,transform 1.1s cubic-bezier(.2,.7,.2,1); }
body[data-section="games"] .games-showcase-previous { display:inline-flex; align-items:center; justify-content:center; gap:.38rem; width:auto; min-width:6.2rem; height:2.45rem; padding:.4rem .72rem; border-radius:999px; font-size:.76rem; font-weight:800; }
body[data-section="daily"] .daily-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
body[data-section="daily"] .daily-card,
body[data-section="daily"] .daily-card:first-child { min-height:0; gap:.6rem; padding:.8rem; }
body[data-section="daily"] .daily-illustration { aspect-ratio:16/7.04; }
body[data-section="daily"] .daily-card .daily-illustration { flex:none; }
body[data-section="daily"] .daily-progress-dashboard .section-title-row .daily-panel-kicker { display:none; }
body[data-section="daily"] .daily-motivational-banner p { display:none; }
@media(max-width:1200px) and (min-width:981px) { body[data-section="daily"] .daily-hero { min-height:23.2rem; } }
@media(max-width:980px) {
  body[data-section="daily"] .daily-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="daily"] .daily-hero { min-height:23.2rem; }
}
@media(max-width:680px) {
  body[data-section="daily"] .daily-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="daily"] .daily-hero { min-height:22.4rem; }
}
@media(max-width:899px) {
  body[data-section="tools"] .catalog-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:640px) {
  body[data-section="games"] .games-directory-hero { grid-template-columns:minmax(0,1fr); align-content:start; gap:.65rem; min-height:0; padding:1rem; }
  body[data-section="games"] .games-directory-copy { grid-column:1; max-width:none; }
  body[data-section="games"] .games-showcase { grid-column:1; width:100%; height:16rem; min-width:0; }
  body[data-section="games"] .games-all-section .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
}

@media(max-width:639px) {
  body[data-section="tools"] .tools-directory .tool-cat > .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="tools"] .tools-directory .favorite-card-wrap .tool-visual-category { display:none; }
  body[data-section="daily"] .daily-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-section="daily"] .daily-card { gap:.45rem; padding:.65rem; }
  body[data-section="daily"] .daily-illustration { height:6rem; margin:-.65rem -.65rem .1rem; }
  body[data-section="daily"] .daily-illustration svg { max-height:5.7rem; }
  body[data-section="daily"] .daily-card-top { gap:.3rem; }
  body[data-section="daily"] .daily-card-kind { font-size:.56rem; letter-spacing:.1em; }
  body[data-section="daily"] .daily-status { padding:.22rem .4rem; font-size:.58rem; }
  body[data-section="daily"] .daily-card h3 { font-size:clamp(1.05rem,5vw,1.3rem); }
  body[data-section="daily"] .daily-card > p { font-size:.72rem; line-height:1.35; }
  body[data-section="daily"] .daily-card-meta { padding-top:.35rem; font-size:.62rem; }
  body[data-section="daily"] .daily-card .btn-daily-card { min-height:2.3rem; padding:.4rem .5rem; font-size:.7rem; }
  body[data-section="games"] .games-genre-ribbon { position:sticky; top:3.51rem; z-index:30; }
}

/* Compact the three section heroes while preserving their complete content. */
body[data-section="tools"] .tools-landing-hero { min-height:19.6rem; padding:1.25rem; }
body[data-section="tools"] .tools-landing-hero h1 { margin:.25rem 0 .6rem; font-size:clamp(2.5rem,4.2vw,3.5rem); }
body[data-section="games"] .games-directory-hero { min-height:17.75rem; padding:1.5rem; }
body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2.4rem,5vw,4rem); }
body[data-section="games"] .games-showcase { height:14.75rem; }
body[data-section="daily"] .daily-hero { min-height:15rem; padding:2.375rem; }
body[data-section="daily"] .daily-hero h1 { margin:.15rem 0 .45rem; font-size:clamp(2rem,3.5vw,2.6rem); }
body[data-section="daily"] .daily-hero .lead { font-size:.95rem; line-height:1.45; }
@media(max-width:980px) {
  body[data-section="tools"] .tools-landing-hero { min-height:20.3rem; padding:1rem; }
  body[data-section="tools"] .tools-landing-hero h1 { font-size:clamp(2rem,7vw,3rem); }
  body[data-section="games"] .games-directory-hero { min-height:17.5rem; padding:1.1rem; }
  body[data-section="games"] .games-showcase { height:13rem; }
  body[data-section="daily"] .daily-hero { min-height:17.4rem; padding:1.25rem; }
  body[data-section="daily"] .daily-hero h1 { font-size:clamp(1.85rem,5.3vw,2.3rem); }
}
@media(max-width:640px) {
  body[data-section="games"] .games-directory-hero { min-height:19.8rem; padding:.9rem; }
  body[data-section="games"] .games-directory-copy h1 { font-size:clamp(2rem,8vw,2.7rem); }
  body[data-section="games"] .games-showcase { height:11.5rem; }
  body[data-section="daily"] .daily-hero { min-height:16.8rem; padding:1rem; }
}
@media(min-width:900px) {
  .site-header .logo { margin-inline-start:0; }
  body[data-section="tools"] .tool-page { padding-top:1.35rem; }
  body[data-section="tools"] .tools-directory .catalog-layout>.browse-sidebar:not(:modal),
  body[data-section="tools"] .catalog-layout>.browse-sidebar:not(:modal) { height:min(31.4rem,calc(100vh - 5.5rem)); max-height:calc(100vh - 5.5rem); margin:0; padding:.7rem .55rem; }
  body[data-section="tools"] .tools-directory .browse-sidebar-head,
  body[data-section="tools"] .browse-sidebar-head { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; padding:.15rem .2rem .55rem; }
  body[data-section="tools"] .tools-directory .browse-sidebar-head h2,
  body[data-section="tools"] .browse-sidebar-head h2 { flex:0 0 auto; margin:0; }
  body[data-section="tools"] .tools-directory .browse-family-switch,
  body[data-section="tools"] .browse-family-switch { margin-left:auto; }
}

/* The three section heroes use the requested 250px desktop and mobile height. */
body[data-section="tools"] .tools-landing-hero,
body[data-section="games"] .games-directory-hero,
body[data-section="daily"] .daily-hero{box-sizing:border-box;height:15.625rem;min-height:15.625rem;max-height:15.625rem}
body[data-section="tools"] .tools-landing-hero{padding:1rem 1.4rem}
body[data-section="tools"] .tools-landing-hero h1{margin:.15rem 0 .45rem;font-size:clamp(2.2rem,4vw,3.15rem);line-height:.96}
body[data-section="tools"] .tools-landing-hero .lead{font-size:.92rem;line-height:1.4}
body[data-section="games"] .games-directory-hero{padding:1rem 1.35rem}
body[data-section="games"] .games-directory-copy h1{font-size:clamp(2.25rem,4vw,3.35rem);line-height:.96}
body[data-section="games"] .games-directory-copy .btn{margin-top:.8rem}
body[data-section="games"] .games-showcase{height:12.5rem}
body[data-section="games"] .games-showcase-copy{gap:.28rem;padding:.65rem .85rem .45rem}
body[data-section="games"] .games-showcase-copy h2{font-size:clamp(1.2rem,2vw,1.6rem)}
body[data-section="games"] .games-showcase-actions .btn{min-height:2.25rem;padding:.4rem .7rem}
body[data-section="games"] .games-showcase-next,body[data-section="games"] .games-showcase-pause{width:2.25rem;height:2.25rem}
body[data-section="games"] .games-showcase-previous{height:2.25rem;min-width:5.4rem;font-size:.68rem}
body[data-section="daily"] .daily-hero{padding:.75rem 1.1rem;background:transparent}
body[data-section="daily"] .daily-hero-copy{z-index:2}
body[data-section="daily"] .daily-today-date{margin:0 0 .25rem;font-size:.7rem}
body[data-section="daily"] .daily-hero h1{margin:.1rem 0 .32rem;font-size:clamp(1.65rem,2.7vw,1.95rem);line-height:.92}
body[data-section="daily"] .daily-hero .lead{max-width:44ch;margin:0;font-size:.78rem;line-height:1.32}
body[data-section="daily"] .daily-hero .btn{min-height:2rem;margin-top:.35rem;padding:.3rem .62rem;font-size:.72rem}
body[data-section="daily"] .daily-hero-art{z-index:0}
body[data-section="daily"] .daily-hero-art img{object-position:68% center}
body[data-section="daily"] .daily-hero::after{z-index:1}

/* Keep the complete Tools tree visible in the sticky Browse rail. */
@media(min-width:900px){
  body[data-section="tools"] .tools-directory .catalog-layout>.browse-sidebar:not(:modal){height:auto;min-height:0;max-height:none;overflow:visible;scrollbar-gutter:auto;padding:.5rem .45rem}
  body[data-section="tools"] .tools-directory .browse-sidebar-head{gap:.2rem;padding:.05rem .1rem .3rem}
  body[data-section="tools"] .tools-directory .browse-family-switch{gap:.2rem}
  body[data-section="tools"] .tools-directory .browse-family-switch a{min-height:1.5rem;padding:.12rem .3rem;font-size:.62rem}
  body[data-section="tools"] .tools-directory .browse-tree{gap:.04rem;padding-top:.12rem}
  body[data-section="tools"] .tools-directory .browse-tree-heading>a,
  body[data-section="tools"] .tools-directory .browse-tree-group a,
  body[data-section="tools"] .tools-directory .browse-tree-daily{min-height:1.58rem;padding:.08rem .25rem;font-size:.67rem;line-height:1.05}
  body[data-section="tools"] .tools-directory .browse-tree-icon{width:.9rem;height:.9rem;flex-basis:.9rem}
  body[data-section="tools"] .tools-directory .browse-tree-icon .ff-icon{width:.82rem;height:.82rem}
}

/* Tool catalog cards and their labels are scaled down by ten percent. */
body[data-section="tools"] .tools-directory .tool-visual-card{width:90%;justify-self:center;font-size:.9em}
body[data-section="tools"] .tools-directory .tool-visual-frame{min-height:8.1rem}
body[data-section="tools"] .tools-directory .tool-visual-copy{min-height:3.825rem;padding:.81rem .9rem .9rem}
body[data-section="tools"] .tools-directory .tool-visual-title{font-size:.9rem}

@media(max-width:899px){
  body[data-section="tools"] .tools-landing-hero,body[data-section="daily"] .daily-hero{padding:.9rem}
  body[data-section="tools"] .tools-landing-hero h1{font-size:clamp(1.8rem,6vw,2.45rem)}
  body[data-section="daily"] .daily-hero h1{font-size:clamp(1.65rem,4vw,1.9rem)}
  body[data-section="daily"] .daily-hero .lead{max-width:37ch;font-size:.78rem}
  body[data-section="games"] .games-directory-hero{padding:.85rem 1rem}
  body[data-section="games"] .games-directory-copy h1{font-size:clamp(2rem,5vw,2.75rem)}
  body[data-section="games"] .games-showcase{height:11.75rem}
}
@media(max-width:640px){
  body[data-section="tools"] .tools-landing-hero{padding:.8rem}
  body[data-section="tools"] .tools-landing-hero h1{font-size:clamp(1.7rem,8vw,2rem)}
  body[data-section="tools"] .tools-landing-hero .lead{font-size:.76rem}
  body[data-section="tools"] .tools-landing-hero .tools-quick-links{gap:.28rem}
  body[data-section="tools"] .tools-landing-hero .tools-quick-links a{min-height:1.8rem;padding:.28rem .45rem;font-size:.62rem}
  body[data-section="games"] .games-directory-hero{display:block;padding:.75rem}
  body[data-section="games"] .games-directory-copy{position:relative;z-index:3;max-width:12rem}
  body[data-section="games"] .games-directory-copy h1{font-size:1.8rem}
  body[data-section="games"] .games-directory-copy .btn{min-height:2rem;margin-top:.4rem;padding:.3rem .55rem;font-size:.68rem}
  body[data-section="games"] .games-showcase{position:absolute;inset:0;width:100%;height:100%;margin:0}
  body[data-section="games"] .games-showcase-copy{right:.3rem;bottom:.25rem;left:.3rem;display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .4rem;padding:.4rem}
  body[data-section="games"] .games-showcase-label{font-size:.56rem}
  body[data-section="games"] .games-showcase-copy h2{max-width:12ch;font-size:1rem}
  body[data-section="games"] .games-showcase-actions{gap:.25rem}
  body[data-section="games"] .games-showcase-actions .btn{min-height:1.9rem;padding:.28rem .48rem;font-size:.64rem}
  body[data-section="games"] .games-showcase-next,body[data-section="games"] .games-showcase-pause{width:1.9rem;height:1.9rem;font-size:.95rem}
  body[data-section="games"] .games-showcase-previous{height:1.9rem;min-width:4.55rem;padding:.25rem .4rem;font-size:.6rem}
  body[data-section="daily"] .daily-hero{padding:.8rem}
  body[data-section="daily"] .daily-hero h1{font-size:1.58rem}
  body[data-section="daily"] .daily-hero .lead{max-width:30ch;font-size:.7rem;line-height:1.28}
  body[data-section="daily"] .daily-hero .btn{min-height:2rem;margin-top:.3rem;padding:.3rem .55rem;font-size:.68rem}
  body[data-section="daily"] .daily-hero-art img{object-position:78% center}
  body[data-section="daily"] .daily-hero::after{background:linear-gradient(90deg,rgba(251,247,238,.94),rgba(251,247,238,.78) 55%,rgba(251,247,238,.2)),linear-gradient(0deg,rgba(251,247,238,.32),transparent 70%)}
  body[data-section="tools"] .tools-directory .tool-visual-card{width:94%}
}
@media(prefers-reduced-motion:reduce){body[data-section="tools"] main#main::before,body[data-section="games"] main#main::before,body[data-section="daily"] main#main::before{filter:none}}

/* Keep the horizontal Games genre bar attached beneath the glass header. */
body[data-section="games"] .games-genre-ribbon{position:sticky;top:3.44rem;z-index:29;margin-top:.35rem;border:1px solid color-mix(in srgb,var(--section-border) 72%,transparent);border-radius:1rem;background:color-mix(in srgb,var(--section-surface) 48%,transparent);backdrop-filter:blur(19px) saturate(145%);-webkit-backdrop-filter:blur(19px) saturate(145%)}
@media(max-width:899px){body[data-section="games"] .games-genre-ribbon{top:var(--mobile-site-header-height,6.5rem)}}
body[data-section="games"] .games-genre-ribbon>a{background-color:var(--section-surface);opacity:1;backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-section="games"] .games-genre-ribbon>a.is-active,body[data-section="games"] .games-genre-ribbon>a:hover{background-color:var(--game-accent)}
