/*
 * Tatakte Player — Frontend-Styles
 *
 * Volle Tatakte-Akten-Optik im Vollbild-Modus.
 * Wird auf der Spielen-Seite (page-game.php) geladen.
 */

/* CSS-Variablen */
:root {
	--tk-accent: #8B0000;
	--tk-accent-dark: #6B0000;
	--tk-stamp: #C0392B;
	--tk-dark: #2C3E50;
	--tk-darker: #1A1A1A;
	--tk-beige: #F0EDE5;
	--tk-paper: #FAFAF7;
	--tk-ink: #1A1A1A;
	--tk-muted: #6B7280;
	--tk-border: #D1CFC8;
	--tk-border-light: #E8E5DD;
	--tk-typewriter: 'Special Elite', 'Courier New', Courier, monospace;
	--tk-handwriting: 'Caveat', 'Brush Script MT', cursive;
	--tk-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Root-Container */
#tatakte-game-app {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: var(--tk-ui);
	color: var(--tk-ink);
	background: var(--tk-paper);
	display: flex;
	flex-direction: column;
}

/* Loading-State */
.tk-loading {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
}
.tk-loading::before {
	content: '';
	width: 40px;
	height: 40px;
	border: 4px solid var(--tk-border);
	border-top-color: var(--tk-accent);
	border-radius: 50%;
	animation: tk-spin 0.7s linear infinite;
}
@keyframes tk-spin { to { transform: rotate(360deg); } }

/* =========================================================
   HUB / MENU (Spielen-Übersicht)
   ========================================================= */
.tk-hub {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
	width: 100%;
}
.tk-hub-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 2rem;
	gap: 1rem;
	flex-wrap: wrap;
}
.tk-hub-header h1 {
	font-family: var(--tk-typewriter);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0;
}
.tk-hub-section { margin: 0 0 3rem; }
.tk-hub-section h2 {
	font-family: var(--tk-typewriter);
	font-size: 1.5rem;
	margin: 0 0 1rem;
	border-bottom: 2px solid var(--tk-accent);
	padding-bottom: 0.5rem;
}
.tk-hub-empty {
	color: var(--tk-muted);
	background: var(--tk-beige);
	border: 1px dashed var(--tk-border);
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
}

