* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #0078d4;
	--primary-dark: #005a9e;
	--success: #10b981;
	--error: #ef4444;
	--warning: #f59e0b;
	--bg-gradient-1: #0f172a;
	--bg-gradient-2: #1e293b;
	--card-bg: rgba(30, 41, 59, 0.8);
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;
	--border-color: rgba(148, 163, 184, 0.1);
}

body {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	background: linear-gradient(
		135deg,
		var(--bg-gradient-1) 0%,
		var(--bg-gradient-2) 100%
	);
	min-height: 100vh;
	color: var(--text-primary);
	overflow-x: hidden;
}

.particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: -1;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: var(--primary);
	border-radius: 50%;
	opacity: 0.3;
	animation: float 20s infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(100vh) translateX(0);
		opacity: 0;
	}
	10% {
		opacity: 0.3;
	}
	90% {
		opacity: 0.3;
	}
	100% {
		transform: translateY(-100vh) translateX(100px);
		opacity: 0;
	}
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
	position: relative;
}

.header {
	text-align: center;
	margin-bottom: 3rem;
	animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
	from {
		transform: translateY(-30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

h1 {
	font-size: 2.5rem;
	background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.subtitle {
	color: var(--text-secondary);
	font-size: 1.1rem;
}

/* Mode Selection */
.mode-selection {
	animation: fadeIn 0.6s ease-out;
}

.mode-selection h2 {
	text-align: center;
	margin-bottom: 2rem;
	color: var(--text-primary);
}

.mode-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.mode-card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border: 2px solid var(--border-color);
	border-radius: 20px;
	padding: 2rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.mode-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary);
	box-shadow: 0 20px 40px rgba(0, 120, 212, 0.2);
}

.mode-card.not-ready {
	opacity: 0.8;
}

.mode-card.not-ready:hover {
	border-color: var(--warning);
}

.mode-icon {
	font-size: 3rem;
	text-align: center;
	margin-bottom: 1rem;
}

.mode-card h3 {
	color: var(--primary);
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.mode-card p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.mode-card ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.mode-card li {
	padding: 0.5rem 0;
	color: var(--text-primary);
}

.mode-card li::before {
	content: "✓ ";
	color: var(--success);
	font-weight: bold;
	margin-right: 0.5rem;
}

.mode-stats {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	font-weight: 600;
	color: var(--primary);
}

.mode-stats small {
	font-size: 0.85rem;
	font-weight: normal;
}

/* Progress Summary */
.progress-summary {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 2rem;
	margin-top: 2rem;
}

.progress-summary h3 {
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

.category-progress {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.category-item {
	display: grid;
	grid-template-columns: 200px 1fr 60px;
	align-items: center;
	gap: 1rem;
}

.category-item span:first-child {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.category-item span:last-child {
	text-align: right;
	color: var(--primary);
	font-weight: 600;
}

.progress-bar-mini {
	height: 6px;
	background: rgba(148, 163, 184, 0.1);
	border-radius: 3px;
	overflow: hidden;
}

.progress-fill-mini {
	height: 100%;
	background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
	border-radius: 3px;
	transition: width 0.6s ease;
}

.progress-fill-mini.good {
	background: linear-gradient(90deg, var(--success) 0%, #34d399 100%);
}

.progress-fill-mini.needs-work {
	background: linear-gradient(90deg, var(--warning) 0%, #fbbf24 100%);
}

/* Readiness Notification */
.readiness-notification {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	border: 2px solid var(--success);
	border-radius: 20px;
	padding: 2rem;
	z-index: 1000;
	animation: popIn 0.5s ease-out;
	box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
}

@keyframes popIn {
	from {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}

.notification-content h3 {
	color: var(--success);
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.notification-content p {
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.notification-content button {
	padding: 0.8rem 1.5rem;
	margin: 0 0.5rem;
	border: none;
	border-radius: 10px;
	background: var(--primary);
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.notification-content button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
}

/* Question Header */
.question-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.question-category {
	display: inline-block;
	background: rgba(96, 165, 250, 0.1);
	color: #60a5fa;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Exam Results */
.exam-results {
	text-align: center;
	padding: 2rem;
	animation: fadeIn 0.6s ease-out;
}

.pass-badge {
	display: inline-block;
	background: rgba(16, 185, 129, 0.1);
	color: var(--success);
	border: 2px solid var(--success);
	padding: 1rem 2rem;
	border-radius: 15px;
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1.5rem;
}

.fail-badge {
	display: inline-block;
	background: rgba(239, 68, 68, 0.1);
	color: var(--error);
	border: 2px solid var(--error);
	padding: 1rem 2rem;
	border-radius: 15px;
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1.5rem;
}

.score-display {
	margin: 2rem 0;
}

.score-number {
	font-size: 4rem;
	font-weight: bold;
	background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.score-details {
	color: var(--text-secondary);
	margin: 0.5rem 0;
	font-size: 1.1rem;
}

.time-taken {
	color: var(--text-secondary);
	font-size: 1rem;
}

.passing-info {
	background: rgba(0, 120, 212, 0.1);
	border: 1px solid var(--primary);
	border-radius: 10px;
	padding: 1rem;
	margin: 2rem 0;
	display: inline-block;
}

.category-breakdown {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 1.5rem;
	margin: 2rem 0;
	text-align: left;
}

.category-breakdown h3 {
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	text-align: center;
}

.category-result {
	display: grid;
	grid-template-columns: 2fr 1fr 80px;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
}

.improvement-suggestions {
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid var(--warning);
	border-radius: 15px;
	padding: 1.5rem;
	margin: 2rem 0;
	text-align: left;
}

.improvement-suggestions h3 {
	color: var(--warning);
	margin-bottom: 1rem;
}

.improvement-suggestions ul {
	list-style: none;
	padding: 0;
}

.improvement-suggestions li {
	padding: 0.5rem 0;
	color: var(--text-primary);
}

.improvement-suggestions li::before {
	content: "→ ";
	color: var(--warning);
	font-weight: bold;
	margin-right: 0.5rem;
}

.congratulations {
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid var(--success);
	border-radius: 15px;
	padding: 1.5rem;
	margin: 2rem 0;
}

.congratulations h3 {
	color: var(--success);
	margin-bottom: 0.5rem;
}

/* Original styles continue below */

.mode-selector {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 2rem;
	animation: fadeIn 0.8s ease-out;
}

.mode-btn {
	padding: 1rem 2rem;
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;
	font-weight: 600;
}

.mode-btn:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
	background: rgba(0, 120, 212, 0.1);
}

.mode-btn.active {
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	border-color: var(--primary);
}

.stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
	animation: fadeIn 0.8s ease-out 0.2s both;
}

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

.stat-card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 120, 212, 0.1);
}

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

.stat-label {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-top: 0.25rem;
}

.quiz-card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.6s ease-out 0.4s both;
	position: relative;
	overflow: hidden;
}

@keyframes scan {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

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

.question-number {
	display: inline-block;
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.question-text {
	font-size: 1.25rem;
	line-height: 1.8;
	margin-bottom: 2rem;
	color: var(--text-primary);
}

.options {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.option {
	background: rgba(30, 41, 59, 0.5);
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 1.25rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.option:hover {
	border-color: var(--primary);
	transform: translateX(5px);
	background: rgba(0, 120, 212, 0.1);
}

.option.selected {
	border-color: var(--primary);
	background: rgba(0, 120, 212, 0.2);
}

.option.correct {
	border-color: var(--success);
	background: rgba(16, 185, 129, 0.2);
	animation: correctPulse 0.6s ease;
}

@keyframes correctPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
	}
}

.option.incorrect {
	border-color: var(--error);
	background: rgba(239, 68, 68, 0.2);
	animation: shake 0.5s ease;
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-10px);
	}
	75% {
		transform: translateX(10px);
	}
}

.option-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(0, 120, 212, 0.2);
	border-radius: 50%;
	margin-right: 1rem;
	font-weight: 600;
	color: var(--primary);
	flex-shrink: 0;
}

.option.correct .option-letter {
	background: rgba(16, 185, 129, 0.3);
	color: var(--success);
}

.option.incorrect .option-letter {
	background: rgba(239, 68, 68, 0.3);
	color: var(--error);
}

.button-group {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.btn {
	flex: 1;
	padding: 1rem 2rem;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
	width: 300px;
	height: 300px;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	color: white;
}

.btn-secondary {
	background: rgba(148, 163, 184, 0.2);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
}

.btn-secondary:hover {
	transform: translateY(-2px);
	background: rgba(148, 163, 184, 0.3);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.feedback {
	margin-top: 1.5rem;
	padding: 1.5rem;
	border-radius: 12px;
	animation: slideIn 0.5s ease-out;
	line-height: 1.6;
}

@keyframes slideIn {
	from {
		transform: translateX(-20px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.feedback.correct {
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid var(--success);
	color: var(--success);
}

.feedback.incorrect {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid var(--error);
	color: var(--error);
}

.feedback strong {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.progress-bar {
	height: 8px;
	background: rgba(148, 163, 184, 0.1);
	border-radius: 4px;
	margin-bottom: 2rem;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
	border-radius: 4px;
	transition: width 0.6s ease;
	position: relative;
	overflow: hidden;
}

.progress-fill::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.completion-screen {
	text-align: center;
	padding: 3rem;
	animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.trophy {
	font-size: 3rem;
	margin-bottom: 1rem;
	font-weight: bold;
	color: var(--warning);
	animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

.final-score {
	font-size: 3rem;
	font-weight: bold;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 1rem 0;
}

.timer {
	display: inline-block;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid var(--warning);
	color: var(--warning);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	margin-left: 1rem;
}

.test-info {
	background: rgba(0, 120, 212, 0.1);
	border: 1px solid var(--primary);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}

.test-info h3 {
	color: var(--primary);
	margin-bottom: 0.5rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	.container {
		padding: 1rem;
		max-width: 100%;
	}

	/* Header adjustments */
	.header {
		margin-bottom: 2rem;
	}

	h1 {
		font-size: 1.75rem;
		line-height: 1.2;
	}

	.subtitle {
		font-size: 1rem;
	}

	/* Stats bar responsive */
	.stats-bar {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.stat-card {
		padding: 0.75rem;
	}

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

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

	/* Quiz card mobile optimization */
	.quiz-card {
		padding: 1.5rem;
		border-radius: 15px;
		margin-bottom: 1.5rem;
	}

	.question-number {
		font-size: 0.9rem;
		padding: 0.4rem 0.8rem;
		margin-bottom: 1rem;
	}

	.question-text {
		font-size: 1.05rem;
		line-height: 1.6;
		margin-bottom: 1.5rem;
	}

	/* Touch-friendly options */
	.options {
		gap: 0.75rem;
	}

	.option {
		padding: 1rem;
		border-radius: 10px;
		/* Better touch targets */
		min-height: 60px;
		display: flex;
		align-items: center;
	}

	.option:hover {
		/* Disable hover effects on mobile */
		transform: none;
	}

	.option:active {
		/* Add active state for touch feedback */
		transform: scale(0.98);
		background: rgba(0, 120, 212, 0.15);
	}

	.option-letter {
		width: 28px;
		height: 28px;
		font-size: 0.9rem;
		margin-right: 0.75rem;
	}

	/* Button group optimization */
	.button-group {
		gap: 0.75rem;
		margin-top: 1.5rem;
	}

	.btn {
		padding: 0.9rem 1.5rem;
		font-size: 0.95rem;
		border-radius: 10px;
		/* Better touch targets */
		min-height: 48px;
	}

	/* Mode selection */
	.mode-selector {
		flex-direction: column;
		gap: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.mode-btn {
		width: 100%;
		padding: 0.9rem 1.5rem;
	}

	/* Mode cards */
	.mode-cards {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.mode-card {
		padding: 1.5rem;
	}

	.mode-icon {
		font-size: 2.5rem;
	}

	.mode-card h3 {
		font-size: 1.3rem;
	}

	/* Progress bar */
	.progress-bar {
		height: 6px;
		margin-bottom: 1.5rem;
	}

	/* Category items */
	.category-item {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		text-align: left;
		padding: 0.5rem 0;
	}

	.category-item span:last-child {
		text-align: left;
	}

	/* Category result */
	.category-result {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		text-align: left;
		padding: 0.5rem 0;
	}

	/* Feedback */
	.feedback {
		padding: 1rem;
		font-size: 0.95rem;
	}

	.feedback strong {
		font-size: 1rem;
	}

	/* Question header */
	.question-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.question-category {
		font-size: 0.85rem;
		padding: 0.4rem 0.8rem;
	}

	.timer {
		margin-left: 0;
		margin-top: 0.5rem;
		font-size: 0.9rem;
	}

	/* Exam results */
	.exam-results {
		padding: 1.5rem;
	}

	.score-number {
		font-size: 3rem;
	}

	.score-details {
		font-size: 1rem;
	}

	/* Notifications */
	.readiness-notification {
		width: 90%;
		max-width: 400px;
		padding: 1.5rem;
	}

	.notification-content h3 {
		font-size: 1.3rem;
	}

	.notification-content button {
		padding: 0.7rem 1.2rem;
		font-size: 0.9rem;
		margin: 0.25rem;
	}

	/* Completion screen */
	.completion-screen {
		padding: 2rem 1rem;
	}

	.trophy {
		font-size: 2.5rem;
	}

	.final-score {
		font-size: 2.5rem;
	}

	/* Test info */
	.test-info {
		padding: 1rem;
		margin-bottom: 1.5rem;
	}

	/* Progress summary */
	.progress-summary {
		padding: 1.5rem;
	}

	/* Improvement suggestions */
	.improvement-suggestions {
		padding: 1rem;
	}

	.improvement-suggestions li {
		font-size: 0.95rem;
	}

	/* Pass/Fail badges */
	.pass-badge,
	.fail-badge {
		font-size: 1.2rem;
		padding: 0.8rem 1.5rem;
	}

	/* Category breakdown */
	.category-breakdown {
		padding: 1rem;
	}

	/* Disable animations on mobile for better performance */
	* {
		animation-duration: 0.3s !important;
	}

	/* Particle effects - reduce for performance */
	.particle {
		width: 2px;
		height: 2px;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.container {
		padding: 0.75rem;
	}

	h1 {
		font-size: 1.5rem;
	}

	.subtitle {
		font-size: 0.9rem;
	}

	.quiz-card {
		padding: 1.25rem;
	}

	.question-text {
		font-size: 1rem;
	}

	.option {
		padding: 0.9rem;
		font-size: 0.95rem;
	}

	.btn {
		padding: 0.8rem 1.2rem;
		font-size: 0.9rem;
	}

	/* Stack buttons on very small screens */
	.button-group {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
	.container {
		padding: 0.5rem 1rem;
	}

	.header {
		margin-bottom: 1rem;
	}

	h1 {
		font-size: 1.5rem;
	}

	.stats-bar {
		grid-template-columns: repeat(4, 1fr);
	}

	.quiz-card {
		padding: 1rem;
	}

	.options {
		gap: 0.5rem;
	}

	.option {
		padding: 0.75rem;
		min-height: 50px;
	}
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
	/* Remove hover effects on touch devices */
	.option:hover {
		transform: none;
		background: rgba(30, 41, 59, 0.5);
	}

	.btn:hover {
		transform: none;
	}

	.stat-card:hover {
		transform: none;
		box-shadow: none;
	}

	.mode-card:hover {
		transform: none;
	}

	/* Add tap highlight for better feedback */
	.option,
	.btn,
	.mode-btn {
		-webkit-tap-highlight-color: rgba(0, 120, 212, 0.1);
	}

	/* Ensure sufficient touch target size */
	.option,
	.btn,
	.mode-btn {
		min-height: 44px;
	}
}

/* Improve readability on small screens */
@media (max-width: 768px) {
	/* Increase line height for better readability */
	p,
	li {
		line-height: 1.6;
	}

	/* Ensure text doesn't get too small */
	body {
		font-size: 16px;
	}

	/* Prevent zoom on input focus */
	input,
	textarea,
	select {
		font-size: 16px;
	}
}