:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Arial,sans-serif}body{min-width:320px;min-height:100vh;margin:0}*{box-sizing:border-box}:root{color:#263445;background:#f1f4f8;font-family:Arial,Helvetica,sans-serif}body{min-width:320px;margin:0}button,input{font:inherit}.app{color:#263445;background:radial-gradient(circle at 50% 0,#e5edf6 0,#0000 480px),#f1f4f8;min-height:100vh;padding:0 20px 12px}.header{color:#fff;background:linear-gradient(135deg,#1e3550,#304f70);border-radius:0 0 18px 18px;max-width:1200px;margin:0 auto 30px;padding:24px 30px;box-shadow:0 5px 18px #1b31492e}.header-content{justify-content:center;align-items:center;gap:16px;display:flex}.header-mark{color:#fff;background:#ffffff1a;border:2px solid #ffffffa6;border-radius:14px;justify-content:center;align-items:center;width:52px;height:52px;font-size:29px;font-weight:800;display:flex}.header h1{letter-spacing:.3px;margin:0;font-size:32px}.header p{color:#d7e4f2;margin:6px 0 0;font-size:15px}.start-screen{text-align:center;background:#fff;border:1px solid #e4eaf0;border-radius:18px;width:100%;max-width:480px;margin:0 auto;padding:34px 38px 38px;box-shadow:0 8px 28px #23374e17}.section-icon{color:#2878b9;background:#eaf2fb;border-radius:14px;justify-content:center;align-items:center;width:48px;height:48px;margin:0 auto 14px;font-size:25px;display:flex}.start-screen h2{color:#20354d;margin:0;font-size:25px}.intro-text{color:#718096;margin:12px 0 24px;font-size:15px;line-height:1.6}.start-screen h3{color:#34465b;margin:0 0 14px;font-size:17px}.primary-button,.secondary-button,.copy-button,.leave-button{cursor:pointer;border:none;transition:background .18s,transform .18s,box-shadow .18s}.primary-button{color:#fff;background:linear-gradient(135deg,#287fc0,#2169a5);border-radius:10px;width:100%;padding:14px 20px;font-size:16px;font-weight:700;box-shadow:0 4px 10px #2878b938}.primary-button:hover:not(:disabled){background:linear-gradient(135deg,#216fae,#195b91);transform:translateY(-1px);box-shadow:0 6px 14px #2878b94d}.separator{color:#9aa7b5;letter-spacing:1px;align-items:center;gap:14px;margin:25px 0;font-size:11px;font-weight:700;display:flex}.separator span:first-child,.separator span:last-child{background:#e5eaf0;flex:1;height:1px}.game-code-input{color:#263445;text-align:center;letter-spacing:4px;background:#fbfcfe;border:1px solid #d5dee8;border-radius:9px;outline:none;width:100%;margin-bottom:12px;padding:13px 15px;font-size:17px;transition:border-color .2s,box-shadow .2s}.game-code-input:focus{border-color:#3987c4;box-shadow:0 0 0 3px #3987c421}.game-code-input::placeholder{color:#a1adba;letter-spacing:0;font-size:14px}.secondary-button{color:#31516f;background:#eaf1f8;border:1px solid #dce6f0;border-radius:9px;padding:11px 18px;font-size:14px;font-weight:700}.secondary-button:hover:not(:disabled){background:#dceaf7;transform:translateY(-1px)}.join-button{width:100%;padding:13px 18px}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.game-screen{width:100%;max-width:1260px;margin:0 auto}.game-info{background:#fff;border:1px solid #e4eaf0;border-radius:15px;flex-direction:column;gap:17px;margin-bottom:18px;padding:22px 26px;display:flex;box-shadow:0 4px 16px #23374e0f}.game-info-main{justify-content:space-between;align-items:center;gap:15px;display:flex}.eyebrow,.code-label{color:#8795a5;letter-spacing:1.2px;font-size:10px;font-weight:800;display:block}.game-info h2{color:#263d56;margin:5px 0 0;font-size:21px}.player-chip{color:#536579;background:#f4f7fa;border:1px solid #e7edf3;border-radius:30px;align-items:center;gap:9px;padding:7px 12px 7px 8px;font-size:13px;font-weight:600;display:flex}.player-symbol{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:29px;height:29px;font-size:17px;font-weight:800;display:flex}.player-o{color:#2878b9}.player-x{color:#d34b42}.game-code-panel{background:#f5f8fb;border:1px solid #e7edf3;border-radius:10px;justify-content:space-between;align-items:center;gap:15px;padding:13px 16px;display:flex}.game-code-text strong{color:#203b57;letter-spacing:4px;margin-top:4px;font-size:25px;display:block}.copy-button{color:#fff;background:#2878b9;border-radius:8px;align-items:center;gap:8px;padding:10px 15px;font-size:13px;font-weight:700;display:flex}.copy-button:hover{background:#1e649e;transform:translateY(-1px);box-shadow:0 4px 9px #2878b933}.game-info-bottom{color:#8491a0;justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.leave-button{color:#a14d4a;background:#fff3f2;border:1px solid #f4dfdd;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:700}.leave-button:hover{background:#fce5e3}.opponent-status{justify-content:center;margin:15px 0;display:flex}.opponent-status p{color:#596b7e;background:#ffffffbf;border:1px solid #e3eaf1;border-radius:30px;align-items:center;gap:9px;margin:0;padding:9px 16px;font-size:13px;font-weight:600;display:flex}.online-dot{border-radius:50%;flex:0 0 9px;width:9px;height:9px;display:inline-block}.online-dot.online{background:#22a06b;box-shadow:0 0 0 3px #22a06b21}.online-dot.offline,.waiting-dot{background:#a2adba}.game-status{background:#fff;border:1px solid #e4eaf0;border-radius:12px;justify-content:center;align-items:center;gap:11px;min-height:65px;margin:18px 0;padding:12px 18px;display:flex;box-shadow:0 3px 12px #23374e0a}.game-status h2{color:#29445f;margin:0;font-size:19px}.status-icon{color:#3980b7;font-size:20px}.board-panel{background:#fff;border:1px solid #e1e8ef;border-radius:15px;width:100%;padding:16px;box-shadow:0 5px 20px #23374e12}.board-heading{color:#8a98a7;letter-spacing:1.1px;justify-content:space-between;margin:0 2px 12px;font-size:10px;font-weight:800;display:flex}.board-container{scrollbar-color:#aebdcb #edf1f5;scrollbar-width:thin;background:#f8fafc;border:1px solid #c6d1dc;border-radius:7px;width:100%;margin:0 auto;overflow:auto}.board{grid-template-rows:repeat(25,24px);grid-template-columns:repeat(50,24px);width:max-content;margin:0 auto;display:grid;position:relative}.cell{color:#263445;cursor:pointer;background:#f8fafc;border:1px solid #d4dde6;border-radius:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:17px;font-weight:800;line-height:1;transition:background .1s;display:flex}.cell:not(.occupied):not(:disabled):hover{background:#dceaf7}.cell:disabled{cursor:default;opacity:1}.cell-o{color:#2878b9;background:#f1f7fc}.cell-x{color:#d34b42;background:#fff5f4}.board-hint{color:#788797;justify-content:center;align-items:center;gap:8px;padding:13px 5px 2px;font-size:12px;display:flex}.hint-symbol{font-size:15px;font-weight:800}.circle{color:#2878b9}.cross{color:#d34b42}.hint-extra{color:#9aa5b1;border-left:1px solid #dce3ea;margin-left:12px;padding-left:14px}.move-pending{text-align:center;color:#718096;font-size:13px}.error-message{color:#a33c38;background:#fff1f0;border:1px solid #f3d4d1;border-radius:9px;margin:16px 0 0;padding:12px 15px;font-size:14px;line-height:1.5}.winning-line{pointer-events:none;z-index:5;width:1200px;height:600px;position:absolute;top:0;left:0;overflow:visible}.winning-line line{stroke:#e53935;stroke-width:3.5px;stroke-linecap:round}footer{text-align:center;color:#9aa6b3;max-width:1200px;margin:25px auto 10px;font-size:12px}@media (width<=600px){.app{padding:0 8px 10px}.header{border-radius:0 0 14px 14px;margin-bottom:18px;padding:18px 12px}.header-content{gap:12px}.header-mark{border-radius:11px;width:43px;height:43px;font-size:24px}.header h1{font-size:25px}.header p{font-size:13px}.start-screen{border-radius:14px;padding:27px 20px 28px}.start-screen h2{font-size:22px}.intro-text{font-size:14px}.game-info{border-radius:12px;gap:13px;padding:16px}.game-info h2{font-size:18px}.player-chip{gap:6px;padding:5px 9px 5px 6px;font-size:11px}.player-symbol{width:25px;height:25px}.game-code-text strong{font-size:22px}.game-info-bottom{align-items:flex-start;font-size:12px}.leave-button{white-space:nowrap}.game-status{min-height:58px;margin:14px 0}.game-status h2{font-size:16px}.board-panel{border-radius:11px;padding:9px}.board-container{max-width:100%}.board-hint{flex-wrap:wrap;gap:6px;font-size:11px}.hint-extra{margin-left:5px;padding-left:8px}}@media (width<=380px){.game-info-main{flex-direction:column;align-items:flex-start}.game-info-bottom{flex-direction:column}.game-code-panel{padding:11px}.copy-button{padding:9px 11px}}
