/* ========================================
   Word Game Component
   ======================================== */
.word-game {
	color: var(--color-text);
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: center;
	gap: var(--spacing-md);
	width: 100%;
	padding: var(--spacing-md);
	position: relative;
	flex: 1;
	min-height: 0;
	max-height: none;
	overflow: visible;
}

.word-game__hidden-input {
	border: none;
	width: calc(5 * 4ch);
	width: calc(var(--word-length, 5) * 4ch);
	letter-spacing: 0;
	padding: 0;
	position: absolute;
	margin-top: 0;
	height: 0;
	outline: none;
}

/* The real focus cue is the active row of letter boxes; keep the global focus ring off this hidden field. */
.word-game__hidden-input:focus-visible {
	outline: none;
}

/* ========================================
   Letter Input Display
   ======================================== */
.word-game__input {
	display: flex;
	gap: var(--spacing-md);
	margin: 0 var(--spacing-sm);
}

.word-game__letter-box {
	--box-fit: calc((100vw - 2.8rem - (var(--word-length, 5) - 1) * var(--spacing-md)) / var(--word-length, 5));
	--box: min(var(--letter-size), var(--box-fit));
	font-weight: 600;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	font-size: calc(var(--box) * 0.35);
	padding: var(--spacing-md);
	color: var(--color-text);
	text-align: center;
	line-height: 2rem;
	height: var(--box);
	width: var(--box);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ========================================
   Validation Row (Submitted Guesses)
   ======================================== */
.word-game__validation {
	display: flex;
	gap: var(--spacing-md);
	line-height: 2rem;
	margin: var(--spacing-sm);
}

.word-game__validation[hidden] {
	display: none;
}

.word-game__validation-letter {
	--box-fit: calc((100vw - 2.8rem - (var(--word-length, 5) - 1) * var(--spacing-md)) / var(--word-length, 5));
	--box: min(var(--letter-size), var(--box-fit));
	font-weight: 600;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	font-size: calc(var(--box) * 0.35);
	padding: var(--spacing-md);
	color: var(--color-text);
	text-align: center;
	height: var(--box);
	width: var(--box);
	display: flex;
	align-items: center;
	justify-content: center;
}

.word-game__validation-letter--misplaced {
	color: var(--color-warning);
	border-color: var(--color-warning);
}

.word-game__validation-letter--correct {
	color: var(--color-success);
	border-color: var(--color-success);
}

.word-game__validation-letter--wrong {
	color: var(--color-error);
	border-color: var(--color-error);
}

/* ========================================
   Share Button
   ======================================== */
.word-game__share-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px;
}

.word-game__share-button {
	background-color: var(--color-primary);
	color: var(--color-text);
	padding: 0.5rem var(--spacing-md);
	font-size: 1rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

/* ========================================
   Generic Buttons
   ======================================== */
.word-game__button {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-weight: 600;
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--border-radius);
	font-size: var(--spacing-lg);
	padding: var(--spacing-sm);
	text-align: center;
	line-height: 2rem;
}

.word-game__button a {
	color: var(--color-text);
	-webkit-text-decoration: none;
	text-decoration: none;
}

.word-game__button a:hover {
	color: var(--color-bg);
}

.word-game__button:hover {
	background-color: var(--color-text);
	color: var(--color-bg);
}

/* ========================================
   Streak Counter
   ======================================== */
.word-game__streak {
	font-size: 1.1rem;
	font-weight: 700;
	display: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20%       { transform: translateX(-6px); }
	40%       { transform: translateX(6px); }
	60%       { transform: translateX(-4px); }
	80%       { transform: translateX(4px); }
}

.word-game__input--shake {
	animation: shake 0.4s ease-in-out;
}

@keyframes letter-flip {
	0%   { transform: scaleY(1); }
	50%  { transform: scaleY(0); }
	100% { transform: scaleY(1); }
}

.word-game__validation--animate .word-game__validation-letter {
	animation: letter-flip 0.4s ease-in-out both;
}

.word-game__validation--animate .word-game__validation-letter:nth-child(2) { animation-delay: 0.1s; }
.word-game__validation--animate .word-game__validation-letter:nth-child(3) { animation-delay: 0.2s; }
.word-game__validation--animate .word-game__validation-letter:nth-child(4) { animation-delay: 0.3s; }
.word-game__validation--animate .word-game__validation-letter:nth-child(5) { animation-delay: 0.4s; }
.word-game__validation--animate .word-game__validation-letter:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   Attempt Distribution Chart
   ======================================== */
.word-game__distribution-details {
	font-size: 0.85rem;
	cursor: pointer;
}

.word-game__distribution-details summary {
	list-style: none;
	color: var(--color-text);
	opacity: 0.7;
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
}

.word-game__distribution-details summary::-webkit-details-marker { display: none; }

