.stroop-game {
	max-width: 800px;
	margin: 0 auto;
	padding: 1rem 0.75rem 1.5rem;
	font-family: inherit;
	color: #1a1a1a;
}

.stroop-game__gate {
	padding: 1rem 0.85rem 1.25rem;
	border-radius: 10px;
	background-color: #f4f7fb;
}

.stroop-game__partner {
	margin: 0 0 1.25rem;
	text-align: center;
}

.stroop-game__partner-name {
	font-size: 1.8rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.stroop-game__partner-logo img {
	display: block;
	max-height: 90px;
	height: auto;
	width: auto;
	margin: 0 auto;
}

.stroop-game__title,
.stroop-game__end-title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	line-height: 1.2;
	text-align: center;
}

.stroop-game__closing {
	margin: 0 0 12px;
	font-size: 14px;
	font-style: italic;
	text-align: center;
}

.stroop-game__how-to {
	margin: 10px auto 1.25rem;
	max-width: 600px;
	width: 100%;
}

.stroop-game__how-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #1a5276;
	color: #fff;
	border: 1px solid #154360;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
}

.stroop-game__how-toggle:hover,
.stroop-game__how-toggle:focus {
	background: #154360;
}

.stroop-game__how-icon {
	font-size: 18px;
	margin-left: 8px;
}

.stroop-game__how-content {
	padding: 10px 14px 6px;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 4px 4px;
	font-size: 14px;
	line-height: 1.5;
	background: #fff;
}

.stroop-game__how-content p {
	margin: 0 0 0.5rem;
}

.stroop-game__how-content p:last-child {
	margin-bottom: 0;
}

.stroop-game__prize {
	margin: 0 auto 1.25rem;
	padding: 0;
	width: 100%;
	max-width: 500px;
	text-align: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stroop-game__prize-image {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	margin: 0 auto 15px;
	background-color: rgba(255, 255, 255, 0.85);
	padding: 8px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.stroop-game__prize-frame {
	display: block;
	max-width: 100%;
	border: 2px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
}

.stroop-game__prize-img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(300px, 100%);
	margin: 0 auto;
	border: 0;
}

.stroop-game__prize-description {
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	color: #333;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	padding: 15px 20px;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.stroop-game__prize-description p {
	margin: 0 0 0.75rem;
}

.stroop-game__prize-description p:last-child {
	margin-bottom: 0;
}

.stroop-game__how {
	margin: 0 0 1.25rem;
	line-height: 1.45;
}

.stroop-game__form {
	display: grid;
	gap: 0.85rem;
	max-width: 500px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.stroop-game__terms-block {
	text-align: left;
	padding: 14px 16px;
	background: #e8e8e8;
	border-radius: 6px;
}

.stroop-game__checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	min-height: 44px;
	padding: 4px 0;
}

.stroop-game__checkbox-row input[type="checkbox"] {
	margin-top: 3px;
	width: 20px;
	height: 20px;
	min-width: 20px;
	flex-shrink: 0;
}

.stroop-game__optin {
	margin: 8px 0 0;
}

.stroop-game__required {
	color: #b32d2e;
}

.stroop-game__required-note {
	margin: 2px 0 0;
	font-size: 14px;
	font-style: italic;
	color: #666;
	font-weight: 400;
}

.stroop-game__details-title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	text-align: center;
}

.stroop-game__field {
	display: grid;
	gap: 0.3rem;
	font-weight: 600;
}

.stroop-game__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #c5c5c5;
	border-radius: 8px;
}

.stroop-game__error {
	margin: 0;
	color: #922b21;
	font-weight: 600;
}

.stroop-game__start.is-disabled {
	background: #ccc;
	color: #fff;
	opacity: 0.6;
	cursor: pointer;
}

/* Terms lock only dims the start control. Never disable the play panel —
   timers still run, and a lingering terms-locked class would eat taps while
   still showing “Too slow”. */

.stroop-game__start,
.stroop-game__again,
.stroop-game__donate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.25rem;
	border: 0;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.stroop-game__form > .stroop-game__start {
	justify-self: center;
}

.stroop-game__start,
.stroop-game__donate {
	background: #1a5276;
	color: #fff;
}

.stroop-game__again {
	background: #e8e8e8;
	color: #1a1a1a;
}

