/* theme-switch-r3 (2026-12-05, from theme-switch-r2): same switch, transitions capped at 200ms.
   New game pages link this file. The live site keeps theme-switch-r2.css as the baseline. */
.theme-switch{--ts-track:rgba(16,32,30,.08);--ts-thumb:#fff;--ts-on:#1f6f6a;--ts-line:rgba(16,32,30,.16);--ts-ink:#10201e;--ts-focus:#185a56;
  display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;margin:0;padding:8px 4px;background:none;border:0;border-radius:0;box-shadow:none;cursor:pointer;color:var(--ts-ink);font:inherit;-webkit-tap-highlight-color:transparent}
[data-theme=dark] .theme-switch{--ts-track:rgba(232,243,241,.10);--ts-thumb:#3a4b49;--ts-on:#5ccabd;--ts-line:rgba(255,255,255,.14);--ts-ink:#e8f3f1;--ts-focus:#a8e6de}
.theme-switch__track{position:relative;display:inline-flex;align-items:center;justify-content:space-between;width:52px;height:28px;padding:0 6px;border-radius:999px;background:var(--ts-track);border:1px solid var(--ts-line);box-sizing:border-box;transition:background-color .2s ease,border-color .2s ease}
.theme-switch__icon{position:relative;z-index:1;display:block;flex:none;opacity:.55;transition:opacity .2s ease,color .2s ease}
.theme-switch__thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--ts-thumb);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s cubic-bezier(.4,0,.2,1)}
[data-theme=dark] .theme-switch__thumb{transform:translateX(24px);box-shadow:0 1px 3px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.14)}
[data-theme=dark] .theme-switch__track{border-color:rgba(255,255,255,.14)}
.theme-switch[aria-checked=false] .theme-switch__icon--sun,.theme-switch[aria-checked=true] .theme-switch__icon--moon{opacity:1;color:var(--ts-on);z-index:2}
.theme-switch:focus{outline:none}
.theme-switch:focus-visible{outline:none}.theme-switch:focus-visible .theme-switch__track{outline:3px solid var(--ts-focus);outline-offset:2px}
.theme-switch:hover .theme-switch__track{border-color:color-mix(in srgb,var(--ts-on) 45%,var(--ts-line))}
@media (prefers-reduced-motion:reduce){.theme-switch__thumb,.theme-switch__track,.theme-switch__icon{transition:none}}
/* site header: last item in the nav row, 12-16px from the nearest link */
.top nav .theme-switch{margin-left:.15rem}
/* tool bars (stocks / ships / flights): ink and line from the bar */
.mgg-bar .theme-switch{--ts-ink:var(--c-bar-ink)}
/* Rory games: green header bar, the switch sits where the old button was */
.topbar .theme-switch{min-width:44px;min-height:44px;padding:8px 4px;background:none;border:0;border-radius:0;color:var(--header-ink);--ts-ink:var(--header-ink);--ts-track:rgba(255,255,255,.18);--ts-line:rgba(255,255,255,.4)}
/* Rory dark: amendment track edge wins over the green-bar line above */
[data-theme=dark] .topbar .theme-switch__track{border-color:rgba(255,255,255,.14)}
/* Tessera header button row */
.hdr-btns .theme-switch{height:44px}