.word-game__distribution-details[open] summary {
	margin-bottom: 6px;
}

.word-game__distribution {
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
}

.word-game__distribution-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.word-game__distribution-label {
	width: 1.2rem;
	text-align: right;
	font-weight: 600;
	flex-shrink: 0;
}

.word-game__distribution-bar-wrap {
	flex: 1;
	background: var(--color-border);
	border-radius: 3px;
	overflow: hidden;
}

.word-game__distribution-bar {
	height: 1.2rem;
	background: var(--color-success);
	border-radius: 3px;
	min-width: 2px;
	transition: width 0.4s ease;
	display: flex;
	align-items: center;
	padding-left: 4px;
	font-size: 0.75rem;
	color: var(--color-text);
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
	body {
		overflow-x: hidden;
		overflow-y: auto;
	}

	footer {
		position: static;
		flex-shrink: 0;
		margin-top: 0.5rem;
		padding: 0.5rem 0;
		padding-bottom: 0.5rem;
		background-color: var(--color-bg);
		z-index: 40;
	}

	.word-game {
		flex: none;
		gap: 0.3rem;
		padding: 0.5rem;
		justify-content: flex-start;
		height: auto;
		max-height: none;
		overflow: visible;
		box-sizing: border-box;
	}

	.word-game h1 {
		margin: 0.5rem 0;
	}

	.word-game__input {
		gap: 0.5rem;
	}

	.word-game__board {
		display: flex;
		flex-direction: column;
		gap: 0.2rem;
	}

	.word-game__letter-box,
	.word-game__validation-letter {
		--box-fit: calc((100vw - 1.8rem - (var(--word-length, 5) - 1) * 0.5rem) / var(--word-length, 5));
		--box: min(var(--letter-size-mobile), var(--box-fit));
		height: var(--box);
		width: var(--box);
		font-size: calc(var(--box) * 0.5);
		padding: var(--spacing-sm);
	}

	.word-game__validation {
		gap: 0.5rem;
		margin: 0 var(--spacing-xs);
	}
}

@media (max-width: 400px) {
	.word-game__input {
		gap: 0.4rem;
	}

	.word-game__letter-box,
	.word-game__validation-letter {
		--box-fit: calc((100vw - 1.8rem - (var(--word-length, 5) - 1) * 0.4rem) / var(--word-length, 5));
		--box: min(2.5rem, var(--box-fit));
		height: min(2.5rem, calc((100vw - 1.8rem - (5 - 1) * 0.4rem) / 5));
		height: var(--box);
		width: min(2.5rem, calc((100vw - 1.8rem - (5 - 1) * 0.4rem) / 5));
		width: var(--box);
		font-size: calc(min(2.5rem, calc((100vw - 1.8rem - (5 - 1) * 0.4rem) / 5)) * 0.48);
		font-size: calc(var(--box) * 0.48);
		padding: 0.3rem;
	}

	.word-game__validation {
		gap: 0.4rem;
	}
}

/* ========================================
   Virtual Keyboard Component
   ======================================== */
:root {
	--key-height: var(--letter-size);
	--key-gap: var(--spacing-xs);
}

.keyboard {
	display: flex;
	gap: var(--spacing-xs);
	flex-flow: column;
	line-height: 3rem;
	margin: var(--spacing-sm);
	margin-top: auto;
	margin-bottom: 1.5rem;
	width: 100%;
	max-width: 600px;
	flex-shrink: 0;
}

.keyboard > :nth-child(2) {
	margin-left: var(--spacing-md);
}

.keyboard > :nth-child(3) {
	margin-left: -2rem;
}

.keyboard__row {
	gap: 0.5rem;
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: center;
}

.keyboard button {
	-webkit-touch-callout: none;
}

/* ========================================
   Keyboard Keys
   ======================================== */
button.keyboard__key {
	background: transparent;
	font-family: inherit;
	line-height: inherit;
	touch-action: manipulation;
}

.keyboard__key {
	font-weight: 600;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	font-size: var(--spacing-lg);
	padding: var(--spacing-md);
	color: var(--color-text);
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	height: var(--letter-size);
	width: var(--letter-size);
	cursor: pointer;
}

/* ========================================
   Key States (Based on Letter Status)
   ======================================== */
.keyboard__key--misplaced {
	color: var(--color-warning);
	border-color: var(--color-warning);
}

.keyboard__key--correct {
	color: var(--color-success);
	border-color: var(--color-success);
}

.keyboard__key--wrong {
	color: var(--color-error);
	border-color: var(--color-error);
}

