:root {
	--bg: #f4f1e8;
	--panel: #fffdf8;
	--line: #d6c7a2;
	--ink: #2d2a26;
	--accent: #126e82;
	--accent-soft: #d8eef3;
	--danger: #aa355e;
	--prop-w: 170px;
	--prop-h: 120px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
	color: var(--ink);
	background-image: url("images/room.jpg");
	background-size: contain;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-color: #111319;
}

.intro-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(circle at top, rgba(255, 218, 176, 0.16), transparent 24%),
		rgba(7, 5, 8, 0.92);
	z-index: 200;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.intro-overlay.show {
	display: flex;
	animation: overlayFadeIn 0.35s ease-out;
}

.intro-card {
	width: min(760px, calc(100vw - 28px));
	padding: 34px 28px 30px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 18% 16%, rgba(255, 217, 156, 0.18), transparent 24%),
		linear-gradient(160deg, rgba(35, 18, 20, 0.98), rgba(17, 11, 14, 0.98));
	border: 2px solid rgba(201, 162, 80, 0.72);
	box-shadow: 0 20px 54px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	text-align: center;
	color: #f9ead8;
}

.intro-badge {
	display: inline-block;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(201, 162, 80, 0.18);
	border: 1px solid rgba(201, 162, 80, 0.72);
	color: #ffd89a;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.intro-card h1 {
	margin: 0 0 18px;
	font-size: clamp(1.8rem, 4.8vw, 3rem);
	font-weight: 900;
	letter-spacing: 0.02em;
	color: #fff0d6;
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.intro-copy {
	margin: 0 auto 22px;
	max-width: 640px;
	font-size: clamp(1rem, 2.5vw, 1.22rem);
	line-height: 1.7;
	font-weight: 700;
	color: #f1dcc7;
	text-align: center;
	white-space: pre-line;
}

.intro-label {
	display: block;
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #ffdca6;
	text-align: center;
}

.intro-name-input {
	width: min(320px, 80vw);
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(201, 162, 80, 0.7);
	background: rgba(20, 14, 18, 0.96);
	color: #fff5e7;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	outline: none;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.28);
}

.intro-name-input::placeholder {
	color: rgba(255, 236, 210, 0.45);
}

.intro-name-input:focus {
	border-color: rgba(255, 219, 145, 0.95);
	box-shadow: 0 0 0 3px rgba(255, 207, 111, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.28);
}

.intro-start-btn {
	display: block;
	margin: 16px auto 0;
	padding: 12px 18px;
	border: 1px solid rgba(245, 201, 118, 0.85);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(245, 201, 118, 0.98), rgba(209, 150, 49, 0.98));
	color: #241408;
	font-size: 1rem;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.intro-start-btn:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
}

.intro-note {
	margin: 14px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 233, 211, 0.82);
	text-align: center;
}

body.second-room-mode {
	background-image: url("images/room.jpg");
	background-size: contain;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body.second-room-mode .app,
body.second-room-mode .phenol-hotspot {
	display: none !important;
}

body.third-room-mode .app,
body.third-room-mode .phenol-hotspot,
body.third-room-mode .cabbage-hotspot,
body.third-room-mode .second-room-props {
	display: none !important;
}

body.fourth-room-mode {
	background-image: url("images/room.jpg");
	background-size: contain;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body.fifth-room-mode {
	background-image: url("images/room.jpg");
	background-size: contain;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body.fourth-room-mode .app,
body.fourth-room-mode .phenol-hotspot,
body.fourth-room-mode .cabbage-hotspot,
body.fourth-room-mode .acid-hotspot,
body.fourth-room-mode .second-room-props,
body.fourth-room-mode .third-room-scene {
	display: none !important;
}

body.fifth-room-mode .app,
body.fifth-room-mode .phenol-hotspot,
body.fifth-room-mode .cabbage-hotspot,
body.fifth-room-mode .acid-hotspot,
body.fifth-room-mode .base-hotspot,
body.fifth-room-mode .second-room-props,
body.fifth-room-mode .third-room-scene,
body.fifth-room-mode .fourth-room-scene {
	display: none !important;
}

.acid-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 130px;
	height: 200px;
	z-index: 58;
	cursor: pointer;
	background: transparent;
	display: none;
}

body.third-room-mode .acid-hotspot {
	display: block;
}

.base-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 130px;
	height: 200px;
	z-index: 58;
	cursor: pointer;
	background: transparent;
	display: none;
}

body.fourth-room-mode .base-hotspot {
	display: block;
}

.btb-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 130px;
	height: 200px;
	z-index: 58;
	cursor: pointer;
	background: transparent;
	display: none;
}

body.fifth-room-mode .btb-hotspot {
	display: block;
}

.btb-hotspot.selected::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid rgba(37, 136, 169, 0.98);
	border-radius: 14px;
	box-shadow: 0 0 0 10px rgba(37, 136, 169, 0.28), 0 0 22px rgba(37, 136, 169, 0.56);
	animation: btbHotspotPulse 0.95s ease-in-out infinite;
	pointer-events: none;
}

