*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial}body{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1f1234,#2b2e83);color:#fff;padding:24px} .app{width:100%;max-width:720px;background:rgba(255,255,255,0.04);border-radius:12px;padding:20px;box-shadow:0 8px 30px rgba(0,0,0,0.4)}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}header h1{font-size:1.4rem;margin:0} .controls{display:flex;gap:8px;align-items:center}select,button{padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.02);color:#fff}button#restart{cursor:pointer}main{display:flex;flex-direction:column;align-items:center;gap:12px} .board{display:grid;grid-template-columns:repeat(3,120px);grid-template-rows:repeat(3,120px);gap:12px} .cell{width:120px;height:120px;background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;font-size:48px;border-radius:8px;cursor:pointer;user-select:none;transition:transform .12s,background .12s} .cell:hover{transform:scale(1.03)} .status{font-size:1rem} .log{list-style:none;padding:0;margin:0;width:100%;max-height:140px;overflow:auto;font-size:0.95rem} .log li{padding:8px;border-radius:6px;background:rgba(255,255,255,0.02);margin-bottom:6px} footer{margin-top:14px;text-align:center;font-size:0.8rem;color:rgba(255,255,255,0.6)} @media(max-width:520px){.board{grid-template-columns:repeat(3,80px);grid-template-rows:repeat(3,80px)}.cell{width:80px;height:80px;font-size:32px}}