.stroop-game__play:not([hidden]) {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.stroop-game__hud {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.stroop-game__timer {
	height: 0.55rem;
	margin-bottom: 0.65rem;
	background: #ececec;
	border-radius: 99px;
	overflow: hidden;
	flex: 0 0 auto;
}

.stroop-game__timer-bar {
	height: 100%;
	width: 100%;
	background: #1a5276;
}

.stroop-game__rule {
	margin: 0 0 0.4rem;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	flex: 0 0 auto;
}

.stroop-game__word {
	margin: 0 0 0.65rem;
	min-height: 2.4rem;
	text-align: center;
	font-size: clamp(1.8rem, 7vw, 3.2rem);
	font-weight: 800;
	line-height: 1.1;
	flex: 0 0 auto;
}

.stroop-game__word.is-ok {
	outline: 4px solid #1e8449;
	outline-offset: 6px;
	border-radius: 8px;
}

.stroop-game__word.is-bad {
	outline: 4px solid #922b21;
	outline-offset: 6px;
	border-radius: 8px;
}

.stroop-game__stage {
	display: flex;
	justify-content: center;
	margin: 0 0 0.65rem;
	flex: 0 1 auto;
	min-height: 0;
}

.stroop-game__shape-wrap {
	width: min(38vw, 10.5rem);
	height: min(38vw, 10.5rem);
	max-height: 26vh;
	border-radius: 12px;
}

.stroop-game__shape-wrap.is-ok {
	outline: 4px solid #1e8449;
	outline-offset: 6px;
}

.stroop-game__shape-wrap.is-bad {
	outline: 4px solid #922b21;
	outline-offset: 6px;
}

.stroop-game__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.stroop-game.is-locked .stroop-game__colour {
	opacity: 0.7;
	cursor: default;
	pointer-events: none;
}

.stroop-game__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.5rem;
	flex: 0 0 auto;
	width: 100%;
	position: sticky;
	bottom: 0;
	z-index: 3;
	margin-top: auto;
	padding-top: 0.35rem;
	padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
	background: #fff;
	box-sizing: border-box;
}

.stroop-game__colour {
	min-height: 2.85rem;
	border: 0;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

.stroop-game__colour.is-hit {
	outline: 4px solid #1a1a1a;
	outline-offset: 3px;
}

.stroop-game__colour.is-hit.is-ok {
	outline-color: #1e8449;
}

.stroop-game__colour.is-hit.is-bad {
	outline-color: #922b21;
}

.stroop-game__countdown {
	text-align: center;
	padding: 2.5rem 1rem 1.5rem;
}

.stroop-game__countdown-number {
	font-size: 6.5rem;
	font-weight: 800;
	line-height: 1;
	color: #1a5276;
	margin: 0 0 0.75rem;
	animation: stroop-countdown-pulse 1s infinite;
}

.stroop-game__countdown-label {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	color: #555;
}

@keyframes stroop-countdown-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
}

.stroop-game__sponsor {
	margin: 0.85rem auto 1rem;
	max-width: 32rem;
	text-align: center;
}

.stroop-game__sponsor .flashvue-sponsor-strip {
	margin-left: auto;
	margin-right: auto;
}

.stroop-game__sponsor .flashvue-sponsor-strip__body {
	align-items: center;
}

.stroop-game__sponsor .flashvue-sponsor-strip__logo {
	margin-left: auto;
	margin-right: auto;
}

.stroop-game__sponsor--end {
	margin-top: 0.75rem;
	margin-bottom: 0.25rem;
}

.stroop-game__end-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
}

.stroop-game__end-stats {
	text-align: center;
	font-weight: 600;
}

.stroop-game__rank {
	margin: 1rem auto 0;
	max-width: 28rem;
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 800;
	background: #fff3cd;
	border: 2px solid #ffc107;
	border-radius: 6px;
	color: #856404;
}

.stroop-game__summary {
	margin-top: 0.85rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
}

.stroop-game__summary p {
	margin: 0.25rem 0;
}

@media (min-width: 600px) {
	.stroop-game__colour {
		min-height: 3.2rem;
		font-size: 1.1rem;
	}

	.stroop-game__shape-wrap {
		width: min(42vw, 12rem);
		height: min(42vw, 12rem);
		max-height: 30vh;
	}
}

@media (orientation: landscape) and (max-height: 500px) {
	.stroop-game {
		padding-top: 0.4rem;
		padding-bottom: 0.4rem;
	}

	.stroop-game__word {
		margin-bottom: 0.4rem;
		font-size: 1.6rem;
		min-height: 1.8rem;
	}

	.stroop-game__shape-wrap {
		width: min(22vh, 7.5rem);
		height: min(22vh, 7.5rem);
		max-height: 28vh;
	}

	.stroop-game__colour {
		min-height: 2.5rem;
	}
}
