/* Troubleshooting: one accordion per problem, and the links to it from Downloads, Support and Report a Bug. */
.ts-page { width:min(100%,880px); margin-inline:auto; }
.ts-index { margin-bottom:22px; padding:22px 24px 14px; }
.ts-index h2 { font:500 26px/1.25 var(--serif); letter-spacing:0; margin-bottom:8px; }
.ts-index ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
.ts-index a { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:48px; padding:10px 0; border-top:1px solid var(--border); color:var(--text); font-size:13px; line-height:1.5; }
.ts-index li:nth-child(-n+2) a { border-top-color:transparent; }
.ts-index a .icon { width:14px; height:14px; color:var(--gold); }
.ts-index a[aria-current] { color:var(--gold); }
.ts-index a:focus-visible,.ts-body a:focus-visible { outline:2px solid var(--gold); outline-offset:3px; border-radius:3px; }
.ts-topics { display:grid; gap:12px; }
.ts-topic { padding:0; overflow:hidden; }
.ts-topic[open] { border-color:#d8b87855; }
.ts-topic > summary { display:flex; align-items:center; gap:16px; padding:18px 22px; cursor:pointer; list-style:none; }
.ts-topic > summary::-webkit-details-marker { display:none; }
.ts-topic > summary:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; border-radius:12px; }
.ts-topic-icon { flex:none; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--border); border-radius:10px; color:var(--gold); background:#d8b8780d; }
.ts-topic-icon .icon { width:17px; height:17px; }
.ts-topic-heading { flex:1; min-width:0; display:grid; gap:4px; }
.ts-topic-heading h2 { font:500 24px/1.25 var(--serif); letter-spacing:0; overflow-wrap:anywhere; }
.ts-topic-summary { color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
/* Drawn with borders, not the arrow icon: the site mirrors every arrow icon in Arabic, and this one points down or up. */
.ts-chevron { flex:none; width:9px; height:9px; margin-inline:6px 4px; border-right:1.6px solid var(--gold); border-bottom:1.6px solid var(--gold); transform:translateY(-3px) rotate(45deg); transition:transform .2s; }
.ts-topic[open] .ts-chevron { transform:translateY(2px) rotate(-135deg); }
.ts-body { padding:4px 22px 24px; border-top:1px solid var(--border); font-size:15px; line-height:1.75; color:var(--text); overflow-wrap:anywhere; }
.ts-body .ts-label { margin:24px 0 10px; font:600 12px/1.6 var(--sans); letter-spacing:1.2px; text-transform:uppercase; color:var(--gold); }
/* On-screen text keeps the capitals the game shows. */
.ts-label .ts-say { text-transform:none; letter-spacing:0; }
/* One case of a topic ("find what you see"): a heading the reader scans for, so it is larger than the body text. */
.ts-body .ts-case { margin:30px 0 0; padding-top:22px; border-top:1px solid var(--border); font:600 18px/1.45 var(--sans); letter-spacing:0; text-transform:none; color:var(--text); }
.ts-body .ts-case:focus { outline:none; }
.ts-body .ts-case:focus-visible { outline:2px solid var(--gold); outline-offset:4px; border-radius:3px; }
.ts-cases { margin-top:16px; padding:14px 16px 6px; border:1px solid var(--border); border-radius:10px; background:#ffffff05; }
.ts-body .ts-cases p { margin:0; color:var(--muted); font-size:13px; }
.ts-body .ts-cases ul { list-style:none; margin-top:6px; padding:0; gap:0; max-width:none; }
.ts-body .ts-cases a { display:block; min-height:44px; padding:10px 0; border-top:1px solid var(--border); text-decoration:none; font-weight:600; line-height:1.5; }
.ts-body .ts-cases li:first-child a { border-top-color:transparent; }
.ts-body .ts-cases a[aria-current] { color:var(--text); }
.ts-body .ts-hint { margin-top:12px; padding:10px 14px; border-inline-start:2px solid var(--border); background:#ffffff05; color:var(--muted); font-size:14px; line-height:1.7; }
.ts-body p { margin-top:12px; max-width:70ch; }
.ts-body ul,.ts-body ol { margin:12px 0 0; padding-inline-start:22px; display:grid; gap:8px; max-width:70ch; }
.ts-body li ul { margin-top:8px; }
.ts-body ol.ts-steps { list-style:none; padding:0; counter-reset:ts-step; gap:12px; }
.ts-steps > li { counter-increment:ts-step; position:relative; padding-inline-start:42px; min-height:28px; }
.ts-steps > li::before { content:counter(ts-step); position:absolute; inset-inline-start:0; top:0; display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--border); border-radius:8px; background:#d8b8780d; color:var(--gold); font-size:12px; font-weight:700; }
.ts-body a { color:var(--gold); text-decoration:underline; text-underline-offset:4px; }
.ts-body code { direction:ltr; unicode-bidi:isolate; padding:1px 6px; border:1px solid var(--border); border-radius:5px; background:#ffffff08; color:var(--gold-light); font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space:nowrap; }
.ts-topic-summary code { direction:ltr; unicode-bidi:isolate; font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.ts-say { font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-weight:600; }
.ts-body strong { font-weight:700; }
.ts-see { margin-top:12px; padding:12px 16px; border-inline-start:2px solid var(--gold); background:#ffffff05; border-radius:0 8px 8px 0; }
html[dir=rtl] .ts-see { border-radius:8px 0 0 8px; }
.ts-see p { margin:0; color:var(--muted); font-size:12px; }
.ts-body .ts-see ul { list-style:none; padding:0; margin-top:6px; gap:4px; }
.ts-note { margin-top:22px; padding:16px 18px; border:1px solid var(--border); border-radius:10px; background:#d8b8780a; }
.ts-note > strong { display:flex; align-items:center; gap:9px; color:var(--gold); font-size:13px; }
.ts-note > strong .icon { width:16px; height:16px; }
.ts-body .ts-note ul { margin-top:8px; font-size:14px; }
.ts-discord { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:14px; }
.ts-discord p { margin:0; flex:1 1 280px; }
.ts-body .ts-discord a.btn { margin:0; color:var(--text); text-decoration:none; }
.ts-body .ts-more { max-width:none; margin-top:26px; padding-top:16px; border-top:1px solid var(--border); color:var(--muted); font-size:13px; }
html[lang=ar] .ts-body { line-height:2; }
/* In Arabic an on-screen English message stays in one left-to-right piece instead of splitting across two right-to-left lines. */
html[dir=rtl] .ts-say { display:inline-block; max-width:100%; }
html[lang=ar] .ts-body .ts-label { letter-spacing:0; font-size:13px; text-transform:none; }
html[lang=ar] .ts-body .ts-hint { line-height:1.9; }
html[lang=ar] .ts-topic-heading h2,html[lang=ar] .ts-index h2 { font-size:21px; line-height:1.6; }
html[data-theme=light] .ts-body code { background:#00000008; }
html[data-theme=light] .ts-see,html[data-theme=light] .ts-cases,html[data-theme=light] .ts-hint { background:#00000005; }

/* The one-line link above the download buttons. */
.ts-link-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:16px; color:var(--muted); font-size:12px; line-height:1.6; }
.ts-link-line > .icon { width:15px; height:15px; color:var(--gold); }
.ts-link-line a { display:inline-flex; align-items:center; gap:8px; min-height:32px; color:var(--gold); font-weight:600; }
.ts-link-line a .icon { width:13px; height:13px; }
.ts-link-line a:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
/* Support: the first panel under the page title. */
.ts-support { margin-top:0; }
/* Report a Bug: "check this first", above the report form. */
.ts-check-first { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; margin-bottom:22px; border-color:#d8b87840; }
.ts-check-first > div { flex:1 1 320px; min-width:0; }
.ts-check-first .section-label { margin-bottom:6px; }
.ts-check-first h2 { font:500 24px/1.25 var(--serif); letter-spacing:0; }
.ts-check-first p:not(.section-label) { margin-top:6px; color:var(--muted); font-size:12px; line-height:1.7; }
.ts-check-first .btn { margin:0; flex:none; }
html[lang=ar] .ts-check-first h2 { font-size:20px; line-height:1.6; }

@media(max-width:680px) {
  .ts-index { padding:18px 16px 8px; }
  .ts-index ul { grid-template-columns:minmax(0,1fr); }
  .ts-index li:nth-child(2) a { border-top-color:var(--border); }
  .ts-topic > summary { padding:16px; gap:12px; }
  .ts-topic-icon { width:34px; height:34px; }
  .ts-topic-heading h2 { font-size:21px; }
  .ts-body { padding:2px 16px 20px; font-size:16px; }
  .ts-body .ts-case { font-size:19px; }
  .ts-body .ts-hint { font-size:15px; }
  .ts-steps > li { padding-inline-start:38px; }
  .ts-link-line { justify-content:center; text-align:center; }
  .ts-check-first .btn { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .ts-chevron { transition:none; } }
html[data-motion=off] .ts-chevron { transition:none; }
