/* PvtyGames - Informational/Docs pages */

/* Body overrides for scrolling pages (landing sets overflow: hidden) */
body {
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1000px 600px at 80% -10%, rgba(124,58,237,0.12), transparent 55%), var(--bg);
}

/* Links */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { 
    position: sticky; 
    position: -webkit-sticky;
    top: 0; 
    background: linear-gradient(180deg, var(--bg), rgba(11,13,20,0.85) 60%, transparent);
    backdrop-filter: blur(6px);
    z-index: 9999;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .01em; }
.brand-badge {
    width: 36px; height: 36px; border-radius: 8px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #2a1038, #0a1a2e);
    border: 1px solid #36203a;
    box-shadow: 0 8px 24px #000a;
}
.brand .muted { color: var(--muted); font-weight: 600; }

/* Layout */
.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 36px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

/* TOC */
.toc {
    position: sticky;
    top: 86px;
    align-self: start;
    background: linear-gradient(180deg, #0f1220, #0b0d14);
    border: 1px solid #1b2033;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 10px 24px #0008;
}
.toc h3 { margin: 0 0 6px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 4px 0; }
.toc a { display: block; padding: 8px 8px; border-radius: 8px; color: var(--text); }
.toc a:hover { background: #12172a; text-decoration: none; }

/* Content */
.content { min-width: 0; }
.intro-card {
    background: linear-gradient(180deg, rgba(124,58,237,0.14), rgba(124,58,237,0.06));
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px #0008;
}
h1 { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: .01em; }
h1 .muted { color: var(--muted); font-weight: 600; }

.doc-section {
    background: linear-gradient(180deg, #0f1220, #0b0d14);
    border: 1px solid #1b2033;
    border-radius: 12px;
    padding: 16px 16px 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px #0008;
}
.doc-section h2 { margin-top: 0; margin-bottom: 10px; font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.doc-section p { color: #c0c7db; }
.doc-section ul, .doc-section ol { color: #d5ddf3; line-height: 1.65; }

/* Inline code and blocks */
code { background: #12172a; color: #e6edf3; padding: 2px 6px; border-radius: 6px; }
pre { background: #0e1327; color: #e6edf3; padding: 14px; border-radius: 10px; border: 1px solid #1b2340; overflow: auto; }
pre code { background: transparent; padding: 0; }

/* Callouts */
.required { color: var(--error); font-weight: 800; }
.optional { color: var(--accent); font-weight: 800; }

/* Footer */
.site-footer { 
    border-top: 1px solid #1b2033; 
    color: var(--muted); 
    text-align: center; 
    padding: 24px 16px 40px; 
}

/* Responsive */
@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .toc { position: static; }
}

/* ————————————————————————————————————————————————
   Rules List component (for /rules and similar pages)
   ———————————————————————————————————————————————— */
.rules-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: grid; 
    gap: 12px; 
}
.rule-item { 
    display: grid; 
    grid-template-columns: auto 1fr; 
    align-items: start; 
    gap: 14px; 
    background: linear-gradient(180deg, #0f1220, #0b0d14);
    border: 1px solid #1b2033; 
    border-radius: 12px; 
    padding: 14px; 
    box-shadow: 0 10px 26px #0008; 
}
.rule-num { 
    align-self: center; 
    min-width: 66px; 
    display: grid; 
    place-items: center; 
}
.rule-num span { 
    display: inline-block; 
    font-weight: 800; 
    font-size: clamp(28px, 6vw, 64px); 
    letter-spacing: .02em; 
    line-height: 1; 
    background: conic-gradient(from 180deg at 50% 50%, #7c3aed, #00ffa3, #6ee7ff, #7c3aed);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 28px #000a);
}
.rule-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.rule-body p { margin: 0; color: #c0c7db; }

@media (max-width: 560px) {
    .rule-item { grid-template-columns: 1fr; }
    .rule-num { justify-self: start; }
}


