/* Kuchikomi Wall — Badge template */

.tmnl-badge-widget {
    --tmnl-bg:     #ffffff;
    --tmnl-text:   #334155;
    --tmnl-border: #e2e8f0;
    --tmnl-muted:  #94a3b8;
    --tmnl-star:   #f5a623;

    display: inline-block;
    background: var(--tmnl-bg);
    border: 1px solid var(--tmnl-border);
    border-radius: 10px;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-family: inherit;
}

.tmnl-badge-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tmnl-badge-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tmnl-badge-rating {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--tmnl-text);
    letter-spacing: -1px;
}

.tmnl-badge-stars {
    color: var(--tmnl-star);
    font-size: 20px;
    letter-spacing: 2px;
    display: block;
    line-height: 1.2;
}

.tmnl-badge-stars .tmnl-star-half {
    display: inline-block;
    clip-path: inset(0 50% 0 0);
    position: relative;
    color: var(--tmnl-star);
}

.tmnl-badge-count {
    display: block;
    font-size: 12px;
    color: var(--tmnl-muted);
    margin-top: 2px;
}

.tmnl-badge-source {
    font-size: 12px;
    color: var(--tmnl-muted);
    border-left: 1px solid var(--tmnl-border);
    padding-left: 20px;
}

/* Dark */
.tmnl-badge-widget.tmnl-color-dark {
    --tmnl-bg:     #1e293b;
    --tmnl-text:   #f1f5f9;
    --tmnl-border: #334155;
    --tmnl-muted:  #64748b;
}

/* Auto */
@media (prefers-color-scheme: dark) {
    .tmnl-badge-widget.tmnl-color-auto {
        --tmnl-bg:     #1e293b;
        --tmnl-text:   #f1f5f9;
        --tmnl-border: #334155;
        --tmnl-muted:  #64748b;
    }
}
