/* ---------- Homepage tour (index.html) ----------
   Everything here is drawn on the theme tokens in base.css, so the tour wears
   whatever theme the visitor picks — Upside Down, Neon Dusk, Inkwell — with no
   per-theme rules. `.ts-*` is the vocabulary of the rebuilt screens
   (public/js/tour-screens.js). */

body.home-page {
	padding-top: 0;
}

/* The hero holds the whole first screen; the hint at its foot leads into the tour. */
.hero-more {
	margin: 28px auto 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.76rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}
.hero-more:hover {
	color: var(--ink);
}
.hero-more .arrow {
	font-size: 1.1rem;
	color: var(--accent-2);
	animation: hero-bob 1.6s ease-in-out infinite;
}
@keyframes hero-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(5px); }
}

/* ---- The sticky bar: brand, chapter rail, log in ---- */
.tour-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 34px;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.tour-bar .brand-logo {
	width: 26px;
	height: 26px;
	flex: none;
}
.tour-bar .bar-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
}
/* A plain link beside the brand: same face, quieter, lit on hover. */
.tour-bar .bar-link {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--line);
	transition: color var(--tsn), border-color var(--tsn);
}
.tour-bar .bar-link:hover {
	color: var(--accent-2);
	border-color: var(--accent-2);
}
/* The AO3 skin previewer lives on its own site — the link glows so it reads
   as a door out, not one more chapter. Every colour a theme token. */
.tour-bar .bar-link-glow {
	color: var(--accent-2);
	border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
	animation: bar-link-glow 2.6s ease-in-out infinite;
}
@keyframes bar-link-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 0%, transparent);
	}
	50% {
		box-shadow: 0 0 12px 1px color-mix(in srgb, var(--accent-2) 45%, transparent);
	}
}
@media (prefers-reduced-motion: reduce) {
	.tour-bar .bar-link-glow {
		animation: none;
		box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent-2) 35%, transparent);
	}
}
.tour-rail {
	margin-left: auto;
	display: flex;
	gap: 8px;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--muted);
}
.tour-dots {
	display: flex;
	gap: 5px;
	align-items: center;
}
.tour-dot {
	display: block;
	width: 6px;
	height: 3px;
	border-radius: 9px;
	background: var(--line);
	transition: width var(--tsn), background var(--tsn);
}
.tour-dot.on {
	width: 16px;
	background: var(--accent);
}
.tour-rail {
	margin-right: 176px; /* clear of the fixed theme switch in the topbar */
}

