:root {
    --bg: #f8fafc; --card-bg: #ffffff; --text: #334155; --muted: #64748b;
    --primary: #1e293b; --accent: #3b82f6; --gold: #f59e0b; --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --radius: 12px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a; --card-bg: #1e293b; --text: #e2e8f0; --muted: #94a3b8;
        --primary: #f1f5f9; --accent: #60a5fa; --gold: #fbbf24; --border: #334155;
        --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
nav a:hover { color: var(--accent); }
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin: 20px 0; }
.btn {
    display: inline-block; background: var(--accent); color: white; border: none; padding: 12px 24px;
    border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s, opacity 0.2s; text-decoration: none; text-align: center;
}
.btn:hover { background: #2563eb; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: #1e293b; }
.btn-gold:hover { background: #d97706; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
label { font-weight: 600; display: block; margin-bottom: 8px; }
input[type="text"], input[type="email"], textarea, select {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 1rem; margin-bottom: 16px; font-family: inherit; background: var(--card-bg); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.alert { background: #fef2f2; color: #b91c1c; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.ruling-box { border-left: 4px solid var(--gold); padding-left: 16px; margin: 20px 0; }
.winner-badge {
    display: inline-block; background: #dcfce7; color: #166534; padding: 4px 12px;
    border-radius: 9999px; font-weight: 600;
}
.share-buttons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.spinner {
    border: 4px solid var(--border); border-top: 4px solid var(--accent); border-radius: 50%;
    width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.toast {
    background: var(--primary); color: var(--bg); padding: 12px 20px; border-radius: 8px;
    margin-top: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: fadeIn 0.3s;
}
.toast.error { background: #dc2626; color: white; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg);
    border-top: 1px solid var(--border); padding: 16px 20px; display: flex;
    align-items: center; justify-content: space-between; z-index: 999; flex-wrap: wrap; gap: 10px;
}
.cookie-banner p { margin: 0; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-actions button { background: none; border: none; color: var(--muted); cursor: pointer; margin-right: 10px; }
@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .card { padding: 20px; }
    nav a { margin-left: 12px; font-size: 0.8rem; }
}