/* RidaGames "sticker arcade" theme for the section pages (Games, Store, Stories, News).
   Loaded after each page's own <style>, so it re-points the shared tokens and restyles the
   shared skeleton (.nav, .page-header, cards, footer). Bold grotesque type, ink outlines,
   hard offset shadows and tilted sticker badges. Each section has its own colour, set by a
   body class: yt-games (violet), yt-store (orange/yellow), yt-stories (pink), yt-news (mint). */

:root {
  --ink: #15121f;
  --muted: #5b5670;
  --bg-outer: #f3efff;
  --bg: transparent;
  --panel: #ffffff;
  --line: #ddd6ef;
  --serif: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pop-yellow: #ffd23f;
  --pop-violet: #6d4aff;
  --pop-pink: #ff4f9a;
  --pop-mint: #19c37d;
  --pop-orange: #ff6b1a;
  --edge: 2.5px solid var(--ink);
  --lift: 5px 5px 0 var(--ink);
}
body.yt-games   { --accent: #6d4aff; --accent-ink: #fff; --tint: #e9e3ff; --tint-2: #ffd23f; --accent-soft: #e9e3ff; }
body.yt-store   { --accent: #e8590c; --accent-ink: #fff; --tint: #fff1bf; --tint-2: #ff6b1a; --accent-soft: #ffe7a3; }
body.yt-stories { --accent: #e6337f; --accent-ink: #fff; --tint: #ffe0ee; --tint-2: #6d4aff; --accent-soft: #ffd0e5; }
body.yt-news    { --accent: #0f9e63; --accent-ink: #fff; --tint: #d6f7e8; --tint-2: #ff4f9a; --accent-soft: #c4f0dc; }

/* ---------- Page canvas: dotted paper with colour blobs ---------- */
html body.yt {
  background:
    radial-gradient(600px 420px at 8% 4%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(560px 420px at 96% 30%, color-mix(in srgb, var(--tint-2) 22%, transparent), transparent 70%),
    radial-gradient(rgba(21, 18, 31, 0.13) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg-outer);
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--ink);
  font-family: var(--sans);
}
.yt .frame { max-width: 1280px; padding: 18px clamp(14px, 3vw, 28px) 28px; }
.yt .sheet { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.yt ::selection { background: var(--pop-yellow); color: var(--ink); }
.yt a:focus-visible, .yt button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav: a chunky pill bar ---------- */
.yt .nav {
  position: sticky; top: 10px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: var(--edge); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 8px 8px 20px; margin-bottom: 18px; border-bottom: var(--edge);
}
.yt .brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.yt .brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); }
.yt .brand-name::after { content: "."; color: var(--accent); }
.yt .brand-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--tint); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px; transform: rotate(-3deg);
}
.yt .nav-links { display: flex; gap: 4px; font-size: 0.92rem; justify-content: flex-end; }
.yt .nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 9px 15px; border-radius: 999px; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.yt .nav-links a:hover { background: var(--tint); border-color: var(--ink); color: var(--ink); }
.yt .nav-links a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); }

.yt .breadcrumb { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0 0 14px 6px; }
.yt .breadcrumb a:hover { color: var(--accent); }

