/*
 * Talkative: Raptisoft forums
 * Matches raptisoft.com: blue sunburst, navy panel, cube logo, Paytone One.
 * Paytone One for headings and buttons, Nunito for reading text.
 */

:root
{
	--tk-navy: #0a0e4d;
	--tk-navy-deep: #05061f;
	--tk-ink: #ffffff;
	--tk-ink-soft: #d6dcff;
	--tk-muted: #9aa5dc;
	--tk-sky: #b3e7ff;				/* the site's link hover colour */
	--tk-blue: #1f6fc5;
	--tk-blue-light: #3a8ee8;
	--tk-yellow: #ffef3a;
	--tk-card: rgba(255, 255, 255, 0.06);
	--tk-card-hover: rgba(255, 255, 255, 0.11);
	--tk-line: rgba(255, 255, 255, 0.12);
	--tk-shadow: #005566;
	--tk-radius: 14px;
	--tk-logo-w: min(820px, 100vw);
	--tk-heading: 'Paytone One', 'Arial Rounded MT Bold', sans-serif;
	--tk-text: 'Nunito', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body
{
	min-height: 100vh;
	background: #1a5fb4 url('/img/bkg.jpg') center center / cover fixed;
	color: var(--tk-ink);
	font-family: var(--tk-text);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}

a { color: var(--tk-ink); text-decoration: none; }
a:hover { color: var(--tk-sky); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--tk-yellow); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--tk-heading); font-weight: 400; margin: 0; line-height: 1.2; }

/* ---------- Logo and panel ---------- */

.tk-logo
{
	position: relative;
	z-index: 2;
	width: var(--tk-logo-w);
	margin: 0 auto;
	pointer-events: none;			/* the transparent part overlaps the menu */
}
.tk-logo img { display: block; width: 100%; height: auto; }

/* The clickable red R (measured from title.png: the circle is 328px wide, centred at 627,309 of 1269x913) */
.tk-logo-link
{
	position: absolute;
	left: 36.5%;
	top: 16%;
	width: 25.8%;
	height: 35.7%;
	border-radius: 50%;
	pointer-events: auto;
}
.tk-logo-link:hover { box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.35); }

.tk-panel
{
	position: relative;
	z-index: 1;
	width: min(1280px, calc(100% - 32px));
	/* Tuck the panel up under the logo the way the main site does */
	margin: calc(var(--tk-logo-w) * -0.46) auto 48px;
	padding: calc(var(--tk-logo-w) * 0.15) clamp(12px, 3vw, 40px) 20px;
	background: var(--tk-navy-deep) url('/img/sky.jpg') top center / 100% 100% no-repeat;
	border-radius: 56px;
	box-shadow: 0 0 10px 2px var(--tk-shadow);
}

/* ---------- Menu (the site's outlined icons) ---------- */

.tk-menu
{
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 4px;
	max-width: 720px;
	margin: 0 auto 12px;
}
.tk-menu-form { margin: 0; line-height: 0; }
.tk-menu > a, .tk-menu > form { flex: 0 1 auto; min-width: 0; }		/* six icons (moderators) still fit on a phone */
.tk-menu .tk-fxicon { max-width: 100%; }
.tk-menu-item
{
	position: relative;
	display: block;
	line-height: 0;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.15s;
}
.tk-menu-item:hover { transform: scale(1.08); }

/* The unread count on the Replies icon */
.tk-menu-badge
{
	position: absolute;
	top: -2px;
	right: 2px;
	min-width: 26px;
	padding: 0 7px;
	font-family: var(--tk-text);
	font-weight: 800;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	color: #3a2d00;
	background: var(--tk-yellow);
	border: 2px solid #000;
	border-radius: 999px;
	box-shadow: 0 2px 0 #000;
}

/* Same trick as FXIcon() in helpers.php: a black outline masked from *_outline.png, colour image on top */
.tk-fxicon
{
	display: inline-block;
	width: 84px;
	background-color: #000;
	-webkit-mask-size: 100%;
	mask-size: 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.tk-fxicon img { display: block; width: 100%; height: auto; }
.tk-fxicon-home { -webkit-mask-image: url('/img/icon/home_outline.png'); mask-image: url('/img/icon/home_outline.png'); }
.tk-fxicon-forum { -webkit-mask-image: url('/img/icon/forum_outline.png'); mask-image: url('/img/icon/forum_outline.png'); }
.tk-fxicon-contact { -webkit-mask-image: url('/img/icon/contact_outline.png'); mask-image: url('/img/icon/contact_outline.png'); }
/* The forum's own icons, in talkative/img (Messages / Mod / Log in / Log out are placeholders until the final art arrives) */
.tk-fxicon-replies { -webkit-mask-image: url('../img/replies_outline.png'); mask-image: url('../img/replies_outline.png'); }
.tk-fxicon-messages { -webkit-mask-image: url('../img/messages_outline.png'); mask-image: url('../img/messages_outline.png'); }
.tk-fxicon-moderation { -webkit-mask-image: url('../img/moderation_outline.png'); mask-image: url('../img/moderation_outline.png'); }
.tk-fxicon-login { -webkit-mask-image: url('../img/login_outline.png'); mask-image: url('../img/login_outline.png'); }
.tk-fxicon-logout { -webkit-mask-image: url('../img/logout_outline.png'); mask-image: url('../img/logout_outline.png'); }

/* ---------- User bar ---------- */

.tk-userbar
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 4px 14px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--tk-line);
}

