/* ===========================================================
   DEFENSIVE RESET
   =========================================================== */
.lrb-game button{ all: unset; box-sizing: border-box !important; cursor: pointer; }
.lrb-game img{ max-width: none !important; border: none !important; box-shadow: none !important; vertical-align: top !important; }
.lrb-game, .lrb-game *{ box-sizing: border-box !important; }
.lrb-player-overlay{ display: none; }

.lrb-game{
	--lrb-ink: #384454;
	--lrb-green: #5cb75f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--lrb-ink);
	max-width: 640px;
	margin: 0 auto;
}

/* ---------------- start card ---------------- */
.lrb-start-card{
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 40px 44px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.lrb-start-title{ font-size: 24px; font-weight: 800; margin: 0 0 26px; color: #333; }
.lrb-field{ margin-bottom: 22px; }
.lrb-field label{ display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.lrb-name-input, .lrb-age-input{
	width: 100%;
	padding: 13px 18px;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-size: 15px;
	color: #333;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
}
.lrb-age-input{
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'><path d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
}
.lrb-game .lrb-start-btn{
	display: block;
	width: 220px;
	margin: 8px auto 26px;
	text-align: center;
	background: linear-gradient(180deg, #7bd47e, #3fa142);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	padding: 14px 0;
	border-radius: 999px;
	box-shadow: 0 4px 0 #2e7d31, 0 8px 16px rgba(0,0,0,0.15);
}
.lrb-game .lrb-start-btn:disabled{ opacity: 0.7; cursor: default; }
.lrb-start-notes{ margin: 0; padding-left: 18px; color: #555; font-size: 13.5px; line-height: 1.7; }
.lrb-form-error{ color: #c0392b; font-weight: 600; font-size: 13.5px; margin-top: 14px; }

/* ---------------- fullscreen player overlay ---------------- */
.lrb-player-overlay{
	position: fixed !important; inset: 0 !important; z-index: 999990 !important;
	background: linear-gradient(135deg, #4a3fb5 0%, #3f5fc9 45%, #3a6fd6 100%) !important;
	flex-direction: column !important;
	padding: 18px 4vw 40px !important;
	overflow-y: auto !important;
}
.lrb-player-overlay.open{ display: flex !important; }

.lrb-topbar{
	display: flex; justify-content: flex-end; gap: 12px;
	margin-bottom: 18px;
}
.lrb-elapsed, .lrb-progress{
	background: #1c2340;
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 8px 14px;
	border-radius: 8px;
	display: flex; align-items: center; gap: 8px;
}

/* ---------------- shared card ---------------- */
.lrb-stage{ flex: 1; max-width: 560px; margin: 0 auto; width: 100%; }
.lrb-card{
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.18);
	padding: 36px 30px;
	min-height: 220px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center;
}

/* ---------------- reveal phase ---------------- */
.lrb-reveal-card{ position: relative; padding-bottom: 56px; }
.lrb-reveal-image-wrap img{ max-width: min(320px, 70vw) !important; max-height: 320px; width: auto; height: auto; display: block; }
.lrb-reveal-instruction{ font-size: 20px; font-weight: 700; color: #444; max-width: 420px; }
.lrb-progress-bar{
	position: absolute; left: 30px; bottom: 26px;
	width: calc(100% - 60px);
	max-width: 320px;
	height: 8px;
	background: transparent;
}
.lrb-progress-bar-fill{
	width: 100%; height: 100%;
	background: var(--lrb-green);
	border-radius: 999px;
}

/* ---------------- question phase ---------------- */
.lrb-question-card{ margin-bottom: 26px; }
.lrb-question-image{ margin-bottom: 18px; }
.lrb-question-image img{ max-width: min(260px, 60vw) !important; height: auto; border-radius: 6px !important; }
.lrb-question-text{ font-size: 20px; font-weight: 800; color: #444; line-height: 1.4; }

.lrb-options{ display: grid; gap: 16px; width: 100%; }
.lrb-options-count-2{ grid-template-columns: 1fr 1fr; max-width: 420px; margin: 0 auto; }
.lrb-options-count-3{ grid-template-columns: repeat(3, 1fr); }
.lrb-options-count-4{ grid-template-columns: repeat(2, 1fr); }

.lrb-game .lrb-option-text{
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.08);
	padding: 30px 14px;
	font-weight: 800;
	font-size: 16px;
	color: #444;
	text-align: center;
	min-height: 100px;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.12s ease, border-color 0.12s ease;
}
.lrb-game .lrb-option-text:not(:disabled):hover{ transform: translateY(-3px); border-color: #f0a63a; }
.lrb-game .lrb-option-text.selected{ border-color: #3fa142; background: #f3fbf3; }
.lrb-game .lrb-option-text:disabled{ cursor: default; }

.lrb-game .lrb-option-image{
	background: #fff;
	border: 3px solid #eee;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.1);
	padding: 6px;
	overflow: hidden;
	transition: transform 0.12s ease, border-color 0.12s ease;
}
.lrb-option-image img{ width: 100% !important; height: auto; display: block; border-radius: 4px !important; }
.lrb-game .lrb-option-image:not(:disabled):hover{ transform: translateY(-3px); border-color: #f0a63a; }
.lrb-game .lrb-option-image.selected{ border-color: #3fa142; }
.lrb-game .lrb-option-image:disabled{ cursor: default; }

/* ---------------- final / thank-you cards ---------------- */
.lrb-final-title{ font-size: 21px; font-weight: 800; color: #333; margin: 0 0 10px; }
.lrb-final-sub{ color: #666; font-size: 14px; margin: 0 0 22px; }
.lrb-final-card .lrb-field-label{ align-self: flex-start; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.lrb-email-input{
	width: 100%;
	padding: 13px 18px;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-size: 15px;
	margin-bottom: 20px;
}
.lrb-game .lrb-see-result-btn{
	display: block; width: 200px; text-align: center;
	background: linear-gradient(180deg, #7bd47e, #3fa142);
	color: #fff; font-weight: 800; font-size: 15px;
	padding: 13px 0; border-radius: 999px;
	box-shadow: 0 4px 0 #2e7d31, 0 8px 16px rgba(0,0,0,0.15);
}
.lrb-game .lrb-see-result-btn:disabled{ opacity: 0.7; cursor: default; }
.lrb-final-error{ color: #c0392b; font-weight: 600; font-size: 13.5px; margin-top: 14px; }

.lrb-thankyou-icon{ font-size: 46px; margin-bottom: 10px; }
.lrb-thankyou-card h2{ font-size: 21px; font-weight: 800; color: #333; margin: 0 0 10px; }
.lrb-thankyou-card p{ color: #555; font-size: 14.5px; line-height: 1.5; max-width: 380px; margin: 0 0 22px; }
.lrb-game .lrb-close-final-btn{
	display: block; width: 160px; text-align: center;
	background: #eee; color: #444; font-weight: 700; font-size: 14px;
	padding: 11px 0; border-radius: 999px;
}
.lrb-game .lrb-close-final-btn:hover{ background: #e2e2e2; }

/* ---------------- small screens ---------------- */
@media (max-width: 480px){
	.lrb-start-card{ padding: 30px 22px; }
	.lrb-question-text{ font-size: 17px; }
	.lrb-options-count-3, .lrb-options-count-4{ grid-template-columns: 1fr 1fr; }
}