.btb-hotspot.selected::after {
	content: "BTB 용액 선택됨";
	position: absolute;
	left: 50%;
	top: -34px;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(37, 136, 169, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.base-hotspot.selected::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid rgba(69, 131, 255, 0.98);
	border-radius: 14px;
	box-shadow: 0 0 0 10px rgba(69, 131, 255, 0.28), 0 0 22px rgba(69, 131, 255, 0.56);
	animation: baseHotspotPulse 0.95s ease-in-out infinite;
	pointer-events: none;
}

.base-hotspot.selected::after {
	content: "염기성 용액 선택됨";
	position: absolute;
	left: 50%;
	top: -34px;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(69, 131, 255, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.acid-hotspot.selected::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid rgba(255, 83, 96, 0.98);
	border-radius: 14px;
	box-shadow: 0 0 0 10px rgba(255, 83, 96, 0.28), 0 0 22px rgba(255, 83, 96, 0.56);
	animation: acidHotspotPulse 0.95s ease-in-out infinite;
	pointer-events: none;
}

.acid-hotspot.selected::after {
	content: "산성 용액 선택됨";
	position: absolute;
	left: 50%;
	top: -34px;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 83, 96, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

body.third-room-mode .acid-hotspot.selected::before {
	transform: translateY(76px);
}

body.third-room-mode .acid-hotspot.selected::after {
	top: 42px;
}

@keyframes acidHotspotPulse {
	0% {
		box-shadow: 0 0 0 4px rgba(255, 83, 96, 0.14);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(255, 83, 96, 0.28);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(255, 83, 96, 0.14);
	}
}

@keyframes baseHotspotPulse {
	0% {
		box-shadow: 0 0 0 4px rgba(69, 131, 255, 0.14);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(69, 131, 255, 0.28);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(69, 131, 255, 0.14);
	}
}

@keyframes btbHotspotPulse {
	0% {
		box-shadow: 0 0 0 4px rgba(37, 136, 169, 0.14);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(37, 136, 169, 0.28);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(37, 136, 169, 0.14);
	}
}

body.third-room-mode .third-room-scene {
	display: flex;
}

body.fourth-room-mode .fourth-room-scene {
	display: flex;
}

body.fifth-room-mode .fifth-room-scene {
	display: flex;
}

.cabbage-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 120px;
	height: 180px;
	z-index: 58;
	cursor: pointer;
	background: transparent;
	display: none;
}

body.second-room-mode .cabbage-hotspot {
	display: block;
}

.cabbage-hotspot.selected::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid rgba(60, 177, 121, 0.98);
	border-radius: 14px;
	box-shadow: 0 0 0 10px rgba(60, 177, 121, 0.3), 0 0 22px rgba(60, 177, 121, 0.56);
	animation: cabbageHotspotPulse 0.95s ease-in-out infinite;
	pointer-events: none;
}

.cabbage-hotspot.selected::after {
	content: "붉은 양배추 지시약 선택됨";
	position: absolute;
	left: 50%;
	top: -34px;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(60, 177, 121, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

@keyframes cabbageHotspotPulse {
	0% {
		box-shadow: 0 0 0 4px rgba(60, 177, 121, 0.14);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(60, 177, 121, 0.28);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(60, 177, 121, 0.14);
	}
}

.second-room-props {
	display: none;
	position: fixed;
	left: 50%;
	top: 49%;
	transform: translate(-50%, -50%);
	z-index: 40;
	pointer-events: auto;
}

body.second-room-mode .second-room-props {
	display: block;
}

.third-room-scene {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 45;
	pointer-events: none;
}

.third-item-e {
	position: absolute;
	left: calc(50% + 76px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-10deg);
}

.third-item-j {
	position: absolute;
	left: calc(50% - 189px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-10deg);
}

.third-item-j .third-item-image {
	width: 1188px;
	height: 852px;
}

.third-item-image {
	width: 250px;
	height: 214px;
	object-fit: contain;
	filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.litmus-viii {
	position: absolute;
	left: calc(50% + 227px);
	top: 50%;
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 18px;
	background: linear-gradient(150deg, rgba(246, 248, 255, 0.85), rgba(230, 238, 255, 0.7));
	box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	pointer-events: auto;
	cursor: pointer;
	transform: translate(-50%, -50%);
}

.litmus-strip {
	display: inline-block;
	width: 16px;
	height: 132px;
	border-radius: 2px;
	background: linear-gradient(180deg, #6fb3ff, #3e82df 52%, #2b65bb);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 8px rgba(12, 43, 93, 0.28);
	transition: background 180ms ease, box-shadow 180ms ease;
}

.litmus-strip.reacted-red {
	background: linear-gradient(180deg, #ff9aa1, #ef4f5f 52%, #c62839);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 8px rgba(108, 19, 33, 0.36);
}

.roman-v {
	position: relative;
	width: 62px;
	height: 132px;
	margin-right: 10px;
}

.roman-v .litmus-left,
.roman-v .litmus-right {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform-origin: bottom center;
	width: 16px;
	height: 132px;
}

.roman-v .litmus-left {
	transform: translateX(-50%) rotate(19deg);
}

.roman-v .litmus-right {
	transform: translateX(-50%) rotate(-19deg);
}

.roman-i {
	height: 132px;
}

.fourth-room-scene {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 45;
	align-items: center;
	gap: 44px;
	pointer-events: none;
}

.fourth-item-e {
	position: fixed;
	left: calc(50% + 76px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-10deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.fourth-item-k {
	position: fixed;
	left: calc(50% - 189px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-10deg);
}

.fourth-item-k .fourth-item-image {
	width: 1188px;
	height: 852px;
}

.fourth-item-image {
	width: 320px;
	height: 274px;
	object-fit: contain;
	filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.fourth-item-caption {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #1f5fc9;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1;
}

.litmus-digital-eight {
	position: relative;
	width: 148px;
	height: 244px;
	border-radius: 18px;
	padding: 14px;
	background: linear-gradient(155deg, rgba(255, 247, 248, 0.92), rgba(255, 236, 238, 0.82));
	box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	pointer-events: auto;
	cursor: pointer;
	transform: translateX(189px);
}

.red-litmus {
	position: absolute;
	display: block;
	border-radius: 2px;
	background: linear-gradient(180deg, #ff9ea6, #ef4f5f 52%, #be2434);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 8px rgba(108, 19, 33, 0.34);
}

.red-litmus.reacted-blue {
	background: linear-gradient(180deg, #7ec0ff, #4d8ff0 52%, #295fbe);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 8px rgba(24, 56, 118, 0.34);
}

.litmus-digital-eight .seg-a,
.litmus-digital-eight .seg-g,
.litmus-digital-eight .seg-d {
	left: 30px;
	width: 88px;
	height: 14px;
}

.litmus-digital-eight .seg-a {
	top: 14px;
}

.litmus-digital-eight .seg-g {
	top: 110px;
}

.litmus-digital-eight .seg-d {
	top: 206px;
}

.litmus-digital-eight .seg-b,
.litmus-digital-eight .seg-c,
.litmus-digital-eight .seg-e,
.litmus-digital-eight .seg-f {
	width: 14px;
	height: 78px;
}

.litmus-digital-eight .seg-b,
.litmus-digital-eight .seg-c {
	left: 118px;
}

.litmus-digital-eight .seg-f,
.litmus-digital-eight .seg-e {
	left: 16px;
}

.litmus-digital-eight .seg-b,
.litmus-digital-eight .seg-f {
	top: 26px;
}

.litmus-digital-eight .seg-c,
.litmus-digital-eight .seg-e {
	top: 122px;
}

.fifth-room-scene {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 45;
	pointer-events: none;
}

.fifth-item-g {
	position: absolute;
	left: calc(50% + 76px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-8deg);
}

.fifth-item-i {
	position: absolute;
	left: -571px;
	top: -152px;
	margin: 0;
	transform: rotate(-12deg);
}

.fifth-item-l {
	position: absolute;
	left: calc(50% - 226px);
	top: 50%;
	margin: 0;
	transform: translate(-50%, -50%) rotate(-12deg);
}

.fifth-item-l .fifth-item-image {
	width: 832px;
	height: 596px;
}

.fifth-item-i .fifth-item-image {
	width: 594px;
	height: 426px;
}

.fifth-item-image {
	width: 640px;
	height: 548px;
	object-fit: contain;
	filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.fifth-board-card {
	position: absolute;
	left: calc(50% + 303px);
	top: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	width: 176px;
	height: 212px;
	pointer-events: auto;
	border-radius: 14px;
	border: 2px solid #d6d6d1;
	background: linear-gradient(165deg, rgba(247, 247, 244, 0.96), rgba(236, 236, 231, 0.94));
	box-shadow: 0 10px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	overflow: hidden;
}

.fifth-board-card::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 10px;
	border: 1px solid rgba(188, 188, 184, 0.85);
	background: linear-gradient(180deg, rgba(251, 251, 249, 0.92), rgba(242, 242, 238, 0.9));
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
	z-index: 1;
}

.final-password-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 5, 8, 0.72);
	z-index: 140;
}

.final-password-overlay.show {
	display: flex;
}

.final-password-card {
	position: relative;
	width: min(720px, calc(100vw - 34px));
	padding: 34px 28px 30px;
	border-radius: 16px;
	border: 2px solid rgba(186, 35, 49, 0.92);
	background: linear-gradient(155deg, rgba(34, 20, 21, 0.97), rgba(20, 14, 16, 0.98));
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.54), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	text-align: center;
	overflow: hidden;
}

.final-password-card h2 {
	margin: 0 0 18px;
	font-size: clamp(1.55rem, 4vw, 2.6rem);
	font-weight: 900;
	color: #ffe8e8;
	letter-spacing: 0.02em;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

#finalPasswordInput {
	width: min(260px, 68vw);
	padding: 12px 14px;
	border: 2px solid rgba(182, 72, 82, 0.88);
	border-radius: 8px;
	background: rgba(24, 18, 20, 0.95);
	color: #ffecec;
	font-size: 1.4rem;
	font-weight: 800;
	text-align: center;
	letter-spacing: 0.25em;
	outline: none;
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
	z-index: 2;
	position: relative;
}

#finalPasswordInput::placeholder {
	color: rgba(255, 214, 214, 0.5);
	letter-spacing: 0.08em;
	font-size: 1rem;
}

#finalPasswordSubmitBtn {
	margin-left: 10px;
	padding: 12px 16px;
	border: 1px solid rgba(211, 95, 95, 0.9);
	border-radius: 8px;
	background: rgba(66, 27, 30, 0.95);
	color: #ffe6e6;
	font-weight: 800;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

#finalPasswordSubmitBtn:hover {
	background: rgba(92, 33, 37, 0.98);
}

.final-password-feedback {
	min-height: 34px;
	margin: 16px 0 0;
	font-size: 1.3rem;
	font-weight: 900;
	line-height: 1.35;
	color: #ffd7d7;
	position: relative;
	z-index: 2;
	text-align: center;
}

.final-escape-time {
	display: inline-block;
	margin-top: 6px;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1;
	font-weight: 900;
	letter-spacing: 0.01em;
}

.final-password-card.success .final-password-feedback {
	color: #ffe067;
	text-shadow: 0 0 12px rgba(255, 215, 78, 0.56);
}

.final-password-card.fail {
	background: linear-gradient(165deg, rgba(79, 8, 14, 0.97), rgba(40, 5, 9, 0.98));
	border-color: rgba(214, 37, 52, 0.95);
	animation: failShake 320ms ease;
}

.final-password-card.fail .final-password-feedback {
	color: #ffe6e6;
	text-shadow: 0 0 10px rgba(193, 0, 0, 0.62);
}

.final-blood-layer {
	position: absolute;
	inset: -4px;
	opacity: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 18%, rgba(172, 6, 20, 0.7) 0 22%, transparent 23%),
		radial-gradient(circle at 82% 14%, rgba(144, 0, 18, 0.68) 0 20%, transparent 21%),
		radial-gradient(circle at 23% 86%, rgba(121, 0, 12, 0.74) 0 24%, transparent 25%),
		linear-gradient(180deg, rgba(120, 5, 12, 0.4), transparent 38%);
	transition: opacity 220ms ease;
	z-index: 1;
}

.final-password-card.fail .final-blood-layer {
	opacity: 1;
}

@keyframes failShake {
	0% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	50% { transform: translateX(6px); }
	75% { transform: translateX(-4px); }
	100% { transform: translateX(0); }
}

body.second-room-mode .second-prop figcaption {
	display: none;
}

.second-prop {
	position: absolute;
	margin: 0;
	overflow: visible;
}

.second-prop-image {
	width: var(--prop-w);
	height: var(--prop-h);
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.second-prop figcaption {
	margin-top: 8px;
	padding: 4px 10px;
	display: inline-block;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	font-size: 0.84rem;
	font-weight: 800;
	color: #2d2a26;
	white-space: nowrap;
}

.second-prop-a {
	left: -230px;
	top: -110px;
	transform: rotate(-14deg);
}

.second-prop-a .second-prop-image {
	width: calc(var(--prop-w) * 1.55);
	height: calc(var(--prop-h) * 1.55);
}

.second-prop-e {
	left: -170px;
	top: -138px;
	transform: rotate(-10deg);
	width: 182px;
	height: 160px;
}

.second-prop-e .second-prop-image {
	width: 182px;
	height: 160px;
	object-fit: contain;
}

.second-prop-c {
	left: 40px;
	top: -95px;
	transform: rotate(0deg);
	width: 190px;
	height: 240px;
	pointer-events: auto;
	border-radius: 14px;
	border: 2px solid #d6d6d1;
	background: linear-gradient(165deg, rgba(247, 247, 244, 0.96), rgba(236, 236, 231, 0.94));
	box-shadow: 0 10px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	overflow: hidden;
}

.second-prop-c::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 10px;
	border: 1px solid rgba(188, 188, 184, 0.85);
	background: linear-gradient(180deg, rgba(251, 251, 249, 0.92), rgba(242, 242, 238, 0.9));
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
	z-index: 1;
}

.hole-board {
	position: absolute;
	inset: 18px 16px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(5, 1fr);
	place-items: center;
	gap: 8px;
	z-index: 3;
}

.hole-board.five-by-five {
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(5, 1fr);
	inset: 16px 14px;
	gap: 6px;
}

.hole-board.five-by-five .hole-dot {
	width: min(24px, 84%);
}

.hole-board.five-by-five .hole-dot.yellow {
	background: radial-gradient(circle, rgba(255, 212, 65, 0.95) 58%, rgba(0, 0, 0, 0) 59%);
	box-shadow:
		inset 0 0 0 2px rgba(168, 124, 0, 0.82),
		inset 0 0 0 5px rgba(245, 214, 117, 0.75),
		0 1px 2px rgba(0, 0, 0, 0.16);
}

.hole-board.five-by-five .hole-dot.blue {
	background: radial-gradient(circle, rgba(68, 148, 255, 0.95) 58%, rgba(0, 0, 0, 0) 59%);
	box-shadow:
		inset 0 0 0 2px rgba(39, 91, 166, 0.82),
		inset 0 0 0 5px rgba(150, 193, 247, 0.75),
		0 1px 2px rgba(0, 0, 0, 0.16);
}

.hole-dot {
	width: min(30px, 78%);
	aspect-ratio: 1;
	height: auto;
	border: 0;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(248, 248, 248, 0.9) 56%, rgba(0, 0, 0, 0) 57%);
	box-shadow:
		inset 0 0 0 3px rgba(138, 138, 138, 0.8),
		inset 0 0 0 6px rgba(201, 201, 201, 0.75),
		0 1px 2px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	padding: 0;
}

.hole-dot.active {
	background: radial-gradient(circle, rgba(214, 40, 95, 0.95) 58%, rgba(0, 0, 0, 0) 59%);
	box-shadow:
		inset 0 0 0 3px rgba(126, 16, 52, 0.88),
		inset 0 0 0 6px rgba(195, 108, 136, 0.74),
		0 0 12px rgba(198, 26, 80, 0.55);
}

.phenol-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 120px;
	height: 180px;
	z-index: 58;
	cursor: pointer;
	background: transparent;
}

.phenol-hotspot.selected {
	border: none;
	box-shadow: none;
	animation: none;
}

.phenol-hotspot.selected::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid rgba(255, 80, 165, 0.98);
	border-radius: 14px;
	box-shadow: 0 0 0 10px rgba(255, 80, 165, 0.28), 0 0 22px rgba(255, 80, 165, 0.5);
	animation: phenolHotspotPulse 0.95s ease-in-out infinite;
	pointer-events: none;
}

.phenol-hotspot.selected::after {
	content: "페놀프탈레인 선택됨";
	position: absolute;
	left: 50%;
	top: -34px;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 80, 165, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

@keyframes phenolHotspotPulse {
	0% {
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(255, 80, 165, 0.26);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
}

.thought-bubble {
	position: fixed;
	left: 50%;
	top: 24px;
	transform: translateX(-50%);
	max-width: min(680px, calc(100vw - 32px));
	padding: 16px 20px;
	background:
		radial-gradient(circle at 16% 26%, rgba(154, 0, 0, 0.48), transparent 20%),
		radial-gradient(circle at 86% 72%, rgba(128, 0, 0, 0.36), transparent 22%),
		rgba(21, 18, 19, 0.92);
	border: 2px solid rgba(123, 18, 24, 0.88);
	border-radius: 4px;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.58;
	letter-spacing: 0.01em;
	white-space: pre-line;
	word-break: keep-all;
	overflow-wrap: anywhere;
	text-wrap: balance;
	text-align: center;
	color: #fff1f1;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
	z-index: 60;
	pointer-events: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.thought-bubble::after {
	content: none;
}

.thought-side-panel {
	position: fixed;
	top: 24px;
	min-width: 170px;
	max-width: 240px;
	padding: 10px 12px;
	border: 2px solid rgba(123, 18, 24, 0.86);
	border-radius: 4px;
	background: rgba(21, 18, 19, 0.9);
	color: #f3d9d9;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	z-index: 60;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	pointer-events: none;
}

.thought-side-left {
	left: calc(50% - 560px);
	text-align: left;
}

.thought-side-right {
	right: calc(50% - 560px);
	text-align: right;
}

.thought-next-btn {
	position: fixed;
	left: 50%;
	top: 104px;
	transform: translateX(-50%);
	padding: 8px 16px;
	border: 1px solid rgba(168, 45, 45, 0.85);
	border-radius: 4px;
	background: rgba(34, 23, 23, 0.92);
	color: #f4d7d7;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	z-index: 61;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.thought-next-btn:hover {
	background: rgba(48, 30, 30, 0.96);
}

.celebration-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 8, 18, 0.56);
	z-index: 120;
	pointer-events: none;
}

.celebration-overlay.show {
	display: flex;
	animation: overlayFadeIn 0.35s ease-out;
}

.room-quiz-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(9, 12, 24, 0.72);
	z-index: 132;
}

.room-quiz-overlay.show {
	display: flex;
	animation: overlayFadeIn 0.25s ease-out;
}

.room-quiz-card {
	width: min(720px, calc(100vw - 30px));
	padding: 28px 24px;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(246, 248, 255, 0.98), rgba(228, 236, 255, 0.96));
	border: 2px solid rgba(87, 116, 210, 0.45);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
	text-align: center;
}

.room-quiz-card h2 {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 3.3vw, 2.1rem);
	font-weight: 900;
	color: #1b2752;
}

