:root{font-family:Inter,system-ui,sans-serif;color:#222d42;background-color:#f8f5ec;background-image:linear-gradient(#4157800c 1px,transparent 1px),linear-gradient(90deg,#4157800c 1px,transparent 1px);background-size:24px 24px}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;padding:32px 18px}main{width:min(100%,460px);text-align:center}header p{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:#665c50;margin:0 0 8px}h1{font-family:Georgia,serif;font-size:clamp(2.3rem,8vw,3.6rem);line-height:1.1;letter-spacing:-.045em;margin:0 0 24px}section{background:#fffdf6;border:2px solid #222d42;border-radius:12px;box-shadow:5px 5px #222d42;padding:clamp(20px,5vw,40px)}h2{margin:0 0 22px;font-size:1.2rem}#board{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#38455a;aspect-ratio:1}button{cursor:pointer;font:inherit}#board button{position:relative;border:0;background:#fffdf6}#board button[aria-disabled]{cursor:default}#board button.winner{background:#e1efcf}#board button:not([aria-disabled]):hover{background:#f1eddf}[data-mark]:before,[data-mark=x]:after{content:"";position:absolute;top:50%;left:50%}[data-mark=x]:before,[data-mark=x]:after{width:60%;height:7%;border-radius:100px;background:#27548c;transform:translate(-50%,-50%) rotate(45deg)}[data-mark=x]:after{transform:translate(-50%,-50%) rotate(-45deg)}[data-mark=o]:before{box-sizing:border-box;width:49%;aspect-ratio:1;border:clamp(5px,1vw,8px) solid #b54932;border-radius:50%;transform:translate(-50%,-50%)}#restart{margin-top:24px;width:100%;background:#253349;color:#fff;padding:12px;border-radius:6px;border:0;font-weight:600}#restart:hover{background:#384e6e}#restart span{margin-right:.35em}button:focus-visible{outline:3px solid #a85800;outline-offset:-4px}