/* Fall-Karten */
.tk-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}
.tk-card {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.15s, box-shadow 0.15s;
}
.tk-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.tk-card-cover {
	background: var(--tk-beige);
	height: 160px;
	background-size: cover;
	background-position: center;
	position: relative;
	border-bottom: 3px solid var(--tk-accent);
}
.tk-card-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--tk-muted);
	font-family: var(--tk-typewriter);
	font-size: 3rem;
}
.tk-card-body {
	padding: 1rem 1.25rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.tk-card-title {
	font-family: var(--tk-typewriter);
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: var(--tk-darker);
}
.tk-card-tags {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin: 0 0 0.75rem;
}
.tk-tag {
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 3px;
	background: var(--tk-beige);
	color: var(--tk-darker);
	letter-spacing: 0.02em;
}
.tk-tag-price {
	background: var(--tk-accent);
	color: var(--tk-paper);
	font-weight: 600;
}
.tk-tag-active {
	background: #d1fae5;
	color: #065f46;
}
.tk-card-description {
	color: var(--tk-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	flex: 1;
}
.tk-card-actions {
	display: flex;
	gap: 0.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.tk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.25rem;
	font-family: var(--tk-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
	min-height: 40px;
	text-decoration: none;
	text-align: center;
	background: transparent;
}
.tk-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tk-btn-primary {
	background: var(--tk-accent);
	color: var(--tk-paper);
	border-color: var(--tk-accent);
}
.tk-btn-primary:hover:not(:disabled) {
	background: var(--tk-accent-dark);
	border-color: var(--tk-accent-dark);
	transform: translateY(-1px);
}
.tk-btn-ghost {
	background: transparent;
	color: var(--tk-darker);
	border-color: var(--tk-darker);
}
.tk-btn-ghost:hover:not(:disabled) {
	background: var(--tk-darker);
	color: var(--tk-paper);
}
.tk-btn-quiet {
	background: transparent;
	color: var(--tk-muted);
	border-color: transparent;
	padding: 0.5rem 0.8rem;
}
.tk-btn-quiet:hover { color: var(--tk-accent); }
.tk-btn-block { width: 100%; }
.tk-btn-sm { padding: 0.4rem 0.85rem; min-height: 32px; font-size: 0.85rem; }

/* =========================================================
   GAME VIEW (Vollbild-Spielmodus)
   ========================================================= */
body.tatakte-game-fullscreen { overflow-x: hidden; }
.tk-game {
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(139, 0, 0, 0.018) 28px, rgba(139, 0, 0, 0.018) 29px),
		linear-gradient(180deg, #FAFAF7 0%, #F4F0E8 100%);
}

/* Top-Bar */
.tk-topbar {
	background: var(--tk-darker);
	color: var(--tk-paper);
	border-bottom: 3px solid var(--tk-accent);
	padding: 0.75rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.tk-topbar-title {
	font-family: var(--tk-typewriter);
	font-size: 1rem;
	margin: 0;
	color: var(--tk-paper);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tk-topbar-controls {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.tk-topbar .tk-btn {
	color: var(--tk-paper);
	border-color: rgba(250, 250, 247, 0.3);
}
.tk-topbar .tk-btn:hover {
	background: var(--tk-accent);
	border-color: var(--tk-accent);
}
.tk-topbar-stat {
	font-size: 0.85rem;
	color: rgba(250, 250, 247, 0.85);
	font-family: var(--tk-typewriter);
	letter-spacing: 0.04em;
}
.tk-topbar-stat strong { color: var(--tk-paper); }

/* Main Content Layout */
.tk-game-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
	/* v1.8.0: vorher overflow:hidden — dadurch waren lange Inhalte (z. B. eine
	   Befragung) im Vollbild abgeschnitten und nicht scrollbar. */
	overflow: visible;
	min-width: 0;
}
@media (min-width: 1000px) {
	.tk-game-main {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

/* Scene-Bereich (Mitte) */
.tk-scene {
	padding: 1.5rem 1.25rem 4rem;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	overflow-y: auto;
}
.tk-scene-header {
	margin: 0 0 1.5rem;
}
.tk-scene-type-badge {
	display: inline-block;
	font-family: var(--tk-typewriter);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tk-accent);
	background: rgba(139, 0, 0, 0.08);
	padding: 0.3rem 0.8rem;
	border: 1px dashed var(--tk-accent);
	border-radius: 3px;
	margin: 0 0 0.75rem;
}
.tk-scene-title {
	font-family: var(--tk-typewriter);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.5rem;
	color: var(--tk-darker);
}
.tk-scene-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--tk-ink);
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-left: 4px solid var(--tk-accent);
	padding: 1.5rem;
	border-radius: 4px;
	margin: 0 0 1.5rem;
}
.tk-scene-content p { margin: 0 0 1rem; }
.tk-scene-content p:last-child { margin-bottom: 0; }

/* Location-Box im Scene */
.tk-location-card,
.tk-character-card {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-radius: 8px;
	overflow: hidden;
	margin: 0 0 1.5rem;
}
.tk-location-image,
.tk-character-image {
	background: var(--tk-beige);
	background-size: cover;
	background-position: center;
	height: 180px;
	border-bottom: 3px solid var(--tk-accent);
}
.tk-character-image { height: 220px; }
.tk-location-body,
.tk-character-body {
	padding: 1rem 1.25rem 1.25rem;
}
.tk-location-body h3,
.tk-character-body h3 {
	font-family: var(--tk-typewriter);
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}
.tk-character-meta {
	font-size: 0.875rem;
	color: var(--tk-muted);
	margin: 0 0 0.5rem;
}
.tk-character-alibi {
	background: var(--tk-beige);
	padding: 0.75rem;
	border-radius: 4px;
	font-size: 0.9375rem;
	margin-top: 0.75rem;
}
.tk-character-alibi strong { display: block; margin-bottom: 0.25rem; font-family: var(--tk-typewriter); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Choices */
.tk-choices {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0 2rem;
}
.tk-choice {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border);
	border-radius: 4px;
	padding: 0.875rem 1rem;
	font-size: 0.9375rem;
	font-family: var(--tk-ui);
	text-align: left;
	cursor: pointer;
	transition: all 0.15s;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.tk-choice:hover {
	border-color: var(--tk-accent);
	background: rgba(139, 0, 0, 0.04);
	transform: translateX(2px);
}
.tk-choice::before {
	content: '→';
	color: var(--tk-accent);
	font-weight: bold;
}

/* Hint-Box */
.tk-hint-box {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-left: 4px solid #D97706;
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin: 1rem 0;
	color: #78350F;
}
.tk-hint-box-title {
	font-weight: 600;
	font-family: var(--tk-typewriter);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	margin: 0 0 0.4rem;
}

/* Hint-Buttons-Reihe */
.tk-hint-buttons {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0;
	padding-top: 1rem;
	border-top: 1px solid var(--tk-border-light);
}
.tk-hint-buttons span {
	font-size: 0.85rem;
	color: var(--tk-muted);
	margin-right: 0.5rem;
	display: flex;
	align-items: center;
}

/* =========================================================
   SIDEBAR (Inventar + Notizen)
   ========================================================= */
.tk-sidebar {
	background: var(--tk-beige);
	border-left: 1px solid var(--tk-border);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 60px);
	overflow: hidden;
}
.tk-sidebar-tabs {
	display: flex;
	background: var(--tk-darker);
}
.tk-sidebar-tab {
	flex: 1;
	background: transparent;
	border: 0;
	color: rgba(250, 250, 247, 0.7);
	padding: 0.75rem;
	cursor: pointer;
	font-size: 0.85rem;
	font-family: var(--tk-typewriter);
	letter-spacing: 0.04em;
	transition: all 0.15s;
	border-bottom: 3px solid transparent;
}
.tk-sidebar-tab.is-active {
	color: var(--tk-paper);
	border-bottom-color: var(--tk-accent);
	background: rgba(139, 0, 0, 0.18);
}
.tk-sidebar-content {
	overflow-y: auto;
	padding: 1rem;
	flex: 1;
}
.tk-sidebar-empty {
	color: var(--tk-muted);
	font-style: italic;
	font-size: 0.9rem;
	padding: 1rem;
	text-align: center;
}

/* Inventar */
.tk-inventory-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.tk-evidence-item {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-left: 3px solid var(--tk-accent);
	padding: 0.6rem 0.75rem;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.15s;
	font-size: 0.875rem;
}
.tk-evidence-item:hover {
	border-color: var(--tk-accent);
	transform: translateX(-1px);
}
.tk-evidence-item-title {
	font-weight: 600;
	display: block;
	margin: 0 0 0.2rem;
}
.tk-evidence-item-type {
	font-size: 0.75rem;
	color: var(--tk-muted);
}
.tk-evidence-examined::after {
	content: '✓';
	color: #059669;
	margin-left: 0.4rem;
	font-weight: bold;
}

/* Notizen */
.tk-notes-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0 0 1rem;
}
.tk-note {
	background: #fff8c5;
	border: 1px solid #fde68a;
	padding: 0.6rem 0.75rem;
	border-radius: 3px;
	font-size: 0.875rem;
	font-family: var(--tk-handwriting);
	font-size: 1.0625rem;
	color: #422006;
	position: relative;
	transform: rotate(-0.3deg);
}
.tk-note-time {
	font-size: 0.7rem;
	color: var(--tk-muted);
	font-family: var(--tk-ui);
	display: block;
	margin-top: 0.4rem;
}
.tk-note-delete {
	position: absolute;
	top: 4px;
	right: 4px;
	background: transparent;
	border: 0;
	color: var(--tk-muted);
	cursor: pointer;
	font-size: 0.85rem;
	padding: 4px;
	opacity: 0;
	transition: opacity 0.15s;
}
.tk-note:hover .tk-note-delete { opacity: 1; }
.tk-note-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tk-note-form textarea {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--tk-border);
	border-radius: 3px;
	resize: vertical;
	min-height: 60px;
	font-family: var(--tk-ui);
	font-size: 0.875rem;
}

/* =========================================================
   MODAL (Beweis-Untersuchung)
   ========================================================= */
.tk-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.7);
	backdrop-filter: blur(3px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.tk-modal {
	background: var(--tk-paper);
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	border: 1px solid var(--tk-border);
}
.tk-modal-header {
	background: var(--tk-darker);
	color: var(--tk-paper);
	padding: 1rem 1.25rem;
	border-bottom: 3px solid var(--tk-accent);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tk-modal-header h3 {
	font-family: var(--tk-typewriter);
	margin: 0;
	font-size: 1.125rem;
}
.tk-modal-close {
	background: transparent;
	border: 0;
	color: var(--tk-paper);
	cursor: pointer;
	font-size: 1.5rem;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tk-modal-body {
	padding: 1.25rem;
}
.tk-modal-image {
	width: 100%;
	max-height: 400px;
	object-fit: contain;
	border-radius: 4px;
	background: var(--tk-beige);
	margin: 0 0 1rem;
}
.tk-evidence-examination {
	background: #FFFBEB;
	border-left: 4px solid #D97706;
	padding: 1rem;
	border-radius: 4px;
	margin-top: 1rem;
}
.tk-evidence-examination strong {
	display: block;
	font-family: var(--tk-typewriter);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
	color: #78350F;
}

/* =========================================================
   FINALE-VIEW
   ========================================================= */
.tk-finale {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 4rem;
}
.tk-finale-question {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-left: 4px solid var(--tk-accent);
	padding: 1.5rem;
	border-radius: 4px;
	margin: 0 0 1.25rem;
}
.tk-finale-question h3 {
	font-family: var(--tk-typewriter);
	margin: 0 0 1rem;
	font-size: 1.125rem;
}
.tk-finale-options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.tk-finale-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	background: var(--tk-paper);
	border: 1px solid var(--tk-border);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
}
.tk-finale-option:hover { border-color: var(--tk-accent); }
.tk-finale-option input[type="radio"] {
	accent-color: var(--tk-accent);
	width: 18px;
	height: 18px;
}

/* Result-Screen */
.tk-result {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 1.25rem;
	text-align: center;
}
.tk-result-stamp {
	display: inline-block;
	font-family: var(--tk-typewriter);
	font-size: clamp(2rem, 6vw, 3.5rem);
	color: var(--tk-stamp);
	border: 6px solid var(--tk-stamp);
	padding: 1rem 2rem;
	transform: rotate(-7deg);
	margin: 0 0 2rem;
	letter-spacing: 0.06em;
	opacity: 0.9;
}
.tk-result-stamp.tk-result-failed {
	color: var(--tk-muted);
	border-color: var(--tk-muted);
}
.tk-result-title {
	font-family: var(--tk-typewriter);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 1rem;
}
.tk-result-stats {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-radius: 8px;
	padding: 1.5rem;
	margin: 0 0 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
}
.tk-result-stat {
	text-align: center;
}
.tk-result-stat-value {
	font-family: var(--tk-typewriter);
	font-size: 1.75rem;
	color: var(--tk-darker);
	display: block;
}
.tk-result-stat-label {
	font-size: 0.8rem;
	color: var(--tk-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.tk-result-detail {
	background: var(--tk-paper);
	border: 1px solid var(--tk-border-light);
	border-radius: 4px;
	padding: 1rem;
	text-align: left;
	margin: 0 0 0.75rem;
}
.tk-result-detail.is-correct { border-left: 4px solid #059669; }
.tk-result-detail.is-wrong   { border-left: 4px solid var(--tk-accent); }
.tk-result-detail h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.tk-result-detail p { margin: 0.2rem 0; font-size: 0.9rem; }

/* Solution-Box im Result */
.tk-result-solution {
	background: var(--tk-beige);
	border: 1px dashed var(--tk-border);
	padding: 1.25rem;
	border-radius: 4px;
	margin: 1.5rem 0;
	text-align: left;
}
.tk-result-solution strong {
	font-family: var(--tk-typewriter);
	display: block;
	margin-bottom: 0.5rem;
	letter-spacing: 0.04em;
}

/* =========================================================
   MESSAGES (toast / banner)
   ========================================================= */
.tk-message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin: 0 0 1rem;
	border-left: 4px solid;
	font-size: 0.9rem;
}
.tk-message-success { background: #ECFDF5; border-color: #059669; color: #064E3B; }
.tk-message-error   { background: #FEF2F2; border-color: var(--tk-accent); color: #7F1D1D; }
.tk-message-info    { background: #EFF6FF; border-color: #2563EB; color: #1E3A8A; }

/* Sidebar mobile: hide by default, show via toggle */
@media (max-width: 999px) {
	.tk-sidebar {
		max-height: none;
		border-left: 0;
		border-top: 1px solid var(--tk-border);
	}
}

/* =============================================================
   v1.3.4 — Sidebar-Reiter kompakt + Inhalt vollständig scrollbar
   Vorher: 4–5 Reiter nebeneinander liefen aus der Box (erster Reiter
   abgeschnitten, horizontale Scrollleiste versteckt) und die Liste
   darunter reichte über den Fensterrand hinaus.
   Jetzt: Raster mit gleich breiten Reitern (Symbol oben, Text darunter,
   Zähler als Plakette), bricht bei Bedarf in eine zweite Zeile um.
   Die Höhe der Sidebar setzt das Spiel-Script passend zum Fenster.
   ============================================================= */
#tatakte-game-app .tk-sidebar-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
	overflow: visible;
	background: var(--tk-darker, #0A0A0A);
	flex-shrink: 0;
}
#tatakte-game-app .tk-sidebar-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.5rem 0.25rem 0.45rem;
	font-size: 0.72rem;
	line-height: 1.15;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: rgba(250, 250, 247, 0.72);
	cursor: pointer;
}
#tatakte-game-app .tk-sidebar-tab:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}
#tatakte-game-app .tk-sidebar-tab.is-active {
	color: #fff;
	border-bottom-color: var(--tk-accent, #8B0000);
	background: rgba(139, 0, 0, 0.22);
}
#tatakte-game-app .tk-tab-icon {
	position: relative;
	font-size: 1.05rem;
	line-height: 1;
}
#tatakte-game-app .tk-tab-icon .tk-sidebar-tab-badge {
	position: absolute;
	top: -0.45rem;
	right: -0.95rem;
	font-size: 0.6rem;
	min-width: 1.05rem;
	padding: 0.05rem 0.3rem;
	line-height: 1.3;
}
#tatakte-game-app .tk-tab-label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
#tatakte-game-app .tk-sidebar-content {
	flex: 1 1 auto;
	min-height: 0; /* nötig, damit der Inhalt innerhalb der Flex-Spalte scrollt */
	overflow-y: auto;
	overscroll-behavior: contain;
}
@media (min-width: 768px) {
	#tatakte-game-app .tk-sidebar {
		overflow: hidden;
	}
}
/* Orte-Liste: etwas kompakter */
#tatakte-game-app .tk-location-list .tk-evidence-item {
	cursor: default;
}

/* =============================================================
   v1.3.6 — SPIELMODUS (Vollbild) + HANDY-ANSICHT
   Spielmodus: html.tk-playmode (gesetzt vom Spiel-Script). Die App liegt
   dann als Vollfläche über der Website — funktioniert auch auf dem iPhone,
   wo Webseiten kein echtes Browser-Vollbild bekommen.
   Handy (< 768 px): Aktionen im Menü (☰), untere Navigation statt langer
   Seitenleiste unter der Szene. Umschalten über data-mobile-panel am
   App-Container (kein display-Toggle per !important).
   ============================================================= */
html.tk-playmode,
html.tk-playmode body {
	overflow: hidden;
}
html.tk-playmode #wpadminbar {
	display: none;
}
html.tk-playmode #tatakte-game-app {
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	max-width: none;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: var(--tk-paper, #FAFAF7);
	padding-top: env(safe-area-inset-top, 0px);
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
	box-sizing: border-box;
	--tk-app-topbar-h: 0px;
}
html.tk-playmode #tatakte-game-app .tk-app-topbar {
	display: none;
}
#tatakte-game-app .tk-fs-btn[aria-pressed="true"] {
	background: rgba(139, 0, 0, 0.35);
	color: #fff;
}

