*{margin:0;padding:0;box-sizing:border-box}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;width:100%}#root{width:100%;min-height:100vh}.deck-selection{text-align:center;width:100%;max-width:1200px;margin:0 auto;padding:2rem}.game-title{font-size:4.5rem;color:#fff;margin-bottom:1.5rem;font-weight:800;letter-spacing:4px;font-family:Georgia,Times New Roman,serif;text-shadow:0 0 10px rgba(255,255,255,.8),0 0 20px rgba(255,255,255,.6),0 0 30px rgba(255,255,255,.4),0 2px 4px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.1);filter:drop-shadow(0 0 8px rgba(255,255,255,.5))}.game-description{font-size:1.3rem;color:#fffffff2;margin-bottom:3rem;text-shadow:0 2px 4px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.2);font-weight:500}.deck-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem;max-width:900px;margin:0 auto;justify-items:center}.deck-option{cursor:pointer;transition:all .4s ease;position:relative;width:200px;height:280px;border-radius:15px;overflow:visible}.deck-option:before{content:"";position:absolute;inset:0;border-radius:15px;box-shadow:0 10px 30px #0000004d;transition:all .4s ease;z-index:-1}.deck-option:hover{transform:translateY(-15px) scale(1.05)}.deck-option:hover:before{box-shadow:0 20px 50px #00000080}.deck-option img{width:100%;height:100%;object-fit:cover;border-radius:15px;box-shadow:0 8px 25px #0006;transition:all .4s ease}.deck-option:hover img{box-shadow:0 15px 40px #0009}@media(max-width:1024px){.deck-grid{grid-template-columns:repeat(2,1fr);max-width:500px;gap:2rem}.deck-option{width:180px;height:252px}}@media(max-width:768px){.game-title{font-size:3rem;margin-bottom:1rem;letter-spacing:3px}.game-description{font-size:1.1rem;margin-bottom:2rem}.deck-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem;max-width:100%}.deck-option{width:150px;height:210px}}@media(max-width:480px){.game-title{font-size:2.5rem;letter-spacing:2px}.game-description{font-size:1rem}.deck-grid{grid-template-columns:repeat(2,1fr);gap:1rem}.deck-option{width:140px;height:196px}}.game-about{margin-top:2.5rem;width:100%;max-width:1000px;margin-left:auto;margin-right:auto}.game-about-inner{display:flex;align-items:stretch;background:#ffffff0f;border-radius:12px;padding:1.5rem 1rem;border:1px solid rgba(255,255,255,.08)}.game-about-col{flex:1;min-width:0;padding:0 1.25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.game-about-left,.game-about-right{text-align:center;align-items:center}.game-about-divider{width:1px;flex-shrink:0;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.35) 15%,rgba(255,255,255,.5) 50%,rgba(255,255,255,.35) 85%,transparent)}.game-about-heading{font-size:.95rem;font-weight:600;color:#fff;margin-bottom:.6rem;letter-spacing:1px;font-family:Georgia,Times New Roman,serif;text-shadow:0 0 8px rgba(255,255,255,.6),0 0 16px rgba(255,255,255,.35),0 1px 2px rgba(0,0,0,.2)}.game-about-text{font-size:.85rem;line-height:1.55;color:#ffffffe0;margin:0}.game-about-icon-wrap{width:72px;height:72px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffff14;border:1px solid rgba(255,255,255,.15);box-shadow:0 4px 20px #0003}.game-about-icon{width:44px;height:44px;object-fit:contain}@media(max-width:768px){.game-about-inner{flex-direction:column;padding:1.25rem 1rem}.game-about-divider{width:100%;height:1px;background:linear-gradient(to right,transparent,rgba(255,255,255,.35) 15%,rgba(255,255,255,.5) 50%,rgba(255,255,255,.35) 85%,transparent);margin:.5rem 0}.game-about-col{padding:.5rem 0;text-align:center;align-items:center}.game-about-left,.game-about-right{text-align:center;align-items:center}.game-about-heading{font-size:.9rem}.game-about-text{font-size:.8rem}}.game-header{text-align:center;padding:2rem 0}.game-title{font-size:4rem;font-weight:800;color:#fff;margin-bottom:2rem;font-family:Georgia,Times New Roman,serif;letter-spacing:4px;text-shadow:0 0 10px rgba(255,255,255,.8),0 0 20px rgba(255,255,255,.6),0 0 30px rgba(255,255,255,.4),0 2px 4px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.2),0 8px 16px rgba(0,0,0,.1);filter:drop-shadow(0 0 8px rgba(255,255,255,.5))}.game-controls{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap}.control-button{padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #0003;text-transform:uppercase;letter-spacing:1px}.shuffle-button{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff;box-shadow:0 6px 20px #f5576c66;font-weight:700}.shuffle-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 25px #f5576c99;background:linear-gradient(135deg,#f5576c,#f093fb)}.shuffle-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.new-deck-button{background:#fffffff2;color:#667eea;border:2px solid #667eea}.new-deck-button:hover{background:#667eea;color:#fff;transform:translateY(-3px);box-shadow:0 6px 20px #667eea66}.game-info-button{background:#fffffff2;color:#667eea;border:2px solid #667eea}.game-info-button:hover{background:#667eea;color:#fff;transform:translateY(-3px);box-shadow:0 6px 20px #667eea66}@media(max-width:768px){.game-title{font-size:2.5rem;letter-spacing:2px;margin-bottom:1.5rem}.game-controls{gap:1rem}.control-button{padding:.8rem 2rem;font-size:1rem}}.card{width:180px;height:252px;position:relative;cursor:default;transform-style:preserve-3d;flex-shrink:0}.card.top-card{position:relative;width:180px;height:252px}.card.history-card{width:100px;height:140px}.card.opened{animation:cardFlipOpen .8s ease-out forwards}.card.current{z-index:1000!important}.card-flip-container{width:100%;height:100%;perspective:1000px}.card-flip-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;animation:flipCard .8s ease-out forwards}.card-back-face,.card-front-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;border-radius:15px;overflow:hidden;top:0;left:0}.card-back-face{transform:rotateY(0)}.card-front-face{transform:rotateY(180deg)}@keyframes flipCard{0%{transform:rotateY(0)}50%{transform:rotateY(90deg) scale(1.1)}to{transform:rotateY(180deg)}}@keyframes cardFlipOpen{0%{opacity:0;transform:translate(-50px) scale(.8)}50%{opacity:1;transform:translate(10px) scale(1.05)}to{opacity:1;transform:translate(0) scale(1)}}.card img{width:100%;height:100%;object-fit:cover;border-radius:15px;box-shadow:0 6px 20px #0000004d}.card-back{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:15px;box-shadow:0 6px 20px #0000004d}.card-front{width:100%;height:100%;object-fit:cover;border-radius:15px}@media(max-width:768px){.card,.card.top-card{width:150px;height:210px}.card.history-card{width:80px;height:112px}}.shuffling-animation-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:500px;perspective:1000px;transition:opacity 1s ease,transform 1s ease;opacity:1;transform:scale(1)}.shuffling-animation-container.fade-out{opacity:0;transform:scale(.9);pointer-events:none}.shuffling-deck-wrapper{width:300px;height:400px;position:relative;transform-style:preserve-3d;display:flex;align-items:center;justify-content:center;margin-bottom:2rem;transition:transform 1s ease}.shuffling-animation-container.fade-out .shuffling-deck-wrapper{transform:scale(.8) translateY(-20px)}.shuffling-deck{position:relative;width:201px;height:248px;transform-style:preserve-3d;transition:transform 1s ease}.shuffling-animation-container.fade-out .shuffling-deck{transform:scale(.85)}.shuffle-card{width:155px;height:220px;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:8px;box-shadow:0 4px 12px #0000004d;outline:1px solid rgba(255,255,255,.3);position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;backface-visibility:hidden;transform-style:preserve-3d;transform-origin:center center;transition:opacity 1s ease}.shuffling-animation-container.fade-out .shuffle-card{opacity:.3}.shuffling-text{font-size:1.5rem;color:#667eea;font-weight:700;margin-top:1rem;text-shadow:1px 1px 2px rgba(0,0,0,.1);animation:pulse 1.5s ease-in-out infinite;transition:opacity 1s ease}.shuffling-animation-container.fade-out .shuffling-text{opacity:0}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}@media(max-width:768px){.shuffling-deck-wrapper{width:250px;height:350px}.shuffling-deck{width:170px;height:209px}.shuffle-card{width:130px;height:185px}.shuffling-text{font-size:1.2rem}}.history-modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:3000;padding:2rem;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.history-modal{background:#fff;border-radius:16px;max-width:900px;width:100%;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;overflow:hidden}.history-header{display:flex;justify-content:space-between;align-items:center;padding:1.2rem 1.5rem;border-bottom:1px solid #eee}.history-header h2{margin:0;color:#667eea;font-size:1.5rem;font-weight:600}.history-header button{color:#667eea}.close-button{background:none;border:none;font-size:2rem;color:#999;cursor:pointer;line-height:1;padding:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.history-content{flex:1;overflow-y:auto;padding:1.5rem}.history-content::-webkit-scrollbar{width:6px}.history-content::-webkit-scrollbar-track{background:#f5f5f5;border-radius:10px}.history-content::-webkit-scrollbar-thumb{background:#667eea;border-radius:10px}.history-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:1.5rem}.history-card-item{display:flex;flex-direction:column;align-items:center;gap:.8rem}.card-title{font-weight:500;color:#333;font-size:.9rem;margin:0;text-align:center}.no-cards{text-align:center;color:#999;font-size:1rem;padding:3rem}@media(max-width:768px){.history-modal{max-height:90vh;margin:1rem}.history-header{padding:1rem 1.5rem}.history-header h2{font-size:1.3rem}.history-content{padding:1rem}.history-cards-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:1rem}}.card-info-overlay{position:fixed;inset:0;background:#0009;display:flex;justify-content:center;align-items:center;z-index:4000;padding:2rem;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.card-info-popup{background:#fff;border-radius:16px;max-width:700px;width:100%;box-shadow:0 20px 60px #0000004d;overflow:hidden;animation:popupAppear .3s ease-out}.card-info-header{display:flex;justify-content:flex-end;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #eee}.card-info-header button{color:#667eea}.close-button{background:none;border:none;font-size:2rem;color:#999;cursor:pointer;line-height:1;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.close-button:hover{background:#f5f5f5;color:#667eea}.card-info-content{display:flex;gap:2rem;padding:2rem;align-items:flex-start}.card-image-section{flex-shrink:0;width:200px;height:280px}.card-popup-image{width:100%;height:100%;object-fit:cover;border-radius:12px;box-shadow:0 6px 20px #0003}.card-details-section{flex:1;display:flex;flex-direction:column;gap:1rem}.card-popup-title{margin:0;color:#667eea;font-size:1.8rem;font-weight:600}.card-rule-details{margin-top:.5rem}.card-rule-details p{margin:0;color:#333;font-size:1rem;line-height:1.7}@media(max-width:768px){.card-info-popup{max-width:90%;margin:1rem}.card-info-content{flex-direction:column;padding:1.5rem;gap:1.5rem}.card-image-section{width:100%;height:auto;max-width:200px;margin:0 auto}.card-popup-image{height:auto}.card-details-section{width:100%}.card-popup-title{font-size:1.5rem;text-align:center}.card-rule-details p{font-size:.95rem;text-align:center}}.game-board-wrapper{width:100%;max-width:1200px;margin:0 auto;display:flex;justify-content:center;align-items:center;min-height:500px;padding:2rem}.game-container-minimal{background:#fffffff2;border-radius:20px;padding:3rem;box-shadow:0 20px 60px #0000004d;max-width:1000px;width:100%;display:flex;flex-direction:column;align-items:center;gap:2rem}.cards-display-area{display:flex;justify-content:center;align-items:flex-start;gap:4rem;width:100%;min-height:auto;position:relative}.deck-stack-wrapper{position:relative;perspective:1000px;flex-shrink:0}.deck-stack{position:relative;cursor:pointer;transition:transform .3s ease;width:180px;height:252px}.deck-stack:hover{transform:translateY(-10px) scale(1.05)}.deck-layer{position:absolute;width:100%;height:100%;border-radius:15px;background:linear-gradient(135deg,#0000001a,#0000004d);box-shadow:0 4px 15px #0003;pointer-events:none}.deck-layer.layer-1{top:2px;left:2px;z-index:-1;transform:rotateY(-2deg) rotateX(1deg)}.deck-layer.layer-2{top:4px;left:4px;z-index:-2;transform:rotateY(-4deg) rotateX(2deg);opacity:.9}.deck-layer.layer-3{top:6px;left:6px;z-index:-3;transform:rotateY(-6deg) rotateX(3deg);opacity:.8}.deck-layer.layer-4{top:8px;left:8px;z-index:-4;transform:rotateY(-8deg) rotateX(4deg);opacity:.7}.deck-layer.layer-5{top:10px;left:10px;z-index:-5;transform:rotateY(-10deg) rotateX(5deg);opacity:.6}.deck-main-card{position:relative;width:100%;height:100%;z-index:10}.deck-back-image{width:100%;height:100%;object-fit:cover;border-radius:15px;box-shadow:0 10px 35px #0006;position:relative;transition:box-shadow .3s ease}.deck-stack:hover .deck-back-image{box-shadow:0 15px 45px #00000080}.opened-card-stack{position:relative;width:180px;display:flex;flex-direction:column;align-items:center;gap:1rem;min-height:auto}.card-stack-container{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;gap:1rem;overflow:visible}.card-info-section{display:flex;align-items:center;gap:.8rem;width:100%;max-width:400px;padding:.5rem 0;margin-top:0}.card-rule-text{flex:1;font-size:.95rem;color:#333;line-height:1.4;text-align:center;word-wrap:break-word}.card-info-small-button{background:#667eeae6;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1rem;transition:all .3s ease;box-shadow:0 2px 8px #0003;flex-shrink:0}.card-info-small-button:hover{background:#667eea;transform:scale(1.1);box-shadow:0 4px 12px #0000004d}.empty-card-slot{width:180px;height:252px;display:flex;justify-content:center;align-items:center;opacity:.5}.closed-card-preview{width:100%;height:100%;object-fit:cover;border-radius:15px;box-shadow:0 4px 15px #0003}.history-button-container{width:100%;display:flex;justify-content:center;margin-top:1rem}.history-button{padding:.8rem 2rem;font-size:1rem;font-weight:700;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 15px #667eea66}.history-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}@media(max-width:768px){.game-container-minimal{padding:2rem 1.5rem}.cards-display-area{gap:2rem;flex-direction:column;align-items:center}.deck-stack{width:150px;height:210px}.opened-card-stack{width:150px}.card-info-section{max-width:100%;flex-direction:column;gap:.5rem}.card-rule-text{font-size:.85rem}}.game-stats{text-align:center;margin-top:2rem;padding-top:2rem;border-top:2px solid rgba(255,255,255,.2)}.game-stats p{font-size:1.4rem;color:#fff;font-weight:700;font-family:Georgia,Times New Roman,serif;letter-spacing:1px;text-shadow:0 2px 4px rgba(0,0,0,.4),0 4px 8px rgba(0,0,0,.3),0 0 10px rgba(255,255,255,.3);margin:0}@media(max-width:768px){.game-stats p{font-size:1.2rem}}.game-info-overlay{position:fixed;inset:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:5000;padding:2rem;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.game-info-popup{background:#fff;border-radius:20px;max-width:800px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;overflow:hidden;animation:popupAppear .3s ease-out}@keyframes popupAppear{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.game-info-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:2px solid #eee;background:linear-gradient(135deg,#667eea,#764ba2)}.game-info-header h2{margin:0;color:#fff;font-size:1.8rem;font-weight:700}.close-button{background:#fff3;border:none;font-size:2rem;color:#fff;cursor:pointer;line-height:1;padding:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.close-button:hover{background:#ffffff4d;transform:rotate(90deg)}.game-info-content{flex:1;overflow-y:auto;padding:2rem}.game-info-content::-webkit-scrollbar{width:8px}.game-info-content::-webkit-scrollbar-track{background:#f5f5f5;border-radius:10px}.game-info-content::-webkit-scrollbar-thumb{background:#667eea;border-radius:10px}.game-info-section{margin-bottom:2rem}.game-info-section:last-child{margin-bottom:0}.game-info-section h3{color:#667eea;font-size:1.4rem;font-weight:600;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #eee}.game-info-section p{color:#333;font-size:1rem;line-height:1.8;margin:0}.game-info-section ul{margin:.5rem 0 .75rem;padding-left:2rem;color:#333;font-size:1rem;line-height:1.8}.game-info-section li{margin-bottom:.35rem}@media(max-width:768px){.game-info-popup{max-width:90%;max-height:95vh;margin:1rem}.game-info-header{padding:1rem 1.5rem}.game-info-header h2{font-size:1.5rem}.game-info-content{padding:1.5rem}.game-info-section h3{font-size:1.2rem}.game-info-section p{font-size:.95rem}}.app{min-height:100vh;width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:20px;background:linear-gradient(135deg,#667eea,#764ba2)}