.room-quiz-question {
	margin: 0 0 16px;
	font-size: clamp(1rem, 2.5vw, 1.22rem);
	line-height: 1.45;
	font-weight: 700;
	color: #243368;
	text-align: center;
}

.room-quiz-blank {
	display: inline-block;
	min-width: 70px;
	padding: 2px 8px;
	border-bottom: 2px solid rgba(56, 77, 160, 0.55);
	border-radius: 4px;
	color: #11245f;
	font-weight: 900;
	text-align: center;
	background: rgba(255, 255, 255, 0.58);
}

.room-quiz-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.room-quiz-choice {
	border: 2px solid rgba(67, 98, 204, 0.5);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 242, 255, 0.95));
	color: #1e326e;
	font-size: 1.02rem;
	font-weight: 800;
	border-radius: 10px;
	padding: 12px 10px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.room-quiz-choice:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(46, 74, 166, 0.2);
	border-color: rgba(46, 74, 166, 0.85);
}

.room-quiz-feedback {
	min-height: 28px;
	margin: 12px 0 0;
	font-size: 0.98rem;
	font-weight: 800;
	color: #b72735;
	text-align: center;
}

.celebration-card {
	position: relative;
	max-width: min(880px, calc(100vw - 36px));
	padding: 34px 28px;
	border-radius: 20px;
	background: linear-gradient(150deg, rgba(255, 248, 228, 0.97), rgba(255, 232, 187, 0.96));
	border: 3px solid rgba(219, 156, 24, 0.8);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 0 20px rgba(255, 255, 255, 0.55);
	text-align: center;
	animation: cardPopIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 2;
}

