*{margin:0;padding:0;box-sizing:border-box}:root{--bg:#0a0b0f;--bg-2:#11131a;--card:#161922;--border:#232733;--text:#e8eaf0;--text-dim:#7a8190;--accent:#4f8cff;--accent-hover:#6ba1ff;--green:#2ecc71;--gold:#fdcb6e;--radius:12px}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column;align-items:center}.navbar{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0.75rem 1.5rem;border-bottom:1px solid var(--border);position:sticky;top:0;background:rgba(10,11,15,0.92);backdrop-filter:blur(12px);z-index:50}.navbar .brand{font-weight:800;color:var(--text);text-decoration:none;font-size:1.05rem}.navbar .nav-links{display:flex;gap:1rem}.navbar .nav-links a{color:var(--text-dim);text-decoration:none;font-size:0.82rem;transition:color .2s}.navbar .nav-links a:hover,.navbar .nav-links a.active{color:var(--accent-hover)}.game-wrap{width:100%;max-width:480px;padding:1rem}.hud{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;gap:0.75rem}.score-box{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:0.5rem 1rem;text-align:center;min-width:90px}.score-label{font-size:0.65rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.05em}.score-val{font-size:1.3rem;font-weight:800;font-variant-numeric:tabular-nums}.best-box .score-val{color:var(--gold)}.btn{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:0.55rem 1.1rem;font-size:0.82rem;font-weight:700;cursor:pointer;transition:background .2s,transform .1s;font-family:inherit}.btn:hover{background:var(--accent-hover)}.btn:active{transform:scale(0.96)}.grid-container{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:10px;position:relative;touch-action:none}.grid-bg{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.grid-cell{background:var(--bg-2);border-radius:8px;aspect-ratio:1}.tile-layer{position:absolute;top:10px;left:10px;right:10px;bottom:10px}.tile{position:absolute;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;transition:transform 0.12s ease;font-variant-numeric:tabular-nums}.tile-new{animation:pop 0.15s ease}@keyframes pop{0%{transform:scale(0)}100%{transform:scale(1)}}.overlay{position:absolute;inset:0;background:rgba(10,11,15,0.85);backdrop-filter:blur(6px);border-radius:var(--radius);display:none;flex-direction:column;align-items:center;justify-content:center;z-index:10}.overlay.show{display:flex}.overlay h2{font-size:1.8rem;margin-bottom:0.5rem}.overlay p{color:var(--text-dim);margin-bottom:1.25rem}.controls-hint{text-align:center;padding:0.75rem;font-size:0.75rem;color:var(--text-dim)}.controls-hint kbd{background:var(--card);border:1px solid var(--border);border-radius:4px;padding:1px 6px;font-size:0.7rem}.stats{text-align:center;margin:1rem 0;font-size:0.78rem;color:var(--text-dim)}.stats strong{color:var(--accent-hover);font-variant-numeric:tabular-nums}.stat-divider{margin:0 0.6rem;opacity:0.4}footer{text-align:center;padding:1.25rem;color:var(--text-dim);font-size:0.75rem;border-top:1px solid var(--border);width:100%}footer a{color:var(--accent-hover);text-decoration:none}.seo-content{max-width:480px;padding:1.5rem 1rem 2rem;color:var(--text-dim);font-size:0.85rem;line-height:1.7}.seo-content h2{color:var(--text);font-size:1.1rem;margin:1.25rem 0 0.5rem}.seo-content h1{font-size:1.5rem;margin-bottom:0.5rem;background:linear-gradient(135deg,#4f8cff,#2ecc71);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.seo-content p{margin-bottom:0.6rem}.seo-content ul{margin:0 0 0.6rem 1.25rem}.seo-content li{margin-bottom:0.3rem}body{overflow-x:hidden}.navbar .brand,.navbar .brand a{display:flex;align-items:center;min-height:44px;padding:0.25rem 0}.navbar .nav-links a{min-height:44px;display:inline-flex;align-items:center;padding:0.4rem 0.3rem}footer a,footer p a{display:inline-block;min-height:36px;line-height:36px;padding:0 0.15rem}.tool-link{min-height:44px}.tool-link .tool-name,.tool-link .tool-desc{line-height:1.3}.btn{min-height:44px}@media (max-width:768px){footer a{min-height:44px;line-height:44px}.navbar .nav-links{flex-wrap:wrap}}@media (max-width:768px){a{min-height:44px;display:inline-flex;align-items:center}.tool-card a,.seo-section a,.result a{display:inline-block;min-height:44px;line-height:44px}.navbar .brand{min-height:44px}button{min-height:44px}}