*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px}#root{width:100%;display:flex;justify-content:center;align-items:center}.board-container{padding:12px;background:#f5f5f0}.board{display:grid;grid-template-columns:repeat(9,1fr);gap:2px;background:#34495e;padding:2px;border-radius:4px;aspect-ratio:1}.cell{background:#d4c5a9;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;position:relative;border-radius:2px;aspect-ratio:1;min-height:0;-webkit-user-select:none;user-select:none;-webkit-user-drag:element}.cell.paused{background:#c4b599}.cell.double-letter{background:#add8e6}.cell.triple-letter{background:#4169e1;color:#fff}.cell.double-word{background:#ffb6c1}.cell.triple-word{background:#dc143c;color:#fff}.cell.has-letter{background:#e8dcc4}.cell.placed-tile{background:gold;box-shadow:0 0 5px #ffd70080;animation:pulse .5s ease-in-out}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.multiplier-label{position:absolute;font-size:7px;top:1px;left:1px;opacity:.7}.letter{font-size:16px;font-weight:700}.tile-value{position:absolute;font-size:8px;bottom:1px;right:2px}.phone-container{width:100%;max-width:400px;background:#f5f5f0;border-radius:24px;overflow:hidden;box-shadow:0 20px 60px #0000004d}.header{background:#2c3e50;color:#fff;padding:16px;text-align:center}.header h1{font-size:20px;margin-bottom:4px}.header .puzzle-number{font-size:14px;opacity:.8}.stats-bar{display:flex;justify-content:space-around;padding:12px;background:#34495e;color:#fff;font-size:12px}.stat{text-align:center}.stat-value{font-size:16px;font-weight:700;display:block}.stat-label{opacity:.8;font-size:10px}.clock-section{display:flex;justify-content:space-around;padding:16px;background:#ecf0f1}.clock{text-align:center;padding:8px 16px;border-radius:8px;min-width:100px}.clock.active{background:#3498db;color:#fff;font-weight:700}.clock.inactive{background:#bdc3c7;color:#7f8c8d}.clock-label{font-size:11px;margin-bottom:4px}.clock-time{font-size:20px;font-family:Courier New,monospace}.tiles-section{padding:12px;background:#ecf0f1}.tiles-container{background:#95a5a6;border-radius:8px;padding:12px;margin-bottom:8px}.tiles-container:last-child{margin-bottom:0}.tiles-label{font-size:11px;color:#fff;margin-bottom:6px;font-weight:700}.tiles{display:flex;gap:4px;justify-content:center}.tile{background:#f9e4b7;width:38px;height:38px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;position:relative;box-shadow:0 2px 4px #0003;border:2px solid #d4a574;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-user-drag:element}.tile .tile-value{position:absolute;font-size:10px;bottom:2px;right:3px;cursor:grab;pointer-events:none}.tile.paused,.tile.cpu{cursor:default}.tile.dragging{opacity:.5}.tile-drop-placeholder{width:38px;min-width:38px;height:38px;background:linear-gradient(90deg,transparent 0%,#3498db 50%,transparent 100%);border-radius:2px;animation:pulse-placeholder .8s ease-in-out infinite}@keyframes pulse-placeholder{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}.controls{display:flex;gap:8px;padding:12px;background:#ecf0f1;justify-content:center}.btn{flex:1;padding:12px;border:none;border-radius:8px;font-weight:700;cursor:pointer;font-size:14px}.btn-hint{background:#f39c12;color:#fff}.btn-reset{background:#e74c3c;color:#fff}.btn-pause{background:#95a5a6;color:#fff}.btn-pause.paused{background:#95d5a6}.btn-submit{background:#27ae60;color:#fff}.btn-new{background:#3498db;color:#fff}.btn:hover:not(:disabled){opacity:.9}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.pre-game-screen,.post-game-screen{padding:40px 24px;min-height:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#f5f5f0}.game-title{font-size:48px;margin-bottom:24px;color:#2c3e50}.game-description{background:#fff;border-radius:12px;padding:24px;margin-bottom:32px;box-shadow:0 2px 8px #0000001a;max-width:320px}.game-description h2{font-size:20px;margin-bottom:16px;color:#34495e}.game-description ul{list-style:none;padding:0;margin:0;text-align:left}.game-description li{padding:8px 0;border-bottom:1px solid #ecf0f1;color:#7f8c8d;font-size:14px}.game-description li:last-child{border-bottom:none}.btn-start{font-size:18px;padding:16px 48px;min-width:200px}.result{margin:24px 0;padding:24px;border-radius:12px;background:#fff;box-shadow:0 2px 8px #0000001a;width:100%;max-width:320px}.result.win{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff}.result.loss{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.result h2{font-size:32px;margin-bottom:8px}.score-diff{font-size:24px;font-weight:700;margin:0}.final-stats{background:#fff;border-radius:12px;padding:24px;margin-bottom:32px;box-shadow:0 2px 8px #0000001a;width:100%;max-width:320px}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #ecf0f1}.stat-row:last-child{border-bottom:none}.stat-row .stat-label{color:#7f8c8d;font-size:14px}.stat-row .stat-value{color:#2c3e50;font-size:18px;font-weight:700}.post-game-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px}.post-game-actions .btn{width:100%}.controls>.btn:only-child{width:100%;max-width:300px;margin:0 auto}
