:root {
    --text: #222;
    --muted: #666;
    --border: #ddd;
    --accent: #1d6f52;
    --error-bg: #fdecea;
    --error-text: #a32d2d;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: #fafafa;
    margin: 0;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
}

h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.lead { color: var(--muted); margin-top: 0; }

.check-form {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.check-form input[type="url"] {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.check-form button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.check-form button:hover { opacity: 0.9; }

.check-form button:disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}

.cooldown-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: -1rem 0 1rem;
    min-height: 1.2em;
}

.notice {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.notice-warning {
    background: #fff8e6;
    color: #8a6100;
}

.notice-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.result { margin-top: 2rem; }

.block {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: #fff;
}

.block h3 { margin-top: 0; }

.block-alert {
    border-color: #e0a800;
    background: #fffaf0;
}

.block-alert h3 { color: #8a6100; }

.score-bar {
    background: #eee;
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
    margin: 0.5rem 0 0.2rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #e0a800, #c0392b);
}

.score-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0;
}

.meta { color: var(--muted); font-size: 0.9rem; }

.disclaimer {
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.site-footer {
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

.site-footer a { color: var(--accent); }

.site-footer .footer-note { margin-top: 0.4rem; }
