#quiz-app {
	color: #333;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	position: relative;
}
#quiz-app *, #quiz-app *::before, #quiz-app *::after {
	box-sizing: border-box;
}

.quiz-screen {
	height: 100vh;
	height: 100dvh;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px);
	background: linear-gradient(180deg, #E77158 0%, #E77755 33.93%, #E7884D 78.88%, #E79248 100%);
	background: linear-gradient(180deg, oklch(0.75 0.18 35) 0%, oklch(0.74 0.18 35) 33.93%, oklch(0.72 0.19 40) 78.88%, oklch(0.71 0.19 42) 100%);
	overflow-x: hidden;
	overflow-y: hidden;
}
@media (max-width: 767px) {
	.quiz-screen {
		padding: 12px 12px 24px;
	}
}

.quiz-content {
	flex: 1;
	background: white;
	border-radius: 20px;
	padding-block: 48px clamp(12px, 2vw, 24px);
	padding-inline: clamp(12px, 4vw, 48px);
	max-width: 1280px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: clamp(8px, 1vh, 32px);
	gap: clamp(8px, 1dvh, 32px);
	position: relative;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
}
@media (max-width: 767px) {
	.quiz-content {
		border-radius: 12px;
	}
	.quiz-main .quiz-content, .quiz-result-screen .quiz-content, .quiz-preq .quiz-content {
		display: block;
	}
}

.quiz-intro .quiz-content {
	padding-top: clamp(160px, 32vh, 220px);
	padding-top: clamp(160px, 32dvh, 220px);
	justify-content: center;
}

.quiz-title {
	font-size: 2.5rem;
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 20px;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-title {
		font-size: 1.8rem;
		margin-bottom: 15px;
	}
}

.quiz-description {
	font-size: clamp(20px, 4.5cqw, 64px);
	color: #666;
	text-align: center;
	margin-bottom: 30px;
}

.quiz-section-title {
	font-size: clamp(16px, 2cqw, 34px);
	font-weight: bold;
	color: #333;
	margin-bottom: 25px;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-section-title {
		font-size: 1.2rem;
		margin-bottom: 20px;
	}
}

.quiz-question {
	margin-bottom: 30px;
}
@media (max-width: 767px) {
	.quiz-question {
		margin-bottom: 20px;
	}
}

.quiz-question-label {
	font-size: clamp(18px, 3cqw, 40px);
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
	text-align: center;
}

.quiz-question-text {
	font-size: clamp(20px, 3cqw, 30px);
	font-weight: 600;
	color: #333;
	margin-bottom: clamp(12px, 1.5vh, 18px);
	margin-bottom: clamp(12px, 1.5dvh, 18px);
	text-align: left;
}
@media (max-width: 767px) {
	.quiz-question-text {
		margin-bottom: 12px;
		text-align: center;
	}
}

.quiz-progress {
	font-size: 0.9rem;
	color: #666;
	text-align: left;
	margin: 0;
	font-weight: 600;
}

.quiz-progress-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 16px;
	background: rgba(0, 0, 0, 0.4);
	overflow: hidden;
	z-index: 1000;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767px) {
	.quiz-progress-bar {
		height: 12px;
	}
}

.quiz-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #FF8A6B 0%, #FFB05F 50%, #FFC85A 100%);
	transition: width 0.5s ease;
	position: relative;
	width: 0;
	overflow: hidden;
	box-shadow: 0 0 12px rgba(255, 138, 107, 0.6);
}
.quiz-progress-bar-fill::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}
.quiz-debug-score {
	position: fixed;
	bottom: 20px;
	right: 16px;
	background: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	z-index: 1100;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
	user-select: none;
}
@media (max-width: 767px) {
	.quiz-debug-score {
		bottom: 16px;
		right: 12px;
		font-size: 0.85rem;
		padding: 8px 12px;
	}
}
.quiz-debug-score .quiz-debug-score-label {
	opacity: 0.8;
	font-size: 0.75em;
	margin-right: 4px;
}
.quiz-debug-score .quiz-debug-score-value {
	font-size: 1.3em;
	color: #FFD700;
}

