.lobby-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.lobby-title{font-size:3rem;color:#fff;margin-bottom:2rem;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.lobby-content{background:#fff;border-radius:12px;padding:2rem;width:100%;max-width:400px;box-shadow:0 8px 32px #0003}.name-input-section,.room-code-section{margin-bottom:1rem}.name-input-section label,.room-code-section label{display:block;font-size:.9rem;font-weight:600;color:#333;margin-bottom:.5rem}.name-input-section input,.room-code-section input{width:100%;padding:.75rem;font-size:1rem;border:2px solid #e0e0e0;border-radius:8px;transition:border-color .2s}.name-input-section input:focus,.room-code-section input:focus{outline:none;border-color:#667eea}.room-code-section input{text-align:center;font-family:monospace;font-size:1.2rem;letter-spacing:.2em}.lobby-button{width:100%;padding:.875rem;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s;background:#667eea;color:#fff}.lobby-button.primary{background:linear-gradient(135deg,#667eea,#764ba2);margin-bottom:1rem}.lobby-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.lobby-button:disabled{background:#ccc;cursor:not-allowed;transform:none}.divider{text-align:center;margin:1.5rem 0;position:relative}.divider:before,.divider:after{content:"";position:absolute;top:50%;width:40%;height:1px;background:#e0e0e0}.divider:before{left:0}.divider:after{right:0}.divider span{background:#fff;padding:0 1rem;color:#999;font-size:.9rem}.error-message{margin-top:1rem;padding:.75rem;background:#fee;border:1px solid #fcc;border-radius:6px;color:#c33;font-size:.9rem;text-align:center}.room-lobby-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:12px}.room-lobby-card{background:#fff;border-radius:12px;padding:1.25rem;width:100%;max-width:720px;box-shadow:0 8px 32px #0003}.lobby-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.room-code-display{display:flex;align-items:center;gap:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:8px;padding:.5rem 1rem;cursor:pointer;transition:transform .2s}.room-code-display:hover{transform:scale(1.02)}.room-code-label{color:#ffffffd9;font-size:.85rem}.room-code-value{color:#fff;font-size:1.5rem;font-weight:700;font-family:monospace;letter-spacing:.2em}.room-code-hint{color:#ffffffbf;font-size:.8rem}.connection-status{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#888}.status-dot{width:7px;height:7px;border-radius:50%}.status-dot.connected{background:#4caf50;box-shadow:0 0 6px #4caf5099}.status-dot.disconnected{background:#f44336;box-shadow:0 0 6px #f4433699}.lobby-body{display:flex;gap:1.25rem}.lobby-left,.lobby-right{flex:1;min-width:0}.players-list{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.5rem}.player-slot{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;border-radius:6px;border:1.5px solid #e0e0e0;font-size:.9rem}.player-slot.filled{background:#f5f5f5;border-color:#667eea}.player-slot.empty{background:#fff;border-style:dashed}.player-slot.ai-player{background:#e8f5e9;border-color:#4caf50}.ai-autofill-hint{text-align:center;font-size:.8rem;color:#4caf50;margin-bottom:.5rem;padding:.3rem;background:#e8f5e9;border-radius:4px}.player-info{display:flex;align-items:center;gap:.5rem;flex:1}.player-name{font-weight:600;color:#333}.player-slot.empty .player-name{color:#999;font-weight:400;font-style:italic}.ready-indicator{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;font-weight:700;font-size:.8rem}.ready-indicator.ready{background:#4caf50;color:#fff}.ready-indicator.not-ready{background:#e0e0e0;color:#999}.disconnected-label{font-size:.75rem;color:#f44336;font-weight:600}.ready-button{width:100%;padding:.6rem;font-size:1rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;transition:all .2s;background:#667eea;color:#fff;margin-bottom:.5rem}.ready-button.ready{background:#4caf50}.ready-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 8px #667eea66}.ready-button:disabled{background:#ccc;cursor:not-allowed;transform:none}.status-message{text-align:center;color:#666;font-size:.85rem;padding:.4rem;background:#f5f5f5;border-radius:4px}.config-panel{background:#f9f9f9;border-radius:6px;padding:.75rem 1rem;border:1px solid #e0e0e0}.config-title{font-size:.9rem;font-weight:600;color:#333;margin-bottom:.6rem}.config-section{margin-bottom:.6rem}.config-section:last-child{margin-bottom:0}.config-label{display:block;font-size:.8rem;color:#555;margin-bottom:.3rem;font-weight:500}.config-label input[type=checkbox]{margin-right:.4rem}.config-buttons{display:flex;gap:.4rem}.config-button{flex:1;padding:.35rem .5rem;font-size:.85rem;border:1.5px solid #e0e0e0;border-radius:5px;background:#fff;color:#666;cursor:pointer;transition:all .2s}.config-button:hover:not(:disabled){border-color:#667eea;color:#667eea}.config-button.active{background:#667eea;border-color:#667eea;color:#fff}.config-button:disabled{opacity:.5;cursor:not-allowed}.config-stepper{display:flex;align-items:center;gap:.75rem}.stepper-button{width:30px;height:30px;border:1.5px solid #e0e0e0;border-radius:5px;background:#fff;color:#667eea;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.stepper-button:hover:not(:disabled){border-color:#667eea;background:#f0f0ff}.stepper-button:disabled{opacity:.3;cursor:not-allowed}.stepper-value{font-size:1.1rem;font-weight:600;color:#333;min-width:30px;text-align:center}.config-readonly-hint{margin-top:.5rem;font-size:.8rem;color:#999;text-align:center;font-style:italic}.card{background:#fff;border:2px solid #333;border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:clamp(.9rem,2.5vw,1.3rem);cursor:pointer;transition:transform .15s,box-shadow .15s;min-width:36px;min-height:32px;position:relative;padding:4px 2px}.card:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 2px 8px #0000004d}.card.small{color:#333}.card.big{color:#c00;font-weight:600}.card.selected{transform:translateY(-4px);border-color:#2196f3;border-width:3px;box-shadow:0 4px 12px #2196f380}.card:disabled{cursor:not-allowed;opacity:.6}.suit-badge{position:absolute;top:4px;left:4px;font-size:.7rem;opacity:.6}.card-text{font-size:inherit;line-height:1.6}.card.dragging{opacity:.4}.card.dimmed{opacity:.35;pointer-events:none}@media(max-width:768px){.card{min-width:30px;font-size:clamp(.8rem,2.5vw,1.1rem)}}.action-buttons{position:fixed;bottom:0;left:0;right:0;display:flex;gap:12px;padding:16px;background:#fffffff2;border-top:2px solid #ddd;box-shadow:0 -2px 8px #0000001a;z-index:100;justify-content:center;flex-wrap:wrap}.action-button{min-height:44px;min-width:80px;padding:12px 24px;font-size:18px;font-weight:600;border:2px solid #333;border-radius:8px;background:#fff;color:#333;cursor:pointer;transition:all .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans CJK SC,Microsoft YaHei,sans-serif}.action-button:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0003}.action-button:active{transform:translateY(0)}.action-button-hu{background:linear-gradient(135deg,gold,#ffed4e);border-color:#d4af37;color:#8b4513;font-size:22px;min-width:100px;box-shadow:0 4px 12px #ffd70066}.action-button-hu:hover{background:linear-gradient(135deg,#ffed4e,gold);box-shadow:0 6px 16px #ffd70099}.action-button-pass{background:#f5f5f5;color:#666;border-color:#999}.action-button-pass:hover{background:#e0e0e0}@media(max-width:768px){.action-buttons{padding:12px;gap:8px}.action-button{min-width:70px;padding:10px 16px;font-size:16px}.action-button-hu{font-size:20px;min-width:90px}}.game-log{grid-area:log;display:flex;flex-direction:column;background:#fff;border-left:2px solid #ddd;height:100vh}.game-log-header{padding:16px;font-size:18px;font-weight:600;border-bottom:2px solid #ddd;background:#f8f8f8}.game-log-content{flex:1;overflow-y:auto;padding:12px;max-height:calc(100vh - 60px)}.game-log-entry{display:flex;align-items:center;gap:8px;padding:8px 12px;margin-bottom:4px;border-radius:6px;background:#f9f9f9;font-size:14px}.game-log-entry:hover{background:#f0f0f0}.player-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.player-name{font-weight:600;min-width:60px}.action-text{color:#555}@media(max-width:768px){.game-log{position:fixed;bottom:0;left:0;right:0;height:200px;border-left:none;border-top:2px solid #ddd;z-index:50}.game-log-content{max-height:140px}.game-log-entry{font-size:13px;padding:6px 10px}}.finished-screen{width:100%;display:flex;justify-content:center;padding:16px 0;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.finished-content{background:#fff;border-radius:16px;padding:24px 32px;max-width:400px;width:100%;box-shadow:0 4px 16px #00000026;text-align:center}.winner-announcement{margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #eee}.winner-player{font-size:28px;font-weight:700;margin-bottom:4px}.winner-text{font-size:20px;font-weight:600;color:#333}.score-breakdown{margin-bottom:16px}.score-header{font-size:20px;font-weight:600;margin-bottom:16px;color:#555}.score-table{display:flex;flex-direction:column;gap:12px}.score-row{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f9f9f9;border-radius:8px}.score-player{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:500}.player-dot{width:14px;height:14px;border-radius:50%}.score-value{font-size:24px;font-weight:700;font-family:Courier New,monospace}.score-positive{color:#2ecc71}.score-negative{color:#e74c3c}.restart-button{min-height:56px;padding:16px 48px;font-size:20px;font-weight:600;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #667eea66;width:100%}.restart-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.restart-button:active{transform:translateY(0)}@media(max-width:768px){.finished-content{padding:16px}.winner-player{font-size:22px}.winner-text{font-size:16px}.score-player{font-size:14px}.score-value{font-size:18px}.restart-button{min-height:44px;padding:10px 24px;font-size:16px}}.game-board-container{display:grid;grid-template-columns:1fr 300px;grid-template-areas:"board log";width:100%;height:100vh;overflow:hidden}.game-board{grid-area:board;width:100%;max-width:1400px;padding:8px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;margin:0 auto}.center-area{grid-area:center;background:#fff;border-radius:8px;padding:8px;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.phase-indicator{font-size:1.1rem;font-weight:700;color:#333}.deck-info{font-size:.95rem;color:#666}.last-discard{font-size:1.3rem;font-weight:700;color:#c00;padding:8px 16px;background:#f5f5f5;border-radius:8px}.players-grid{display:grid;grid-template-areas:".    top    ." "left center right" ".    bottom .";grid-template-columns:1fr 2fr 1fr;grid-template-rows:auto auto auto;gap:8px}.player-zone.pos-top{grid-area:top}.player-zone.pos-left{grid-area:left}.player-zone.pos-right{grid-area:right}.player-zone.pos-bottom{grid-area:bottom}.player-zone{background:#fff;border:2px solid #ddd;border-radius:8px;padding:8px;transition:border-color .3s}.player-zone.current{border-width:3px;box-shadow:0 0 12px #2196f34d}.player-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.player-avatar{padding:4px 10px;border-radius:12px;color:#fff;font-weight:700;font-size:.9rem}.card-count{font-size:.9rem;color:#666;font-weight:600}.hand-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(3,1fr);gap:4px;margin-bottom:4px}.hand-cell{min-height:36px}.hidden-hand{padding:12px;text-align:center;color:#999;font-style:italic;background:#f9f9f9;border-radius:6px;font-size:.85rem}.exposed-groups{margin-top:4px;padding-top:4px;border-top:1px solid #eee}.exposed-label{font-weight:600;color:#666;margin-bottom:2px;font-size:.85rem}.card-group{display:flex;align-items:center;gap:4px;margin-bottom:2px}.group-type{font-weight:700;color:#2196f3;min-width:30px;font-size:.85rem}.group-cards{display:flex;gap:2px}.group-card{padding:2px 4px;background:#f5f5f5;border-radius:3px;font-size:.8rem}.player-discards{margin-top:4px;padding-top:4px;border-top:1px solid #eee}.discards-label{font-weight:600;color:#999;margin-bottom:4px;font-size:.8rem}.discards-cards{display:flex;flex-wrap:wrap;gap:4px}.discard-card{padding:2px 6px;background:#f0f0f0;border-radius:3px;font-size:.8rem;color:#666}.action-area{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:100}.action-button{font-size:1.3rem;padding:16px 48px;background:#4caf50;color:#fff;border-radius:12px;font-weight:700;box-shadow:0 4px 12px #0003;transition:transform .2s,box-shadow .2s}.action-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #0000004d}.action-button:active:not(:disabled){transform:translateY(0)}@media(max-width:768px){.game-board-container{grid-template-columns:1fr;grid-template-areas:"board";height:auto}.game-board{padding:8px 8px 220px}.players-grid{grid-template-areas:"top" "left" "right" "bottom";grid-template-columns:1fr;grid-template-rows:auto}.hand-grid{gap:4px}.action-button{font-size:1.1rem;padding:12px 36px}}:root{--player-0: #e74c3c;--player-1: #3498db;--player-2: #2ecc71;--player-3: #f39c12}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;background:#f5f5f5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100%;display:flex;flex-direction:column}button{font-family:inherit;cursor:pointer;border:none;outline:none}button:disabled{cursor:not-allowed;opacity:.5}.start-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.start-title{font-size:4rem;font-weight:700;color:#fff;margin-bottom:3rem;text-shadow:2px 2px 8px rgba(0,0,0,.3)}.start-button{font-size:1.5rem;padding:1.5rem 3rem;background:#fff;color:#667eea;border-radius:12px;font-weight:700;box-shadow:0 8px 24px #0003;transition:all .3s ease}.start-button:hover{transform:translateY(-4px);box-shadow:0 12px 32px #0000004d}.start-button:active{transform:translateY(-2px)}@media(max-width:768px){.start-title{font-size:3rem;margin-bottom:2rem}.start-button{font-size:1.3rem;padding:1.2rem 2.5rem}}
