*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#050816;color:#f9fafb}.app-container{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:1.5rem}.app-header{text-align:center;margin-bottom:2rem}.app-header h1{font-size:clamp(1.75rem,3vw,2.5rem);margin:0 0 .5rem}.app-subtitle{margin:0;color:#9ca3af;font-size:.95rem}.app-content{display:flex;flex-direction:row;gap:2rem;width:100%;max-width:1200px;align-items:flex-start;justify-content:center}.app-board-section{flex:0 0 auto}.app-sidebar{flex:0 0 280px;max-height:calc(100vh - 200px);overflow-y:auto}.app-placeholder{max-width:640px;width:100%;padding:1.25rem 1.5rem;border-radius:.75rem;background:radial-gradient(circle at top left,#0f172a,#020617);border:1px solid rgba(148,163,184,.35)}.app-placeholder p{margin:0;line-height:1.5;color:#e5e7eb}.chess-board-container{display:flex;flex-direction:column;align-items:center;gap:1rem}.chess-turn-indicator{font-size:1.125rem;font-weight:600;color:#e5e7eb;padding:.5rem 1rem;background:#94a3b81a;border-radius:.5rem;border:1px solid rgba(148,163,184,.2)}.chess-board{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);width:min(80vw,640px);aspect-ratio:1;border:2px solid rgba(148,163,184,.4);border-radius:.5rem;overflow:hidden}.chess-square{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .1s ease;position:relative}.chess-square.light{background-color:#f0d9b5}.chess-square.dark{background-color:#b58863}.chess-square:hover{background-color:#ffff004d}.chess-square.selected{background-color:#007bff80}.chess-square.dragging{opacity:.5}.chess-square.legal-move{position:relative}.chess-square.legal-move:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30%;height:30%;border-radius:50%;background-color:#00ff0080;pointer-events:none}.chess-square.legal-move-capture:before{width:100%;height:100%;border-radius:0;background-color:transparent;border:3px solid rgba(0,255,0,.6);box-sizing:border-box}.chess-piece{font-size:clamp(2rem,5vw,3rem);line-height:1;pointer-events:none}.move-list-container{background:radial-gradient(circle at top left,#0f172a,#020617);border:1px solid rgba(148,163,184,.35);border-radius:.75rem;padding:1.25rem 1.5rem}.move-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.75rem}.move-list-title{font-size:1.25rem;font-weight:600;margin:0;color:#e5e7eb}.move-list-actions{display:flex;gap:.5rem;flex-wrap:wrap}.move-list-button{padding:.5rem 1rem;font-size:.875rem;font-weight:500;border:1px solid rgba(148,163,184,.3);border-radius:.5rem;background:#94a3b81a;color:#e5e7eb;cursor:pointer;transition:all .2s ease;font-family:inherit}.move-list-button:hover{background:#94a3b833;border-color:#94a3b880}.move-list-button:active{background:#94a3b826}.move-list{list-style:none;padding:0;margin:0;font-family:Courier New,monospace;font-size:.95rem;line-height:1.8;color:#e5e7eb}.move-pair{display:flex;gap:.5rem;padding:.25rem 0;word-break:break-word}.move-number{color:#9ca3af;font-weight:600;min-width:2rem}.move-white,.move-black{padding:0 .25rem;border-radius:.25rem;transition:background-color .2s ease}.move-white:hover,.move-black:hover{background-color:#94a3b81a}.move-white{color:#f9fafb}.move-black{color:#d1d5db}@media(max-width:900px){.app-content{flex-direction:column;align-items:center}.app-sidebar{flex:1 1 auto;width:100%;max-width:640px;max-height:none}.move-list-container{width:100%}.move-list{font-size:.9rem;line-height:1.6}}@media(max-width:600px){.app-container{padding:1rem}.app-content{gap:1.5rem}.app-placeholder{padding:1rem 1.1rem}.chess-board{width:min(90vw,640px)}.chess-piece{font-size:clamp(1.5rem,4vw,2.5rem)}.move-list-container{padding:1rem 1.1rem}.move-list-header{flex-direction:column;align-items:flex-start}.move-list-title{font-size:1.125rem}.move-list-actions{width:100%}.move-list-button{flex:1;min-width:120px}.move-list{font-size:.85rem;line-height:1.5}.move-pair{gap:.375rem}.move-number{min-width:1.75rem}}.promotion-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.promotion-dialog{background:radial-gradient(circle at top left,#0f172a,#020617);border:1px solid rgba(148,163,184,.35);border-radius:.75rem;padding:1.5rem;display:flex;flex-direction:column;gap:1rem;min-width:280px;max-width:90vw}.promotion-dialog-title{font-size:1.25rem;font-weight:600;margin:0;color:#e5e7eb;text-align:center}.promotion-dialog-pieces{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.promotion-dialog-piece-button{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;border:1px solid rgba(148,163,184,.3);border-radius:.5rem;background:#94a3b81a;color:#e5e7eb;cursor:pointer;transition:all .2s ease;font-family:inherit}.promotion-dialog-piece-button:hover{background:#94a3b833;border-color:#94a3b880}.promotion-dialog-piece-button:active{background:#94a3b826}.promotion-dialog-piece-symbol{font-size:3rem;line-height:1}.promotion-dialog-piece-name{font-size:.875rem;font-weight:500;text-transform:capitalize}.promotion-dialog-cancel-button{padding:.75rem 1rem;font-size:.875rem;font-weight:500;border:1px solid rgba(148,163,184,.3);border-radius:.5rem;background:#94a3b81a;color:#e5e7eb;cursor:pointer;transition:all .2s ease;font-family:inherit}.promotion-dialog-cancel-button:hover{background:#94a3b833;border-color:#94a3b880}.promotion-dialog-cancel-button:active{background:#94a3b826}