.quiz-main-layout {
	display: grid;
	grid-template-areas: "info" "media" "actions";
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: auto;
	align-content: flex-start;
	justify-items: center;
	gap: clamp(18px, 2vh, 28px);
	gap: clamp(18px, 2dvh, 28px);
	width: 100%;
	min-height: 0;
}

.quiz-block {
	width: min(100%, 720px);
	justify-self: center;
}

.quiz-block-info,
.quiz-block-actions {
	display: flex;
	flex-direction: column;
	gap: clamp(5px, 1.5vh, 20px);
	gap: clamp(5px, 1.5dvh, 20px);
	min-height: 0;
}

.quiz-block-info {
	grid-area: info;
	align-items: center;
}
@media (max-width: 767px) {
	.quiz-block-info {
		text-align: center;
	}
}

.quiz-block-actions {
	grid-area: actions;
	align-items: stretch;
	width: 100%;
}
@media (min-width: 768px) {
	.quiz-block-actions {
		align-items: center;
	}
}
.quiz-block-actions .quiz-options {
	margin-bottom: 10px;
	width: 100%;
}
.quiz-block-actions .quiz-button {
	align-self: center;
	width: min(100%, 240px);
}

.quiz-main-media {
	grid-area: media;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: min(100%, 600px);
	justify-self: center;
	min-height: 0;
}
@media (max-width: 767px) {
	.quiz-main-media {
		width: min(100%, 320px);
		gap: 12px;
	}
}

.quiz-debug-info {
	width: 100%;
	border-radius: 8px;
	font-size: 0.6rem;
	text-align: center;
}
.quiz-debug-info a {
	color: #3498db;
	text-decoration: underline;
	font-weight: 600;
}

.quiz-image {
	margin: 0 auto;
	width: 100%;
	text-align: center;
}
.quiz-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 45vh;
	max-height: 45dvh;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	object-fit: cover;
}
@media (max-width: 767px) {
	.quiz-image img {
		max-height: 25vh;
		max-height: 25dvh;
	}
}

.quiz-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(14px, 2vw, 24px);
	margin-bottom: clamp(12px, 2vh, 24px);
	margin-bottom: clamp(12px, 2dvh, 24px);
	width: 100%;
}
@media (max-width: 768px) {
	.quiz-options {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}
@media (max-width: 767px) {
	.quiz-options {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 16px;
	}
}

.quiz-options-preq {
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: clamp(10px, 1.5vw, 16px);
	margin-inline: auto;
	justify-items: stretch;
}
@media (min-width: 768px) {
	.quiz-options-preq {
		max-width: 900px;
	}
}
.quiz-options-preq .quiz-option {
	padding: 12px 0;
}
@media (min-width: 768px) {
	.quiz-options-preq .quiz-option {
		min-height: 48px;
	}
}

.quiz-option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 0;
	background: #f8f9fa;
	border: 2px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: 44px;
}
@media (max-width: 767px) {
	.quiz-option {
		padding: 10px 16px;
		border-radius: 8px;
	}
}
.quiz-option input[type=radio] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.quiz-option input[type=radio]:checked + .quiz-option-text {
	color: #e74c3c;
	font-weight: 600;
}
.quiz-option:has(input[type=radio]:checked) {
	background: white;
	border-color: #e74c3c;
}
.quiz-option:hover {
	background: white;
	border-color: #3498db;
}
.quiz-option:active {
	transform: scale(0.98);
}

.quiz-option-text {
	display: block;
	width: 100%;
	text-align: center;
	color: #333;
	font-size: 1rem;
	user-select: none;
}
@media (max-width: 767px) {
	.quiz-option-text {
		font-size: 0.95rem;
	}
}

.quiz-option-correct {
	color: #27ae60;
	font-weight: 700;
}

.quiz-option-large .quiz-option-text {
	font-size: 1.1rem;
	padding: 8px 0;
}
@media (max-width: 767px) {
	.quiz-option-large .quiz-option-text {
		font-size: 1rem;
		padding: 6px 0;
	}
}

.quiz-button {
	display: block;
	width: min(100%, 320px);
	padding: 16px 24px;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
}
@media (max-width: 767px) {
	.quiz-button {
		padding: 14px 20px;
		font-size: 1rem;
		border-radius: 8px;
	}
}
@media (min-width: 768px) {
	.quiz-button {
		align-self: center;
	}
}
.quiz-button:active {
	transform: scale(0.98);
}
.quiz-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.quiz-button:disabled:active {
	transform: none;
}

