:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --live-color: #22c55e;
    --dead-color: #ef4444;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1000px;
    padding: 2rem 0;
}

.glow-text {
    text-align: center;
    letter-spacing: 2px;
    color: white;
}

.glow-text span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

.card-input-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

textarea {
    width: 100%;
    height: 120px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #38bdf8;
    padding: 10px;
    resize: none;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

select, button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button {
    background: var(--accent);
    color: var(--bg-dark);
    flex-grow: 1;
    transition: 0.3s;
}

button:hover { opacity: 0.8; transform: translateY(-2px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1分fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.live { border-bottom: 4px solid var(--live-color); background: rgba(34, 197, 94, 0.1); }
.dead { border-bottom: 4px solid var(--dead-color); background: rgba(239, 68, 68, 0.1); }
.total { border-bottom: 4px solid var(--accent); background: rgba(56, 189, 248, 0.1); }

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
}

.result-item {
    background: #0f172a;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.item-live { border-left-color: var(--live-color); }
.item-dead { border-left-color: var(--dead-color); }