.crystal-page { font-family: 'Poppins', sans-serif; background: var(--bg-dark,#0a0a0f); color: var(--text-primary,#fff); min-height: 100vh; padding-bottom: 2rem; }
.crystal-header { text-align: center; padding: 1rem; }
.crystal-back { display: inline-block; margin-bottom: .5rem; font-size: .9rem; color: var(--text-secondary); text-decoration: none; }
.crystal-title { font-size: clamp(1.4rem,4vw,1.8rem); font-weight: 700; margin-bottom: .25rem; }
.crystal-subtitle { font-size: .85rem; color: var(--text-secondary); }
.crystal-score { margin-top: .5rem; font-size: 1rem; }
.crystal-main { max-width: 380px; margin: 0 auto; padding: 0 1rem; }
.crystal-game-wrap { background: rgba(255,255,255,.04); border-radius: 16px; padding: 1rem; border: 1px solid rgba(255,255,255,.08); }
.crystal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; width: min(320px,90vw); margin: 0 auto; aspect-ratio: 1; background: #1a1a24; padding: 12px; border-radius: 12px; }
.crystal-cell { background: #252532; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(.7rem,3vw,1rem); min-height: 0; box-shadow: 0 0 20px rgba(0,0,0,.3); transition: transform .15s; }
.crystal-cell.merged { animation: crystal-pop .3s ease; }
@keyframes crystal-pop { 0% { transform: scale(1.1); } 100% { transform: scale(1); } }
.crystal-cell.l0 { background: linear-gradient(135deg,#444,#333); color: #888; }
.crystal-cell.l1 { background: linear-gradient(135deg,#ffdd44,#f9d423); color: #1a1a24; box-shadow: 0 0 16px rgba(255,221,68,.5); }
.crystal-cell.l2 { background: linear-gradient(135deg,#43e97b,#38f9d7); color: #0a0a0f; box-shadow: 0 0 16px rgba(67,233,123,.5); }
.crystal-cell.l3 { background: linear-gradient(135deg,#fa709a,#fee140); color: #1a1a24; box-shadow: 0 0 16px rgba(250,112,154,.5); }
.crystal-cell.l4 { background: linear-gradient(135deg,#ff4444,#ff9944); color: #fff; box-shadow: 0 0 16px rgba(255,68,68,.5); }
.crystal-cell.l5 { background: linear-gradient(135deg,#4facfe,#00f2fe); color: #0a0a0f; box-shadow: 0 0 16px rgba(79,172,254,.5); }
.crystal-cell.l6 { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; box-shadow: 0 0 24px rgba(102,126,234,.7); font-size: 0.75em; }
.crystal-hint { text-align: center; font-size: .8rem; color: var(--text-secondary); margin-top: .75rem; }
.crystal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; z-index: 100; }
.crystal-overlay-box { background: #1a1a24; border-radius: 16px; padding: 2rem; text-align: center; max-width: 320px; }
.crystal-overlay h2 { margin-bottom: .5rem; }
.crystal-overlay p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.crystal-overlay button { padding: .65rem 1.5rem; border-radius: 10px; font-weight: 600; background: #43e97b; color: #0a0a0f; border: none; cursor: pointer; }
.crystal-overlay button:hover { filter: brightness(1.1); }
