/* Daily quiz card (quiz.js): a picture or colour band with the topic, lettered options, a reveal, and a compact state once done. Uses the site's variables with plain fallbacks. */
.sle-quiz { grid-column: 1 / -1; box-sizing: border-box; width: 100%; background: var(--card, #fff); color: var(--ink, #202020); border: 1px solid var(--line, #ddd); border-radius: 18px; margin: 14px 0; max-width: 560px; overflow: hidden; }
.sle-quiz__pic { position: relative; height: 104px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #6b3a1f; background-size: cover; background-position: center 35%; }
.sle-quiz__pic.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .6)); }
.sle-quiz__pic--temple { background-color: #8a4a1f; } .sle-quiz__pic--fest { background-color: #a6342b; } .sle-quiz__pic--hist { background-color: #6f5a2e; } .sle-quiz__pic--folk { background-color: #2c6a64; } .sle-quiz__pic--nature { background-color: #3a7340; }
.sle-quiz__pic:not(.has-img)::after { content: ""; position: absolute; right: -26px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgb(255 255 255 / .12); box-shadow: -60px 54px 0 -12px rgb(255 255 255 / .08); }
.sle-quiz__tag, .sle-quiz__chip { position: relative; z-index: 1; border-radius: 99px; font: 700 12px var(--font-head, sans-serif); }
.sle-quiz__tag { background: #E8A33D; color: #1b1b1e; padding: 4px 11px; }
.sle-quiz__chips { position: relative; z-index: 1; display: flex; gap: 6px; } .sle-quiz__chips[hidden] { display: none; }
.sle-quiz__chip { background: rgb(0 0 0 / .5); color: #fff; padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; } .sle-quiz__chip--flame { color: #E8A33D; } .sle-quiz__chip--flame b { color: #fff; } .sle-quiz__chip--pts:empty { display: none; }
.sle-quiz__bd { padding: 14px 16px 16px; display: grid; gap: 10px; }
.sle-quiz__week { display: flex; gap: 5px; } .sle-quiz__week[hidden] { display: none; } .sle-quiz__week i { width: 8px; height: 8px; border-radius: 50%; background: var(--line, #ddd); display: block; } .sle-quiz__week i.on { background: #E8A33D; }
.sle-quiz__q { margin: 0; font: 700 18px/1.55 var(--font-head, sans-serif); }
.sle-quiz__opts { display: grid; gap: 9px; }
.sle-quiz__o { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left; background: var(--chip, #f2efe9); color: inherit; border: 1.5px solid var(--line, #ddd); border-radius: 14px; font: 600 16px/1.4 var(--font-body, sans-serif); cursor: pointer; }
.sle-quiz__o:hover:not(:disabled), .sle-quiz__o.is-pick { border-color: #E8A33D; }
.sle-quiz__l { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--line, #ddd); display: flex; align-items: center; justify-content: center; font: 700 13px sans-serif; }
.sle-quiz__o span, .sle-quiz__o em { position: relative; z-index: 1; } .sle-quiz__o span { flex: 1; } .sle-quiz__o em { font-style: normal; font-size: 13px; color: var(--ink-2, #6b6762); white-space: nowrap; }
.sle-quiz__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgb(128 128 128 / .16); transition: width .5s ease; }
.sle-quiz__o:disabled { cursor: default; }
.sle-quiz__o.is-ok { border-color: #12713b; animation: sleq-pulse .5s; } .sle-quiz__o.is-ok .sle-quiz__bar { background: rgb(18 113 59 / .22); } .sle-quiz__o.is-ok .sle-quiz__l { background: #12713b; color: #fff; }
.sle-quiz__o.is-no { border-color: #b3261e; animation: sleq-shake .4s; } .sle-quiz__o.is-no .sle-quiz__bar { background: rgb(179 38 30 / .2); } .sle-quiz__o.is-no .sle-quiz__l { background: #b3261e; color: #fff; }
@keyframes sleq-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } } @keyframes sleq-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sle-quiz__res { display: grid; gap: 9px; } .sle-quiz__res[hidden] { display: none; }
.sle-quiz__verdict { margin: 0; font: 700 17px var(--font-head, sans-serif); } .sle-quiz__verdict.is-ok { color: #12713b; } .sle-quiz__verdict.is-no { color: #b3261e; }
.sle-quiz__why { margin: 0; font-size: 15px; line-height: 1.65; } .sle-quiz__src { margin: 0; font-size: 12px; color: var(--ink-2, #6b6762); } .sle-quiz__pct { margin: 0; font-size: 13px; color: var(--ink-2, #6b6762); }
.sle-quiz__pills { display: flex; flex-wrap: wrap; gap: 6px; } .sle-quiz__pill { background: var(--chip, #f2efe9); border-radius: 99px; padding: 4px 10px; font: 700 12px var(--font-head, sans-serif); }
.sle-quiz__mile { display: flex; gap: 10px; align-items: center; border: 1px solid #E8A33D; border-radius: 12px; padding: 10px 12px; font-size: 14px; background: rgb(232 163 61 / .1); } .sle-quiz__mile small { display: block; font-size: 12px; color: var(--ink-2, #6b6762); }
.sle-quiz__lock { margin: 0; font-size: 12px; color: var(--ink-2, #6b6762); }
.sle-quiz__fact { background: var(--chip, #f2efe9); border-radius: 12px; padding: 12px; display: grid; gap: 4px; } .sle-quiz__fact b { font: 700 13px var(--font-head, sans-serif); color: var(--accent, #1a5fb4); } .sle-quiz__fact p { margin: 0; font-size: 14px; line-height: 1.6; } .sle-quiz__fact a { font-size: 13px; text-decoration: underline; color: var(--accent, #1a5fb4); }
.sle-quiz__tm { background: var(--chip, #f2efe9); border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; } .sle-quiz__tm b { display: block; font: 700 14px var(--font-head, sans-serif); } .sle-quiz__tm span { color: var(--ink-2, #6b6762); line-height: 1.5; }
.sle-quiz__cd { flex: none; background: var(--card, #fff); border-radius: 10px; padding: 6px 10px; font: 700 13px var(--font-head, sans-serif); color: #b87a12; white-space: nowrap; }
.sle-quiz__act { display: flex; flex-wrap: wrap; gap: 8px; }
.sle-quiz__act button { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line, #ddd); background: var(--chip, #f2efe9); color: inherit; font: 700 14px var(--font-head, sans-serif); cursor: pointer; }
/* compact state once the day's question is done */
.sle-quiz__mini { display: none; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.sle-quiz.is-mini .sle-quiz__pic, .sle-quiz.is-mini .sle-quiz__bd { display: none; } .sle-quiz.is-mini .sle-quiz__mini { display: flex; }
.sle-quiz__ck { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgb(18 113 59 / .18); color: #12713b; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sle-quiz__mt { flex: 1; } .sle-quiz__mt b { display: block; font: 700 15px var(--font-head, sans-serif); } .sle-quiz__mt small { color: var(--ink-2, #6b6762); font-size: 12px; } .sle-quiz__chev { color: var(--ink-2, #6b6762); font-size: 18px; }
/* My progress panel (private, on the Me page) */
.sle-qp { background: var(--card, #fff); border: 1px solid var(--line, #ddd); border-radius: 18px; padding: 14px 16px; margin: 14px 0; display: grid; gap: 10px; max-width: 560px; }
.sle-qp__h { display: flex; justify-content: space-between; font: 700 14px var(--font-head, sans-serif); } .sle-qp__h small { font-weight: 600; color: var(--ink-2, #6b6762); }
.sle-qp__g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .sle-qp__s { background: var(--chip, #f2efe9); border-radius: 12px; padding: 10px; } .sle-qp__s b { display: block; font-size: 22px; } .sle-qp__s span { font-size: 12px; color: var(--ink-2, #6b6762); }
.sle-qp__lv { font-size: 13px; display: grid; gap: 5px; } .sle-qp__tr { height: 7px; border-radius: 4px; background: var(--chip, #f2efe9); } .sle-qp__tr i { display: block; height: 100%; border-radius: 4px; background: #E8A33D; }
.sle-qp__w { display: flex; gap: 5px; } .sle-qp__w i { width: 28px; height: 28px; border-radius: 50%; background: var(--chip, #f2efe9); display: flex; align-items: center; justify-content: center; font: 600 11px sans-serif; font-style: normal; color: var(--ink-2, #6b6762); } .sle-qp__w i.on { background: #E8A33D; color: #17161a; }
@media (prefers-reduced-motion: reduce) { .sle-quiz__bar { transition: none; } .sle-quiz__o.is-ok, .sle-quiz__o.is-no { animation: none; } }
