.app{max-width:800px;margin:0 auto;padding:1rem}.app__header{margin-bottom:1.5rem}.app__controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.app__difficulty{display:flex;align-items:center;gap:.5rem}.app__difficulty-label{font-weight:500}.app__difficulty-select{padding:.5rem;border:1px solid #ccc;border-radius:4px;font-size:1rem}.app__new-game-button{background-color:#646cff;color:#fff;border:none;padding:.75rem 1.5rem;font-weight:500}.app__new-game-button:hover{background-color:#535bf2}.app__main{display:flex;flex-direction:column;gap:2rem;align-items:center}.app__cpu-thinking{font-style:italic;color:#666;padding:.5rem;border-radius:4px;background-color:#f5f5f5}.hud{width:100%;max-width:600px;background-color:#f8f9fa;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000001a}.hud__row{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.hud__row:last-child{margin-bottom:0}.hud__row--main{border-bottom:1px solid #e9ecef;padding-bottom:1rem}.hud__section{display:flex;flex-direction:column;gap:.25rem}.hud__section--timer{text-align:right}.hud__section--scores{text-align:right;gap:.5rem}.hud__title{font-size:1.5rem;font-weight:600;margin:0;color:#2c3e50}.hud__difficulty{color:#6c757d;margin:0;font-size:.9rem}.hud__timer{display:flex;flex-direction:column;gap:.25rem}.hud__timer-label{font-size:.8rem;color:#6c757d;text-transform:uppercase;letter-spacing:.5px}.hud__timer-value{font-size:1.5rem;font-weight:600;font-family:Courier New,monospace;color:#2c3e50}.hud__turn,.hud__moves,.hud__score{display:flex;gap:.5rem;align-items:center}.hud__turn-label,.hud__moves-label,.hud__score-label{font-weight:500;color:#495057}.hud__turn-player,.hud__moves-count,.hud__score-value{font-weight:600;color:#2c3e50}.hud__status{text-align:center;width:100%}.hud__status-text{font-size:1.25rem;font-weight:600;text-transform:uppercase;letter-spacing:1px}.hud__status-text--win{color:#28a745}.hud__status-text--draw{color:#ffc107}.hud__status-text--loss{color:#dc3545}.board{display:flex;flex-direction:column;align-items:center;gap:1rem}.board__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background-color:#2c3e50;padding:4px;border-radius:8px;box-shadow:0 4px 8px #00000026}.board__instructions{color:#6c757d;font-size:.9rem}.cell{width:100px;height:100px;background-color:#fff;border:none;border-radius:4px;font-size:2rem;font-weight:700;color:#2c3e50;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.cell:hover:not(:disabled){background-color:#f8f9fa;transform:scale(1.05)}.cell:focus{outline:3px solid #646cff;outline-offset:2px}.cell:disabled{cursor:default}.cell--filled{cursor:default}.cell--winning{background-color:#d4edda;animation:pulse 1s infinite}.cell__mark{-webkit-user-select:none;user-select:none}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.result-modal{max-width:500px;width:90vw;padding:0;border:none;border-radius:12px;box-shadow:0 10px 25px #0003;background:#fff}.result-modal::backdrop{background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.result-modal__content{padding:2rem}.result-modal__header{text-align:center;margin-bottom:1.5rem}.result-modal__title{font-size:2rem;font-weight:600;margin:0;text-transform:uppercase;letter-spacing:1px}.result-modal__title--win{color:#28a745}.result-modal__title--draw{color:#ffc107}.result-modal__title--loss{color:#dc3545}.result-modal__body{margin-bottom:2rem}.result-modal__description{text-align:center;margin-bottom:1.5rem;color:#6c757d}.result-modal__scores{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1rem}.result-modal__score-details{background-color:#f8f9fa;padding:1rem;border-radius:8px}.result-modal__score-label{font-size:1rem;font-weight:600;margin:0 0 .75rem;color:#2c3e50;text-align:center}.result-modal__score-breakdown{display:flex;flex-direction:column;gap:.5rem}.result-modal__score-row{display:flex;justify-content:space-between;align-items:center;font-size:.9rem}.result-modal__score-row--total{border-top:1px solid #dee2e6;padding-top:.5rem;margin-top:.5rem;font-weight:600}.result-modal__score-final{font-size:1.1rem;font-weight:700;color:#2c3e50}.result-modal__win-info{text-align:center;padding:1rem;background-color:#e7f3ff;border-radius:6px;margin-top:1rem;font-size:.9rem;color:#06c}.result-modal__footer{display:flex;gap:1rem;justify-content:center}.result-modal__button{padding:.75rem 2rem;border:none;border-radius:6px;font-weight:500;cursor:pointer;transition:all .2s ease}.result-modal__button--primary{background-color:#646cff;color:#fff}.result-modal__button--primary:hover{background-color:#535bf2}.result-modal__button--secondary{background-color:#6c757d;color:#fff}.result-modal__button--secondary:hover{background-color:#5a6268}@media (max-width: 768px){.app{padding:.5rem}.app__controls{flex-direction:column;align-items:stretch}.hud{padding:1rem}.hud__row{flex-direction:column;gap:1rem;text-align:center}.hud__section--timer,.hud__section--scores{text-align:center}.cell{width:80px;height:80px;font-size:1.5rem}.result-modal__scores{grid-template-columns:1fr}.result-modal__content{padding:1.5rem}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}button:disabled{cursor:not-allowed;opacity:.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
