*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#11152a;color:#e8ecff;font-family:system-ui,-apple-system,sans-serif}main{max-width:1200px;margin:auto;padding:20px}button,a{touch-action:manipulation}button{font:inherit;color:#e8ecff;cursor:pointer;background:#292b49;border:2px solid #7164ad;padding:9px 14px;border-radius:3px}button:hover,button:focus-visible{border-color:#6de6d9}button[aria-pressed=true],button.active{background:#49376b;color:#f9dd79;border-color:#f9dd79}button:disabled{opacity:.6;cursor:default}a{color:#83e3df}nav{display:flex;align-items:center;justify-content:space-between;gap:12px}header{text-align:center;margin:28px 0}header small{letter-spacing:.2em;color:#81dbd9}h1{font-size:clamp(25px,5vw,48px);color:#f4d575;letter-spacing:.05em;text-shadow:3px 3px #963782;margin:12px 0}h2{color:#f4d575;font-size:clamp(18px,3vw,27px);margin:8px 0}p{line-height:1.55}.muted{color:#b2bfdc;font-size:13px}.stats{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}.stats span{padding:7px 11px;background:#20243c;border:1px solid #494b75}.panel{background:#1e223c;border:2px solid #5d518e;padding:16px;margin:16px 0}.badge-grid{display:flex;flex-wrap:wrap;gap:8px}.badge{border:1px solid #555a81;background:#242943;padding:8px 11px;font-size:13px;display:flex;gap:7px;align-items:center}.badge.locked{opacity:.5}.medal{font-size:22px;color:#e4bd67}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.work{padding:9px;text-align:left;min-width:0;display:flex;flex-direction:column;gap:6px;border:2px solid #4d487b;background:#1b2038}.work img{width:100%;height:135px;object-fit:contain;background:#111423;display:block}.work strong{font-size:15px;color:#f4d575}.work small{font-size:12px;color:#b4c6df}.work .marks{letter-spacing:2px;color:#f6d075;font-size:12px}.controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.controls button{min-height:44px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,220px);gap:15px;align-items:start}.board-wrap{display:flex;justify-content:center;align-items:center;min-width:0}.board{display:grid;width:100%;max-height:72vh;max-width:100%;border:3px solid #8063b6;background:#101522;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}.tile{padding:0!important;border:1px solid #11152a88!important;border-radius:0!important;min-width:0;min-height:0;display:block;background-repeat:no-repeat;position:relative;touch-action:none;cursor:grab}.tile.correct{box-shadow:inset 0 0 0 1px #69dcb950}.tile.selected{outline:3px solid #fce180;outline-offset:-3px;z-index:2}.tile.dragging{opacity:.65}.reference img{width:100%;max-height:300px;object-fit:contain;background:#121626}.reference{min-width:0}.reference p{margin:8px 0}.status{color:#8de8dc;min-height:1.5em;font-size:13px}.art-note{border:1px solid #a88c55;background:#2c2b39;padding:16px;margin-top:14px}.art-note img{max-width:100%;max-height:310px;object-fit:contain;display:block;margin:10px auto}.art-note h2{text-align:center}.win-title{font-size:27px;color:#f4d575;text-align:center}.source{font-size:12px;overflow-wrap:anywhere}.progressbar{height:8px;background:#11152a;margin:8px 0;overflow:hidden}.progressbar div{height:100%;background:#6ad7bf}.hide,[hidden]{display:none!important}@media(max-width:650px){main{padding:12px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.work img{height:110px}.game-layout{grid-template-columns:minmax(0,1fr)}.reference{display:grid;grid-template-columns:100px 1fr;gap:10px}.reference img{max-height:100px}.board{max-height:65vh}.stats{justify-content:flex-start}.panel{padding:10px}.controls button{font-size:13px;padding:8px}.badge{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}