body {
    background: #0d0d0d;
    color: #e8e1d4;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 52px 28px 120px;
}

h1 {
    font-weight: normal;
    font-size: 42px;
    margin-bottom: 8px;
}

.subtitle {
    color: #a79b8a;
    margin-bottom: 28px;
}

.status-bar {
    position: sticky;
    top: 0;
    background: rgba(13, 13, 13, 0.94);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
    z-index: 1000;
}

.status-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #9d9285;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #1d1d1d;
    border: 1px solid #333;
}

.badge-budget-on { border-color: #5b7c5b; }
.badge-budget-over { border-color: #8c5b5b; }
.badge-budget-under { border-color: #5b6f8c; }

.reset-link,
.window-nav a {
    color: #d7c1a0;
    text-decoration: none;
}

.reset-link:hover,
.window-nav a:hover {
    text-decoration: underline;
}

.window-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 28px;
    color: #9d9285;
    font-size: 14px;
}

.debug-panel {
    background: #151515;
    border: 1px solid #2d2d2d;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 34px;
    color: #b8ad9f;
    font-size: 14px;
}

.debug-panel summary {
    cursor: pointer;
    color: #e8e1d4;
    margin-bottom: 8px;
}

.debug-panel strong {
    color: #e8e1d4;
}

.paragraph {
    margin-bottom: 26px;
    font-size: 20px;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.living-word {
    cursor: pointer;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.living-word:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.rewriting {
    opacity: 0.28;
    filter: blur(1px);
}

.rewritten {
    animation: fadeInText 0.9s ease;
}

@keyframes fadeInText {
    from {
        opacity: 0.2;
        filter: blur(2px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}


.badge-click-limit-reached {
    border-color: #9f3838;
    color: #f2b8b8;
}

.click-limit-message {
    margin: -10px 0 24px;
    color: #b8ad9f;
    font-size: 14px;
}

.click-limit-message.click-limit-reached {
    color: #f2b8b8;
}
