.s24-classic-spread {
    --cs-gold: #f0d19c;
    --cs-border: #c29b665f;
    box-sizing: border-box;
    width: min(100%, 1010px);
    margin: 24px auto 34px;
    padding: clamp(13px, 3.2vw, 30px);
    border: 1px solid var(--cs-border);
    border-radius: 18px;
    background: radial-gradient(ellipse at 50% 20%, #433552, #241a30 70%);
    color: #f1e8e0;
}
.s24-classic-spread * { box-sizing: border-box; }
.s24-classic-spread [hidden] { display: none !important; }
.s24-cs-head { text-align: center; max-width: 660px; margin: 0 auto 14px; }
.s24-cs-head h2 { color: var(--cs-gold); font: 650 clamp(25px, 4vw, 38px)/1.18 Georgia, serif; margin: 0 0 10px; text-transform: none; }
.s24-cs-head p { margin: 0; }
.s24-cs-slots { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 0; margin: 15px 0; }
.s24-cs-slots li { padding: 5px 9px; border: 1px solid var(--cs-border); border-radius: 8px; color: #e5d1c9; font-size: 13px; }
.s24-cs-slots [data-filled] { background: #d9b77525; color: var(--cs-gold); }
.s24-cs-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 11px 0; }
.s24-classic-spread button { font: inherit; cursor: pointer; }
.s24-cs-actions button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--cs-border); border-radius: 9px; color: #f1e3d7; background: #382941; }
.s24-cs-actions .s24-cs-primary { background: #eac681; color: #211928; font-weight: 700; }
.s24-classic-spread button:disabled { opacity: .5; cursor: default; }
.s24-classic-spread button:focus-visible { outline: 3px solid #f0cd85; outline-offset: 2px; z-index: 1; }
.s24-classic-spread [data-cs-pick][data-selected] { opacity: .25; animation: s24-cs-pick 230ms ease-out; }
@keyframes s24-cs-pick { 0% { transform: translateY(-11px); opacity: 1; } 100% { transform: none; opacity: .25; } }
.s24-cs-status { min-height: 25px; margin: 12px 0; color: #efca9a; text-align: center; }
.s24-cs-result h3, .s24-cs-result h4 { color: var(--cs-gold); margin: 5px 0 8px; }
.s24-cs-result > h3 { text-align: center; }
.s24-cs-readings { display: grid; gap: 12px; }
.s24-cs-reading { border: 1px solid var(--cs-border); padding: clamp(10px, 2.3vw, 16px); border-radius: 12px; background: #21182b; overflow-wrap: anywhere; }
.s24-cs-reading p { margin: 6px 0; line-height: 1.55; }
.s24-cs-cards { display: flex; flex-wrap: wrap; gap: clamp(8px, 2vw, 22px); margin: 0 0 9px; }
.s24-cs-card { display: flex; flex: 1 1 125px; align-items: flex-start; gap: 8px; min-width: 0; }
.s24-cs-card h4 { margin: 2px 0; font-size: 16px; }
.s24-cs-card small { display: block; margin: 2px 0 4px; color: #e9c9ae; }
.s24-cs-card p { margin: 0; font-size: 15px; }
.s24-cs-face {
    display: grid;
    position: relative;
    flex: 0 0 clamp(45px, 14vw, 78px);
    place-items: center;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #efe4cf;
    border: 1px solid #e5ceaa;
    border-radius: 6px;
    color: #2b2533;
    font-size: clamp(15px, 3vw, 26px);
}
.s24-cs-face[data-red] { color: #912d46; }
.s24-cs-face[data-reversed] { transform: rotate(180deg); }
.s24-cs-face img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.s24-cs-overview { border-left: 3px solid #d4b079; }
.s24-cs-guide table { display: table; width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 9px 0 17px; }
.s24-cs-guide th, .s24-cs-guide td { padding: clamp(7px, 1.8vw, 11px); text-align: left; vertical-align: top; border-bottom: 1px solid #b69c705c; overflow-wrap: anywhere; }
.s24-cs-guide th { color: #e9ca96; }
.s24-cs-guide thead th:first-child { width: 26%; }
.s24-cs-guide summary { color: #efd29b; font-weight: 650; cursor: pointer; min-height: 44px; }
@media (max-width: 410px) {
    .s24-cs-card { flex-basis: 100%; }
    .s24-cs-actions button { flex: 1 1 125px; }
    .s24-cs-guide table { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .s24-classic-spread [data-cs-pick][data-selected] { animation: none; }
}

.s24-cs-head .s24-cs-day { margin-top: 7px; color: var(--cs-gold); }
.s24-cs-controls button { font-size: 14px; }
.s24-cs-controls [aria-pressed="true"] { border-color: #e6c07b; background: #5a4164; }
.s24-classic-spread:not(.s24-cs-motion) [data-cs-pick][data-selected] { animation: none; }
.s24-cs-daily-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); }
.s24-cs-daily-slots li { text-align: center; min-width: 0; padding: 8px 5px; overflow-wrap: anywhere; }
.s24-cs-daily-face { display: grid; justify-items: center; margin-top: 5px; gap: 4px; }
.s24-cs-daily-face .s24-cs-face, .s24-cs-daily-face .s24-cs-sleeve { width: clamp(43px, 14vw, 77px); }
.s24-cs-sleeve {
    display: grid;
    width: 100%;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 1px solid #d0aa72;
    border-radius: 6px;
    color: #efd397;
    background: radial-gradient(ellipse, #574166, #2b1e39 78%);
}
.s24-classic-event .s24-sol-rows { display: grid; gap: 9px; }
.s24-sol-row { border: 1px solid var(--cs-border); border-radius: 12px; padding: clamp(6px, 2vw, 14px); background: #2a1e33; }
.s24-sol-open {
    display: grid;
    justify-items: center;
    width: 100%;
    gap: 6px;
    padding: 5px;
    background: none;
    border: 1px solid transparent;
    color: inherit;
    border-radius: 7px;
}
.s24-sol-open:hover:enabled { border-color: #b99362; background: #493753; }
.s24-classic-event .s24-sol-open:disabled { opacity: 1; }
.s24-sol-faces { width: min(100%, 286px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 2vw, 12px); }
.s24-sol-faces .s24-cs-face { width: 100%; min-width: 0; }
.s24-sol-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-size: 14px; }
.s24-sol-filter input { accent-color: #ecc279; flex-shrink: 0; width: 17px; height: 17px; }
.s24-sol-row [data-cs-matches] { margin: 8px 6px 0; }
.s24-sol-row [data-cs-matches] > p { margin: 8px 0; text-align: center; }
.s24-sol-match { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #d6b77f; background: #37283d; border-radius: 6px; overflow-wrap: anywhere; }
.s24-sol-match h3 { color: var(--cs-gold); font-size: 17px; line-height: 1.25; margin: 0 0 2px; }
.s24-sol-match p { margin: 5px 0 0; }
.s24-sol-match small { color: #ead6bb; }
.s24-sol-summary { text-align: center; }
.s24-classic-event details { border: 1px solid var(--cs-border); border-radius: 9px; padding: 9px 12px; }
.s24-classic-event details summary { cursor: pointer; min-height: 36px; padding: 7px 0; }
.s24-classic-event [data-cs-result] { margin-top: 17px; }
.s24-cs-motion .s24-sol-faces .s24-cs-face,
.s24-cs-motion .s24-cs-daily-face .s24-cs-face { animation: s24-cs-reveal 410ms cubic-bezier(.26,.59,.36,1) var(--card-delay, 0ms) both; }
@keyframes s24-cs-reveal {
    from { opacity: .45; transform: perspective(400px) rotateY(90deg) translateY(-4px); }
    to { opacity: 1; transform: perspective(400px) rotateY(0); }
}

.s24-piles-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(6px, 1.6vw, 14px);
    max-width: 660px;
    margin: 18px auto;
}
.s24-piles-option {
    display: grid;
    justify-items: center;
    grid-template-rows: auto 1fr;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    background: #35263f;
    color: #f5e0c5;
    text-align: center;
    overflow-wrap: anywhere;
}
.s24-piles-option:hover { border-color: #f0d19c; background: #4b3657; }
.s24-piles-option > span:last-child { font-size: 13px; line-height: 1.25; align-self: center; }
.s24-piles-option > .s24-cs-face { width: min(100%, 64px); }
.s24-piles-board { max-width: 840px; margin: 0 auto 21px; }
.s24-piles-board > h3, .s24-piles-board > p { margin: 7px 0; text-align: center; }
.s24-piles-board > h3 { color: var(--cs-gold); }
.s24-piles-board > progress { accent-color: #e4ba79; display: block; width: min(100%, 360px); margin: 8px auto; }
.s24-piles-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 2vw, 12px);
    padding: 0;
    margin: 12px auto;
}
.s24-pile {
    display: grid;
    align-content: start;
    min-width: 0;
    min-height: 110px;
    margin: 0;
    padding: clamp(6px, 1.4vw, 12px);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    background: #2b2136;
    text-align: center;
}
.s24-pile-found { border-color: #f3cf83; background: #4c3654; box-shadow: inset 0 0 0 1px #f3cf83; }
.s24-pile-title { align-content: center; min-height: 2.5em; font-size: clamp(12px, 2.7vw, 16px); line-height: 1.25; overflow-wrap: anywhere; }
.s24-pile-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 7px auto 0; width: min(100%, 185px); }
.s24-pile-slot {
    display: grid;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 1px solid #9877a0;
    border-radius: 4px;
    background: #352741;
    color: #edcf9d;
    opacity: .26;
    min-width: 0;
    font-size: clamp(9px, 2.2vw, 14px);
}
.s24-pile-slot[data-dealt] { opacity: 1; background: linear-gradient(150deg, #6c5076, #3b2a48); }
.s24-pile-slot > .s24-cs-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    font-size: clamp(8px, 2.3vw, 20px);
    border-radius: 3px;
}
.s24-cs-motion .s24-pile-slot[data-dealt] { animation: s24-pile-deal 310ms ease-out both; }
.s24-cs-motion .s24-pile-slot[data-revealed-card] > .s24-cs-face { animation: s24-cs-reveal 460ms ease-out both; }
@keyframes s24-pile-deal {
    from { opacity: .25; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}
.s24-pile-marker { margin-top: 5px; color: #ffdc94; font-size: 13px; font-weight: 700; }
.s24-piles-result h5 { margin: 12px 0 0; color: var(--cs-gold); }
.s24-piles-result .s24-cs-overview { max-width: 680px; margin: 0 auto; }
.s24-piles-reading-card { display: flex; gap: 10px; align-items: center; }
.s24-piles-reading-card .s24-cs-face { flex-basis: clamp(42px, 12vw, 64px); }
.s24-cs-motion .s24-piles-reading-card .s24-cs-face { animation: s24-cs-reveal 460ms ease-out both; }
@media (max-width: 570px) {
    .s24-piles-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s24-piles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s24-pile { min-height: 102px; }
}