.celebration-card p {
	margin: 0;
	font-size: clamp(1.45rem, 3.4vw, 2.5rem);
	font-weight: 900;
	line-height: 1.45;
	color: #832a10;
	text-shadow: 0 2px 0 rgba(255, 255, 255, 0.76);
}

.firework-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.firework-burst {
	position: absolute;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
}

.firework-burst .spark {
	position: absolute;
	left: 0;
	top: 0;
	width: 8px;
	height: 34px;
	border-radius: 99px;
	background: linear-gradient(
		to bottom,
		hsla(var(--burst-hue), 100%, 84%, 1),
		hsla(var(--burst-hue), 89%, 58%, 0.95)
	);
	transform-origin: center 0;
	transform: rotate(var(--angle)) translateY(0);
	opacity: 0;
	animation: sparkFly 0.9s ease-out forwards;
	animation-delay: var(--delay);
}

@keyframes sparkFly {
	0% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(0) scaleY(0.65);
	}
	20% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(-92px) scaleY(1.15);
	}
}

@keyframes cardPopIn {
	0% {
		opacity: 0;
		transform: scale(0.78);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes overlayFadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.app {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.topbar h1 {
	margin: 0;
	font-size: 1.8rem;
}

.topbar p {
	margin: 8px 0 0;
}

.hud {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.hud-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 12px;
	box-shadow: none;
}

.lab {
	margin-top: 16px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.clue-panel,
.keypad {
	display: none;
}

.clue-panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 14px;
	box-shadow: none;
}

.clue-panel h2 {
	margin-top: 0;
}

.clue-panel ul {
	padding-left: 18px;
	line-height: 1.5;
}

.clue-note {
	margin-top: 0;
	color: #665e53;
}

#hintBtn {
	border: 0;
	background: var(--accent);
	color: #fff;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	font-weight: 600;
}

.hint-text {
	min-height: 40px;
	margin-bottom: 0;
}

.desk-area {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 12px;
}

.desk-props {
	position: fixed;
	left: 50%;
	top: 49%;
	transform: translate(-50%, -50%);
	z-index: 25;
	display: block;
	pointer-events: auto;
}

.prop-card {
	position: absolute;
	margin: 0;
	width: var(--prop-w);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	display: block;
	padding: 0;
	cursor: pointer;
	overflow: visible;
}

#phenolBottle.selected {
	z-index: 30;
	background: transparent;
	outline: none;
	box-shadow: none;
	animation: none;
}

#phenolBottle.selected::after {
	content: "선택됨";
	position: absolute;
	top: -18px;
	left: 118px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 80, 165, 0.96);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.2px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

