*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%}:root{--sat:env(safe-area-inset-top);--sab:env(safe-area-inset-bottom);--sal:env(safe-area-inset-left);--sar:env(safe-area-inset-right)}body{color:#fff;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;background:#111827;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}#root{flex-direction:column;display:flex}.btn{cursor:pointer;letter-spacing:.2px;border:none;border-radius:14px;width:100%;padding:.9rem 1.5rem;font-size:1rem;font-weight:700;transition:transform .1s,opacity .2s;display:block}.btn:active{transform:scale(.97)}.btn-primary{color:#fff;background:linear-gradient(135deg,#e94560,#c62a47)}.btn-secondary{color:#fffc;background:#ffffff1a}.btn:disabled{opacity:.4;cursor:default}.home-screen{min-height:100dvh;padding:calc(2rem + var(--sat)) 2rem calc(2rem + var(--sab));background:linear-gradient(145deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);justify-content:center;align-items:center;display:flex}.home-content{text-align:center;flex-direction:column;align-items:center;gap:3rem;display:flex}.logo{flex-direction:column;align-items:center;gap:.5rem;display:flex}.logo-music{font-size:5rem;animation:2s ease-in-out infinite pulse}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.logo-title{color:#fff;letter-spacing:-1px;margin:0;font-size:3.5rem;font-weight:800}.logo-subtitle{color:#fff9;margin:0;font-size:1.1rem}.home-actions{flex-direction:column;gap:1rem;width:100%;max-width:280px;display:flex}.home-hint{color:#ffffff59;font-size:.85rem}.home-mp-row{gap:.75rem;display:flex}.home-mp-row .btn{flex:1}.home-modal-title{color:#fff;margin:0 0 1.5rem;font-size:1.5rem;font-weight:700}.home-modal-fields{flex-direction:column;gap:1rem;width:100%;max-width:280px;margin-bottom:1.5rem;display:flex}.home-input{color:#fff;box-sizing:border-box;background:#1a1a1a;border:1px solid #333;border-radius:10px;outline:none;width:100%;padding:.75rem 1rem;font-size:1rem}.home-input:focus{border-color:#f5c518}.home-input-code{text-align:center;letter-spacing:.4em;text-transform:uppercase;font-size:1.5rem;font-weight:700}.home-goal-label{color:#aaa;flex-direction:column;gap:.5rem;font-size:.9rem;display:flex}.home-goal-slider{accent-color:#f5c518;width:100%}.spotify-btn{justify-content:center;align-items:center;gap:.5rem;display:flex}.spotify-connected{color:#1db954;border-color:#1db954}.spotify-dot{background:#1db954;border-radius:50%;width:8px;height:8px;animation:1.5s ease-in-out infinite spotifyPulse}@keyframes spotifyPulse{0%,to{opacity:1}50%{opacity:.4}}.home-genre-picker{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.home-genre-btn{color:#fff9;cursor:pointer;background:0 0;border:1.5px solid #fff3;border-radius:20px;padding:.35rem .9rem;font-size:.8rem}.home-genre-btn.active{color:#ffd32a;background:#ffd32a1a;border-color:#ffd32a}.song-card{perspective:800px;cursor:default;flex-shrink:0;width:160px;height:220px}.song-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .5s;position:relative}.song-card.revealed .song-card-inner{transform:rotateY(180deg)}.song-card-front,.song-card-back{backface-visibility:hidden;text-align:center;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;padding:1rem;display:flex;position:absolute;inset:0}.song-card-front{color:#fff;background:linear-gradient(135deg,#e94560,#c62a47)}.card-note{opacity:.6;font-size:2.5rem}.card-mystery{opacity:.8;margin:0;font-size:4rem;font-weight:800}.song-card-back{color:#fff;background:linear-gradient(135deg,#1f2937,#374151);border:2px solid #ffffff1a;transform:rotateY(180deg)}.song-card:not(.revealed) .song-card-back{visibility:hidden}.card-year{color:#ffd32a;margin:0;font-size:2rem;font-weight:800}.card-title{margin:0;font-size:.85rem;font-weight:700;line-height:1.3}.card-artist{color:#fff9;margin:0;font-size:.75rem}.timeline{-webkit-overflow-scrolling:touch;flex-direction:row;align-items:center;gap:6px;min-height:120px;padding:1rem 1rem 1.5rem;display:flex;overflow-x:auto}@keyframes previewPopIn{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.timeline-card-preview{background:#ffd32a14;border:2px dashed #ffd32a;border-radius:10px;flex-shrink:0;min-width:80px;max-width:100px;height:62px;animation:.2s cubic-bezier(.34,1.56,.64,1) forwards previewPopIn}@keyframes popIn{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.18)}to{transform:scale(1)}}.timeline-card.pop-in{animation:.4s cubic-bezier(.34,1.56,.64,1) forwards popIn}.timeline-card{text-align:center;background:#1f2937;border:1px solid #ffffff14;border-radius:10px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:2px;min-width:80px;max-width:100px;padding:.5rem .75rem;display:flex}.tc-year{color:#ffd32a;font-size:1rem;font-weight:800}.tc-year-hidden{color:#555;font-size:1rem;font-weight:800}.timeline-card.tentative{cursor:grab;touch-action:none;background:#161e2e;border:1.5px dashed #ffd32a80}.timeline-card.tentative:active{cursor:grabbing}.tc-title{color:#fff;white-space:nowrap;text-overflow:ellipsis;max-width:90px;font-size:.6rem;overflow:hidden}.tc-artist{color:#ffffff80;white-space:nowrap;text-overflow:ellipsis;max-width:90px;font-size:.55rem;overflow:hidden}.game-screen{color:#fff;background:#111827;flex-direction:column;min-height:100dvh;display:flex;position:relative}.game-topbar{padding:calc(1rem + var(--sat)) 1.25rem 1rem;background:#0000004d;justify-content:space-between;align-items:center;display:flex}.btn-back{color:#ffffff80;cursor:pointer;background:0 0;border:none;padding:.25rem;font-size:1.1rem}.deck-count{color:#fff6;font-size:.8rem}.card-area{flex-direction:column;align-items:center;gap:1rem;padding:1.5rem 1rem 1rem;display:flex}.card-area-label{color:#ffffffb3;text-align:center;margin:0;font-size:.95rem}.btn-play-pause{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff26;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.1rem;transition:background .15s;display:flex}.btn-play-pause:hover{background:#ffffff26}.card-draggable{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;transition:opacity .15s}.card-draggable.is-dragging{cursor:grabbing;opacity:.25}.card-draggable.no-drag{cursor:default}.card-ghost{pointer-events:none;z-index:100;opacity:.9;background:linear-gradient(135deg,#e94560,#c62a47);border-radius:10px;width:90px;height:62px;position:fixed;transform:rotate(-3deg)scale(1.05);box-shadow:0 8px 24px #0006}.timeline-area{border-top:1px solid #ffffff14;flex-direction:column;flex:1;margin-top:.5rem;display:flex}.timeline-label{color:#ffffff80;margin:0;padding:.75rem 1.25rem 0;font-size:.85rem}.timeline-count{color:#ffffff4d;font-size:.75rem}.game-footer{padding:1rem 1.25rem calc(1.5rem + var(--sab));flex-direction:column;gap:.75rem;display:flex}.result-banner{text-align:center;border-radius:12px;padding:.75rem 1rem;font-size:.95rem;font-weight:600}.result-banner.correct{color:#05c46b;background:#05c46b26;border:1px solid #05c46b4d}.result-banner.wrong{color:#e94560;background:#e9456026;border:1px solid #e945604d}.result-screen{min-height:100dvh;padding:calc(2rem + var(--sat)) 2rem calc(2rem + var(--sab));background:linear-gradient(145deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);justify-content:center;align-items:center;display:flex}.result-content{text-align:center;flex-direction:column;align-items:center;gap:1.5rem;width:100%;max-width:360px;display:flex}.trophy{font-size:4rem;animation:1s ease-in-out infinite alternate bounce}@keyframes bounce{0%{transform:translateY(0)}to{transform:translateY(-12px)}}.result-title{color:#fff;margin:0;font-size:2.2rem;font-weight:800}.result-sub{color:#ffffff80;margin:0;font-size:.95rem}.result-list{flex-direction:column;gap:.6rem;width:100%;display:flex}.result-row{background:#ffffff0d;border-left:4px solid;border-radius:10px;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.result-rank{color:#fff6;width:24px;font-size:.85rem}.result-player-name{text-align:left;color:#fff;flex:1;font-weight:600}.result-score{font-size:1.3rem;font-weight:800}.result-actions{flex-direction:column;gap:.75rem;width:100%;padding-top:.5rem;display:flex}.lobby-screen{color:#fff;min-height:100dvh;padding:calc(1rem + var(--sat)) 1.25rem calc(1.5rem + var(--sab));background:#0f0f0f;flex-direction:column;display:flex}.lobby-content{flex-direction:column;flex:1;align-items:center;gap:.5rem;padding-top:3rem;display:flex}.lobby-label{color:#888;text-transform:uppercase;letter-spacing:.1em;margin:0;font-size:.85rem}.lobby-code{letter-spacing:.25em;color:#f5c518;margin:.25rem 0;font-size:3.5rem;font-weight:800}.lobby-hint{color:#555;margin:0 0 2rem;font-size:.85rem}.lobby-players{flex-direction:column;gap:.5rem;width:100%;max-width:320px;margin-bottom:2rem;display:flex}.lobby-player{background:#1a1a1a;border-radius:10px;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.lobby-player-name{flex:1;font-size:1rem}.lobby-host-badge{color:#000;text-transform:uppercase;letter-spacing:.05em;background:#f5c518;border-radius:4px;padding:.15rem .4rem;font-size:.7rem;font-weight:700}.lobby-settings{flex-direction:column;align-items:center;gap:1.5rem;width:100%;max-width:320px;display:flex}.lobby-setting-label{color:#888;text-transform:uppercase;letter-spacing:.1em;flex-direction:column;align-items:center;gap:.5rem;font-size:.85rem;display:flex}.lobby-goal-row{align-items:center;gap:1.25rem;display:flex}.lobby-goal-btn{color:#fff;cursor:pointer;background:#1a1a1a;border:1px solid #333;border-radius:50%;width:2.5rem;height:2.5rem;font-size:1.25rem}.lobby-goal-value{color:#fff;text-align:center;min-width:2rem;font-size:2rem;font-weight:700}.lobby-goal-hint{color:#555;text-transform:none;letter-spacing:0;font-size:.8rem;font-style:italic}.lobby-waiting{color:#555;font-size:.95rem}.lobby-genre-picker{flex-wrap:wrap;justify-content:center;gap:.5rem;margin-bottom:.5rem;display:flex}.lobby-genre-btn{color:#fff9;cursor:pointer;background:0 0;border:1.5px solid #fff3;border-radius:20px;padding:.35rem .9rem;font-size:.8rem}.lobby-genre-btn.active{color:#ffd32a;background:#ffd32a1a;border-color:#ffd32a}.lobby-genre-display{color:#888;margin:0 0 .5rem;font-size:.85rem}.mp-game-screen{color:#fff;background:#0f0f0f;flex-direction:column;min-height:100dvh;display:flex}.card-draggable.is-tentative{opacity:.55}.mp-scores{flex-wrap:wrap;flex:1;justify-content:flex-end;gap:.5rem;display:flex}.mp-score-chip{white-space:nowrap;background:#1a1a1a;border:1px solid #333;border-radius:20px;padding:.2rem .6rem;font-size:.75rem}.mp-score-chip.me{color:#f5c518;border-color:#f5c518;font-weight:700}.mp-other-timelines{border-top:1px solid #1e1e1e;flex-direction:column;gap:.5rem;padding:0 1.25rem 1rem;display:flex}.mp-other-player{flex-direction:column;gap:.35rem;display:flex}.mp-other-label{color:#666;text-transform:uppercase;letter-spacing:.05em;margin:0;font-size:.75rem}.mp-other-score{color:#444;font-weight:600}.mp-mini-timeline-row{gap:.3rem;padding-bottom:.2rem;display:flex;overflow-x:auto}.mp-mini-timeline-row::-webkit-scrollbar{height:2px}.mp-mini-timeline-row::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:2px}.mp-mini-card-sm{opacity:.75;border:1.5px solid #0000;border-radius:6px;flex-direction:column;flex-shrink:0;gap:.15rem;width:54px;padding:.3rem;display:flex}.mp-mini-card-sm.starting{background:#161620;border-color:#2a2a2a}.mp-mini-card-sm.correct{background:#091809;border-color:#1e4d1e}.mp-mini-card-sm.wrong{background:#1a0909;border-color:#4d1e1e}.mp-mini-artist-sm{color:#777;white-space:nowrap;text-overflow:ellipsis;font-size:.5rem;display:block;overflow:hidden}.mp-mini-year-sm{color:#aaa;font-size:.65rem;font-weight:700}.mp-result-screen{color:#fff;background:#0f0f0f;flex-direction:column;min-height:100dvh;display:flex}.mp-result-header{padding:calc(2rem + var(--sat)) 1.25rem 1.5rem;text-align:center}.mp-result-winner{margin:0 0 .25rem;font-size:1.75rem;font-weight:800}.mp-result-sub{color:#666;margin:0;font-size:.85rem}.mp-result-timelines{flex-direction:column;flex:1;gap:1.25rem;padding:0 1.25rem;display:flex;overflow-y:auto}.mp-player-timeline{background:#1a1a1a;border:1px solid #2a2a2a;border-radius:12px;padding:1rem}.mp-player-timeline.winner{border-color:#f5c518}.mp-player-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.mp-player-name{font-size:1rem;font-weight:700}.mp-player-score{color:#f5c518;font-size:.9rem;font-weight:700}.mp-mini-timeline{gap:.4rem;padding-bottom:.25rem;display:flex;overflow-x:auto}.mp-mini-timeline::-webkit-scrollbar{height:3px}.mp-mini-timeline::-webkit-scrollbar-track{background:0 0}.mp-mini-timeline::-webkit-scrollbar-thumb{background:#333;border-radius:3px}.mp-mini-card{border:2px solid #0000;border-radius:8px;flex-direction:column;flex-shrink:0;gap:.25rem;width:72px;padding:.4rem .35rem;display:flex}.mp-mini-card.starting{background:#1e1e2a;border-color:#444}.mp-mini-card.correct{background:#0d2b0d;border-color:#2d6a2d}.mp-mini-card.wrong{background:#2b0d0d;border-color:#6a2d2d}.mp-mini-artist{color:#aaa;white-space:nowrap;text-overflow:ellipsis;font-size:.6rem;display:block;overflow:hidden}.mp-mini-year{color:#fff;font-size:.8rem;font-weight:700}.mp-result-footer{padding:1.5rem 1.25rem calc(1.5rem + var(--sab));justify-content:center;display:flex}
