* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: #f3f7ff;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: min(92vw, 420px);
}

.content {
    min-height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #34373a;
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #78acff, #377efa);
    background-size: 400% 400%;
    animation: ice 18s ease infinite;
    box-shadow: 0 18px 40px rgba(55, 126, 250, 0.22);
}

.content::before,
.content::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: transparent;
    border: 16px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: wave 25s linear infinite;
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.content::after {
    width: 280px;
    height: 280px;
    border: 10px solid rgba(255, 255, 255, 0.08);
    animation-duration: 32s;
    animation-direction: reverse;
    opacity: 0.4;
}

.content1 {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

h1 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.hint {
    margin: 0 0 18px;
    opacity: 0.95;
}

.like {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.vote-button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vote-button:hover,
.vote-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.vote-button.active {
    transform: scale(1.16);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

@keyframes ice {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(92vw, 380px);
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-align: left;
    animation: popup 0.25s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-content h2 {
    margin: 0 0 8px;
    color: #1f2937;
}

.modal-content p {
    margin: 0 0 16px;
    color: #4b5563;
}

.textarea-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1f2937;
}

textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #ccd5e1;
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}

textarea:focus {
    border-color: #377efa;
    outline: 3px solid rgba(55, 126, 250, 0.18);
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #7a7f88;
}

.close:hover,
.close:focus-visible {
    color: #111827;
    outline: none;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.actions.center {
    justify-content: center;
}

.actions button {
    padding: 0.8rem 1.6rem;
    min-width: 130px;
    background: linear-gradient(135deg, #0066ff, #00aaff);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.actions button:hover,
.actions button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.45);
    outline: none;
}

.actions button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.thank-content {
    text-align: center;
}

.thank-content h2 {
    color: #0066ff;
}

.error {
    min-height: 1.25rem;
    margin-top: 8px !important;
    color: #b91c1c !important;
    font-weight: 700;
}

@keyframes popup {
    from {
        transform: scale(0.88);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
