/* Shared look for the text pages (About, Privacy, Terms, Contact). Matches the game's light "Bug Lab" style. */
:root {
  color-scheme: light;
  --bg: #fbf8ff; --surface: #ffffff; --ink: #2d2350; --dim: #5f567f; --line: #e4dcf7;
  --accent: #7c5cff; --accent2: #e23d5a;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--body); overflow-x: clip; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; }
.bg i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: #b9f3dc; }
.bg i:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 10vh; background: #dccfff; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 22px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; padding: 5px; border-radius: 10px; background: #e11d48; color: #fff; }
.play { font: 700 14px/1 var(--body); color: #fff; text-decoration: none; padding: 11px 16px; border-radius: 999px; background: linear-gradient(120deg, #7c5cff, #e2459a); white-space: nowrap; }
article { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; box-shadow: 0 2px 6px rgba(91,63,224,.06), 0 10px 26px rgba(91,63,224,.09); }
h1 { font: 800 34px/1.1 var(--display); letter-spacing: -.5px; margin: 0 0 6px; }
h2 { font: 700 22px/1.25 var(--display); margin: 30px 0 8px; }
h3 { font: 700 17px/1.3 var(--body); margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: #5b3fe0; }
.meta { color: var(--dim); font-size: 14px; margin-bottom: 20px; }
.note { background: #f6f2ff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.mail { display: inline-block; font: 700 18px/1.2 var(--body); padding: 14px 18px; border-radius: 14px; background: #f6f2ff; border: 1px solid var(--line); text-decoration: none; word-break: break-all; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.tbl { overflow-x: auto; }
footer.site { margin-top: 28px; text-align: center; font-size: 14px; color: var(--dim); }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer.site a { color: var(--dim); }
@media (max-width: 520px) { article { padding: 22px 16px; } h1 { font-size: 28px; } .brand { font-size: 19px; } }

/* Bug library */
.crumbs { margin: 0 0 10px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); }
.eyebrow { margin: 0 0 8px; font: 700 12px/1.2 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #5b3fe0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { font: 700 13px/1 var(--body); padding: 7px 11px; border-radius: 999px; background: #f6f2ff; border: 1px solid var(--line); }
.chip.sev-P1 { background: #ffe1e6; border-color: #ffc2cd; color: #9f1239; }
.chip.sev-P2 { background: #ffe8d6; border-color: #ffd0ad; color: #9a3d0a; }
.chip.sev-P3 { background: #fff4c2; border-color: #f5e08a; color: #6b5200; }
.chip.sev-P4 { background: #dcf4ea; border-color: #b6e8d2; color: #0f6b4a; }
.try p:last-child { margin: 10px 0 0; }
.try .play { display: inline-block; }
.more { margin-top: 20px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; scroll-margin-top: 16px; }
.more h2 { margin-top: 0; }
.buglist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.buglist li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin: 0; }
.buglist a { font-weight: 600; text-decoration: none; }
.buglist a:hover { text-decoration: underline; }
.buglist span { flex: none; font-size: 13px; color: var(--dim); white-space: nowrap; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { font: 700 14px/1 var(--body); padding: 10px 14px; border-radius: 999px; background: #f6f2ff; border: 1px solid var(--line); text-decoration: none; }
@media (max-width: 520px) { .more { padding: 18px 16px; } .buglist li { flex-direction: column; gap: 4px; } .buglist span { white-space: normal; } }

/* Header links (Bug library, Articles) */
.wrap.wide { max-width: 1080px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a.lnk { font: 700 14px/1 var(--body); color: var(--ink); text-decoration: none; }
.topnav a.lnk[aria-current] { color: #5b3fe0; }
.topnav a.lnk:hover { color: #5b3fe0; }

/* Articles */
@media (max-width: 640px) { .topnav { gap: 14px; } .topnav a.lnk.lib { display: none; } }
@media (max-width: 400px) { .topnav .play .long { display: none; } }
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 44px; }
.hero p.lede { font-size: 18px; color: var(--dim); max-width: 620px; margin: 6px 0 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.filters a { flex: none; font: 700 14px/1 var(--body); padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cover { position: relative; border-radius: 16px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16/9; }
.cover b { font: 800 15px/1 var(--display); letter-spacing: .5px; color: rgba(45,35,80,.75); position: absolute; left: 14px; bottom: 12px; text-transform: uppercase; }
.cover svg { width: 38%; max-width: 120px; height: auto; color: rgba(45,35,80,.85); filter: drop-shadow(0 6px 14px rgba(45,35,80,.15)); }
.c-api { background: linear-gradient(135deg, #dccfff, #ffd6ec); }
.c-frontend { background: linear-gradient(135deg, #ffe3c7, #ffd0dc); }
.c-backend { background: linear-gradient(135deg, #c9f2e2, #cfe3ff); }
.c-database { background: linear-gradient(135deg, #fff1b8, #c9f2e2); }
.c-ai { background: linear-gradient(135deg, #e5d4ff, #c4f0ff); }
.c-career { background: linear-gradient(135deg, #ffd6ec, #fff1b8); }
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 24px; padding: 18px; margin: 18px 0 8px; box-shadow: 0 2px 6px rgba(91,63,224,.06), 0 14px 34px rgba(91,63,224,.10); text-decoration: none; color: var(--ink); }
.featured .cover { aspect-ratio: 16/10; }
.featured h2 { font: 800 30px/1.12 var(--display); margin: 6px 0 10px; }
.featured p { color: var(--dim); margin: 0 0 14px; }
.kick { font: 700 12px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #5b3fe0; }
.byline { font-size: 13px; color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.card { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(91,63,224,.13); }
.card h3 { font: 700 19px/1.25 var(--display); margin: 2px 4px 0; }
.card p { font-size: 14px; color: var(--dim); margin: 0 4px; line-height: 1.55; }
.card .byline, .card .kick { margin: 0 4px; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #2d2350, #5b3fe0); color: #fff; border-radius: 22px; padding: 22px 24px; margin: 10px 0 8px; }
.strip h2 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.strip p { margin: 0; color: #e4dcf7; }
.strip .play { background: #fff; color: #2d2350; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hero h1 { font-size: 32px; } .hero p.lede { font-size: 16px; } .featured { grid-template-columns: 1fr; padding: 12px 12px 18px; gap: 14px; } .featured h2 { font-size: 24px; margin: 4px 4px 8px; } .featured p, .featured .kick, .featured .byline { margin-left: 4px; margin-right: 4px; } .grid { grid-template-columns: 1fr; gap: 14px; } .strip { flex-direction: column; align-items: flex-start; } }

/* Article page */
.post { max-width: 760px; margin: 0 auto; }
.post article { padding: 32px 36px; }
.post h1 { font-size: 40px; }
.post .lede { font-size: 19px; color: var(--dim); line-height: 1.6; margin: 8px 0 16px; }
.author { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.author i { width: 34px; height: 34px; border-radius: 50%; background: #e11d48; display: grid; place-items: center; color: #fff; font: 800 14px/1 var(--display); font-style: normal; }
.author strong { color: var(--ink); }
.post .cover { margin: 0 0 22px; aspect-ratio: 21/9; }
.toc { background: #f6f2ff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 24px; }
.toc strong { font: 700 13px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #5b3fe0; }
.toc ol { margin: 10px 0 0; columns: 2; column-gap: 26px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--ink); }
.post h2 { font-size: 26px; margin-top: 34px; scroll-margin-top: 16px; }
.post h2 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 10px; background: linear-gradient(120deg, #7c5cff, #e2459a); color: #fff; font-size: 17px; vertical-align: 3px; }
.example { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid #7c5cff; border-radius: 14px; padding: 12px 14px; margin: 14px 0 6px; font-size: 15px; }
.example .lbl { font: 700 11px/1.2 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #5b3fe0; }
.example a.t { color: var(--ink); font-weight: 700; text-decoration: none; }
.example a.go { font: 700 13px/1 var(--body); white-space: nowrap; padding: 9px 12px; border-radius: 999px; background: #f6f2ff; border: 1px solid var(--line); text-decoration: none; }
pre.http { background: #2d2350; color: #f1ecff; border-radius: 14px; padding: 14px 16px; font: 500 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; margin: 10px 0 14px; }
pre.http .bad { background: rgba(226,61,90,.35); border-radius: 4px; padding: 0 3px; }
.check { background: linear-gradient(135deg, #e9fbf3, #f3eeff); border: 1px solid #c7ecdc; border-radius: 18px; padding: 18px 20px; margin: 28px 0; }
.check h3 { margin-top: 0; font: 800 20px/1.2 var(--display); }
.check ul { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 30px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #12a877; background: #fff; }
.tryit { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #fff0f6, #f1ecff); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 26px 0; }
.tryit .bugicon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #e11d48; color: #fff; display: grid; place-items: center; }
.tryit .bugicon svg { width: 30px; height: 30px; }
.tryit p { margin: 0; }
.tryit .play { margin-left: auto; }
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 10px; background: #fff; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 8px 0 2px; }
.related h2 { margin: 0 0 4px; }
@media (max-width: 640px) { .post article { padding: 22px 16px; } .post h1 { font-size: 29px; } .post .lede { font-size: 17px; } .post h2 { font-size: 22px; } .toc ol { columns: 1; } .example { grid-template-columns: 1fr; gap: 6px; } .example a.go { justify-self: start; } .tryit { flex-direction: column; align-items: flex-start; } .tryit .play { margin-left: 0; } .post .cover { aspect-ratio: 16/9; } }
.card .cover b { display: none; } .card .cover { aspect-ratio: 16/8; }
@media (max-width: 640px) {
  .card { display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto auto auto; column-gap: 12px; row-gap: 4px; padding: 12px; }
  .card .cover { grid-row: 1 / span 4; aspect-ratio: 1; align-self: start; border-radius: 14px; }
  .card .cover svg { width: 46%; }
  .card h3 { font-size: 17px; margin: 0; } .card p { margin: 0; font-size: 13.5px; } .card .kick, .card .byline { margin: 0; }
}
.filters a[hidden], .card[hidden], .featured[hidden] { display: none; }
.post article code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: #f6f2ff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.post article table { font-size: 15px; }
.updated { font-size: 14px; color: var(--dim); margin: 26px 0 0; }
.post h3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 9px; background: linear-gradient(120deg, #7c5cff, #e2459a); color: #fff; font: 700 14px/1 var(--body); vertical-align: 2px; }
.post h3 { font-size: 19px; margin-top: 26px; }
.post td:first-child { white-space: nowrap; }
.filters[hidden], .grid[hidden] { display: none; }
