.gcd-root {
	--gcd-accent: #e63946;
	--gcd-border: #e5e7eb;
	--gcd-card-surface: #f8fafc;
	--gcd-image-surface: #e2e8f0;
	--gcd-muted: #64748b;
	--gcd-result-surface: #f8fafc;
	--gcd-surface: #ffffff;
	--gcd-text: #111827;
	--gcd-track: #e2e8f0;
	--gcd-vote: #c2410c;
	box-sizing: border-box;
	color: var(--gcd-text);
	font-family: inherit;
	margin: 2rem auto;
	max-width: 1180px;
}

/* Das Wesper-Theme von Gamecheck setzt diese Klasse am body, sobald der
 * integrierte Darkmode aktiv ist. Die Variablen wechseln dadurch ohne Reload
 * gemeinsam mit dem vorhandenen Tag-/Nacht-Schalter. */
body.wp-night-mode-on .gcd-root {
	--gcd-border: #3f3f46;
	--gcd-card-surface: #262626;
	--gcd-image-surface: #303030;
	--gcd-muted: #cbd5e1;
	--gcd-result-surface: #262626;
	--gcd-surface: #1b1b1b;
	--gcd-text: #f8fafc;
	--gcd-track: #52525b;
}

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

.gcd-duel {
	background: var(--gcd-surface);
	border: 1px solid var(--gcd-border);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	padding: clamp(1.25rem, 3vw, 2.4rem);
}

body.wp-night-mode-on .gcd-duel {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.gcd-header {
	margin: 0 auto 1.75rem;
	max-width: 900px;
	text-align: center;
}

.gcd-brand {
	align-items: center;
	display: flex;
	gap: clamp(0.8rem, 2.3vw, 1.8rem);
	justify-content: center;
	margin: 0 auto 1.15rem;
}

.gcd-brand-logo {
	display: grid;
	flex: 0 1 auto;
	height: auto;
	max-width: 58%;
	width: clamp(190px, 28vw, 310px);
}

.gcd-brand-logo img {
	display: block;
	grid-area: 1 / 1;
	height: auto;
	width: 100%;
}

.gcd-brand-logo-dark {
	visibility: hidden;
}

body.wp-night-mode-on .gcd-brand-logo-light {
	visibility: hidden;
}

body.wp-night-mode-on .gcd-brand-logo-dark {
	visibility: visible;
}

.gcd-brand-title {
	color: var(--gcd-text);
	font-family: "Inter Tight", "Arial Black", sans-serif;
	font-size: clamp(1.15rem, 2.5vw, 1.8rem);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.05;
	white-space: nowrap;
}

.gcd-header h2 {
	color: var(--gcd-text);
	font-size: clamp(1.25rem, 2.5vw, 1.7rem);
	line-height: 1.2;
	margin: 0;
}

.gcd-matchup {
	align-items: stretch;
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	position: relative;
}

.gcd-card {
	background: var(--gcd-card-surface);
	border: 2px solid transparent;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.gcd-card:hover {
	box-shadow: 0 12px 25px rgba(15, 23, 42, 0.09);
	transform: translateY(-2px);
}

.gcd-card.is-selected {
	border-color: var(--gcd-vote);
}

.gcd-image-link {
	background: var(--gcd-image-surface);
	display: block;
	overflow: hidden;
}

.gcd-image {
	display: block;
	height: clamp(180px, 25vw, 300px);
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.gcd-image-placeholder {
	background: linear-gradient(135deg, #cbd5e1, #f1f5f9);
}

body.wp-night-mode-on .gcd-image-placeholder {
	background: linear-gradient(135deg, #303030, #454545);
}

.gcd-card:hover .gcd-image {
	transform: scale(1.025);
}

.gcd-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem;
}

.gcd-card h3 {
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.25;
	margin: 0 0 1rem;
}

.gcd-card h3 a {
	color: var(--gcd-text);
	text-decoration: none;
}

.gcd-card h3 a:hover,
.gcd-card h3 a:focus-visible,
.gcd-review-link:hover,
.gcd-review-link:focus-visible {
	color: var(--gcd-accent);
}

.gcd-vote-button {
	appearance: none;
	background: var(--gcd-vote);
	border: 2px solid var(--gcd-vote);
	border-radius: 8px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	margin-top: auto;
	min-height: 46px;
	padding: 0.7rem 1rem;
	transition: filter 150ms ease, opacity 150ms ease, transform 150ms ease;
	width: 100%;
}

.gcd-vote-button:hover:not(:disabled),
.gcd-vote-button:focus-visible:not(:disabled) {
	background: #9a3412;
	border-color: #9a3412;
	filter: none;
	transform: translateY(-1px);
}

.gcd-vote-button:focus-visible,
.gcd-review-link:focus-visible,
.gcd-card h3 a:focus-visible,
.gcd-image-link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--gcd-accent) 40%, transparent);
	outline-offset: 3px;
}

.gcd-vote-button:focus-visible {
	outline-color: color-mix(in srgb, var(--gcd-vote) 55%, transparent);
}

.gcd-vote-button:disabled {
	cursor: default;
	opacity: 0.5;
}

.gcd-vote-button.is-selected {
	filter: none;
	opacity: 1;
}

.gcd-review-link {
	align-self: center;
	color: var(--gcd-muted);
	font-size: 0.92rem;
	font-weight: 700;
	margin-top: 0.8rem;
	text-decoration: none;
}

.gcd-versus {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #ffffff;
	font-family: "Inter Tight", "Arial Black", sans-serif;
	font-size: clamp(2.75rem, 5vw, 4.5rem);
	font-style: italic;
	font-weight: 900;
	left: 50%;
	letter-spacing: -0.08em;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.8);
	top: clamp(90px, 12.5vw, 150px);
	transform: translate(-50%, -50%);
	z-index: 3;
}

