/**
 *
 * Reactions extension for the phpBB Forum Software package.
 *
 * @copyright (c) 2026 stoker - https://phpbb3bbcodes.com/
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */
 
 @import url("lucid_reactions.css?v=20261104-1");

/* React button in the post buttons */
.reactions-button-item.is-busy,
.reactions.is-busy {
	opacity: 0.55;
	pointer-events: none;
}

/* Scaled, not resized: a transform does not change the line box, so the button keeps the size of the other post buttons */
.post-buttons > li > .reactions-add .icon {
	transform: scale(1.2);
}

.post-buttons .reactions-add.is-blocked {
	opacity: 0.5;
	cursor: help;
}

/* Line under the post */
.reactions {
	margin: 12px 0 4px;
}

.reactions[hidden] {
	display: none;
}

.reactions-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 3px 12px 3px 4px;
	border: 1px solid #d6dee7;
	border-radius: 999px;
	background: #f6f8fa;
	color: #4c5d77;
	font-family: inherit;
	font-size: 0.95em;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.reactions-summary:hover {
	border-color: #b9c6d3;
	background: #edf1f5;
}

.reactions-stack {
	display: inline-flex;
	flex-shrink: 0;
}

.reactions-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	margin-left: -6px;
	border: 2px solid #f6f8fa;
	border-radius: 50%;
	background: #ffffff;
	font-size: 16px;
	line-height: 1;
}

.reactions-bubble:first-child {
	margin-left: 0;
}

.reactions-summary:hover .reactions-bubble {
	border-color: #edf1f5;
}

.reactions-names {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reactions-img {
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

/*
 * Focus. prosilver outlines every focused button and Firefox adds an inner border.
 * All of it is removed here; the script adds .reactions-keyboard to the page while
 * the keyboard is used, and only then is a ring shown.
 */
.reactions button,
.reactions-button-item a,
.reactions-picker button,
.reactions-dialog button {
	-webkit-tap-highlight-color: transparent;
}

.reactions button:focus,
.reactions-button-item a:focus,
.reactions-picker button:focus,
.reactions-dialog button:focus,
.reactions-dialog:focus,
.reactions-dialog h3:focus {
	outline: none;
}

.reactions button::-moz-focus-inner,
.reactions-picker button::-moz-focus-inner,
.reactions-dialog button::-moz-focus-inner {
	border: 0;
}

.reactions-keyboard .reactions button:focus,
.reactions-keyboard .reactions-button-item a:focus,
.reactions-keyboard .reactions-picker button:focus,
.reactions-keyboard .reactions-dialog button:focus {
	outline: 2px solid #105289;
	outline-offset: 2px;
}

/* Picker, one per page */
.reactions-picker {
	position: absolute;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	width: max-content;
	padding: 5px;
	border: 1px solid #d6dee7;
	border-radius: 26px;
	background: #ffffff;
	box-shadow: 0 6px 20px rgba(16, 40, 70, 0.18);
	animation: reactions-pop 0.14s ease-out;
}

.reactions-picker[hidden] {
	display: none;
}

@keyframes reactions-pop {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.reactions-pick {
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
}

.reactions-pick[hidden] {
	display: none;
}

.reactions-pick-emoji {
	display: block;
	font-size: 26px;
	line-height: 40px;
	transition: transform 0.12s ease-out;
}

.reactions-pick:hover .reactions-pick-emoji,
.reactions-keyboard .reactions-pick:focus .reactions-pick-emoji {
	transform: translateY(-4px) scale(1.25);
}

/* The lifted emoji and its name already show where the keyboard is */
.reactions-keyboard .reactions-picker .reactions-pick:focus {
	outline: none;
}

.reactions-pick.is-mine {
	background: #dbe8f4;
}

/* Name of the reaction above the hovered emoji */
.reactions-pick::after {
	position: absolute;
	bottom: calc(100% + 8px);
	left: calc(50% + var(--reactions-name-shift, 0px));
	padding: 2px 8px;
	border-radius: 10px;
	background: #2b3a4a;
	color: #ffffff;
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
	content: attr(aria-label);
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity 0.12s;
}

.reactions-pick:hover::after,
.reactions-keyboard .reactions-pick:focus::after {
	opacity: 1;
}

/* Who reacted */
.reactions-dialog {
	width: min(420px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 64px));
	padding: 0;
	border: 1px solid #d6dee7;
	border-radius: 10px;
	background: #ffffff;
	color: #333333;
	box-shadow: 0 10px 36px rgba(16, 40, 70, 0.25);
}

.reactions-dialog[open] {
	display: flex;
	flex-direction: column;
}

.reactions-dialog::backdrop {
	background: rgba(0, 0, 0, 0.4);
}

.reactions-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e3e8ee;
}

.reactions-dialog-head h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.1em;
	text-transform: none;
}

