/* =Young Learners Theme – Shared Styles
-------------------------------------------------------------- */

:root {
	--yl-green: #3b6e4a;
	--yl-green-dark: #1e4a2f;
	--yl-orange: #f4a261;
	--yl-orange-hover: #e67e22;
	--yl-gold: #ffcd94;
	--yl-brown: #c47a2a;
	--yl-cream: #fef3da;
	--yl-warm-white: #fffcf0;
	--yl-light-green: #ddebd0;
	--yl-warm-bg: #faf0df;
	--yl-font: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', system-ui, sans-serif;
}

/* Base styles for young learners pages */
body.yl-page {
	background: linear-gradient(145deg, #d4f1f9 0%, #b2dfdb 100%);
	min-height: 100vh;
	font-family: var(--yl-font);
	padding: 2rem 1rem;
}

.yl-container {
	max-width: 1300px;
	margin: 0 auto;
	background: var(--yl-warm-white);
	border-radius: 3rem;
	box-shadow: 0 15px 30px -5px rgba(0,0,0,0.2);
	overflow: hidden;
}

.yl-card {
	padding: 0 2rem 2.5rem;
}

/* Tab navigation – matches Young learners design specs #tabContainer */
.yl-top-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 1.5rem 2rem 0.6rem;
	border-bottom: 2px solid #e2e8f0;
}

.yl-top-nav ul.yl-top-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.yl-top-nav-list li {
	margin: 0;
	padding: 0;
}

.yl-top-nav-list a {
	background: #f1f5f9;
	border: none;
	padding: 0.5rem 1.2rem;
	border-radius: 40px 40px 0 0;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	font-family: inherit;
	color: #475569;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: background 0.15s;
	display: inline-block;
}

.yl-top-nav-list a:hover {
	background: #e2e8f0;
	color: #475569;
	text-decoration: none;
}

.yl-top-nav-list li.current-menu-item a,
.yl-top-nav-list li.current_page_item a {
	background: white;
	color: #0f3b5c;
	border-bottom-color: #f4a261;
}

/* Header */
.yl-header {
	background: var(--yl-green);
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	color: white;
	box-shadow: 0 5px 0 var(--yl-green-dark);
}

.yl-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.yl-logo-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--yl-gold);
	border-radius: 50%;
	color: var(--yl-green);
	font-size: 2rem;
	font-weight: 800;
	transform: rotate(180deg);
	flex-shrink: 0;
	text-align: center;
	line-height: 48px;
}

