*{box-sizing:border-box;margin:0;padding:0}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:#0f172a;color:#e2e8f0;min-height:100vh;display:flex;justify-content:center}.game{max-width:700px;width:100%;padding:2rem 1.5rem;display:flex;flex-direction:column;align-items:center;gap:1.5rem}h1{font-size:2.5rem;font-weight:800;letter-spacing:-.02em;background:linear-gradient(135deg,#818cf8,#c084fc);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.score{font-size:1.25rem;font-weight:600;color:#a5b4fc}.deck-count{font-size:.875rem;color:#64748b}.board{display:flex;align-items:center;gap:1.5rem;width:100%;justify-content:center}.card-side{display:flex;flex-direction:column;align-items:center;gap:.75rem;min-width:120px}.side-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:#64748b}.cards{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.card{width:52px;height:72px;background:linear-gradient(145deg,#1e293b,#334155);border:2px solid #475569;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:#f8fafc;box-shadow:0 4px 12px #0000004d;transition:transform .2s}.card:hover{transform:translateY(-2px)}.equals{font-size:3rem;font-weight:800;color:#818cf8;padding:0 .5rem;-webkit-user-select:none;user-select:none}.controls{width:100%;display:flex;flex-direction:column;align-items:center;gap:1rem}.expr-inputs{display:flex;align-items:center;gap:.75rem;width:100%;max-width:500px}.expr-input{flex:1;padding:.75rem 1rem;background:#1e293b;border:2px solid #334155;border-radius:8px;color:#f8fafc;font-size:1.1rem;font-family:SF Mono,Fira Code,monospace;outline:none;transition:border-color .2s}.expr-input:focus{border-color:#818cf8}.expr-input::placeholder{color:#475569;font-size:.85rem}.eq-small{font-size:1.5rem;font-weight:700;color:#818cf8}.buttons{display:flex;gap:.75rem}.btn{padding:.65rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.btn-primary:hover{background:linear-gradient(135deg,#4f46e5,#7c3aed);transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.btn-secondary{background:#334155;color:#e2e8f0}.btn-secondary:hover{background:#475569;transform:translateY(-1px)}.message{padding:.75rem 1.25rem;border-radius:8px;font-size:.95rem;font-weight:500;text-align:center;max-width:500px;width:100%}.message-success{background:#22c55e26;color:#4ade80;border:1px solid rgba(34,197,94,.3)}.message-error{background:#ef444426;color:#f87171;border:1px solid rgba(239,68,68,.3)}.message-info{background:#6366f126;color:#a5b4fc;border:1px solid rgba(99,102,241,.3)}.round-won,.game-over{display:flex;flex-direction:column;align-items:center;gap:1rem}.game-over h2{font-size:1.75rem;color:#c084fc}.game-over p{font-size:1.25rem;color:#a5b4fc}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}