/* Menü-Knopf und untere Navigation nur auf dem Handy */
#tatakte-game-app .tk-topbar-menu-btn,
#tatakte-game-app .tk-mobile-nav {
	display: none;
}

@media (max-width: 767px) {
	/* Spiel-Topbar: nur Zähler, Vollbild und Menü sichtbar */
	#tatakte-game-app .tk-topbar-controls[data-compact] {
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: 0.3rem;
	}
	#tatakte-game-app .tk-topbar-controls[data-compact] > .tk-btn:not(.tk-keep) {
		display: none;
	}
	#tatakte-game-app .tk-topbar-menu-btn {
		display: inline-flex;
	}

	/* Untere Navigation */
	#tatakte-game-app .tk-mobile-nav {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 950;
		background: var(--tk-darker, #0A0A0A);
		border-top: 2px solid var(--tk-accent, #8B0000);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	#tatakte-game-app[data-mobile-panel] .tk-game {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}
	#tatakte-game-app .tk-mnav-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.15rem;
		min-height: 56px;
		padding: 0.35rem 0.1rem;
		border: 0;
		border-top: 3px solid transparent;
		background: transparent;
		color: rgba(250, 250, 247, 0.72);
		font-size: 0.7rem;
		line-height: 1.1;
		cursor: pointer;
	}
	#tatakte-game-app .tk-mnav-item.is-active {
		color: #fff;
		border-top-color: var(--tk-accent, #8B0000);
		background: rgba(139, 0, 0, 0.22);
	}
	#tatakte-game-app .tk-mnav-icon {
		position: relative;
		font-size: 1.2rem;
		line-height: 1;
	}
	#tatakte-game-app .tk-mnav-badge {
		position: absolute;
		top: -0.4rem;
		right: -0.9rem;
		background: var(--tk-accent, #8B0000);
		color: #fff;
		font-size: 0.6rem;
		font-weight: 700;
		min-width: 1.05rem;
		padding: 0.05rem 0.3rem;
		border-radius: 999px;
		line-height: 1.3;
	}

	/* Panel „Fall" zeigt die Szene, Panel „sidebar" den gewählten Bereich */
	#tatakte-game-app[data-mobile-panel="scene"] .tk-game-main > .tk-sidebar {
		display: none;
	}
	#tatakte-game-app[data-mobile-panel="sidebar"] .tk-game-main > :not(.tk-sidebar) {
		display: none;
	}
	#tatakte-game-app[data-mobile-panel="sidebar"] .tk-sidebar {
		border: 0;
		border-radius: 0;
		max-height: none;
		min-height: calc(100dvh - 180px);
		position: static;
	}
	#tatakte-game-app[data-mobile-panel="sidebar"] .tk-sidebar-tabs {
		display: none; /* ersetzt durch die untere Navigation */
	}
	#tatakte-game-app .tk-sidebar-content {
		max-height: none;
		overflow: visible;
	}

	/* Szene luftiger und gut lesbar */
	#tatakte-game-app .tk-scene {
		padding: 1rem 0.9rem 1.5rem;
		font-size: 1rem;
	}
	#tatakte-game-app .tk-choices .tk-choice {
		min-height: 48px;
		width: 100%;
	}

	/* Handy-Menü als Bottom-Sheet */
	#tatakte-game-app .tk-mobile-menu-backdrop {
		align-items: flex-end;
		justify-content: stretch;
		padding: 0;
	}
	#tatakte-game-app .tk-mobile-menu {
		width: 100%;
		max-height: 80dvh;
		overflow-y: auto;
		background: var(--tk-paper, #FAFAF7);
		border-radius: 14px 14px 0 0;
		padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
	}
	#tatakte-game-app .tk-mobile-menu-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 0.5rem;
	}
	#tatakte-game-app .tk-mobile-menu-actions {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}
	#tatakte-game-app .tk-mobile-menu-actions .tk-btn {
		width: 100%;
		min-height: 46px;
		justify-content: flex-start;
		font-size: 0.95rem;
		color: var(--tk-ink, #1a1a1a);
		background: #fff;
		border: 1px solid var(--tk-border-light, #E8E5DD);
	}
}

