.mds-body {
    background-color: #F8C8DC;
    min-height: 100vh;
}

.mds-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.mds-title {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    margin: 12px 0 4px;
}

.mds-subtitle {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: italic;
    margin: 0 0 28px;
}

.mds-instructions {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-style: italic;
    margin: 0 0 20px;
}

.pref-buttons,
.mds-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.mds-btn {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #fce7ef 100%);
    color: #2b1a22;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(43, 26, 34, 0.18), inset 0 0 0 2px #2b1a22;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.mds-btn:hover {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 26, 34, 0.28), inset 0 0 0 2px #2b1a22;
}

.mds-btn:active { transform: translateY(0); }

.mds-btn.primary {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    font-size: 20px;
    padding: 13px 34px;
}

.mds-btn.primary:hover {
    background: linear-gradient(135deg, #5a3b4a 0%, #7a5465 100%);
    color: white;
}

.mds-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 10px;
}

.mds-card {
    background-color: white;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mds-card.assigned-marry   { border-color: #d14f8a; }
.mds-card.assigned-debauch { border-color: #8a2b4a; }
.mds-card.assigned-snub    { border-color: #5a3b4a; }

.mds-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5e6ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mds-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mds-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #2b1a22;
    text-align: center;
    margin: 0;
}

.choice-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.choice-btn {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 2px solid #2b1a22;
    border-radius: 999px;
    background: white;
    color: #2b1a22;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.choice-btn:hover {
    background: #2b1a22;
    color: #fce7ef;
    transform: translateY(-1px);
}

.choice-btn.active {
    background: #2b1a22;
    color: #fce7ef;
}

.choice-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: white;
    color: #2b1a22;
}

.result-card {
    background-color: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    margin-top: 10px;
}

.result-heading {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #2b1a22;
    text-align: center;
    margin: 0 0 18px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 16px;
    font-family: 'Playfair Display', serif;
}

.result-row img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.result-name {
    font-size: 20px;
    font-weight: 700;
    color: #2b1a22;
}

.result-fate {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    color: white;
}

.result-fate.marry   { background: #d14f8a; }
.result-fate.debauch { background: #8a2b4a; }
.result-fate.snub    { background: #5a3b4a; }

.title-link { text-decoration: none; color: inherit; }

@media (max-width: 760px) {
    .mds-cards { grid-template-columns: 1fr; }
    .mds-title { font-size: 32px; }
    .mds-subtitle { font-size: 16px; }
    .mds-instructions { font-size: 18px; }
    .result-heading { font-size: 22px; }
}
