/* Hatalı Soru / Question Report — overlay, independent of the 1920 game scaler */
.oe-qr-btn {
	position: fixed;
	top: 10px;
	right: 72px;
	z-index: 200000;
	display: none;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid rgba(232, 196, 110, 0.85);
	border-radius: 999px;
	background: rgba(28, 30, 36, 0.82);
	color: #f4e6c3;
	font: 600 13px/1.2 "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
}
.oe-qr-btn:hover,
.oe-qr-btn:focus {
	background: rgba(42, 44, 52, 0.92);
	color: #fff8e4;
	outline: none;
}
.oe-qr-btn[hidden],
.oe-qr-overlay[hidden] {
	display: none !important;
}
.oe-qr-btn.is-visible {
	display: inline-flex;
}

.oe-qr-overlay {
	position: fixed;
	inset: 0;
	z-index: 200010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 10, 14, 0.62);
	box-sizing: border-box;
}
.oe-qr-overlay.is-open {
	display: flex;
}

.oe-qr-modal {
	width: min(920px, 96vw);
	max-height: min(92vh, 980px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
	border: 2px solid #a08c50;
	background: radial-gradient(circle at 50% 0, #3a3c42 0%, #1d1d1b 70%);
	color: #f5f0e6;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.oe-qr-head {
	padding: 16px 20px 12px;
	border-bottom: 1px solid rgba(160, 140, 80, 0.45);
}
.oe-qr-head h2 {
	margin: 0;
	font-size: clamp(16px, 2.1vw, 22px);
	font-weight: 700;
	color: #f4e6c3;
}

.oe-qr-body {
	padding: 14px 20px 8px;
	display: grid;
	gap: 12px;
}

.oe-qr-meta {
	display: none;
	grid-template-columns: 1fr;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 14px;
}
.oe-qr-meta.is-on {
	display: grid;
}
.oe-qr-meta b {
	color: #e8c46e;
	font-weight: 700;
}

.oe-qr-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: #e8c46e;
}
.oe-qr-field textarea,
.oe-qr-field input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(232, 196, 110, 0.45);
	border-radius: 10px;
	background: rgba(12, 12, 14, 0.45);
	color: #fff;
	font: 400 15px/1.4 "Segoe UI", Roboto, Arial, sans-serif;
	padding: 10px 12px;
	resize: vertical;
}
.oe-qr-field textarea:focus,
.oe-qr-field input[type="text"]:focus {
	outline: 2px solid rgba(232, 196, 110, 0.65);
	outline-offset: 1px;
}
.oe-qr-stem {
	min-height: 88px;
}

.oe-qr-pic {
	display: none;
	text-align: center;
}
.oe-qr-pic.is-on {
	display: block;
}
.oe-qr-pic img {
	max-width: min(100%, 420px);
	max-height: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
}

.oe-qr-opt {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 10px;
	align-items: start;
	padding: 8px;
	border-radius: 10px;
	border: 1px solid transparent;
}
.oe-qr-opt.is-correct {
	border-color: rgba(90, 190, 110, 0.85);
	background: rgba(60, 140, 80, 0.18);
}
.oe-qr-opt label.oe-qr-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.oe-qr-opt input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #5abe6e;
	cursor: pointer;
}
.oe-qr-opt textarea {
	min-height: 44px;
}

.oe-qr-err {
	display: none;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(180, 50, 50, 0.28);
	color: #ffd6d6;
	font-size: 13px;
}
.oe-qr-err.is-on {
	display: block;
}

.oe-qr-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px 16px;
	border-top: 1px solid rgba(160, 140, 80, 0.45);
}
.oe-qr-foot button {
	margin: 0;
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #f5f0e6;
	font: 600 14px/1.2 "Segoe UI", Roboto, Arial, sans-serif;
	cursor: pointer;
}
.oe-qr-foot .oe-qr-ghost:hover {
	background: rgba(255, 255, 255, 0.14);
}
.oe-qr-foot .oe-qr-secondary {
	border-color: rgba(232, 196, 110, 0.45);
}
.oe-qr-foot .oe-qr-primary {
	background: #c9a227;
	border-color: #e8c46e;
	color: #1d1d1b;
}
.oe-qr-foot .oe-qr-primary:hover {
	background: #e0b63a;
}

@media (max-width: 720px) {
	.oe-qr-btn {
		top: 8px;
		right: 56px;
		padding: 6px 10px;
		font-size: 12px;
		max-width: calc(100vw - 72px);
	}
	.oe-qr-modal {
		width: 100%;
		max-height: 94vh;
		border-radius: 12px;
	}
	.oe-qr-foot {
		flex-direction: column-reverse;
	}
	.oe-qr-foot button {
		width: 100%;
	}
}