/* =============================================================
   v1.3.8 — Orte-Liste: eigener Standort + direkt erreichbare Orte
   ============================================================= */
#tatakte-game-app .tk-loc-section-title {
	margin: 0.9rem 0 0.4rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tk-muted, #6b6b6b);
	font-weight: 700;
}
#tatakte-game-app button.tk-loc-item {
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: #fff;
}
#tatakte-game-app button.tk-loc-item:hover,
#tatakte-game-app button.tk-loc-item:focus-visible {
	background: rgba(139, 0, 0, 0.06);
	outline: 2px solid var(--tk-accent, #8B0000);
	outline-offset: -2px;
}
#tatakte-game-app .tk-loc-current {
	border-left-color: #2e7d32;
	background: rgba(46, 125, 50, 0.07);
}
#tatakte-game-app .tk-loc-go {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--tk-accent, #8B0000);
}

/* =============================================================
   v1.4.1 — Fehler melden
   ============================================================= */
#tatakte-game-app .tk-app-topbar-slot-left {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
#tatakte-game-app .tk-app-topbar-bug {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid rgba(250, 250, 247, 0.35);
	border-radius: 4px;
	background: transparent;
	color: var(--tk-paper, #FAFAF7);
	font: inherit;
	font-size: 0.75rem;
	cursor: pointer;
	white-space: nowrap;
}
#tatakte-game-app .tk-app-topbar-bug:hover,
#tatakte-game-app .tk-app-topbar-bug:focus-visible {
	background: rgba(250, 250, 247, 0.12);
	outline: 2px solid var(--tk-accent, #8B0000);
}
@media (max-width: 600px) {
	#tatakte-game-app .tk-app-topbar-bug-label { display: none; }
}
/* In der Spielleiste nur im Vollbild zeigen (sonst sitzt der Knopf oben links in der App-Leiste) */
#tatakte-game-app .tk-topbar .tk-bug-in-game { display: none; }
html.tk-playmode #tatakte-game-app .tk-topbar .tk-bug-in-game { display: inline-flex; }
#tatakte-game-app .tk-modal-bug .tk-form-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.3rem;
}
#tatakte-game-app .tk-modal-bug .tk-input {
	width: 100%;
	box-sizing: border-box;
}