.quiz-button-primary {
	background: #e74c3c;
	color: white;
	margin-inline: auto;
}
.quiz-button-primary:hover:not(:disabled) {
	background: #d62c1a;
}
.quiz-button-primary:active:not(:disabled) {
	background: #bf2718;
}

.quiz-result {
	text-align: center;
	padding: 20px 24px;
	border-radius: 12px;
	margin: 0;
	width: 100%;
}
@media (max-width: 767px) {
	.quiz-result {
		padding: 16px 18px;
	}
}
.quiz-result.correct {
	background: #c8f3da;
	border: 2px solid #27ae60;
}
.quiz-result.incorrect {
	background: #f8c9c4;
	border: 2px solid #e74c3c;
}

.quiz-result-message {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 10px;
}
@media (max-width: 767px) {
	.quiz-result-message {
		font-size: 1.2rem;
		margin-bottom: 8px;
	}
}
.correct .quiz-result-message {
	color: #27ae60;
}
.incorrect .quiz-result-message {
	color: #e74c3c;
}

.quiz-result-answer {
	font-size: clamp(20px, 3cqw, 30px);
	color: #333;
	font-weight: 600;
}
@media (max-width: 767px) {
	.quiz-result-answer {
		font-size: 0.95rem;
	}
}

.quiz-result-layout {
	display: grid;
	grid-template-areas: "info" "media" "actions";
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: auto;
	align-content: flex-start;
	justify-items: center;
	gap: clamp(18px, 2vh, 28px);
	gap: clamp(18px, 2dvh, 28px);
	width: 100%;
	min-height: 0;
}

.quiz-result-block {
	width: min(100%, 720px);
	justify-self: center;
}

.quiz-result-block-info,
.quiz-result-block-actions {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.5vh, 20px);
	gap: clamp(12px, 1.5dvh, 20px);
	min-height: 0;
}

.quiz-result-block-info {
	grid-area: info;
}
@media (max-width: 767px) {
	.quiz-result-block-info {
		align-items: center;
		text-align: center;
	}
}

.quiz-result-block-actions {
	grid-area: actions;
}
.quiz-result-block-actions .quiz-options {
	margin-bottom: 0;
	width: 100%;
}
.quiz-result-block-actions .quiz-button {
	align-self: center;
	width: min(100%, 240px);
}

.quiz-result-media {
	grid-area: media;
	display: flex;
	justify-content: center;
	align-items: center;
	width: min(100%, 480px);
	height: auto;
	gap: 12px;
	justify-self: center;
	overflow: hidden;
	border-radius: 12px;
}
@media (max-width: 767px) {
	.quiz-result-media {
		width: min(100%, 320px);
		gap: 10px;
	}
}

.quiz-facility-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: 100%;
	margin: 0 auto;
	text-align: center;
}
.quiz-facility-image img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
	.quiz-facility-image img {
		border-radius: 6px;
		max-height: 100%;
	}
}

.quiz-facility-introduction {
	font-size: 1rem;
	line-height: 1.7;
	color: #555;
	margin: 0;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-facility-introduction {
		font-size: 0.95rem;
		line-height: 1.6;
	}
}

.quiz-visit-question {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 2vh, 20px);
	gap: clamp(12px, 2dvh, 20px);
	align-items: center;
	width: 100%;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-visit-question {
		text-align: center;
	}
}
.quiz-visit-question .quiz-options {
	width: 100%;
	max-width: 420px;
	margin-bottom: 0;
}
.quiz-visit-question .quiz-button {
	align-self: center;
	width: min(100%, 240px);
}

.quiz-score {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: clamp(8px, 1.5vw, 16px);
	flex-wrap: wrap;
	text-align: center;
}

.quiz-score-value {
	font-size: 4rem;
	font-weight: bold;
	color: #e74c3c;
	display: block;
}
@media (max-width: 767px) {
	.quiz-score-value {
		font-size: 3rem;
	}
}

.quiz-score-label {
	font-size: 1.5rem;
	color: #333;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.quiz-score-label {
		font-size: 1.2rem;
	}
}

