/* LYX Challenges — follows the LYXPLANET Brand & Web Style Guide (Oct 2026). */
.lyxc, .lyxc-board-wrap, .lyxc-passport {
	--lyxc-gold: #DDAF17; --lyxc-lantern: #E7C25A; --lyxc-bronze: #7A5F12;
	--lyxc-ink: #111111; --lyxc-body: #1D1D1B; --lyxc-charcoal: #3B3B38; --lyxc-graphite: #5F5E5A;
	--lyxc-stone: #C9C6BD; --lyxc-sand: #ECE6DA; --lyxc-parch: #F4F1EA; --lyxc-mist: #F9F9F9; --lyxc-bone: #F9F7F7;
	--lyxc-line: #E4E0D6; --lyxc-right: #2F6B3B; --lyxc-wrong: #A23B2A;
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--lyxc-body);
	position: relative;
}
.lyxc *, .lyxc-board-wrap *, .lyxc-passport * { box-sizing: border-box; }
.lyxc { margin: 8px 0 4px; }
.lyxc-screen { animation: lyxc-in .28s ease both; }
@keyframes lyxc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lyxc-kicker {
	font-family: "Work Sans", Poppins, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2.5px;
	text-transform: uppercase; color: var(--lyxc-bronze); margin: 0 0 8px;
}
.lyxc .lyxc-title, .lyxc .lyxc-q, .lyxc .lyxc-res-title, .lyxc .lyxc-h4, .lyxc-board-wrap .lyxc-h4, .lyxc-join .lyxc-join-title, .lyxc-passport .lyxc-pp-book-title {
	font-family: Poppins, sans-serif !important; font-weight: 600; color: var(--lyxc-ink); letter-spacing: -0.3px; margin: 0 0 10px;
}
.lyxc-title { font-size: 26px; line-height: 1.2; }
.lyxc-meta { font-size: 14px; color: var(--lyxc-graphite); margin: 0 0 18px; }
.lyxc-notice {
	background: var(--lyxc-parch); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5;
	color: var(--lyxc-charcoal); margin: 0 0 18px; border-left: 3px solid var(--lyxc-gold);
}
.lyxc-h4 { font-weight: 600; font-size: 20px; color: var(--lyxc-ink); margin: 0 0 14px; line-height: 1.25; }