/* The letter is placed AND the word holds more copies of it than the placed ones: half green, half yellow, cut diagonally. */
button.keyboard__key--mixed {
	color: var(--color-text);
	border-color: var(--color-border);
	background: linear-gradient(135deg, var(--color-success) 50%, var(--color-warning) 50%);
	text-shadow: 0 0 3px var(--color-bg), 0 0 3px var(--color-bg), 0 0 2px var(--color-bg);
}

/* ========================================
   Special Keys (Backspace, Enter)
   ======================================== */
.keyboard__key--backspace,
.keyboard__key--enter {
	width: auto;
	min-width: 5.5rem;
	padding: var(--spacing-md) 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.keyboard__key--enter > button,
.keyboard__key--backspace > button {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font: inherit;
	color: inherit;
}

.keyboard__key--enter > button:hover,
.keyboard__key--backspace > button:hover {
	cursor: pointer;
}

.keyboard__key--enter > button:focus-visible,
.keyboard__key--backspace > button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--border-radius);
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
	/* One source for the key height: the keyboard is fixed to the screen, so the page reserves exactly its height. */
	:root {
		--key-height: 3.2rem;
		--key-gap: 0.5rem;
	}

	.keyboard {
		gap: var(--key-gap);
		margin: 0;
		width: 100%;
		max-width: 100%;
	}

	.keyboard > :nth-child(2) {
		margin-left: 0.4rem;
	}

	.keyboard > :nth-child(3) {
		margin-left: 0;
	}

	.keyboard__row {
		gap: 0.35rem;
		width: 100%;
		padding: 0 0.5rem;
	}

	.keyboard__key {
		padding: 0;
		height: var(--key-height);
		width: 2.6rem;
		font-size: 1rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.keyboard__key--backspace,
	.keyboard__key--enter {
		min-width: 4.8rem;
		height: var(--key-height);
		padding: 0.5rem 0.6rem;
		font-size: 0.9rem;
	}
}

/* ========================================
   Extra Small Devices
   ======================================== */
@media (max-width: 400px) {
	:root {
		--key-height: 2.8rem;
		--key-gap: 0.4rem;
	}

	.keyboard {
		gap: var(--key-gap);
	}

	.keyboard__row {
		gap: 0.3rem;
		padding: 0 0.3rem;
	}

	.keyboard__key {
		padding: 0;
		height: 2.8rem;
		width: 2.2rem;
		font-size: 0.85rem;
	}

	.keyboard__key--backspace,
	.keyboard__key--enter {
		min-width: 4.2rem;
		height: var(--key-height);
		padding: 0.3rem 0.5rem;
		font-size: 0.8rem;
	}
}

/* ========================================
   Stuck to the bottom of the screen (phones, small windows, landscape):
   the keyboard, then the buttons and the version under it. The page scrolls above both.
   ======================================== */
@media (max-width: 768px), (max-height: 600px) {
	:root {
		--keyboard-padding-top: 0.4rem;
		/* room between the last row of keys and the buttons under them, so that a thumb on a key does not hit a button */
		--keyboard-padding-bottom: 0.9rem;
		--keyboard-height: calc(3 * var(--key-height, 3.2rem) + 2 * var(--key-gap, 0.5rem) + var(--keyboard-padding-top) + var(--keyboard-padding-bottom));
		/* The real height is measured by app.ts (the buttons may wrap on a narrow screen); this is what the first paint uses. */
		--footer-height: 5.2rem;
	}

	.keyboard {
		position: fixed;
		left: 0;
		right: 0;
		bottom: var(--footer-height);
		z-index: 10;
		margin: 0 auto;
		padding: var(--keyboard-padding-top) 0 var(--keyboard-padding-bottom);
		background: var(--color-bg);
	}

	/* On the game page the footer is part of the bottom dock, under the keyboard (and above the phone's gesture bar). */
	body:has(#keyboard) footer {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10;
		margin: 0;
		padding: 0.6rem 0 max(0.4rem, env(safe-area-inset-bottom, 0px));
		background: var(--color-bg);
	}

	body:has(#keyboard) footer small {
		margin-top: 0.3rem;
	}

	/* The page scrolls above the dock: keep its end (the about section) reachable. */
	body:has(#keyboard) {
		padding-bottom: calc(var(--keyboard-height) + var(--footer-height) + 1rem);
	}
}

/* ========================================
   Message Display Component
   ======================================== */
.message {
	min-height: 3rem;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	margin-bottom: var(--spacing-sm);
}

.word-game__duration {
	font-size: 0.9rem;
	margin-bottom: var(--spacing-sm);
}

/* ========================================
   Message Types
   ======================================== */
.message--error {
	background-color: var(--color-bg);
	border-radius: var(--border-radius);
	font-size: var(--spacing-lg);
	text-align: center;
	line-height: 2rem;
	color: var(--color-error);
	padding: var(--spacing-sm);
	border: 1px solid var(--color-error);
}