/* ---------- Page header: a big colour block with a sticker ---------- */
.yt .page-header {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--tint); border: var(--edge); border-radius: 30px; box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(26px, 5vw, 52px); margin-bottom: 34px; border-bottom: var(--edge);
}
.yt .page-header::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
}
.yt .page-header::after {
  content: var(--sticker, "🎮"); position: absolute; right: clamp(16px, 5vw, 60px); top: 50%; transform: translateY(-50%) rotate(10deg);
  font-size: clamp(4rem, 12vw, 8.5rem); line-height: 1; filter: drop-shadow(5px 6px 0 rgba(21, 18, 31, .9)); z-index: -1;
}
.yt-games .page-header { --sticker: "🕹️"; }
.yt-stories .page-header { --sticker: "📖"; }
.yt-news .page-header { --sticker: "📣"; }
.yt .kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; transform: rotate(-2deg);
}
.yt .kicker .dot { background: var(--pop-yellow); width: 8px; height: 8px; }
.yt .page-header h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.045em;
  margin: 0 0 16px; max-width: 13ch; text-wrap: balance;
}
.yt .page-desc { color: #2f2a3d; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; max-width: 52ch; }

/* ---------- Shared card treatment ---------- */
.yt .game-card, .yt .news-card, .yt .story-card, .yt .feature-box, .yt .editorial-note,
.yt .cat, .yt .kit, .yt .tip, .yt .trust > *, .yt article .game {
  background: #fff; border: var(--edge); border-radius: 22px; box-shadow: var(--lift);
  transition: transform .16s ease, box-shadow .16s ease;
}
.yt .game-card:hover, .yt .news-card:hover, .yt .story-card:hover, .yt .cat:hover, .yt .kit:hover, .yt article .game:hover,
.yt .game-card:focus-visible, .yt .news-card:focus-visible, .yt .story-card:focus-visible {
  transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent);
}
.yt .game-card:active, .yt .news-card:active, .yt .story-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* Titles everywhere get the chunky display face */
.yt .game-title, .yt .news-title, .yt .story-title, .yt .feature-box h3, .yt .seo-article h2, .yt .faq h2,
.yt .section-head h2, .yt .editorial-note h2, .yt .editorial-note h3, .yt article h1, .yt article h2 {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em;
}