/* =============================================================
   v1.4.2 — Gemeinsames Finale
   ============================================================= */
#tatakte-game-app .tk-finale-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin: 0.75rem auto;
	max-width: 1200px;
	padding: 0.8rem 1rem;
	background: #fff8e1;
	border: 2px solid #8B0000;
	border-radius: 8px;
	box-sizing: border-box;
}
#tatakte-game-app .tk-finale-banner-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
#tatakte-game-app .tk-finale-tally { font-weight: 700; }
#tatakte-game-app #tk-finale-countdown { font-variant-numeric: tabular-nums; }
#tatakte-game-app .tk-finale-mine { font-size: 0.85rem; }
#tatakte-game-app .tk-finale-voting { margin-top: 1.5rem; }
#tatakte-game-app .tk-finale-voting-intro,
#tatakte-game-app .tk-finale-progress { font-size: 0.9rem; color: var(--tk-muted, #6b6b6b); }
#tatakte-game-app .tk-finale-vote-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	text-align: left;
	font: inherit;
	cursor: pointer;
	background: #fff;
	min-height: 44px;
}
#tatakte-game-app .tk-finale-vote-btn.is-mine {
	border-color: var(--tk-accent, #8B0000);
	background: rgba(139, 0, 0, 0.07);
	font-weight: 600;
}
#tatakte-game-app .tk-finale-count {
	min-width: 1.8rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
}
#tatakte-game-app .tk-finale-host-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
	margin-top: 1.25rem;
}

