:root{--board-bg: #DEB887;--board-border: #8B4513;--line-color: #5d4037;--piece-size: 56px;--piece-font-size: 32px;--cell-size: 64px;--board-padding: 36px;--red-color: #d00;--black-color: #111;--selected-shadow: 0 0 15px rgba(255, 215, 0, .8);--last-move-shadow: 0 0 10px rgba(0, 255, 0, .6)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:KaiTi,STKaiti,楷体,SimKai,"FangSong",仿宋,STFangSong,serif;background-color:#222;background-image:linear-gradient(#0000004d,#0000004d),url(/assets/background-jfSpY8Fk.png);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;display:flex;justify-content:center;align-items:center;min-height:100vh;color:#eee;-webkit-touch-callout:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;user-select:none}.game-container{display:flex;flex-direction:column;align-items:center;gap:20px;padding:30px;background:#141414d9;border-radius:16px;box-shadow:0 8px 24px #0006;border:1px solid rgba(255,255,255,.1)}.header{width:100%;text-align:center;margin-bottom:20px;padding:15px 0;position:relative}.header h1{display:block;font-size:2.5rem;color:#deb887;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin:0;font-weight:700;letter-spacing:.1em}.main-content{display:flex;flex-direction:row;gap:40px;align-items:center;width:100%;justify-content:center}.board-wrapper{display:flex;flex-direction:column;align-items:center}.captured-pieces{width:calc(var(--cell-size) * 8 + var(--board-padding) * 2);min-height:50px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:10px;background:#0003;border-radius:8px;margin:10px 0}.captured-top{margin-bottom:15px}.captured-bottom{margin-top:15px}.captured-piece{width:40px;height:40px;border-radius:50%;background:#f0d9b5;box-shadow:inset 0 -2px 3px #0000004d,inset 0 2px 3px #fffc,1px 1px 3px #0006;border:none;display:flex;justify-content:center;align-items:center;font-size:24px;font-weight:700;font-family:KaiTi,STKaiti,楷体,SimKai,"FangSong",仿宋,STFangSong,serif;background-image:linear-gradient(135deg,#fff8e7,#f0d9b5);opacity:.7}.captured-piece.red{color:var(--red-color);text-shadow:0 1px 0 rgba(255,255,255,.5)}.captured-piece.black{color:var(--black-color);text-shadow:0 1px 0 rgba(255,255,255,.5)}.captured-piece.hidden{background-image:url(/assets/piece_texture-D6LZf9tg.png);background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent!important;text-shadow:none!important;font-size:0!important;text-indent:-9999px;position:relative;overflow:hidden;border:none;box-shadow:inset 0 0 5px #00000080}.captured-piece.hidden:before,.captured-piece.hidden:after{display:none}.chessboard{width:calc(var(--cell-size) * 8 + var(--board-padding) * 2);height:calc(var(--cell-size) * 9 + var(--board-padding) * 2);background-color:var(--board-bg);background-image:linear-gradient(rgba(255,255,255,.05) 0%,transparent 50%,rgba(0,0,0,.05) 100%);position:relative;border:8px solid var(--board-border);border-radius:4px;box-shadow:0 8px 16px #0000004d;-webkit-user-select:none;user-select:none;box-sizing:content-box;will-change:transform;transform:translateZ(0)}.grid-overlay{width:100%;height:100%;position:absolute;top:0;left:0;pointer-events:none;z-index:1}.pieces-layer{position:relative;width:100%;height:100%;z-index:10}.piece{width:var(--piece-size);height:var(--piece-size);border-radius:50%;background:#f0d9b5;box-shadow:inset 0 -2px 3px #0003,inset 0 2px 3px #fff9,1px 1px 3px #0000004d;border:none;position:absolute;display:flex;justify-content:center;align-items:center;font-size:var(--piece-font-size);font-weight:700;font-family:KaiTi,STKaiti,楷体,SimKai,"FangSong",仿宋,STFangSong,serif;cursor:pointer;transition:transform .2s cubic-bezier(.25,.46,.45,.94);transform:translate(-50%,-50%);background-image:linear-gradient(135deg,#fff8e7,#f0d9b5);will-change:transform}.piece:before{content:"";position:absolute;top:3px;left:3px;right:3px;bottom:3px;border-radius:50%}.piece.red{color:var(--red-color);text-shadow:0 1px 0 rgba(255,255,255,.5)}.piece.black{color:var(--black-color);text-shadow:0 1px 0 rgba(255,255,255,.5)}.piece.selected{transform:translate(-50%,-50%) scale(1.1);box-shadow:var(--selected-shadow);z-index:20;background-color:#fff}.piece.last-move{box-shadow:var(--last-move-shadow)}.move-hint{position:absolute;width:20px;height:20px;border-radius:50%;background-color:#0f0c;box-shadow:0 0 8px #0f0c;transform:translate(-50%,-50%);z-index:100;pointer-events:none}.last-move-from{position:absolute;width:16px;height:16px;border-radius:50%;background-color:#ff000080;box-shadow:0 0 5px #ff000080;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.piece.check{box-shadow:0 0 20px red;animation:pulse 1s infinite}@keyframes pulse{0%{box-shadow:0 0 10px red}50%{box-shadow:0 0 25px red}to{box-shadow:0 0 10px red}}.piece.hidden{background-image:url(/assets/piece_texture-D6LZf9tg.png);background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent!important;text-shadow:none!important;font-size:0!important;text-indent:-9999px;overflow:hidden;border:none;box-shadow:inset 0 -3px 5px #00000080,inset 0 3px 5px #fff3,2px 2px 5px #0006}.piece.hidden:before,.piece.hidden:after{display:none}@keyframes flip{0%{transform:translate(-50%,-50%) rotateY(0)}50%{transform:translate(-50%,-50%) rotateY(90deg)}to{transform:translate(-50%,-50%) rotateY(0)}}.piece.flipping{animation:flip .6s ease-in-out}.controls{display:flex;flex-direction:column;gap:25px;min-width:240px;background:#0003;padding:25px;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.status-panel{text-align:center}.status-panel h2{font-size:1.5rem;margin-bottom:10px;color:#deb887}#game-status{display:none}.record{margin-top:15px;padding:10px;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.record p{font-size:1rem;color:#deb887}.record span{font-weight:700;font-size:1.1rem}#win-count{color:#4caf50}#loss-count{color:#f44336}.turn-red{color:#ff6b6b;font-weight:700;font-size:1.2rem}.turn-black{color:#aaa;font-weight:700;font-size:1.2rem}.timer-panel{display:flex;flex-direction:column;gap:8px;margin:15px 0;padding:12px;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.timer-item{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:6px;background:#0003}.timer-item.timer-red{border-left:3px solid #ff6b6b}.timer-item.timer-black{border-left:3px solid #aaa}.timer-label{font-size:.9rem;color:#ccc}.timer-value{font-size:1.1rem;font-weight:700;font-family:Courier New,monospace;color:#deb887}.current-move-timer{margin-top:10px;padding:8px 12px;background:#ffffff0d;border-radius:6px;border:1px solid rgba(255,255,255,.1);text-align:center;font-size:.95rem;color:#ccc}.current-move-timer span{font-weight:700;font-family:Courier New,monospace;color:#4caf50;margin-left:5px}.settings label{display:block;margin-bottom:8px;font-size:1rem;color:#ccc}select{width:100%;padding:8px 10px;background:#444;color:#fff;border:1px solid #666;border-radius:6px;font-size:.95rem;outline:none}.buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.buttons button,.host-controls button,.undo-modal-btn,.first-move-modal-btn{display:flex;justify-content:center;align-items:center;width:100%;padding:8px 4px;margin-bottom:0;background-color:#5d4037;background-image:linear-gradient(to bottom,#6d4c41,#4e342e);color:#deb887;border:1px solid #8b4513;border-radius:8px;cursor:pointer;font-size:15px;font-family:KaiTi,STKaiti,楷体,serif;transition:all .2s;box-shadow:0 2px 4px #0000004d;text-shadow:0 1px 1px rgba(0,0,0,.5);min-height:40px;line-height:1.2}.buttons button:hover,.host-controls button:hover{filter:brightness(1.15);transform:translateY(-2px);box-shadow:0 4px 8px #0006}.buttons button:active,.host-controls button:active{transform:translateY(0);box-shadow:0 1px 2px #0000004d}.buttons>:last-child:nth-child(odd){grid-column:1 / -1}#restart-btn,#ready-btn,#share-btn,#copy-link-btn,.share-btn,#undo-accept-btn{background-color:#2e7d32;background-image:linear-gradient(to bottom,#43a047,#2e7d32);border-color:#1b5e20;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.3)}#resign-btn,#kick-btn,#undo-reject-btn{background-color:#c62828!important;background-image:linear-gradient(to bottom,#e53935,#c62828)!important;border-color:#b71c1c!important;color:#fff!important}#undo-btn,#undo-edit-btn,#reset-board-btn,#clear-board-btn,#reset-btn{background-color:#ef6c00;background-image:linear-gradient(to bottom,#fb8c00,#ef6c00);border-color:#e65100;color:#fff}#back-home-btn,.switch-mode-btn,#switch-game-type-btn,.btn-back,.btn-back-home{background-color:#283593!important;background-image:linear-gradient(to bottom,#3949ab,#283593)!important;border-color:#1a237e!important;color:#fff!important}.host-controls{grid-column:1 / -1;background:#0003;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.1);display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:5px}.host-controls button{padding:5px 4px;font-size:13px;min-height:34px}.host-controls-label,.first-move-control{grid-column:1 / -1;margin-bottom:5px}#back-home-btn,.btn-back{grid-column:1 / -1}.connection-status{font-size:.9rem;padding:5px 10px;border-radius:4px;margin-top:10px;display:inline-block}.connection-status.connected{background-color:#4caf50;color:#fff}.connection-status.disconnected{background-color:#f44336;color:#fff}.connection-status.error{background-color:#ff9800;color:#fff}.player-info{margin-bottom:15px;padding:10px;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.player-info p{margin:5px 0;font-size:.95rem;color:#deb887}.first-move-info{margin-top:10px!important;padding-top:10px;border-top:1px solid rgba(255,255,255,.1);color:#deb887!important;font-size:1.1rem!important;font-weight:700;text-align:center}#player-color{font-weight:700}#player-color.red,#opponent-color.red{color:#ff6b6b}#player-color.black,#opponent-color.black{color:#979797}#opponent-color{font-weight:700}@media (max-width: 1200px){:root{--piece-size: 48px;--piece-font-size: 28px;--cell-size: 54px;--board-padding: 28px}.header h1{font-size:2.2rem}.controls{min-width:200px}.captured-piece{width:35px;height:35px;font-size:20px}}@media (max-width: 850px){:root{--piece-size: 42px;--piece-font-size: 24px;--cell-size: 48px;--board-padding: 24px}.header{margin-bottom:15px;padding:10px 0}.header h1{font-size:1.8rem}.game-container{flex-direction:column;padding:15px;gap:20px}.main-content{flex-direction:column;gap:20px}.chessboard{transform:none;margin-bottom:0;width:calc(var(--cell-size) * 8 + var(--board-padding) * 2);height:calc(var(--cell-size) * 9 + var(--board-padding) * 2);max-width:100%;box-sizing:content-box}.controls{min-width:unset;width:100%;max-width:400px;padding:20px;margin:0 auto}.buttons{gap:8px}.buttons button{font-size:13px;padding:8px 2px;min-height:38px}.captured-pieces{width:100%;justify-content:center;gap:6px;padding:8px}.captured-piece{width:32px;height:32px;font-size:18px;flex-shrink:0}.status-panel h2{font-size:1.3rem}#game-status{font-size:1rem}.record p{font-size:.9rem}.settings label{font-size:.9rem;margin-bottom:6px}select{font-size:.9rem;padding:10px}}@media (max-width: 600px){:root{--piece-size: 36px;--piece-font-size: 20px;--cell-size: 42px;--board-padding: 20px}.header{margin-bottom:10px;padding:8px 0}.header h1{font-size:1.5rem;letter-spacing:.05em}.game-container{padding:5px;gap:10px}.chessboard{border-width:6px}.controls{padding:15px}.buttons button{padding:8px 2px;font-size:12px;min-height:36px}.captured-piece{width:28px;height:28px;font-size:16px}.status-panel h2{font-size:1.2rem}.turn-red,.turn-black{font-size:1.1rem}#game-status{font-size:.9rem}}@media (max-width: 480px){:root{--piece-size: 32px;--piece-font-size: 18px;--cell-size: 38px;--board-padding: 16px}.piece{font-size:18px}.header{margin-bottom:8px;padding:6px 0}.header h1{font-size:1.3rem;letter-spacing:.03em}body{font-size:14px}}@media (max-width: 360px){:root{--piece-size: 28px;--cell-size: 34px;--board-padding: 14px}.piece{font-size:16px}.header{margin-bottom:6px;padding:5px 0}.header h1{font-size:1.1rem;letter-spacing:.02em}.chessboard{border-width:3px}.captured-piece{width:20px;height:20px;font-size:12px}.game-container{padding:8px}.chessboard{border-width:4px;box-shadow:0 5px 10px #0006,inset 0 0 15px #0000004d}.controls{padding:12px}.buttons button{padding:10px 6px;font-size:11px;min-height:44px}.captured-piece{width:24px;height:24px;font-size:14px}.status-panel h2{font-size:1.1rem}.turn-red,.turn-black{font-size:1rem}}@media (hover: none) and (pointer: coarse){.buttons button{cursor:default;-webkit-tap-highlight-color:rgba(255,215,0,.3);transition:background-color .1s}.buttons button:active{background-color:#8b4513;transform:none}.piece{cursor:default;-webkit-tap-highlight-color:transparent}.buttons button{cursor:default;-webkit-tap-highlight-color:rgba(255,215,0,.3)}.game-container{overscroll-behavior:none}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}}@media screen and (max-height: 500px) and (orientation: landscape){.game-container{flex-direction:row;padding:5px;gap:10px}.main-content{flex-direction:row;gap:10px}.controls{min-width:180px;max-width:200px;padding:10px}.chessboard{transform:scale(.7);transform-origin:center;margin:0}.buttons{display:flex;flex-direction:column}.buttons button{flex:1;margin-bottom:5px}.captured-pieces{height:30px;min-height:30px}.captured-piece{width:20px;height:20px;font-size:12px}}.share-dialog-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000c;z-index:10000;justify-content:center;align-items:center;animation:fadeIn .2s ease-in-out}.share-dialog-overlay.show{display:flex}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.share-dialog{background:linear-gradient(135deg,#1e1e1ef2,#282828f2);border-radius:16px;padding:0;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1);animation:slideUp .3s ease-out;position:relative}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.share-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.share-dialog-header h2{margin:0;font-size:1.5rem;color:#fff;font-weight:600}.share-dialog-close{background:none;border:none;color:#fff;font-size:2rem;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s;line-height:1}.share-dialog-close:hover{background-color:#ffffff1a;transform:rotate(90deg)}.share-dialog-content{padding:24px}.share-dialog-form{display:flex;flex-direction:column;gap:16px}.share-dialog-form label{font-size:1rem;color:#eee;font-weight:500}.share-input{padding:12px 16px;border:2px solid rgba(255,255,255,.2);border-radius:8px;background:#ffffff0d;color:#fff;font-size:1rem;font-family:inherit;transition:all .2s;outline:none}.share-input:focus{border-color:#4caf50;background:#ffffff14}.share-input::placeholder{color:#fff6}.share-dialog-loading{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 20px;color:#eee}.loading-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.1);border-top-color:#4caf50;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.share-dialog-result{display:flex;flex-direction:column;gap:20px}.share-success-message{color:#4caf50;font-size:1.1rem;font-weight:600;text-align:center;padding:12px;background:#4caf501a;border-radius:8px;border:1px solid rgba(76,175,80,.3)}.share-link-section{display:flex;flex-direction:column;gap:12px}.share-link-section label{font-size:.9rem;color:#ccc;font-weight:500}.share-link-container{display:flex;gap:8px}.share-link-input{flex:1;padding:12px 16px;border:2px solid rgba(255,255,255,.2);border-radius:8px;background:#ffffff0d;color:#fff;font-size:.9rem;font-family:Courier New,monospace;outline:none;transition:all .2s}.share-link-input:focus{border-color:#4caf50;background:#ffffff14}.share-copy-btn{padding:10px 18px;background:#4caf50;color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap;font-family:inherit}.share-copy-btn:hover{background:#45a049;transform:translateY(-1px);box-shadow:0 4px 12px #4caf504d}.share-copy-btn:active{transform:translateY(0)}.share-dialog-actions{display:flex;gap:12px;margin-top:8px}.share-enter-btn{flex:1;padding:10px 20px;background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.share-enter-btn:hover{background:linear-gradient(135deg,#45a049,#3d8b40);transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.share-enter-btn:active{transform:translateY(0)}.share-cancel-btn{flex:1;padding:10px 20px;background:#ffffff1a;color:#fff;border:2px solid rgba(255,255,255,.2);border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.share-cancel-btn:hover{background:#ffffff26;border-color:#ffffff4d}.share-create-btn{width:100%;padding:10px 20px;background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit;margin-top:8px}.share-create-btn:hover{background:linear-gradient(135deg,#45a049,#3d8b40);transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.share-create-btn:active{transform:translateY(0)}@media (max-width: 600px){.share-dialog{width:95%;max-height:85vh;margin:20px}.share-dialog-header{padding:16px 20px}.share-dialog-header h2{font-size:1.3rem}.share-dialog-content{padding:20px}.share-link-container{flex-direction:column}.share-copy-btn{width:100%}.share-dialog-actions{flex-direction:column}.share-enter-btn,.share-cancel-btn{width:100%}}.toast{visibility:hidden;min-width:250px;max-width:90%;background:linear-gradient(135deg,#282828f2,#1e1e1ef2);color:#fff;text-align:center;border-radius:8px;padding:14px 20px;position:fixed;z-index:10001;left:50%;bottom:30px;transform:translate(-50%);font-size:15px;opacity:0;transition:opacity .3s ease,bottom .3s ease;box-shadow:0 4px 12px #0006;border:1px solid rgba(255,255,255,.1);pointer-events:none}.toast.show{visibility:visible;opacity:1;bottom:80px}.toast.info{border-left:3px solid #3498db}.toast.success{border-left:3px solid #4caf50}.toast.warning{border-left:3px solid #ff9800}.toast.error{border-left:3px solid #f44336}@media (max-width: 600px){.toast{min-width:200px;font-size:14px;padding:12px 16px}.toast.show{bottom:60px}}.confirm-dialog-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000c;z-index:10000;justify-content:center;align-items:center;animation:fadeIn .2s ease-in-out}.confirm-dialog-overlay.show{display:flex}.confirm-dialog{background:linear-gradient(135deg,#1e1e1ef2,#282828f2);border-radius:16px;padding:0;width:90%;max-width:400px;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1);animation:slideUp .3s ease-out;position:relative}.confirm-dialog-header{padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.confirm-dialog-header h3{margin:0;font-size:1.5rem;color:#fff;font-weight:600}.confirm-dialog-content{padding:24px}.confirm-dialog-content p{margin:0;font-size:1rem;color:#eee;line-height:1.6}.confirm-dialog-footer{display:flex;gap:12px;padding:16px 24px;border-top:1px solid rgba(255,255,255,.1);justify-content:flex-end}.confirm-dialog-btn{padding:10px 20px;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit;min-width:80px}.confirm-dialog-btn.cancel-btn{background:#ffffff1a;color:#fff;border:2px solid rgba(255,255,255,.2)}.confirm-dialog-btn.cancel-btn:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px)}.confirm-dialog-btn.confirm-btn{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.confirm-dialog-btn.confirm-btn:hover{background:linear-gradient(135deg,#c0392b,#a93226);transform:translateY(-2px);box-shadow:0 6px 20px #e74c3c66}.confirm-dialog-btn:active{transform:translateY(0)}.confirm-dialog-btn:focus{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}@media (max-width: 600px){.confirm-dialog{width:95%;margin:20px}.confirm-dialog-header{padding:16px 20px}.confirm-dialog-header h3{font-size:1.3rem}.confirm-dialog-content{padding:20px}.confirm-dialog-footer{flex-direction:column;padding:16px 20px}.confirm-dialog-btn{width:100%}}.host-controls{display:none;margin-top:10px;border-top:1px solid rgba(255,255,255,.1);padding-top:10px}.host-controls-label{font-size:12px;color:#aaa;margin-bottom:5px}.first-move-control{margin-bottom:10px}.switch-label{display:flex;align-items:center;gap:10px;font-size:14px;color:#eee}.label-text{min-width:60px}.toggle-switch{position:relative;width:80px;height:36px;background:linear-gradient(135deg,#c0392b,#e74c3c,#c0392b);border-radius:18px;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #0000004d,inset 0 1px 3px #0003}.toggle-switch input[type=checkbox]{display:none}.toggle-switch .slider{position:absolute;top:2px;left:2px;right:2px;bottom:2px;background:transparent;border-radius:16px;transition:all .3s ease;display:flex;align-items:center;justify-content:space-between;padding:0 6px}.toggle-switch .slider:before{content:"";position:absolute;width:32px;height:32px;background:linear-gradient(135deg,#fff,#f0f0f0);border-radius:50%;transition:all .3s ease;box-shadow:0 2px 6px #0000004d;left:2px}.toggle-switch input[type=checkbox]:checked~.slider:before{transform:translate(44px)}.toggle-switch input[type=checkbox]:checked{background:linear-gradient(135deg,#2c3e50,#34495e,#2c3e50)}.toggle-switch input[type=checkbox]:checked+.slider{background:transparent}.slider-text{font-size:12px;font-weight:600;z-index:1;transition:all .3s ease;text-shadow:0 1px 2px rgba(0,0,0,.3)}.slider-text.red{color:#fff}.slider-text.black{color:#ffffff80}.toggle-switch input[type=checkbox]:checked~.slider .slider-text.red{color:#ffffff80}.toggle-switch input[type=checkbox]:checked~.slider .slider-text.black{color:#fff}.toggle-switch:has(input[type=checkbox]:checked){background:linear-gradient(135deg,#2c3e50,#34495e,#2c3e50)}.btn-reset{background:#e67e22!important}.btn-kick{background:#c0392b!important}.btn-switch-game-type{background:#3498db!important}.btn-back-home{margin-top:10px}.btn-jieqi-online{background:#9b59b6!important}.undo-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:1000;justify-content:center;align-items:center}.undo-modal-content{background:#2c3e50;padding:20px;border-radius:8px;text-align:center;color:#fff;min-width:300px}.undo-modal-content h3{margin:0 0 15px;font-size:1.3rem}.undo-modal-content p{margin:15px 0}.undo-modal-buttons{display:flex;justify-content:space-around;gap:10px}.undo-modal-btn{width:40%;padding:8px 10px;border:none;border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.undo-modal-btn.accept{background:#27ae60;color:#fff}.undo-modal-btn.accept:hover{background:#229954}.undo-modal-btn.reject{background:#c0392b;color:#fff}.undo-modal-btn.reject:hover{background:#a93226}.kill-animation-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1000;pointer-events:none;overflow:hidden}.kill-text{font-family:KaiTi,STKaiti,楷体,serif;font-size:8rem;font-weight:900;color:#d00;text-shadow:2px 2px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 20px rgba(255,215,0,.8),0 0 40px rgba(255,0,0,.6);opacity:0;transform:scale(3);animation:kill-enter .6s cubic-bezier(.2,.8,.2,1) forwards;white-space:nowrap;letter-spacing:10px}.kill-animation-container.fade-out{transition:opacity .5s ease;opacity:0}@keyframes kill-enter{0%{opacity:0;transform:scale(3) rotate(-10deg)}50%{opacity:1;transform:scale(.9) rotate(0)}70%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@media (max-width: 600px){.kill-text{font-size:5rem}}.kill-image{max-width:30%;max-height:20%;mix-blend-mode:multiply;opacity:0;transform:scale(3);filter:contrast(1.2);animation:kill-stamp-enter .5s cubic-bezier(.175,.885,.32,1.275) forwards}@keyframes kill-stamp-enter{0%{opacity:0;transform:scale(3)}to{opacity:1;transform:scale(1)}}@media (max-width: 600px){.kill-image{max-width:40%;max-height:30%}}.review-icon-btn{position:fixed;top:20px;right:20px;width:48px;height:48px;background:#ffffff1a;border:2px solid rgba(255,255,255,.2);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:24px;transition:all .3s ease;z-index:999;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.review-icon-btn:hover{background:#fff3;border-color:#fff6;transform:scale(1.1)}.review-icon-btn:active{transform:scale(.95)}.review-dialog{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none;align-items:center;justify-content:center}.review-dialog.show{display:flex}.review-dialog-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000b3}.review-dialog-content{position:relative;background:#1e1e1ef2;border-radius:16px;padding:30px;max-width:400px;width:90%;box-shadow:0 8px 32px #00000080;border:1px solid rgba(255,255,255,.1);animation:slideIn .3s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.review-dialog-close{position:absolute;top:10px;right:10px;background:none;border:none;color:#999;font-size:32px;cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease}.review-dialog-close:hover{background:#ffffff1a;color:#fff}.review-dialog h3{text-align:center;margin-bottom:24px;color:#fff;font-size:24px}.review-rating{display:flex;gap:16px;justify-content:center;margin-bottom:24px}.review-btn{flex:1;padding:20px;background:#ffffff0d;border:2px solid rgba(255,255,255,.1);border-radius:12px;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;gap:8px}.review-btn:hover{background:#ffffff1a;border-color:#ffffff4d;transform:translateY(-2px)}.review-btn.active{background:#4caf5033;border-color:#4caf50}.review-btn.review-dislike.active{background:#f4433633;border-color:#f44336}.review-icon{font-size:48px}.review-text{color:#fff;font-size:16px}.review-comment-section{margin-bottom:20px}.review-comment{width:100%;min-height:100px;padding:12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:14px;font-family:inherit;resize:vertical;transition:all .3s ease}.review-comment:focus{outline:none;border-color:#ffffff4d;background:#ffffff14}.review-comment::placeholder{color:#999}.review-comment-hint{margin-top:8px;font-size:12px;color:#999;text-align:center}.review-submit-section{display:flex;justify-content:center}.review-submit-btn{padding:12px 32px;background:#4caf50;border:none;border-radius:8px;color:#fff;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s ease}.review-submit-btn:hover:not(:disabled){background:#45a049;transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.review-submit-btn:active:not(:disabled){transform:translateY(0)}.review-submit-btn:disabled{background:#ffffff1a;color:#666;cursor:not-allowed}@media (max-width: 768px){.review-icon-btn{top:10px;right:10px;width:40px;height:40px;font-size:20px}.review-dialog-content{padding:20px}.review-dialog h3{font-size:20px;margin-bottom:16px}.review-btn{padding:16px}.review-icon{font-size:36px}.review-text{font-size:14px}}.ai-message-container{position:absolute;top:100%;left:50%;transform:translate(-50%);z-index:100;pointer-events:none;display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;text-align:center}.ai-message{font-family:KaiTi,STKaiti,楷体,serif;font-size:1.5rem;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.8);margin-bottom:10px;opacity:0;transform:translateY(-20px);transition:all .5s ease-out;font-weight:700;letter-spacing:1px}.ai-message.show{opacity:1;transform:translateY(0)}@media (max-width: 600px){.ai-message{font-size:1.2rem;padding:0 20px}}