.quiz-score-separator {
	font-size: 1.3rem;
	color: #666;
}

.quiz-score-max {
	font-size: 1.2rem;
	color: #666;
	font-weight: 600;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.quiz-score-max {
		margin-bottom: 20px;
	}
}

.quiz-result-title {
	font-size: clamp(20px, 3.5cqw, 40px);
	font-weight: bold;
	color: #333;
	text-align: center;
}

.quiz-level {
	background: #f8f9fa;
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 25px;
}
@media (max-width: 767px) {
	.quiz-level {
		padding: 20px;
		margin-bottom: 20px;
	}
}

.quiz-level-title {
	font-size: clamp(20px, 3.5cqw, 40px);
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 15px;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-level-title {
		font-size: 1.1rem;
		margin-bottom: 12px;
	}
}

.quiz-level-message {
	font-size: 1rem;
	color: #333;
	margin-bottom: 10px;
	line-height: 1.8;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-level-message {
		font-size: 0.95rem;
	}
}

.quiz-alert {
	background: white;
	border: 2px solid #e74c3c;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 25px;
}
@media (max-width: 767px) {
	.quiz-alert {
		padding: 15px;
		margin-bottom: 20px;
	}
}
.quiz-alert p {
	color: #e74c3c;
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0;
	text-align: center;
}
@media (max-width: 767px) {
	.quiz-alert p {
		font-size: 1rem;
	}
}

.quiz-after-text {
	text-align: center;
}
.quiz-after-text p {
	font-size: clamp(20px, 3cqw, 30px);
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.quiz-after-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: clamp(20px, 4vh, 40px) 0;
	margin: clamp(20px, 4dvh, 40px) 0;
}
.quiz-after-logo img {
	width: clamp(360px, 60vw, 560px);
	height: auto;
}
@media (max-width: 767px) {
	.quiz-after-logo {
		margin: 20px 0;
	}
	.quiz-after-logo img {
		width: clamp(240px, 80vw, 360px);
	}
}

.quiz-closing .quiz-content {
	text-align: center;
}
.quiz-closing .quiz-content p {
	font-size: clamp(20px, 3cqw, 30px);
	margin-bottom: 15px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
@media (min-width: 768px) {
	.quiz-options {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: clamp(16px, 2vw, 24px);
	}
}
.quiz-logo {
	position: absolute;
	z-index: 1200;
	top: clamp(8px, 2vw, 20px);
	right: clamp(8px, 2vw, 20px);
	left: auto;
	width: clamp(96px, 12vw, 160px);
	transform: translate(0, 0) scale(1);
	transform-origin: top right;
	transition: top 0.6s ease, right 0.6s ease, left 0.6s ease, transform 0.6s ease, width 0.6s ease;
}
@media (max-width: 767px) {
	.quiz-logo {
		width: clamp(80px, 28vw, 120px);
	}
}
.quiz-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.quiz-logo.is-intro {
	top: 35vh;
	top: 35dvh;
	right: auto;
	left: 50%;
	width: clamp(140px, 25vw, 210px);
	transform: translate(-50%, 0) scale(1.08);
}
@media (max-width: 767px) {
	.quiz-logo.is-intro {
		width: clamp(80px, 40vw, 120px);
		top: 40vh;
		top: 40dvh;
	}
}

@keyframes fadeUpIn {
	0% {
		opacity: 0;
		transform: translateY(26px) scale(0.96);
	}
	60% {
		opacity: 1;
		transform: translateY(-6px) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes popBounce {
	0% {
		opacity: 0;
		transform: scale(0.6);
	}
	55% {
		opacity: 1;
		transform: scale(1.08);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes burstIn {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	45% {
		opacity: 1;
		transform: scale(1.14);
	}
	70% {
		transform: scale(0.97);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}
.animate-fade-up {
	animation: fadeUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: var(--animate-delay, 0ms);
	will-change: opacity, transform;
}

.animate-pop {
	animation: popBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	animation-delay: var(--animate-delay, 0ms);
	will-change: opacity, transform;
}

.animate-burst {
	animation: burstIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	animation-delay: var(--animate-delay, 0ms);
	will-change: opacity, transform;
}