:root {
    --bg: #0f0f13;
    --card-bg: #1c1c24;
    --text: #f0f0f5;
    --subtext: #8888a0;
    --accent: #5e6ad2;
    --radius: 20px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
#app {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    position: relative;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
h1 {
    margin: 0 0 6px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    word-wrap: break-word;
    color: var(--text);
}
.subtitle {
    margin: 0 0 22px;
    font-size: 0.9rem;
    color: var(--subtext);
}
.controls { display: flex; flex-direction: column; gap: 12px; }
input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #25252e;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
input:focus { border-color: var(--accent); }
button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: transform 0.1s, opacity 0.2s;
}
#theme-btn { background: #333; }
button:active { transform: scale(0.97); }
.hidden { display: none !important; }
#pause-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,15,19,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
    font-weight: 600;
    color: #fff;
    user-select: none;
}
@keyframes pop {
    0% { transform: scale(0.92); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-in { animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.theme-0 { --accent: #5e6ad2; }
.theme-1 { --accent: #d25e8a; }
.theme-2 { --accent: #5ed28a; }
.theme-3 { --accent: #d29e5e; }
@media (min-width: 600px) {
    .controls { flex-direction: row; }
    #name-input { flex: 1; }
}