/* ---- Start here: intro + the auth card ---- */
.home-start {
	padding: 56px 34px 40px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	align-items: center;
	border-bottom: 1px solid var(--line);
	max-width: 1180px;
	margin: 0 auto;
	scroll-margin-top: 70px;
}
.home-start .kicker,
.tour-kicker {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent-2);
}
.home-start h2 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2rem;
	line-height: 1.1;
	background: var(--grad-1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.home-start .lede {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 52ch;
}
.home-start .main {
	padding: 0;
	max-width: none;
	margin: 0;
}
.home-start .card {
	margin-bottom: 0;
}
.home-start .card + .card {
	margin-top: 16px;
}

/* ---- The tour panels ---- */
.tour {
	max-width: 1180px;
	margin: 0 auto;
}
.tour-panel {
	padding: 60px 34px;
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 70px;
}
.tour-panel:last-child {
	border-bottom: 0;
}
.tour-claim {
	position: sticky;
	top: 110px;
}
.tour-kicker {
	margin: 0 0 10px;
	font-size: 0.7rem;
	color: var(--accent);
}
.tour-claim h3 {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.15;
	color: var(--ink);
}
.tour-body {
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.65;
}
.tour-screen {
	min-width: 0;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.tour-screen.in,
.no-js .tour-screen {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.tour-screen {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hero-more .arrow {
		animation: none;
	}
}

/* ---- Closing card ---- */
.home-close {
	max-width: 1180px;
	margin: 20px auto 44px;
	padding: 0 34px;
}
.home-close .card {
	text-align: center;
	padding: 44px;
}
.home-close .brand-logo {
	width: 70px;
	height: 70px;
	margin: 0 auto 10px;
	display: block;
}
.home-close h3 {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 1.6rem;
	background: var(--grad-1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.home-close p {
	margin: 0 0 20px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.86rem;
}
.home-close .row {
	justify-content: center;
	gap: 10px;
}
.home-close .row button {
	flex: 0 0 auto;
	width: auto;
	min-width: 180px;
}

/* ======== The rebuilt screens ======== */
.ts {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--panel);
	border: 1px solid var(--panel-brd);
	border-radius: var(--r-md);
	box-shadow: var(--panel-glow);
	padding: 22px;
	position: relative;
	overflow: hidden;
	font-size: 0.92rem;
	line-height: 1.5;
	text-align: left;
}
.ts p {
	margin: 0;
}
.ts-mono { font-family: var(--font-mono); font-size: 0.74rem; }
.ts-muted { color: var(--muted); }
.ts-acc { color: var(--accent); }
.ts-acc2 { color: var(--accent-2); }
.ts-good { color: var(--good); }
.ts-bad { color: #ff6b6b; }
.ts-i { font-style: italic; }
.ts-r { margin-left: auto; }
.ts-center { text-align: center; }
.ts-hint { font-size: 0.74rem; margin-top: 6px; }
.ts-rule { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.ts-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.5px;
}
.ts-h {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 400;
}
.ts-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
	display: inline-block;
	flex: none;
}
.ts-dot.on {
	background: var(--good);
	box-shadow: 0 0 6px var(--good);
}
.ts-who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 6px;
	vertical-align: 1px;
}
.ts-name {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
}
.ts-caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	background: var(--accent-2);
	margin-left: 2px;
	vertical-align: -2px;
	animation: ts-blink 1s steps(2) infinite;
}
@keyframes ts-blink {
	to { opacity: 0; }
}
.ts-btn {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: var(--r-md);
	white-space: nowrap;
}
.ts-btn.primary {
	background: var(--grad-1);
	color: var(--btn-ink);
}
.ts-btn.ghost {
	background: var(--panel-2);
	border: 1px solid var(--line);
	font-weight: 400;
}
.ts-tb {
	min-width: 42px;
	text-align: center;
	padding: 8px 12px;
	font-size: 0.95rem;
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	display: inline-block;
}
.ts-tb.b { font-weight: 800; }
.ts-tb.i { font-style: italic; }
.ts-tb.u { text-decoration: underline; }
.ts-tb.on { background: var(--chip); border-color: var(--chip-brd); }
.ts-tb.ts-code { font-family: var(--font-mono); letter-spacing: 2px; font-size: 0.78rem; }
.ts-toolbar {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.ts-toolbar.dim .ts-tb { opacity: 0.45; padding: 6px 11px; font-size: 0.9rem; min-width: 0; }
.ts-toolbar.dim .ts-modes { display: inline-flex; gap: 4px; align-items: center; }
.ts-toolbar.dim .ts-modes > span { padding: 6px 12px; font-size: 0.8rem; border-radius: var(--r-md); }
.ts-chip {
	display: inline-block;
	background: var(--chip);
	border: 1px solid var(--chip-brd);
	border-radius: 99px;
	padding: 4px 10px;
	font-size: 0.8rem;
	color: var(--ink);
	white-space: nowrap;
}
.ts-chip.on {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--btn-ink);
	font-weight: 700;
}
.ts-chip.secret {
	background: transparent;
	border-style: dashed;
	color: var(--muted);
}
.ts-chip.locked { opacity: 0.5; }
.ts-pill {
	font-family: var(--font-mono);
	font-size: 0.62rem;
	color: var(--muted);
	background: var(--chip);
	border: 1px solid var(--chip-brd);
	padding: 1px 6px;
	border-radius: 99px;
	vertical-align: 1px;
}
.ts-badge {
	background: var(--accent);
	color: var(--btn-ink);
	border-radius: 99px;
	font-size: 0.68rem;
	font-family: var(--font-mono);
	font-weight: 700;
	padding: 2px 8px;
}
.ts-notice {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: var(--r-md);
	background: var(--chip);
	border: 1px solid var(--chip-brd);
	font-size: 0.86rem;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ts-bar {
	flex: 0 0 90px;
	height: 7px;
	border-radius: 99px;
	background: var(--panel);
	border: 1px solid var(--line);
	overflow: hidden;
	display: block;
}
.ts-bar i {
	display: block;
	height: 100%;
	background: var(--grad-1);
}
.ts-bar.wide { flex: none; height: 8px; background: var(--panel-2); margin-top: 6px; }
.ts-av {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--btn-ink);
	display: inline-grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.7rem;
	flex: none;
}
.ts-av.big {
	width: 66px;
	height: 66px;
	font-family: var(--font-display);
	font-size: 1.6rem;
	border: 2px solid var(--panel-brd);
}
.ts-seat {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--panel-2);
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 0.85rem;
	margin-top: 6px;
}
.ts-seat.is-writing { background: var(--chip); border: 1px solid var(--chip-brd); }
.ts-seat.off { opacity: 0.6; }

/* story + live line */
.ts-prompt {
	padding: 16px 18px;
	background: var(--chip);
	border: 1px solid var(--chip-brd);
	border-left: 4px solid var(--accent);
	border-radius: var(--r-md);
	font-family: var(--font-story);
	font-size: 1.02rem;
}
.ts-story {
	margin-top: 18px;
	padding: 20px;
	background: var(--story-bg);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	font-family: var(--font-story);
	font-size: 1.04rem;
	line-height: 1.75;
}
.ts-line + .ts-line { margin-top: 0.7em; }
.ts-live {
	margin-top: 12px;
	padding: 14px 16px;
	background: var(--panel-2);
	border: 1px dashed var(--accent-2);
	border-radius: var(--r-md);
	font-family: var(--font-story);
	font-size: 1.02rem;
	line-height: 1.65;
}
.ts-live.big { font-size: 1.08rem; padding: 16px 18px; }
.ts-live .ts-name { margin-right: 6px; }
.ts-turn {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.ts-clock {
	margin-left: auto;
	font-weight: 700;
	font-size: 1.3rem;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	color: var(--accent);
}
.ts-editor {
	min-height: 84px;
	margin-top: 8px;
	padding: 16px;
	background: var(--panel-2);
	border: 1px solid var(--accent-2);
	border-radius: var(--r-md);
	font-family: var(--font-story);
	font-size: 1.04rem;
}

/* the game screen */
.ts-sess {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.ts-sess-acts { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.ts-game-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 230px;
	gap: 20px;
	margin-top: 16px;
	align-items: start;
}
.ts-main { min-width: 0; }
.ts-side { min-width: 0; }
.ts-side .ts-h { margin-top: 16px; }
.ts-side .ts-h:first-child { margin-top: 0; }
.ts-order > div { line-height: 1.6; }
.ts-chatdock {
	position: absolute;
	right: 18px;
	bottom: 0;
	width: 290px;
	background: var(--panel);
	border: 1px solid var(--panel-brd);
	border-bottom: 0;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	box-shadow: var(--panel-glow);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 0.88rem;
}
.ts-game { padding-bottom: 48px; }

/* the write screen */
.ts-write { padding: 0; }
.ts-write-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
}
.ts-write-title { min-width: 0; flex: 1 1 260px; }
.ts-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.ts-meta .ts-chip { font-size: 0.72rem; padding: 3px 9px; }
.ts-avs { display: inline-flex; margin-left: 2px; }
.ts-avs i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--panel); display: block; }
.ts-avs i + i { margin-left: -8px; }
.ts-write .ts-toolbar { padding: 10px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.ts-write-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 22px;
	padding: 22px 20px 24px;
}
.ts-doc {
	min-width: 0;
	font-family: var(--font-story);
	font-size: 16px;
	line-height: 1.75;
}
.ts-doc h2 {
	margin: 0 0 0.5em;
	font-size: 1.3em;
	line-height: 1.3;
	font-family: var(--font-display);
	color: var(--ink);
}
.ts-doc p + p { margin-top: 0.8em; }
.ts-doc.boxed {
	padding: 16px;
	border-radius: var(--r-md);
	background: color-mix(in srgb, var(--accent-2) 4%, var(--panel-2));
	border: 1px solid var(--line);
}
.ts-mark {
	border-bottom: 2px solid color-mix(in srgb, var(--accent-2) 70%, transparent);
	background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}