.message--success {
	background-color: var(--color-bg);
	font-size: var(--spacing-lg);
	text-align: center;
	line-height: 2rem;
	color: var(--color-success);
	padding: var(--spacing-sm);
	border: 1px solid var(--color-success);
	border-radius: var(--border-radius-lg);
}

.message--info {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin: var(--spacing-md);
	font-size: 0.9rem;
	opacity: 0.85;
}

.message--info a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--color-primary);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	border: 2px solid var(--color-primary);
	border-radius: var(--border-radius);
	padding: 0.15rem 0.6rem;
	-webkit-text-decoration: none;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.message--info a::after {
	content: '↗';
	font-size: 1em;
	font-weight: 700;
	opacity: 1;
}

.message--info a:hover {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

.message--info a:hover::after {
	opacity: 1;
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
	.message {
		min-height: 2.5rem;
		margin-bottom: 0.3rem;
	}

	.message--error {
		font-size: 0.9rem;
		padding: var(--spacing-xs);
	}
}

/* ========================================
   Modal Component
   ======================================== */

/* Modal Background Overlay */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content Box */
.modal-content {
	background-color: var(--color-bg);
	border-radius: var(--border-radius-lg);
	margin: 15% auto;
	padding: 20px;
	border: 1px solid var(--color-border-subtle);
	width: 80%;
	max-width: 600px;
}

/* Close Button */
.close {
	background: transparent;
	border: 0;
	padding: 0;
	line-height: 1;
	color: var(--color-border-subtle);
	float: right;
	font-size: 28px;
	font-weight: bold;
}
.close:hover,
	.close:focus {
		color: var(--color-bg);
		-webkit-text-decoration: none;
		text-decoration: none;
		cursor: pointer;
	}

/* Help/Info Button (? icon) */
.modal-open-button {
	position: absolute;
	top: var(--spacing-md);
	left: var(--spacing-md);
	width: 3rem;
	height: 3rem;
	border: 3px solid var(--color-border-subtle);
	border-radius: 50%;
	padding: 0;
	font-size: 2rem;
	text-align: center;
	line-height: 3rem;
	background-color: transparent;
	color: var(--color-border-subtle);
	font-family: inherit;
}
.modal-open-button:hover {
		cursor: pointer;
		color: var(--color-bg);
		background-color: var(--color-text);
	}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
	.modal-content {
		width: 90%;
		margin: 20% auto;
		padding: var(--spacing-md);
	}

	.modal-open-button {
		width: 2.5rem;
		height: 2.5rem;
		line-height: 2.5rem;
		font-size: 1.5rem;
	}
}

/* ========================================
   Success Modal
   ======================================== */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.success-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--color-success);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.success-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.success-modal-body {
    text-align: center;
}

.success-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: var(--color-success);
    font-weight: bold;
}

.success-message {
    font-size: 1.2rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.success-message strong {
    color: var(--color-success);
    font-size: 1.4rem;
}

.success-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 1rem 0;
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-gap: 1rem;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-success);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.share-button-modal,
.tomorrow-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: monospace;
}

.share-button-modal {
    background: linear-gradient(135deg, var(--color-success) 0%, #00aa00 100%);
    color: var(--color-bg);
    border: 2px solid var(--color-success);
}

.share-button-modal:hover {
    background: linear-gradient(135deg, #00cc00 0%, var(--color-success) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

.tomorrow-button {
    background-color: transparent;
    color: #888;
    border: 2px solid #444;
}

.tomorrow-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-color: #666;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-message strong {
        font-size: 1.2rem;
    }

    .success-stats {
        padding: 1rem;
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   Footer Component
   ======================================== */
footer {
	width: 100%;
	margin-top: auto;
	padding: var(--spacing-md) 0;
}
footer .footer-actions {
		display: flex;
		flex-flow: row;
		justify-content: space-evenly;
		align-content: center;
		gap: var(--spacing-md);
		flex-wrap: wrap;
	}
footer .footer-actions span, footer .footer-actions button {
			border: 1px solid var(--color-primary);
			border-radius: var(--border-radius);
			font-size: 0.9rem;
			font-weight: 600;
			text-align: center;
			background-color: transparent;
			color: var(--color-primary);
			padding: 0.35rem 0.9rem;
			white-space: nowrap;
			letter-spacing: 0.04em;
			transition: background-color 0.2s ease, color 0.2s ease;
		}
footer .footer-actions span:hover, footer .footer-actions button:hover {
			cursor: pointer;
			background-color: var(--color-primary);
			color: var(--color-bg);
		}
footer .footer-actions .notification-btn--active {
			background-color: var(--color-success);
			border-color: var(--color-success);
			color: var(--color-bg);
		}
footer .footer-actions a {
			all: unset;
			-webkit-text-decoration: none;
			text-decoration: none;
			color: inherit;
			cursor: pointer;
		}
footer small {
		display: block;
		width: -moz-fit-content;
		width: fit-content;
		margin: 0.5rem auto 0;
		z-index: 50;
		background-color: rgba(0, 0, 0, 0.7);
		padding: 0.2rem 0.5rem;
		border-radius: var(--border-radius);
		backdrop-filter: blur(4px);
	}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
	footer {
		margin-top: 0.5rem;
		padding: var(--spacing-sm) 0;
	}

		footer .footer-actions {
			gap: var(--spacing-sm);
		}

			footer .footer-actions span, footer .footer-actions button {
				font-size: 0.9rem;
				padding: 0.3rem 0.5rem;
			}

		footer small {
			font-size: 0.75rem;
		}
}

.notification-panel {
    width: min(32rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg);
    color: var(--color-text);
    text-align: left;
    overflow-y: auto;
}
.notification-panel::backdrop { background: rgba(0, 0, 0, 0.7); }
.notification-panel button[hidden] { display: none; }
.notification-panel h2 { font-size: 1.1rem; margin: 0 2rem 0.5rem 0; }
.notification-panel p { line-height: 1.5; }
.notification-panel button {
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--color-primary);
    padding: 0.6rem 0.8rem;
    white-space: normal;
    margin: 0.25rem 0;
    cursor: pointer;
}
.notification-panel .notification-panel__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
}
footer button:disabled { opacity: 0.65; cursor: not-allowed; }
footer button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ========================================
   All Words Page
   ======================================== */