#phenolBottle.selected .prop-image {
	outline: 3px solid rgba(255, 80, 165, 0.78);
	outline-offset: 4px;
	border-radius: 10px;
	box-shadow: 0 0 0 8px rgba(255, 80, 165, 0.2);
	animation: phenolPulseImg 0.95s ease-in-out infinite;
}

@keyframes phenolPulse {
	0% {
		outline-color: rgba(255, 80, 165, 0.55);
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
	50% {
		outline-color: rgba(255, 80, 165, 1);
		box-shadow: 0 0 0 12px rgba(255, 80, 165, 0.24);
	}
	100% {
		outline-color: rgba(255, 80, 165, 0.55);
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
}

@keyframes phenolPulseImg {
	0% {
		outline-color: rgba(255, 80, 165, 0.55);
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
	50% {
		outline-color: rgba(255, 80, 165, 1);
		box-shadow: 0 0 0 10px rgba(255, 80, 165, 0.24);
	}
	100% {
		outline-color: rgba(255, 80, 165, 0.55);
		box-shadow: 0 0 0 4px rgba(255, 80, 165, 0.12);
	}
}

.paper-digit {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 84px;
	font-weight: 800;
	line-height: 1;
	color: #d61f69;
	opacity: 0;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	z-index: 2;
	transition: opacity 0.18s ease-out;
}

.prop-b .paper-digit {
	left: 39%;
	top: 32%;
	font-size: 68px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.phenol-drop {
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 192, 225, 0.95), rgba(214, 31, 105, 0.75));
	transform: translate(-50%, -50%);
	pointer-events: none;
	animation: dropFade 420ms ease-out forwards;
}

@keyframes dropFade {
	0% {
		opacity: 0.9;
		scale: 0.8;
	}
	100% {
		opacity: 0;
		scale: 1.6;
	}
}

.prop-image {
	width: var(--prop-w);
	height: var(--prop-h);
	object-fit: contain;
	border-radius: 0;
	display: block;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.24));
}