.ts-mark.hot {
	border-bottom-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.ts-cmts {
	min-width: 0;
	background: var(--panel);
	border: 1px solid var(--panel-brd);
	border-radius: var(--r-md);
	padding: 14px;
}
.ts-cmts-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}
.ts-cmts-head h3 { margin: 0; font-size: 0.92rem; font-family: var(--font-body); color: var(--ink); }
.ts-quote {
	margin: 12px 0 6px;
	font-size: 0.78rem;
	color: var(--muted);
	border-left: 2px solid var(--accent-2);
	padding-left: 8px;
}
.ts-cmt {
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 10px;
	margin-top: 10px;
	font-size: 0.88rem;
}
.ts-cmt.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); margin-top: 0; }
.ts-cmt.is-resolved { opacity: 0.55; }
.ts-cmt-head { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.ts-cmt-head .ts-r { font-size: 0.72rem; }
.ts-cmt p { margin: 6px 0; }
.ts-cmt-acts { display: flex; gap: 10px; font-size: 0.78rem; }
.ts-diff {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	line-height: 1.6;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 8px;
}
.ts-diff .del { color: var(--muted); text-decoration: line-through; }
.ts-diff .add { color: var(--good); }

/* comment mode */
.ts-comment {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 20px;
	align-items: start;
}
.ts-modebar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; font-size: 0.7rem; }
.ts-comment .ts-quote { margin-top: 0; }

