/* chanda-vi : user guide page (stand-alone, inside the game package) */
:root {
    --w3-surface: rgba(38, 26, 17, 0.96);
    --w3-line: rgba(255, 255, 255, 0.12);
    --w3-line-strong: rgba(255, 255, 255, 0.22);
    --w3-muted: #d9c3a8;
    --w3-faint: #b79f84;
    --w3-surface-3: rgba(255, 255, 255, 0.1);
    --w3-grad: linear-gradient(135deg, #f5a623, #e8503f);
    --w3-display: "Noto Sans Bengali", system-ui, sans-serif;
}
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-sans-bengali-bengali.woff2") format("woff2"); unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-sans-bengali-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #1a110b; color: #fff4e6; font-family: "Noto Sans Bengali", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
a { color: #ffbf5e; }
.guide { max-width: 1180px; margin: 0 auto; padding: 24px 18px 60px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: #f5a623; text-transform: uppercase; }
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff4e6; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(255, 255, 255, .16); }
h1, h2, h3 { line-height: 1.35; }
.embed .guide-hero { display: none; }
.embed .guide { padding-top: 12px; }
.embed .guide-toc { top: 12px; }


.guide { font-size: 1.02rem; line-height: 1.85; }
.guide-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 2.5rem 2rem; margin-bottom: 2rem; border: 1px solid var(--w3-line-strong); background: radial-gradient(520px 260px at 0% 0%, rgba(255, 153, 51, .28), transparent 70%), radial-gradient(520px 260px at 100% 100%, rgba(124, 92, 255, .32), transparent 70%), var(--w3-surface); }
.guide-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: .5rem 0; }
.guide-hero p { color: var(--w3-muted); max-width: 700px; margin: 0 0 1.25rem; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.guide-toc { position: sticky; top: 90px; padding: 1.1rem; border-radius: 16px; background: var(--w3-surface); border: 1px solid var(--w3-line); }
.guide-toc h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w3-faint); margin-bottom: .6rem; }
.guide-toc a { display: block; padding: .38rem .65rem; border-radius: 9px; color: var(--w3-muted); font-size: .93rem; line-height: 1.5; }
.guide-toc a:hover, .guide-toc a.active { background: rgba(124, 92, 255, .16); color: #fff; }

.guide-section { scroll-margin-top: 90px; margin-bottom: 2.25rem; padding: 1.6rem 1.75rem; border-radius: 18px; background: var(--w3-surface); border: 1px solid var(--w3-line); }
.guide-section h2 { font-size: 1.45rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem; }
.guide-section h2 .no { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--w3-grad); color: #fff; font-size: 1rem; }
.guide-section h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: #dbe3ff; }
.guide-section p { color: #d6ddf5; }
.guide-section ul, .guide-section ol { padding-left: 1.3rem; color: #d6ddf5; }
.guide-section li { margin-bottom: .35rem; }
.guide-section b, .guide-section strong { color: #fff; }

.guide-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.guide-facts div { padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--w3-line); }
.guide-facts b { display: block; font-size: 1.35rem; font-family: var(--w3-display); }
.guide-facts span { color: var(--w3-muted); font-size: .88rem; }

.guide-table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .97rem; }
.guide-table th, .guide-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--w3-line); text-align: left; vertical-align: top; }
.guide-table th { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--w3-faint); background: rgba(255, 255, 255, .03); }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table-wrap { overflow-x: auto; border: 1px solid var(--w3-line); border-radius: 14px; margin: .8rem 0; }
.guide-table-wrap .guide-table { margin: 0; }
.key { display: inline-block; min-width: 2.1em; padding: .1rem .55rem; margin: .1rem .15rem; text-align: center; border-radius: 8px; border: 1px solid var(--w3-line-strong); border-bottom-width: 3px; background: var(--w3-surface-3); font-weight: 700; font-size: .9rem; color: #fff; }

.callout { display: flex; gap: .85rem; padding: 1rem 1.15rem; margin: 1rem 0; border-radius: 14px; border: 1px solid; line-height: 1.7; }
.callout i { font-size: 1.3rem; margin-top: .15rem; }
.callout p { margin: 0; }
.callout-tip { background: rgba(52, 211, 153, .09); border-color: rgba(52, 211, 153, .35); }
.callout-tip i { color: #6ee7b7; }
.callout-warn { background: rgba(251, 191, 36, .09); border-color: rgba(251, 191, 36, .38); }
.callout-warn i { color: #fcd34d; }
.callout-info { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .33); }
.callout-info i { color: #67e8f9; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: .2rem 0 .9rem 3.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(124, 92, 255, .22); border: 1px solid rgba(124, 92, 255, .55); color: #fff; font-weight: 700; }

.guide-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 991.98px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; }
    .guide-section { padding: 1.25rem 1.1rem; }
}

@media print {
    .site-nav, .site-footer, .guide-toc, .guide-cta, .skip-link { display: none !important; }
    body, .guide-section, .guide-hero { background: #fff !important; color: #000 !important; border-color: #ccc !important; }
    .guide-section p, .guide-section li, .guide-section b, .guide-section h2, .guide-section h3, .guide-hero p, .guide-hero h1, .guide-table td, .guide-table th { color: #000 !important; }
    .guide-layout { display: block; }
    .guide-section { break-inside: avoid; box-shadow: none; }
}

.guide-toc a, .guide-section a.btn { text-decoration: none; }
.guide-section a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-toc a:hover { text-decoration: none; }