body:has(.all-words-page) {
	display: block !important;
	overflow: auto !important;
}

.all-words-page {
	min-height: 100vh;
	padding: 2rem 1rem;
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	/* Ensure page takes full width and isn't constrained by body flex */
	position: relative;
	scroll-padding-top: 12rem;
}

.all-words-header {
	text-align: center;
	margin-bottom: 2rem;
}

.all-words-header h1 {
	font-size: 2.5rem;
	margin: 1rem 0;
	color: var(--color-text);
}

.back-link {
	display: inline-block;
	color: var(--color-text);
	-webkit-text-decoration: none;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	transition: all 0.2s;
	margin-bottom: 1rem;
}

.back-link:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--color-text);
}

/* Fixed Return Arrow */
.fixed-return-arrow {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid var(--color-border);
	border-radius: 50%;
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.3s;
	backdrop-filter: blur(4px);
}

.fixed-return-arrow:hover {
	background-color: var(--color-success);
	border-color: var(--color-success);
	transform: scale(1.1);
}

.fixed-return-arrow svg {
	width: 24px;
	height: 24px;
}

/* Sticky Controls Container */
.all-words-controls {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--color-bg);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	margin-bottom: 2rem;
}

/* Length Selector */
.length-selector {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	flex-wrap: wrap;
}

.length-selector__label {
	font-size: 0.85rem;
	color: var(--color-border-subtle);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.length-selector__options {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.length-btn {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	background-color: transparent;
	color: var(--color-text);
	border: 2px solid var(--color-border);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: all 0.2s;
	font-family: monospace;
}

.length-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--color-text);
}

.length-btn.active {
	background-color: var(--color-success);
	border-color: var(--color-success);
	color: var(--color-bg);
}

/* Letter Navigation */
.letter-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem 1rem;
}

.letter-nav-btn {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	background-color: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: all 0.2s;
	font-family: monospace;
	display: flex;
	align-items: center;
	justify-content: center;
}

.letter-nav-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--color-text);
	transform: scale(1.1);
}

.letter-nav-btn:active {
	transform: scale(0.95);
}

.letter-nav-btn.active {
	background-color: var(--color-success);
	border-color: var(--color-success);
	color: var(--color-bg);
}

/* Words Section */
.words-section {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.words-stats {
	text-align: center;
	margin-bottom: 1.5rem;
}

.word-count {
	font-size: 1.2rem;
	color: var(--color-border-subtle);
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	display: inline-block;
}

/* Words Grid */
.all-words-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	grid-gap: 0.4rem;
	gap: 0.4rem;
	padding: 1rem 0;
}

.word-item {
	--spacing: 0.5rem;
	font-family: monospace;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.5rem;
	letter-spacing: var(--spacing);
	text-indent: 0.5rem;
	text-indent: var(--spacing);
	color: var(--color-text);
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	background-color: rgba(255, 255, 255, 0.02);
	text-align: center;
}

.word-item:hover {
	background-color: rgba(255, 255, 255, 0.06);
	border-color: var(--color-border-subtle);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.all-words-page {
		padding: 1rem 0.5rem;
	}

	.all-words-header h1 {
		font-size: 2rem;
	}

	.length-selector {
		gap: 0.5rem;
		padding: 0.5rem;
		padding-top: 4rem;
	}

	.length-btn {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.9rem;
	}

	.all-words-grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 0.3rem;
	}

	.back-link {
		font-size: 0.9rem;
		padding: 0.4rem 0.8rem;
	}
}