/* Sticker badges */
.yt .game-badge, .yt .news-badge .news-new, .yt .news-new {
  background: var(--pop-yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 800;
  border-radius: 999px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- Games page ---------- */
.yt .games-grid { gap: 26px; }
.yt .game-card { padding: 12px; }
.yt .game-thumb { border: 2px solid var(--ink); border-radius: 14px; }
.yt .game-title { font-size: 1.45rem; }
.yt .game-genre { color: var(--accent); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.yt .game-summary { color: #3c3650; }
.yt .game-meta { border-top: 2px dashed var(--line); font-weight: 600; }
.yt .game-play-cta { background: var(--ink); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 800; transition: background .15s; }
.yt .game-card:hover .game-play-cta { background: var(--accent); }
.yt .stat-chip { border: 2px solid var(--ink); background: var(--tint); font-weight: 800; }
.yt .stat-chip.top { background: var(--pop-yellow); color: var(--ink); }
.yt .seo-article { border-top: 0; }
.yt .feature-box h3 { font-size: 1.15rem; }
.yt .faq details { background: #fff; border: var(--edge); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
.yt .faq summary { font-weight: 800; cursor: pointer; }

/* Games page: filter chips + search (added by the page) */
.yt .game-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 26px; }
.yt .game-tools input {
  flex: 1 1 220px; min-width: 0; font: 600 0.95rem var(--sans); color: var(--ink); background: #fff;
  border: var(--edge); border-radius: 999px; padding: 11px 18px; box-shadow: 3px 3px 0 var(--ink); outline: none;
}
.yt .game-tools input:focus { box-shadow: 3px 3px 0 var(--accent); }
.yt .game-tools button {
  appearance: none; font: 800 0.85rem var(--sans); color: var(--ink); background: #fff; border: var(--edge); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s;
}
.yt .game-tools button:hover { transform: translate(-1px, -1px); }
.yt .game-tools button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.yt .no-games { display: none; font-weight: 700; color: var(--muted); padding: 12px 6px 30px; }
.yt article[hidden] { display: none; }

/* ---------- Store page ---------- */
.yt .promo { border: var(--edge); box-shadow: 7px 7px 0 var(--ink); border-radius: 30px; }
.yt .promo h1, .yt .promo h2 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.045em; }
.yt .btn-primary { background: var(--pop-yellow) !important; color: var(--ink) !important; border: var(--edge) !important; box-shadow: 4px 4px 0 var(--ink) !important; font-weight: 800; }
.yt .btn-ghost { border: 2.5px solid #fff !important; font-weight: 800; }
.yt .trust > * { box-shadow: 3px 3px 0 var(--ink); }
.yt .chip { border: var(--edge) !important; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.yt .chip[aria-pressed="true"], .yt .chip.active { background: var(--ink) !important; color: #fff !important; }
.yt .cat { overflow: hidden; }
.yt .cat-art { border-bottom: var(--edge); }
.yt .cat-cta, .yt .kit .amz, .yt .cat .amz { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; }
.yt .cat-tags span, .yt .cat-tags i, .yt .cat-tags b { border: 2px solid var(--ink); font-weight: 800; }
.yt .disclosure { border: 2px dashed var(--ink); border-radius: 16px; }

/* ---------- Stories page ---------- */
.yt .stories-list { gap: 26px; }
.yt .story-cover-box { border: var(--edge) !important; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg); }
.yt .story-card:nth-child(even) .story-cover-box { transform: rotate(1.5deg); }
.yt .story-glyph { filter: drop-shadow(2px 2px 0 var(--ink)); }
.yt .story-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.yt .story-excerpt { color: #3c3650; }
.yt .story-topline { font-weight: 800; letter-spacing: 0.08em; }
.yt .story-action { display: inline-block; background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 800; }
.yt .story-card:hover .story-action { background: var(--accent); }
.yt .editorial-note { background: var(--pop-yellow); }

/* ---------- News page + articles ---------- */
.yt .news-card { padding: 22px; }
.yt .news-card.featured { padding: 14px; background: var(--tint); }
.yt .news-card.featured img { border: var(--edge); }
.yt .news-badge { font-weight: 800; color: var(--accent); }
.yt .news-footer { border-top: 2px dashed var(--line); }
.yt .news-title { font-size: 1.45rem; }
.yt article h1 { font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.yt article .game { padding: 10px; }
.yt article .game img { border: 2px solid var(--ink); }
.yt .cta { background: var(--ink) !important; border: var(--edge); box-shadow: 4px 4px 0 var(--accent); font-weight: 800; }
.yt .hero-img { border: var(--edge) !important; box-shadow: 6px 6px 0 var(--ink); }
.yt .note { border: var(--edge) !important; border-left-width: 8px !important; border-left-color: var(--accent) !important; }

/* ---------- Footer: an ink slab ---------- */
.yt .site-footer, .yt article ~ footer {
  background: var(--ink); color: #d9d4ea; border: 0; border-radius: 26px; padding: 26px 22px; margin-top: 40px;
}
.yt .site-footer a, .yt article ~ footer a { color: #fff; }
.yt .site-footer a:hover, .yt article ~ footer a:hover { color: var(--pop-yellow); }

/* ---------- Fixes found in review ---------- */
.yt .games-grid > article, .yt .news-grid > article { display: flex; }
.yt .games-grid > article > .game-card, .yt .news-grid > article > .news-card { flex: 1; }
.yt .cat-body h3, .yt .kit h3, .yt .tip h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em; }
.yt .story-action { align-self: flex-start; width: max-content; }
/* Story covers: bold poster colours instead of pale paper */
.yt .story-cover-box { color: #fff; }
.yt .story-cover-box .story-cover-title { color: #fff; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-shadow: 2px 2px 0 rgba(21, 18, 31, .55); }
.yt .story-cover-box .story-glyph { color: var(--pop-yellow); font-size: 2.4rem; }
.yt .cover-second-chance { background: linear-gradient(135deg, #6d4aff, #ff4f9a) !important; }
.yt .cover-cricket { background: linear-gradient(135deg, #12a35f, #ffd23f) !important; }
.yt .cover-meridian { background: linear-gradient(135deg, #0b1a3a, #2bb6e6) !important; }

/* ---------- Home page (body.yt-home) ---------- */
body.yt-home { --accent: #6d4aff; --accent-ink: #fff; --tint: #e9e3ff; --tint-2: #ff4f9a; --accent-soft: #e9e3ff; }
.yt-home .sheet { border-radius: 30px; }
.yt main.home-main .hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(3rem, 8vw, 5.8rem); line-height: 0.92; letter-spacing: -0.05em; margin-bottom: 14px; }
.yt main.home-main .hero-sub { color: #2f2a3d; font-weight: 600; font-size: 1.02rem; }
.yt .launch-pill { border: var(--edge); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); font-weight: 700; }
.yt .launch-pill:hover { transform: rotate(-1.5deg) translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent); }
.yt .launch-pill span { background: var(--pop-yellow); color: var(--ink); border: 2px solid var(--ink); }
.yt .mood { border: var(--edge); box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.yt .mood:focus-within { border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.yt .mood input { font-weight: 600; }
.yt .mood input::placeholder { color: #8a84a0; }
.yt .mood button { border: 2px solid var(--ink); background: var(--accent); }
.yt .mood-chips button { border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.yt .mood-chips button:hover { background: var(--pop-yellow); color: var(--ink); border-color: var(--ink); }
.yt .mood-pick { border: var(--edge); box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.yt .mood-go a { border: 2px solid var(--ink); font-weight: 800; background: #fff; }
.yt .mood-go a:first-child { background: var(--accent); border-color: var(--ink); }
.yt .hero-skip { color: var(--accent); font-weight: 800; }
.yt .scroll-cue { color: var(--ink); font-weight: 700; }
.yt .gotd, .yt .challenge, .yt .continue-card, .yt .lb-card, .yt .explore-card, .yt .play-card {
  border: var(--edge); box-shadow: var(--lift); border-radius: 22px; transition: transform .16s ease, box-shadow .16s ease;
}
.yt .gotd:hover, .yt .continue-card:hover, .yt a.lb-card:hover, .yt .explore-card:hover, .yt .play-card:hover, .yt .play-card:focus-visible {
  transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); border-color: var(--ink);
}
.yt .gotd-info h3, .yt .challenge h3, .yt .play-info h3, .yt .section-head h2, .yt .leaderboard h2, .yt .explore-card b, .yt .lb-score {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em;
}
.yt .gotd-go, .yt .challenge-go { border: 2px solid var(--ink); font-weight: 800; }
.yt .challenge-go { color: #fff; }
.yt .challenge-go:hover { background: var(--accent); }
.yt .challenge { background: #fff; }
.yt .challenge .bar { border: 2px solid var(--ink); height: 14px; background: var(--tint); }
.yt .challenge .bar i { background: linear-gradient(90deg, var(--pop-pink), var(--accent)); }
.yt .launch { border: var(--edge); box-shadow: 7px 7px 0 var(--ink); border-radius: 30px; }
.yt .launch h2 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.04em; }
.yt .launch-card { border: 2px solid rgba(255, 255, 255, 0.35); }
.yt .launch-card:hover { border-color: var(--pop-yellow); box-shadow: 5px 5px 0 var(--pop-yellow); }
.yt .launch-card b { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; }
.yt .play-section { border-top: 0; }
.yt .play-card { background: #fff; }
.yt .play-thumb { border: 2px solid var(--ink); }
.yt .play-badge { background: var(--pop-yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; transform: rotate(-4deg); }
.yt .play-badge.new { background: var(--pop-pink); color: #fff; }
.yt .play-go { border: 2px solid var(--ink); background: var(--accent); }
.yt .play-best { color: var(--accent); font-weight: 800; }
.yt .chip:hover { border-color: var(--ink) !important; }
.yt .leaderboard { border-top: 0; }
.yt .lb-card { background: #fff; }
.yt .lb-score { color: var(--accent); }
.yt .lb-beat { color: var(--ink); font-weight: 800; }
.yt .explore { border-top: 0; }
.yt .explore-card { background: #fff; }
.yt .explore-card:nth-child(1) { background: var(--tint); }
.yt .explore-card:nth-child(2) { background: #fff1bf; }
.yt .footer-links a { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .yt .nav { border-radius: 22px; flex-wrap: wrap; padding: 10px 12px; position: static; }
  .yt .nav-links { width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .yt .nav-links a { padding: 7px 12px; white-space: nowrap; }
  .yt .page-header { border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); }
  .yt .page-header::after { top: 14px; bottom: auto; right: 14px; transform: rotate(10deg); font-size: 2.6rem; }
  .yt .page-header { padding-top: 30px; }
  .yt .page-header h1 { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .yt .game-card, .yt .news-card, .yt .story-card, .yt .cat, .yt .kit { transition: none; }
}
