.bitter-start-form input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.bitter-start-form input:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bitter-start-form input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25),
                0 4px 16px rgba(14, 165, 233, 0.2);
}

.bitter-cards-stage {
    position: relative;
    min-height: 100%;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.bitter-cards-stage:not(.hidden) {
    display: grid;
    place-items: stretch;
}

.bitter-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 22rem;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    color: #f8fafc;
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.3);
}

.bitter-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
    background: linear-gradient(125deg, rgba(56, 189, 248, 0.35) 0%, rgba(59, 130, 246, 0.2) 35%, rgba(15, 23, 42, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}


.bitter-card__layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    filter: brightness(0.72);
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.bitter-card__layer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0.92) 100%);
}

.bitter-card--positive::after {
    background: linear-gradient(115deg, rgba(34, 197, 94, 0.4) 0%, rgba(45, 212, 191, 0.2) 30%, rgba(15, 23, 42, 0.65) 100%);
}

.bitter-card--negative::after {
    background: linear-gradient(120deg, rgba(248, 113, 113, 0.4) 0%, rgba(244, 114, 182, 0.2) 32%, rgba(15, 23, 42, 0.7) 100%);
}

.bitter-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bitter-card.is-visible .bitter-card__layer {
    opacity: 1;
    transform: scale(1);
}

.bitter-card.is-visible::after {
    opacity: 1;
}

.bitter-card.is-leaving {
    animation: bitter-card-exit 0.35s ease forwards;
}

.bitter-card__overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bitter-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(248, 250, 252, 0.15);
    backdrop-filter: blur(4px);
}

.bitter-card__title,
.bitter-card__message,
.bitter-card__salary,
.bitter-card__after-info {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bitter-card__title {
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 6px 25px rgba(15, 23, 42, 0.45);
}

.bitter-card__message {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.92);
}

.bitter-card__salary {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.85);
}

.bitter-card__after-info {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(248, 250, 252, 0.75);
    max-width: 32rem;
}

.bitter-card.show-title .bitter-card__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.bitter-card.show-message .bitter-card__message {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.bitter-card.show-salary .bitter-card__salary {
    opacity: 1;
    transform: translateY(0);
}

.bitter-card.show-after-info .bitter-card__after-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.bitter-summary-header {
    text-align: center;
    color: rgba(248, 250, 252, 0.92);
}

.bitter-summary-header .game-chip {
    margin-left: auto;
    margin-right: auto;
}

.bitter-summary-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(148, 163, 184, 0.8);
}


.bitter-summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.bitter-summary-card {
    position: relative;
    padding: 1.25rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    min-height: 0;
    transition: all 0.3s ease;
}

.bitter-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
                0 6px 16px rgba(0, 0, 0, 0.25);
}

.bitter-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bitter-summary-card:hover::before {
    opacity: 0.4;
}

.bitter-summary-card--positive::before {
    background: linear-gradient(140deg, rgba(34, 197, 94, 0.6), rgba(16, 185, 129, 0.3));
}

.bitter-summary-card--negative::before {
    background: linear-gradient(140deg, rgba(248, 113, 113, 0.55), rgba(244, 114, 182, 0.32));
}

.bitter-summary-card > * {
    position: relative;
    z-index: 1;
}

.bitter-summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
}

.bitter-summary-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(241, 245, 249, 0.9);
}

.bitter-summary-after {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.95);
}

.bitter-card--negative .bitter-card__title {
    text-shadow: 0 6px 30px rgba(148, 163, 184, 0.45);
}

.bitter-card.is-visible .bitter-card__tag {
    animation: bitter-tag-pop 0.6s ease 0.1s backwards;
}

@media (max-width: 640px) {
    .bitter-card {
        min-height: 18rem;
        border-radius: 20px;
    }

    .bitter-card__overlay {
        padding: 2rem 1.5rem 1.75rem;
        gap: 0.75rem;
    }

    .bitter-card__title {
        font-size: 1.5rem;
    }

    .bitter-card__message {
        font-size: 0.95rem;
    }

}

.bitter-result-hint {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(248, 250, 252, 0.55);
    margin-top: 1rem;
}

@keyframes bitter-card-exit {
    to {
        opacity: 0;
        transform: translateY(28px) scale(0.92);
    }
}

@keyframes bitter-tag-pop {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