.tk-crumbs
{
	font-family: var(--tk-heading);
	font-size: 17px;
	color: var(--tk-muted);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tk-crumb-sep { margin: 0 8px; }

.tk-who-name { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 700; }

/* ---------- Buttons ---------- */

.tk-button
{
	display: inline-block;
	padding: 7px 18px 8px;
	font-family: var(--tk-heading);
	font-size: 16px;
	line-height: 1.2;
	color: #fff;
	background: linear-gradient(var(--tk-blue-light), var(--tk-blue));
	border: 2px solid #04103a;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 #04103a;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	white-space: nowrap;
}
.tk-button:hover { color: #fff; text-decoration: none; filter: brightness(1.12); }
.tk-button:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.tk-button-quiet
{
	background: transparent;
	border-color: var(--tk-line);
	box-shadow: none;
	color: var(--tk-ink-soft);
}

/* ---------- Two columns: discussions and boards ---------- */

.tk-columns
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
}

.tk-section-head
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.tk-section-head h1 { font-size: 26px; text-shadow: 0 2px 0 #000; }

.tk-side h2 { font-size: 20px; margin-bottom: 14px; text-shadow: 0 2px 0 #000; }

.tk-empty { color: var(--tk-muted); padding: 24px; text-align: center; background: var(--tk-card); border-radius: var(--tk-radius); }

/* ---------- Thread list ---------- */

.tk-threads { list-style: none; margin: 0; padding: 0; }

.tk-thread
{
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	margin-bottom: 8px;
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
	transition: background 0.15s;
}
.tk-thread:hover { background: var(--tk-card-hover); }
.tk-thread.is-pinned { border-color: rgba(255, 239, 58, 0.45); background: rgba(255, 239, 58, 0.06); }

.tk-thread-title
{
	display: block;
	font-family: var(--tk-heading);
	font-size: 18px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.tk-thread-meta
{
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	margin-top: 4px;
	font-size: 14px;
	color: var(--tk-muted);
}
.tk-thread-meta a { color: var(--tk-ink-soft); font-weight: 700; }

.tk-board-link
{
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(31, 111, 197, 0.45);
}

.tk-thread-count
{
	min-width: 64px;
	padding: 6px 8px;
	text-align: center;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	line-height: 1.1;
}
.tk-thread-count:hover { text-decoration: none; }
.tk-thread-count b { display: block; font-family: var(--tk-heading); font-weight: 400; font-size: 20px; }
.tk-thread-count span { font-size: 12px; color: var(--tk-muted); }

.tk-tag
{
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	font-family: var(--tk-text);
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	vertical-align: 3px;
	border-radius: 999px;
}
.tk-tag-pinned { background: var(--tk-yellow); color: #3a2d00; }
.tk-tag-locked { background: #59607f; color: #fff; }

/* ---------- Avatars ---------- */

.tk-avatar
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
	font-family: var(--tk-heading);
	font-size: 20px;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
.tk-avatar-small { width: 28px; height: 28px; font-size: 14px; border-width: 1px; }

/* Cube colours from the logo */
.tk-avatar-c0 { background: #e53935; }
.tk-avatar-c1 { background: #8e24aa; }
.tk-avatar-c2 { background: #1e88e5; }
.tk-avatar-c3 { background: #00acc1; }
.tk-avatar-c4 { background: #43a047; }
.tk-avatar-c5 { background: #f9c80e; color: #3a2d00; text-shadow: none; }
.tk-avatar-c6 { background: #fb8c00; }
.tk-avatar-c7 { background: #d81b60; }

/* ---------- Boards ---------- */

.tk-boards { list-style: none; margin: 0; padding: 0; }
.tk-boards li { margin-bottom: 0; }

.tk-board { position: relative; display: block; }
.tk-board:hover { text-decoration: none; }

/* Game banners get the same rounded glossy mask as the home page */
.tk-banner
{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 594 / 175;
	-webkit-mask-image: url('/img/gameicon_zmask.png');
	mask-image: url('/img/gameicon_zmask.png');
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	transition: transform 0.15s, filter 0.15s;
}
.tk-board:hover .tk-banner { transform: scale(1.02); filter: brightness(1.1); }

.tk-banner-text
{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	background: linear-gradient(135deg, #2a7be4 0%, #3b3fd1 55%, #7a2fd6 100%);
	font-family: var(--tk-heading);
	font-size: 26px;
	text-align: center;
	color: #fff;
	text-shadow: 0 3px 0 #000, 0 0 12px rgba(0, 0, 0, 0.5);
}

/* Thread count, printed on the banner itself with a black outline */
.tk-board-meta
{
	position: absolute;
	right: 7%;
	bottom: 10%;
	font-family: var(--tk-heading);
	font-size: 14px;
	line-height: 1;
	color: #fff;
	pointer-events: none;
	text-shadow:
		-2px -2px 0 #000, 0 -2px 0 #000, 2px -2px 0 #000,
		-2px 0 0 #000, 2px 0 0 #000,
		-2px 2px 0 #000, 0 2px 0 #000, 2px 2px 0 #000,
		0 3px 3px rgba(0, 0, 0, 0.6);
}
.tk-board-meta small { font-size: 12px; color: #e6ecff; }

/* ---------- Settings ---------- */

.tk-settings-box { padding: 16px 20px; margin: 14px 0; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-settings-box .tk-minorhead { margin-top: 0; }
.tk-avatar-row { display: flex; gap: 22px; align-items: flex-start; }
.tk-avatar-row > div { flex: 1; min-width: 0; }
.tk-form input[type="file"]
{
	width: 100%;
	padding: 8px;
	font: inherit;
	font-size: 14px;
	color: var(--tk-ink-soft);
	background: rgba(0, 0, 0, 0.25);
	border: 2px dashed var(--tk-line);
	border-radius: 8px;
}
/* Avatar drop zone: lights up while a picture is dragged over it */
.tk-dropzone { padding: 10px 12px 12px; margin: -10px -12px 0; border: 2px dashed transparent; border-radius: var(--tk-radius); transition: background 0.15s, border-color 0.15s; }
.tk-dropzone.is-dragging { border-color: var(--tk-yellow); background: rgba(255, 239, 58, 0.08); }
.tk-dropzone-note { margin: 0; font-size: 14px; color: var(--tk-ink-soft); }
.tk-dropzone-note[hidden] { display: none; }

.tk-form input[type="file"]::file-selector-button
{
	margin-right: 12px;
	padding: 5px 14px;
	font-family: var(--tk-heading);
	color: #fff;
	background: var(--tk-blue);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

/* ---------- Featured levels and About me ---------- */

.tk-featured { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-featured-footer { margin-top: 10px; }
.tk-comment .tk-featured-footer { padding-left: 36px; margin-top: 6px; }
.tk-featured-profile { margin: 14px 0 6px; }

.tk-level
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 4px 14px 4px 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(31, 111, 197, 0.45), rgba(122, 47, 214, 0.35));
	border: 1px solid rgba(179, 231, 255, 0.25);
	line-height: 1.2;
}
.tk-level:hover { text-decoration: none; border-color: var(--tk-sky); filter: brightness(1.12); }
.tk-level-play
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding-left: 2px;
	font-size: 12px;
	border-radius: 50%;
	color: #3a2d00;
	background: var(--tk-yellow);
}
/* Searching your own levels on the settings page */
.tk-level-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.tk-level-search input
{
	flex: 1 1 220px;
	padding: 8px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--tk-ink);
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}
.tk-level-search input::placeholder { color: var(--tk-muted); }
.tk-level-search input:focus { outline: 3px solid var(--tk-yellow); outline-offset: 1px; }

/* The game's icon sits where the play button was (the art is drawn at 2x, 86x44) */
.tk-level-icon { display: block; flex-shrink: 0; height: 28px; width: auto; }
.tk-level-name { min-width: 0; font-family: var(--tk-heading); font-weight: 400; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-featured-footer .tk-level { padding: 3px 12px 3px 3px; gap: 7px; }
.tk-featured-footer .tk-level-icon { height: 22px; }
.tk-featured-footer .tk-level-play { width: 22px; height: 22px; font-size: 10px; }
.tk-featured-footer .tk-level-name { font-size: 13px; }

.tk-about
{
	max-width: 640px;
	margin: 10px 0 4px;
	padding: 12px 16px;
	border-radius: var(--tk-radius);
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	color: var(--tk-ink-soft);
	overflow-wrap: anywhere;
}

.tk-check { display: flex; align-items: center; gap: 10px; font-family: var(--tk-text) !important; font-size: 16px !important; font-weight: 600; }
.tk-check input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--tk-blue); }

/* ---------- Search ---------- */

.tk-search { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.tk-search input,
.tk-search-big input,
.tk-search-big select
{
	width: 100%;
	padding: 7px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--tk-ink);
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}
.tk-search input::placeholder, .tk-search-big input::placeholder { color: var(--tk-muted); }
.tk-search input:focus, .tk-search-big input:focus, .tk-search-big select:focus { outline: 3px solid var(--tk-yellow); outline-offset: 1px; }

.tk-search-big { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 8px; }
.tk-search-big input { flex: 1 1 280px; width: auto; font-size: 17px; padding: 10px 18px; }
.tk-search-big select { flex: 0 1 220px; width: auto; padding: 10px 14px; }
.tk-search-big select option { color: #0a0e2e; }

.tk-results { list-style: none; margin: 0; padding: 0; }
.tk-result { padding: 12px 16px; margin-bottom: 8px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-result-title { display: block; font-family: var(--tk-heading); font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.tk-result-small { font-size: 15px; color: var(--tk-ink-soft); }
.tk-result-text { margin: 4px 0 2px; font-size: 15px; color: var(--tk-ink-soft); overflow-wrap: anywhere; }
mark { background: rgba(255, 239, 58, 0.85); color: #1a1500; padding: 0 2px; border-radius: 3px; }

/* ---------- Notifications ---------- */

.tk-notes { list-style: none; margin: 0; padding: 0; }
.tk-note
{
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	margin-bottom: 8px;
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
}
.tk-note.is-unread { border-color: rgba(255, 239, 58, 0.55); background: rgba(255, 239, 58, 0.07); }
.tk-note-body { min-width: 0; }
.tk-note-head { font-size: 15px; overflow-wrap: anywhere; }
.tk-note-head a { font-weight: 800; }
.tk-note-text { display: block; margin-top: 2px; font-size: 14px; color: var(--tk-ink-soft); overflow-wrap: anywhere; }

/* ---------- Formatting toolbar under text boxes ---------- */

.tk-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.tk-toolbar[hidden], .tk-format-hint[hidden], .tk-level-picker[hidden], .tk-picker[hidden] { display: none; }
.tk-tool
{
	min-width: 32px;
	height: 30px;
	padding: 0 9px;
	font: inherit;
	font-size: 15px;
	line-height: 28px;
	color: var(--tk-ink-soft);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--tk-line);
	border-radius: 8px;
	cursor: pointer;
}
.tk-tool:hover, .tk-tool[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.15); border-color: rgba(179, 231, 255, 0.4); }
.tk-tool-word { font-size: 13px; font-weight: 800; }
.tk-tool-level { color: #3a2d00; background: var(--tk-yellow); border-color: #000; }
.tk-tool-level:hover, .tk-tool-level[aria-expanded="true"] { color: #3a2d00; background: #fff59a; }
.tk-format-hint { font-size: 12px; margin: 2px 0 0; }

/* (the extra .tk-form beats the big white form boxes, which would otherwise stretch these) */
.tk-tool-select, .tk-form select.tk-tool-select { width: auto; height: 30px; padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--tk-ink-soft); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--tk-line); border-radius: 8px; }
.tk-tool-select option { color: #000; background: #fff; font-weight: 400; }

/* The little forms behind the Link / Image / Video buttons */
.tk-picker { flex-basis: 100%; min-width: 0; margin-top: 6px; padding: 10px; background: #0b1046; border: 1px solid rgba(179, 231, 255, 0.3); border-radius: var(--tk-radius); }
.tk-picker-label { display: block; margin: 0 2px 6px; font-family: var(--tk-text) !important; font-size: 14px !important; font-weight: 700; color: var(--tk-ink-soft); }
.tk-picker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-picker-row input, .tk-form .tk-picker-row input[type]
{
	flex: 1 1 180px;
	min-width: 0;
	padding: 8px 14px;
	font: inherit;
	font-size: 16px;				/* 16px stops phones zooming in */
	color: var(--tk-ink);
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}
.tk-picker-row input.tk-picker-width, .tk-form .tk-picker-row input[type].tk-picker-width { flex: 0 0 96px; width: 96px; }
.tk-picker .tk-button { margin-top: 0 !important; }
.tk-tool-emoji { padding: 0 6px; font-size: 17px; line-height: 26px; }
.tk-emoji-picker { display: flex; flex-wrap: wrap; gap: 2px; }
.tk-emoji-picker[hidden] { display: none; }
.tk-emoji { width: 38px; height: 38px; padding: 0; font-size: 22px; line-height: 1; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.tk-emoji:hover, .tk-emoji:focus { background: rgba(255, 255, 255, 0.14); outline: none; }
.tk-picker-status { margin: 6px 2px 0; font-size: 13px; color: var(--tk-muted); }

.tk-level-picker
{
	flex-basis: 100%;
	min-width: 0;
	margin-top: 6px;
	padding: 10px;
	background: #0b1046;
	border: 1px solid rgba(179, 231, 255, 0.3);
	border-radius: var(--tk-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tk-level-picker-search
{
	width: 100%;
	padding: 7px 12px;
	font: inherit;
	font-size: 16px;
	color: var(--tk-ink);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}
.tk-level-picker-status { margin: 6px 2px; font-size: 13px; color: var(--tk-muted); }
.tk-level-picker-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.tk-level-choice
{
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 5px 8px;
	font: inherit;
	text-align: left;
	color: var(--tk-ink);
	background: none;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.tk-level-choice:hover, .tk-level-choice:focus-visible { background: rgba(255, 255, 255, 0.1); }
.tk-level-choice img { height: 22px; width: auto; flex-shrink: 0; }
.tk-level-choice b { flex: 1 1 auto; min-width: 0; font-family: var(--tk-heading); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-level-choice span { margin-left: auto; font-size: 12px; color: var(--tk-muted); white-space: nowrap; }

/* ---------- Formatting inside posts ---------- */

.tk-post-text blockquote
{
	margin: 0 0 0.8em;
	padding: 8px 14px;
	border-left: 4px solid rgba(179, 231, 255, 0.5);
	border-radius: 0 10px 10px 0;
	background: rgba(255, 255, 255, 0.05);
	color: var(--tk-ink-soft);
}
.tk-post-text blockquote p:last-child { margin-bottom: 0; }
.tk-post-text strong { font-weight: 800; }

/* @mentions */
.tk-post-text a.tk-mention { font-weight: 800; color: var(--tk-sky); text-decoration: none; }
.tk-post-text a.tk-mention:hover { text-decoration: underline; }
.tk-mention-list
{
	list-style: none;
	margin: 0;
	padding: 4px;
	max-height: 260px;
	overflow-y: auto;
	background: #0b1046;
	border: 1px solid rgba(179, 231, 255, 0.35);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tk-mention-list[hidden] { display: none; }
.tk-mention-choice
{
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 5px 8px;
	font: inherit;
	font-weight: 700;
	text-align: left;
	color: var(--tk-ink);
	background: none;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.tk-mention-choice:hover, .tk-mention-choice.is-active { background: rgba(255, 255, 255, 0.12); }

/* Pictures from other websites (served from the forum's own copy) */
.tk-post-img-link { display: inline-block; max-width: 100%; vertical-align: top; margin: 4px 0; }
.tk-post-img { display: block; max-width: 100%; max-height: 480px; height: auto; border-radius: 10px; border: 1px solid var(--tk-line); background: rgba(0, 0, 0, 0.2); }

/* Spoilers: a dark bar until tapped, hovered or focused */
.tk-spoiler
{
	padding: 0 4px;
	border-radius: 4px;
	color: transparent;
	background: #2b2f5e;
	cursor: pointer;
	transition: color 0.15s, background 0.15s;
}
.tk-spoiler * { visibility: hidden; }
.tk-spoiler:hover, .tk-spoiler:focus { color: inherit; background: rgba(255, 255, 255, 0.1); outline: none; }
.tk-spoiler:hover *, .tk-spoiler:focus * { visibility: visible; }

/* A level linked inside a post sits in the line of text (and isn't styled like an ordinary link) */
.tk-post-text a.tk-level { color: var(--tk-ink); text-decoration: none; }
.tk-level-inline { vertical-align: middle; margin: 1px 0; padding: 2px 10px 2px 2px; gap: 6px; }
.tk-level-inline .tk-level-icon { height: 20px; }
.tk-level-inline .tk-level-play { width: 20px; height: 20px; font-size: 9px; }
.tk-level-inline .tk-level-name { font-size: 13px; }

/* ---------- Level share page ---------- */

.tk-share { max-width: 980px; margin: 0 auto; }
.tk-share-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; margin-bottom: 18px; }
.tk-share-card { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.tk-share-sub { color: var(--tk-ink-soft); margin: 0 0 18px; }
.tk-share-play { font-size: 22px; padding: 12px 30px 13px; }

.tk-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-share-btn
{
	display: inline-block;
	padding: 8px 18px;
	font-family: var(--tk-heading);
	font-size: 16px;
	color: #fff;
	background: #333a66;
	border: 2px solid #000;
	border-radius: 999px;
	box-shadow: 0 2px 0 #000;
	cursor: pointer;
}
.tk-share-btn:hover { color: #fff; text-decoration: none; filter: brightness(1.15); }
.tk-share-btn[hidden] { display: none; }
.tk-share-native { color: #3a2d00; background: var(--tk-yellow); }
.tk-share-native:hover { color: #3a2d00; }
.tk-share-x { background: #000; border-color: #444; }
.tk-share-facebook { background: #1877f2; }
.tk-share-reddit { background: #ff4500; }
.tk-share-bluesky { background: #1185fe; }
.tk-share-threads { background: #101010; border-color: #444; }
.tk-share-whatsapp { background: #25d366; color: #05300f; }
.tk-share-whatsapp:hover { color: #05300f; }
.tk-share-email { background: #59607f; }

.tk-copy-row { display: flex; gap: 8px; margin-top: 4px; }
.tk-copy-row input
{
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--tk-ink);
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}

@media (max-width: 760px)
{
	.tk-share-top { grid-template-columns: minmax(0, 1fr); }
	.tk-share-about { text-align: center; }
}

/* ---------- Moderator pages: tabs, activity feed, users ---------- */

.tk-modnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; border-bottom: 1px solid var(--tk-line); }
.tk-modnav-tab { padding: 7px 16px; font-family: var(--tk-heading); color: var(--tk-ink-soft); border-radius: 10px 10px 0 0; }
.tk-modnav-tab:hover { text-decoration: none; background: var(--tk-card); color: #fff; }
.tk-modnav-tab.is-current { color: #fff; background: var(--tk-card-hover); box-shadow: inset 0 -3px 0 var(--tk-yellow); }

.tk-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-filter a, .tk-filter span { padding: 3px 12px; font-size: 14px; font-weight: 700; border-radius: 999px; border: 1px solid var(--tk-line); color: var(--tk-ink-soft); }
.tk-filter a:hover { text-decoration: none; color: #fff; background: var(--tk-card); }
.tk-filter .is-current { color: #2b1d00; background: var(--tk-yellow); border-color: var(--tk-yellow); }

.tk-feed { list-style: none; margin: 0; padding: 0; }
.tk-feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-feed-item.is-deleted { opacity: 0.6; }
.tk-feed-body { min-width: 0; flex: 1; }
.tk-feed-head { font-size: 14px; overflow-wrap: anywhere; }
.tk-feed-head > a:not(.tk-user) { font-weight: 800; }
.tk-feed-text { margin-top: 3px; font-size: 14px; color: var(--tk-ink-soft); overflow-wrap: anywhere; }
.tk-feed-item .tk-actions { margin-top: 4px; }

.tk-watchlist { list-style: none; margin: 0; padding: 0; }
.tk-watchlist li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tk-line); font-size: 14px; }
.tk-watchlist li > div { flex: 1; min-width: 0; }
.tk-watchlist .tk-muted { font-size: 12px; }

.tk-users-name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tk-users .is-sorted { color: var(--tk-yellow); }
.tk-users th a { color: var(--tk-ink-soft); }
.tk-mod-facts { margin: 0 0 14px; align-items: center; }

/* ---------- Footer ---------- */

.tk-footer
{
	margin-top: 36px;
	padding-top: 14px;
	border-top: 1px solid var(--tk-line);
	text-align: center;
	font-size: 13px;
	color: var(--tk-muted);
}
.tk-footer a { color: var(--tk-muted); }

/* ---------- Messages, page titles, small text ---------- */

.tk-flash
{
	margin: 0 0 18px;
	padding: 10px 16px;
	border-radius: var(--tk-radius);
	border: 1px solid var(--tk-line);
	background: var(--tk-card);
	font-weight: 700;
}
.tk-flash-good { border-color: rgba(67, 160, 71, 0.7); background: rgba(67, 160, 71, 0.18); }
.tk-flash-bad { border-color: rgba(229, 57, 53, 0.75); background: rgba(229, 57, 53, 0.18); }

.tk-page-title { font-size: 28px; margin-bottom: 8px; text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.tk-subhead { font-size: 20px; margin: 30px 0 12px; text-shadow: 0 2px 0 #000; }
.tk-hint { color: var(--tk-muted); font-size: 14px; }
.tk-muted { color: var(--tk-muted); }

.tk-visually-hidden
{
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.tk-narrow { max-width: 460px; margin: 10px auto 0; }
.tk-narrow-wide { max-width: 780px; }

/* ---------- Forms (white boxes, like the site's contact form) ---------- */

.tk-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tk-form label { font-family: var(--tk-heading); font-size: 16px; margin-top: 10px; }
.tk-form input[type="text"],
.tk-form input[type="password"],
.tk-form select,
.tk-form textarea
{
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 16px;					/* 16px stops phones zooming in on focus */
	color: #0a0e2e;
	background: #fff;
	border: 2px solid #04103a;
	border-radius: 8px;
}
.tk-form textarea { resize: vertical; min-height: 5.5em; line-height: 1.45; }
.tk-form input:focus, .tk-form select:focus, .tk-form textarea:focus { outline: 3px solid var(--tk-yellow); outline-offset: 1px; }
.tk-form .tk-button { justify-self: start; margin-top: 10px; }
.tk-button-big { font-size: 18px; padding: 9px 26px 10px; }

/* ---------- Badges ---------- */

.tk-badge
{
	display: inline-block;
	padding: 0 6px;
	font-family: var(--tk-text);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 16px;
	vertical-align: 2px;
	border-radius: 4px;
	color: #fff;
}
.tk-badge-mod { background: #e53935; }
.tk-badge-op { background: var(--tk-blue); }
.tk-badge-ai { background: #7a2fd6; }
.tk-badge-new { background: #00897b; }
.tk-badge-watch { background: #f9a825; color: #2b1d00; }
.tk-badge-ban { background: #c62828; }
.tk-action-watching { color: #f9c80e; }

/* ---------- Board page ---------- */

.tk-board-head { text-align: center; margin-bottom: 22px; }
.tk-board-banner { max-width: 594px; margin: 0 auto; }
h1.tk-board-banner { font-size: 34px; }
.tk-board-desc { color: var(--tk-ink-soft); margin: 10px 0 0; }
.tk-section-head h2 { font-size: 20px; text-shadow: 0 2px 0 #000; }

.tk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.tk-pager a, .tk-pager span
{
	min-width: 38px;
	padding: 6px 10px;
	text-align: center;
	font-family: var(--tk-heading);
	border-radius: 10px;
	background: var(--tk-card);
}
.tk-pager .tk-pager-current { background: var(--tk-blue); }
.tk-pager .tk-pager-gap { background: none; }

/* ---------- Thread page ---------- */

.tk-post
{
	padding: 20px 22px;
	margin-bottom: 24px;
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
}
.tk-post-title { font-size: 28px; margin-bottom: 14px; text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.tk-post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tk-post-sub { font-size: 14px; color: var(--tk-muted); }
.tk-post-sub a { color: var(--tk-ink-soft); font-weight: 700; }
.tk-user { font-weight: 800; }

.tk-post-text { overflow-wrap: anywhere; }
.tk-post-text p { margin: 0 0 0.8em; }
.tk-post-text p:last-child { margin-bottom: 0; }
.tk-post-text a { color: var(--tk-sky); text-decoration: underline; }

.tk-discussion > h2 { font-size: 20px; margin-bottom: 12px; text-shadow: 0 2px 0 #000; }
.tk-cant-reply { color: var(--tk-ink-soft); margin: 0 0 18px; }
.tk-discussion > .tk-reply-form { margin-bottom: 22px; }

/* The reply tree: each level indents, with a line down the side like Reddit */
.tk-comments, .tk-replies { list-style: none; margin: 0; padding: 0; }
.tk-replies
{
	margin-left: 13px;
	padding-left: 16px;
	border-left: 2px solid var(--tk-line);
}
.tk-replies:hover { border-left-color: rgba(179, 231, 255, 0.45); }

.tk-comment { padding: 10px 0 6px; scroll-margin-top: 16px; }
.tk-comment:target { background: rgba(255, 239, 58, 0.08); border-radius: 10px; box-shadow: 0 0 0 6px rgba(255, 239, 58, 0.08); }
.tk-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; margin-bottom: 4px; }
.tk-comment-time { color: var(--tk-muted); }
.tk-comment .tk-post-text { font-size: 15.5px; padding-left: 36px; }

/* ---------- Action rows: Reply / Edit / Delete / Pin / Lock... ---------- */

.tk-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; margin-top: 8px; }
.tk-post .tk-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--tk-line); }
.tk-comment-actions { padding-left: 36px; margin-top: 2px; }
.tk-inline-form { display: inline; margin: 0; }

.tk-action
{
	display: inline-block;
	padding: 2px 0;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 20px;
	vertical-align: top;
	color: var(--tk-muted);
	background: none;
	border: 0;
	cursor: pointer;
	list-style: none;
}
.tk-action::-webkit-details-marker { display: none; }
.tk-action:hover, details[open] > .tk-action { color: var(--tk-sky); text-decoration: none; }
.tk-action-danger:hover, details[open] > .tk-action-danger { color: #ff8a80; }
.tk-action-solid
{
	padding: 3px 12px;
	border-radius: 8px;
	color: #fff;
	background: var(--tk-blue);
}
.tk-action-solid:hover { color: #fff; filter: brightness(1.15); }
.tk-action-danger.tk-action-solid { background: #c62828; color: #fff; }
.tk-action-note { font-size: 13px; padding-top: 2px; }
.tk-copy-link.is-copied { color: var(--tk-yellow); }

/* Click once to unfold, click the button inside to really do it */
.tk-confirm { display: inline-block; }
.tk-confirm > summary { list-style: none; }
.tk-confirm > summary::-webkit-details-marker { display: none; }
.tk-confirm-box { display: inline-block; margin-left: 8px; }
.tk-confirm select { font: inherit; font-size: 14px; padding: 2px 6px; border-radius: 6px; }

/* An open reply box takes its own full-width line under the buttons */
.tk-replybox[open] { flex-basis: 100%; order: 10; }
.tk-replybox .tk-reply-form { margin: 6px 0 8px; }

/* ---------- Moderator views ---------- */

.tk-mod-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-deleted-text { opacity: 0.75; border-left: 3px solid #c62828; padding-left: 12px !important; margin-left: 36px; }
.tk-mod-label { font-size: 12px; font-weight: 800; color: #ff8a80; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-button-danger { background: linear-gradient(#e53935, #b71c1c); }
.tk-form-buttons { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.tk-form-buttons .tk-button { margin-top: 0; }

.tk-version { padding: 14px 18px; margin-bottom: 12px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-version-old { opacity: 0.85; }
.tk-version-head { font-size: 13px; color: var(--tk-muted); margin-bottom: 8px; }
.tk-version-head b { color: var(--tk-ink); }
.tk-version-title { font-size: 18px; margin-bottom: 6px; }

.tk-table-wrap { overflow-x: auto; border-radius: var(--tk-radius); border: 1px solid var(--tk-line); }
.tk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-table th { text-align: left; font-family: var(--tk-heading); font-weight: 400; color: var(--tk-ink-soft); background: rgba(0, 0, 0, 0.25); }
.tk-table th, .tk-table td { padding: 8px 12px; border-bottom: 1px solid var(--tk-line); vertical-align: top; }
.tk-table tr:last-child td { border-bottom: 0; }
.tk-table tr.is-active td { background: rgba(229, 57, 53, 0.12); }
.tk-table a { font-weight: 700; }
.tk-nowrap { white-space: nowrap; }

.tk-modpanel { margin-top: 34px; padding: 4px 22px 22px; border: 2px solid rgba(229, 57, 53, 0.45); border-radius: var(--tk-radius); background: rgba(229, 57, 53, 0.05); }
.tk-modgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tk-modbox { padding: 14px 16px; background: var(--tk-card); border-radius: var(--tk-radius); align-content: start; }
.tk-modbox h3, .tk-minorhead { font-size: 17px; }
.tk-minorhead { margin: 22px 0 10px; }
.tk-modbox .tk-confirm-box { margin: 8px 0 0; }
.tk-modbox .tk-confirm { margin-top: 10px; }

.tk-recent { list-style: none; margin: 0; padding: 0; }
.tk-recent li { padding: 8px 0; border-bottom: 1px solid var(--tk-line); }
.tk-recent li.is-deleted { opacity: 0.6; }
.tk-recent-text { font-size: 14px; color: var(--tk-ink-soft); overflow-wrap: anywhere; }

/* ---------- Profile ---------- */

.tk-avatar-large { width: 96px; height: 96px; font-size: 44px; border-width: 3px; }
.tk-profile { display: flex; align-items: center; gap: 20px; margin: 6px 0 10px; }
.tk-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 4px 0 0; }
.tk-facts dt { font-size: 13px; color: var(--tk-muted); }
.tk-facts dd { margin: 0; font-family: var(--tk-heading); font-size: 17px; }

.tk-games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-games li { padding: 6px 14px; border-radius: 999px; background: var(--tk-card); border: 1px solid var(--tk-line); }
.tk-games span { color: var(--tk-muted); font-size: 14px; }

/* ---------- Narrower screens ---------- */

@media (max-width: 900px)
{
	.tk-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }

	/* Boards become a swipeable strip above the discussions */
	.tk-side { order: -1; min-width: 0; }
	.tk-boards
	{
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}
	.tk-boards li { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
	.tk-board-meta { font-size: 12px; }
	.tk-board-meta small { display: none; }
	.tk-banner-text { font-size: 17px; line-height: 1.1; }
}

@media (max-width: 600px)
{
	.tk-panel { width: calc(100% - 16px); border-radius: 28px; padding-left: 12px; padding-right: 12px; }
	.tk-fxicon { width: clamp(44px, 13.5vw, 64px); }
	.tk-menu-badge { min-width: 22px; padding: 0 5px; font-size: 12px; line-height: 20px; right: 0; }
	.tk-section-head h1 { font-size: 21px; }
	.tk-thread { gap: 10px; padding: 10px 12px; align-items: start; }
	.tk-thread .tk-avatar { width: 36px; height: 36px; font-size: 16px; }
	.tk-thread-title { font-size: 16px; }
	.tk-thread-count { min-width: 44px; padding: 4px 6px; }
	.tk-thread-count b { font-size: 16px; }
	.tk-thread-count span { font-size: 10px; }
	.tk-userbar { flex-wrap: wrap; }
	.tk-search { order: 3; flex-basis: 100%; max-width: none; }
	.tk-who-name span { display: none; }		/* just the avatar on phones (still links to your profile) */
	.tk-post { padding: 14px 14px; }
	.tk-post-title, .tk-page-title { font-size: 22px; }
	.tk-replies { margin-left: 6px; padding-left: 9px; }
	.tk-comment .tk-post-text, .tk-comment-actions, .tk-comment .tk-featured-footer { padding-left: 0; }
	.tk-deleted-text { margin-left: 0; }
	.tk-modpanel { padding: 4px 12px 14px; }
	.tk-profile { gap: 14px; }
	.tk-avatar-large { width: 72px; height: 72px; font-size: 32px; }
	.tk-avatar-row { flex-direction: column; gap: 12px; }
}

/* ---------- Community wall ---------- */

.tk-banner-wall { background: linear-gradient(135deg, #f9a825 0%, #e8590c 55%, #d6336c 100%); }
.tk-wall { list-style: none; margin: 14px 0 0; padding: 0; }
.tk-wall-item { padding: 12px 14px 8px; margin-bottom: 10px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-wall-post { scroll-margin-top: 16px; }
.tk-wall-post.is-deleted { opacity: 0.7; }
.tk-wall-post:target { background: rgba(255, 239, 58, 0.08); border-radius: 10px; box-shadow: 0 0 0 6px rgba(255, 239, 58, 0.08); }
.tk-wall-post .tk-post-text { padding-left: 36px; font-size: 15.5px; }
.tk-wall-replies { list-style: none; margin: 8px 0 0 36px; padding: 0 0 0 14px; border-left: 2px solid var(--tk-line); }
.tk-wall-replies:empty { display: none; }
.tk-wall-replies li { padding: 6px 0; }
.tk-wall-replybox { margin: 4px 0 0 36px; }
.tk-wall-section { margin-top: 10px; }
.tk-wall-form { margin-top: 6px; }
@media (max-width: 600px)
{
	.tk-wall-post .tk-post-text { padding-left: 0; }
	.tk-wall-replies { margin-left: 6px; padding-left: 9px; }
	.tk-wall-replybox { margin-left: 0; }
}

/* ---------- Private messages ---------- */

.tk-pm-safety { margin: 0 0 14px; padding: 10px 14px; font-size: 14px; color: var(--tk-ink-soft); background: rgba(255, 239, 58, 0.07); border: 1px solid rgba(255, 239, 58, 0.35); border-radius: var(--tk-radius); }
.tk-pm-safety b { color: var(--tk-yellow); }
.tk-pm-modnote { margin: 0 0 12px; padding: 10px 14px; font-size: 14px; background: rgba(122, 47, 214, 0.22); border: 1px solid rgba(160, 110, 255, 0.55); border-radius: var(--tk-radius); }
.tk-section-head-wrap { flex-wrap: wrap; }
.tk-pm-find { display: flex; gap: 6px; flex: 1 1 260px; max-width: 360px; }
.tk-pm-find input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tk-line); background: rgba(0, 0, 0, 0.25); color: var(--tk-ink); }
.tk-pm-find .tk-button { padding-top: 4px; padding-bottom: 4px; }
.tk-pm-tabs { margin: 4px 0 12px; }

.tk-convos { list-style: none; margin: 0; padding: 0; }
.tk-convo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-convo:hover { background: var(--tk-card-hover); }
.tk-convo.is-unread { border-color: rgba(255, 239, 58, 0.55); background: rgba(255, 239, 58, 0.07); }
.tk-convo-body { display: block; flex: 1; min-width: 0; color: inherit; }
.tk-convo-body:hover { text-decoration: none; }
.tk-convo-head { display: block; font-size: 16px; }
.tk-convo-text { display: block; margin-top: 2px; font-size: 14px; color: var(--tk-ink-soft); overflow-wrap: anywhere; }
.tk-convo.is-unread .tk-convo-text { color: var(--tk-ink); font-weight: 700; }
.tk-badge-wait { background: #546e7a; }
.tk-badge-kept { background: #2e7d32; }

.tk-pm-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tk-pm-title .tk-page-title { margin: 0; }
.tk-pm-title .tk-user { color: inherit; }
.tk-pm-request { margin: 0 0 14px; padding: 12px 14px; background: rgba(58, 142, 232, 0.2); border: 1px solid rgba(179, 231, 255, 0.45); border-radius: var(--tk-radius); }
.tk-pm-request p { margin: 0 0 8px; }

.tk-pm-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.tk-pm { max-width: 86%; align-self: flex-start; padding: 10px 14px 6px; background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: 4px var(--tk-radius) var(--tk-radius) var(--tk-radius); scroll-margin-top: 16px; }
.tk-pm.is-mine { align-self: flex-end; background: rgba(58, 142, 232, 0.25); border-color: rgba(179, 231, 255, 0.3); border-radius: var(--tk-radius) 4px var(--tk-radius) var(--tk-radius); }
.tk-pm.is-replaced { border-style: dashed; }
.tk-pm:target { box-shadow: 0 0 0 3px rgba(255, 239, 58, 0.5); }
.tk-pm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.tk-pm-head .tk-avatar { width: 26px; height: 26px; font-size: 13px; }
.tk-pm-body { margin-top: 4px; overflow-wrap: anywhere; }
.tk-pm-body p { margin: 0 0 8px; }
.tk-pm-note { margin: 0 0 4px; font-size: 13px; font-style: italic; color: var(--tk-muted); }
.tk-pm-original { margin: 4px 0 8px; font-size: 14px; }
.tk-pm-original summary { cursor: pointer; color: var(--tk-yellow); }
.tk-pm-original .tk-pm-body { padding: 8px 10px; background: rgba(0, 0, 0, 0.25); border-radius: 8px; }
.tk-pm-actions { margin-top: 0; }
.tk-pm-actions .tk-action { font-size: 12px; }
.tk-pm-kept-where { margin: 6px 0 -4px; font-size: 14px; }
.tk-pm-form { margin-top: 4px; }
.tk-pm-convo-actions { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--tk-line); }
.tk-pm-reports { margin: 0 0 14px; padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }

.tk-report-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; padding: 10px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; }
.tk-report-box label { font-size: 14px; font-weight: 700; flex-basis: 100%; }
.tk-report-box input[type="text"] { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--tk-line); background: rgba(0, 0, 0, 0.3); color: var(--tk-ink); }
.tk-report-box .tk-hint { flex-basis: 100%; margin: 0; font-size: 13px; }
.tk-report[open] { display: block; }

.tk-out-host { margin: 4px 0; font-family: var(--tk-heading); font-size: 26px; color: var(--tk-yellow); overflow-wrap: anywhere; }
.tk-out-url { margin: 0 0 12px; font-size: 14px; overflow-wrap: anywhere; color: var(--tk-ink-soft); }
.tk-out-actions { margin: 14px 0; gap: 10px; }
.tk-out-report { margin-top: 18px; }
.tk-links-form { max-width: 480px; }

@media (max-width: 600px)
{
	.tk-pm { max-width: 94%; }
	.tk-pm-find { max-width: none; flex-basis: 100%; }
}

/* ---------- What's new to you (thread lists and threads) ---------- */

.tk-thread.is-unread { box-shadow: inset 4px 0 0 #3ddc84; }
.tk-tag-new { background: #3ddc84; color: #06301a; }
.tk-thread-newcount { display: block; margin-top: 3px; padding: 1px 6px; font-style: normal; font-weight: 800; font-size: 11px; border-radius: 999px; background: #3ddc84; color: #06301a; white-space: nowrap; }
.tk-new-note { margin: 0 0 10px; font-weight: 700; }
.tk-new-note a { color: #3ddc84; }
.tk-new-anchor { display: block; scroll-margin-top: 16px; }
.tk-comment.is-new { padding-left: 10px; margin-left: -10px; border-left: 3px solid #3ddc84; border-radius: 0 10px 10px 0; background: rgba(61, 220, 132, 0.06); }
.tk-badge-unread { background: #3ddc84; color: #06301a; }
.tk-next-new { font-size: 13px; font-weight: 700; color: #3ddc84; }
.tk-head-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.tk-wall-replybox.tk-wall-subreply { margin: 0 0 0 36px; }
@media (max-width: 600px) { .tk-wall-replybox.tk-wall-subreply { margin-left: 0; } }

/* ---------- Text sizes, fonts, links and pictures in posts ---------- */

.tk-size-small { font-size: 0.8em; }
.tk-size-large { font-size: 1.3em; line-height: 1.3; }
.tk-size-huge { font-size: 1.7em; line-height: 1.2; }
.tk-font-title { font-family: var(--tk-heading); }
.tk-font-fun { font-family: 'Luckiest Guy', var(--tk-heading); letter-spacing: 0.03em; }
.tk-font-mono { font-family: 'Courier New', Courier, monospace; }
.tk-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.tk-link-host { font-size: 0.8em; color: var(--tk-muted); white-space: nowrap; }
.tk-link-blocked { font-size: 0.85em; font-style: italic; color: var(--tk-muted); }
.tk-post-img.tk-post-img-sized { max-height: none; }

/* ---------- Videos (YouTube and X) ---------- */

.tk-embed { position: relative; max-width: 560px; margin: 8px 0 12px; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--tk-line); }
.tk-embed-youtube { aspect-ratio: 16 / 9; }
.tk-embed-youtube.is-tall { max-width: 315px; aspect-ratio: 9 / 16; }
.tk-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.tk-embed-cover { position: absolute; inset: 0; display: block; color: #fff; }
.tk-embed-cover:hover { text-decoration: none; }
.tk-embed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-embed-play
{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	font-size: 24px;
	line-height: 48px;
	text-align: center;
	color: #fff;
	background: rgba(230, 0, 0, 0.9);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	transition: transform 0.15s;
}
.tk-embed-cover:hover .tk-embed-play { transform: scale(1.1); }
.tk-embed-label { position: absolute; left: 10px; bottom: 8px; padding: 1px 8px; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, 0.65); border-radius: 999px; }

.tk-embed-x { max-width: 550px; background: #0b0f14; }
.tk-embed-x.is-playing { background: transparent; border-color: transparent; }
.tk-embed-x iframe { height: 420px; }
.tk-embed-card { position: static; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tk-embed-card-icon { flex: 0 0 auto; width: 40px; height: 40px; font: 800 22px/40px Arial, sans-serif; text-align: center; color: #000; background: #fff; border-radius: 50%; }
.tk-embed-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tk-embed-card-text span { font-size: 14px; color: var(--tk-muted); overflow-wrap: anywhere; }
.tk-embed-card-show { flex: 0 0 auto; padding: 4px 14px; font-size: 14px; font-weight: 800; color: #000; background: #fff; border-radius: 999px; }

/* ---------- Reactions ---------- */

.tk-reactions { margin-top: 6px; }
.tk-comment .tk-reactions, .tk-wall-post .tk-reactions { padding-left: 36px; }
.tk-react-form { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.tk-react-chips { display: contents; }
.tk-react-chip
{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 10px;
	font: inherit;
	font-size: 15px;
	line-height: 1;
	color: var(--tk-ink-soft);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--tk-line);
	border-radius: 999px;
}
button.tk-react-chip { cursor: pointer; }
button.tk-react-chip:hover { background: rgba(255, 255, 255, 0.14); }
.tk-react-chip b { font-size: 13px; font-weight: 800; }
.tk-react-chip.is-mine { color: #fff; background: rgba(58, 142, 232, 0.35); border-color: var(--tk-sky); }
.tk-react-add { display: inline-block; }			/* (the choices line up with the start of the row, so they never run off a phone screen) */
.tk-react-add > summary { list-style: none; }
.tk-react-add > summary::-webkit-details-marker { display: none; }
.tk-react-addbtn { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; font-size: 17px; color: var(--tk-muted); border: 1px dashed var(--tk-line); border-radius: 999px; cursor: pointer; }
.tk-react-addbtn b { font-size: 12px; margin-left: 1px; }
.tk-react-addbtn:hover, .tk-react-add[open] .tk-react-addbtn { color: #fff; border-color: var(--tk-sky); }
.tk-react-palette
{
	position: absolute;
	z-index: 5;
	left: 0;
	bottom: calc(100% + 6px);
	display: flex;
	gap: 2px;
	padding: 4px;
	background: #0b1046;
	border: 1px solid rgba(179, 231, 255, 0.35);
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.tk-react-pick { width: 38px; height: 38px; font-size: 22px; line-height: 1; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: transform 0.1s; }
.tk-react-pick:hover, .tk-react-pick:focus { background: rgba(255, 255, 255, 0.12); transform: scale(1.2); outline: none; }

@media (max-width: 600px)
{
	.tk-comment .tk-reactions, .tk-wall-post .tk-reactions { padding-left: 0; }
	.tk-react-pick { width: 34px; height: 34px; font-size: 20px; }
}
.tk-post-text a.tk-embed-cover, .tk-post-text a.tk-embed-cover:hover { color: #fff; text-decoration: none; }
.tk-other-games { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.tk-other-games legend { padding: 0; margin-bottom: 2px; font-family: var(--tk-heading); font-size: 16px; }
.tk-other-games .tk-hint { margin: 0 0 4px; }
