.tile{flex:1;border-radius:var(--border-radius-md);display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;box-sizing:border-box;transition:all .15s cubic-bezier(.4,0,.2,1);box-shadow:var(--shadow-sm);border:2px solid transparent;background-clip:padding-box;position:relative;transform-origin:center center}.tile-empty{background:var(--bg-tile-empty);box-shadow:none;border-radius:var(--border-radius-md)}.tile-value{color:var(--text-tile-light);animation:popIn .2s ease-out;font-family:JetBrains Mono,SF Mono,Courier New,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:600}@keyframes popIn{0%{transform:scale(.7);opacity:0}70%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}.tile-2{background:var(--tile-2);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}@keyframes tileAppear{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.tile-4{background:var(--tile-4);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-8{background:var(--tile-8);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-8 .tile-value{color:var(--text-tile-dark)}.tile-16{background:var(--tile-16);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-16 .tile-value{color:var(--text-tile-dark)}.tile-32{background:var(--tile-32);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-32 .tile-value{color:var(--text-tile-dark)}.tile-64{background:var(--tile-64);animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-64 .tile-value{color:var(--text-tile-dark)}.tile-128{background:var(--tile-128);font-size:34px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-128 .tile-value{color:var(--text-tile-dark)}.tile-256{background:var(--tile-256);font-size:34px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-256 .tile-value{color:var(--text-tile-dark)}.tile-512{background:var(--tile-512);font-size:34px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1);box-shadow:var(--shadow-sm)}.tile-512 .tile-value{color:var(--text-tile-dark)}.tile-1024{background:var(--tile-1024);font-size:28px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1),glowPulse 2s ease-in-out infinite;box-shadow:var(--shadow-md),0 0 20px #edc22e66,0 0 40px #edc22e33}.tile-1024 .tile-value{color:var(--text-tile-dark);text-shadow:0 0 10px rgba(255,255,255,.3)}.tile-2048{background:var(--tile-2048);font-size:28px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1),winPulse 1.5s ease-in-out infinite;box-shadow:var(--shadow-lg),0 0 30px #edcf7299,0 0 60px #edcf724d,inset 0 0 20px #ffffff1a}@keyframes winPulse{0%,to{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.08);filter:brightness(1.15)}}.tile-2048 .tile-value{color:var(--text-tile-dark);text-shadow:0 0 15px rgba(255,255,255,.5),0 2px 4px rgba(0,0,0,.2);animation:textGlow 1.5s ease-in-out infinite}@keyframes textGlow{0%,to{text-shadow:0 0 15px rgba(255,255,255,.5),0 2px 4px rgba(0,0,0,.2)}50%{text-shadow:0 0 25px rgba(255,255,255,.8),0 2px 4px rgba(0,0,0,.2)}}.tile-4096{background:#3c3a32;font-size:30px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1),epicGlow 2s ease-in-out infinite;box-shadow:var(--shadow-lg),0 0 35px #3c3a32b3,0 0 70px #3c3a3266,inset 0 0 30px #ffffff1a}.tile-4096 .tile-value{color:#f9f6f2;text-shadow:0 0 20px rgba(255,255,255,.6),0 2px 6px rgba(0,0,0,.3)}.tile-8192{background:#3c3a32;font-size:30px;animation:tileAppear .15s cubic-bezier(.34,1.56,.64,1),epicGlow 2s ease-in-out infinite;box-shadow:var(--shadow-lg),0 0 40px #3c3a32cc,0 0 80px #3c3a3280,inset 0 0 40px #ffffff26}.tile-8192 .tile-value{color:#f9f6f2;text-shadow:0 0 25px rgba(255,255,255,.7),0 2px 8px rgba(0,0,0,.4)}@keyframes epicGlow{0%,to{transform:scale(1);filter:brightness(1) saturate(1)}50%{transform:scale(1.1);filter:brightness(1.2) saturate(1.3)}}@keyframes glowPulse{0%,to{filter:brightness(1)}50%{filter:brightness(1.1)}}.tile.merged{animation:mergeShake .4s cubic-bezier(.36,.07,.19,.97)}@keyframes mergeShake{0%{transform:scale(1) rotate(0);filter:brightness(1)}10%{transform:scale(1.15) rotate(-2deg);filter:brightness(1.4)}20%{transform:scale(1.12) rotate(2deg);filter:brightness(1.35)}30%{transform:scale(1.1) rotate(-1deg);filter:brightness(1.3)}40%{transform:scale(1.08) rotate(1deg);filter:brightness(1.25)}50%{transform:scale(1.05) rotate(0);filter:brightness(1.2)}to{transform:scale(1) rotate(0);filter:brightness(1)}}@media (max-width: 520px){.tile{font-size:32px;border-width:1px}.tile-128,.tile-256,.tile-512{font-size:24px}.tile-1024,.tile-2048{font-size:19px}.tile-4096,.tile-8192{font-size:17px}}@media (max-width: 380px){.tile{font-size:28px}.tile-128,.tile-256,.tile-512{font-size:20px}.tile-1024,.tile-2048{font-size:16px}.tile-4096,.tile-8192{font-size:14px}}.board{width:380px;height:380px;background:var(--bg-board);border-radius:var(--border-radius-lg);padding:var(--spacing-md);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--spacing-md);box-shadow:0 2px 8px #776e6526,0 8px 32px #776e6540,0 16px 64px #776e6526,inset 0 0 0 1px #faf8ef26,inset 0 2px 4px #faf8ef0d;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;background-image:linear-gradient(rgba(119,110,101,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(119,110,101,.08) 1px,transparent 1px);background-size:20px 20px;background-color:var(--bg-board)}.board:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at center,rgba(250,248,239,.03) 0%,transparent 70%);pointer-events:none;z-index:0}.board:hover{box-shadow:0 2px 12px #776e6533,0 12px 40px #776e654d,0 20px 72px #776e6533,inset 0 0 0 1px #faf8ef33,inset 0 2px 4px #faf8ef14;transform:translateY(-2px)}.board-row{display:flex;gap:var(--spacing-md);flex:1;position:relative;z-index:1}@media (max-width: 520px){.board{width:280px;height:280px;padding:8px;gap:8px;box-sizing:border-box}.board-row{gap:8px}}@media (max-width: 380px){.board{width:calc(100vw - 40px);height:calc(100vw - 40px);max-width:280px;max-height:280px;padding:6px;gap:6px}.board-row{gap:6px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}.modal-content{background:var(--ui-panel-bg);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.15);box-shadow:0 8px 32px #0000001a,inset 0 1px #fff3;width:90%;max-width:400px;animation:slideUp .3s ease-out;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--ui-panel-border)}.modal-title{font-size:18px;font-weight:700;color:var(--text-primary);margin:0}.modal-close{background:none;border:none;color:var(--text-primary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:var(--border-radius-sm);transition:all var(--transition-fast)}.modal-close:hover{background:var(--ui-button-hover)}.modal-body{padding:20px}.modal-board{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--spacing-sm);margin-bottom:20px}.modal-tile{aspect-ratio:1;background:var(--ui-button-bg);border-radius:var(--border-radius-sm);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all var(--transition-fast);box-shadow:var(--shadow-sm);position:relative;font-family:JetBrains Mono,SF Mono,Courier New,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:600}.modal-tile.empty{background:var(--bg-tile-empty);opacity:.5;cursor:not-allowed}.modal-tile:not(.empty):hover{transform:translateY(-3px);box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.modal-tile.selected{background:var(--tile-32);color:var(--text-light);transform:scale(1.05);box-shadow:var(--shadow-md)}.modal-instructions{text-align:center;color:var(--text-primary);font-size:14px;margin-bottom:var(--spacing-lg);line-height:1.5}.modal-number-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}.modal-number-button{background:var(--ui-button-bg);border:none;border-radius:var(--border-radius-sm);padding:var(--spacing-lg);font-size:18px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all var(--transition-fast);box-shadow:var(--shadow-sm);font-family:JetBrains Mono,SF Mono,Courier New,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:600}.modal-number-button:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.modal-number-button:active{transform:translateY(-1px);background:var(--ui-button-active)}.modal-number-button.disabled{opacity:.3;cursor:not-allowed}.modal-number-button.disabled:hover{transform:none;box-shadow:var(--shadow-sm);background:var(--ui-button-bg)}.modal-actions{display:flex;gap:10px;justify-content:flex-end}.modal-button{background:var(--ui-button-bg);border:none;border-radius:var(--border-radius-sm);padding:10px 20px;font-size:13px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all var(--transition-fast);box-shadow:var(--shadow-sm);text-transform:uppercase;letter-spacing:.5px}.modal-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.modal-button.primary{background:var(--text-secondary);color:var(--text-light)}.modal-button.primary:hover{background:var(--text-primary)}@media (max-width: 520px){.modal-content{max-width:90%}.modal-title,.modal-tile{font-size:16px}.modal-number-button{padding:var(--spacing-md);font-size:16px}}.power-ups-panel{width:100%;max-width:380px}.power-ups-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}.power-up-button{background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);padding:8px 10px;cursor:pointer;transition:all var(--transition-normal);box-shadow:var(--shadow-sm);display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;min-height:40px}.power-up-button:hover:not(.disabled){box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.power-up-button:active:not(.disabled){transform:translateY(0)}.power-up-button.disabled{opacity:.3;cursor:not-allowed;background:var(--bg-tile-empty)}.power-up-icon{width:16px;height:16px;color:var(--text-primary);flex-shrink:0}.power-up-button.disabled .power-up-icon{color:var(--text-secondary)}.power-up-name{font-size:9px;font-weight:700;color:var(--text-primary);text-transform:uppercase;letter-spacing:.2px;white-space:nowrap}.power-up-button.disabled .power-up-name{color:var(--text-secondary)}.power-up-count{background:var(--text-secondary);color:var(--text-light);min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;font-family:JetBrains Mono,SF Mono,Courier New,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;padding:0 4px;flex-shrink:0}.power-up-button.disabled .power-up-count{background:#776e6566}@media (max-width: 520px){.power-ups-panel{max-width:280px}.power-ups-grid{gap:5px}.power-up-button{padding:5px 6px;min-height:32px}.power-up-icon{width:14px;height:14px}.power-up-name{font-size:8px}.power-up-count{min-width:14px;height:14px;font-size:8px;padding:0 3px}}@media (max-width: 380px){.power-ups-panel{max-width:calc(100vw - 40px)}.power-ups-grid{gap:4px}.power-up-button{padding:4px 5px;min-height:30px;gap:3px}.power-up-icon{width:12px;height:12px}.power-up-name{font-size:7px}.power-up-count{min-width:12px;height:12px;font-size:7px;padding:0 2px}}.game-container{display:flex;flex-direction:column;align-items:stretch;gap:var(--spacing-lg);width:380px}.score-section{display:flex;flex-direction:column;gap:var(--spacing-sm);width:100%}.scores-wrapper{display:flex;gap:var(--spacing-sm);width:100%}.score-container{background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:12px 16px;border-radius:var(--border-radius-md);color:var(--text-primary);text-align:center;flex:1;box-shadow:var(--shadow-sm);transition:all var(--transition-normal);display:flex;flex-direction:column;justify-content:center;border:1px solid var(--ui-panel-border);min-height:52px}.score-container:hover{box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.score-label{font-size:10px;font-weight:700;text-transform:uppercase;color:var(--text-secondary);letter-spacing:.3px}.score-value{font-size:16px;font-weight:700;color:var(--text-primary);margin-top:2px;font-family:JetBrains Mono,SF Mono,Courier New,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1)}.score-value.updating{animation:scoreUpdate .4s ease}@keyframes scoreUpdate{0%{transform:scale(1) translateY(0);filter:brightness(1)}50%{transform:scale(1.15) translateY(-2px);filter:brightness(1.2);color:#edc22e}to{transform:scale(1) translateY(0);filter:brightness(1)}}.new-game-button-full{background:var(--tile-32);color:var(--text-tile-dark);border:1px solid transparent;border-radius:var(--border-radius-md);padding:12px 20px;font-size:13px;font-weight:700;cursor:pointer;transition:all var(--transition-normal);box-shadow:var(--shadow-sm);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.new-game-button-full:hover:not(:disabled){box-shadow:var(--shadow-md);background:var(--tile-64)}.new-game-button-full:active:not(:disabled){transform:scale(.98)}.new-game-button-full:disabled{opacity:.5;cursor:not-allowed}.new-game-icon{width:16px;height:16px}.toast-notification{position:fixed;top:20px;right:20px;background:var(--tile-8);border-radius:var(--border-radius-md);padding:10px 16px;box-shadow:var(--shadow-md);border:1px solid var(--ui-panel-border);z-index:1000;animation:slideIn .3s ease-out;min-width:200px;max-width:350px}@keyframes slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-notification.closing{animation:slideOut .3s ease-in forwards}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(400px);opacity:0}}.toast-content{display:flex;align-items:center;gap:10px}.toast-icon{line-height:1;flex-shrink:0;display:flex;align-items:center}.toast-text{font-size:13px;color:var(--text-tile-dark);font-weight:600;line-height:1.4;flex:1}.toast-notification.success{background:var(--tile-128)}.toast-notification.success .toast-icon{color:var(--text-tile-dark)}.toast-notification.error{background:var(--tile-64)}.toast-notification.error .toast-icon{color:var(--text-tile-dark)}.toast-notification.info{background:var(--tile-8)}.toast-notification.info .toast-icon{color:var(--text-tile-dark)}.board-wrapper{position:relative;width:380px;height:380px}.game-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bg-tile-empty);opacity:.9;border-radius:var(--border-radius-lg);display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:.9}}.overlay-content{text-align:center;color:var(--text-primary)}.overlay-content h2{font-size:48px;font-weight:700;margin:0 0 var(--spacing-xl) 0;color:var(--text-primary)}.overlay-buttons{display:flex;gap:var(--spacing-md);justify-content:center}.try-again-button,.keep-playing-button{background:var(--text-secondary);color:var(--text-light);border:none;border-radius:var(--border-radius-md);padding:var(--spacing-md) var(--spacing-xl);font-size:16px;font-weight:700;cursor:pointer;transition:all var(--transition-normal);box-shadow:var(--shadow-sm)}.try-again-button:hover,.keep-playing-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.keep-playing-button{background:var(--tile-2048);box-shadow:var(--shadow-sm)}.keep-playing-button:hover{box-shadow:var(--shadow-md)}.controls-hint{color:var(--text-primary);font-size:13px;text-align:center;line-height:1.6}@media (max-width: 520px){.game-container{width:280px}.board-wrapper{width:280px;height:280px}.score-section,.scores-wrapper{gap:6px}.score-container{padding:6px 10px;min-height:42px}.score-label{font-size:9px}.score-value{font-size:14px}.new-game-button-full{padding:8px 14px;font-size:11px}.new-game-icon{width:14px;height:14px}.overlay-content h2{font-size:36px}.try-again-button,.keep-playing-button{padding:10px 18px;font-size:14px}.controls-hint{font-size:12px}.toast-notification{top:10px;right:10px;min-width:200px;max-width:calc(100vw - 20px)}}@media (max-width: 380px){.game-container{width:calc(100vw - 40px);max-width:280px}.board-wrapper{width:calc(100vw - 40px);height:calc(100vw - 40px);max-width:280px;max-height:280px}.score-section,.scores-wrapper{gap:5px}.score-container{padding:5px 8px;min-height:38px}.score-label{font-size:8px}.score-value{font-size:12px}.new-game-button-full{padding:6px 12px;font-size:10px}.new-game-icon{width:12px;height:12px}}.theme-toggle{background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);padding:6px;cursor:pointer;box-shadow:var(--shadow-sm);transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;width:48px;height:48px}.theme-toggle:hover{box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.theme-toggle:active{transform:scale(.95)}.theme-toggle-icon{color:var(--text-primary);display:flex;align-items:center;justify-content:center;transition:color var(--transition-fast)}@media (max-width: 520px){.theme-toggle{width:40px;height:40px}.theme-toggle-icon svg{width:16px;height:16px}}.fullscreen-toggle{background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);padding:6px;cursor:pointer;box-shadow:var(--shadow-sm);transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;width:48px;height:48px}.fullscreen-toggle:hover{box-shadow:var(--shadow-md);background:var(--ui-button-hover)}.fullscreen-toggle:active{transform:scale(.95)}.fullscreen-toggle-icon{color:var(--text-primary);display:flex;align-items:center;justify-content:center;transition:color var(--transition-fast)}@media (max-width: 520px){.fullscreen-toggle{width:40px;height:40px}.fullscreen-toggle-icon svg{width:16px;height:16px}}.faq-container{max-width:800px;margin:40px auto;padding:20px;width:100%}.faq-header{text-align:center;margin-bottom:var(--spacing-xl)}.faq-header h2{font-size:2rem;color:var(--text-primary);margin-bottom:var(--spacing-sm);font-weight:700;transition:color var(--transition-normal)}.faq-header p{font-size:1rem;color:var(--text-secondary);margin:0;transition:color var(--transition-normal)}.faq-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.faq-item{background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:var(--border-radius-md);box-shadow:var(--shadow-sm);overflow:hidden;transition:all var(--transition-normal);border:1px solid var(--ui-panel-border)}.faq-item:hover{box-shadow:var(--shadow-md)}.faq-item.active{background:var(--ui-button-hover);box-shadow:var(--shadow-md)}.faq-question{width:100%;padding:var(--spacing-lg);background:transparent;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-md);font-size:1.1rem;font-weight:600;color:var(--text-primary);transition:all var(--transition-fast)}.faq-question:hover{background:#f2b1791a}.faq-question:focus-visible{outline:1px solid var(--ui-panel-border);outline-offset:-1px}.faq-icon{flex-shrink:0;width:20px;height:20px;color:var(--tile-32);transition:transform var(--transition-normal)}.faq-item.active .faq-icon{transform:rotate(180deg);color:var(--tile-64)}.faq-answer{max-height:0;overflow:hidden;transition:max-height var(--transition-slow),padding var(--transition-slow);padding:0 var(--spacing-lg)}.faq-item.active .faq-answer{max-height:500px;padding:0 var(--spacing-lg) var(--spacing-lg)}.faq-answer p{color:var(--text-primary);line-height:1.7;margin:0 0 var(--spacing-md) 0;font-size:.95rem;transition:color var(--transition-normal)}.faq-answer p:last-child{margin-bottom:0}.faq-answer strong{color:var(--tile-32);font-weight:600}.faq-answer ul{margin:var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);padding:0;list-style-type:disc}.faq-answer li{margin:var(--spacing-xs) 0;color:var(--text-primary);line-height:1.6}@media (max-width: 768px){.faq-container{padding:var(--spacing-md);margin:var(--spacing-xl) auto}.faq-header h2{font-size:1.75rem}.faq-header p{font-size:.95rem}.faq-question{font-size:1rem;padding:var(--spacing-md)}.faq-answer p{font-size:.9rem}.faq-item.active .faq-answer{padding:0 var(--spacing-md) var(--spacing-md)}}@media (max-width: 480px){.faq-header h2{font-size:1.5rem}.faq-question{font-size:.95rem}.faq-icon{width:20px;height:20px}}@media (prefers-reduced-motion: reduce){.faq-item,.faq-question,.faq-answer,.faq-icon{transition:none}}@media print{.faq-item{page-break-inside:avoid;box-shadow:none;border:1px solid #ccc}.faq-answer{max-height:none!important;padding:0 var(--spacing-lg) var(--spacing-lg)!important}.faq-icon{display:none}}.App{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:100vh;padding:20px;max-width:600px;margin:0 auto}.app-header-row{display:flex;justify-content:space-between;align-items:flex-start;width:100%;margin-bottom:20px}.heading{text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--spacing-md);margin-bottom:20px}.title{font-size:80px;font-weight:700;color:var(--text-primary);margin:0;line-height:1;transition:color var(--transition-normal)}.controls-row{display:flex;gap:var(--spacing-sm);align-items:center;justify-content:center}.intro-section{text-align:center;margin-bottom:20px;width:100%;background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);padding:20px;box-shadow:var(--shadow-sm);transition:all var(--transition-normal)}.intro-section:hover{box-shadow:var(--shadow-md)}.subtitle{font-size:18px;color:var(--text-primary);margin:0 0 10px;line-height:1.5;transition:color var(--transition-normal)}.description{font-size:16px;color:var(--text-secondary);margin:0;line-height:1.6;transition:color var(--transition-normal)}.game-explanation{width:100%;max-width:500px;margin:40px 0 20px;color:var(--text-primary);line-height:1.6;background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);padding:24px;box-shadow:var(--shadow-sm);transition:all var(--transition-normal)}.game-explanation:hover{box-shadow:var(--shadow-md)}.game-explanation h2{font-size:24px;font-weight:700;margin:0 0 20px;color:var(--text-primary);transition:color var(--transition-normal);padding-bottom:12px;border-bottom:1px solid var(--ui-panel-border)}.game-explanation h3{font-size:20px;font-weight:700;margin:28px 0 12px;color:var(--text-primary);transition:color var(--transition-normal)}.game-explanation p{margin:0 0 15px;font-size:16px;transition:color var(--transition-normal);color:var(--text-secondary)}.game-explanation ul{margin:10px 0 20px;padding-left:24px;list-style-type:none}.game-explanation li{margin:10px 0;font-size:15px;transition:color var(--transition-normal);color:var(--text-secondary);padding-left:12px;position:relative}.game-explanation li:before{content:"•";position:absolute;left:0;color:var(--tile-32);font-weight:700}.App-footer{text-align:center;margin-top:40px;padding:20px;width:100%;color:var(--text-secondary);background:var(--ui-panel-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--ui-panel-border);border-radius:var(--border-radius-md);box-shadow:var(--shadow-sm);transition:all var(--transition-normal)}.App-footer:hover{box-shadow:var(--shadow-md)}.App-footer p{margin:8px 0;font-size:14px}.credits{font-size:13px}.credits a{color:var(--text-primary);text-decoration:none;border-bottom:1px solid transparent;transition:all var(--transition-fast);padding-bottom:2px}.credits a:hover{color:var(--tile-32);border-bottom-color:var(--tile-32)}body.fullscreen-mode .intro-section,body.fullscreen-mode .game-explanation,body.fullscreen-mode .faq-container,body.fullscreen-mode .App-footer{display:none}body.fullscreen-mode .App{justify-content:center;padding:20px;min-height:100vh}body.fullscreen-mode .heading{margin-bottom:15px}body.fullscreen-mode .title{font-size:60px}@media (max-width: 520px){.app-header-row{flex-direction:column;align-items:center;gap:var(--spacing-md)}.heading{margin-bottom:15px}.title{font-size:50px}.controls-row{gap:8px}.subtitle{font-size:16px}body.fullscreen-mode .title{font-size:40px}.description,.game-explanation{font-size:14px}.game-explanation h2{font-size:20px}.game-explanation h3{font-size:18px}.game-explanation p,.game-explanation li{font-size:14px}}:root{--bg-primary: #faf8ef;--bg-secondary: #f5f5f5;--bg-board: #bbada0;--bg-tile-empty: #cdc1b4;--font-mono: "JetBrains Mono", "SF Mono", "Courier New", monospace;--tile-2: #eee4da;--tile-4: #ede0c8;--tile-8: #f2b179;--tile-16: #f59563;--tile-32: #f67c5f;--tile-64: #f65e3b;--tile-128: #edcf72;--tile-256: #edcc61;--tile-512: #edc850;--tile-1024: #edc53f;--tile-2048: #edc22e;--ui-panel-bg: rgba(238, 228, 218, .4);--ui-panel-border: rgba(187, 173, 160, .2);--ui-button-bg: rgba(238, 228, 218, .5);--ui-button-hover: rgba(242, 177, 121, .2);--ui-button-active: rgba(245, 149, 99, .3);--text-primary: #776e65;--text-secondary: #8f7a66;--text-light: #f9f6f2;--text-dark: #776e65;--text-tile-light: #776e65;--text-tile-dark: #f9f6f2;--shadow-sm: 0 1px 3px rgba(119, 110, 101, .06);--shadow-md: 0 2px 6px rgba(119, 110, 101, .08);--shadow-lg: 0 4px 12px rgba(119, 110, 101, .1);--border-radius-sm: 6px;--border-radius-md: 8px;--border-radius-lg: 12px;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 12px;--spacing-lg: 16px;--spacing-xl: 24px;--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-normal: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .3s cubic-bezier(.4, 0, .2, 1)}[data-theme=dark]{--bg-primary: #1a1a1a;--bg-secondary: #242424;--bg-board: #2d2d2d;--bg-tile-empty: #3a3a3a;--font-mono: "JetBrains Mono", "SF Mono", "Courier New", monospace;--tile-2: #3a3a3a;--tile-4: #4a4a4a;--tile-8: #8b5a2b;--tile-16: #a0522d;--tile-32: #b8623f;--tile-64: #c8502d;--tile-128: #b8982f;--tile-256: #b89428;--tile-512: #b89020;--tile-1024: #b88c18;--tile-2048: #b88810;--ui-panel-bg: rgba(58, 58, 58, .4);--ui-panel-border: rgba(74, 74, 74, .3);--ui-button-bg: rgba(74, 74, 74, .5);--ui-button-hover: rgba(139, 90, 43, .2);--ui-button-active: rgba(160, 82, 45, .3);--text-primary: #e0e0e0;--text-secondary: #b0b0b0;--text-light: #f9f9f9;--text-dark: #2a2a2a;--text-tile-light: #e0e0e0;--text-tile-dark: #f9f9f9;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .2);--shadow-md: 0 2px 6px rgba(0, 0, 0, .25);--shadow-lg: 0 4px 12px rgba(0, 0, 0, .3)}*{transition:background-color var(--transition-normal),color var(--transition-normal),border-color var(--transition-normal),box-shadow var(--transition-normal)}.no-transition *{transition:none!important}[data-theme=dark] .tile-2{box-shadow:0 0 12px #3a3a3a66,0 0 0 2px #3a3a3a80}[data-theme=dark] .tile-4{box-shadow:0 0 12px #4a4a4a66,0 0 0 2px #4a4a4a80}[data-theme=dark] .tile-8{box-shadow:0 0 16px #8b5a2b80,0 0 0 2px #8b5a2b99}[data-theme=dark] .tile-16{box-shadow:0 0 16px #a0522d80,0 0 0 2px #a0522d99}[data-theme=dark] .tile-32{box-shadow:0 0 18px #b8623f99,0 0 0 2px #b8623fb3}[data-theme=dark] .tile-64{box-shadow:0 0 18px #c8502d99,0 0 0 2px #c8502db3}[data-theme=dark] .tile-128{box-shadow:0 0 20px #b8982f99,0 0 0 2px #b8982fb3}[data-theme=dark] .tile-256{box-shadow:0 0 20px #b8942899,0 0 0 2px #b89428b3}[data-theme=dark] .tile-512{box-shadow:0 0 22px #b8902099,0 0 0 2px #b89020b3}[data-theme=dark] .tile-1024{box-shadow:0 0 22px #b88c18b3,0 0 0 2px #b88c18cc}[data-theme=dark] .tile-2048{box-shadow:0 0 24px #b88810b3,0 0 0 3px #b88810cc}[data-theme=dark] .tile-2048{animation:winPulse 1s ease-in-out infinite,goldenGlowDark 2s ease-in-out infinite}@keyframes goldenGlowDark{0%,to{box-shadow:0 0 24px #b88810b3,0 0 0 3px #b88810cc}50%{box-shadow:0 0 32px #b88810e6,0 0 0 3px #b88810}}[data-theme=dark] .board{box-shadow:0 8px 32px #00000080,inset 0 0 0 1px #ffffff0d;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:20px 20px;background-color:var(--bg-board)}[data-theme=dark] .game-header,[data-theme=dark] .power-ups-panel,[data-theme=dark] .modal-content,[data-theme=dark] .toast-notification{border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px #0000004d,inset 0 1px #ffffff1a}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Clear Sans,Helvetica Neue,Arial,sans-serif;background:var(--bg-primary);color:var(--text-primary);font-size:18px;margin:0;padding:0;line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html,body,#root{height:100%;min-height:100vh}body.no-transition,body.no-transition *{transition:none!important}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--ui-panel-border);border-radius:var(--border-radius-sm)}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}button:focus-visible,a:focus-visible{outline:2px solid var(--text-secondary);outline-offset:2px}::selection{background:var(--text-secondary);color:var(--text-light)}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body.fullscreen-mode{overflow:hidden;position:fixed;width:100%;height:100%;touch-action:none}body.fullscreen-mode #root{overflow-y:auto;height:100%;-webkit-overflow-scrolling:touch;touch-action:pan-y}.board{touch-action:none;-webkit-user-select:none;user-select:none}