.yl-logo-text {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.yl-logo-sub {
	font-size: 0.7rem;
	font-weight: 400;
}

/* Language toggle */
.yl-lang-btn {
	background: var(--yl-gold);
	color: var(--yl-green);
	border: none;
	padding: 0.4rem 1rem;
	border-radius: 2rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
	transition: opacity 0.2s;
}

.yl-lang-btn:hover {
	opacity: 0.85;
}

/* Dashboard body */
.yl-body {
	background: var(--yl-warm-white);
	border-radius: 0 0 2rem 2rem;
	padding: 2rem;
}

/* Course header */
.yl-course-header {
	background: var(--yl-cream);
	border-radius: 2rem;
	padding: 1rem;
	margin-bottom: 2rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.yl-course-name {
	font-size: 1.5rem;
	color: var(--yl-brown);
	font-weight: 700;
	margin: 0;
}

.yl-course-selector {
	border: 1px solid var(--yl-orange);
	border-radius: 2rem;
	padding: 0.3rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.yl-course-selector select {
	padding: 0.2rem 0.6rem;
	border: 1px solid var(--yl-orange);
	border-radius: 2rem;
	font-family: inherit;
	font-size: 0.85rem;
	background: #fff;
	cursor: pointer;
}

/* Mountain progress section */
.yl-mountain-section {
	background: var(--yl-light-green);
	border-radius: 2rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
	position: relative;
	background-image: radial-gradient(circle at 10% 20%, #aacf9e 2%, transparent 2.5%);
	background-size: 30px 30px;
}

.yl-mountain-title {
	font-size: 1.3rem;
	color: #2a5c3e;
	font-weight: 700;
	text-align: center;
	margin: 0 0 1rem;
}

.yl-mountain-path {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0;
}

/* Camp cards */
.yl-camp {
	flex: 1;
	text-align: center;
	background: #fdf8e7;
	border-radius: 2rem;
	padding: 0.8rem;
	border: 2px solid #e0b87a;
	transition: transform 0.2s;
	min-width: 60px;
}

.yl-camp:hover {
	transform: translateY(-3px);
}

.yl-camp--completed {
	background: #ffecb3;
	border-color: var(--yl-orange);
}

.yl-camp-icon {
	font-size: 2rem;
}

.yl-camp-name {
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0.3rem 0;
	color: #2a5c3e;
}

.yl-camp-alt {
	font-size: 0.7rem;
	color: #7f6b3e;
}

.yl-camp-badge {
	font-size: 0.7rem;
}

.yl-climber-status {
	text-align: center;
	margin-top: -10px;
	font-size: 0.9rem;
	color: var(--yl-green);
	font-weight: 600;
}

/* Week lesson card */
.yl-lesson-card {
	background: var(--yl-warm-bg);
	border-radius: 2rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.yl-week-title {
	font-size: 1.1rem;
	color: var(--yl-brown);
	font-weight: 700;
	margin: 0 0 1rem;
}

.yl-video-placeholder {
	background: #efe1c6;
	padding: 1rem;
	border-radius: 1rem;
	margin: 1rem 0;
	text-align: center;
	font-size: 0.95rem;
	color: #5a4a2a;
}

/* Activity grid */
.yl-activity-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
}

.yl-activity-card {
	flex: 1;
	background: white;
	border-radius: 1.5rem;
	padding: 1rem;
	text-align: center;
	border: 2px solid var(--yl-orange);
	transition: transform 0.1s;
	min-width: 140px;
}

.yl-activity-card:hover {
	transform: scale(1.02);
}

.yl-badge-icon {
	font-size: 1.8rem;
	cursor: pointer;
}

.yl-badge-icon.earned {
	filter: drop-shadow(0 0 4px gold);
}

.yl-activity-title {
	font-weight: 700;
	margin: 0.5rem 0;
	font-size: 0.9rem;
	color: #2a5c3e;
}

.yl-activity-link {
	background: var(--yl-orange);
	color: white;
	text-decoration: none;
	padding: 0.3rem 1rem;
	border-radius: 2rem;
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	transition: background 0.2s;
}

.yl-activity-link:hover {
	background: var(--yl-orange-hover);
	color: white;
}

/* Next week preview */
.yl-next-preview {
	background: #efe1c6;
	border-radius: 1rem;
	padding: 0.8rem;
	text-align: center;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #5a4a2a;
}

/* Info box */
.yl-info-box {
	background: #e2dccd;
	border-radius: 1.5rem;
	padding: 1rem;
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.yl-info-live {
	font-size: 0.9rem;
	color: var(--yl-green);
	font-weight: 600;
}

.yl-live-link {
	background: var(--yl-green);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	transition: background 0.2s;
}

.yl-live-link:hover {
	background: var(--yl-green-dark);
	color: white;
}

.yl-pricing-tag {
	background: var(--yl-brown);
	color: white;
	padding: 0.5rem;
	border-radius: 2rem;
	font-size: 0.8rem;
	font-weight: 600;
}

/* Hint box */
.yl-hint-box {
	background: #d9e0b5;
	border-radius: 1rem;
	padding: 0.5rem;
	text-align: center;
	font-size: 0.7rem;
	color: #4a5c3a;
	margin-top: 1rem;
}

/* Footer */
.yl-footer {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.7rem;
	color: #6f5b3a;
}

/* Responsive */
/* =Magic Room Styles
-------------------------------------------------------------- */
.mr-body {
	background: linear-gradient(145deg, #d4f1f9 0%, #b2dfdb 100%);
	min-height: 100vh;
	font-family: var(--yl-font);
	padding: 2rem 1rem;
}

/* Magic Room Layout */
.magic-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 400px;
	background: var(--yl-warm-white);
	border-radius: 0 0 2rem 2rem;
	padding: 1.5rem;
	box-shadow: 0 15px 30px -5px rgba(0,0,0,0.2);
}

.magic-view {
	flex: 1;
	border-radius: 24px;
	padding: 0.8rem 1rem;
	display: flex;
	flex-direction: column;
	min-width: 280px;
}

.magic-view.student {
	background: #fef9e6;
	border: 2px solid #ffcd7e;
}

.view-title {
	font-size: 0.95rem;
	font-weight: bold;
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.view-title .badge-sm {
	font-size: 0.6rem;
	background: #f4b942;
	padding: 0.1rem 0.6rem;
	border-radius: 30px;
	color: #2c3e2b;
}

.video-area {
	flex: 3;
	background: #1a2a3a;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b0c4de;
	font-weight: bold;
	min-height: 300px;
	margin-bottom: 0.6rem;
	font-size: 0.9rem;
	padding: 0.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.video-area iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 16px;
	display: none;
	position: absolute;
	inset: 0;
}

.video-area.has-video {
	min-height: unset;
	aspect-ratio: 16 / 9;
	padding: 0;
}

.video-area.has-video iframe {
	border-radius: 16px;
}

.tencent-btn {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	background: var(--yl-green);
	color: #fff;
	border-radius: 2rem;
	padding: 0.4rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	font-family: inherit;
	transition: background 0.2s;
	z-index: 5;
}

.tencent-btn:hover {
	background: var(--yl-green-dark);
	color: #fff;
	text-decoration: none;
}

.activity-area {
	flex: 1;
	background: white;
	border-radius: 16px;
	padding: 0.8rem;
	text-align: center;
	border: 1px solid #e2e8f0;
	min-height: 80px;
	position: relative;
}

.activity-area .waiting {
	color: #7a6210;
	font-size: 0.9rem;
}

.activity-area .activity-link {
	background: #f4b942;
	padding: 0.4rem 1.2rem;
	border-radius: 60px;
	font-weight: bold;
	color: #2c3e2b;
	text-decoration: none;
	display: none;
	font-size: 0.85rem;
	font-family: inherit;
	transition: background 0.2s;
}

.activity-area .activity-link.visible {
	display: inline-block;
}

.activity-area .activity-link:hover {
	background: #e6a830;
	color: #2c3e2b;
	text-decoration: none;
}

.status-tag {
	font-size: 0.65rem;
	background: #fff0c0;
	padding: 0.1rem 0.6rem;
	border-radius: 30px;
	margin-top: 4px;
	display: inline-block;
}

.input-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.12);
	backdrop-filter: blur(2px);
	border-radius: 16px;
	display: none;
	align-items: center;
	justify-content: center;
}

.input-overlay.active {
	display: flex;
}

.input-overlay .msg {
	background: #c0392b;
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 60px;
	font-weight: bold;
	font-size: 0.8rem;
}

/* Interactive Content Area */
.content-area {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #f8fafc;
	margin-top: 0.6rem;
	border: 2px solid #e2e8f0;
	display: none;
}

.content-area.active {
	display: block;
}

.content-area iframe {
	width: 100%;
	height: 520px;
	border: none;
	display: block;
}

.content-area .content-label {
	font-size: 0.7rem;
	color: #64748b;
	padding: 0.4rem 0.8rem;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
	font-weight: 600;
}

.content-area .content-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.18);
	backdrop-filter: blur(2px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2;
	border-radius: 14px;
}

.content-area .content-overlay.active {
	display: flex;
}

.content-area .content-overlay .msg {
	background: #c0392b;
	color: white;
	padding: 0.45rem 1.2rem;
	border-radius: 60px;
	font-weight: bold;
	font-size: 0.85rem;
}

@media (max-width: 700px) {
	.content-area iframe {
		height: 320px;
	}
}

/* Teacher controls */
.magic-view.teacher {
	background: #e8f0fe;
	border: 2px solid #7aa3c4;
}

.teacher-controls {
	flex: 1;
	background: white;
	border-radius: 16px;
	padding: 0.8rem;
	border: 1px solid #e2e8f0;
	min-height: 120px;
}

.teacher-controls .row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin-bottom: 4px;
}

.teacher-controls label {
	font-weight: bold;
	font-size: 0.7rem;
	color: #1e5f7a;
	width: 100%;
}

.teacher-controls input[type="text"] {
	flex: 1;
	padding: 0.2rem 0.6rem;
	border-radius: 40px;
	border: 1px solid #cbd5e1;
	font-size: 0.75rem;
	font-family: inherit;
	min-width: 80px;
}

.btn-sm {
	padding: 0.2rem 0.8rem;
	border: none;
	border-radius: 40px;
	font-weight: bold;
	cursor: pointer;
	font-size: 0.7rem;
	font-family: inherit;
	transition: opacity 0.2s;
}

.btn-sm:hover { opacity: 0.85; }
.btn-show { background: #4caf50; color: white; }
.btn-hide { background: #e67e22; color: white; }
.btn-enable { background: #2c6e9e; color: white; }
.btn-disable { background: #c0392b; color: white; }
.btn-reset { background: #95a5a6; color: white; }
.btn-end { background: #6c3483; color: white; }

.status-text {
	font-size: 0.7rem;
	color: #4a5b6e;
}

.countdown-timer {
	font-size: 0.8rem;
	font-weight: bold;
	color: #b45f06;
	background: #fff7e0;
	padding: 0.1rem 0.6rem;
	border-radius: 30px;
	display: inline-block;
}

@media (max-width: 800px) {
	.magic-container {
		flex-direction: column;
	}
}

/* =Payment Page (young-pricing)
-------------------------------------------------------------- */
.yp-page {
	background: linear-gradient(145deg, #d4f1f9 0%, #b2dfdb 100%);
	min-height: 100vh;
	font-family: var(--yl-font);
	padding: 2rem 1rem;
}

.yp-page .yl-card {
	padding: 0;
}

.yp-header {
	background: var(--yl-green);
	padding: 1.5rem;
	text-align: center;
	color: white;
	position: relative;
}

.yp-header .yl-lang-btn {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: var(--yl-gold);
	color: var(--yl-green);
	border: none;
	padding: 0.4rem 1rem;
	border-radius: 2rem;
	font-weight: bold;
	cursor: pointer;
	font-size: 0.8rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.yp-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 0.5rem;
}

.yp-logo .yl-logo-circle {
	margin-bottom: 0;
}

.yp-logo-text {
	font-size: 1.6rem;
	font-weight: bold;
}

.yp-tagline {
	font-size: 0.9rem;
	opacity: 0.9;
}

.yp-content {
	padding: 2rem;
}

.yp-pricing-box {
	background: var(--yl-cream);
	border-radius: 2rem;
	padding: 1.5rem;
	text-align: center;
	margin-bottom: 2rem;
	border: 3px solid var(--yl-orange);
}

.yp-price {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--yl-brown);
}

.yp-price-period {
	font-size: 1rem;
	color: var(--yl-brown);
}

.yp-price-note {
	font-size: 0.9rem;
	color: #7f6b3e;
	margin-top: 0.5rem;
}

.yp-flex-control {
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.yp-feature-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 2rem 0;
}

.yp-feature-card {
	flex: 1;
	min-width: 200px;
	background: white;
	border-radius: 1.5rem;
	padding: 1rem;
	text-align: center;
	border: 2px solid var(--yl-gold);
	transition: transform 0.1s;
}

.yp-feature-card:hover {
	transform: translateY(-5px);
}

.yp-feature-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.yp-feature-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.3rem;
	color: #1e293b;
}

.yp-feature-card p {
	font-size: 0.85rem;
	color: #475569;
	line-height: 1.5;
	margin: 0;
}

.yp-group-leader {
	background: #e9f0d8;
	border-radius: 1.5rem;
	padding: 1rem;
	margin: 1.5rem 0;
}

.yp-group-leader h2 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--yl-green);
	margin-bottom: 1rem;
}

.yp-step {
	display: flex;
	gap: 1rem;
	margin: 1rem 0;
	align-items: center;
	flex-wrap: wrap;
	font-size: 0.95rem;
	color: var(--yl-green);
	line-height: 1.5;
}

.yp-step-number {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	background: var(--yl-orange);
	color: white;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.yp-cta-wrap {
	text-align: center;
	margin: 2rem 0;
}

/* 课程选择卡片 */
.yp-course-select-title {
	font-size: 1.3rem;
	font-weight: bold;
	color: var(--yl-green);
	margin-bottom: 1rem;
}

.yp-course-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.yp-course-card {
	background: #fff;
	border: 2px solid var(--yl-green);
	border-radius: 16px;
	padding: 1.2rem 1rem;
	width: 200px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.yp-course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.yp-course-card-icon {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.yp-course-card-code {
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--yl-brown);
	margin-bottom: 0.3rem;
}

.yp-course-card-desc {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.8rem;
	min-height: 2.4em;
}

.yp-course-card-btn {
	display: inline-block;
	background: var(--yl-orange);
	color: white !important;
	text-decoration: none;
	padding: 0.5rem 1.5rem;
	border-radius: 2rem;
	font-size: 0.95rem;
	font-weight: bold;
}

.yp-course-card-btn:hover {
	background: var(--yl-orange-hover);
	color: #fff;
}

.yp-cta-btn {
	background: var(--yl-orange);
	color: white;
	border: none;
	padding: 0.8rem 2rem;
	border-radius: 3rem;
	font-size: 1.2rem;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	margin-top: 1rem;
}

.yp-cta-btn:hover {
	background: var(--yl-orange-hover);
	color: #fff;
}

/* Start 按钮点击后展开的课程选择区 */
.yp-course-select {
	margin-top: 1.5rem;
}
.yp-course-select[hidden] {
	display: none;
}

.yp-join-link {
	margin-top: 1rem;
}
.yp-join-link a {
	color: var(--yl-green);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.yp-join-link a:hover {
	color: var(--yl-green-dark);
}

.yp-note {
	background: #ffefd0;
	border-radius: 1rem;
	padding: 1rem;
	margin-top: 1.5rem;
	font-size: 0.8rem;
	color: #5e4a2a;
	text-align: center;
	line-height: 1.6;
}

/* 游客模式：容器和卡片包裹，与原型 .container + .card 一致 */
.yp-page-wrap {
	background: linear-gradient(145deg, #d4f1f9 0%, #b2dfdb 100%);
	font-family: var(--yl-font);
	padding: 2rem 1rem;
	min-height: 100vh;
}

.yp-container {
	max-width: 1100px;
	margin: 0 auto;
}

/* 仅游客模式下 .yp-card-wrap 有卡片样式（YL 模式下 .yl-card 已提供） */
.yp-page-wrap .yp-card-wrap {
	background: var(--yl-warm-white);
	border-radius: 2.5rem;
	box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
	overflow: hidden;
	margin-bottom: 2rem;
}

.yp-footer {
	text-align: center;
	margin-top: 1rem;
	font-size: 0.7rem;
	color: #5a7a4a;
}

@media (max-width: 600px) {
	.yp-feature-grid {
		flex-direction: column;
	}

	.yp-price {
		font-size: 2rem;
	}
}

/* =Join Group Page
-------------------------------------------------------------- */
.jg-content {
	max-width: 500px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	text-align: center;
}

.jg-header {
	background: var(--yl-green);
	padding: 1.5rem;
	color: #fff;
	border-radius: 3rem 3rem 0 0;
	position: relative;
	text-align: center;
}

.jg-lang-toggle {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: var(--yl-gold);
	color: var(--yl-green);
	border: none;
	border-radius: 2rem;
	padding: 0.35rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}
.jg-lang-toggle:hover { opacity: 0.85; }

.jg-logo-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: var(--yl-gold);
	border-radius: 50%;
	color: var(--yl-green);
	font-size: 2rem;
	font-weight: 800;
	transform: rotate(180deg);
	margin-bottom: 0.5rem;
}

.jg-logo-text {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
}

.jg-tagline {
	font-size: 0.9rem;
	opacity: 0.9;
	margin-top: 0.25rem;
}

.jg-main {
	padding: 2.5rem 1.5rem;
}

.jg-title {
	font-size: 1.5rem;
	color: var(--yl-green);
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.jg-subtitle {
	font-size: 0.9rem;
	color: #7f6b3e;
	margin-bottom: 1.5rem;
}

.jg-input {
	border-radius: 2rem;
	border: 2px solid var(--yl-orange);
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	width: 100%;
	text-align: center;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.jg-input:focus {
	border-color: var(--yl-orange-hover);
	box-shadow: 0 0 0 3px rgba(244,162,97,0.2);
}

.jg-btn {
	display: block;
	width: 100%;
	background: var(--yl-orange);
	color: #fff;
	border: none;
	border-radius: 3rem;
	padding: 0.85rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	margin-top: 1rem;
	transition: background 0.2s;
}

.jg-btn:hover { background: var(--yl-orange-hover); }
.jg-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.jg-msg {
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.jg-success { color: #2e7d5e; }

/* Shared YL responsive for magic room */
@media (max-width: 700px) {
	body.yl-page {
		padding: 1rem;
	}

	.yl-body {
		padding: 1rem;
	}

	.yl-mountain-path {
		flex-direction: column;
		align-items: stretch;
	}

	.yl-camp {
		min-width: auto;
	}

	.yl-activity-grid {
		flex-direction: column;
	}

	.yl-activity-card {
		min-width: auto;
	}

	.yl-course-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.yl-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.yl-info-box {
		flex-direction: column;
		align-items: flex-start;
	}

	.magic-container {
		flex-direction: column;
		padding: 1rem;
	}

	.magic-view {
		min-width: auto;
	}

	.video-area {
		min-height: 200px;
	}

	.video-area.has-video {
		aspect-ratio: 16 / 10;
	}
}