.prop-card figcaption {
	font-size: 0.82rem;
	font-weight: 700;
	color: #3f372f;
}

.prop-a {
	left: -154px;
	top: -72px;
	transform: rotate(-14deg);
}

.prop-h {
	left: -571px;
	top: -152px;
	transform: rotate(-12deg);
}

.second-prop-i {
	left: -571px;
	top: -152px;
	transform: rotate(-12deg);
}

.prop-h .prop-image {
	width: 594px;
	height: 426px;
}

.second-prop-i .second-prop-image {
	width: 594px;
	height: 426px;
	object-fit: contain;
}

.prop-a .prop-image {
	width: calc(var(--prop-w) * 1.45);
	height: calc(var(--prop-h) * 1.45);
}

.prop-b {
	left: 85px;
	top: -30px;
	transform: rotate(-14deg);
	width: 220px;
	height: 190px;
	z-index: 35;
}

.prop-b .prop-image {
	pointer-events: none;
}

.tools {
	display: flex;
	gap: 8px;
}

.tool {
	border: 0;
	background: transparent;
	border-radius: 0;
	padding: 8px 14px;
	font-weight: 700;
	box-shadow: none;
}

.tool.active {
	background: transparent;
}

.paper-wrap {
	position: fixed;
	left: 50%;
	top: 71%;
	transform: translate(-50%, -50%);
	width: min(86vw, 760px);
	z-index: 12;
	display: block;
}

