@font-face{font-family:'LP Nunito';src:url('../../public/fonts/nunito-latin.woff2') format('woff2');font-style:normal;font-weight:400 900;font-display:swap}
:root{color-scheme:light;--cc-ink:#30283e;--cc-purple:#7046da;--cc-muted:#756f7e;--cc-line:#e5e0d9;--cc-paper:#fcfaf5}
*{box-sizing:border-box}
body{margin:0;background:var(--cc-paper);color:var(--cc-ink);font:16px/1.5 'LP Nunito','Trebuchet MS',sans-serif}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.4}
button:focus-visible,a:focus-visible{outline:3px solid var(--cc-purple);outline-offset:4px}
button{transition:background .15s,transform .15s}
button:not(:disabled):active{transform:translateY(1px)}
h1,h2,p{margin:0}
.cc-shell{width:min(1240px,100%);margin:auto;padding:0 40px}
.cc-nav{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--cc-line)}
.cc-brand{display:flex;align-items:center;text-decoration:none;color:var(--cc-ink);font-weight:900;font-size:28px;letter-spacing:-1.3px}
.cc-brand>span:last-child{color:var(--cc-purple)}
.cc-brandmark{display:grid;place-items:center;width:34px;height:34px;background:var(--cc-purple);color:white;border:1.5px solid var(--cc-ink);border-radius:10px;margin-right:12px;transform:rotate(-9deg);font-size:25px;box-shadow:2px 2px 0 var(--cc-ink)}
.cc-back{font-size:13px;color:var(--cc-muted);text-decoration:none;font-weight:800;padding:12px 0}
.cc-back:hover{color:var(--cc-purple)}
.cc-intro{display:flex;justify-content:space-between;align-items:center;padding:22px 0 20px;gap:20px}
.cc-eyebrow{font-size:10px;font-weight:900;color:#5c8377;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:5px}
h1{font-size:43px;line-height:1.15;letter-spacing:-1.8px;font-weight:900}
.cc-subtitle{font-size:14px;color:var(--cc-muted);margin-top:7px}
.cc-progress{display:grid;grid-template-columns:36px auto;align-items:center;column-gap:12px;padding:12px 20px;border-radius:16px;background:#f0ebf8;transform:rotate(2deg);flex-shrink:0}
.cc-progress-star{grid-row:span 2;color:var(--cc-purple);font-size:38px;line-height:1}
.cc-progress strong{font-size:21px;line-height:1.2;font-weight:900}
.cc-progress>span:last-child{font-size:11px;color:var(--cc-muted)}
.cc-challengebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.cc-challenge-nav,.cc-challenge-links{display:flex;align-items:center;gap:9px}
.cc-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #c7becf;border-radius:10px;padding:9px 14px;background:white;font-size:12px;font-weight:900;white-space:nowrap}
.cc-button:hover:not(:disabled){background:#f1edf9}
.cc-arrow{width:42px;font-size:20px;background:transparent;border-color:var(--cc-line)}
.cc-current{display:flex;align-items:center;gap:12px;padding:0 8px}
.cc-current>strong{font-size:19px;font-weight:900}
.cc-level{font-size:10px;font-weight:900;border-radius:20px;background:#e3efd3;padding:4px 10px;color:#4b6840}
.cc-level--1{background:#dcedf8;color:#386c90}.cc-level--2{background:#f9e2c6;color:#8b5928}.cc-level--3{background:#ecdef7;color:#7b4999}
.cc-subtle{background:transparent;border-color:transparent;color:#6d637d}
.cc-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;grid-template-areas:'work side' 'palette side';align-items:start;gap:24px}
.cc-workspace{grid-area:work;min-width:0}
.cc-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.cc-board{position:relative;border-radius:20px;padding:15px 24px 12px;text-align:center;border:1px solid #d7cce5;background:#eee7f8}
.cc-board--yours{background:#e3f0e9;border-color:#bdd9ce}
.cc-board h2{font-size:13px;letter-spacing:.15px;margin-bottom:12px;font-weight:900}
.cc-tray{position:relative;width:100%;max-width:214px;margin:auto;background:white;border:1.5px solid #4e445c;border-radius:5px;box-shadow:4px 5px 0 #c6b8d9;aspect-ratio:1;overflow:hidden}
.cc-board--yours .cc-tray{box-shadow:4px 5px 0 #b6d2c2}
.cc-drawing{display:block;width:100%;height:100%}
.cc-board-note{font-size:10px;color:#736b7e;margin-top:12px}
.cc-empty-board{position:absolute;inset:0;display:grid;place-items:center;color:#9ba9a1;font-size:12px;font-weight:800}
.cc-controls{border:1px solid var(--cc-line);border-radius:14px;margin-top:17px;padding:9px 12px;background:white;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:65px}
.cc-selected{display:flex;align-items:center;gap:9px;font-size:11px;min-height:36px;color:var(--cc-muted)}
.cc-selected .cc-mini{width:31px;height:31px;border:1px solid #a8b0b2;border-radius:4px}
.cc-selected strong{color:var(--cc-ink)}
.cc-selected>span:last-child:not(:first-child){font-size:10px;font-weight:800}
.cc-actions{display:flex;gap:5px;flex-wrap:wrap}
.cc-actions .cc-button{font-size:11px;padding:7px 9px;border-color:#e1d9e9;min-height:44px}
.cc-actions .cc-turn{background:#eee5fd;color:#623ab8;border-color:#c8b5eb}
.cc-result{font-size:12px;min-height:40px;padding:12px 0 0;color:var(--cc-muted)}
.cc-result.is-won{padding:17px 19px;border:1px solid #b4d099;border-radius:14px;background:#eef4d7;color:#4b6634;display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:14px;animation:cc-pop .25s ease-out}
.cc-result strong{font-size:14px;display:block}
.cc-result p{font-size:11px;margin-top:3px}
.cc-primary{background:var(--cc-purple);color:white;border:1.5px solid var(--cc-ink);box-shadow:2px 3px 0 var(--cc-ink)}
.cc-primary:hover:not(:disabled){background:#6136c9}
.cc-palette{grid-area:palette;min-width:0;background:white;border:1px solid var(--cc-line);border-radius:18px;padding:20px}
.cc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cc-panel-head h2{font-size:17px;letter-spacing:-.4px;font-weight:900}
.cc-count{font-size:10px;color:var(--cc-muted);font-weight:800;white-space:nowrap}
.cc-muted{font-size:11px;color:var(--cc-muted);margin-top:4px}
.cc-bank{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;margin-top:17px}
.cc-tile{position:relative;display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;padding:7px 7px 20px;border:1px solid #bbc7ca;border-radius:9px;background:#f7fafb;overflow:hidden;box-shadow:1px 2px 0 #e0e5e7}
.cc-tile .cc-mini{display:block;width:100%;max-width:50px;height:auto;aspect-ratio:1;border-radius:2px}
.cc-tile-letter{position:absolute;bottom:2px;left:8px;font-size:10px;font-weight:900;line-height:17px}
.cc-tile-state{position:absolute;bottom:2px;right:7px;font-size:12px;font-weight:900;line-height:17px;color:#7f8792}
.cc-tile:hover:not(:disabled){background:#f2ebff;border-color:var(--cc-purple);transform:translateY(-2px)}
.cc-tile.is-used{opacity:.34;box-shadow:none}
.cc-tile.is-hint{outline:3px solid #d6ae36;outline-offset:1px}
.cc-sidebar{grid-area:side;display:grid;gap:18px}
.cc-stack-panel{padding:20px 18px 13px;border:1px solid var(--cc-line);background:white;border-radius:18px}
.cc-stack-panel .cc-count{display:grid;place-items:center;background:#f0ebf8;color:var(--cc-purple);width:25px;height:25px;border-radius:50%}
.cc-stack-list{list-style:none;margin:16px 0 4px;padding:0;display:grid;gap:7px;max-height:432px;overflow:auto;padding-right:3px}
.cc-stack-item{width:100%;padding:7px;justify-content:flex-start;text-align:left;border-color:#e8e2ec;border-radius:10px;gap:10px}
.cc-stack-item.is-selected{background:#f1eafa;border:1.5px solid #a68bd2;padding:6.5px}
.cc-stack-item .cc-mini{width:42px;height:42px;flex-shrink:0;border:1px solid #b7b8c0;border-radius:3px}
.cc-stack-label{display:flex;flex-direction:column;gap:2px}
.cc-stack-label strong{font-size:12px}
.cc-stack-label small{font-size:9px;color:var(--cc-muted);font-weight:600}
.cc-angle{font-size:10px;margin-left:auto;color:var(--cc-muted)}
.cc-stack-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 15px 27px;text-align:center;min-height:210px}
.cc-stack-empty>span{font-size:59px;line-height:1;color:#c4b5da;margin-bottom:12px;transform:rotate(-12deg)}
.cc-stack-empty strong{font-size:12px;max-width:165px}
.cc-stack-empty p{font-size:11px;color:var(--cc-muted);margin-top:6px;max-width:175px}
.cc-history{display:flex;justify-content:space-between;border-top:1px solid #eee9f0;margin-top:16px;padding-top:6px;gap:3px}
.cc-history .cc-button{padding:8px 5px;font-size:11px}
.cc-help{position:relative;padding:22px;background:#f6eed6;border-radius:18px;overflow:hidden}
.cc-help-star{position:absolute;top:4px;right:10px;font-size:42px;color:#d1b765;transform:rotate(13deg)}
.cc-help h2{font-size:15px;font-weight:900;max-width:165px;position:relative}
.cc-help p{font-size:12px;color:#857551;margin:9px 0 15px;max-width:210px}
.cc-help .cc-button{width:100%}
.cc-hint{background:#fffaf0;border-color:#c8b77e;color:#796132}
.cc-help .cc-subtle{font-size:11px;color:#847353;margin-top:4px}
.cc-save-note{font-size:10px;text-align:center;color:#8b8491;padding:25px 0 20px}
.cc-footer{border-top:1px solid var(--cc-line);padding:20px 0 25px;text-align:center;font-size:10px;color:#98919c}
.cc-loading{padding:40px;text-align:center}
.cc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cc-dialog{border:1.5px solid var(--cc-ink);border-radius:22px;background:var(--cc-paper);color:var(--cc-ink);padding:25px;width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:7px 8px 0 #30283e33}
.cc-dialog::backdrop{background:#29223680;backdrop-filter:blur(4px)}
.cc-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.cc-dialog h2{font-size:23px;letter-spacing:-.7px;font-weight:900}
.cc-close{font-size:16px;flex-shrink:0;width:44px;padding:8px;background:white}
.cc-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.cc-levels .cc-button{font-size:11px;padding:8px 5px}
.cc-levels .is-active{background:var(--cc-purple);color:white;border-color:var(--cc-purple)}
.cc-challenges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:18px}
.cc-challenge{position:relative;min-width:0;min-height:56px;padding-inline:4px;font-size:18px;background:white;border-color:var(--cc-line)}
.cc-challenge.is-current{border:2px solid var(--cc-purple)}
.cc-challenge.is-done{background:#e5eed6;color:#527139}
.cc-challenge span{position:absolute;top:3px;right:7px;font-size:11px}
.cc-rules ol{padding-left:22px;margin:0}
.cc-rules li{padding-left:4px;margin:17px 0;font-size:14px}
.cc-rules li::marker{color:var(--cc-purple);font-weight:900}
.cc-rules li p{font-size:13px;color:var(--cc-muted);margin-top:4px}
.cc-tip{padding:15px;background:#f3ebd5;border-radius:12px;font-size:12px;color:#7d6943;margin-top:18px}
.cc-rules>.cc-muted{margin-top:18px;font-size:11px}
.cc-solution-list{list-style:none;padding:0;display:grid;gap:10px;margin:20px 0}
.cc-solution-list li{display:flex;align-items:center;gap:15px;padding:10px;background:white;border:1px solid var(--cc-line);border-radius:12px}
.cc-solution-list b{color:var(--cc-purple);width:20px;text-align:center}
.cc-solution-list .cc-mini{width:60px;height:60px;border:1px solid #bbc7ca;border-radius:4px}
.cc-solution-list span{font-size:14px;font-weight:800}
.cc-solution-list small{margin-left:auto;color:var(--cc-muted);font-size:12px}
@keyframes cc-pop{from{transform:translateY(5px);opacity:.3}to{transform:none;opacity:1}}
@media(max-width:1100px){.cc-shell{padding:0 28px}.cc-layout{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.cc-board{padding:14px 18px 12px}.cc-comparison{gap:14px}.cc-bank{grid-template-columns:repeat(6,minmax(0,1fr))}.cc-controls{justify-content:center}.cc-selected{justify-content:center}.cc-actions{width:100%;justify-content:center}.cc-palette{padding:17px}.cc-stack-panel{padding:17px 14px 10px}}
@media(max-width:760px){.cc-shell{padding:0 20px}.cc-nav{height:72px}.cc-brand{font-size:25px}.cc-back{font-size:11px}.cc-intro{padding:25px 0 20px;gap:12px}h1{font-size:35px}.cc-eyebrow{font-size:8px;letter-spacing:1px}.cc-subtitle{font-size:12px;max-width:240px}.cc-progress{padding:10px 12px;grid-template-columns:22px auto;column-gap:7px}.cc-progress-star{font-size:25px}.cc-progress strong{font-size:17px}.cc-progress>span:last-child{font-size:9px}.cc-layout{grid-template-columns:1fr;grid-template-areas:'work' 'palette' 'side';gap:20px}.cc-sidebar{grid-template-columns:1fr 1fr;align-items:start}.cc-challengebar{margin-bottom:17px}.cc-current{gap:8px;padding:0 4px}.cc-current>strong{font-size:17px}.cc-challenge-links{gap:0}.cc-challenge-links .cc-button{font-size:11px;padding:9px 7px}.cc-challenge-links .cc-button:last-child{display:inline-flex;font-size:0;width:44px;min-width:44px}.cc-challenge-links .cc-button:last-child::after{content:"?";font-size:16px}.cc-controls{justify-content:space-between}.cc-actions{width:auto}.cc-bank{grid-template-columns:repeat(9,minmax(0,1fr))}.cc-tile{padding:5px 5px 20px}.cc-help{padding:20px}.cc-board{padding:14px 22px 12px}.cc-tray{max-width:260px}}
@media(max-width:520px){.cc-shell{padding:0 16px}.cc-intro{position:relative;padding:25px 0 17px}.cc-progress{transform:none;display:flex;gap:5px;position:absolute;right:0;bottom:18px;padding:5px 8px;border-radius:8px}.cc-progress-star{font-size:16px}.cc-progress strong{font-size:11px}.cc-progress>span:last-child{display:none}.cc-subtitle{font-size:11px;max-width:235px;margin-top:8px}h1{font-size:35px}.cc-challengebar{gap:6px;flex-wrap:wrap}.cc-challenge-nav{gap:5px}.cc-current{gap:6px}.cc-current>strong{font-size:16px;white-space:nowrap}.cc-level{font-size:9px;padding:3px 7px}.cc-arrow{width:44px;min-width:44px;min-height:44px;padding:7px}.cc-challenge-links .cc-button{font-size:10px;padding:7px 3px;white-space:normal;max-width:70px}.cc-comparison{gap:12px}.cc-board{padding:11px 11px 9px;border-radius:14px}.cc-board h2{font-size:12px;margin-bottom:10px}.cc-tray{box-shadow:2px 3px 0 #c6b8d9}.cc-board--yours .cc-tray{box-shadow:2px 3px 0 #b6d2c2}.cc-board-note{font-size:8px;margin-top:8px}.cc-empty-board{font-size:10px}.cc-controls{padding:8px;margin-top:12px;gap:6px;justify-content:center}.cc-selected{font-size:10px;min-height:31px}.cc-actions{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.cc-actions .cc-button{padding:7px 3px;font-size:10px;min-height:44px}.cc-result{font-size:11px;min-height:44px}.cc-result.is-won{flex-direction:column;text-align:center;padding:15px}.cc-palette{padding:16px 13px}.cc-panel-head h2{font-size:16px}.cc-count{font-size:9px}.cc-bank{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:13px}.cc-tile{padding:5px 5px 18px;border-radius:7px}.cc-tile-letter{font-size:9px;left:6px;bottom:1px}.cc-tile-state{right:5px;bottom:1px;font-size:10px}.cc-sidebar{grid-template-columns:1fr;gap:16px}.cc-stack-panel{padding:18px 16px 10px}.cc-stack-empty{min-height:120px;padding:12px;flex-direction:row;gap:15px;flex-wrap:wrap}.cc-stack-empty>span{font-size:38px;margin:0}.cc-stack-empty p{display:none}.cc-help h2{max-width:none}.cc-help p{max-width:none;margin-right:20px}.cc-help{padding:19px}.cc-help .cc-button{width:auto;padding-inline:18px}.cc-help .cc-subtle{margin-left:5px}.cc-save-note{font-size:9px;max-width:290px;margin:auto}.cc-footer{font-size:9px}.cc-dialog{padding:19px}.cc-dialog h2{font-size:21px}.cc-challenges{gap:7px}.cc-levels .cc-button{font-size:10px}.cc-solution-list li{gap:10px}.cc-solution-list span{font-size:12px}.cc-solution-list .cc-mini{width:48px;height:48px}}
@media(max-width:360px){.cc-shell{padding:0 12px}.cc-progress{bottom:auto;top:30px;padding:4px 6px}.cc-progress-star{display:none}.cc-subtitle{max-width:100%}.cc-bank{gap:7px;grid-template-columns:repeat(5,minmax(0,1fr))}.cc-challenge-links{margin-left:auto}.cc-board-note{font-size:7px}.cc-current{gap:4px}.cc-current>strong{font-size:14px}.cc-level{font-size:8px;padding:3px 5px}.cc-actions .cc-button{font-size:9px}.cc-help .cc-button{padding-inline:13px}}
@media(max-width:760px){.cc-challengebar{flex-wrap:wrap}.cc-challenge-links .cc-button:last-child{font-size:11px;width:auto;min-width:44px}.cc-challenge-links .cc-button:last-child::after{content:none}}
@media(max-width:520px){.cc-challengebar{display:grid;grid-template-columns:1fr;gap:4px}.cc-challenge-nav{justify-content:space-between}.cc-challenge-links{justify-content:space-between;width:100%;margin:0}.cc-challenge-links .cc-button{font-size:11px;max-width:none;white-space:nowrap;padding:7px 8px}.cc-challenge-links .cc-button:last-child{font-size:11px}}
@media(max-width:360px){.cc-challenges{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
