body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #374151;
    color: #fff;
    padding: 1.3em 0;
    text-align: center;
    border-bottom: 4px solid #3b82f6;
}

main {
    flex: 1;
    padding: 2em 1em;
    max-width: 600px;
    margin: 0 auto;
}

.chat-section {
    display: flex;
    flex-direction: row;
    gap: 2em;
    justify-content: center;
    margin-bottom: 2em;
}

.chat-timer {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 16px #0002;
    padding: 2em 1.5em 1em 1.5em;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow .2s;
}

.chat-timer:hover {
    box-shadow: 0 6px 32px #3b82f644;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}

.chat-title {
    font-weight: bold;
    font-size: 1.2em;
    color: #2563eb;
}

.sequence-select {
    padding: .3em;
    border-radius: 6px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    font-size: 1em;
}

.steps {
    margin-bottom: 1em;
    font-size: 1em;
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    justify-content: center;
}

.step-label {
    border-radius: 5px;
    padding: .3em .5em;
    background: #e0e7ff;
    color: #1e293b;
    font-weight: 500;
}

.timer-box {
    margin-bottom: 1em;
    font-size: 2em;
    font-family: monospace;
    color: #2563eb;
    text-shadow: 0 2px 6px #60a5fa44;
}

.alert-text {
    color: #dc2626;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.controls {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    margin-bottom: .3em;
}

button {
    font-size: .95em;
    padding: .45em 1em;
    border-radius: 5px;
    border: none;
    background: #60a5fa;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

button:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

button:not(:disabled):hover {
    background: #2563eb;
}

.emoji {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform .2s;
}

.emoji:hover {
    transform: scale(1.3) rotate(-10deg);
    filter: brightness(1.3);
}

.tips {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1em;
    box-shadow: 0 2px 8px #0001;
    margin-bottom: 2em;
}

footer {
    text-align: center;
    padding: 1em 0 .5em 0;
    background: #e0e7ff;
    color: #374151;
    border-top: 2px solid #3b82f6;
}

.emoji-footer {
    font-size: 1.3em;
}