/* =============================================================
   v1.4.3 — Szenen-Layout: Person + Ort nebeneinander, darunter das Geschehen
   ============================================================= */
#tatakte-game-app .tk-scene-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1rem 0 1.25rem;
}
#tatakte-game-app .tk-scene-cards-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
	#tatakte-game-app .tk-scene-cards { grid-template-columns: minmax(0, 1fr); }
}
#tatakte-game-app .tk-scene-card,
#tatakte-game-app .tk-scene-now,
#tatakte-game-app .tk-dialogues {
	background: #fff;
	border: 1px solid var(--tk-border-light, #E8E5DD);
	border-radius: 8px;
	padding: 1rem 1.1rem;
	box-sizing: border-box;
	min-width: 0;
}
#tatakte-game-app .tk-scene-card-person { border-top: 4px solid #6b3fa0; }
#tatakte-game-app .tk-scene-card-place { border-top: 4px solid #8B0000; }
#tatakte-game-app .tk-scene-now { border-left: 4px solid #8B0000; margin-bottom: 1.25rem; }
#tatakte-game-app .tk-scene-card-head {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	margin-bottom: 0.6rem;
}
#tatakte-game-app .tk-scene-card-head h3 { margin: 0.1rem 0 0.15rem; font-size: 1.15rem; }
#tatakte-game-app .tk-scene-card-kicker {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tk-muted, #6b6b6b);
	font-weight: 700;
	margin-bottom: 0.3rem;
}
#tatakte-game-app .tk-scene-card-body { font-size: 0.95rem; }
#tatakte-game-app .tk-scene-card-body > p:last-child { margin-bottom: 0; }

