/* Final layout overrides kept separate so they load after the base skin. */
body.wto-tool-page,
body.wto-tool-page .wp-site-blocks {
	overflow-x: hidden !important;
}

/* Remove the final theme layout wrappers around the standalone tool. */
body.wto-tool-page .wp-site-blocks,
body.wto-tool-page .wp-site-blocks > *,
body.wto-tool-page .wp-block-group:not(.wto-typing-test) {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.wto-tool-page .wto-typing-test {
	margin-top: 0 !important;
	padding-top: 18px;
	width: 100vw !important;
	max-width: none !important;
}

.wto-test-stage {
	width: calc(100vw - 88px) !important;
	max-width: 1600px !important;
}

/* These theme elements are direct wrapper children in the active theme. */
body.wto-tool-page .wp-site-blocks > header,
body.wto-tool-page .wp-site-blocks > footer,
body.wto-tool-page .wp-block-site-title,
body.wto-tool-page .wp-block-post-title,
body.wto-tool-page .wp-block-navigation,
body.wto-tool-page .entry-title,
body.wto-tool-page .page-title { display: none !important; }

@media (max-width: 700px) {
	.wto-test-stage { width: calc(100vw - 38px) !important; }
}

.wto-word-area i { font-style: normal; }
.wto-word.is-current:before { display: none; }
.wto-word i.is-correct-letter { color: #d1d0c5; }
.wto-word i.is-wrong-letter { color: #ca4754; text-decoration: underline; }
.wto-word i.is-current-letter { position: relative; }
.wto-word i.is-current-letter:before {
	content: '';
	position: absolute;
	left: -3px;
	top: 3px;
	width: 2px;
	height: 1.15em;
	background: var(--wto-accent);
	animation: wto-caret 1s step-end infinite;
}

@media (min-width: 701px) {
	body.wto-tool-page { overflow-y: hidden !important; }
	.wto-typing-test { height: 100vh; }
}

.wto-word-area {
	height: 156px;
	min-height: 0;
	overflow: hidden;
}

.wto-site-header { margin-top: 0; }
.wto-typing-test.is-finished .wto-bottom-controls { display: none; }
.wto-results { margin-top: 25px; }
.wto-chart { height: 210px; }
.wto-chart-heading { display: flex; justify-content: space-between; margin: 0 0 8px; color: var(--wto-muted); font-size: 13px; }
.wto-chart-heading small { font-size: 11px; }
.wto-chart [data-chart-points] circle { fill: var(--wto-accent); stroke: #323437; stroke-width: 2; }
.wto-word-stream { transition: transform .16s ease-out; will-change: transform; }
.wto-custom-time-dialog { width: min(92vw, 360px); border: 1px solid #505256; border-radius: 12px; padding: 0; background: #2c2e31; color: var(--wto-text); font-family: inherit; box-shadow: 0 20px 60px #0008; }
.wto-custom-time-dialog::backdrop { background: #111315a8; backdrop-filter: blur(4px); }
.wto-custom-time-dialog form { padding: 25px; }
.wto-custom-time-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.wto-custom-time-dialog p { margin: 0 0 20px; color: var(--wto-muted); font-size: 13px; }
.wto-custom-time-dialog label { display: block; margin-bottom: 7px; color: var(--wto-muted); font-size: 13px; }
.wto-custom-time-dialog input { box-sizing: border-box; width: 100%; padding: 11px; border: 1px solid #55585c; border-radius: 6px; background: #232528; color: var(--wto-text); font: inherit; outline: none; }
.wto-custom-time-dialog input:focus { border-color: var(--wto-accent); }
.wto-custom-time-dialog form>div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.wto-custom-time-dialog button { border: 0; border-radius: 6px; padding: 9px 13px; background: transparent; color: var(--wto-muted); font: inherit; cursor: pointer; }
.wto-custom-time-dialog button[type="submit"] { background: var(--wto-accent); color: #252525; font-weight: 700; }

@media (max-width: 700px) {
	.wto-word-area { height: 124px; min-height: 0; }
	.wto-site-header { margin-top: 0; }
	.wto-results { margin-top: 20px; }
}
