
:root {
    --radha-bg: linear-gradient(180deg,#fff7ef,#fff2e6);
    --radha-text: #391f00;
    --accent1: #f97316;
    --accent2: #fb923c;
    --glass: rgba(255,255,255,0.6);
}

html.theme-radha {
    background: var(--radha-bg);
    color: var(--radha-text);
}

html.theme-light {
    background: linear-gradient(180deg,#f7fafc,#eef2ff);
    color: #06304a;
}

html.theme-dark {
    background: linear-gradient(180deg,#071428,#02101a);
    color: #e6eef8;
}

* {
    box-sizing: border-box
}

body, html {
    height: 100%;
    margin: 0;
    font-family: Inter,system-ui,Arial,-apple-system,Segoe UI;
    transition: background .35s,color .35s
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 30
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px
}

.brand-title {
    font-weight: 800;
    font-size: 20px
}

.brand-sub {
    font-size: 12px;
    opacity: 0.8
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center
}

.theme-select {
    padding: 8px;
    border-radius: 10px;
    border: 0;
    background: rgba(255,255,255,0.06)
}

.main-area {
    max-width: 980px;
    margin: 12px auto;
    padding: 14px;
    text-align: center
}

.counter-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0
}

.counter {
    font-weight: 700;
    line-height: 2.3;
    font-size: 180px;
    user-select: none
}

@media(max-width:900px) {
    .counter {
        font-size: 120px
    }
}

@media(max-width:420px) {
    .counter {
        font-size: 72px
    }

    .logo {
        width: 44px;
        height: 44px
    }

    .brand-title {
        font-size: 18px
    }

    .theme-select {
        display: none
    }
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px
}

.btn {
    padding: 12px 18px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 800
}

.control-left {
    background: linear-gradient(180deg,#ffdede,#ffecec);
    color: #071428
}

.control-center {
    background: #f3f4f6;
    color: #071428
}

.control-right {
    background: linear-gradient(90deg,var(--accent1),var(--accent2));
    color: #071428;
    box-shadow: 0 8px 22px rgba(249,115,22,0.12)
}

.toggles {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
    font-weight: 700;
    color: inherit
}

.targets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    font-weight: 800;
}

.custom input {
    width: 80px;
    padding: 8px;
    border-radius: 10px;
    border: 0
}

.progress-area {
    margin-top: 16px;
    width: 88%;
    margin-left: auto;
    margin-right: auto
}

progress {
    width: 100%;
    height: 14px;
    border-radius: 10px;
    overflow: hidden
}

    progress::-webkit-progress-value {
        background: linear-gradient(90deg,var(--accent1),var(--accent2))
    }

.progress-text {
    text-align: center;
    margin-top: 8px;
    opacity: 0.9;
    font-weight: 700
}

.session-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap
}

.footer {
    padding: 14px;
    text-align: center;
    margin-top: 18px
}

.ad-box {
    background: rgba(0,0,0,0.06);
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    color: inherit
}

html.theme-dark .pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.04)
}

html.theme-dark .theme-select {
    background: rgba(255,255,255,0.02)
}
