/* Shared style of the text pages (guide, privacy, copyright). Light and dark follow the device. */
:root { --bg: #f6f7f9; --card: #fff; --text: #1b2430; --muted: #5d6b7c; --accent: #1f6feb; --line: #dde3ea; }
@media (prefers-color-scheme: dark) { :root { --bg: #0e1319; --card: #161d26; --text: #e6ebf1; --muted: #93a1b2; --accent: #6aa8ff; --line: #26313d; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header.top { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.top-in a.play { font-weight: 700; text-decoration: none; background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 999px; }
.top-in nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
.top-in nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.top-in nav a[aria-current] { color: var(--text); font-weight: 600; }
.lang button { border: 1px solid var(--line); background: none; color: var(--muted); padding: 3px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.lang button:first-child { border-radius: 999px 0 0 999px; }
.lang button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.lang button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: .4em 0 .3em; }
h2 { font-size: 1.3rem; margin: 1.9em 0 .4em; padding-top: .4em; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.3em 0 .2em; }
p, li { margin: .5em 0; }
ul, ol { padding-left: 1.3em; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.tip { border-left: 4px solid var(--accent); }
table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--card); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
body.vi [lang="en"].blk { display: none; }
body.vi [lang="vi"].blk { display: block; }
.blk[lang="vi"] { display: none; }
footer { max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); margin-right: 14px; }

figure.shot { margin: 16px 0; }
figure.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; display: block; background: #000; }
figure.shot figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
figure.shot:has(img[src*="landing"]) img { max-width: 260px; }
td, th { overflow-wrap: anywhere; }

svg.dg { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
svg.dg .lbl { fill: var(--text); font: 12px system-ui, sans-serif; }
svg.dg .lbl.in { font-weight: 700; fill: #1b2430; dominant-baseline: central; }
svg.dg .ball { stroke: var(--muted); stroke-width: 1.5; }
svg.dg .cue { fill: #f4f1e6; } svg.dg .obj { fill: #f2b01e; }
svg.dg .ghost { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
svg.dg .tip { fill: #d33; }
svg.dg line, svg.dg path { fill: none; stroke-width: 2; stroke-linecap: round; }
svg.dg .p-aim { stroke: #2a7be4; } svg.dg .p-obj { stroke: #1a9c5b; } svg.dg .p-tan { stroke: var(--muted); stroke-dasharray: 6 4; }
svg.dg .p-centres { stroke: var(--muted); stroke-dasharray: 2 4; } svg.dg .p-arc { stroke: var(--text); stroke-width: 1.4; }
svg.dg .p-follow { stroke: #d9a400; } svg.dg .p-draw { stroke: #d6339a; } svg.dg .cush { stroke: var(--text); stroke-width: 6; }
svg.dg polygon { stroke: none; } svg.dg polygon.p-aim { fill: #2a7be4; } svg.dg polygon.p-obj { fill: #1a9c5b; } svg.dg polygon.p-tan { fill: var(--muted); } svg.dg polygon.p-follow { fill: #d9a400; } svg.dg polygon.p-draw { fill: #d6339a; }
svg.dg .pocketc { fill: #222; stroke: none; }
