@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}:root{--bg: #262421;--surface: #312e2b;--surface-2: #3d3a37;--surface-3: #4a4744;--green: #81b64c;--green-hover: #93cc5a;--text: #e8e0d5;--text-2: #b0a898;--text-muted: #6e6864;--border: #4a4744;--gold: #f6f669;--r-sm: 6px;--r-md: 10px;--r-lg: 16px}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.app{min-height:100%;display:flex;flex-direction:column}.header{height:52px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 1.25rem;flex-shrink:0}.header-logo{display:flex;align-items:center;gap:.4rem;font-size:1.05rem;font-weight:700;letter-spacing:-.02em;color:var(--text)}.header-logo-icon{font-size:1.3rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem 1.1rem;border-radius:var(--r-sm);font-family:inherit;font-size:.875rem;font-weight:600;cursor:pointer;border:none;outline:none;transition:background .13s,opacity .13s,transform .1s;-webkit-user-select:none;user-select:none;white-space:nowrap}.btn:active{transform:scale(.97)}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:var(--green-hover)}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--surface-3)}.btn-ghost{background:transparent;color:var(--text-2);border:1px solid var(--border)}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn-toggle{background:var(--surface-2);color:var(--text-2);border:2px solid transparent}.btn-toggle:hover{background:var(--surface-3);color:var(--text)}.btn-toggle.active{border-color:var(--green);color:var(--text);background:var(--surface-3)}.mode-page{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1rem;gap:2.5rem}.mode-hero{text-align:center}.mode-hero h1{font-size:2rem;font-weight:700;letter-spacing:-.03em;margin-bottom:.35rem}.mode-hero p{color:var(--text-2);font-size:.9rem}.mode-cards{display:flex;gap:1.25rem;flex-wrap:wrap;justify-content:center}.mode-card{background:var(--surface);border:2px solid var(--border);border-radius:var(--r-lg);padding:2rem 1.75rem;width:210px;display:flex;flex-direction:column;align-items:center;gap:.65rem;cursor:pointer;transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}.mode-card:hover{border-color:var(--green);background:var(--surface-2);transform:translateY(-3px);box-shadow:0 8px 24px #0006}.mode-card-icon{font-size:2.75rem;line-height:1}.mode-card-title{font-size:.95rem;font-weight:700;color:var(--text);text-align:center}.mode-card-desc{font-size:.775rem;color:var(--text-2);text-align:center;line-height:1.45}.config-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.75rem;width:min(420px,90vw);display:flex;flex-direction:column;gap:1.4rem}.config-panel h2{font-size:1.1rem;font-weight:700;letter-spacing:-.02em}.config-section{display:flex;flex-direction:column;gap:.55rem}.config-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted)}.config-options{display:flex;gap:.6rem;flex-wrap:wrap}.config-footer{display:flex;gap:.6rem;justify-content:flex-end;padding-top:1rem;border-top:1px solid var(--border)}.game-page{flex:1;display:flex;flex-direction:column}.game-content{flex:1;display:flex;align-items:center;justify-content:center;padding:1.25rem 1.5rem;gap:1.25rem}@media (max-width: 767px){.game-content{flex-direction:column;padding:.75rem;gap:.75rem}}.board-column{display:flex;flex-direction:column}.player-strip{background:var(--surface);display:flex;align-items:center;gap:.6rem;padding:.55rem .75rem;min-height:46px}.player-strip--top{border-radius:var(--r-md) var(--r-md) 0 0;border-bottom:1px solid var(--border)}.player-strip--bottom{border-radius:0 0 var(--r-md) var(--r-md);border-top:1px solid var(--border)}.player-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}.player-avatar--white{background:#f0d9b5;color:#1a1a1a}.player-avatar--black{background:#3d3a37;color:#e8e0d5;border:1px solid var(--border)}.player-name{font-weight:600;font-size:.85rem;min-width:2.5rem}.capture-tray{display:flex;flex-wrap:wrap;gap:1px;font-size:.95rem;line-height:1;flex:1}.capture-tray-empty{color:var(--text-muted);font-size:.75rem}.board-wrapper{position:relative}.promotion-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000c7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;z-index:10;border-radius:4px}.promotion-title{color:var(--text);font-weight:600;font-size:.9rem}.promotion-pieces{display:flex;gap:.65rem}.promotion-btn{width:58px;height:58px;font-size:2.1rem;background:var(--surface-2);border:2px solid var(--border);border-radius:var(--r-md);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .13s,background .13s;line-height:1;color:var(--text)}.promotion-btn:hover{border-color:var(--green);background:var(--surface-3)}.sidebar{width:210px;flex-shrink:0;display:flex;flex-direction:column;gap:.75rem;align-self:stretch}@media (max-width: 767px){.sidebar{width:100%;max-width:480px;align-self:auto}}.status-panel{background:var(--surface);border-radius:var(--r-md);padding:1rem;display:flex;flex-direction:column;gap:.6rem;flex:1;min-height:0;overflow:hidden}.status-section-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);margin-bottom:.1rem}.status-message{font-size:.95rem;font-weight:600;color:var(--text)}.status-message--check{color:#f0a500}.status-message--checkmate{color:var(--green)}.status-message--draw{color:var(--text-2)}.thinking-row{display:flex;align-items:center;gap:.5rem;color:var(--text-2);font-size:.8rem;margin-top:.35rem}.thinking-dot{width:7px;height:7px;border-radius:50%;background:var(--green);animation:pulse 1.1s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.25;transform:scale(.75)}50%{opacity:1;transform:scale(1.15)}}.divider{height:1px;background:var(--border);margin:.25rem 0}.status-header{display:flex;flex-direction:column;gap:.3rem}.move-count{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-3);color:var(--text-2);font-size:.65rem;font-weight:700;border-radius:10px;padding:0 .4rem;min-width:18px;height:16px;margin-left:.3rem;vertical-align:middle}.moves-empty{color:var(--text-muted);font-size:.8rem;font-style:italic;padding:.4rem 0}.move-list{overflow-y:auto;flex:1;min-height:0;border-radius:var(--r-sm);overflow-x:hidden}.move-list::-webkit-scrollbar{width:4px}.move-list::-webkit-scrollbar-track{background:transparent}.move-list::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:2px}.move-pair{display:grid;grid-template-columns:28px 1fr 1fr;align-items:center;gap:2px;padding:1px 0}.move-pair--alt{background:#ffffff08}.move-num{font-size:.72rem;color:var(--text-muted);padding:.28rem .3rem .28rem .5rem;text-align:right;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}.move-cell{padding:.28rem .5rem;font-size:.85rem;font-weight:500;color:var(--text-2);border-radius:3px;letter-spacing:.01em}.move-cell--active{background:#f6f6692e;color:var(--gold);font-weight:600}.move-cell--empty{color:transparent}.controls-panel{background:var(--surface);border-radius:var(--r-md);padding:.75rem;display:flex;flex-direction:column;gap:.5rem}
