:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.setup-screen{background:linear-gradient(135deg,#667eea 0%,#764ba2 50%,#f093fb 100%) 0 0/200% 200%;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:20px;animation:8s infinite gradientShift;display:flex;position:relative;overflow:hidden}.setup-screen:before{content:"🎮 🎲 🏆 ⭐ 🎯 🎪";opacity:.1;pointer-events:none;word-spacing:3rem;font-size:3rem;line-height:5rem;animation:20s linear infinite floatingEmojis;position:absolute;inset:0}@keyframes gradientShift{0%,to{background-position:0%}50%{background-position:100%}}@keyframes floatingEmojis{0%{transform:translateY(100vh)rotate(0)}to{transform:translateY(-100vh)rotate(360deg)}}.game-title{color:#fff;text-align:center;text-shadow:4px 4px 8px #0000004d,0 0 20px #ffffff80,0 0 40px #ffffff4d;word-spacing:.1em;letter-spacing:.05em;max-width:90%;transform-style:preserve-3d;margin-bottom:3rem;padding:0 1rem;font-size:4rem;font-weight:900;line-height:1.2;animation:3s ease-in-out infinite titlePulse,2s ease-in-out infinite titleGlow}@keyframes titlePulse{0%,to{transform:translateY(0)scale(1)}50%{transform:translateY(-15px)scale(1.05)}}@keyframes titleGlow{0%,to{text-shadow:4px 4px 8px #0000004d,0 0 20px #ffffff80,0 0 40px #ffffff4d}50%{text-shadow:4px 4px 8px #0000004d,0 0 30px #fffc,0 0 60px #ffffff80}}.player-count-section,.player-setup-section{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff2;border:3px solid #ffffff4d;border-radius:40px;width:100%;max-width:600px;padding:3rem;animation:.6s ease-out slideInUp;box-shadow:0 20px 60px #0000004d,inset 0 0 0 1px #ffffff80}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}.setup-question{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);-webkit-text-fill-color:transparent;text-align:center;-webkit-background-clip:text;background-clip:text;margin-bottom:2.5rem;font-size:2.8rem;font-weight:900;animation:2s ease-in-out infinite questionBounce}@keyframes questionBounce{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.player-count-buttons{grid-template-columns:repeat(2,1fr);gap:2rem;display:grid}.player-count-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:25px;padding:2.5rem;font-size:6rem;font-weight:900;transition:all .3s cubic-bezier(.68,-.55,.265,1.55);animation:3s ease-in-out infinite buttonFloat;position:relative;overflow:hidden;box-shadow:0 10px 30px #667eea66,inset 0 0 0 3px #ffffff4d}.player-count-btn:before{content:"";background:#ffffff4d;border-radius:50%;width:0;height:0;transition:width .6s,height .6s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.player-count-btn:hover:before{width:300px;height:300px}.player-count-btn:first-child{animation-delay:0s}.player-count-btn:nth-child(2){animation-delay:.2s}.player-count-btn:nth-child(3){animation-delay:.4s}.player-count-btn:nth-child(4){animation-delay:.6s}@keyframes buttonFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.player-count-btn:hover{transform:scale(1.15)rotate(5deg);box-shadow:0 15px 40px #667eea99,inset 0 0 0 5px #ffffff80}.player-count-btn:active{transform:scale(1.05)rotate(0);box-shadow:0 5px 15px #667eea66,inset 0 0 0 3px #ffffff4d}.name-input-container{margin-bottom:2rem}.input-label{color:#333;text-align:center;margin-bottom:1rem;font-size:1.8rem;font-weight:700;display:block}.name-input{text-align:center;box-sizing:border-box;border:4px solid #667eea;border-radius:15px;width:100%;padding:1.5rem;font-size:2rem;font-weight:700}.name-input:focus{border-color:#764ba2;outline:none;box-shadow:0 0 0 4px #667eea33}.character-selection{margin-bottom:2rem}.character-cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-top:1rem;display:grid}.character-card{cursor:pointer;background:#fff;border:5px solid #ddd;border-radius:20px;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;transition:all .3s;display:flex}.character-card:hover{transform:scale(1.05);box-shadow:0 5px 20px #0003}.character-card.selected{border-width:6px;animation:1s ease-in-out infinite pulse;transform:scale(1.1);box-shadow:0 8px 30px #0000004d}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.05)}}.character-emoji{font-size:4rem}.character-name{color:#333;text-align:center;font-size:1.2rem;font-weight:700}.next-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f4 0%,#2c2 100%);border:none;border-radius:15px;width:100%;padding:1.5rem;font-size:2rem;font-weight:700;transition:all .3s;box-shadow:0 5px 15px #0003}.next-btn:hover:not(:disabled){transform:scale(1.05);box-shadow:0 8px 25px #0000004d}.next-btn:active:not(:disabled){transform:scale(1.02)}.next-btn:disabled{cursor:not-allowed;opacity:.5;background:#ccc}@media (width<=1024px){.game-title{font-size:3.5rem}.player-count-section,.player-setup-section{padding:2.5rem}.setup-question{font-size:2.3rem}.player-count-btn{padding:2rem;font-size:5rem}}@media (width<=768px){.setup-screen:before{word-spacing:2rem;font-size:2rem;line-height:4rem}.game-title{margin-bottom:2rem;font-size:2.8rem}.player-count-section,.player-setup-section{border-radius:30px;padding:2rem}.setup-question{margin-bottom:2rem;font-size:2rem}.player-count-buttons{gap:1.5rem}.player-count-btn{padding:1.8rem;font-size:4.5rem}.name-input{padding:1.2rem;font-size:1.8rem}.input-label{font-size:1.6rem}.character-emoji{font-size:3.5rem}.character-name{font-size:1.1rem}.next-btn{padding:1.3rem;font-size:1.8rem}}@media (width<=480px){.setup-screen{padding:15px}.setup-screen:before{word-spacing:1.5rem;font-size:1.5rem;line-height:3rem}.game-title{letter-spacing:.02em;margin-bottom:1.5rem;font-size:2rem}.player-count-section,.player-setup-section{border-radius:25px;padding:1.5rem}.setup-question{margin-bottom:1.5rem;font-size:1.6rem}.player-count-buttons{gap:1rem}.player-count-btn{border-radius:20px;padding:1.5rem;font-size:3.5rem}.name-input-container{margin-bottom:1.5rem}.input-label{margin-bottom:.8rem;font-size:1.4rem}.name-input{border-width:3px;padding:1rem;font-size:1.5rem}.character-selection{margin-bottom:1.5rem}.character-cards{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.8rem}.character-card{border-width:4px;border-radius:15px;padding:1rem}.character-emoji{font-size:2.8rem}.character-name{font-size:1rem}.next-btn{border-radius:12px;padding:1.2rem;font-size:1.5rem}}@media (width<=360px){.game-title{font-size:1.7rem}.setup-question{font-size:1.4rem}.player-count-btn{padding:1.2rem;font-size:3rem}.name-input{font-size:1.3rem}.character-cards{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.character-emoji{font-size:2.5rem}.character-name{font-size:.9rem}.next-btn{font-size:1.3rem}}.board-square{aspect-ratio:1;border:4px solid #fffc;border-radius:15px;flex-direction:column;justify-content:center;align-items:center;width:100%;transition:transform .3s;display:flex;position:relative;box-shadow:0 4px 8px #0003}.board-square:hover{transform:scale(1.05)}.square-number{color:#fff;text-shadow:2px 2px 4px #00000080;font-size:2rem;font-weight:700;position:absolute;top:5px;left:10px}.square-label{color:#fff;text-shadow:2px 2px 4px #00000080;text-align:center;font-size:1rem;font-weight:700;position:absolute;bottom:5px}.board-square.start{border-width:5px;border-color:#fff;animation:2s ease-in-out infinite glow-green;background:linear-gradient(135deg,#4f4 0%,#2c2 100%)!important}.board-square.goal{border-width:5px;border-color:#fff;animation:2s ease-in-out infinite glow-gold;background:linear-gradient(135deg,gold 0%,orange 100%)!important}.board-square.cursed{border-width:5px;border-color:#8b0000;animation:2s ease-in-out infinite glow-cursed;background:linear-gradient(135deg,#2c0735 0%,#1a0420 100%)!important}.cursed-label{animation:1.5s ease-in-out infinite pulse-cursed;font-size:1.2rem!important}@keyframes glow-green{0%,to{box-shadow:0 0 20px #4f49}50%{box-shadow:0 0 40px #44ff44e6}}@keyframes glow-gold{0%,to{box-shadow:0 0 20px #ffd70099}50%{box-shadow:0 0 40px #ffd700e6}}@keyframes glow-cursed{0%,to{box-shadow:0 0 20px #8b0000cc,0 0 40px #8b000066}50%{box-shadow:0 0 40px #8b0000,0 0 60px #8b000099}}@keyframes pulse-cursed{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.square-players{flex-wrap:wrap;gap:5px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.player-piece{filter:drop-shadow(2px 2px 4px #0000004d);font-size:2.5rem;transition:transform .5s cubic-bezier(.68,-.55,.265,1.55);animation:.5s ease-out bounce-in,1s ease-in-out infinite wiggle}@keyframes bounce-in{0%{transform:scale(0)translate(0)}50%{transform:scale(1.2)translate(0)}to{transform:scale(1)translate(0)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@media (width<=768px){.square-number{font-size:1.5rem}.square-label{font-size:.8rem}.player-piece{font-size:2rem}}.dice-container{flex-direction:column;align-items:center;gap:1rem;margin:2rem 0;display:flex}.dice{cursor:pointer;background:#fff;border:6px solid #333;border-radius:20px;justify-content:center;align-items:center;width:150px;height:150px;transition:all .3s;display:flex;position:relative;box-shadow:0 8px 20px #0000004d}.dice:hover:not(:disabled){transform:scale(1.1);box-shadow:0 12px 30px #0006}.dice:active:not(:disabled){transform:scale(1.05)}.dice:disabled{cursor:not-allowed;opacity:.6}.dice.pulse{animation:1.5s ease-in-out infinite pulse-dice}@keyframes pulse-dice{0%,to{transform:scale(1);box-shadow:0 8px 20px #0000004d}50%{transform:scale(1.1);box-shadow:0 12px 30px #00000080}}.dice.rolling{animation:1s ease-in-out roll}@keyframes roll{0%{transform:rotate(0)}25%{transform:rotate(90deg)scale(1.2)}50%{transform:rotate(180deg)scale(.9)}75%{transform:rotate(270deg)scale(1.2)}to{transform:rotate(360deg)scale(1)}}.dice-face{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);gap:5px;width:100%;height:100%;padding:15px;display:grid}.dot{background:#333;border-radius:50%;width:20px;height:20px;box-shadow:0 2px 4px #0000004d}.dot-0{grid-area:1/1}.dot-1{grid-area:1/2}.dot-2{grid-area:1/3}.dot-3{grid-area:2/1}.dot-4{grid-area:2/2}.dot-5{grid-area:2/3}.dot-6{grid-area:3/1}.dot-7{grid-area:3/2}.dot-8{grid-area:3/3}.dice-rolling{font-size:5rem;animation:.5s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dice-prompt{flex-direction:column;align-items:center;gap:.5rem;display:flex}.dice-emoji{font-size:4rem;animation:1s ease-in-out infinite bounce-dice}@keyframes bounce-dice{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.dice-text{color:#333;text-align:center;font-size:1rem;font-weight:700}.dice-result{text-align:center;font-size:2rem;font-weight:700;animation:.5s ease-out fade-in}@keyframes fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (width<=768px){.dice-container{margin:1.5rem 0}.dice{border-width:5px;width:130px;height:130px}.dice-face{padding:12px}.dot{width:16px;height:16px}.dice-rolling{font-size:4rem}.dice-emoji{font-size:3.5rem}.dice-text{font-size:.9rem}.dice-result{font-size:1.7rem}}@media (width<=480px){.dice-container{gap:.8rem;margin:1rem 0}.dice{border-width:4px;border-radius:15px;width:110px;height:110px}.dice-face{gap:4px;padding:10px}.dot{width:14px;height:14px}.dice-rolling{font-size:3.5rem}.dice-emoji{font-size:3rem}.dice-text{font-size:.8rem}.dice-result{font-size:1.4rem}}@media (width<=360px){.dice{border-width:3px;width:90px;height:90px}.dice-face{padding:8px}.dot{width:12px;height:12px}.dice-rolling{font-size:3rem}.dice-emoji{font-size:2.5rem}.dice-text{font-size:.7rem}.dice-result{font-size:1.2rem}}.turn-banner{border-radius:15px;justify-content:center;align-items:center;gap:1rem;width:100%;margin-bottom:1rem;padding:.8rem 1.2rem;animation:.5s ease-out slide-in,2s ease-in-out infinite pulse-banner;display:flex;box-shadow:0 4px 12px #0000004d}@keyframes slide-in{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-banner{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}.turn-arrow{font-size:2rem;animation:1s ease-in-out infinite bounce-arrow}@keyframes bounce-arrow{0%,to{transform:translate(0)}50%{transform:translate(10px)}}.turn-content{align-items:center;gap:1rem;display:flex}.turn-emoji{font-size:2.5rem;animation:2s ease-in-out infinite spin-emoji}@keyframes spin-emoji{0%,to{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}.turn-text{flex-direction:column;gap:.25rem;display:flex}.turn-name{color:#fff;text-shadow:2px 2px 4px #00000080;font-size:1.8rem;font-weight:700}.turn-label{color:#fff;text-shadow:2px 2px 4px #00000080;font-size:1.1rem;font-weight:700}@media (width<=768px){.turn-banner{border-radius:18px;gap:1.5rem;margin-bottom:1.5rem;padding:1.2rem}.turn-arrow{font-size:2.5rem}.turn-emoji{font-size:3.5rem}.turn-content{gap:.8rem}.turn-name{font-size:2.2rem}.turn-label{font-size:1.3rem}}@media (width<=480px){.turn-banner{border-radius:15px;gap:1rem;margin-bottom:1rem;padding:1rem}.turn-arrow{font-size:2rem}.turn-emoji{font-size:3rem}.turn-content{gap:.6rem}.turn-text{gap:.15rem}.turn-name{font-size:1.8rem}.turn-label{font-size:1.1rem}}@media (width<=360px){.turn-banner{flex-direction:column;gap:.8rem;padding:.8rem}.turn-arrow{font-size:1.8rem;display:none}.turn-emoji{font-size:2.5rem}.turn-name{font-size:1.5rem}.turn-label{font-size:1rem}}.math-question-overlay{z-index:1000;background:#000c;justify-content:center;align-items:center;width:100%;height:100%;animation:.3s ease-out fadeIn;display:flex;position:fixed;top:0;left:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.math-question-container{background:#fff;border:6px solid;border-radius:30px;width:90%;max-width:500px;padding:3rem;animation:.4s ease-out slideIn;box-shadow:0 20px 60px #00000080}@keyframes slideIn{0%{opacity:0;transform:translateY(-100px)scale(.8)}to{opacity:1;transform:translateY(0)scale(1)}}.timer{text-align:center;margin-bottom:1.5rem;font-size:2.5rem;font-weight:700;animation:1s ease-in-out infinite pulse}.question-text{text-align:center;color:#333;margin-bottom:2rem;font-family:Comic Sans MS,cursive;font-size:3.5rem;font-weight:700}.answer-display{text-align:center;color:#333;background:#f8f8f8;border:4px solid;border-radius:15px;justify-content:center;align-items:center;min-height:80px;margin-bottom:2rem;padding:1.5rem;font-size:3rem;font-weight:700;display:flex}.feedback{text-align:center;border-radius:15px;margin-bottom:1rem;padding:1rem;font-size:2rem;font-weight:700;animation:.5s ease-out bounceIn}.feedback.correct{color:#fff;background:#4f4}.feedback.incorrect{color:#fff;background:#f44}@keyframes bounceIn{0%{transform:scale(0)}50%{transform:scale(1.1)}to{transform:scale(1)}}.number-keyboard{flex-direction:column;gap:1rem;display:flex}.keyboard-row{justify-content:center;gap:1rem;display:flex}.keyboard-btn{color:#333;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border:4px solid #667eea;border-radius:15px;width:80px;height:80px;font-size:2.5rem;font-weight:700;transition:all .2s;box-shadow:0 4px 8px #0003}.keyboard-btn:hover:not(:disabled){transform:scale(1.1);box-shadow:0 6px 12px #0000004d}.keyboard-btn:active:not(:disabled){transform:scale(1.05)}.keyboard-btn:disabled{opacity:.5;cursor:not-allowed}.backspace-btn{background:#f99;border-color:#f44}.enter-btn{color:#fff;background:#4f4;border-color:#2c2}.enter-btn:disabled{background:#ccc;border-color:#999}@media (width<=768px){.math-question-container{padding:2rem}.timer{font-size:2rem}.question-text{font-size:2.5rem}.answer-display{min-height:70px;font-size:2.5rem}.feedback{font-size:1.5rem}.keyboard-btn{width:70px;height:70px;font-size:2rem}}@media (width<=480px){.question-text{font-size:2rem}.answer-display{min-height:60px;font-size:2rem}.keyboard-btn{width:60px;height:60px;font-size:1.8rem}}.cursed-overlay{z-index:2000;background:#000000f2;justify-content:center;align-items:center;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0}.cursed-content{text-align:center;background:linear-gradient(135deg,#2c0735 0%,#1a0420 100%);border:5px solid #8b0000;border-radius:30px;max-width:600px;padding:60px;animation:.5s ease-out slideIn,.5s ease-in-out .5s shake;box-shadow:0 0 50px #8b0000cc,0 0 100px #8b000066}.cursed-skull{filter:drop-shadow(0 0 20px #8b0000cc);margin-bottom:30px;font-size:10rem;animation:1s ease-in-out infinite skullPulse,2s ease-in-out infinite rotate}.cursed-title{color:#8b0000;text-shadow:0 0 20px #8b0000cc,0 0 40px #8b000099;letter-spacing:5px;margin-bottom:30px;font-size:4rem;font-weight:700;animation:1s ease-in-out infinite pulse}.cursed-message{text-shadow:2px 2px 4px #000c;margin-bottom:30px;font-size:2.5rem;font-weight:700;animation:.5s ease-out .3s backwards fadeIn}.cursed-consequence{color:gold;text-shadow:0 0 10px #ffd700cc;font-size:2rem;font-weight:700;animation:.5s ease-out .6s backwards fadeIn,1s ease-in-out 1s infinite flash}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes skullPulse{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}@keyframes rotate{0%,to{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}@keyframes flash{0%,to{opacity:1}50%{opacity:.5}}@media (width<=768px){.cursed-content{max-width:90%;padding:40px 30px}.cursed-skull{font-size:6rem}.cursed-title{letter-spacing:3px;font-size:2.5rem}.cursed-message{font-size:1.8rem}.cursed-consequence{font-size:1.5rem}}@media (width<=480px){.cursed-content{padding:30px 20px}.cursed-skull{font-size:5rem}.cursed-title{letter-spacing:2px;font-size:2rem}.cursed-message{font-size:1.5rem}.cursed-consequence{font-size:1.2rem}}.game-board-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);flex-direction:column;align-items:center;min-height:100vh;padding:2rem;display:flex}.game-header{flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:1200px;display:flex}.restart-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#ff6b6b 0%,#ee5a52 100%);border:none;border-radius:12px;width:100%;max-width:300px;margin-top:1.5rem;padding:.9rem 1.8rem;font-size:1.3rem;font-weight:700;transition:all .3s;box-shadow:0 5px 15px #0003}.restart-btn:hover{transform:scale(1.05);box-shadow:0 8px 20px #0000004d}.restart-btn:active{transform:scale(1.02)}.board-wrapper{width:100%;max-width:1200px;margin:2rem 0}.game-board{background:#ffffff1a;border-radius:30px;grid-template-rows:repeat(6,1fr);grid-template-columns:repeat(7,1fr);gap:10px;padding:20px;display:grid;box-shadow:0 10px 40px #0000004d}.game-board.serpentine{grid-auto-flow:dense}.players-info{flex-wrap:wrap;justify-content:center;gap:1rem;width:100%;max-width:800px;margin-top:2rem;display:flex}.player-info{background:#fff;border:4px solid #ddd;border-radius:15px;align-items:center;gap:.75rem;padding:1rem 1.5rem;transition:all .3s;display:flex;box-shadow:0 4px 10px #0003}.player-info.active{border-width:6px;animation:1.5s ease-in-out infinite glow-active;transform:scale(1.1);box-shadow:0 8px 20px #0000004d}@keyframes glow-active{0%,to{box-shadow:0 8px 20px #0000004d}50%{box-shadow:0 12px 30px #00000080}}.player-emoji{font-size:2.5rem}.player-name{color:#333;font-size:1.5rem;font-weight:700}.player-position{color:#666;font-size:1.2rem;font-weight:700}@media (width<=1024px){.game-board-container{padding:1.5rem}.board-wrapper{margin:1.5rem 0}.game-board{gap:8px;padding:18px}.restart-btn{padding:.9rem 1.8rem;font-size:1.3rem}.player-emoji{font-size:2.2rem}.player-name{font-size:1.3rem}.player-position{font-size:1.1rem}}@media (width<=768px){.game-board-container{padding:1rem}.board-wrapper{margin:1rem 0}.game-board{border-radius:20px;gap:6px;padding:15px}.restart-btn{border-radius:12px;padding:.8rem 1.5rem;font-size:1.2rem}.players-info{gap:.8rem;margin-top:1.5rem}.player-info{border-width:3px;border-radius:12px;padding:.75rem 1rem}.player-info.active{border-width:5px;transform:scale(1.08)}.player-emoji{font-size:2rem}.player-name{font-size:1.2rem}.player-position{font-size:1rem}}@media (width<=480px){.game-board-container{padding:.75rem}.game-header{gap:.75rem}.board-wrapper{margin:.75rem 0}.game-board{border-radius:15px;gap:5px;padding:10px}.restart-btn{border-radius:10px;margin-bottom:.75rem;padding:.7rem 1.2rem;font-size:1rem}.players-info{gap:.6rem;margin-top:1rem}.player-info{border-width:3px;border-radius:10px;gap:.5rem;padding:.6rem .8rem}.player-info.active{border-width:4px;transform:scale(1.05)}.player-emoji{font-size:1.8rem}.player-name{font-size:1rem}.player-position{font-size:.9rem}}@media (width<=360px){.game-board-container{padding:.5rem}.game-board{gap:4px;padding:8px}.restart-btn{padding:.6rem 1rem;font-size:.9rem}.player-info{text-align:center;flex-direction:column;padding:.5rem .6rem}.player-emoji{font-size:1.5rem}.player-name{font-size:.9rem}.player-position{font-size:.8rem}}.winner-screen{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex;position:relative;overflow:hidden}.confetti-container{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.confetti{border-radius:2px;width:12px;height:12px;animation:linear infinite fall;position:absolute;top:-10px;box-shadow:0 0 10px #ffffff80}@keyframes fall{to{transform:translateY(110vh)rotate(720deg)}}.fireworks-container{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.firework{border-radius:50%;width:4px;height:4px;animation:1s ease-out forwards firework-burst;position:absolute}@keyframes firework-burst{0%{opacity:1;transform:scale(0)}50%{opacity:1}to{opacity:0;transform:scale(3)}}.spark{transform-origin:0;border-radius:3px;width:60px;height:3px;animation:1s ease-out forwards spark-fly;position:absolute;top:50%;left:50%}@keyframes spark-fly{0%{opacity:1;transform:translate(0)scale(1)}to{opacity:0;transform:translate(80px)scale(.3)}}.winner-content{text-align:center;z-index:1;background:#fff;border-radius:40px;max-width:600px;padding:4rem 3rem;animation:.5s ease-out zoom-in;position:relative;box-shadow:0 20px 60px #0000004d}@keyframes zoom-in{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.trophy-row{justify-content:center;align-items:center;gap:2rem;margin-bottom:1rem;display:flex}.trophy{filter:drop-shadow(0 0 20px #ffd700cc);font-size:6rem;animation:1s ease-in-out infinite bounce-trophy}.trophy-left{animation-delay:0s}.trophy-center{font-size:8rem;animation-delay:.2s}.trophy-right{animation-delay:.4s}@keyframes bounce-trophy{0%,to{transform:translateY(0)rotate(-5deg)scale(1)}50%{transform:translateY(-30px)rotate(5deg)scale(1.1)}}.winner-title{background:linear-gradient(45deg,gold,orange,gold) 0 0/200% 200%;-webkit-text-fill-color:transparent;text-shadow:0 0 30px #ffd70080;letter-spacing:.1em;-webkit-background-clip:text;background-clip:text;margin:1rem 0;font-size:5.5rem;font-weight:900;animation:1s ease-in-out infinite pulse-title,3s infinite gradient-shift}@keyframes pulse-title{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}@keyframes gradient-shift{0%,to{background-position:0%}50%{background-position:100%}}.winner-character{filter:drop-shadow(0 10px 30px #0000004d);margin:2rem 0;font-size:10rem;animation:1.5s ease-in-out infinite spin-character,3s ease-in-out infinite float}@keyframes spin-character{0%,to{transform:rotate(-15deg)scale(1)}50%{transform:rotate(15deg)scale(1.3)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.winner-name{text-shadow:3px 3px 6px #0000004d;margin:1rem 0;font-size:4rem;font-weight:900;animation:3s ease-in-out infinite rainbow-text}@keyframes rainbow-text{0%,to{filter:hue-rotate()}50%{filter:hue-rotate(30deg)}}.winner-message{background:linear-gradient(45deg,#ff6b6b,#4ecdc4,#45b7d1,#ffa07a) 0 0/300% 300%;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin:1rem 0 2rem;font-size:2.3rem;font-weight:900;animation:2s infinite gradient-shift}.play-again-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f4 0%,#2c2 100%);border:none;border-radius:20px;margin-top:2rem;padding:1.5rem 3rem;font-size:2.5rem;font-weight:700;transition:all .3s;box-shadow:0 8px 20px #0000004d}.play-again-btn:hover{transform:scale(1.1);box-shadow:0 12px 30px #0006}.play-again-btn:active{transform:scale(1.05)}@media (width<=768px){.winner-screen{padding:1.5rem}.winner-content{border-radius:30px;max-width:90%;padding:3rem 2rem}.trophy{font-size:6.5rem}.winner-title{font-size:3.8rem}.winner-character{margin:1.5rem 0;font-size:6.5rem}.winner-name{font-size:2.8rem}.winner-message{font-size:1.7rem}.play-again-btn{border-radius:18px;padding:1.3rem 2.7rem;font-size:2.2rem}}@media (width<=480px){.winner-screen{padding:1rem}.winner-content{border-radius:25px;padding:2.5rem 1.5rem}.trophy{margin-bottom:.8rem;font-size:5rem}.winner-title{font-size:2.8rem}.winner-character{margin:1.2rem 0;font-size:5rem}.winner-name{margin:.8rem 0;font-size:2.2rem}.winner-message{margin:.8rem 0 1.5rem;font-size:1.4rem}.play-again-btn{border-radius:15px;margin-top:1.5rem;padding:1.1rem 2.2rem;font-size:1.8rem}.confetti{width:8px;height:8px}}@media (width<=360px){.winner-content{border-radius:20px;padding:2rem 1.2rem}.trophy{font-size:4rem}.winner-title{font-size:2.2rem}.winner-character{margin:1rem 0;font-size:4rem}.winner-name{font-size:1.8rem}.winner-message{font-size:1.2rem}.play-again-btn{border-radius:12px;padding:1rem 1.8rem;font-size:1.5rem}.confetti{width:6px;height:6px}}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Comic Sans MS,Arial,sans-serif;overflow-x:hidden}.app{width:100%;min-height:100vh}button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}input{-webkit-tap-highlight-color:transparent}.dice,.player-count-btn,.character-card,.next-btn,.play-again-btn{-webkit-user-select:none;user-select:none}html{scroll-behavior:smooth}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#555}