@media (max-width: 480px) {
	.all-words-grid {
		grid-template-columns: 2fr;
		gap: 0.5rem;
	}

	.word-item {
		padding: 0.75rem;
	}
}

/* ========================================
   Offline Page
   ======================================== */
.offline-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: var(--spacing-md);
}

.offline-content {
	text-align: center;
	max-width: 400px;
}

.offline-icon {
	font-size: 4rem;
	margin-bottom: var(--spacing-md);
}

.offline-content h1 {
	font-size: 1.8rem;
	margin-bottom: var(--spacing-sm);
	color: var(--color-text);
}

.offline-content p {
	color: var(--color-border-subtle);
	margin-bottom: var(--spacing-lg);
}

.offline-retry {
	background-color: transparent;
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
	border-radius: var(--border-radius);
	padding: 0.5rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.offline-retry:hover {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

/* ========================================
   Admin Common Styles
   ======================================== */

/* Admin Container */
.admin {
	padding: 2rem;
	max-width: 1400px;
	margin: 0 auto;
}

.admin--narrow {
	max-width: 1200px;
}

/* Admin Header */
.admin__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 1rem;
}

.admin__title {
	margin: 0;
	font-size: 2rem;
}

.admin__actions {
	display: flex;
	gap: 1rem;
}

/* Admin Buttons */
.admin__button {
	padding: 0.5rem 1rem;
	background: #333;
	color: white;
	-webkit-text-decoration: none;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid var(--color-border);
	cursor: pointer;
	font-family: monospace;
	font-size: 1rem;
	transition: all 0.3s;
}

.admin__button:hover {
	background: #444;
	border-color: white;
}

.admin__button--primary {
	background: #2196F3;
	border-color: #2196F3;
}

.admin__button--primary:hover {
	background: #1976D2;
}

.admin__button--danger {
	background: #f44336;
	border-color: #f44336;
}

/* Stats Cards Grid */
.admin__stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-gap: 1.5rem;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.admin__stat-card {
	border: 2px solid var(--color-border);
	padding: 1.5rem;
	border-radius: 8px;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.admin__stat-card--success {
	border-color: #4CAF50;
}

.admin__stat-card--info {
	border-color: #2196F3;
}

.admin__stat-card--warning {
	border-color: #FF9800;
}

.admin__stat-card--danger {
	border-color: #f44336;
}

.admin__stat-card--purple {
	border-color: #9C27B0;
}

.admin__stat-label {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 0.5rem;
}

.admin__stat-value {
	font-size: 2.5rem;
	font-weight: bold;
}

.admin__stat-value--success {
	color: #4CAF50;
}

.admin__stat-value--info {
	color: #2196F3;
}

.admin__stat-value--warning {
	color: #FF9800;
}

.admin__stat-value--danger {
	color: #f44336;
}

.admin__stat-value--purple {
	color: #9C27B0;
}

/* Navigation Cards */
.admin__nav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-gap: 1.5rem;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.admin__nav-card {
	border: 2px solid;
	padding: 2rem;
	border-radius: 8px;
	transition: all 0.3s;
	cursor: pointer;
	-webkit-text-decoration: none;
	text-decoration: none;
	color: white;
	display: block;
}

.admin__nav-card--info {
	border-color: #2196F3;
	background: rgba(33, 150, 243, 0.1);
}

.admin__nav-card--info:hover {
	background: rgba(33, 150, 243, 0.2);
	border-color: #64B5F6;
}

.admin__nav-card--purple {
	border-color: #9C27B0;
	background: rgba(156, 39, 176, 0.1);
}

.admin__nav-card--purple:hover {
	background: rgba(156, 39, 176, 0.2);
	border-color: #BA68C8;
}

.admin__nav-card--success {
	border-color: #4CAF50;
	background: rgba(76, 175, 80, 0.1);
}

.admin__nav-card--success:hover {
	background: rgba(76, 175, 80, 0.2);
	border-color: #81C784;
}

.admin__nav-card--warning {
	border-color: #FF9800;
	background: rgba(255, 152, 0, 0.1);
}

.admin__nav-card--orange {
	border-color: #FF5722;
	background: rgba(255, 87, 34, 0.1);
}

.admin__nav-card--grey {
	border-color: #607D8B;
	background: rgba(96, 125, 139, 0.1);
}

.admin__nav-card--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	position: relative;
}

.admin__nav-card-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.admin__nav-card-title {
	margin: 0 0 0.5rem 0;
}

.admin__nav-card-description {
	margin: 0;
	color: #999;
	font-size: 0.875rem;
}

.admin__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #666;
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
}

