:root { --primary: #2563EB; --secondary: #1E40AF; --bg: #F3F4F6; --text: #1F2937; }
body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); margin: 0; display: flex; justify-content: center; height: 100vh; overflow: hidden; }
.app-container { width: 100%; max-width: 480px; background: white; height: 100%; position: relative; overflow-y: auto; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
@media (min-width: 500px) { .app-container { height: 90vh; margin-top: 5vh; border-radius: 20px; } }

/* Splash */
.splash { position: absolute; inset: 0; background: var(--primary); z-index: 100; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; }
.loader { border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid white; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin-top: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Views */
.view { display: none; padding: 30px; animation: fadeUp 0.4s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h2 { margin-top: 40px; color: var(--primary); }
p { color: #6B7280; font-size: 14px; margin-bottom: 30px; }

.input-box { margin-bottom: 15px; }
.input-box input { width: 100%; padding: 15px; border: 1px solid #E5E7EB; border-radius: 12px; font-size: 16px; outline: none; box-sizing: border-box; transition: 0.3s; }
.input-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.btn { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #9CA3AF; cursor: not-allowed; }

.text-link { color: var(--primary); cursor: pointer; font-weight: 600; text-align: center; display: block; margin-top: 20px; font-size: 14px; }
.timer { text-align: center; color: #EF4444; font-size: 13px; margin-top: 10px; }