@import"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&display=swap";:root{--bg-primary: #1a1a1a;--bg-surface: #2a2a2a;--bg-elevated: #252525;--bg-modal: #2b2b2b;--bg-pattern: #333333;--text-primary: #ffffff;--text-secondary: #a0a0a0;--text-muted: #666666;--color-primary: #6c7aff;--color-primary-hover: #7a82ff;--color-primary-glow: rgba(108, 122, 255, .3);--color-accent: #ff4081;--color-accent-hover: #ff6090;--color-success: #10b981;--color-success-dark: #059669;--color-error: #ef4444;--color-error-dark: #dc2626;--color-warning: #f1c40f;--color-warning-glow: rgba(241, 196, 15, .4);--color-team-a: #3498db;--color-team-b: #e74c3c;--border-color: #333333;--border-light: #444444;--border-hover: #555555;--overlay: rgba(0, 0, 0, .7);--overlay-dark: rgba(0, 0, 0, .9);--glass-bg: rgba(255, 255, 255, .05);--glass-border: rgba(255, 255, 255, .1);--domino-bg: #f0f0f0;--domino-dot: #111111;--domino-shadow: rgba(0, 0, 0, .3);--domino-divider: #cccccc;--dot-color-1: #e68e30;--dot-color-2: #38a59d;--dot-color-3: #d0aa11;--dot-color-4: #8b5cf6;--dot-color-5: #4d9f58;--dot-color-6: #ee5287;--font-family: "Roboto Mono", monospace;--font-mono: "Roboto Mono", monospace;font-family:var(--font-family);line-height:1.5;font-weight:400}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;min-height:100dvh;background-color:var(--bg-primary);color:var(--text-primary);overflow:hidden}#root{width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column}button,input,textarea,select{font-family:inherit}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;background-color:var(--bg-surface);cursor:pointer;transition:border-color .25s}button:hover{border-color:var(--color-primary)}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.landing-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background-color:var(--bg-primary);background-image:radial-gradient(var(--bg-pattern) 1px,transparent 1px);background-size:20px 20px;color:var(--text-primary)}.title{font-size:4rem;margin-bottom:3rem;font-weight:800;background:linear-gradient(to right,var(--color-primary) 0%,var(--color-primary-hover) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 30px var(--color-primary-glow)}.menu{display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:300px}.menu-button{padding:1rem 2rem;font-size:1.2rem;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;font-weight:600;text-transform:uppercase;letter-spacing:1px}.menu-button.primary{background-color:var(--color-primary);color:var(--text-on-primary);box-shadow:0 4px 15px var(--color-primary-glow)}.menu-button.primary:hover{transform:translateY(-2px);background-color:var(--color-primary-hover);box-shadow:0 6px 20px #6c7aff80}.menu-button.secondary{background-color:var(--border-color);color:var(--text-primary);border:1px solid var(--border-light)}.menu-button.secondary:hover{background-color:var(--border-light);transform:translateY(-2px);border-color:var(--border-hover)}@media(max-width:768px){.title{font-size:3rem}.menu{max-width:250px}.menu-button{font-size:1rem;padding:.8rem 1.5rem}}@media(max-width:480px){.title{font-size:2.5rem}.menu{max-width:200px}}.modal-overlay{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background-color:var(--bg-modal);border:1px solid var(--border-light);border-radius:16px;padding:2rem;max-width:500px;width:90%;text-align:center;box-shadow:0 10px 25px #00000080;color:var(--text-primary)}.modal-content h2{margin:0 0 2rem;font-size:2rem;color:var(--text-primary)}.mode-options{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap;justify-content:center}.mode-button{flex:1;min-width:200px;padding:1.5rem;border:2px solid var(--border-light);border-radius:12px;background-color:var(--border-color);color:var(--text-primary);cursor:pointer;transition:all .2s ease;text-align:left}.mode-button h3{margin:0 0 .5rem;font-size:1.5rem}.mode-button p{margin:0;font-size:.9rem;color:var(--text-secondary)}.mode-button:hover{transform:translateY(-2px);border-color:var(--color-primary);background-color:var(--bg-elevated);box-shadow:0 4px 12px var(--color-primary-glow)}.mode-button.traditional:hover{border-color:var(--color-primary)}.mode-button.super:hover{border-color:var(--color-accent)}.close-button{padding:.8rem 2rem;border:1px solid var(--border-hover);background:none;color:var(--text-secondary);border-radius:8px;cursor:pointer;font-size:1rem;transition:all .2s ease}.close-button:hover{background-color:var(--border-color);color:var(--text-primary)}@media(max-width:768px){.mode-options{flex-direction:column}.mode-button{min-width:100%}}.game-over-modal-overlay{position:fixed;inset:0;background-color:var(--overlay-dark);display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.game-over-modal-content{background-color:var(--bg-surface);border:1px solid var(--glass-border);border-radius:16px;padding:2rem;width:90%;max-width:400px;text-align:center;box-shadow:0 10px 25px var(--overlay);color:var(--text-primary)}.game-over-modal-content .modal-header h2{margin:0 0 1rem;font-size:1.8rem;color:var(--text-primary)}.winner-announcement{margin:2rem 0}.winner-trophy{font-size:4rem;margin-bottom:1rem;animation:bounce .6s ease-in-out}.winner-text{font-size:2rem;font-weight:700;color:var(--color-primary)}.game-over-modal-content .modal-actions{display:flex;flex-direction:column;gap:12px;margin-top:2rem}.btn-play-again,.btn-main-menu{padding:.8rem 2rem;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:transform .2s,background-color .2s;border:none;width:100%}.btn-play-again{background-color:var(--color-primary);color:var(--text-on-primary)}.btn-play-again:hover{transform:translateY(-2px);background-color:var(--color-primary-hover)}.btn-main-menu{background-color:var(--border-light);color:var(--text-primary)}.btn-main-menu:hover{transform:translateY(-2px);background-color:var(--border-hover)}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.domino-tile{background-color:var(--domino-bg);border-radius:6px;box-shadow:2px 2px 5px var(--domino-shadow);display:flex;flex-direction:column;justify-content:space-between;padding:4px;box-sizing:border-box;cursor:pointer;transition:transform .2s,box-shadow .2s;position:relative}.domino-tile:hover{transform:translateY(-2px);box-shadow:4px 4px 8px var(--domino-shadow)}.domino-tile.horizontal{flex-direction:row}.domino-tile.disabled{opacity:.6;cursor:not-allowed;filter:grayscale(.5)}.domino-tile.highlight{box-shadow:0 0 0 3px var(--color-primary)}.domino-tile.medium{width:40px;height:80px}.domino-tile.medium.horizontal{width:80px;height:40px}.domino-tile.small{width:32px;height:64px;padding:3px}.domino-tile.small.horizontal{width:64px;height:32px}.domino-tile.small .dot{transform:scale(.85)}.domino-tile.large{width:60px;height:120px}.domino-tile.large.horizontal{width:120px;height:60px}.domino-half{flex:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:2px;gap:1px}.dot{background-color:var(--domino-dot);border-radius:50%;width:100%;height:100%;opacity:0;transform:scale(.7)}.dot.visible{opacity:1}.dot.colorful-1{background-color:var(--dot-color-1)}.dot.colorful-2{background-color:var(--dot-color-2)}.dot.colorful-3{background-color:var(--dot-color-3)}.dot.colorful-4{background-color:var(--dot-color-4)}.dot.colorful-5{background-color:var(--dot-color-5)}.dot.colorful-6{background-color:var(--dot-color-6)}.divider{background-color:var(--domino-divider);height:1px;width:100%;margin:2px 0}.domino-tile.horizontal .divider{height:100%;width:1px;margin:0 2px}.player-hand{background-color:var(--bg-surface);padding:1rem;border-radius:12px 12px 0 0;box-shadow:0 -4px 20px #0003;width:100%;max-width:800px;margin:0 auto;transition:transform .3s}.player-hand.active-turn{transform:translateY(-10px);border-top:3px solid var(--color-primary);animation:turn-glow 2s ease-in-out infinite}@keyframes turn-glow{0%,to{box-shadow:0 -4px 20px var(--color-primary-glow),0 0 30px #646cff26}50%{box-shadow:0 -4px 30px #646cff80,0 0 50px #646cff40}}.player-hand.disabled{opacity:.7;filter:grayscale(.3)}.hand-title{text-align:center;margin-bottom:1rem;font-weight:600;color:var(--text-secondary)}.active-turn .hand-title{color:var(--color-primary)}.tiles-container{display:flex;justify-content:center;gap:12px;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding-top:10px;padding-bottom:8px;scrollbar-width:none}.tiles-container::-webkit-scrollbar{display:none}.tiles-container .domino-tile{flex-shrink:0}@media(max-width:600px){.tiles-container{gap:4px;justify-content:flex-start}.tiles-container:before,.tiles-container:after{content:"";margin:auto;flex:0 0 10px}}.reorder-toggle{position:absolute;bottom:calc(100% + 8px);right:12px;display:flex;align-items:center;gap:6px;padding:6px 12px;background-color:var(--bg-elevated);border:2px solid var(--border-color);border-radius:20px;color:var(--text-secondary);font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s ease;z-index:10}.reorder-toggle:hover{background-color:var(--bg-hover);border-color:var(--color-primary);color:var(--color-primary)}.reorder-toggle.active{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--text-on-primary)}.reorder-icon{font-size:1.1rem;line-height:1}.reorder-label{line-height:1}.player-hand{position:relative}.hand-badge{position:absolute;bottom:calc(100% + 8px);left:12px;display:flex;align-items:center;gap:6px;padding:6px 12px;background:linear-gradient(135deg,#ffd70033,#ffc10726);border:2px solid rgba(255,215,0,.6);border-radius:20px;z-index:10;animation:hand-glow 2s ease-in-out infinite}@keyframes hand-glow{0%,to{box-shadow:0 0 8px #ffd7004d}50%{box-shadow:0 0 16px #ffd70099}}.hand-crown{font-size:1.1rem;line-height:1;animation:crown-bounce 2s ease-in-out infinite}@keyframes crown-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}.hand-label{font-size:.85rem;font-weight:500;color:var(--color-warning, #f1c40f);line-height:1}.player-hand.the-hand{border-top-color:var(--color-warning, #f1c40f)}.player-hand.reorder-mode{border-top:3px solid var(--color-accent, #ff9800);animation:none}.player-hand.reorder-mode .tiles-container{gap:16px}.tile-wrapper{flex-shrink:0}.tile-wrapper.reorder-active{position:relative;cursor:grab;transition:transform .2s ease,opacity .2s ease}.tile-wrapper.reorder-active:active{cursor:grabbing}.tile-wrapper.dragging{opacity:.5;transform:scale(.95)}.tile-wrapper.drop-target{transform:translate(10px)}.tile-wrapper.drop-target:before{content:"";position:absolute;left:-10px;top:0;bottom:0;width:4px;background-color:var(--color-primary);border-radius:2px;animation:pulse-indicator .6s ease-in-out infinite}@keyframes pulse-indicator{0%,to{opacity:1;transform:scaleY(1)}50%{opacity:.7;transform:scaleY(.9)}}.flip-indicator{position:absolute;bottom:-8px;left:50%;transform:translate(-50%);background-color:var(--color-accent, #ff9800);color:#fff;font-size:.75rem;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:.8;pointer-events:none;transition:opacity .2s ease}.tile-wrapper.flipped .flip-indicator{background-color:var(--color-primary)}.tile-wrapper:hover .flip-indicator{opacity:1}.reorder-hint{text-align:center;font-size:.75rem;color:var(--text-muted);margin-top:8px;opacity:.8}@media(max-width:600px){.reorder-toggle{bottom:calc(100% + 6px);right:8px;padding:4px 10px;font-size:.8rem}.reorder-icon{font-size:1rem}.player-hand.reorder-mode .tiles-container{gap:10px}.flip-indicator{width:16px;height:16px;font-size:.65rem;bottom:-6px}.hand-badge{bottom:calc(100% + 6px);left:8px;padding:4px 10px}.hand-crown{font-size:1rem}.hand-label{font-size:.8rem}}.game-history-container{flex:1;min-height:500px;overflow-y:auto;background-color:var(--glass-bg);border-radius:8px;padding:12px;margin-top:8px}.history-header{font-size:.85rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border-color)}.history-empty{color:var(--text-muted);font-style:italic;text-align:center;padding:20px}.history-events{display:flex;flex-direction:column;gap:8px}.history-event{font-size:.85rem;line-height:1.4}.round-start{margin:12px 0}.round-start:first-child{margin-top:0}.round-divider{display:flex;align-items:center;gap:8px}.round-divider:before,.round-divider:after{content:"";flex:1;height:1px;background:linear-gradient(to right,transparent,var(--border-light),transparent)}.round-label{color:var(--text-secondary);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:1px;white-space:nowrap}.round-winner-note{color:var(--color-success);font-size:.75rem;text-align:center;margin-top:4px;font-style:italic}.play-event{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 8px;background-color:var(--glass-bg);border-radius:4px}.player-name{color:var(--text-primary);font-weight:500}.action-text{color:var(--text-muted)}.tile-wrapper{display:inline-flex;transform-origin:left center;margin:-4px 0}.side-indicator{color:var(--text-muted);font-size:.75rem;font-weight:500}.pass-event{padding:6px 8px;background-color:color-mix(in srgb,var(--color-error) 5%,transparent);border-radius:4px;border-left:2px solid color-mix(in srgb,var(--color-error) 30%,transparent)}.pass-header{display:flex;align-items:center;gap:6px}.pass-event .action-text{color:var(--color-error)}.blocked-info{color:var(--text-secondary);font-size:.75rem;margin-top:2px;padding-left:4px;font-style:italic}.game-history-container::-webkit-scrollbar{width:6px}.game-history-container::-webkit-scrollbar-track{background:transparent}.game-history-container::-webkit-scrollbar-thumb{background-color:var(--border-light);border-radius:3px}.game-history-container::-webkit-scrollbar-thumb:hover{background-color:var(--border-hover)}.live-event-feed{position:absolute;top:70px;left:12px;z-index:100;display:flex;flex-direction:column;gap:6px;pointer-events:none;max-width:220px}.live-event{display:flex;align-items:center;gap:5px;padding:6px 10px;background:var(--notification-bg);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:6px;border:1px solid var(--border-color);box-shadow:0 2px 8px var(--domino-shadow);font-size:.8rem;color:var(--text-primary);animation:slideIn .3s ease-out;transition:opacity .5s ease-out;white-space:nowrap}.live-event.fading{opacity:.3}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.event-player{font-weight:600;color:var(--text-primary)}.event-action{color:var(--text-secondary)}.event-action.pass{color:var(--color-error)}.event-tile{display:inline-flex;transform:scale(.55);transform-origin:center;margin:-8px -4px}.event-side{color:var(--text-muted);font-size:.7rem}.event-blocked{color:var(--color-error);font-size:.75rem}.live-event.pass{background:color-mix(in srgb,var(--color-error) 15%,var(--notification-bg));border-left:3px solid var(--color-error)}@media(max-width:480px){.live-event-feed{top:60px;left:8px;max-width:180px}.live-event{padding:4px 8px;font-size:.7rem;gap:4px}.event-tile{transform:scale(.45);margin:-10px -6px}}@media(max-width:350px){.live-event-feed{display:none}}.emoji-reactions-container{position:fixed;bottom:0;left:0;right:0;height:100vh;pointer-events:none;overflow:hidden;z-index:200}.emoji-bubble{position:absolute;bottom:-60px;animation:bubbleUp ease-out forwards;will-change:transform,opacity;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));display:flex;flex-direction:column;align-items:center}.emoji-sender{font-size:.65rem;color:var(--text-primary);background-color:var(--bg-elevated);padding:2px 8px;border-radius:10px;white-space:nowrap;margin-top:-4px;opacity:.9;font-weight:500;box-shadow:0 1px 3px #0000004d}@keyframes bubbleUp{0%{opacity:1;transform:translateY(0) scale(.5) rotate(-15deg)}10%{opacity:1;transform:translateY(-10vh) scale(1) rotate(0)}20%{transform:translateY(-20vh) scale(1.05) rotate(5deg)}30%{transform:translateY(-30vh) scale(1) rotate(-3deg)}40%{transform:translateY(-40vh) scale(1.02) rotate(2deg)}50%{transform:translateY(-50vh) scale(1) rotate(-1deg)}60%{opacity:1;transform:translateY(-60vh) scale(.98) rotate(1deg)}70%{opacity:.9;transform:translateY(-70vh) scale(.95) rotate(-2deg)}80%{opacity:.7;transform:translateY(-80vh) scale(.9) rotate(1deg)}90%{opacity:.4;transform:translateY(-88vh) scale(.85) rotate(0)}to{opacity:0;transform:translateY(-95vh) scale(.8) rotate(0)}}@keyframes sway{0%,to{margin-left:0}25%{margin-left:10px}75%{margin-left:-10px}}@media(max-width:480px){.emoji-bubble{font-size:1.8rem!important}}@media(min-width:1024px){.emoji-bubble{font-size:3rem!important}}.round-end-modal-overlay{position:fixed;inset:0;background-color:var(--overlay-dark);display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .3s ease-out}.round-end-modal-content{background-color:var(--bg-surface);border:1px solid var(--glass-border);border-radius:16px;padding:2rem;width:90%;max-width:400px;text-align:center;box-shadow:0 10px 25px var(--overlay);color:var(--text-primary);animation:scaleIn .3s cubic-bezier(.175,.885,.32,1.275) both}.modal-header h2{margin:0 0 .5rem;font-size:1.8rem;color:var(--text-primary)}.round-number{font-size:.9rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px;margin-bottom:1.5rem}.winner-section{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;gap:1rem}.winner-info{display:flex;flex-direction:column;gap:.5rem}.winner-name{font-size:1.4rem;font-weight:700;color:var(--color-primary)}.win-method{font-size:1rem;color:var(--text-secondary);font-style:italic}.winning-tile-display{transform:scale(1.2);margin:1rem 0}.points-section{background:var(--glass-bg);border-radius:12px;padding:1rem;margin-bottom:2rem;border:1px solid var(--glass-border)}.points-label{font-size:.9rem;color:var(--text-secondary);margin-bottom:.5rem}.points-value{font-size:2.5rem;font-weight:800;color:var(--color-primary);line-height:1}.points-breakdown{font-size:.8rem;color:var(--text-secondary);margin-top:.5rem}.modal-actions{display:flex;justify-content:center}.btn-dismiss{background-color:var(--color-primary);border:none;padding:.8rem 2rem;border-radius:8px;color:var(--text-on-primary);font-weight:600;font-size:1rem;cursor:pointer;transition:transform .2s,background-color .2s}.btn-dismiss:hover{transform:translateY(-2px);background-color:var(--color-primary-hover)}.btn-dismiss:active{transform:translateY(0)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.team-modal-overlay{position:fixed;inset:0;background-color:var(--overlay-dark);display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.team-modal-content{background-color:var(--bg-modal);border:1px solid var(--border-light);border-radius:16px;padding:2rem;width:90%;max-width:600px;box-shadow:0 10px 25px #00000080;color:var(--text-primary)}.team-modal-header{text-align:center;margin-bottom:2rem}.team-modal-header h2{margin:0 0 .5rem;font-size:2rem;color:var(--text-primary)}.team-modal-description{margin:0;font-size:.95rem;color:var(--text-secondary)}.teams-container{display:flex;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}.team-column{flex:1;display:flex;flex-direction:column}.team-header{text-align:center;color:var(--text-muted);margin:0 0 1rem;font-size:1.1rem;text-transform:uppercase;letter-spacing:1px}.team-divider{width:1px;background-color:var(--border-light);margin:2.5rem 0 0}.team-slots-column{display:flex;flex-direction:column;gap:1rem}.team-slot{background-color:var(--border-color);border:2px solid var(--border-light);border-radius:12px;padding:.75rem;transition:all .2s;min-height:60px;display:flex;flex-direction:column;justify-content:center}.team-slot.available{border-style:dashed;background-color:var(--glass-bg)}.team-slot.occupied{border-color:var(--color-primary);border-style:solid}.team-slot.current-user{background-color:var(--bg-elevated);border-color:var(--color-primary-hover)}.slot-player-info{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.slot-icon{font-size:1.5rem}.slot-name{font-size:1.1rem;font-weight:600;color:var(--text-primary)}.slot-you{font-size:.85rem;color:var(--color-primary);font-weight:600}.btn-edit-name{background:none;border:none;padding:.15rem .25rem;cursor:pointer;font-size:.9rem;opacity:.7;transition:opacity .2s,transform .2s;margin-left:.25rem}.btn-edit-name:hover{opacity:1;transform:scale(1.1)}.slot-waiting{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-style:italic;font-size:.95rem}.btn-join-slot-large{width:100%;padding:.6rem;background-color:var(--color-primary);color:var(--text-on-primary);border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.btn-join-slot-large:hover{background-color:var(--color-primary-hover);transform:translateY(-2px);box-shadow:0 4px 12px var(--color-primary-glow)}.btn-switch-slot{width:100%;padding:.6rem;background-color:transparent;color:var(--color-primary-hover);border:1px dashed var(--color-primary-hover);border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-switch-slot:hover{background-color:var(--color-primary-glow);transform:translateY(-2px)}.btn-remove-player{width:100%;padding:.4rem;background-color:transparent;color:var(--color-accent);border:1px solid var(--color-accent);border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s;margin-top:.5rem}.btn-remove-player:hover{background-color:color-mix(in srgb,var(--color-accent) 15%,transparent)}.team-modal-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}.btn-share-link{padding:.6rem 1.2rem;background-color:var(--border-light);color:var(--text-primary);border:1px solid var(--border-hover);border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-share-link:hover{background-color:var(--border-hover);transform:translateY(-2px)}.btn-close-modal{padding:.6rem 1.2rem;background-color:var(--color-primary);color:var(--text-on-primary);border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-close-modal:hover{background-color:var(--color-primary-hover);transform:translateY(-2px)}.team-modal-footer{text-align:center;margin-top:1.5rem;font-size:.95rem;color:var(--text-secondary);font-style:italic}@media(max-width:768px){.teams-container{flex-direction:column;gap:2rem}.team-divider{width:100%;height:1px;margin:0}.team-modal-content{padding:1.5rem;width:95%}.team-modal-header h2{font-size:1.5rem}}.username-modal-overlay{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.username-modal-content{background-color:var(--bg-modal);border:1px solid var(--border-light);border-radius:16px;padding:2rem;width:90%;max-width:400px;text-align:center;box-shadow:0 10px 25px #00000080;color:var(--text-primary)}.username-modal-content h2{margin:0 0 .5rem;font-size:1.8rem;color:var(--text-primary)}.username-modal-description{margin:0 0 1.5rem;font-size:.9rem;color:var(--text-secondary)}.username-input{width:100%;padding:.75rem;font-size:1.1rem;border:2px solid var(--border-light);border-radius:8px;background-color:var(--border-color);color:var(--text-primary);text-align:center;transition:border-color .2s;box-sizing:border-box}.username-input:focus{outline:none;border-color:var(--color-primary)}.username-error{color:var(--color-accent);font-size:.85rem;margin-top:.5rem}.username-modal-actions{display:flex;gap:12px;margin-top:1.5rem;justify-content:center}.btn-save{padding:.8rem 2rem;background-color:var(--color-primary);color:var(--text-on-primary);border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-save:hover{background-color:var(--color-primary-hover);transform:translateY(-2px)}.btn-cancel-username{padding:.8rem 2rem;background-color:var(--border-light);color:var(--text-primary);border:1px solid var(--border-hover);border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-cancel-username:hover{background-color:var(--border-hover);transform:translateY(-2px)}.welcome-overlay{position:fixed;inset:0;background:var(--overlay-dark);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.welcome-modal{background:var(--bg-modal);border-radius:16px;padding:32px;max-width:550px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000080;border:1px solid var(--border-color);animation:modalSlideIn .4s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.welcome-header{text-align:center;margin-bottom:28px}.welcome-title{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin:0 0 8px;background:linear-gradient(135deg,var(--color-primary),var(--color-accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.welcome-subtitle{color:var(--text-secondary);font-size:1rem;margin:0 0 20px}.step-indicator{display:flex;align-items:center;justify-content:center;gap:0}.step-dot{width:12px;height:12px;border-radius:50%;background:var(--border-color);transition:all .3s ease}.step-dot.active{background:var(--color-primary);box-shadow:0 0 8px var(--color-primary-glow)}.step-line{width:40px;height:2px;background:var(--border-color)}.welcome-section{animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translate(10px)}to{opacity:1;transform:translate(0)}}.section-title{font-size:1.1rem;font-weight:600;color:var(--text-primary);margin:0 0 4px;text-align:center}.section-description{color:var(--text-muted);font-size:.875rem;margin:0 0 20px;text-align:center}.theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:24px}.theme-card{display:flex;flex-direction:column;align-items:center;padding:16px 12px;background:var(--bg-surface);border:2px solid var(--border-color);border-radius:12px;cursor:pointer;transition:all .2s ease}.theme-card:hover{border-color:var(--border-hover);background:var(--bg-elevated)}.theme-card.selected{border-color:var(--color-primary);background:var(--bg-elevated);box-shadow:0 0 0 3px var(--color-primary-glow)}.theme-preview-large{width:60px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;border:1px solid rgba(128,128,128,.3)}.preview-accent-large{width:24px;height:24px;border-radius:6px}.theme-label{font-size:.95rem;font-weight:600;color:var(--text-primary);margin-bottom:2px}.theme-description{font-size:.7rem;color:var(--text-muted);text-align:center}.domino-style-options{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:24px}.style-option{display:flex;flex-direction:column;align-items:center;padding:20px 16px;background:var(--bg-surface);border:2px solid var(--border-color);border-radius:12px;cursor:pointer;transition:all .2s ease}.style-option:hover{border-color:var(--border-hover);background:var(--bg-elevated)}.style-option.selected{border-color:var(--color-primary);background:var(--bg-elevated);box-shadow:0 0 0 3px var(--color-primary-glow)}.domino-preview-container{margin-bottom:12px}.domino-svg{display:block;border-radius:8px;box-shadow:0 4px 12px #0003}.style-label{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:4px}.style-description{font-size:.8rem;color:var(--text-muted)}.language-options{display:flex;gap:16px;justify-content:center;margin-bottom:24px}.language-option{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 32px;background:var(--bg-surface);border:2px solid var(--border-color);border-radius:16px;cursor:pointer;transition:all .2s ease;min-width:140px}.language-option:hover{border-color:var(--border-hover);background:var(--bg-elevated);transform:translateY(-2px)}.language-option.selected{border-color:var(--color-primary);background:var(--bg-elevated);box-shadow:0 0 0 3px var(--color-primary-glow)}.language-flag{font-size:3rem;line-height:1}.language-name{font-size:1.1rem;font-weight:600;color:var(--text-primary)}.welcome-button{width:100%;padding:14px 24px;background:linear-gradient(135deg,var(--color-primary),var(--color-primary-hover));color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 14px var(--color-primary-glow)}.welcome-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px var(--color-primary-glow)}.welcome-button:active{transform:translateY(0)}@media(max-width:500px){.welcome-modal{padding:24px 20px}.welcome-title{font-size:1.4rem}.theme-grid,.domino-style-options{grid-template-columns:1fr}.domino-svg{width:50px;height:92px}}.toast-container{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);z-index:10000;animation:slideUp .3s ease-out}.toast-content{display:flex;align-items:center;gap:.75rem;color:var(--text-primary);padding:1rem 1.5rem;border-radius:.75rem;font-weight:500;min-width:250px;max-width:500px}.toast-content.toast-success{background:linear-gradient(135deg,var(--color-success) 0%,var(--color-success-dark) 100%);box-shadow:0 10px 40px var(--overlay),0 4px 12px #0000004d}.toast-content.toast-error{background:linear-gradient(135deg,var(--color-error) 0%,var(--color-error-dark) 100%);box-shadow:0 10px 40px var(--overlay),0 4px 12px #0000004d}.toast-icon{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;background:#ffffff40;border-radius:50%;font-size:1rem;flex-shrink:0}.toast-message{font-size:.95rem;line-height:1.4}@keyframes slideUp{0%{opacity:0;transform:translate(-50%) translateY(20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media(max-width:640px){.toast-container{left:1rem;right:1rem;width:calc(100% - 2rem);transform:none;animation:slideUpMobile .3s ease-out}.toast-content{min-width:unset;width:100%;max-width:100%;box-sizing:border-box}}@keyframes slideUpMobile{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.side-menu-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.side-menu-backdrop.open{opacity:1;visibility:visible}.side-menu-drawer{position:fixed;top:0;right:-300px;width:300px;height:100%;background-color:var(--bg-primary);box-shadow:-2px 0 8px #00000080;z-index:999;transition:right .3s ease;display:flex;flex-direction:column;color:var(--text-primary)}.side-menu-drawer.open{right:0}.side-menu-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--border-color)}.side-menu-header h2{margin:0;font-size:1.5rem;font-weight:600}.close-button{background:none;border:none;color:var(--text-muted);font-size:2rem;cursor:pointer;padding:0;line-height:1;transition:color .2s}.close-button:hover{color:var(--text-primary)}.side-menu-content{padding:20px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.menu-action-button{background:none;color:var(--text-primary);padding:12px;border:none;border-radius:4px;cursor:pointer;font-weight:700;width:100%;text-align:left;transition:background-color .2s}.menu-action-button:hover{background-color:var(--border-color)}.menu-settings-section{border-top:1px solid var(--border-color);padding-top:16px;margin-top:8px}.menu-section-label{font-size:.85rem;color:var(--text-muted);margin-bottom:12px;text-transform:uppercase;letter-spacing:.05em}.menu-toggle-label{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;cursor:pointer;border-radius:4px;transition:background-color .2s}.menu-toggle-label:hover{background-color:var(--border-color)}.menu-checkbox{width:18px;height:18px;cursor:pointer;accent-color:var(--color-primary)}.menu-setting-row{display:flex;flex-direction:column;gap:8px;padding:8px 12px;margin-top:8px}.menu-setting-label{font-size:.9rem;color:var(--text-primary)}@media(max-width:480px){.side-menu-drawer{width:85%;right:-85%}}.history-panel-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.history-panel-backdrop.open{opacity:1;visibility:visible}.history-panel-drawer{position:fixed;top:0;left:-320px;width:320px;height:100%;background-color:var(--bg-primary);box-shadow:2px 0 8px #00000080;z-index:999;transition:left .3s ease;display:flex;flex-direction:column;color:var(--text-primary)}.history-panel-drawer.open{left:0}.history-panel-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--border-color)}.history-panel-header h2{margin:0;font-size:1.5rem;font-weight:600;display:flex;align-items:center;gap:10px}.history-panel-header h2 svg{flex-shrink:0}.history-panel-close{background:none;border:none;color:var(--text-muted);font-size:2rem;cursor:pointer;padding:0;line-height:1;transition:color .2s}.history-panel-close:hover{color:var(--text-primary)}.history-panel-content{padding:16px;flex:1;overflow-y:auto;display:flex;flex-direction:column}.history-panel-content .game-history-container{border-top:none;padding:0;margin-top:0;min-height:auto;background-color:transparent;border-radius:0}.history-panel-content .history-header{display:none}@media(max-width:480px){.history-panel-drawer{width:85%;left:-85%}}.theme-selector{display:flex;flex-direction:column;gap:8px}.theme-options{display:flex;gap:8px;flex-wrap:wrap}.theme-option{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;background:none;border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:70px}.theme-option:hover{border-color:var(--border-hover);background-color:var(--glass-bg)}.theme-option.selected{border-color:var(--color-primary);background-color:var(--glass-bg)}.theme-preview{width:40px;height:40px;border-radius:6px;overflow:hidden;box-shadow:0 2px 4px #0003}.preview-bg{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:flex-end;padding:4px;box-sizing:border-box}.preview-accent{width:16px;height:16px;border-radius:4px}.theme-name{font-size:.75rem;color:var(--text-secondary);font-weight:500}.theme-option.selected .theme-name{color:var(--color-primary)}.language-selector{display:flex;flex-direction:column;gap:8px}.language-selector-options{display:flex;gap:8px;flex-wrap:wrap}.language-selector-option{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 12px;background:none;border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:80px}.language-selector-option:hover{border-color:var(--border-hover);background-color:var(--glass-bg)}.language-selector-option.selected{border-color:var(--color-primary);background-color:var(--glass-bg)}.language-selector-flag{font-size:1.5rem;line-height:1}.language-selector-name{font-size:.75rem;color:var(--text-secondary);font-weight:500}.language-selector-option.selected .language-selector-name{color:var(--color-primary)}.emoji-picker-wrapper{position:absolute;bottom:calc(100% + 8px);right:120px;z-index:10}.emoji-picker-trigger{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;display:flex;align-items:center;justify-content:center;background-color:var(--bg-elevated);border:2px solid var(--border-color);border-radius:50%;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.emoji-picker-trigger:hover:not(.disabled){background-color:var(--bg-hover);border-color:var(--color-primary);transform:scale(1.05)}.emoji-picker-trigger.active{background-color:var(--color-primary);border-color:var(--color-primary)}.emoji-picker-trigger.disabled{opacity:.5;cursor:not-allowed}.emoji-picker-icon{font-size:1.1rem;line-height:1}.emoji-picker-popup{position:absolute;bottom:calc(100% + 8px);right:0;background:var(--bg-modal);border-radius:16px;border:1px solid var(--border-color);box-shadow:0 8px 24px var(--overlay);padding:8px;animation:popupFadeIn .2s ease-out}@keyframes popupFadeIn{0%{opacity:0;transform:translateY(10px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.emoji-picker-grid{display:flex;gap:4px;flex-wrap:wrap;max-width:200px}.emoji-option{width:44px;height:44px;border-radius:10px;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.6rem;transition:all .15s ease}.emoji-option:hover{background:var(--border-color);transform:scale(1.15)}.emoji-option:active{transform:scale(.95)}@media(max-width:600px){.emoji-picker-wrapper{bottom:calc(100% + 6px);right:95px}.emoji-picker-trigger{width:28px;height:28px;min-width:28px;min-height:28px}.emoji-picker-icon{font-size:.95rem}.emoji-option{width:38px;height:38px;font-size:1.4rem}.emoji-picker-grid{max-width:170px}}.domino-board-layout{width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;background-color:var(--bg-primary);color:var(--text-primary);overflow:hidden;position:relative}.board-header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background-color:var(--bg-elevated);border-bottom:1px solid var(--border-color);height:60px;box-sizing:border-box;gap:8px}.header-icon-button{background:none;border:none;color:var(--text-primary);font-size:24px;cursor:pointer;padding:8px;border-radius:8px;transition:background-color .2s;flex-shrink:0}.header-icon-button:hover{background-color:var(--border-color)}.score-board{display:flex;align-items:center;gap:12px;font-family:var(--font-mono)}.team-score{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:4px;background-color:var(--border-color)}.team-score.my-team{background-color:var(--my-team-bg);border:1px solid var(--color-team-a)}.team-label{font-size:.9rem;color:var(--text-secondary)}.score-value{font-size:1.2rem;font-weight:700;color:var(--text-primary)}.score-divider{color:var(--border-hover);font-weight:700}.game-status{display:flex;flex-direction:column;align-items:flex-end;font-size:.9rem}.turn-indicator{display:flex;gap:6px;align-items:center}.turn-label{color:var(--text-muted)}.turn-player{color:var(--text-primary);font-weight:700;background-color:var(--border-light);padding:2px 6px;border-radius:3px}.game-over-text{color:var(--color-team-b);font-weight:700}.last-action-compact{font-size:.75rem;color:var(--text-muted);margin-top:2px}.opponents-info{display:flex;justify-content:center;gap:20px;padding:10px;background-color:var(--bg-primary);z-index:10}.opponent-badge{display:flex;flex-direction:column;align-items:center;padding:4px 12px;background-color:var(--bg-elevated);border-radius:8px;border:2px solid var(--border-color);min-width:100px;transition:all .2s ease}.opponent-badge.active-turn{border-color:var(--color-warning);border-width:3px;animation:opponent-turn-glow 1.5s ease-in-out infinite}@keyframes opponent-turn-glow{0%,to{box-shadow:0 0 10px var(--color-warning-glow),0 0 20px #f1c40f33}50%{box-shadow:0 0 18px #f1c40f99,0 0 35px #f1c40f59}}.opponent-header{display:flex;align-items:center;gap:6px;margin-bottom:2px}.avatar{font-size:.95rem;font-weight:700;color:var(--text-secondary)}.team-badge{font-size:.75rem;padding:3px 6px;border-radius:4px;text-transform:uppercase}.team-a{color:var(--color-team-a)}.team-b{color:var(--color-team-b)}.tile-count{font-size:.95rem;color:var(--text-muted)}.hand-indicator{font-size:.9rem;margin-left:2px}.opponent-badge.the-hand{border-color:var(--color-warning)}.board-container{flex:1;position:relative;overflow:hidden;background-color:var(--bg-primary);background-image:radial-gradient(var(--bg-pattern) 1px,transparent 1px);background-size:20px 20px}.controls-area{padding:10px;background-color:var(--bg-elevated);border-top:1px solid var(--border-color);display:flex;justify-content:center;min-height:140px;z-index:20}.game-over{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--overlay-dark);padding:20px;border-radius:8px;border:2px solid var(--color-warning);color:var(--color-warning);font-size:1.5rem;font-weight:700;z-index:100;text-align:center}.modal-overlay{position:fixed;inset:0;background-color:var(--overlay);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background-color:var(--bg-modal);padding:24px;border-radius:12px;box-shadow:0 4px 20px #00000080;text-align:center;color:var(--text-primary);max-width:90%;width:400px}.modal-content h3{margin-top:0;margin-bottom:16px;color:var(--color-warning)}.modal-text{margin:1em 0}.modal-actions{display:flex;gap:16px;justify-content:center;margin-top:24px}.btn-left,.btn-right{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;background-color:var(--border-color);border:2px solid var(--border-light);border-radius:8px;cursor:pointer;transition:all .2s;color:var(--text-primary)}.btn-left:hover,.btn-right:hover{background-color:var(--border-light);border-color:var(--color-warning);transform:translateY(-2px)}.action-label{font-size:.9rem;font-weight:700;color:var(--text-secondary)}.btn-cancel{margin-top:20px;padding:8px 16px;background:none;border:1px solid var(--border-hover);color:var(--text-secondary);border-radius:4px;cursor:pointer}.btn-cancel:hover{background-color:var(--border-color);color:var(--text-primary)}.inline-domino-wrapper{display:inline-block;vertical-align:middle;margin:0 4px}@media(max-width:768px){.board-header{height:auto;min-height:50px}.score-board{gap:8px}.team-score{padding:2px 6px}.team-label{font-size:.75rem}.score-value{font-size:1rem}.opponents-info{padding:6px;gap:10px}.opponent-badge{min-width:70px;padding:4px 8px;border-width:1px}.opponent-badge.active-turn{border-width:2px}.avatar{font-size:.85rem}.team-badge{font-size:.7rem}.tile-count{font-size:.85rem}.controls-area{min-height:100px}}@media(max-width:480px){.game-status{align-items:flex-start;width:100%;flex-direction:row;justify-content:space-between}}@media(min-width:769px){.opponents-info{gap:24px;padding:10px}.opponent-badge{flex-direction:row;min-width:auto;padding:6px 14px;gap:10px}.opponent-header{margin-bottom:0}.avatar{font-size:1.05rem}.team-badge{font-size:.8rem;padding:3px 6px}.tile-count{font-size:1.05rem}}