/* Tables */
.admin__table-container {
	border: 1px solid var(--color-border);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 2rem;
}

.admin__table {
	width: 100%;
	border-collapse: collapse;
}

.admin__table thead {
	background: #2d2d2d;
}

.admin__table th {
	text-align: left;
	padding: 0.75rem;
	font-weight: bold;
}

.admin__table th--center {
	text-align: center;
}

.admin__table th--right {
	text-align: right;
}

.admin__table tbody tr {
	border-bottom: 1px solid #333;
}

.admin__table td {
	padding: 0.75rem;
}

.admin__table td--center {
	text-align: center;
}

.admin__table td--right {
	text-align: right;
}

.admin__table--small {
	font-size: 0.875rem;
}

.admin__table--large {
	font-size: 0.9rem;
}

/* Section Heading */
.admin__section-heading {
	margin-bottom: 1rem;
	margin-top: 3rem;
}

.admin__section-heading:first-of-type {
	margin-top: 0;
}

/* Footer Navigation */
.admin__footer {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	gap: 2rem;
}

.admin__link {
	color: #2196F3;
	-webkit-text-decoration: none;
	text-decoration: none;
}

.admin__link:hover {
	-webkit-text-decoration: underline;
	text-decoration: underline;
}

/* Two Column Layout */
.admin__two-column {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	grid-gap: 2rem;
	gap: 2rem;
}

/* Form Elements */
.admin__form {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 2rem 0;
}

.admin__select {
	padding: 0.5rem;
	background: #333;
	color: white;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: monospace;
}

.admin__input {
	padding: 0.5rem;
	background: #333;
	color: white;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: monospace;
	min-width: 240px;
}

/* Pagination */
.admin__pagination {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0;
}

/* Utility Classes */
.admin__text--mono {
	font-family: monospace;
	font-size: 0.875rem;
}

.admin__text--small {
	font-size: 0.875rem;
}

.admin__text--tiny {
	font-size: 0.75rem;
}

.admin__text--muted {
	color: #999;
}

.admin__text--bold {
	font-weight: bold;
}

.admin__text--success {
	color: #4CAF50;
}

.admin__text--warning {
	color: #FF9800;
}

.admin__text--danger {
	color: #f44336;
}

.admin__text--gold {
	color: #FFD700;
}

.admin__icon--success {
	color: #4CAF50;
	font-size: 1.2rem;
}

.admin__icon--danger {
	color: #f44336;
	font-size: 1.2rem;
}

.admin__icon--large {
	font-size: 2rem;
}

.admin__empty-state {
	padding: 2rem;
	text-align: center;
	color: #666;
}

/* ========================================
   Admin Insights & Analytics Page
   ======================================== */

/* Chart Container */
.insights__chart-container {
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 1.5rem;
	background: #1a1a1a;
}

