.custom-scrollbar::-webkit-scrollbar{width:8px}.custom-scrollbar::-webkit-scrollbar-track{background:#0f172a}.custom-scrollbar::-webkit-scrollbar-thumb{background:#1e293b;border:1px solid #06b6d4}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#06b6d4}@keyframes drop-bounce{0%{transform:translateY(-300px) scale(.9);opacity:0}50%{transform:translateY(0) scale(1.05);opacity:1}65%{transform:translateY(-10px) scale(.95)}80%{transform:translateY(5px) scale(1.02)}to{transform:translateY(0) scale(1)}}@keyframes crumble-out{0%{transform:translateY(0) rotate(0);opacity:1;filter:brightness(1)}20%{transform:translateY(0) rotate(-5deg);filter:brightness(1.5) sepia(1) saturate(5) hue-rotate(-50deg)}40%{transform:translateY(10px) rotate(5deg);opacity:.8}to{transform:translateY(200px) rotate(20deg);opacity:0}}.animate-drop{animation:drop-bounce .6s cubic-bezier(.34,1.56,.64,1) backwards}.animate-crumble{animation:crumble-out .8s ease-in forwards;z-index:50!important}:root{--bg-black:#000000;--bg-dark:#0a0a0a;--bg-dark-overlay:rgba(0,0,0,0.6);--bg-dark-overlay-strong:rgba(0,0,0,0.95);--color-cyan:rgb(103,232,249);--color-yellow:rgb(252,211,77);--color-pink:rgb(240,171,252);--color-red:rgb(248,113,113);--border-cyan:rgba(103,232,249,0.3);--border-cyan-light:rgba(103,232,249,0.2);--border-pink:rgba(240,171,252,0.3);--border-pink-light:rgba(240,171,252,0.2);--border-white-light:rgba(255,255,255,0.1);--border-white-very-light:rgba(255,255,255,0.05);--color-purple:rgb(240,171,252);--color-green:rgb(103,232,249);--color-blue:rgb(103,232,249);--board-border-default:rgba(255,255,255,0.05);--board-border-empty:rgba(248,113,113,0.7);--board-border-filled:rgba(239,68,68,1);--board-border-preview-can:rgba(103,232,249,0.6);--board-border-preview-cannot:rgba(248,113,113,0.8);--board-bg-default:#000000;--board-bg-empty:rgba(248,113,113,0.35);--board-bg-filled:rgba(239,68,68,0.75);--board-bg-preview-can:rgba(103,232,249,0.3);--board-bg-preview-cannot:rgba(248,113,113,0.4);--item-border-color:rgba(248,113,113,0.9);--item-bg-color:rgba(248,113,113,0.2);--border-width-thin:1px;--border-width-medium:2px}.tiantianle-game,.tiantianle-game *{margin:0;padding:0;box-sizing:border-box}.play-page *,.tiantianle-game *{scrollbar-width:none;-ms-overflow-style:none}.play-page ::-webkit-scrollbar,.tiantianle-game ::-webkit-scrollbar{display:none}.tiantianle-game{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;background-color:var(--bg-dark);color:#fff;position:relative;min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%}@media (max-width:768px){.tiantianle-game{font-size:14px}}@media (max-width:480px){.tiantianle-game{font-size:13px}}.home-page{min-height:100vh;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow-x:hidden}.back-button{position:fixed;top:2rem;left:2rem;z-index:100;text-decoration:none;display:inline-flex;color:inherit}@media (max-width:768px){.back-button{top:1rem;left:1rem}}@media (max-width:480px){.back-button{top:.75rem;left:.75rem}}.home-container{width:100%;max-width:1200px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1;position:relative;margin-top:50vh;gap:30px;padding:0 20px}.start-btn{padding:18px 55px;font-size:26px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:2px;background:linear-gradient(135deg,rgb(103,232,249),rgb(240,171,252),rgb(248,113,113));border:2px solid rgba(255,255,255,.3);border-radius:12px;cursor:pointer;transition:all .3s ease;text-shadow:0 0 8px rgba(103,232,249,.6),0 2px 4px rgba(0,0,0,.5);box-shadow:0 0 20px rgba(103,232,249,.4),0 4px 15px rgba(0,0,0,.3),inset 0 1px 4px rgba(255,255,255,.2),inset 0 -1px 4px rgba(0,0,0,.2);position:relative;overflow:hidden}.start-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.start-btn:after{content:"▶";position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;opacity:.7}.start-btn:hover:before{left:100%}.start-btn:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 0 30px rgba(103,232,249,.6),0 6px 20px rgba(0,0,0,.4),inset 0 1px 4px rgba(255,255,255,.3),inset 0 -1px 4px rgba(0,0,0,.3);border-color:rgba(255,255,255,.5);background:linear-gradient(135deg,rgb(240,171,252),rgb(103,232,249),rgb(252,211,77))}.start-btn:active{transform:translateY(-1px) scale(1.02);box-shadow:0 0 20px rgba(103,232,249,.4),0 4px 15px rgba(0,0,0,.3),inset 0 1px 4px rgba(255,255,255,.2),inset 0 -1px 4px rgba(0,0,0,.2)}.start-btn:disabled{cursor:not-allowed;opacity:.7;transform:none}.start-btn:disabled:hover{transform:none}.loading-text{display:inline-flex;align-items:center;gap:8px}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--bg-dark-overlay-strong);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;z-index:9999}.loading-content{display:flex;flex-direction:column;align-items:center;gap:30px}.loading-spinner{position:relative;width:80px;height:80px}.spinner-ring{position:absolute;width:100%;height:100%;border:4px solid transparent;border-top:4px solid var(--color-purple);border-radius:50%;animation:spin 1.2s linear infinite}.spinner-ring:first-child{animation-delay:0s}.spinner-ring:nth-child(2){animation-delay:.4s;border-top-color:#7b2cbf;width:70%;height:70%;top:15%;left:15%}.spinner-ring:nth-child(3){animation-delay:.8s;border-top-color:#c77dff;width:50%;height:50%;top:25%;left:25%}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.loading-message{font-size:18px;font-weight:600;color:var(--color-cyan);text-shadow:0 0 10px rgba(103,232,249,.6),0 2px 4px rgba(0,0,0,.5);letter-spacing:1px;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.game-rules{width:100%;max-width:800px;max-height:calc(100vh - 60vh);padding:25px;background-color:var(--bg-dark-overlay);border:1px solid var(--border-cyan);border-radius:12px;backdrop-filter:blur(10px);overflow-y:auto;overflow-x:hidden}.rules-title{font-size:20px;font-weight:700;color:var(--color-cyan);text-shadow:0 0 10px rgba(103,232,249,.6);margin-bottom:20px;text-align:center;letter-spacing:1px}.rules-list{display:flex;flex-direction:column;gap:8px}.rule-item{font-size:14px;color:rgba(255,255,255,.9);line-height:1.4;padding:6px 0 6px 20px;position:relative}.rule-item:before{content:"•";position:absolute;left:0;color:var(--color-purple);font-size:18px}.background-effect{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;overflow:hidden;background-color:var(--bg-dark)}.bg-video{position:absolute;top:-10%;left:50%;transform:translateX(-50%);width:80%;height:80%;object-fit:cover;z-index:0}@media (max-width:768px) and (orientation:portrait){.bg-video{width:90%;height:auto;top:5%;object-fit:contain}}@media (max-width:768px) and (orientation:landscape){.bg-video{width:auto;height:90%;top:5%;left:50%;transform:translateX(-50%);object-fit:contain}}@media (max-width:480px){.bg-video{width:85%;height:auto;top:5%;object-fit:contain}}@media (max-height:600px){.bg-video{width:auto;height:85%;top:7.5%;left:50%;transform:translateX(-50%);object-fit:contain}}@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){.bg-video{width:90%;height:90%;top:-5%}}.particle{position:absolute;width:4px;height:4px;border-radius:50%;background-color:var(--particle-color);animation:float ease-in-out infinite;z-index:3}.particle.blue{--particle-color:rgb(103,232,249)}.particle.purple{--particle-color:rgb(240,171,252)}@keyframes float{0%,to{transform:translateY(0) translateX(0);opacity:.5}50%{transform:translateY(-20px) translateX(10px);opacity:1}}.play-page{height:100vh;max-height:100vh;overflow:hidden;background-color:var(--bg-black);color:#fff;display:flex;flex-direction:column}.play-page-header{position:relative;z-index:100;padding:1rem 2rem;background-color:var(--bg-black);backdrop-filter:blur(10px);border-bottom:1px solid var(--border-cyan-light);justify-content:space-between;flex-shrink:0;height:var(--header-height,73px)}.play-page-header,.play-page-header-left{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.play-page-header-right{display:flex;align-items:center;gap:1rem}.play-page-header a{display:inline-flex;text-decoration:none;color:inherit}.back-btn,.reset-btn{background-color:var(--bg-black);backdrop-filter:blur(10px);color:#fff;border:1px solid var(--border-cyan-light);white-space:nowrap;flex-shrink:0;min-width:fit-content;padding:.5rem 1rem;transition:all .2s ease}.back-btn:hover,.reset-btn:hover{background-color:rgba(103,232,249,.1);border-color:var(--border-cyan);box-shadow:0 0 12px rgba(103,232,249,.3)}.reset-btn:disabled{opacity:.5;cursor:not-allowed}.reset-btn:disabled:hover{background-color:var(--bg-black);border-color:var(--border-white-light)}.play-page-content{display:flex!important;flex:1;overflow-x:visible;overflow-y:auto;min-height:0;height:calc(100vh - var(--header-height, 73px));gap:0}.sidebar-toggle-btn{display:none}.play-page-sidebar{flex:0 0 18%;min-width:240px;max-width:280px;background-color:var(--bg-black);border-right:1px solid var(--border-cyan-light);padding:1.5rem 1.25rem;display:flex;flex-direction:column;gap:1rem;overflow-y:auto;overflow-x:hidden;height:100%;transition:all .3s ease}.board-selection-section{display:flex;flex-direction:column;gap:.75rem;flex-shrink:0}.board-selection-title{font-size:1rem;font-weight:700;color:var(--color-cyan);margin:0;text-shadow:0 0 10px rgba(103,232,249,.6)}.board-list{display:flex;flex-direction:column;gap:.5rem}.board-card{position:relative;display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:12px;background-color:var(--bg-black);cursor:pointer;transition:all .3s ease;text-align:left;width:100%;border:3px solid transparent;background-clip:padding-box;overflow:hidden}.board-card:before{content:"";position:absolute;inset:0;border-radius:16px;padding:3px;background:linear-gradient(135deg,rgba(128,128,128,.3),rgba(100,100,100,.2));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;transition:background .3s ease,opacity .3s ease}.board-card:hover:before{background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end));opacity:1}.board-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.4)}.board-card.active{background-color:var(--bg-black);box-shadow:0 0 30px rgba(103,232,249,.4)}.board-card.active:before{background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end));opacity:1}.board-gradient-488{--gradient-start:rgb(248,113,113);--gradient-end:rgb(240,171,252)}.board-gradient-988{--gradient-start:rgb(103,232,249);--gradient-end:rgb(240,171,252)}.board-gradient-1388{--gradient-start:rgb(252,211,77);--gradient-end:rgb(103,232,249)}.board-gradient-2488{--gradient-start:rgb(240,171,252);--gradient-end:rgb(248,113,113)}.board-gradient-3888{--gradient-start:rgb(252,211,77);--gradient-end:rgb(248,113,113)}.board-card-icon{font-size:1.75rem;line-height:1;flex-shrink:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.3));transition:transform .3s ease;padding-right:.5rem}.board-card:hover .board-card-icon{transform:scale(1.1) rotate(5deg)}.board-card-content{flex:1;display:flex;flex-direction:column;gap:.5rem}.board-card-header{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.board-card-number{font-size:1.75rem;font-weight:800;line-height:1.2;letter-spacing:-.5px;background:linear-gradient(135deg,#ffffff,#e0e0e0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:none;margin-bottom:0}.board-card.active .board-card-number{background:linear-gradient(135deg,var(--gradient-start) 0,var(--gradient-end) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.board-card-description{display:flex;flex-direction:row;align-items:center;gap:0}.board-card-version-name{font-size:.75rem;font-weight:700;color:rgba(255,255,255,.95);text-transform:uppercase;letter-spacing:1px;padding:.15rem .5rem;background:linear-gradient(135deg,rgba(255,255,255,.15),rgba(255,255,255,.08));border-radius:4px;display:inline-block;width:fit-content;border:1px solid rgba(255,255,255,.2);box-shadow:0 1px 3px rgba(0,0,0,.1);white-space:nowrap;margin-left:auto}.board-card-version-name.version-基础{color:rgb(103,232,249);background:linear-gradient(135deg,rgba(103,232,249,.25),rgba(103,232,249,.15));border:1px solid rgba(103,232,249,.4);box-shadow:0 1px 4px rgba(103,232,249,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card-version-name.version-普通{color:rgb(96,165,250);background:linear-gradient(135deg,rgba(96,165,250,.25),rgba(96,165,250,.15));border:1px solid rgba(96,165,250,.4);box-shadow:0 1px 4px rgba(96,165,250,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card-version-name.version-进阶{color:rgb(252,211,77);background:linear-gradient(135deg,rgba(252,211,77,.25),rgba(252,211,77,.15));border:1px solid rgba(252,211,77,.4);box-shadow:0 1px 4px rgba(252,211,77,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card-version-name.version-困难{color:rgb(251,146,60);background:linear-gradient(135deg,rgba(251,146,60,.25),rgba(251,146,60,.15));border:1px solid rgba(251,146,60,.4);box-shadow:0 1px 4px rgba(251,146,60,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card-version-name.version-地狱{color:rgb(240,171,252);background:linear-gradient(135deg,rgba(240,171,252,.25),rgba(240,171,252,.15));border:1px solid rgba(240,171,252,.4);box-shadow:0 1px 4px rgba(240,171,252,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card-guaranteed{font-size:.75rem;font-weight:700;color:rgb(252,211,77);letter-spacing:.8px;padding:.15rem .5rem;background:linear-gradient(135deg,rgba(252,211,77,.25),rgba(252,211,77,.15));border-radius:4px;display:inline-block;width:fit-content;border:1px solid rgba(252,211,77,.4);box-shadow:0 1px 4px rgba(255,235,59,.25);text-shadow:0 1px 2px rgba(0,0,0,.2)}.board-card.active .board-card-version-name{background:linear-gradient(135deg,rgba(255,255,255,.25),rgba(255,255,255,.15));border-color:rgba(255,255,255,.35);box-shadow:0 2px 6px rgba(0,0,0,.15)}.board-card.active .board-card-version-name.version-基础{background:linear-gradient(135deg,rgba(103,232,249,.35),rgba(103,232,249,.25));border-color:rgba(103,232,249,.6);box-shadow:0 2px 6px rgba(103,232,249,.35);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(103,232,249,.5)}.board-card.active .board-card-version-name.version-普通{background:linear-gradient(135deg,rgba(96,165,250,.35),rgba(96,165,250,.25));border-color:rgba(96,165,250,.6);box-shadow:0 2px 6px rgba(96,165,250,.35);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(96,165,250,.5)}.board-card.active .board-card-version-name.version-进阶{background:linear-gradient(135deg,rgba(252,211,77,.35),rgba(252,211,77,.25));border-color:rgba(252,211,77,.6);box-shadow:0 2px 6px rgba(252,211,77,.35);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(252,211,77,.5)}.board-card.active .board-card-version-name.version-困难{background:linear-gradient(135deg,rgba(251,146,60,.35),rgba(251,146,60,.25));border-color:rgba(251,146,60,.6);box-shadow:0 2px 6px rgba(251,146,60,.35);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(251,146,60,.5)}.board-card.active .board-card-version-name.version-地狱{background:linear-gradient(135deg,rgba(240,171,252,.35),rgba(240,171,252,.25));border-color:rgba(240,171,252,.6);box-shadow:0 2px 6px rgba(240,171,252,.35);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(240,171,252,.5)}.board-card.active .board-card-guaranteed{background:linear-gradient(135deg,rgba(252,211,77,.35),rgba(252,211,77,.25));border-color:rgba(252,211,77,.6);box-shadow:0 2px 6px rgba(252,211,77,.35);color:rgb(252,211,77);text-shadow:0 1px 3px rgba(0,0,0,.3),0 0 8px rgba(252,211,77,.5)}.board-card-details{font-size:.75rem;color:rgba(255,255,255,.85);line-height:1.4;font-weight:500;display:flex;align-items:center;gap:.5rem}.board-card-details:before{content:"📐";font-size:.875rem;opacity:.8}.board-card-empty{font-size:.75rem;color:rgba(255,255,255,.8);line-height:1.4;font-weight:500;display:flex;align-items:center;gap:.5rem}.board-card-empty:before{content:"🎯";font-size:.875rem;opacity:.8}.board-card-check{position:absolute;top:.5rem;right:.5rem;color:var(--color-cyan);display:flex;align-items:center;justify-content:center;background-color:rgba(103,232,249,.2);border-radius:50%;width:24px;height:24px;animation:check-pulse 2s ease-in-out infinite}.board-card-check svg{width:14px;height:14px}@keyframes check-pulse{0%,to{box-shadow:0 0 0 0 rgba(103,232,249,.4)}50%{box-shadow:0 0 0 8px rgba(103,232,249,0)}}.game-rules-sidebar{display:flex;flex-direction:column;gap:.75rem;flex-shrink:0;padding:1rem 0;border-top:1px solid var(--border-cyan-light);border-bottom:1px solid var(--border-cyan-light);margin:1rem 0}.game-rules-sidebar .rules-title{font-size:.875rem;font-weight:700;color:var(--color-cyan);text-shadow:0 0 10px rgba(103,232,249,.6);margin:0}.game-rules-sidebar .rules-list{display:flex;flex-direction:column;gap:.5rem}.game-rules-sidebar .rule-item{font-size:.75rem;color:rgba(255,255,255,.85);line-height:1.4;padding:.25rem 0 .25rem 1rem;position:relative}.game-rules-sidebar .rule-item:before{content:"•";position:absolute;left:0;color:var(--color-purple);font-size:.875rem;line-height:1.4}.sidebar-actions{display:flex;flex-direction:column;gap:.5rem;flex-shrink:0}.action-btn{width:100%;background-color:var(--bg-black);backdrop-filter:blur(10px);color:#fff;border:1px solid var(--border-cyan-light)}.action-btn:hover{background-color:rgba(103,232,249,.1);border-color:var(--border-cyan);box-shadow:0 0 12px rgba(103,232,249,.3)}.play-page-center{flex:0 0 650px;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;overflow-x:auto;height:100%;padding:1.5rem 1.25rem;background:linear-gradient(135deg,rgba(0,0,0,.95),rgba(10,10,20,.9) 50%,rgba(0,0,0,.95));border-right:1px solid var(--border-cyan-light);position:relative;min-width:0}.play-page-center:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(ellipse at center,rgba(103,232,249,.08) 0,transparent 70%);pointer-events:none;z-index:0}.play-page-right{flex:1;min-width:280px;display:flex!important;flex-direction:column;background-color:transparent;padding:1.5rem 1.25rem;overflow-y:auto;overflow-x:hidden;height:100%;gap:.75rem;visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important}.game-board-wrapper{display:flex;flex-direction:column;gap:1rem;width:100%;align-items:center;position:relative;z-index:1;animation:board-fade-in .3s ease-in-out;opacity:1;transform:translateY(0);transition:opacity .2s ease-in-out,transform .2s ease-in-out}.game-board-wrapper.board-transitioning{opacity:0;transform:translateY(-10px)}@keyframes board-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.game-stats-bar{display:flex;align-items:center;justify-content:center;gap:1.5rem;padding:.75rem 1.5rem;background-color:rgba(0,0,0,.8);backdrop-filter:blur(10px);border-radius:12px;border:1px solid var(--border-cyan-light);box-shadow:0 4px 20px rgba(0,0,0,.5),0 0 20px rgba(103,232,249,.1);width:100%;max-width:100%;flex-shrink:0}.game-stats-bar .stat-item{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:fit-content}.game-stats-bar .stat-label{font-size:.75rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.5px}.game-stats-bar .stat-value{font-size:1.125rem;font-weight:700;color:var(--color-cyan);text-shadow:0 0 10px rgba(103,232,249,.6)}.stat-divider{width:1px;height:40px;background:linear-gradient(to bottom,transparent,var(--border-cyan-light),transparent);flex-shrink:0}.reset-confirm-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.85);backdrop-filter:blur(8px);display:flex;justify-content:center;align-items:center;z-index:9999;animation:fadeIn .4s ease}.reset-confirm-modal{position:relative;background:linear-gradient(135deg,rgba(20,20,30,.98),rgba(10,10,20,.98));border-radius:24px;border:2px solid transparent;box-shadow:0 0 0 2px rgba(248,113,113,.5),0 25px 80px rgba(0,0,0,.6),0 0 100px rgba(248,113,113,.3);max-width:480px;width:90%;animation:slideUpScale .5s cubic-bezier(.34,1.56,.64,1);overflow:hidden}.reset-confirm-modal:before{content:"";position:absolute;inset:0;border-radius:24px;padding:2px;background:linear-gradient(135deg,rgba(248,113,113,.8),rgba(252,211,77,.6) 50%,rgba(248,113,113,.8));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;z-index:-1;animation:border-glow-warning 3s ease-in-out infinite}.reset-confirm-modal:after{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(248,113,113,.15) 0,transparent 70%);animation:rotate 20s linear infinite;z-index:-1}.reset-confirm-modal-content{padding:3rem 2.5rem;display:flex;flex-direction:column;align-items:center;gap:1.75rem;text-align:center;position:relative;z-index:1}.reset-confirm-modal-icon-wrapper{position:relative;width:100px;height:100px;display:flex;align-items:center;justify-content:center}.reset-confirm-modal-icon-wrapper:before{content:"";position:absolute;inset:-10px;border-radius:50%;background:radial-gradient(circle,rgba(248,113,113,.3) 0,transparent 70%);animation:icon-pulse 2s ease-in-out infinite}.reset-confirm-modal-icon{width:100px;height:100px;color:var(--color-red);filter:drop-shadow(0 0 20px rgba(248,113,113,.6));animation:scaleInBounce .6s cubic-bezier(.68,-.55,.265,1.55);position:relative;z-index:1}.reset-confirm-modal-title{font-size:2rem;font-weight:800;color:#fff;margin:0;background:linear-gradient(135deg,#fff,rgb(248,113,113) 50%,rgb(252,211,77));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(248,113,113,.5);letter-spacing:.5px;animation:titleFadeIn .6s ease .2s both}.reset-confirm-modal-message{font-size:1rem;color:rgba(255,255,255,.85);margin:0;line-height:1.7;animation:messageFadeIn .6s ease .3s both}.reset-confirm-modal-actions{display:flex;gap:1rem;width:100%;margin-top:.5rem;animation:buttonsFadeIn .6s ease .5s both}.reset-confirm-modal-btn{flex:1;padding:.875rem 1.75rem;font-size:1rem;font-weight:600;border-radius:10px;transition:all .3s ease;position:relative;overflow:hidden}.reset-confirm-modal-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.reset-confirm-modal-btn:hover:before{left:100%}.reset-confirm-modal-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.3)}.reset-confirm-modal-actions .reset-confirm-modal-btn:first-child{background-color:rgba(0,0,0,.3)!important;border:1px solid rgba(103,232,249,.5)!important;color:rgba(255,255,255,.9)!important}.reset-confirm-modal-actions .reset-confirm-modal-btn:first-child:hover{background-color:rgba(103,232,249,.2)!important;border-color:rgba(103,232,249,.8)!important;color:#fff!important}.reset-confirm-modal-btn-danger{background:linear-gradient(135deg,rgba(248,113,113,.9),rgba(220,38,38,.9))!important;border:1px solid rgba(248,113,113,.8)!important;color:#fff!important;box-shadow:0 0 20px rgba(248,113,113,.4)!important}.reset-confirm-modal-btn-danger:hover{background:linear-gradient(135deg,rgba(248,113,113,1),rgba(220,38,38,1))!important;border-color:rgba(248,113,113,1)!important;box-shadow:0 0 30px rgba(248,113,113,.6)!important}@keyframes border-glow-warning{0%,to{opacity:.8}50%{opacity:1}}.completion-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.85);backdrop-filter:blur(8px);display:flex;justify-content:center;align-items:center;z-index:9999;animation:fadeIn .4s ease}.completion-modal{position:relative;background:linear-gradient(135deg,rgba(20,20,30,.98),rgba(10,10,20,.98));border-radius:24px;border:2px solid transparent;box-shadow:0 0 0 2px rgba(103,232,249,.5),0 25px 80px rgba(0,0,0,.6),0 0 100px rgba(103,232,249,.3);max-width:520px;width:90%;animation:slideUpScale .5s cubic-bezier(.34,1.56,.64,1);overflow:hidden}.completion-modal:before{content:"";position:absolute;inset:0;border-radius:24px;padding:2px;background:linear-gradient(135deg,rgba(103,232,249,.8),rgba(240,171,252,.6) 50%,rgba(103,232,249,.8));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;z-index:-1;animation:border-glow 3s ease-in-out infinite}.completion-modal:after{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(103,232,249,.15) 0,transparent 70%);animation:rotate 20s linear infinite;z-index:-1}.completion-modal-content{padding:3rem 2.5rem;display:flex;flex-direction:column;align-items:center;gap:1.75rem;text-align:center;position:relative;z-index:1}.completion-modal-icon-wrapper{position:relative;width:100px;height:100px;display:flex;align-items:center;justify-content:center}.completion-modal-icon-wrapper:before{content:"";position:absolute;inset:-10px;border-radius:50%;background:radial-gradient(circle,rgba(103,232,249,.3) 0,transparent 70%);animation:icon-pulse 2s ease-in-out infinite}.completion-modal-icon{width:100px;height:100px;color:var(--color-cyan);filter:drop-shadow(0 0 20px rgba(103,232,249,.6));animation:scaleInBounce .6s cubic-bezier(.68,-.55,.265,1.55);position:relative;z-index:1}.completion-modal-title{font-size:2.25rem;font-weight:800;color:#fff;margin:0;background:linear-gradient(135deg,#fff,rgb(103,232,249) 50%,rgb(240,171,252));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(103,232,249,.5);letter-spacing:.5px;animation:titleFadeIn .6s ease .2s both}.completion-modal-message{font-size:1.125rem;color:rgba(255,255,255,.85);margin:0;line-height:1.7;animation:messageFadeIn .6s ease .3s both}.completion-modal-price{color:var(--color-cyan);font-weight:700;text-shadow:0 0 15px rgba(103,232,249,.8);background:linear-gradient(135deg,rgb(103,232,249),rgb(240,171,252));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;padding:0 .25rem;display:inline-block;animation:price-glow 2s ease-in-out infinite}@keyframes price-glow{0%,to{filter:brightness(1)}50%{filter:brightness(1.3)}}.completion-modal-recommendations{width:100%;margin-top:.5rem;animation:recommendationsFadeIn .6s ease .4s both}.recommendations-title{font-size:.875rem;color:rgba(255,255,255,.6);text-align:center;margin-bottom:.75rem;font-weight:500}.recommendations-list{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}.recommendation-board-card{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem 1rem;background:linear-gradient(135deg,rgba(103,232,249,.15),rgba(240,171,252,.1));border:1px solid rgba(103,232,249,.3);border-radius:10px;cursor:pointer;transition:all .3s ease;min-width:80px;position:relative;overflow:hidden}.recommendation-board-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(103,232,249,.2),rgba(240,171,252,.15));opacity:0;transition:opacity .3s ease}.recommendation-board-card:hover:before{opacity:1}.recommendation-board-card:hover{transform:translateY(-3px) scale(1.05);border-color:rgba(103,232,249,.6);box-shadow:0 4px 12px rgba(103,232,249,.3),0 0 20px rgba(103,232,249,.2)}.recommendation-board-icon{font-size:1.5rem;line-height:1;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));position:relative;z-index:1}.recommendation-board-price{font-size:1rem;font-weight:700;color:var(--color-cyan);text-shadow:0 0 8px rgba(103,232,249,.5);position:relative;z-index:1}.recommendation-board-info{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}.recommendation-board-version-name{font-size:.7rem;color:rgba(255,255,255,.85);text-transform:uppercase;letter-spacing:.8px;font-weight:600;position:relative;z-index:1}.recommendation-board-guaranteed{font-size:.65rem;color:rgb(252,211,77);letter-spacing:.5px;font-weight:700;position:relative;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.2)}@keyframes recommendationsFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.completion-modal-actions{display:flex;gap:1rem;width:100%;margin-top:.5rem;animation:buttonsFadeIn .6s ease .5s both}.completion-modal-btn{flex:1;padding:.875rem 1.75rem;font-size:1rem;font-weight:600;border-radius:10px;transition:all .3s ease;position:relative;overflow:hidden}.completion-modal-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.completion-modal-btn:hover:before{left:100%}.completion-modal-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.3)}.completion-modal-actions .completion-modal-btn:last-child{background-color:rgba(0,0,0,.3)!important;border:1px solid rgba(103,232,249,.5)!important;color:rgba(255,255,255,.9)!important}.completion-modal-actions .completion-modal-btn:last-child:hover{background-color:rgba(103,232,249,.2)!important;border-color:rgba(103,232,249,.8)!important;color:#fff!important}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUpScale{0%{transform:translateY(40px) scale(.9);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes scaleInBounce{0%{transform:scale(0);opacity:0}50%{transform:scale(1.2)}to{transform:scale(1);opacity:1}}@keyframes icon-pulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.1);opacity:.8}}@keyframes border-glow{0%,to{opacity:.8}50%{opacity:1}}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes titleFadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes messageFadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes buttonsFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.play-page-right .items-title{text-align:center;margin:0 0 .75rem;padding:0;font-size:.95rem;font-weight:600;color:#fff;flex-shrink:0}.play-page-right .fittable-items-grid{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem;padding:0;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;align-content:flex-start;justify-content:flex-start}.play-page-right .fittable-items-grid .fittable-item-card{display:flex;width:auto;margin-bottom:0;justify-content:center;align-items:center;flex-shrink:0;background-color:transparent!important;border:none!important;cursor:grab;transition:none}.play-page-right .fittable-items-grid .fittable-item-card:hover{background-color:transparent!important;border:none!important;transform:none!important;box-shadow:none!important}.play-page-right .items-empty{padding:2rem;text-align:center;color:rgba(255,255,255,.5);flex:1;display:flex;align-items:center;justify-content:center}@media (max-width:1024px){.play-page-content{overflow-x:visible!important;overflow-y:auto!important}.play-page-right{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;min-width:auto!important;flex:none!important;min-height:200px!important;max-height:40vh!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;background-color:rgba(0,0,0,.95)!important;z-index:100!important;box-shadow:0 -4px 12px rgba(0,0,0,.5)!important;overflow-y:auto!important}.play-page-right .fittable-items-grid{flex-direction:row;flex-wrap:wrap;justify-content:center;flex:1!important;min-height:0;overflow-y:auto;display:flex!important}.play-page-right .fittable-items-grid .fittable-item-card{width:auto;flex:0 0 auto}}@media (max-width:768px){.play-page-content{gap:.75rem;flex-direction:column!important;overflow-x:visible!important;overflow-y:auto!important}.play-page-sidebar{order:1}.play-page-center{order:2;flex:0 0 auto}.play-page-right{flex:1;min-height:0;display:flex;flex-direction:column}}.game-board-empty{padding:3rem;color:rgba(255,255,255,.5);font-size:1rem}.game-board-container,.game-board-empty{display:flex;align-items:center;justify-content:center}.game-board-container{position:relative;padding:16px;background:linear-gradient(135deg,rgba(103,232,249,.3),rgba(240,171,252,.2));border-radius:16px;border:2px solid transparent;background-clip:padding-box;box-shadow:0 0 0 2px rgba(103,232,249,.4),0 0 30px rgba(103,232,249,.3),0 0 60px rgba(240,171,252,.2),inset 0 0 20px rgba(103,232,249,.1);animation:board-glow 3s ease-in-out infinite;min-width:fit-content;overflow:visible}@keyframes board-glow{0%,to{box-shadow:0 0 0 2px rgba(103,232,249,.4),0 0 30px rgba(103,232,249,.3),0 0 60px rgba(240,171,252,.2),inset 0 0 20px rgba(103,232,249,.1)}50%{box-shadow:0 0 0 2px rgba(103,232,249,.6),0 0 40px rgba(103,232,249,.4),0 0 80px rgba(240,171,252,.3),inset 0 0 30px rgba(103,232,249,.15)}}.game-board-container:before{content:"";position:absolute;inset:0;border-radius:16px;padding:2px;background:linear-gradient(135deg,rgba(103,232,249,.8),rgba(240,171,252,.6) 25%,rgba(103,232,249,.8) 50%,rgba(240,171,252,.6) 75%,rgba(103,232,249,.8));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;z-index:-1;animation:border-rotate 4s linear infinite}@keyframes border-rotate{0%{background:linear-gradient(135deg,rgba(103,232,249,.8),rgba(240,171,252,.6) 25%,rgba(103,232,249,.8) 50%,rgba(240,171,252,.6) 75%,rgba(103,232,249,.8))}to{background:linear-gradient(495deg,rgba(103,232,249,.8),rgba(240,171,252,.6) 25%,rgba(103,232,249,.8) 50%,rgba(240,171,252,.6) 75%,rgba(103,232,249,.8))}}.game-board.table-board{position:relative;border-collapse:collapse;border-spacing:0;width:auto;min-width:fit-content;table-layout:fixed;background-color:var(--board-bg-default);border:var(--border-width-medium) solid var(--border-purple);backdrop-filter:blur(10px)}.game-board.table-board td{padding:0;margin:0}.board-cell{min-width:48px;min-height:48px;width:48px;height:48px;border:var(--border-width-thin) solid var(--board-border-default);transition:all .2s ease;cursor:pointer;position:relative;box-sizing:border-box;vertical-align:top;aspect-ratio:1/1;flex-shrink:0}.board-cell.filled{background-color:var(--board-bg-filled)!important;border-color:var(--board-border-filled)!important;border-width:2px!important;box-shadow:inset 0 0 12px rgba(220,38,38,.6),0 0 6px rgba(239,68,68,.4);position:relative}.board-cell.filled:after{content:"✓";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:rgba(255,255,255,.9);font-size:20px;font-weight:700;text-shadow:0 0 4px rgba(0,0,0,.8);pointer-events:none}.board-cell.filled:hover{background-color:rgba(220,38,38,.85)!important;border-color:rgba(220,38,38,1)!important;box-shadow:inset 0 0 15px rgba(220,38,38,.7),0 0 8px rgba(239,68,68,.5)}.board-cell.empty{background-color:var(--board-bg-empty);border-color:var(--board-border-empty);border-width:var(--border-width-thin);box-shadow:inset 0 0 8px rgba(248,113,113,.4),0 0 4px rgba(248,113,113,.3);animation:empty-pulse 2s ease-in-out infinite;position:relative}@keyframes empty-pulse{0%,to{box-shadow:inset 0 0 8px rgba(248,113,113,.4),0 0 4px rgba(248,113,113,.3);background-color:var(--board-bg-empty)}50%{box-shadow:inset 0 0 12px rgba(248,113,113,.6),0 0 8px rgba(248,113,113,.5);background-color:rgba(248,113,113,.45)}}.board-cell.empty:hover{background-color:rgba(248,113,113,.5);border-color:rgba(248,113,113,.9);box-shadow:inset 0 0 12px rgba(248,113,113,.6),0 0 8px rgba(248,113,113,.5)}.board-cell.default{background-color:var(--board-bg-default);border-color:var(--board-border-default);cursor:default}.board-cell.preview-can-place{background-color:var(--board-bg-preview-can)!important;border-color:var(--board-border-preview-can)!important;animation:preview-pulse 1.5s ease-in-out infinite}.board-cell.preview-cannot-place{background-color:var(--board-bg-preview-cannot)!important;border-color:var(--board-border-preview-cannot)!important;animation:preview-shake .5s ease-in-out infinite}@keyframes preview-pulse{0%,to{opacity:.6}50%{opacity:1}}@keyframes preview-shake{0%,to{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}.cell-item-content{width:100%;height:100%;position:relative}.cell-item-content,.cell-item-image-overlay{display:flex;align-items:center;justify-content:center}.cell-item-image-overlay{position:absolute;z-index:1;pointer-events:none;padding:1px;box-sizing:border-box}.item-image-in-cell{object-fit:contain;border-radius:2px;border:none;box-sizing:border-box}.item-placeholder-in-cell{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#fff;background-color:rgba(239,68,68,.3);border:1px solid rgba(239,68,68,.5);text-shadow:0 1px 2px rgba(0,0,0,.5)}.item-card{background-color:var(--bg-black);border:1px solid var(--border-white-light);cursor:grab;transition:all .2s ease}.item-card:active{cursor:grabbing}.item-card:hover{background-color:rgba(103,232,249,.1);border-color:rgba(103,232,249,.5);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.3),0 0 12px rgba(103,232,249,.2)}.item-card.draggable-item{user-select:none}.item-card.draggable-item:active{opacity:.7}.fittable-count{margin-left:.5rem;color:var(--color-purple);font-size:.875rem;font-weight:500}.fittable-item-wrapper{position:relative;display:block;background-color:var(--item-bg-color);border:var(--border-width-thin) solid var(--item-border-color);border-radius:0;padding:0;box-sizing:border-box;overflow:visible;margin:0 auto;max-width:100%}.fittable-item-image{display:block;object-fit:contain;transform-origin:center center;position:absolute;top:50%;left:50%;flex-shrink:0;flex-grow:0;max-width:none!important;max-height:none!important}.fittable-item-placeholder{width:100%;height:100%;color:rgba(255,255,255,.7);font-size:.75rem}.fittable-item-placeholder,.item-image-container{display:flex;align-items:center;justify-content:center}.item-image-container{position:relative;margin-bottom:.75rem;padding:.25rem;background-color:var(--bg-black);border-radius:4px;border:1px solid var(--border-white-light);overflow:hidden}.item-image{width:100%;height:100%;object-fit:contain;display:block}.item-image-placeholder{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:.75rem;padding:.5rem;background-color:var(--bg-black);border-radius:8px;border:1px solid var(--border-white-light);min-height:50px;color:rgba(255,255,255,.4);font-size:.75rem}.item-rotate-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px;display:none;align-items:center;justify-content:center;background-color:rgba(0,0,0,.8);border-radius:50%;border:1px solid rgba(255,255,255,.3);cursor:pointer;transition:all .2s ease;z-index:10;color:#fff}.item-rotate-icon svg{width:18px;height:18px}.item-rotate-icon:hover{background-color:rgba(103,232,249,.9);border-color:var(--color-cyan);transform:translate(-50%,-50%) scale(1.1)}.item-rotate-icon:active{transform:translate(-50%,-50%) scale(.95)}.fittable-item-card:hover .item-rotate-icon,.item-card:hover .item-rotate-icon{display:flex}@media (hover:none) and (pointer:coarse){.item-rotate-icon{width:26px;height:26px;background-color:rgba(0,0,0,.7);border-width:1px}.item-rotate-icon svg{width:16px;height:16px}}.touch-drag-preview{position:fixed;pointer-events:none;z-index:3000;background-color:rgba(248,113,113,.25);border:1px solid rgba(139,0,0,.8);border-radius:4px;box-shadow:0 8px 16px rgba(0,0,0,.35);overflow:hidden;display:flex;align-items:center;justify-content:center;padding:2px;backdrop-filter:blur(2px)}.touch-drag-preview-image{position:absolute;top:50%;left:50%;transform-origin:center center}.touch-drag-preview-placeholder{font-size:.75rem;color:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-shadow:0 0 4px rgba(0,0,0,.6)}@media (min-width:2560px){.home-container{max-width:1600px;gap:40px}.start-btn{padding:24px 70px;font-size:32px}.game-rules{max-width:1000px;padding:35px}.rules-title{font-size:24px}.rule-item{font-size:16px}}@media (min-width:1920px){.home-container{max-width:1400px;margin-top:50vh;gap:35px}.start-btn{padding:22px 65px;font-size:30px}.game-rules{max-width:900px;padding:30px}.rules-title{font-size:22px}.rule-item{font-size:15px}}@media (min-width:1440px) and (max-width:1919px){.home-container{margin-top:50vh;gap:30px}}@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){.home-container{margin-top:25vh;gap:20px;min-height:calc(100vh - 25vh);padding-bottom:1.5rem}.start-btn{padding:16px 50px;font-size:22px;min-width:200px}.game-rules{max-width:85%;max-height:calc(100vh - 35vh);padding:20px;min-height:180px}}@media (min-width:768px) and (max-width:1024px) and (orientation:portrait){.home-container{margin-top:45vh;gap:25px;padding:0 20px}.start-btn{padding:18px 50px;font-size:24px;letter-spacing:2px}.game-rules{max-width:90%;padding:22px;max-height:calc(100vh - 55vh)}}@media (max-width:768px) and (orientation:landscape){.home-container{margin-top:25vh;gap:15px;padding:0 15px}.start-btn{padding:12px 40px;font-size:18px;max-width:280px}.game-rules{max-width:95%;padding:16px;max-height:calc(100vh - 35vh)}.rules-title{font-size:16px;margin-bottom:10px}.rules-list{gap:5px}.rule-item{font-size:12px;padding:3px 0 3px 16px;line-height:1.3}}@media (max-width:768px) and (orientation:portrait){.home-container{margin-top:40vh;gap:20px;padding:0 15px}.start-btn{padding:16px 45px;font-size:22px;letter-spacing:1.5px;width:100%;max-width:300px}.start-btn:after{font-size:16px;right:15px}.game-rules{padding:20px;max-width:100%;max-height:calc(100vh - 50vh)}.rules-title{font-size:18px;margin-bottom:15px}.rule-item{font-size:13px;padding:5px 0 5px 18px;line-height:1.4}}@media (max-width:480px){.home-container{margin-top:35vh;gap:18px;padding:0 12px}.start-btn{padding:14px 35px;font-size:18px;letter-spacing:1px;border-width:2px;max-width:280px}.start-btn:after{font-size:14px;right:12px}.game-rules{padding:16px;max-height:calc(100vh - 45vh)}.rules-title{font-size:16px;margin-bottom:12px}.rules-list{gap:6px}.rule-item{font-size:12px;padding:4px 0 4px 16px;line-height:1.3}.rule-item:before{font-size:16px}}@media (max-width:360px){.home-container{margin-top:30vh;gap:15px;padding:0 10px}.start-btn{padding:12px 30px;font-size:16px;max-width:250px}.start-btn:after{font-size:12px;right:10px}.game-rules{padding:14px;max-height:calc(100vh - 40vh)}.rules-title{font-size:14px;margin-bottom:10px}.rule-item{font-size:11px;padding:3px 0 3px 14px}}@media (max-height:600px){.home-container{margin-top:20vh;gap:12px}.start-btn{padding:10px 30px;font-size:16px}.game-rules{padding:12px;max-height:calc(100vh - 30vh)}.rules-title{font-size:14px;margin-bottom:8px}.rules-list{gap:4px}.rule-item{font-size:11px;padding:2px 0;line-height:1.2}}@media (max-width:768px){.loading-spinner{width:60px;height:60px}.loading-message{font-size:16px}.loading-content{gap:20px}}@media (max-width:1024px){.sidebar-toggle-btn{display:inline-flex!important}.play-page-content{flex-direction:column}.play-page-sidebar{flex:none;height:auto}.board-list{flex-direction:row;overflow-x:auto;padding-bottom:.5rem;gap:.75rem}.board-card{width:220px;min-width:220px;flex-shrink:0}.board-card-number{font-size:1.5rem}.board-card-header{gap:.5rem}.board-card-version-name{font-size:.7rem;padding:.1rem .4rem}.board-card-icon{font-size:1.75rem}.play-page-center{flex:0 0 auto}.play-page-content{flex-direction:column!important;position:relative;display:flex!important;height:calc(100vh - var(--header-height, 73px));min-height:0}.play-page-sidebar{position:fixed;top:var(--header-height,60px);left:0;right:0;width:100%;max-width:100%;min-width:auto;max-height:0;overflow:hidden;padding:0;border-right:none;border-bottom:1px solid var(--border-purple-light);background-color:var(--bg-black);z-index:99;transition:max-height .3s ease,padding .3s ease;box-shadow:0 4px 12px rgba(0,0,0,.5)}.play-page-sidebar.sidebar-open{max-height:400px;padding:1rem;overflow-y:auto}.play-page-center{flex:0 0 auto!important;padding:1rem;min-width:0;overflow-y:auto;overflow-x:auto;width:100%}.play-page-right{width:100%!important;min-width:auto!important;max-width:100%!important;flex:1!important;min-height:200px!important;padding:1rem!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important}.play-page-right .fittable-items-grid{flex:1!important;min-height:0;overflow-y:auto;align-content:flex-start;display:flex!important}.fittable-items-grid{justify-content:center}}@media (max-width:768px){.sidebar-toggle-btn{display:inline-flex!important}.play-page-header{padding:.75rem 1rem;gap:.5rem;flex-direction:row;align-items:center;flex-wrap:wrap;height:auto;min-height:60px}.play-page-header-left{flex:1;min-width:0;gap:.5rem}.play-page-header-right{flex-shrink:0}.back-btn,.reset-btn{font-size:.8rem;padding:.4rem .75rem;white-space:nowrap}.play-page-sidebar{position:fixed;top:var(--header-height,60px);left:0;right:0;width:100%;max-width:100%;min-width:auto;max-height:0;overflow:hidden;padding:0;border-right:none;border-bottom:1px solid var(--border-purple-light);background-color:var(--bg-black);z-index:99;transition:max-height .3s ease,padding .3s ease;box-shadow:0 4px 12px rgba(0,0,0,.5)}.play-page-sidebar.sidebar-open{max-height:400px;padding:1rem;overflow-y:auto}.play-page-content{position:relative;flex-direction:column!important;display:flex!important;height:calc(100vh - var(--header-height, 73px))!important;min-height:0;overflow-x:visible!important;overflow-y:auto!important}.play-page-center{padding:1rem .75rem;padding-bottom:calc(40vh + 1rem)!important;flex:0 0 auto!important;min-height:0;overflow-y:auto;overflow-x:auto;width:100%}.play-page-right{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;min-height:200px!important;max-height:40vh!important;padding:1rem .75rem!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;background-color:rgba(0,0,0,.95)!important;z-index:100!important;box-shadow:0 -4px 12px rgba(0,0,0,.5)!important;overflow-y:auto!important}.play-page-right .fittable-items-grid{flex:1!important;display:flex!important}.board-selection-title{font-size:.9rem}.board-cell{width:36px;height:36px;min-width:36px;min-height:36px}.game-stats-bar{gap:.75rem;padding:.5rem .75rem;flex-wrap:wrap}.game-stats-bar .stat-item{flex:1;min-width:70px}.game-stats-bar .stat-label{font-size:.65rem}.game-stats-bar .stat-value{font-size:.9rem}.stat-divider{height:30px}.play-page-right{padding:1rem .75rem;flex:1;min-height:0;display:flex!important;flex-direction:column;width:100%;order:3}.play-page-right .fittable-items-grid{flex:1;min-height:0;overflow-y:auto;align-content:flex-start}.items-title{font-size:.85rem}.fittable-items-grid{gap:.5rem}.reset-confirm-modal{max-width:95%;margin:1rem}.reset-confirm-modal-content{padding:2rem 1.5rem;gap:1.25rem}.reset-confirm-modal-title{font-size:1.75rem}.reset-confirm-modal-message{font-size:.95rem}.reset-confirm-modal-actions{flex-direction:column;gap:.75rem}.reset-confirm-modal-btn{width:100%}.completion-modal{max-width:95%;margin:1rem}.completion-modal-content{padding:2rem 1.5rem;gap:1.25rem}.completion-modal-title{font-size:1.75rem}.completion-modal-message{font-size:1rem}.completion-modal-actions{flex-direction:column;gap:.75rem}.completion-modal-btn{width:100%}}@media (max-width:480px){.play-page-header{padding:.5rem .75rem;gap:.5rem}.back-btn,.reset-btn,.sidebar-toggle-btn{font-size:.75rem;padding:.35rem .6rem}.play-page-sidebar.sidebar-open{max-height:350px;padding:.75rem}.board-card{width:200px;min-width:200px;padding:.75rem}.board-card-number{font-size:1.3rem;font-weight:800}.board-card-header{gap:.4rem;flex-wrap:wrap}.board-card-icon{font-size:1.25rem}.board-card-version-name{letter-spacing:.8px}.board-card-guaranteed,.board-card-version-name{font-size:.65rem;padding:.1rem .4rem}.board-card-details,.board-card-empty{font-size:.7rem;font-size:.6rem}.play-page-center{padding:.75rem .5rem;padding-bottom:calc(40vh + .75rem)!important;flex:0 0 auto;min-height:0;overflow-y:auto;overflow-x:auto;width:100%}.board-cell{width:32px;height:32px;min-width:32px;min-height:32px}.game-stats-bar{gap:.5rem;padding:.5rem .6rem;flex-wrap:wrap}.game-stats-bar .stat-item{flex:1;min-width:70px}.game-stats-bar .stat-label{font-size:.6rem}.game-stats-bar .stat-value{font-size:.85rem}.stat-divider{height:28px}.play-page-right{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;min-height:200px!important;max-height:40vh!important;padding:.75rem .5rem!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;background-color:rgba(0,0,0,.95)!important;z-index:100!important;box-shadow:0 -4px 12px rgba(0,0,0,.5)!important;overflow-y:auto!important}.play-page-right .fittable-items-grid{flex:1!important;min-height:0;overflow-y:auto;align-content:flex-start;display:flex!important}.items-title{font-size:.8rem;margin-bottom:.5rem}.fittable-items-grid{gap:.4rem}.reset-confirm-modal-content{padding:1.5rem 1rem;gap:1rem}.reset-confirm-modal-icon,.reset-confirm-modal-icon-wrapper{width:80px;height:80px}.reset-confirm-modal-title{font-size:1.5rem}.reset-confirm-modal-message{font-size:.9rem}.completion-modal-content{padding:1.5rem 1rem;gap:1rem}.completion-modal-icon,.completion-modal-icon-wrapper{width:80px;height:80px}.completion-modal-title{font-size:1.5rem}.completion-modal-message{font-size:.9rem}.recommendation-board-card{min-width:70px;padding:.5rem .75rem}.recommendation-board-icon{font-size:1.25rem}.recommendation-board-price{font-size:.9rem}.recommendation-board-version-name{font-size:.65rem}.recommendation-board-guaranteed{font-size:.6rem}}@media (max-width:360px){.board-cell{width:28px;height:28px;min-width:28px;min-height:28px}.game-stats-bar .stat-value{font-size:.75rem}.game-stats-bar .stat-label{font-size:.55rem}}@media (max-width:1024px) and (orientation:landscape){.play-page-sidebar{max-height:200px}.play-page-center{flex:0 0 auto;min-height:0;overflow-y:auto;overflow-x:auto;width:100%}.play-page-right{flex:1;min-height:0;display:flex;flex-direction:column;height:100%}.play-page-right .fittable-items-grid{flex:1;min-height:0;overflow-y:auto;align-content:flex-start}}@media (hover:none) and (pointer:coarse){.board-cell,.fittable-item-card,.item-card{cursor:pointer;touch-action:none}.fittable-item-card,.item-card{-webkit-user-select:none;user-select:none}.draggable-item{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.game-board-container{touch-action:none}.item-rotate-icon{display:flex!important}}