/* ranks */
.ts-rung {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	background: var(--panel-2);
	margin-top: 8px;
}
.ts-rung-name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.ts-rung-state { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); flex: none; }
.ts-rung.current { border: 1px solid var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.ts-rung.current .ts-rung-state { color: var(--accent-2); }
.ts-rung.next { opacity: 0.55; }
.ts-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* gimmick */
.ts-d20 {
	position: absolute;
	width: 104px;
	left: auto;
	right: 5%;
	top: 8%;
	transform: rotate(-14deg);
	filter: drop-shadow(0 10px 24px var(--glow));
	pointer-events: none;
}
.ts-d20.b { width: 60px; right: 24%; top: auto; bottom: 6%; opacity: 0.75; transform: rotate(22deg); }
.ts-gimmick .ts-story { margin-top: 0; }

/* dashboard */
.ts-dash {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 24px 28px;
	align-items: start;
}
.ts-dash-main { min-width: 0; display: grid; gap: 22px; }
.ts-dash-rail { display: grid; gap: 20px; min-width: 0; }
.ts-me { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ts-me > div { flex: 1 1 240px; min-width: 0; }
.ts-me-row { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; flex-wrap: wrap; }
.ts-me-row .ts-acts { display: flex; gap: 6px; }
.ts-me-row .ts-btn { font-size: 0.78rem; padding: 6px 11px; }
.ts-me p { margin-top: 4px; font-size: 0.9rem; }
.ts-stats { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.ts-stats > div > b {
	display: block;
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1.1;
}
.ts-stats > div > span {
	color: var(--muted);
	font-size: 0.7rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.ts-streak { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; }
.ts-streak svg { width: 58px; height: 58px; flex: none; }
.ts-streak .ring-bg { fill: none; stroke: var(--panel-2); stroke-width: 6; }
.ts-streak .ring {
	fill: none;
	stroke: var(--accent);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-dasharray: 182;
	stroke-dashoffset: 52;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
}
.ts-streak .fire { font-size: 13px; text-anchor: middle; }
.ts-streak .n { font-family: var(--font-display); font-size: 12px; fill: var(--ink); text-anchor: middle; }
.ts-streak b { color: var(--ink); }
.ts-games {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 12px;
}
.ts-gcard {
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--panel-2);
	display: flex;
	flex-direction: column;
}
.ts-gcard .ts-btn { margin: 10px 14px 14px; text-align: center; }
.ts-gcard.empty {
	background: transparent;
	border: 1px dashed var(--line);
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px 14px;
	color: var(--muted);
	text-align: center;
	font-size: 0.8rem;
}
.ts-gcard.empty span:first-child { font-size: 1.5rem; }
.ts-cover { height: 66px; position: relative; overflow: hidden; }
.ts-cover.grad { background: var(--grad-1); }
.ts-cover.alt { background: linear-gradient(120deg, var(--accent-2), var(--bg-2)); }
.ts-ago {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 0.66rem;
	padding: 3px 7px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.85);
}
.ts-cover-code {
	position: absolute;
	right: 10px;
	bottom: -16px;
	font-family: var(--font-display);
	font-size: 3.6rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.28);
}
.ts-gbody { padding: 12px 14px 6px; display: grid; gap: 6px; }
.ts-gtitle { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; font-size: 0.94rem; font-weight: 600; }
.ts-gbody p { font-size: 0.8rem; font-weight: 600; }
.ts-dots { display: flex; gap: 4px; align-items: center; font-size: 0.72rem; }
.ts-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.ts-dots span { margin-left: 6px; }
.ts-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px;
	background: var(--panel);
	border: 1px solid var(--panel-brd);
	border-radius: var(--r-md);
}
.ts-nav > div {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	font-weight: 600;
	font-size: 0.9rem;
}
.ts-nav > div.on { background: var(--chip); }
.ts-nav > div > span:first-child { width: 22px; text-align: center; }
.ts-nav > div > span:nth-child(2) { flex: 1; }
.ts-quotecard {
	font-family: var(--font-display);
	font-size: 0.98rem;
	line-height: 1.55;
	background: var(--panel);
	border: 1px solid var(--panel-brd);
	border-radius: var(--r-md);
	padding: 16px;
}
.ts-bigq { font-size: 1.7rem; line-height: 1; display: block; }

