.scratch-lottery-card {
    margin: 14px 0 20px;
    color: #444;
}

.scratch-countdown-card {
    box-sizing: border-box;
    width: 100%;
    padding: 15px 16px 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0094e0 0%, #28a3ef 100%);
    box-shadow: 0 6px 16px rgba(0, 148, 224, 0.16);
}

.scratch-countdown-label {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.scratch-countdown-time {
    min-height: 29px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.scratch-countdown-meta {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.98;
}

.scratch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 10px;
}

.scratch-toolbar-main {
    min-width: 0;
}

.scratch-toolbar-title {
    color: #333;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.scratch-toolbar-subtitle {
    margin-top: 3px;
    color: #888;
    font-size: 12px;
    line-height: 1.35;
}

.scratch-mode-box {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.scratch-mode-copy {
    text-align: right;
}

.scratch-mode-title {
    color: #444;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.scratch-mode-status {
    margin-top: 3px;
    color: #888;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.scratch-switch {
    position: relative;
    width: 52px;
    height: 29px;
    display: inline-block;
    flex: 0 0 auto;
}

.scratch-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.scratch-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #dedede;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.10);
    transition: background 0.22s ease;
}

.scratch-switch-slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease;
}

.scratch-switch input:checked + .scratch-switch-slider {
    background: #0094e0;
}

.scratch-switch input:checked + .scratch-switch-slider:before {
    transform: translateX(23px);
}

.scratch-result-card {
    box-sizing: border-box;
    width: 100%;
    min-height: 94px;
    padding: 12px 16px 12px 13px;
    border: 1px solid #d9edf7;
    border-left: 4px solid #0094e0;
    border-radius: 7px;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(42px, 0.65fr);
    align-items: center;
    gap: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 148, 224, 0.08);
}

.scratch-current-issue {
    color: #555;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.scratch-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: nowrap;
}

.scratch-ball-item {
    flex: 0 0 auto;
}

.scratch-ball-core {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #0094e0;
    box-shadow:
        0 0 0 1px rgba(0, 148, 224, 0.16),
        0 3px 9px rgba(0, 90, 150, 0.10);
}

.scratch-ball-value {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.scratch-ball-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.22s ease;
}

.scratch-ball-item.is-revealed .scratch-ball-cover {
    opacity: 0;
    pointer-events: none;
}

.scratch-sum-box {
    min-width: 42px;
    text-align: right;
    line-height: 1;
}

.scratch-sum-placeholder,
.scratch-sum-value {
    display: inline-block;
    color: #0094e0;
    font-size: 34px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.scratch-sum-value {
    display: none;
}

.scratch-lottery-card.is-complete .scratch-sum-placeholder,
.scratch-lottery-card.is-direct .scratch-sum-placeholder {
    display: none;
}

.scratch-lottery-card.is-complete .scratch-sum-value,
.scratch-lottery-card.is-direct .scratch-sum-value {
    display: inline-block;
}

.scratch-helper-row {
    min-height: 20px;
    padding: 7px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #888;
    font-size: 11px;
}

.scratch-helper {
    min-width: 0;
}

.scratch-extra-info {
    display: none;
    flex: 0 0 auto;
    color: #0094e0;
    font-weight: 700;
}

.scratch-lottery-card.is-complete .scratch-extra-info,
.scratch-lottery-card.is-direct .scratch-extra-info {
    display: block;
}

.scratch-lottery-card.is-waiting .scratch-countdown-time {
    font-size: 19px;
}

@media (max-width: 430px) {
    .scratch-countdown-card {
        padding: 14px 14px 13px;
    }

    .scratch-toolbar {
        padding-top: 12px;
        gap: 8px;
    }

    .scratch-toolbar-title {
        font-size: 16px;
    }

    .scratch-mode-box {
        gap: 7px;
    }

    .scratch-mode-title {
        font-size: 13px;
    }

    .scratch-mode-status {
        font-size: 10px;
    }

    .scratch-result-card {
        padding: 11px 12px 11px 10px;
        grid-template-columns: 68px auto 34px;
        gap: 8px;
    }

    .scratch-current-issue {
        font-size: 14px;
    }

    .scratch-board {
        gap: 5px;
    }

    .scratch-ball-core {
        width: 48px;
        height: 48px;
    }

    .scratch-ball-value {
        font-size: 19px;
    }

    .scratch-sum-placeholder,
    .scratch-sum-value {
        font-size: 29px;
    }
}

@media (max-width: 350px) {
    .scratch-result-card {
        padding-left: 7px;
        padding-right: 9px;
        grid-template-columns: 61px auto 31px;
        gap: 6px;
    }

    .scratch-current-issue {
        font-size: 13px;
    }

    .scratch-ball-core {
        width: 43px;
        height: 43px;
    }

    .scratch-ball-value {
        font-size: 17px;
    }

    .scratch-sum-placeholder,
    .scratch-sum-value {
        font-size: 26px;
    }
}
