:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:dark}html,body{margin:0;padding:0;width:100%;overflow-y:hidden;overflow-x:hidden}#root{display:flex;justify-content:center;width:100%}*,*:before,*:after{box-sizing:border-box}body{min-height:auto;height:auto;background:radial-gradient(circle at center,#000 0 55%);color:#f5f5f5}.app,.app-inner{width:100%;max-width:960px;margin-left:auto;margin-right:auto}.app-main{display:flex;flex-direction:column;gap:16px}.puzzle-meta{background:#000000e6;border-radius:14px;margin-top:25px;padding:15px 20px;border:1px solid #ffffff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.puzzle-meta h2{margin:0 0 4px;font-size:1rem;text-transform:uppercase;letter-spacing:.12em;color:#fff}.puzzle-meta>:first-child{flex:1 1 100%;text-align:center;color:#fff}.category-name{margin:0;font-size:1.2rem;font-weight:600}.units{margin:0;color:#000;font-size:.85rem}.score-block{text-align:right}.score-text{font-weight:600}.score-feedback{font-size:.85rem;opacity:.9}.game-layout{display:flex;flex-direction:column;gap:16px;align-items:stretch}.top-bar{width:100%;max-width:960px;display:flex;justify-content:center}.check-button{padding:8px 14px;border-radius:8px;border:1px solid #ffffff;background:#000;color:#fff;cursor:pointer;font-size:.9rem}.check-button:disabled{background:#000;color:#fff;cursor:not-allowed}.tier-board{width:100%;background:#fffffff2;border-radius:14px;border:1px solid #000000;overflow:hidden;box-shadow:0 18px 40px #0009}.tier-row{display:grid;grid-template-columns:120px minmax(0,1fr);min-height:80px;border-bottom:1px solid #000000;align-items:center;position:relative}.tier-row:last-child{border-bottom:none}.tier-label{grid-column:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 4px;font-weight:800;font-size:1.1rem;text-shadow:0 1px 2px rgba(0,0,0,.6)}.tier-s{background:#ff4b4b}.tier-a{background:#ff9248}.tier-b{background:#ffd74a;color:#fff}.tier-c{background:#65d96b;color:#fff}.tier-d{background:#4ab0ff}.tier-label-text{line-height:1;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}.tier-label-range{font-size:.7rem;margin-top:2px;opacity:.9}.tier-content{grid-column:2;padding:4px 12px 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}.tier-empty{font-size:.8rem;opacity:.6}.tier-item-pill{padding:4px 8px;border-radius:999px;background:#fff;border:1px solid #000000;font-size:.8rem}.items-pool{width:100%;background:#000000e6;border-radius:14px;border:1px solid #ffffff}.items-hint{margin:4px 0 10px;font-size:.85rem;color:#fff}.items-list{list-style:none;padding:8px 8px 12px 12px;margin:0;display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden}.items-list-entry{flex:0 0 120px;display:flex;flex-direction:column;align-items:center}.item-chip{-webkit-user-select:none;overflow:visible;text-overflow:initial;display:inline-flex;align-items:center;gap:8px;background:#000;border-radius:999px;padding:6px 10px;border:1px solid #ffffff;font-size:.95rem;user-select:none;white-space:nowrap;position:relative}.item-drag-handle{cursor:grab;border:none;background:transparent;padding:0 4px;font-size:1.1rem;line-height:1;color:#000;touch-action:none}.item-drag-handle:active{cursor:grabbing}.item-chip-placed{opacity:.4;cursor:default}.item-chip-label{overflow:hidden;text-overflow:ellipsis}.item-chip-overlay{position:fixed;z-index:999999;pointer-events:none}.item-chip-wrapper{display:block}.item-chip-wrapper-active .item-chip{box-shadow:inset 0 0 0 2px #000}.item-tier-buttons{margin-top:4px;display:flex;flex-wrap:nowrap;gap:4px;justify-content:center}.tier-btn{font-size:.75rem;padding:4px 8px;border-radius:4px;border:1px solid #000000;background:#000;color:#fff;cursor:pointer}.tier-btn-active{background:#000;border-color:#000}.item-selected{margin-top:4px;font-size:.8rem;opacity:.8}.item-result{margin-top:4px;font-size:.8rem;font-weight:600}.item-result.correct{color:#6fe96f}.item-result.incorrect{color:#ff6b6b}.item-placed .item-chip{opacity:.5}@media(max-width:480px){body{padding-top:0;padding-bottom:0}.app{padding:0 8px}.puzzle-meta{padding:10px 12px;gap:6px}.score-block{text-align:center;width:100%}.tier-row{grid-template-columns:72px minmax(0,1fr)}.items-list{margin:0;padding:8px 4px 0;display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.items-list-entry{flex:0 0 70%;max-width:260px;display:flex;flex-direction:column;align-items:stretch}.item-chip{font-size:.85rem;padding:7px 8px}.item-tier-buttons{justify-content:center}.check-button{font-size:.85rem;padding:8px 10px}.tier-label{font-size:.9rem;padding:4px 2px}.tier-content{padding:6px 8px;gap:4px}.item-chip-wrapper{margin:1px 2px}.tier-stats{font-size:.8rem}.items-pool{padding:0}.tier-label-range{font-size:.65rem}}@media(min-width:900px){.app{max-width:1600px;padding:30px 40px}body{font-size:22px}.tier-row{min-height:160px}.items-pool{padding:0}.tier-label{font-size:2rem;padding:20px 10px}.tier-content{padding:20px 28px;gap:16px}.item-chip{font-size:1.5rem;padding:0 15px;border-radius:999px}.tier-btn{font-size:1.2rem;padding:14px 18px;border-radius:8px}.check-button{font-size:1.5rem;padding:10px 30px;border-radius:12px}.puzzle-meta{padding:10px 48px;gap:28px}.puzzle-meta h2{font-size:1.6rem}.category-name{font-size:2rem}.results-modal{max-width:800px;padding:40px 48px}}.results-panel{margin-top:16px;background:#000000e6;border-radius:14px;border:1px solid #000000;padding:16px 18px 20px}.results-panel h3{margin:0 0 6px}.results-panel p{margin:0 0 10px;font-weight:600}.results-tiers{display:flex;flex-wrap:wrap;gap:12px;font-size:.9rem}.results-tier-block{flex:1 1 150px;min-width:150px}.results-tier-block h4{margin:0 0 4px;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#fff}.results-tier-block ul{list-style:none;margin:0;padding-left:0}.results-tier-block li{margin-bottom:2px}.results-backdrop{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}.results-modal{position:relative;background:#000000e6;border-radius:16px;border:1px solid #000000;padding:20px 22px 22px;max-width:520px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 24px 60px #000000bf}.results-modal h3{margin:0 0 8px}.results-modal p{margin:0 0 12px;font-weight:600}.results-close{position:absolute;top:12px;right:12px;background:transparent;border:none;color:#fff;font-size:1.4rem;cursor:pointer;opacity:.8}.results-close:hover{opacity:1}.tier-stats{position:absolute;top:4px;left:50%;transform:translate(-50%);width:100%;text-align:center;font-size:1.3rem;font-weight:700;margin:0;opacity:1;pointer-events:none;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}@media(max-width:768px){.tier-row .tier-stats{font-size:.8rem!important;line-height:1.1!important}.tier-row{min-height:80px;position:relative}.tier-content{padding-top:28px;align-items:flex-start}.tier-stats{top:4px}}.items-list-entry{flex:0 0 auto!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important}.item-chip{display:inline-block!important;width:auto!important;max-width:none!important;padding:4px 8px!important;font-size:.85rem!important;white-space:nowrap!important;text-align:center!important}.item-drag-overlay{position:absolute;inset:0;background:transparent;border:none;padding:0;margin:0;cursor:grab;touch-action:none}.item-drag-overlay:active{cursor:grabbing}.item-drag-overlay.chip-locked,.item-drag-overlay.chip-locked:active{cursor:default!important}.result-check{color:#22c55e!important;font-weight:700}.result-x{color:#ef4444!important;font-weight:700}.pool-scroll-controls{display:flex;align-items:center;justify-content:center;gap:10px}.pool-scroll-button{border:none;padding:5px 10px;border-radius:999px;background:#ffffff29;color:#f5f5f5;font-size:13px;cursor:pointer}.pool-scroll-button:active{transform:scale(.96)}.pool-scroll-track{position:relative;width:100%;max-width:280px;height:20px;border-radius:999px;background:#ffffff2e;overflow:hidden}.pool-scroll-knob{position:absolute;top:50%;transform:translateY(-50%);width:25%;min-width:40px;height:18px;border-radius:999px;background:#7c5fba;box-shadow:0 0 4px #0006;cursor:grab}.top-bar{display:grid;grid-template-columns:25% 50% 25%;align-items:center;width:100%}.topbar-left{display:flex;justify-content:flex-start;padding-left:8px}.topbar-center{display:flex;justify-content:center}.topbar-right{display:flex;justify-content:flex-end;padding-right:8px}.attempt-hearts{display:flex;gap:0px;padding-left:3px}.heart{font-size:30px;line-height:1}.heart-active{color:#f97373;text-shadow:0 0 4px rgba(0,0,0,.4)}.heart-used{color:#4b5563;opacity:.6}.progress-tracker{display:flex;align-items:center;font-size:30px;gap:3px;justify-content:flex-end;padding-right:15px}.progress-correct{color:#4ade80;font-weight:700}.progress-zero{color:#fff;font-weight:700}.progress-total{color:#e5e7eb;font-weight:700}html,body{height:100%;padding:0;margin:0}#root{min-height:100%;display:flex;flex-direction:column}.app,.app-main{flex:1;display:flex;flex-direction:column}