.gcd-status {
	color: var(--gcd-muted);
	font-size: 0.95rem;
	font-weight: 650;
	min-height: 1.4em;
	padding-top: 0.8rem;
	text-align: center;
}

.gcd-status.is-error {
	color: #b91c1c;
}

.gcd-results[hidden] {
	display: none;
}

.gcd-result-box {
	background: var(--gcd-result-surface);
	border-left: 4px solid var(--gcd-vote);
	border-radius: 8px;
	margin-top: 0.4rem;
	padding: 1rem clamp(1rem, 3vw, 1.5rem);
}

.gcd-result-box p {
	color: var(--gcd-muted);
	margin: 0.3rem 0;
}

.gcd-result-box .gcd-result-lead {
	color: var(--gcd-text);
	font-size: 1.15rem;
	font-weight: 800;
}

.gcd-result-box .gcd-vote-confirmation {
	color: var(--gcd-vote);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gcd-result-row {
	margin-top: 0.85rem;
}

.gcd-result-label {
	display: flex;
	font-size: 0.92rem;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 0.3rem;
}

.gcd-result-label span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gcd-result-track {
	background: var(--gcd-track);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.gcd-result-track span {
	background: var(--gcd-accent);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 2px;
}

.gcd-total {
	font-size: 0.8rem;
	padding-top: 0.6rem;
}

.gcd-root.is-loading .gcd-duel {
	cursor: wait;
}

.gcd-empty {
	background: #fff8e1;
	border: 1px solid #f2d184;
	border-radius: 6px;
	margin: 1rem 0;
	padding: 1rem;
}

@media (max-width: 700px) {
	.gcd-brand {
		gap: 0.65rem;
	}

	.gcd-brand-logo {
		max-width: 55%;
		width: 220px;
	}

	.gcd-brand-title {
		font-size: clamp(1rem, 4.4vw, 1.35rem);
	}

	.gcd-matchup {
		grid-template-columns: 1fr;
	}

	.gcd-versus {
		color: var(--gcd-text);
		font-size: 3rem;
		justify-self: center;
		left: auto;
		margin: -2.2rem 0;
		position: relative;
		top: auto;
		transform: none;
	}

	.gcd-image {
		height: min(62vw, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gcd-card,
	.gcd-image,
	.gcd-vote-button {
		transition: none;
	}
}
