/* Chirpverse's website (#210), in the game's own colours (wwwroot/app.css). */
:root {
    --bg: #0b0d12; --panel: #12151c; --line: #262b36; --text: #e8eaf0; --muted: #8a92a3;
    --accent: #7c5cff; --accent-2: #9a82ff; --pos: #2fbf71; --like: #f91880; --gold: #ffc940;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.12rem; }
main > section { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 24px; background: rgba(11, 13, 18, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

.btn { display: inline-block; background: var(--accent); color: white !important; padding: 12px 22px; border-radius: 999px;
    font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--accent-2); }
.btn.small { padding: 7px 16px; font-size: .95rem; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding-top: 88px !important; }
.kicker { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: #c9cdd8; max-width: 36em; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }

.hero-card { display: grid; gap: 12px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.post p { margin: 8px 0; }
.post.reply { margin-left: 28px; }
.post.dice { border-color: rgba(124, 92, 255, .45); background: linear-gradient(160deg, #1e1a3a, var(--panel)); }
.post-head { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.post-foot { display: flex; gap: 22px; color: var(--muted); font-size: .9rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.a1 { background: #3a2f10; color: var(--gold); }
.a2 { background: #13301f; color: #c9f5da; }
.verdict { color: var(--pos); font-size: .88rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.grid article p { margin: 0 0 .8em; color: #c9cdd8; }
.grid article p:last-child { margin-bottom: 0; }

.band > div { background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(63, 193, 201, .08)); border: 1px solid var(--line);
    border-radius: 20px; padding: 36px; }
.band p { margin: 0; max-width: 52em; color: #c9cdd8; }

.platforms article { display: flex; flex-direction: column; align-items: flex-start; }
.platforms .btn { margin: 4px 0 10px; }
pre { margin: 4px 0 10px; width: 100%; white-space: pre-wrap; word-break: break-all; background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 12px; }
code { font: .85rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #d7d0ff; }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gold);
    border: 1px solid rgba(255, 201, 64, .4); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 28px 24px; font-size: .92rem; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px !important; }
    .top nav a:not(.btn):not(.keep) { display: none; }
    main > section { padding: 52px 20px; }
}

/* The documentation pages (scenarios.html, #215). */
.top nav a.here { color: var(--text); }
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; max-width: 1240px; margin: 0 auto; padding: 40px 24px 72px; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; font-size: .9rem;
    padding-right: 8px; border-right: 1px solid var(--line); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.l3 { padding-left: 14px; font-size: .85rem; }
.toc-title { margin: 18px 0 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.toc-title:first-child { margin-top: 0; }
.doc { min-width: 0; max-width: 860px; }
.doc h1 { margin-top: 0; }
.doc h2 { margin-top: 2.2em; padding-top: .3em; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.doc h3, .doc h4 { margin-top: 1.8em; scroll-margin-top: 72px; }
.doc p, .doc li, .doc dd { color: #c9cdd8; }
.doc li { margin: .35em 0; }
.doc-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.steps { margin: 18px 0; }
.anchor { color: var(--line); text-decoration: none; font-weight: 400; margin-left: 4px; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor { color: var(--muted); }
pre.code { white-space: pre; word-break: normal; overflow-x: auto; font-size: .85rem; padding: 14px 16px; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--panel); color: var(--text); }
td { color: #c9cdd8; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
.explain dt { margin-top: 14px; }
.explain dd { margin: 4px 0 0 18px; }
.reference { margin-top: 3em; }
.reference > .kicker { margin-bottom: 0; }

@media (max-width: 860px) {
    .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
    #toc-ref { display: none; }
}