.paper-target {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
}

.paper-target.selected {
	outline: 3px solid rgba(255, 120, 170, 0.9);
	outline-offset: 4px;
	box-shadow: 0 0 0 8px rgba(255, 120, 170, 0.18);
}

.paper-target.selected::after {
	content: "종이 선택됨";
	position: absolute;
	right: 8px;
	top: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 120, 170, 0.95);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.paper-label {
	margin: 0 0 10px;
	font-weight: 600;
}

#paperCanvas {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: crosshair;
}

.keypad {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 14px;
	box-shadow: none;
}

.keypad h2 {
	margin-top: 0;
}

#digitInput {
	width: 120px;
	font-size: 1.2rem;
	border: 0;
	border-bottom: 2px solid #666;
	border-radius: 0;
	background: transparent;
	padding: 8px;
}

#unlockBtn {
	margin-left: 8px;
	border: 0;
	background: transparent;
	color: var(--danger);
	border-radius: 0;
	padding: 10px 14px;
	cursor: pointer;
	font-weight: 700;
}

.lock-message {
	min-height: 28px;
	margin-bottom: 0;
	font-weight: 700;
}

.topbar,
.hud,
.paper-label,
.keypad h2,
.keypad p,
.prop-card figcaption,
.lock-message,
.tools,
#unlockBtn {
	display: none;
}

#digitInput::placeholder {
	color: transparent;
}

