.cards-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cards-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cards-page {
    padding: 2rem 0;
}

.cards-panel {
    margin-bottom: 1.5rem;
}

.cards-panel:last-child {
    margin-bottom: 0;
}

.cards-panel h4 {
    margin-top: 0;
    position: relative;
}

.cards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cards-list__item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.cards-list__item:last-child {
    border-bottom: none;
}

.cards-list__item h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.cards-card-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cards-card-preview strong {
    font-weight: 600;
}

.cards-card-content {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.cards-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cards-form label {
    font-weight: 600;
    margin-top: 0.5rem;
}

.cards-form label:first-of-type {
    margin-top: 0;
}

.cards-form .input-field,
.cards-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

.cards-form .submit-button {
    margin-top: 0.5rem;
}

.cards-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cards-actions-row .button {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 0.25rem;
    background: var(--dusty-blue);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.cards-actions-row .button:hover {
    opacity: 0.9;
}

.cards-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.muted {
    opacity: 0.6;
    font-size: 0.9rem;
}

.cards-panel--single {
    display: flex;
    justify-content: center;
}

.cards-game-view {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cards-flip-card {
    width: min(360px, 90vw);
    aspect-ratio: 1.586 / 1;
    perspective: 1200px;
    cursor: pointer;
}

.cards-flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform: rotateY(180deg);
}

.cards-flip-card.is-turned .cards-flip-card__inner {
    transform: rotateY(0deg);
}

.cards-flip-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cards-flip-card__face--front {
    transform: rotateY(0deg);
}

.cards-flip-card__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #f8f5ff 0%, #f4f8ff 100%);
}

.cards-flip-card__label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8fa3;
}

.cards-flip-card__text {
    font-size: 1rem;
    color: #1f1f2b;
    line-height: 1.4;
    margin-top: 0.5rem;
    white-space: pre-wrap;
}

.cards-flip-card__hint {
    font-size: 0.85rem;
    color: #5f647a;
    text-align: right;
    margin-top: 0.75rem;
}