/* Horizontal Bar Chart */
.insights__bar-chart {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.insights__bar-row {
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.insights__bar-row--day {
	margin-bottom: 0.75rem;
}

.insights__bar-label {
	width: 50px;
	text-align: right;
	margin-right: 1rem;
	color: #999;
	font-size: 0.875rem;
}

.insights__bar-label--day {
	width: 100px;
	font-weight: bold;
}

.insights__bar-track {
	flex: 1;
	background: #333;
	border-radius: 4px;
	height: 24px;
	position: relative;
}

.insights__bar-track--day {
	height: 28px;
}

.insights__bar-fill {
	background: linear-gradient(90deg, #4CAF50, #2196F3);
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.insights__bar-fill--day {
	background: linear-gradient(90deg, #FF9800, #F44336);
}

.insights__bar-value {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75rem;
	color: white;
	font-weight: bold;
}

/* Vertical Bar Chart (Attempt Distribution) */
.insights__attempt-chart {
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 1.5rem;
	background: #1a1a1a;
	margin-bottom: 3rem;
}

.insights__attempt-bars {
	display: flex;
	gap: 1rem;
	align-items: flex-end;
	height: 200px;
}

.insights__attempt-bar {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}

.insights__attempt-count {
	font-size: 0.75rem;
	color: white;
	margin-bottom: 0.25rem;
}

.insights__attempt-fill {
	width: 100%;
	background: linear-gradient(180deg, #4CAF50, #2196F3);
	border-radius: 4px 4px 0 0;
	transition: height 0.3s ease;
}

.insights__attempt-label {
	margin-top: 0.5rem;
	color: #999;
	font-size: 0.875rem;
	font-weight: bold;
}

.insights__chart-caption {
	text-align: center;
	margin-top: 1rem;
	color: #666;
	font-size: 0.875rem;
}

/* Difficulty Badge */
.insights__difficulty-badge {
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: bold;
	color: black;
}

.insights__difficulty-badge--easy {
	background: #4CAF50;
}

.insights__difficulty-badge--medium {
	background: #FF9800;
}

.insights__difficulty-badge--hard {
	background: #f44336;
}

.insights__difficulty-badge--very-hard {
	background: #9C27B0;
}

/* Player Rank */
.insights__rank {
	font-weight: bold;
}

.insights__rank--gold {
	color: #FFD700;
}

.insights__rank--normal {
	color: #999;
}

/* ========================================
   Admin System Health Page
   ======================================== */

/* Environment Info Grid */
.system__env-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmin(350px, 1fr));
	grid-gap: 2rem;
	gap: 2rem;
	margin-bottom: 3rem;
}

/* Health Indicators */
.system__health-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-gap: 1rem;
	gap: 1rem;
	margin-bottom: 2rem;
}

.system__health-card {
	border: 1px solid;
	padding: 1.5rem;
	border-radius: 8px;
	background: rgba(76, 175, 80, 0.05);
}

.system__health-card--success {
	border-color: #4CAF50;
}

.system__health-card--warning {
	border-color: #FF9800;
	background: rgba(255, 152, 0, 0.05);
}

.system__health-content {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.system__health-title {
	font-weight: bold;
	color: #4CAF50;
}

.system__health-title--warning {
	color: #FF9800;
}

.system__health-subtitle {
	font-size: 0.875rem;
	color: #666;
}

/* Environment Badge */
.system__env-badge {
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: bold;
	color: black;
}

.system__env-badge--prod {
	background: #4CAF50;
}

.system__env-badge--dev {
	background: #FF9800;
}

/* DB Size Display */
.system__db-size {
	font-size: 2rem;
	font-weight: bold;
	color: #9C27B0;
}

.system__db-name {
	font-size: 0.75rem;
	color: #666;
	margin-top: 0.25rem;
}

/* Info Table Row */
.system__info-row {
	width: 60%;
}

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
	/* Colors */
	--color-bg: black;
	--color-text: white;
	--color-border: grey;
	--color-border-subtle: #888;
	--color-success: green;
	--color-warning: yellow;
	--color-error: red;
	--color-primary: #008CBA;

	/* Spacing */
	--spacing-xs: 0.3rem;
	--spacing-sm: 0.4rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.4rem;

	/* Sizes */
	--letter-size: 4rem;
	--letter-size-mobile: 3rem;
	--border-width: 2px;
	--border-radius: 4px;
	--border-radius-lg: 1rem;
}

/* Colour-blind friendly palette: blue = correct, orange = misplaced, grey = absent */
:root[data-palette="contrast"] {
	--color-success: #4da3ff;
	--color-warning: #ff9f1c;
	--color-error: #9a9a9a;
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2000;
	padding: 0.4rem 1rem;
	padding: var(--spacing-sm) var(--spacing-md);
	background-color: white;
	background-color: var(--color-text);
	color: black;
	color: var(--color-bg);
	transform: translateY(-100%);
}

.skip-link:focus {
		transform: translateY(0);
	}

.page-main {
	display: contents;
}

:where(button, a, input, summary, [tabindex]):focus-visible {
	outline: 2px solid #008CBA;
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========================================
   Base Styles
   ======================================== */
* {
	box-sizing: border-box;
	font-family: monospace;
}

body {
	background-color: black;
	background-color: var(--color-bg);
	color: white;
	color: var(--color-text);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-flow: column;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	margin: 0;
	padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) max(1rem, env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
}

@media (max-width: 768px) {
	body {
		justify-content: flex-start;
		min-height: 100svh;
	}
}

/* ========================================
   About / FAQ (indexable text for search engines)
   ======================================== */
.about {
	width: 100%;
	max-width: 600px;
	padding: 0 1rem;
	padding: 0 var(--spacing-md);
	font-size: 0.85rem;
	color: #888;
	color: var(--color-border-subtle);
}
.about summary {
		cursor: pointer;
	}
.about h2 {
		font-size: 1rem;
		margin: 1rem 0 0.3rem;
		margin: var(--spacing-md) 0 var(--spacing-xs);
	}
.about p {
		margin: 0;
	}

[data-loading=""],[data-loading=show],[data-loading*=\|show]{display:none}

@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px 0 rgba(0,0,0,.25);position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);animation:notyf-fadeoutdown .3s forwards;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translateX(0)}.notyf__toast--disappear .notyf__message{animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translateX(13%);z-index:5;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;animation:notyf-fadeinleft .3s forwards;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:rgba(0,0,0,.25);border:none;cursor:pointer;transition:opacity .2s ease, background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:rgba(0,0,0,.15)}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px 0 rgba(0,0,0,.13);width:100%}.notyf__dismiss{width:56px}}
