/* Legends Cards – cream, emerald and card gold */
.lc-app, .lc-pic, .lc-facts, .lc-toast { --lc-em: #0e7c66; --lc-em-dk: #0a5f4e; --lc-gold: #c9962c; --lc-gold-lt: #fbe3a1; --lc-ink: #1c1b22; --lc-mute: #66646f; --lc-paper: #ffffff; --lc-cream: #f4f1e8; --lc-line: #e2dccb; --lc-red: #c2410c; }
.lc-app { margin: 18px 0; color: var(--lc-ink); font-size: 15px; line-height: 1.5; box-sizing: border-box; }
.lc-app *, .lc-app *::before, .lc-app *::after { box-sizing: border-box; }
.lc-app button, .lc-app input, .lc-app select, .lc-app textarea { font: inherit; color: inherit; }
.lc-app button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lc-app label { display: block; font-size: 12px; font-weight: 700; color: var(--lc-mute); letter-spacing: .02em; }
.lc-app input:not([type=range]):not([type=checkbox]):not([type=radio]), .lc-app select, .lc-app textarea { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 10px; border: 1.5px solid var(--lc-line); border-radius: 10px; background: #fff; font-size: 16px; color: var(--lc-ink); }
.lc-app input:focus, .lc-app select:focus, .lc-app textarea:focus { outline: 2px solid var(--lc-em); outline-offset: 1px; }
.lc-panel { padding: 14px; border-radius: 18px; background: var(--lc-paper); border: 1px solid var(--lc-line); box-shadow: 0 6px 18px rgba(28, 27, 34, .06); }
.lc-note { font-size: 13px; color: var(--lc-mute); margin: 8px 0; }
.lc-label { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lc-mute); }
.lc-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; font-size: 22px; letter-spacing: .02em; }
.lc-h small { font-size: 14px; color: var(--lc-mute); }
.lc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.lc-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lc-link { border: 0; background: none; color: var(--lc-em); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 4px 0; }
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--lc-em); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 3px 0 var(--lc-em-dk); transition: transform .08s; }
.lc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lc-em-dk); }
.lc-btn--line { background: #fff; color: var(--lc-em) !important; box-shadow: inset 0 0 0 2px var(--lc-em); }
.lc-btn--warn { background: #fff; color: var(--lc-red) !important; box-shadow: inset 0 0 0 2px #f2c9b5; }
.lc-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-actions > .lc-btn { flex: 1 1 120px; }
.lc-panel > .lc-btn, .lc-panel form > .lc-btn, form.lc-panel > .lc-btn { width: 100%; margin-top: 12px; }
.lc-empty { padding: 22px 16px; text-align: center; border: 2px dashed var(--lc-line); border-radius: 18px; background: var(--lc-cream); }
.lc-toast { position: fixed; left: 50%; bottom: 84px; z-index: 9999; max-width: 90vw; padding: 10px 18px; border-radius: 12px; background: var(--lc-ink); color: #fff; font-size: 14px; font-weight: 600; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.lc-toast.is-up { transform: translate(-50%, 0); opacity: 1; }
/* tier pill */
.lc-tier { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--lc-ink); }
.lc-tier--bronze { background: linear-gradient(135deg, #e0a370, #b8723f); }
.lc-tier--silver { background: linear-gradient(135deg, #f2f4f7, #b3bbc4); }
.lc-tier--gold { background: linear-gradient(135deg, #fbe3a1, #d9a83a); }
.lc-tier--legend { background: linear-gradient(135deg, #a855f7, #3b0764); color: #fff3d6; }
/* maker */
.lc-maker { display: grid; gap: 14px; }
.lc-maker__card { text-align: center; }
.lc-canvas { display: block; width: 100%; max-width: 230px; height: auto; aspect-ratio: 300 / 420; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(28, 27, 34, .25)); }
.lc-maker__line { margin: 10px 0 0; font-size: 13px; color: var(--lc-mute); }
.lc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--lc-cream); }
.lc-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 700; color: var(--lc-mute); }
.lc-seg button.is-on { background: var(--lc-em); color: #fff; }
.lc-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.lc-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lc-line); padding: 0; }
.lc-swatches button.is-on { box-shadow: 0 0 0 3px var(--lc-em); }
.lc-sliders { display: grid; gap: 4px; }
.lc-slider { display: grid !important; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 8px; min-height: 40px; }
.lc-slider span { font-size: 13px; color: var(--lc-mute); font-weight: 500; letter-spacing: 0; }
.lc-slider span b { display: inline-block; width: 34px; color: var(--lc-ink); }
.lc-slider output { font-weight: 700; font-size: 16px; text-align: right; color: var(--lc-ink); }
.lc-slider--wide { grid-template-columns: 70px 1fr 34px; }
.lc-app input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; accent-color: var(--lc-em); }
.lc-app input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e0a370, #d9a83a, #0e7c66); }
.lc-app input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--lc-em); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.lc-app input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e0a370, #d9a83a, #0e7c66); }
.lc-app input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--lc-em); }
/* squad */
.lc-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: var(--lc-ink); }
.lc-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: none; color: #d9d6cc; font-weight: 700; font-size: 14px; }
.lc-tabs button.is-on { background: var(--lc-gold-lt); color: var(--lc-ink); }
.lc-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.lc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lc-row { margin: 0; border-radius: 16px; background: #fff; border: 1px solid var(--lc-line); overflow: hidden; }
.lc-row.is-open { border-color: var(--lc-em); }
.lc-row__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border: 0; background: none; text-align: left; }
.lc-mini { width: 46px; height: 64px; flex: none; }
.lc-row__txt { flex: 1; min-width: 0; }
.lc-row__txt b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-row__txt small { color: var(--lc-mute); font-size: 12px; }
.lc-row__txt em { color: var(--lc-em); font-style: normal; font-weight: 700; }
.lc-detail { padding: 4px 12px 14px; border-top: 1px solid var(--lc-line); }
.lc-detail .lc-canvas { margin: 12px auto; }
.lc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.lc-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lc-mute); padding: 6px 4px; border-bottom: 2px solid var(--lc-line); }
.lc-table td { padding: 7px 4px; border-bottom: 1px solid var(--lc-line); }
.lc-table tr.is-best td { background: #e6f4f0; }
.lc-table--pos td:last-child { font-size: 12px; color: var(--lc-mute); }
.lc-flag { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #fde9dd; color: var(--lc-red); font-size: 11px; font-weight: 700; }
.lc-mrows { display: grid; gap: 6px; }
.lc-mrow { margin: 0; padding: 6px 10px 8px; border: 1px solid var(--lc-line); border-radius: 12px; min-width: 0; }
.lc-mrow legend { padding: 0 4px; }
.lc-mrow:has([data-played]:checked) { border-color: var(--lc-em); background: #f3faf8; }
.lc-check { display: inline-flex !important; align-items: center; gap: 6px; min-height: 36px; font-size: 14px !important; color: var(--lc-ink) !important; font-weight: 600 !important; }
.lc-check input { width: 20px; height: 20px; accent-color: var(--lc-em); margin: 0; }
.lc-check small { color: var(--lc-mute); font-weight: 500; }
.lc-mrow__nums { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; }
.lc-num span { display: flex; align-items: center; margin-top: 2px; }
.lc-num button { width: 32px; height: 36px; border: 1px solid var(--lc-line); background: var(--lc-cream); font-weight: 700; }
.lc-num button:first-child { border-radius: 8px 0 0 8px; }
.lc-num button:last-child { border-radius: 0 8px 8px 0; }
.lc-app .lc-num input { width: 40px !important; min-height: 36px !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; border-width: 1px 0 !important; text-align: center; -moz-appearance: textfield; }
.lc-num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lc-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lc-hist li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--lc-line); }
.lc-hist li > span:nth-child(2) { flex: 1; }
.lc-hist small { display: block; color: var(--lc-mute); font-size: 12px; }
.lc-res { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.lc-res--W { background: var(--lc-em); } .lc-res--D { background: #9aa3ae; } .lc-res--L { background: var(--lc-red); }
.lc-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--lc-cream); color: var(--lc-mute); }
.lc-season { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.lc-season div { padding: 10px 6px; border-radius: 14px; background: var(--lc-ink); color: #fff; text-align: center; }
.lc-season b { display: block; font-size: 22px; color: var(--lc-gold-lt); }
.lc-season small { font-size: 11px; color: #cfcbbf; }
.lc-awards { display: grid; gap: 8px; }
.lc-award { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fffaf0, #fbe9bf); border: 1px solid #ecd59a; }
.lc-award.is-empty { background: #fff; border-color: var(--lc-line); opacity: .7; }
.lc-award__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lc-ink); color: var(--lc-gold-lt); font-size: 20px; }
.lc-award small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lc-mute); }
.lc-award b { display: block; font-size: 16px; }
.lc-award em { font-style: normal; font-size: 12px; color: var(--lc-em); font-weight: 700; }
.lc-code { font-family: ui-monospace, monospace !important; font-size: 12px !important; }
/* tiers, overall, quiz */
.lc-verdict { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: #e6f4f0; font-size: 15px; }
.lc-verdict--hot { background: #fde9dd; } .lc-verdict--cold { background: #e7ecf3; }
.lc-tierbox { display: grid; gap: 14px; }
.lc-ladder { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.lc-ladder li { display: block; margin: 0; padding: 8px 12px; border-radius: 10px; font-weight: 500; opacity: .55; }
.lc-ladder li.is-now { opacity: 1; box-shadow: 0 0 0 3px var(--lc-ink); }
.lc-prog { height: 8px; border-radius: 4px; background: var(--lc-cream); overflow: hidden; margin: 6px 0; }
.lc-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--lc-em), var(--lc-gold)); transition: width .3s; }
.lc-q { font-size: 22px; line-height: 1.2; margin: 10px 0 12px; }
.lc-opts { display: grid; gap: 8px; }
.lc-opt { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--lc-line); border-radius: 12px; background: #fff; text-align: left; font-weight: 600; }
.lc-opt.is-right { border-color: var(--lc-em); background: #e6f4f0; }
.lc-opt.is-wrong { border-color: var(--lc-red); background: #fde9dd; }
.lc-opt:disabled { cursor: default; color: var(--lc-ink); }
.lc-result, .lc-pass { text-align: center; }
.lc-big { margin: 6px 0; font-size: 52px; line-height: 1; font-weight: 700; color: var(--lc-em); }
/* drills, form */
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-chips button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--lc-line); border-radius: 999px; background: #fff; font-weight: 700; }
.lc-chips button.is-on { background: var(--lc-ink); border-color: var(--lc-ink); color: var(--lc-gold-lt); }
.lc-chips small { color: var(--lc-em); }
.lc-drills { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.lc-drills li { margin: 0; border: 1px solid var(--lc-line); border-radius: 14px; background: #fff; }
.lc-drills li.is-done { background: #f3faf8; border-color: var(--lc-em); }
.lc-drills label { display: flex !important; gap: 10px; padding: 10px 12px; align-items: flex-start; color: var(--lc-ink) !important; font-weight: 500 !important; font-size: 14px !important; }
.lc-drills input { width: 22px; height: 22px; accent-color: var(--lc-em); margin: 2px 0 0; flex: none; }
.lc-drills b { display: block; font-size: 15px; }
.lc-drills small { color: var(--lc-mute); }
.lc-drills li.is-done b { text-decoration: line-through; text-decoration-color: var(--lc-em); }
.lc-five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lc-app .lc-five select { padding: 6px 2px; text-align: center; font-size: 15px; }
.lc-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 14px 0 0; padding: 0 4px; border-bottom: 2px solid var(--lc-line); }
.lc-bars i { position: relative; flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--lc-gold), var(--lc-em)); transition: height .25s; }
.lc-bars span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; font-style: normal; }
/* content blocks */
.lc-pic { margin: 0 0 18px; }
.lc-pic img { display: block; width: 100%; height: auto; border-radius: 18px; }
.lc-pic figcaption { margin-top: 6px; font-size: 13px; color: #66646f; text-align: center; }
.lc-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; }
.lc-facts div { padding: 12px; border-radius: 14px; background: #1c1b22; text-align: center; }
.lc-facts b { display: block; font-size: 30px; line-height: 1.1; color: #fbe3a1; }
.lc-facts span { font-size: 12px; color: #d9d6cc; }
.entry-content > table, .post-content > table { display: block; max-width: 100%; overflow-x: auto; }
@media (min-width: 640px) {
  .lc-maker, .lc-tierbox { grid-template-columns: 240px 1fr; align-items: start; }
  .lc-facts { grid-template-columns: repeat(4, 1fr); }
  .lc-awards { grid-template-columns: 1fr 1fr; }
}
/* neutralise the theme's flex tables inside the app */
.lc-app table.lc-table { display: table; width: 100%; min-width: 0; margin: 8px 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.lc-app .lc-table tbody tr { display: table-row; min-height: 0; background: none; outline: 0; }
.lc-app .lc-table tbody tr:hover { background: none; }
.lc-app .lc-table td, .lc-app .lc-table th { display: table-cell; width: auto; min-height: 0; padding: 7px 4px; vertical-align: middle; }
.lc-app .lc-table tr.is-best td { background: #e6f4f0; }