/* themes */
.ts-themes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.ts-theme {
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--line);
	position: relative;
	aspect-ratio: 16 / 10;
	cursor: pointer;
	transition: border-color var(--tsn), transform var(--tsn);
}
.ts-theme:hover { transform: translateY(-2px); }
.ts-theme.on { border-color: var(--accent-2); }
.ts-theme img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-theme-name {
	position: absolute;
	left: 8px;
	bottom: 7px;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.ts-theme-on {
	position: absolute;
	right: 7px;
	top: 7px;
	font-size: 0.6rem;
	background: var(--accent);
	color: var(--btn-ink);
	border-radius: 99px;
	padding: 2px 7px;
	font-weight: 700;
	display: none;
}
.ts-theme.on .ts-theme-on { display: block; }
.ts-theme.more {
	display: grid;
	place-items: center;
	background: var(--panel-2);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-align: center;
	padding: 8px;
	cursor: default;
}

/* ---- Narrow screens: one column, no sticky claim ---- */
@media (max-width: 900px) {
	.home-start,
	.tour-panel {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 40px 16px;
	}
	.tour-claim { position: static; }
	.tour-bar { padding: 10px 16px; }
	.tour-rail { display: none; }
	.home-close { padding: 0 16px; }
	.ts-game-cols,
	.ts-write-cols,
	.ts-comment,
	.ts-dash {
		grid-template-columns: 1fr;
	}
	.ts-games { grid-template-columns: 1fr; }
	.ts-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-chatdock { display: none; }
	.ts-game { padding-bottom: 22px; }
}

/* ?og=1 — the Open Graph banner capture (scripts/og-banner.sh): the hero
   with its title and tagline only; buttons, foot bar and the tour hidden. */
.og-capture :is(#heroBtns, #heroMore, #footBar, #tourBar, .home-start, #tour, .home-close) { display: none !important; }
.og-capture .hero-tag { font-size: 1.15rem; }
.og-capture #heroCaret { display: none; }

/* the homepage tour bar sits the theme switch a touch higher */
.home-page .theme-switch button {
	margin-top: -8px;
}