/* Kleines Bild mit Großansicht per Klick */
#tatakte-game-app .tk-card-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 1px solid var(--tk-border-light, #E8E5DD);
	border-radius: 6px;
	overflow: hidden;
	background: #f3f1ec;
	cursor: zoom-in;
}
#tatakte-game-app .tk-card-thumb-round { border-radius: 50%; }
#tatakte-game-app .tk-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tatakte-game-app .tk-card-thumb-zoom {
	position: absolute;
	right: 3px;
	bottom: 3px;
	font-size: 0.7rem;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 1px 4px;
	line-height: 1.3;
}
#tatakte-game-app .tk-card-thumb:focus-visible { outline: 3px solid var(--tk-accent, #8B0000); outline-offset: 2px; }
#tatakte-game-app .tk-lightbox-caption { color: #fff; margin-top: 0.6rem; font-size: 0.95rem; }

/* Gespräch als Verlauf */
#tatakte-game-app .tk-dialogues { margin: 0 0 1.25rem; }
#tatakte-game-app .tk-dialogue {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 0.75rem 0 0;
	padding: 0;
	border: 0;
	background: none;
}
#tatakte-game-app .tk-dialogue-avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
#tatakte-game-app .tk-dialogue-avatar-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #6b3fa0;
	color: #fff;
	font-weight: 700;
}
#tatakte-game-app .tk-dialogue-bubble {
	flex: 1 1 auto;
	min-width: 0;
	background: #f6f3ee;
	border-radius: 0 10px 10px 10px;
	padding: 0.6rem 0.85rem;
}
#tatakte-game-app .tk-dialogue-speaker { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.2rem; }
#tatakte-game-app .tk-dialogue-text > p { margin: 0 0 0.4rem; }
#tatakte-game-app .tk-dialogue-text > p:last-child { margin-bottom: 0; }
#tatakte-game-app .tk-dialogue-followups {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
	font-size: 0.82rem;
	color: var(--tk-muted, #6b6b6b);
	align-items: center;
}
#tatakte-game-app .tk-dialogue-followup {
	border: 1px dashed var(--tk-border, #cfc9bd);
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
	background: #fff;
}

/* Schließen-X im Gast-Beitritt */
#tk-guest-modal-overlay .tk-gm { position: relative; }
#tk-guest-modal-overlay .tk-gm-close {
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
	width: 2.2rem;
	height: 2.2rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}
#tk-guest-modal-overlay .tk-gm-close:hover,
#tk-guest-modal-overlay .tk-gm-close:focus-visible { background: rgba(0, 0, 0, 0.08); }

/* =============================================================
   v1.5.0 — Interaktive Befragung
   ============================================================= */
#tatakte-game-app .tk-iq {
	background: #fff;
	border: 1px solid var(--tk-border-light, #E8E5DD);
	border-top: 4px solid #6b3fa0;
	border-radius: 8px;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
}
#tatakte-game-app .tk-iq-note { font-size: 0.85rem; color: var(--tk-muted, #6b6b6b); margin: 0.4rem 0; }
#tatakte-game-app .tk-iq-head { display: flex; flex-direction: column; margin-bottom: 0.5rem; }
#tatakte-game-app .tk-iq-transcript {
	max-height: 420px;
	overflow-y: auto;
	padding: 0.25rem 0.1rem 0.5rem;
	border-bottom: 1px solid var(--tk-border-light, #E8E5DD);
	margin-bottom: 0.75rem;
}
#tatakte-game-app .tk-iq-q {
	margin: 0.75rem 0 0 auto;
	max-width: 85%;
	width: fit-content;
	background: #1a1a1a;
	color: #fff;
	border-radius: 10px 10px 0 10px;
	padding: 0.5rem 0.8rem;
	font-size: 0.92rem;
}
#tatakte-game-app .tk-dialogue-bubble.is-key { outline: 2px solid #c9a227; }
#tatakte-game-app .tk-iq-key { font-size: 0.75rem; font-weight: 700; color: #7a5b00; margin-top: 0.3rem; }
#tatakte-game-app .tk-iq-questions { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
#tatakte-game-app .tk-iq-question {
	text-align: left;
	font: inherit;
	padding: 0.6rem 0.8rem;
	min-height: 44px;
	border: 1px solid var(--tk-border, #cfc9bd);
	border-radius: 6px;
	background: #faf8f4;
	cursor: pointer;
}
#tatakte-game-app .tk-iq-question:hover:not([disabled]) { border-color: #6b3fa0; background: #f3eefa; }
#tatakte-game-app .tk-iq-question.is-asked { opacity: 0.55; cursor: default; }
#tatakte-game-app .tk-iq-present { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
#tatakte-game-app .tk-iq-present select { min-width: 12rem; max-width: 100%; padding: 0.4rem; }
#tatakte-game-app .tk-iq-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
#tatakte-game-app .tk-protocols { margin-bottom: 1rem; }
#tatakte-game-app .tk-protocol { border: 1px solid var(--tk-border-light, #E8E5DD); border-radius: 6px; background: #fff; margin-bottom: 0.5rem; }
#tatakte-game-app .tk-protocol summary { cursor: pointer; padding: 0.5rem 0.7rem; font-weight: 600; font-size: 0.9rem; }
#tatakte-game-app .tk-protocol-by { font-weight: 400; color: var(--tk-muted, #6b6b6b); }
#tatakte-game-app .tk-protocol-line { padding: 0.45rem 0.7rem; border-top: 1px solid #f0ece4; font-size: 0.85rem; }
#tatakte-game-app .tk-protocol-line.is-key { background: #fff8e1; }
#tatakte-game-app .tk-protocol-q { font-weight: 600; }
#tatakte-game-app .tk-protocol-a > p { margin: 0.2rem 0 0; }