@media (max-width: 980px) {
	.phenol-hotspot.selected::after {
		top: -30px;
		font-size: 11px;
	}

	.cabbage-hotspot.selected::after {
		top: -30px;
		font-size: 11px;
	}

	.acid-hotspot.selected::after {
		top: -30px;
		font-size: 11px;
	}

	.base-hotspot.selected::after {
		top: -30px;
		font-size: 11px;
	}

	.btb-hotspot.selected::after {
		top: -30px;
		font-size: 11px;
	}

	.thought-bubble {
		top: 14px;
		max-width: min(620px, calc(100vw - 24px));
		font-size: 1rem;
		line-height: 1.54;
		padding: 12px 14px;
	}

	.thought-side-panel {
		top: 14px;
		min-width: 126px;
		max-width: 170px;
		font-size: 0.82rem;
		padding: 8px 10px;
	}

	.thought-side-left {
		left: 12px;
	}

	.thought-side-right {
		right: 12px;
	}

	.lab {
		grid-template-columns: 1fr;
	}

	.hud {
		grid-template-columns: 1fr;
	}

	.desk-props {
		top: 55%;
	}

	.paper-wrap {
		top: 74%;
		width: min(92vw, 620px);
	}

	.prop-card {
		width: 120px;
	}

	.prop-image {
		width: 120px;
		height: 84px;
	}

	.prop-a {
		left: -89px;
		top: -54px;
	}

	.prop-h {
		left: -411px;
		top: -136px;
	}

	.second-prop-i {
		left: -411px;
		top: -136px;
	}

	.prop-h .prop-image {
		width: 426px;
		height: 312px;
	}

	.second-prop-i .second-prop-image {
		width: 426px;
		height: 312px;
		object-fit: contain;
	}

	.prop-a .prop-image {
		width: 170px;
		height: 118px;
	}

	.prop-b {
		left: 60px;
		top: -20px;
		width: 180px;
		height: 160px;
	}

	.prop-b .paper-digit {
		font-size: 50px;
		left: 34%;
		top: 27%;
	}

	.paper-digit {
		font-size: 62px;
	}

	.celebration-card {
		padding: 26px 20px;
	}

	.second-room-props {
		top: 55%;
	}

	.second-prop-a {
		left: -165px;
		top: -92px;
	}

	.second-prop-a .second-prop-image {
		width: 182px;
		height: 126px;
	}

	.second-prop-e {
		left: -120px;
		top: -126px;
		width: 150px;
		height: 130px;
	}

	.second-prop-e .second-prop-image {
		width: 150px;
		height: 130px;
	}

	.second-prop-c {
		left: 30px;
		top: -80px;
		transform: rotate(0deg);
		width: 150px;
		height: 195px;
	}

	.third-room-scene {
		inset: 0;
	}

	.third-item-e {
		left: calc(50% + 76px);
		top: 50%;
	}

	.third-item-j {
		left: calc(50% - 189px);
		top: 50%;
	}

	.third-item-j .third-item-image {
		width: 852px;
		height: 624px;
	}

	.fourth-room-scene {
		top: 54%;
		gap: 24px;
	}

	.fourth-item-e {
		left: calc(50% + 76px);
		top: 50%;
	}

	.fourth-item-k {
		left: calc(50% - 189px);
		top: 50%;
	}

	.fourth-item-k .fourth-item-image {
		width: 852px;
		height: 624px;
	}

	.fifth-room-scene {
		inset: 0;
	}

	.fifth-item-g {
		left: calc(50% + 76px);
		top: 50%;
	}

	.fifth-item-i {
		left: -411px;
		top: -136px;
	}

	.fifth-item-l {
		left: calc(50% - 226px);
		top: 50%;
	}

	.fifth-item-l .fifth-item-image {
		width: 596px;
		height: 437px;
	}

	#finalPasswordSubmitBtn {
		display: block;
		margin: 10px auto 0;
	}

	.fifth-board-card {
		left: calc(50% + 303px);
		top: 50%;
	}

	.fifth-item-i .fifth-item-image {
		width: 426px;
		height: 312px;
	}

	.third-item-image {
		width: 196px;
		height: 168px;
	}

	.room-quiz-card {
		padding: 24px 18px;
	}

	.room-quiz-choices {
		grid-template-columns: 1fr;
	}

	.litmus-viii {
		gap: 12px;
		padding: 14px 16px;
	}

	.litmus-strip,
	.roman-i,
	.roman-v .litmus-left,
	.roman-v .litmus-right {
		width: 13px;
		height: 108px;
	}

	.roman-v {
		width: 50px;
		height: 108px;
		margin-right: 6px;
	}

	.hole-board {
		inset: 14px 12px;
		gap: 7px;
	}

	.hole-dot {
		width: min(24px, 76%);
	}

	.fourth-item-image {
		width: 228px;
		height: 196px;
	}

	.fifth-item-image {
		width: 320px;
		height: 274px;
	}

	.fifth-board-card {
		width: 148px;
		height: 176px;
	}

	.hole-board.five-by-five {
		inset: 12px 10px;
		gap: 5px;
	}

	.hole-board.five-by-five .hole-dot {
		width: min(20px, 88%);
	}

	.litmus-digital-eight {
		width: 122px;
		height: 202px;
	}

	.litmus-digital-eight .seg-a,
	.litmus-digital-eight .seg-g,
	.litmus-digital-eight .seg-d {
		left: 24px;
		width: 74px;
		height: 12px;
	}

	.litmus-digital-eight .seg-a {
		top: 12px;
	}

	.litmus-digital-eight .seg-g {
		top: 91px;
	}

	.litmus-digital-eight .seg-d {
		top: 170px;
	}

	.litmus-digital-eight .seg-b,
	.litmus-digital-eight .seg-c,
	.litmus-digital-eight .seg-e,
	.litmus-digital-eight .seg-f {
		width: 12px;
		height: 66px;
	}

	.litmus-digital-eight .seg-b,
	.litmus-digital-eight .seg-c {
		left: 98px;
	}

	.litmus-digital-eight .seg-f,
	.litmus-digital-eight .seg-e {
		left: 12px;
	}

	.litmus-digital-eight .seg-b,
	.litmus-digital-eight .seg-f {
		top: 21px;
	}

	.litmus-digital-eight .seg-c,
	.litmus-digital-eight .seg-e {
		top: 100px;
	}
}
