:root {
    --bg: #0d1117;
    --panel-bg: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #58a6ff;
    --danger: #f85149;
    --success: #3fb950;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.lang-switch {
    position: absolute;
    top: 0;
    right: 1.5rem;
}

.lang-switch select {
    background: var(--panel-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.tagline {
    color: var(--muted);
    line-height: 1.5;
}

.panels {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.5rem 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.panel {
    flex: 1 1 400px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.panel h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--accent);
}

textarea {
    flex: 1;
    resize: vertical;
    background: #0d1117;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    min-height: 260px;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

#charCount {
    color: var(--muted);
    font-size: 0.85rem;
}

button {
    background: var(--accent);
    color: #0d1117;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

button:hover {
    filter: brightness(1.1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.response-area {
    flex: 1;
    min-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}

.placeholder {
    color: var(--muted);
    font-style: italic;
}

.verdict-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.verdict-spared {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.verdict-doomed {
    background: rgba(248, 81, 73, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.error-message {
    color: var(--danger);
}

footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

footer small {
    display: block;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.social-links a {
    color: var(--muted);
    display: inline-flex;
}

.social-links a:hover {
    color: var(--accent);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}