* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 122, 93, .16), transparent 34%),
        linear-gradient(145deg, #f4f7f3 0%, #eef3ef 48%, #fafbf8 100%);
    color: #17201c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(23, 32, 28, .08);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(36, 48, 42, .12);
    padding: 44px 28px 34px;
    text-align: center;
}

.logo {
    margin-bottom: 34px;
}

.logo img {
    display: block;
    max-width: 190px;
    height: auto;
    margin: 0 auto;
}

.title {
    margin: 0 0 10px;
    color: #111714;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    margin: 0 0 34px;
    color: #68736f;
    font-size: 15px;
    line-height: 1.5;
}

.target-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: -18px 0 28px;
    padding: 10px 12px;
    border: 1px solid #dfe8e3;
    border-radius: 8px;
    background: #f7fbf8;
    color: #17201c;
    font-size: 14px;
    line-height: 1.35;
}

.target-label {
    flex: 0 0 auto;
    color: #68736f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.target-text {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countdown {
    margin: -18px 0 24px;
    padding: 10px 12px;
    border: 1px solid #d8e7df;
    border-radius: 8px;
    background: #f2faf5;
    color: #2c6452;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.country-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.country {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 18px;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #fff;
    color: #17201c;
    text-decoration: none;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.country.is-selected {
    background: #f2faf5;
    border-color: #1f7a5d;
    box-shadow: 0 10px 28px rgba(31, 122, 93, .12);
}

.country:hover {
    background: #fbfdfb;
    border-color: #b8c8bf;
    box-shadow: 0 10px 28px rgba(23, 32, 28, .08);
    transform: translateY(-1px);
}

.country:focus-visible {
    outline: 3px solid rgba(31, 122, 93, .28);
    outline-offset: 3px;
}

.country-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.flag {
    width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.name {
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow {
    margin-left: 18px;
    color: #8a948f;
    font-size: 24px;
    line-height: 1;
    transition: color .2s, transform .2s;
}

.country:hover .arrow {
    color: #1f7a5d;
    transform: translateX(3px);
}

.footer {
    margin-top: 36px;
    color: #8a948f;
    font-size: 12px;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .container {
        min-height: calc(100vh - 32px);
        padding: 38px 20px 28px;
        border-radius: 14px;
    }

    .logo img {
        max-width: 168px;
    }

    .title {
        font-size: 22px;
    }

    .country {
        min-height: 68px;
        padding: 16px;
    }
}
