:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;width:100vw;height:100vh;height:100dvh;overflow:hidden;background-color:#1a252f}#root{width:100%;height:100%}h1{font-size:3.2em;line-height:1.1}button{font-family:inherit;font-size:1em;padding:.6em 1.2em;border-radius:8px;cursor:pointer;border:none;outline:none}button:focus-visible{outline:2px solid #4a90d9;outline-offset:2px}.lobby-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;height:100dvh;background:linear-gradient(135deg,#152232,#1e3450,#152232);color:#fff;font-family:Inter,system-ui,sans-serif}.lobby-container h1{font-size:2.8rem;margin-bottom:.5rem;background:linear-gradient(135deg,#e2c066,#f5d98a);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:2px}.lobby-box{background:#243447;padding:2rem;border-radius:12px;color:#e0e0e0;box-shadow:0 8px 32px #0006;border:1px solid #345170;display:flex;flex-direction:column;gap:1.5rem;min-width:320px;width:90%;max-width:400px;box-sizing:border-box}.lobby-box input{padding:.8rem 1rem;border:1px solid #345170;border-radius:8px;font-size:1rem;background-color:#1a2a3a;color:#fff;outline:none}.lobby-box input:focus{border-color:#5aa0e8}.lobby-box input::placeholder{color:#5a6a7a}.lobby-actions{display:flex;flex-direction:column;gap:1rem}.lobby-actions>button{padding:.85rem 1.5rem;background-color:#5aa0e8;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:1rem;transition:background-color .2s,transform .1s}.lobby-actions>button:hover:not(:disabled){background-color:#4890d8;transform:translateY(-1px)}.lobby-actions>button:active:not(:disabled){transform:translateY(0)}.lobby-actions>button:disabled{background-color:#3a4a5a;color:#7a8a9a;cursor:not-allowed}.join-box{display:flex;gap:.5rem}.join-box input{flex:1;min-width:0}.join-box button{padding:.8rem 1.2rem;background-color:#5aa0e8;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:.95rem;transition:background-color .2s;white-space:nowrap}.join-box button:hover:not(:disabled){background-color:#4890d8}.join-box button:disabled{background-color:#3a4a5a;color:#7a8a9a;cursor:not-allowed}.solo-action{margin-top:1.5rem;width:90%;max-width:400px;box-sizing:border-box}.solo-action button{padding:.85rem 1.5rem;background-color:#6c5ce7!important;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:1rem;transition:background-color .2s,transform .1s;width:100%}.solo-action button:hover:not(:disabled){background-color:#5a4bd6!important;transform:translateY(-1px)}.solo-action button:active:not(:disabled){transform:translateY(0)}.solo-action button:disabled{background-color:#3a4a5a!important;color:#7a8a9a;cursor:not-allowed}.settings-overlay{position:fixed;inset:0;background-color:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.settings-modal{background-color:#1c2b3a;padding:30px;border-radius:12px;border:1px solid #2a3f55;width:300px;display:flex;flex-direction:column;gap:20px}.settings-modal h2{margin:0;color:#fff;text-align:center}.settings-field{display:flex;flex-direction:column;gap:8px}.settings-field label{color:#8a9ab0;font-size:.9rem}.settings-actions{display:flex;gap:10px;margin-top:10px}.settings-actions button{flex:1;padding:12px;border:none;border-radius:8px;color:#fff;cursor:pointer;font-weight:600;transition:none}.settings-btn-cancel{background-color:#3a4a5a}.settings-btn-cancel:hover{background-color:#4a5a6a}.settings-btn-confirm{background-color:#4a90d9}.settings-btn-confirm:hover{background-color:#3a7bc8}@media(max-width:768px){.lobby-container h1{font-size:2rem}.lobby-box,.solo-action{min-width:unset;width:80vw;max-width:300px}.lobby-box{padding:1.5rem;gap:1rem}.settings-modal{width:85vw;max-width:320px;padding:20px}}.auth-tabs{display:flex;margin-bottom:1rem;border-bottom:1px solid #345170}.auth-tab{flex:1;padding:.8rem;text-align:center;background:none;border:none;color:#8a9ab0;font-weight:600;cursor:pointer;outline:none;transition:color .2s,border-bottom-color .2s}.auth-tab.active{color:#5aa0e8;border-bottom:2px solid #5aa0e8}.auth-form{display:flex;flex-direction:column;gap:1rem}.auth-msg{font-size:.85rem;padding:.6rem .8rem;border-radius:6px;line-height:1.3}.auth-msg.error{background-color:#e74c3c26;border:1px solid rgba(231,76,60,.3);color:#ff6b6b}.auth-msg.success{background-color:#2ecc7126;border:1px solid rgba(46,204,113,.3);color:#2ecc71}.profile-box{display:flex;justify-content:space-between;align-items:center;background-color:#1a2a3a;padding:.8rem 1rem;border-radius:8px;border:1px solid #345170;margin-bottom:.5rem}.profile-box span{font-size:.95rem;color:#e0e0e0}.profile-box strong{color:#e2c066}.logout-btn{background-color:#e74c3c;color:#fff;border:none;padding:.4rem .8rem;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:600;transition:background-color .2s}.logout-btn:hover{background-color:#c0392b}.custom-select{position:relative;width:100%}.custom-select-trigger{padding:10px 16px;border-radius:8px;border:1px solid #2a3f55;background-color:#0f1923;color:#fff;font-size:1rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none}.custom-select-trigger:hover{border-color:#4a90d9}.custom-select-arrow{font-size:.7rem;margin-left:10px;transition:transform .15s}.custom-select-arrow.open{transform:rotate(180deg)}.custom-select-options{position:absolute;top:calc(100% + 4px);left:0;right:0;background-color:#1c2b3a;border:1px solid #2a3f55;border-radius:8px;max-height:300px;overflow-y:auto;z-index:1100;box-shadow:0 4px 16px #00000080}.custom-select-option{padding:10px 16px;color:#fff;cursor:pointer;font-size:1rem}.custom-select-option:hover{background-color:#2a3f55}.custom-select-option.selected{background-color:#4a90d9;font-weight:700}.card{width:90px;height:130px;background:#fff;border-radius:8px;box-shadow:inset 0 0 0 1px #ccc,2px 2px 5px #0000004d;display:flex;flex-direction:column;justify-content:space-between;padding:0;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s;box-sizing:border-box;position:relative;margin:0;transform-origin:center bottom}.card:hover{transform:translateY(-15px)}.card.disable-hover:hover{transform:none;cursor:default}.card.selected{box-shadow:inset 0 0 0 3px #f1c40f,0 10px 20px #f1c40f80;transform:translateY(-30px)}.card-top{font-size:1.2rem;font-weight:700}.card-center{font-size:2rem;align-self:center}.card-bottom{font-size:1.2rem;font-weight:700;transform:rotate(180deg)}.special{background:#fdf2f2}.card-image-full{width:100%;height:100%;object-fit:cover;display:block}.card-simplified{display:none;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background:#fff;border-radius:6px;box-sizing:border-box;color:var(--card-color)}.card-icon{font-size:1.2rem;margin-bottom:2px;line-height:1}.card-value{font-size:1.8rem;font-weight:800;line-height:1}@media(max-width:768px){.card-image-full{display:none}.card-image-full.always-show{display:block}.card-simplified{display:flex}.card{border:2px solid var(--card-color);box-shadow:2px 2px 5px #00000026}.card.is-special{border:none;box-shadow:inset 0 0 0 1px #ccc,2px 2px 5px #0000004d}.card.selected{box-shadow:0 10px 20px #f1c40f80;border:3px solid #f1c40f}.card.is-special.selected{box-shadow:inset 0 0 0 3px #f1c40f,0 10px 20px #f1c40f80}}.game-board{display:flex;flex-direction:column;justify-content:space-between;height:100%;width:100%;box-sizing:border-box;padding:15px 0 20px;background-color:#141e26;overflow:hidden;position:relative}.opponents{display:flex;justify-content:space-around;min-height:80px}.card{width:clamp(40px,11.5vw,90px);aspect-ratio:215 / 300;height:auto;background:#fff;border-radius:8px;box-shadow:inset 0 0 0 1px #ccc,3px 4px 8px #0009;display:flex;flex-direction:column;justify-content:space-between}.other-player{background:#ffffff0d;padding:10px;border-radius:10px;text-align:center;min-width:80px;flex:1;max-width:200px}.center-area{flex:1;display:flex;align-items:center;justify-content:center}.passing-ui,.waiting-ui{text-align:center;color:#f1c40f;position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);background-color:#1a252ff2;padding:40px;border-radius:15px;border:2px solid #f1c40f;box-shadow:0 10px 30px #000c;z-index:1000}.my-area{display:flex;flex-direction:column;align-items:center;padding:0 0 20px;width:100%;box-sizing:border-box}.my-status{height:40px;display:flex;justify-content:flex-start;align-items:center;margin-bottom:20px;width:100%;padding-left:20px;box-sizing:border-box}.my-hand{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;width:100%;padding:0 15px;box-sizing:border-box;gap:20px 5px}.card-wrapper{position:relative}.card-count{margin-top:5px;font-size:.9rem;color:#bdc3c7}.passing-targets{display:flex;flex-direction:column;gap:15px;margin-top:20px;align-items:center}.target-slot{display:flex;justify-content:space-between;align-items:center;width:min(300px,80vw);padding:12px 16px;background:#ffffff1a;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all .2s}.target-slot:hover{background:#fff3}.target-slot.active{border-color:#f1c40f;background:#f1c40f1a}.target-slot.filled{border-color:#2ecc71;background:#2ecc711a}.slot-indicator{font-size:.9rem;color:#bdc3c7}.target-slot.active .slot-indicator{color:#f1c40f;font-weight:700}.target-slot.filled .slot-indicator{color:#2ecc71}.card-badge{position:absolute;top:-12px;left:50%;transform:translate(-50%);background:#f1c40f;color:#111;font-size:.8rem;font-weight:600;padding:3px 8px;border-radius:4px;white-space:nowrap;z-index:30;pointer-events:none;box-shadow:0 2px 5px #00000080}.pass-btn{margin-top:20px;padding:12px 24px;font-size:1.1rem}.grand-badge{background:#f1c40f;color:#c0392b;font-size:.85rem;padding:4px 8px;border-radius:6px;margin-left:10px;display:inline-flex;align-items:center;font-weight:700;vertical-align:middle}.called-grand{border:2px solid #f1c40f;box-shadow:0 0 10px #f1c40f80}.grand-badge-self{background:#f1c40f;color:#c0392b;font-size:1.1rem;padding:6px 12px;border-radius:8px;font-weight:700;animation:pulse 2s infinite;box-shadow:0 4px 15px #f1c40f66}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media(max-width:768px){.game-board{padding:8px 0 10px}.opponents{min-height:60px;gap:5px;padding:0 5px}.other-player{padding:6px;min-width:60px;font-size:.75rem}.other-player .player-info,.card-count{font-size:.75rem}.grand-badge{font-size:.65rem;padding:2px 5px;margin-left:4px}.my-area{padding:0 0 10px}.my-status{height:30px;margin-bottom:10px;padding-left:10px}.grand-badge-self{font-size:.85rem;padding:4px 8px}.my-hand{gap:12px 2px;padding:0 8px}.card-wrapper{width:calc((100% - 14px) / 7)}.card-wrapper .card,.overlay-card-wrapper .card{width:100%!important;height:auto!important}.current-trick .card{width:60px!important;height:88px!important}.overlay-card-wrapper .card-icon{font-size:1.5rem;margin-bottom:4px}.overlay-card-wrapper .card-value{font-size:2.4rem}.card:hover{transform:translateY(-8px)}.card.selected{transform:translateY(-16px)}.card-badge{font-size:.75rem;padding:1px 4px;top:-22px;font-weight:600}.passing-targets{gap:10px;margin-top:12px}.target-slot{width:min(260px,75vw);padding:10px 14px;font-size:.85rem}.pass-btn{margin-top:12px;padding:10px 20px;font-size:.95rem}.passing-ui h3,.waiting-ui h3{font-size:1rem}.passing-ui p{font-size:.9rem}.game-overlay{padding:16px!important;width:92%!important;max-width:none!important;min-width:unset!important;box-sizing:border-box}.game-overlay h2{font-size:1.2rem!important}.game-overlay h3{font-size:1rem!important}.game-overlay p{font-size:.85rem!important}.waiting-ui{min-width:unset!important;width:90vw!important;max-width:400px!important;padding:20px!important}.round-result-overlay{padding:20px!important;min-width:unset!important;width:90%!important;max-width:360px!important}}.app-root{width:100%;height:100vh}.game-container{padding:2rem;background-color:#2c3e50;color:#fff;min-height:100vh}.player-list{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem}.player-item{background:#ffffff1a;padding:1rem;border-radius:8px;border:1px solid rgba(255,255,255,.2)}.error-toast{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);background-color:#e74c3c;color:#fff;padding:1rem 2rem;border-radius:50px;box-shadow:0 4px 15px #0000004d;z-index:1000}