.reactions-dialog-close {
	padding: 4px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #536482;
	font-size: 1.2em;
	cursor: pointer;
}

.reactions-dialog-close:hover {
	background: #edf1f5;
}

.reactions-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 6px 12px 0;
	border-bottom: 1px solid #e3e8ee;
}

.reactions-tabs:empty {
	display: none;
}

.reactions-tab {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: -1px;
	padding: 6px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: #536482;
	font-family: inherit;
	cursor: pointer;
}

.reactions-tab:hover {
	color: #105289;
}

.reactions-tab[aria-selected="true"] {
	border-bottom-color: #105289;
	color: #105289;
	font-weight: bold;
}

.reactions-tab .reactions-emoji {
	font-size: 1.2em;
	line-height: 1;
}

.reactions-people {
	margin: 0;
	padding: 4px 16px 12px;
	overflow-y: auto;
	list-style: none;
}

.reactions-people li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f2f5;
}

.reactions-people li:last-child {
	border-bottom: 0;
}

.reactions-people li[hidden] {
	display: none;
}

.reactions-people .reactions-emoji {
	font-size: 2em;
	line-height: 1;
}

.reactions-person {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-weight: bold;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reactions-when {
	color: #6b7a8a;
	font-size: 0.9em;
	white-space: nowrap;
}

.reactions-remove {
	padding: 2px 8px;
	border: 1px solid #d4a5a5;
	border-radius: 4px;
	background: none;
	color: #a02020;
	font-family: inherit;
	font-size: 0.9em;
	cursor: pointer;
}

.reactions-remove:hover {
	background: #fbeaea;
}

/* Most appreciated reply */
.reactions-standout {
	display: inline-block;
	margin: 0 0 6px;
	padding: 5px 10px 5px 8px;
	border-radius: 999px;
	border: 1px solid #7a5b0c;
	background: #fdf3d8;
	color: #7a5b0c;
	font-size: 0.95em;
	font-weight: bold;
}

.reactions-standout .icon {
	color: #c99a1d;
	transform: scale(1.2);
}

/* Topic lists. Printed at the start of the title cell and floated right: prosilver has no event on
   the title line itself, the one after the title comes after its line break */
.reactions-topic-badge {
	display: inline-flex;
	float: right;
	align-items: center;
	gap: 4px;
	margin: -4px 0 -3px 8px;
	padding: 0 7px 0 4px;
	border: 1px solid #d6dee7;
	border-radius: 999px;
	background: #f6f8fa;
	color: #4c5d77;
	font-size: 0.9em;
	font-weight: bold;
	line-height: 2;
	vertical-align: middle;
	white-space: nowrap;
}

.reactions-topic-badge .reactions-emoji {
	font-size: 1.4em;
	line-height: 1;
}

/* The page numbers also float right: without this they sit left of the badge where both overlap */
.reactions-topic-badge ~ .pagination {
	clear: right;
}

/* Board index */
.reactions-week {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 10px;
}

.reactions-week-avatar img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.reactions-week-body {
	flex: 1;
	min-width: 0;
}

.reactions-week-body p {
	margin: 0;
	line-height: 1.5;
}

/* Gold heading, also when it is a link: prosilver colours stat-block headings and links blue */
.stat-block h3.reactions-index-title,
.stat-block h3.reactions-index-title a {
	color: #c99a1d;
}

.stat-block h3.reactions-index-title a:hover {
	color: #5c4409;
}

.reactions-index-title .icon {
	color: #c99a1d;
}

.reactions-week-name {
	font-size: 1.2em;
	font-weight: bold;
}

.reactions-week-chart {
	flex-shrink: 0;
	width: 140px;
	height: 32px;
	color: #105289;
}

.reactions-ticker {
	overflow: hidden;
	border-top: 1px solid #e3e8ee;
	padding-top: 6px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.reactions-ticker-track {
	display: flex;
	width: max-content;
	animation: reactions-ticker 60s linear infinite;
}

.reactions-ticker:hover .reactions-ticker-track,
.reactions-ticker:focus-within .reactions-ticker-track {
	animation-play-state: paused;
}

@keyframes reactions-ticker {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.reactions-ticker-list {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0 14px;
	list-style: none;
	white-space: nowrap;
}

/* Element names added so a style's rule for spans in the stat blocks cannot shrink the emoji */
.reactions-ticker-list li span.reactions-emoji {
	font-size: 1.4em;
	line-height: 1;
	vertical-align: middle;
}

.reactions-ticker-on,
.reactions-ticker-time {
	color: #6b7a8a;
}

/* Profile */
.reactions-profile h3 {
	margin-top: 0;
}

.reactions-profile-figures,
.reactions-profile-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.reactions-profile-figures strong {
	font-size: 1.3em;
}

.reactions-profile-types li {
	padding: 2px 10px 2px 6px;
	border: 1px solid #d6dee7;
	border-radius: 999px;
	background: #ffffff;
	font-weight: bold;
}

.reactions-profile-types .reactions-emoji {
	font-size: 1.3em;
	line-height: 1;
	vertical-align: middle;
}

.reactions-profile-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 30px;
}

.reactions-profile-columns h4 {
	margin: 6px 0 4px;
	font-size: 1em;
}

.reactions-profile-list {
	margin: 0;
	padding-left: 20px;
}

.reactions-profile-list li {
	padding: 2px 0;
}

.reactions-profile-count {
	color: #6b7a8a;
	font-weight: bold;
}

.reactions-profile-more {
	margin: 10px 0 0;
}

/* Reaction pages */
.reactions-page-title {
	margin-bottom: 8px;
}

.reactions-pages-nav ul,
.reactions-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Past the rounded corner of the box below, which the first tab would otherwise stick out of */
.reactions-pages-nav ul {
	padding: 0 8px;
}

/* Same background as the active tab, which covers the top border to join it */
.reactions-page-body {
	margin-bottom: 12px;
	padding: 12px;
	border: 1px solid #d6dee7;
	border-radius: 6px;
	background: #ffffff;
}

.reactions-pages-nav a {
	position: relative;
	display: inline-block;
	margin-bottom: -1px;
	padding: 6px 12px;
	border: 1px solid transparent;
	border-radius: 6px 6px 0 0;
	color: #536482;
	font-weight: bold;
}

.reactions-pages-nav a:hover {
	color: #105289;
	text-decoration: none;
}

.reactions-pages-nav a.is-active {
	border-color: #d6dee7;
	border-bottom-color: #ffffff;
	background: #ffffff;
	color: #105289;
}

.reactions-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0 0 10px;
}

.reactions-toolbar .pagination {
	margin-left: auto;
}

.reactions-period {
	display: flex;
	align-items: center;
	gap: 8px;
}

.reactions-period-off {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.reactions-period-label {
	min-width: 120px;
	font-size: 1.2em;
	text-align: center;
}

.reactions-switch a {
	display: inline-block;
	padding: 3px 12px;
	border: 1px solid #d6dee7;
	border-radius: 999px;
	background: #f6f8fa;
	color: #4c5d77;
}

.reactions-switch a:hover {
	border-color: #b9c6d3;
	text-decoration: none;
}

.reactions-switch a.is-active {
	border-color: #105289;
	background: #105289;
	color: #ffffff;
}

.reactions-type-filter {
	display: flex;
	align-items: center;
	gap: 6px;
}

.reactions-summary-line,
.reactions-muted {
	color: #6b7a8a;
}

.reactions-empty {
	padding: 20px 0;
	color: #6b7a8a;
	font-size: 1.1em;
	text-align: center;
}

.reactions-roundup {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
}

@media (max-width: 700px) {
	.reactions-roundup {
		grid-template-columns: minmax(0, 1fr);
	}
}

.reactions-box h3 {
	margin-top: 0;
}

.reactions-types-used {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reactions-types-used a,
.reactions-type-plain {
	display: inline-block;
	padding: 2px 10px 2px 6px;
	border: 1px solid #d6dee7;
	border-radius: 999px;
	background: #ffffff;
	color: #4c5d77;
}

.reactions-types-used a:hover {
	border-color: #b9c6d3;
	text-decoration: none;
}

.reactions-types-used a.is-active {
	border-color: #105289;
	background: #e1ebf5;
	color: #105289;
}

.reactions-types-used .reactions-emoji {
	font-size: 1.3em;
	line-height: 1;
	vertical-align: middle;
}

.reactions-ranking,
.reactions-list,
.reactions-feed-list,
.reactions-cards {
	margin: 0;
	padding: 0;
	list-style: none;
}

.reactions-ranking li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
}

.reactions-rank {
	width: 22px;
	color: #8a99a8;
	font-weight: bold;
	text-align: right;
}

.reactions-ranking .reactions-rank.reactions-rank-1,
.reactions-ranking .reactions-rank.reactions-rank-2,
.reactions-ranking .reactions-rank.reactions-rank-3 {
	border-radius: 50%;
	line-height: 22px;
	text-align: center;
}

.reactions-ranking .reactions-rank.reactions-rank-1 {
	background: #f5c542;
	color: #4a3700;
}

.reactions-ranking .reactions-rank.reactions-rank-2 {
	background: #d3dae1;
	color: #3b4652;
}

.reactions-ranking .reactions-rank.reactions-rank-3 {
	background: #e0a36c;
	color: #4a2a0d;
}

.reactions-avatar img {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.reactions-avatar:empty {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e3e8ee;
}

.reactions-avatar-large img,
.reactions-avatar-large:empty {
	width: 64px;
	height: 64px;
}

.reactions-avatar-initial {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e1ebf5;
	color: #105289;
	font-size: 15px;
	font-weight: bold;
	line-height: 32px;
	text-align: center;
}

.reactions-avatar-large .reactions-avatar-initial {
	width: 64px;
	height: 64px;
	font-size: 28px;
	line-height: 64px;
}

.reactions-week-avatar .reactions-avatar-initial {
	width: 56px;
	height: 56px;
	font-size: 24px;
	line-height: 56px;
}

.reactions-ranking-body {
	flex: 1;
	min-width: 0;
}

.reactions-ranking-name {
	display: block;
	overflow: hidden;
	font-weight: bold;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reactions-bar {
	display: block;
	height: 4px;
	margin-top: 3px;
	border-radius: 2px;
	background: #e3e8ee;
}

.reactions-bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: #105289;
}

.reactions-ranking-total,
.reactions-count-pill {
	padding: 1px 9px;
	border-radius: 999px;
	background: #e1ebf5;
	color: #105289;
	font-weight: bold;
}

.reactions-list li {
	padding: 5px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.reactions-list li:last-child {
	border-bottom: 0;
}

.reactions-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.reactions-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 14px 10px;
	text-align: center;
}

.reactions-card-name {
	font-size: 1.1em;
	font-weight: bold;
}

.reactions-card-figures {
	display: flex;
	gap: 12px;
	color: #6b7a8a;
}

.reactions-card-figures strong {
	color: #333333;
}

.reactions-member-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.reactions-member-head .reactions-page-title {
	margin: 0 0 2px;
}

.reactions-feed-day {
	margin: 14px 0 4px;
	padding-bottom: 4px;
	border-bottom: 1px solid #d6dee7;
}

.reactions-feed-day:first-child {
	margin-top: 0;
}

.reactions-feed-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}

.reactions-feed-list .reactions-avatar {
	flex-shrink: 0;
}

.reactions-feed-list .reactions-emoji {
	flex-shrink: 0;
	width: 26px;
	font-size: 1.4em;
	line-height: 1;
	text-align: center;
}

.reactions-feed-text {
	flex: 1;
	min-width: 0;
}

.reactions-feed-time {
	color: #6b7a8a;
	white-space: nowrap;
}

.reactions-feed-list li.is-received {
	border-left: 3px solid #c99a1d;
	padding-left: 8px;
}

.reactions-feed-list li.is-given {
	border-left: 3px solid #105289;
	padding-left: 8px;
}

.reactions-feed-legend {
	display: flex;
	gap: 14px;
	margin: 0 0 8px;
}

.reactions-feed-legend .is-received,
.reactions-feed-legend .is-given {
	padding-left: 6px;
	border-left: 3px solid #c99a1d;
}

.reactions-feed-legend .is-given {
	border-left-color: #105289;
}

select#reactions-type {
	font-size: 11px;
	line-height: 0.95;
	padding: 2px 4px;
	border-radius: 4px;
	border: 1px solid silver;
	background-image: linear-gradient(to bottom, #ffffff 0%, #e9e9e9 100%);
}

/* Dark mode */
html.phpbb-dark-mode.reactions-keyboard .reactions button:focus,
html.phpbb-dark-mode.reactions-keyboard .reactions-button-item a:focus,
html.phpbb-dark-mode.reactions-keyboard .reactions-picker button:focus,
html.phpbb-dark-mode.reactions-keyboard .reactions-dialog button:focus {
	outline-color: #60a5fa;
}

html.phpbb-dark-mode .reactions-summary,
html.phpbb-dark-mode .reactions-topic-badge,
html.phpbb-dark-mode .reactions-switch a {
	border-color: #334155;
	background: #111827;
	color: #cbd5e1;
}

html.phpbb-dark-mode .reactions-summary:hover,
html.phpbb-dark-mode .reactions-switch a:hover {
	border-color: #475569;
	background: #1f2937;
}

html.phpbb-dark-mode .reactions-bubble {
	border-color: #111827;
	background: #1f2937;
}

html.phpbb-dark-mode .reactions-summary:hover .reactions-bubble {
	border-color: #1f2937;
}

html.phpbb-dark-mode .reactions-picker {
	border-color: #334155;
	background: #111827;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

html.phpbb-dark-mode .reactions-pick.is-mine {
	background: #1e3a5f;
}

html.phpbb-dark-mode .reactions-pick::after {
	background: #334155;
	color: #f3f4f6;
}

html.phpbb-dark-mode .reactions-dialog {
	border-color: #334155;
	background: #111827;
	color: #e5e7eb;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7);
}

html.phpbb-dark-mode .reactions-dialog::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

html.phpbb-dark-mode .reactions-dialog-head,
html.phpbb-dark-mode .reactions-tabs,
html.phpbb-dark-mode .reactions-people li,
html.phpbb-dark-mode .reactions-ticker,
html.phpbb-dark-mode .reactions-feed-day {
	border-color: #334155;
}

html.phpbb-dark-mode .reactions-dialog-head h3 {
	color: #f3f4f6;
}

html.phpbb-dark-mode .reactions-dialog-close,
html.phpbb-dark-mode .reactions-tab,
html.phpbb-dark-mode .reactions-pages-nav a {
	color: #cbd5e1;
}

html.phpbb-dark-mode .reactions-dialog-close:hover {
	background: #1f2937;
}

html.phpbb-dark-mode .reactions-tab:hover,
html.phpbb-dark-mode .reactions-pages-nav a:hover {
	color: #60a5fa;
}

html.phpbb-dark-mode .reactions-tab[aria-selected="true"] {
	border-bottom-color: #60a5fa;
	color: #60a5fa;
}

html.phpbb-dark-mode .reactions-when,
html.phpbb-dark-mode .reactions-ticker-on,
html.phpbb-dark-mode .reactions-ticker-time,
html.phpbb-dark-mode .reactions-profile-count,
html.phpbb-dark-mode .reactions-summary-line,
html.phpbb-dark-mode .reactions-muted,
html.phpbb-dark-mode .reactions-empty,
html.phpbb-dark-mode .reactions-rank,
html.phpbb-dark-mode .reactions-card-figures,
html.phpbb-dark-mode .reactions-feed-time {
	color: #94a3b8;
}

html.phpbb-dark-mode .reactions-remove {
	border-color: #7f3f3f;
	color: #fca5a5;
}

html.phpbb-dark-mode .reactions-remove:hover {
	background: #3b1d1d;
}

html.phpbb-dark-mode .reactions-standout {
	background: #3a2f10;
	color: #facc15;
}

html.phpbb-dark-mode .stat-block h3.reactions-index-title,
html.phpbb-dark-mode .reactions-index-title .icon,
html.phpbb-dark-mode .stat-block h3.reactions-index-title a {
	color: #facc15;
}

html.phpbb-dark-mode .stat-block h3.reactions-index-title a:hover {
	color: #fde68a;
}

html.phpbb-dark-mode .reactions-week-chart {
	color: #60a5fa;
}

html.phpbb-dark-mode .reactions-profile-types li {
	border-color: #334155;
	background: #111827;
}

html.phpbb-dark-mode .reactions-pages-nav a.is-active {
	border-color: #334155;
	border-bottom-color: #111827;
	background: #111827;
	color: #60a5fa;
}

html.phpbb-dark-mode .reactions-switch a.is-active {
	border-color: #2563eb;
	background: #2563eb;
	color: #ffffff;
}

html.phpbb-dark-mode .reactions-avatar-initial {
	background: #1e3a5f;
	color: #bfdbfe;
}

html.phpbb-dark-mode .reactions-avatar:empty,
html.phpbb-dark-mode .reactions-bar {
	background: #334155;
}

html.phpbb-dark-mode .reactions-bar span {
	background: #60a5fa;
}

html.phpbb-dark-mode .reactions-ranking-total,
html.phpbb-dark-mode .reactions-count-pill {
	background: #1e3a5f;
	color: #bfdbfe;
}

html.phpbb-dark-mode .reactions-list li {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.phpbb-dark-mode .reactions-card-figures strong {
	color: #e5e7eb;
}

html.phpbb-dark-mode .reactions-page-body {
	border-color: #334155;
	background: #111827;
}

html.phpbb-dark-mode .reactions-feed-list li.is-given,
html.phpbb-dark-mode .reactions-feed-legend .is-given {
	border-left-color: #60a5fa;
}

html.phpbb-dark-mode .reactions-types-used a,
html.phpbb-dark-mode .reactions-type-plain {
	border-color: #334155;
	background: #111827;
	color: #cbd5e1;
}

html.phpbb-dark-mode .reactions-types-used a:hover {
	border-color: #475569;
	background: #1f2937;
}

html.phpbb-dark-mode .reactions-types-used a.is-active {
	border-color: #60a5fa;
	background: #1e3a5f;
	color: #bfdbfe;
}

@media (prefers-reduced-motion: reduce) {
	.reactions-picker {
		animation: none;
	}

	/* No scrolling: the list wraps and only the first copy shows */
	.reactions-ticker {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.reactions-ticker-track {
		width: auto;
		animation: none;
	}

	.reactions-ticker-list {
		flex-wrap: wrap;
		gap: 4px 20px;
		white-space: normal;
	}

	.reactions-ticker-list[aria-hidden="true"] {
		display: none;
	}

	.reactions-summary,
	.reactions-pick-emoji {
		transition: none;
	}

	.reactions-pick:hover .reactions-pick-emoji,
	.reactions-keyboard .reactions-pick:focus .reactions-pick-emoji {
		transform: none;
	}
}

@media (max-width: 700px) {
	.reactions-when,
	.reactions-week-chart {
		display: none;
	}

	.reactions-toolbar .pagination {
		margin-left: 0;
	}

	.reactions-page-body {
		padding: 8px;
	}

	.reactions-feed-list li {
		flex-wrap: wrap;
		gap: 2px 10px;
	}

	/* On its own line, under the text: past the avatar, the emoji and their gaps */
	.reactions-feed-time {
		flex-basis: 100%;
		box-sizing: border-box;
		padding-left: 78px;
		font-size: 0.9em;
	}
}