/* v1.8.0: Spielleiste klebt unter allen festen Leisten (gemessen in fitSidebar) */
#tatakte-game-app .tk-game > .tk-topbar { top: var(--tk-sticky-top, 0px); }
#tatakte-game-app .tk-scene { min-width: 0; }
html.tk-playmode #tatakte-game-app { --tk-sticky-top: 0px; }


/* v1.9.0 — Fallgeschichte */
#tatakte-game-app .tk-story-modal { position: relative; max-width: 680px; padding: 1.5rem 1.5rem 1.25rem; }
#tatakte-game-app .tk-story-head h2 { margin: 0.15rem 0 0.75rem; font-family: var(--tk-typewriter, monospace); }
#tatakte-game-app .tk-story-body { font-size: 1rem; line-height: 1.65; max-height: 60vh; overflow-y: auto; }
#tatakte-game-app .tk-story-body p:first-child { margin-top: 0; }
#tatakte-game-app .tk-story-actions { margin-top: 1.25rem; display: flex; justify-content: flex-end; }

/* v1.10.0 — Befragung 2.0: Stimmung, Lügen, Bedienung auf allen Geräten */
#tatakte-game-app .tk-iq-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
#tatakte-game-app .tk-iq-mood {
	margin-left: auto; font-size: 0.8rem; padding: 0.1rem 0.6rem; border-radius: 999px;
	border: 1px solid var(--tk-border, #cfc9bd); background: #fff; white-space: nowrap;
}
#tatakte-game-app .tk-iq-mood-good { border-color: #2e7d32; color: #2e7d32; }
#tatakte-game-app .tk-iq-mood-bad { border-color: #8B0000; color: #8B0000; }
#tatakte-game-app .tk-dialogue-bubble.is-lie { outline: 2px solid #8B0000; }
#tatakte-game-app .tk-iq-lie { font-size: 0.75rem; font-weight: 700; color: #8B0000; margin-top: 0.3rem; }
#tatakte-game-app .tk-iq-question.is-locked { opacity: 0.65; cursor: not-allowed; border-style: dashed; }
#tatakte-game-app .tk-iq-transcript { max-height: min(50vh, 460px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#tatakte-game-app .tk-iq-questions { max-height: min(40vh, 360px); overflow-y: auto; padding-right: 2px; }
@media (max-width: 767px) {
	#tatakte-game-app .tk-iq-transcript { max-height: 46vh; }
	#tatakte-game-app .tk-iq-questions { max-height: none; overflow: visible; }
	#tatakte-game-app .tk-iq-present select { width: 100%; }
	#tatakte-game-app .tk-iq-question { min-height: 48px; }
}

/* =============================================================
   v1.12.0 — Barrierefreiheit und Bedienung auf allen Geräten
   ============================================================= */
#tatakte-game-app :focus-visible,
.tatakte-withdrawal :focus-visible {
	outline: 3px solid #8B0000;
	outline-offset: 2px;
	border-radius: 3px;
}
#tatakte-game-app [data-action][role="button"] { cursor: pointer; }
/* Tippflächen: mindestens 44 px (WCAG 2.5.8) */
#tatakte-game-app .tk-btn,
#tatakte-game-app .tk-evidence-item,
#tatakte-game-app .tk-loc-item,
#tatakte-game-app .tk-sidebar-tab,
#tatakte-game-app .tk-choice { min-height: 44px; }
#tatakte-game-app .tk-btn-sm { min-height: 40px; }
@media (pointer: coarse) {
	#tatakte-game-app .tk-btn-sm { min-height: 44px; }
	#tatakte-game-app .tk-modal-close { min-width: 44px; min-height: 44px; }
}
/* Kontrast: gedämpfte Texte waren teils unter 4.5:1 */
#tatakte-game-app { --tk-muted: #5c5c5c; }
#tatakte-game-app .tk-sidebar-hint,
#tatakte-game-app .tk-evidence-item-type,
#tatakte-game-app .tk-iq-note { color: #5c5c5c; }
/* Weniger Bewegung, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce) {
	#tatakte-game-app *,
	#tatakte-game-app *::before,
	#tatakte-game-app *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
/* Lange Inhalte laufen nie aus dem Bild */
#tatakte-game-app .tk-scene-content,
#tatakte-game-app .tk-dialogue-text,
#tatakte-game-app .tk-story-body { overflow-wrap: anywhere; }