/* Buttons */
.lyxc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lyxc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
	font-family: Poppins, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
	border-radius: 35px; border: 1px solid var(--lyxc-ink); cursor: pointer; text-decoration: none !important;
	transition: background .15s, color .15s, border-color .15s, opacity .15s; line-height: 1.1;
}
.lyxc-btn:focus-visible, .lyxc-answer:focus-visible, .lyxc-link:focus-visible, .lyxc-card:focus-visible, .lyxc-tabs button:focus-visible {
	outline: 2px solid var(--lyxc-gold); outline-offset: 3px;
}
.lyxc-btn--ink { background: var(--lyxc-ink); color: #fff !important; }
.lyxc-btn--ink:hover:not(:disabled) { background: var(--lyxc-gold); border-color: var(--lyxc-gold); color: #141313 !important; }
.lyxc-btn--outline { background: transparent; color: var(--lyxc-ink) !important; }
.lyxc-btn--outline:hover:not(:disabled) { background: var(--lyxc-ink); color: #fff !important; }
.lyxc-btn--gold { background: var(--lyxc-gold); border-color: var(--lyxc-gold); color: #141313 !important; border-radius: 8px; }
.lyxc-btn--gold:hover { background: var(--lyxc-lantern); border-color: var(--lyxc-lantern); }
.lyxc-btn:disabled { opacity: .35; cursor: not-allowed; }
.lyxc-btn.is-busy { opacity: .6; cursor: progress; }
.lyxc-link {
	background: none; border: 0; padding: 6px 0; font: 600 14px Poppins, sans-serif; color: var(--lyxc-ink); cursor: pointer;
	text-decoration: underline; text-decoration-color: var(--lyxc-gold); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.lyxc a:not(.lyxc-btn):not(.lyxc-card), .lyxc-passport a:not(.lyxc-btn), .lyxc-board-wrap a {
	color: inherit; text-decoration: underline; text-decoration-color: var(--lyxc-gold); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* Question */
.lyxc-qhead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lyxc-count { font-family: "Work Sans", Poppins, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lyxc-graphite); white-space: nowrap; }
.lyxc-bar { flex: 1; height: 4px; background: var(--lyxc-line); border-radius: 4px; overflow: hidden; }
.lyxc-bar span { display: block; height: 100%; background: var(--lyxc-gold); transition: width .3s ease; }
.lyxc .lyxc-q { font-size: 21px; line-height: 1.35; outline: none; }
.lyxc-qimg { margin: 6px 0 16px; }
.lyxc-qimg img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 14px; background: var(--lyxc-parch); }
.lyxc-answers { display: grid; gap: 10px; margin: 18px 0 20px; }
.lyxc-answers--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lyxc-answer {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 56px;
	background: #fff; border: 1px solid var(--lyxc-line); border-radius: 8px; cursor: pointer;
	font: 400 16px/1.45 Poppins, sans-serif; color: var(--lyxc-body); transition: border-color .15s, background .15s, box-shadow .15s;
}
.lyxc-answer:hover { border-color: var(--lyxc-ink); }
.lyxc-answer.is-selected { border-color: var(--lyxc-ink); box-shadow: inset 0 0 0 1px var(--lyxc-ink); background: var(--lyxc-parch); }
.lyxc-letter {
	flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font: 700 12px "Work Sans", Poppins, sans-serif; border: 1px solid var(--lyxc-stone); color: var(--lyxc-graphite);
}
.lyxc-answer.is-selected .lyxc-letter { background: var(--lyxc-ink); border-color: var(--lyxc-ink); color: #fff; }
.lyxc-answer--img { flex-direction: column; align-items: stretch; padding: 10px; position: relative; }
.lyxc-answer--img .lyxc-letter { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); }
.lyxc-answer-img { display: block; width: 100%; height: 150px; object-fit: contain; border-radius: 6px; background: var(--lyxc-mist); }
.lyxc-answer--img .lyxc-answer-text { text-align: center; font-size: 14px; }
.lyxc-qfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Results */
.lyxc-res-top { display: grid; grid-template-columns: 1fr 170px; gap: 24px; align-items: center; margin-bottom: 22px; }
.lyxc-res-title { font-size: 30px; line-height: 1.1; outline: none; }
.lyxc-score { font-size: 18px; margin: 0 0 6px; color: var(--lyxc-ink); }
.lyxc-score strong { font-weight: 700; }
.lyxc-dek { font-size: 15px; line-height: 1.55; color: var(--lyxc-charcoal); margin: 0 0 12px; }
.lyxc-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.lyxc-dot { width: 14px; height: 14px; border-radius: 3px; background: var(--lyxc-stone); }
.lyxc-dot.is-right { background: var(--lyxc-right); }
.lyxc-dot.is-wrong { background: var(--lyxc-wrong); opacity: .85; }
.lyxc-res-stamp { text-align: center; }
.lyxc-res-stamp .lyxc-stamp { width: 150px; height: 150px; display: block; margin: 0 auto; }
.lyxc-res-stamp.is-earned .lyxc-stamp { opacity: 0; transform: scale(1.6) rotate(-14deg); transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.4,.4,1); }
.lyxc-res-stamp.is-earned.is-in .lyxc-stamp { opacity: 1; transform: scale(1) rotate(-4deg); }
.lyxc-stamp-cap { font-size: 12.5px; line-height: 1.45; color: var(--lyxc-graphite); margin: 8px 0 0; }

.lyxc-join { background: #000; color: var(--lyxc-sand); border-radius: 14px; padding: 22px 22px 20px; margin: 0 0 22px; }
.lyxc-join-rank { font-family: "Work Sans", Poppins, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lyxc-lantern); margin: 0 0 8px; }
.lyxc-join-title { font: 600 22px/1.2 Poppins, sans-serif; color: var(--lyxc-bone); margin: 0 0 6px; }
.lyxc-join-body { font-size: 15px; line-height: 1.55; margin: 0 0 16px; color: var(--lyxc-sand); }
.lyxc-join-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lyxc-join-login { font-size: 14px; color: var(--lyxc-stone); }
.lyxc .lyxc-join a.lyxc-join-link[data-kind=login] { color: #fff; }

.lyxc-miniboard { background: var(--lyxc-parch); border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; }
.lyxc-res-actions { margin-bottom: 8px; }
.lyxc-note { font-size: 13px; color: var(--lyxc-graphite); margin: 6px 0 0; }

.lyxc-reveal { margin: 24px 0 0; border-top: 1px solid var(--lyxc-line); padding-top: 20px; }
.lyxc-rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lyxc .lyxc-rev-head .lyxc-kicker { margin: 0 !important; }
.lyxc .lyxc-rev-sum { margin: 0 !important; font-size: 14px; font-weight: 600; color: var(--lyxc-ink); }
.lyxc-rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lyxc-rev { background: #fff; border: 1px solid var(--lyxc-line); border-radius: 14px; padding: 18px 20px; margin: 0; }
.lyxc-rev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lyxc-rev-num { font: 700 11px "Work Sans", Poppins, sans-serif !important; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lyxc-graphite); }
.lyxc-rev-badge { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.lyxc-rev.is-right .lyxc-rev-badge { background: var(--lyxc-right); }
.lyxc-rev.is-wrong .lyxc-rev-badge { background: var(--lyxc-wrong); }
.lyxc .lyxc-rev p.lyxc-rev-q { font: 400 16px/1.6 Poppins, sans-serif !important; color: var(--lyxc-charcoal); margin: 0 0 14px !important; }
.lyxc-rev-qimg { display: block; max-width: 280px; width: 100%; height: auto; border-radius: 8px; margin: 0 0 12px; }
.lyxc-rev-ans { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; margin: 0 0 8px; border-left: 3px solid; }
.lyxc-rev-ans.is-right { background: rgba(47,107,59,.07); border-color: var(--lyxc-right); }
.lyxc-rev-ans.is-wrong { background: rgba(162,59,42,.06); border-color: var(--lyxc-wrong); }
.lyxc-rev-label { font: 700 10.5px "Work Sans", Poppins, sans-serif !important; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lyxc-graphite); }
.lyxc-rev-ans.is-right .lyxc-rev-label { color: var(--lyxc-right); }
.lyxc-rev-ans.is-wrong .lyxc-rev-label { color: var(--lyxc-wrong); }
.lyxc-rev-val { font: 600 15.5px/1.45 Poppins, sans-serif; color: var(--lyxc-ink); }
.lyxc-rev-ans.is-wrong .lyxc-rev-val { font-weight: 500; color: var(--lyxc-charcoal); text-decoration: line-through; text-decoration-color: rgba(162,59,42,.5); }
.lyxc-rev-exp { background: var(--lyxc-parch); border-radius: 8px; padding: 12px 14px; margin: 10px 0 0; }
.lyxc .lyxc-rev-exp p { font: 400 15px/1.6 Poppins, sans-serif !important; color: var(--lyxc-body); margin: 4px 0 0 !important; }
.lyxc-rev-exp .lyxc-rev-label { color: var(--lyxc-bronze); }
.lyxc .lyxc-rev p.lyxc-rev-read { font: 600 14px Poppins, sans-serif !important; margin: 12px 0 0 !important; }
.lyxc-rev-img { width: 90px; height: auto; border-radius: 4px; }

.lyxc-ask, .lyxc-sharebox { background: var(--lyxc-parch); border-radius: 14px; padding: 16px 18px; margin: 14px 0 6px; }
.lyxc .lyxc-ask p { font-size: 15px; line-height: 1.55; color: var(--lyxc-body); margin: 0 0 12px !important; }
.lyxc .lyxc-sharebox .lyxc-kicker { margin-bottom: 8px !important; }
.lyxc-share-text { white-space: pre-wrap; word-break: break-word; font: 400 14px/1.55 Poppins, sans-serif; background: #fff; border: 1px solid var(--lyxc-line); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; color: var(--lyxc-ink); }
.lyxc-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lyxc-share-row .lyxc-btn { min-height: 40px; padding: 0 18px; }
.lyxc .lyxc-share-net { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--lyxc-line); border-radius: 35px; background: #fff; font: 600 13px Poppins, sans-serif; color: var(--lyxc-ink); text-decoration: none !important; cursor: pointer; }
.lyxc .lyxc-share-net:hover { border-color: var(--lyxc-ink); }

.lyxc-next-wrap { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--lyxc-line); }
.lyxc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lyxc-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: var(--lyxc-ink) !important; border: 1px solid var(--lyxc-line); transition: border-color .15s; }
.lyxc-card:hover { border-color: var(--lyxc-ink); }
.lyxc-card-img { display: block; aspect-ratio: 16 / 10; background: var(--lyxc-parch); overflow: hidden; }
.lyxc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lyxc-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lyxc-card-kicker { font: 700 10.5px "Work Sans", Poppins, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lyxc-bronze); }
.lyxc-card-title { font: 600 15px/1.3 Poppins, sans-serif; flex: 1; }
.lyxc-card-cta { font: 600 13px Poppins, sans-serif; margin-top: 6px; }

.lyxc-toast {
	position: fixed; left: 50%; bottom: 130px; transform: translate(-50%, 10px); background: #111; color: #fff; font: 500 14px Poppins, sans-serif;
	padding: 11px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100000; max-width: calc(100vw - 32px); text-align: center;
}
.lyxc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Leaderboard */
.lyxc-board-wrap { margin: 8px 0; }
.lyxc-tabs { display: inline-flex; background: var(--lyxc-parch); border-radius: 35px; padding: 4px; margin-bottom: 16px; }
.lyxc-tabs button { border: 0; background: transparent; border-radius: 35px; padding: 8px 16px; font: 700 11.5px "Work Sans", Poppins, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lyxc-graphite); cursor: pointer; }
.lyxc-tabs button[aria-selected=true] { background: var(--lyxc-ink); color: #fff; }
.lyxc-board-sub { margin: -8px 0 12px; font-size: 14px; color: var(--lyxc-graphite); }
.lyxc-board-body.is-loading { opacity: .5; }
.lyxc-board-list { list-style: none; margin: 0; padding: 0; }
.lyxc-b-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--lyxc-line); font-size: 15px; }
.lyxc-b-row:last-child { border-bottom: 0; }
.lyxc-b-row.is-me { background: rgba(221,175,23,.14); border-radius: 8px; padding-left: 10px; padding-right: 10px; }
.lyxc-b-rank { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px "Work Sans", Poppins, sans-serif; color: var(--lyxc-graphite); border: 1px solid var(--lyxc-stone); }
.lyxc-b-row.is-top .lyxc-b-rank { background: var(--lyxc-gold); border-color: var(--lyxc-gold); color: #141313; }
.lyxc-b-name { flex: 1; font-weight: 600; color: var(--lyxc-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lyxc-b-site { font: 700 9.5px "Work Sans", Poppins, sans-serif; letter-spacing: 1px; color: var(--lyxc-graphite); border: 1px solid var(--lyxc-stone); border-radius: 4px; padding: 1px 4px; margin-left: 4px; vertical-align: 2px; }
.lyxc-b-val { font-weight: 600; white-space: nowrap; }
.lyxc-b-val small { font-weight: 500; color: var(--lyxc-graphite); margin-left: 8px; font-size: 12px; }
.lyxc-b-hide { border: 0; background: none; color: var(--lyxc-graphite); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.lyxc-board-me { font-size: 14px; font-weight: 600; color: var(--lyxc-ink); margin: 0 0 10px; }
.lyxc-board-empty { font-size: 14px; color: var(--lyxc-graphite); margin: 6px 0; }

/* Passport (My Account) */
.lyxc-passport { margin: 0; }
.lyxc-pp-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px; }
.lyxc-pp-stat strong { display: block; font: 600 26px/1.1 Poppins, sans-serif; color: var(--lyxc-ink); }
.lyxc-pp-stat span { font: 700 11px "Work Sans", Poppins, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lyxc-graphite); }
.lyxc-pp-book { background: var(--lyxc-parch); border-radius: 14px; padding: 18px 18px 20px; margin: 0 0 18px; }
.lyxc-pp-book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lyxc-pp-book-title { font: 600 18px/1.2 Poppins, sans-serif; color: var(--lyxc-ink); margin: 0; }
.lyxc-pp-book-sub { font-size: 13px; color: var(--lyxc-graphite); margin: 0; }
.lyxc-pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 10px; }
.lyxc-pp-slot { text-align: center; text-decoration: none !important; color: inherit; }
.lyxc-pp-slot .lyxc-stamp { width: 100%; max-width: 112px; height: auto; display: block; margin: 0 auto; }
.lyxc-pp-slot-label { display: block; font-size: 11.5px; line-height: 1.35; color: var(--lyxc-graphite); margin-top: 4px; }
.lyxc-pp-series { display: grid; gap: 8px; margin: 6px 0 18px; }
.lyxc-pp-srow { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lyxc-pp-sname { flex: 0 0 190px; font-weight: 600; color: var(--lyxc-ink); }
.lyxc-pp-sbar { flex: 1; height: 6px; background: var(--lyxc-line); border-radius: 6px; overflow: hidden; }
.lyxc-pp-sbar span { display: block; height: 100%; background: var(--lyxc-gold); }
.lyxc-pp-scount { flex: 0 0 52px; text-align: right; color: var(--lyxc-graphite); font-size: 13px; }
.lyxc-pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
	.lyxc-title { font-size: 22px; }
	.lyxc .lyxc-q { font-size: 18px; }
	.lyxc-res-top { grid-template-columns: 1fr; gap: 14px; }
	.lyxc-res-stamp { order: -1; }
	.lyxc-res-title { font-size: 26px; }
	.lyxc-cards { grid-template-columns: 1fr; }
	.lyxc-card { flex-direction: row; }
	.lyxc-card-img { flex: 0 0 110px; aspect-ratio: auto; }
	.lyxc-answer-img { height: 110px; }
	.lyxc-actions .lyxc-btn { flex: 1 1 auto; }
	.lyxc-pp-sname { flex-basis: 130px; font-size: 13px; }
	.lyxc-pp-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.lyxc-screen { animation: none; }
	.lyxc-res-stamp.is-earned .lyxc-stamp { transition: none; }
}

/* Theme paragraph/heading spacing shouldn't leak into the player. */
.lyxc p, .lyxc h3, .lyxc h4, .lyxc-board-wrap p, .lyxc-board-wrap h4, .lyxc-passport p { margin-top: 0; }
.lyxc .lyxc-res-text p, .lyxc .lyxc-join p { margin-bottom: 8px !important; }
.lyxc .lyxc-btn, .lyxc-passport .lyxc-btn { font-family: Poppins, sans-serif !important; }
.lyxc .lyxc-kicker, .lyxc-passport .lyxc-kicker, .lyxc .lyxc-count, .lyxc-board-wrap .lyxc-tabs button { font-family: "Work Sans", Poppins, sans-serif !important; }

/* Show / hide my name on the leaderboards */
.lyxc .lyxc-namepref{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:18px 0 0;padding:12px 14px;border:1px solid #e6e1d6;border-radius:6px;background:#faf8f3;font-family:"Work Sans",sans-serif !important;font-size:14px;color:#1D1D1B}
.lyxc .lyxc-namepref label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:500}
.lyxc .lyxc-namepref input{width:16px;height:16px;margin:0;accent-color:#111111}
.lyxc .lyxc-name-note{color:#6b665c;font-size:13px}
