.deck-test{max-width:700px;margin:0 auto;padding:clamp(16px,4vw,36px);color:#f3e8d8}
.deck-test a,.deck-test-history a{color:#ffc19f}
.deck-test p,.deck-test-history p{line-height:1.55}
.deck-test textarea{width:100%;box-sizing:border-box;margin:5px 0 14px;padding:10px;background:#201820;color:#f3e8d8;border:1px solid #ad826f;border-radius:6px;font-size:16px}
.deck-test fieldset{margin:0 0 18px;padding:0;border:0;min-width:0}
.deck-test-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:8px}
.deck-test-options label{display:block;cursor:pointer;border:1px solid #8e6457;border-radius:8px;padding:8px}
.deck-test-options label:has(:checked){border-color:#ffc19f;background:#372630}
.deck-test-options label span{display:flex;align-items:center;gap:5px;min-height:44px;font-weight:bold}
.deck-test-options input{flex:none}
.deck-test-options [data-preview-deck]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.deck-test-options img,.deck-test-cards img{display:block;width:100%;height:auto;border-radius:5px}
.deck-test-action{display:inline-block;padding:10px 14px;border-radius:6px;border:1px solid #f6b898;background:#f6b898;color:#2b1820!important;font:inherit;text-decoration:none;cursor:pointer}
.deck-test [aria-live]{min-height:1.5em}
.deck-test-history{margin:15px 0;padding:11px 14px;border:1px solid #8e6457;border-radius:8px}
.deck-test-history summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}
.deck-test-history details{padding:10px 0;border-top:1px solid #8e6457}
.deck-test-history small{display:block;font-weight:400;color:#dbc1b4}
.deck-test-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;list-style:none;text-align:center}
.deck-test-cards li{min-width:0;display:grid;align-content:start;gap:6px;overflow-wrap:anywhere}
.deck-test-cards li[data-reversed="true"] img{transform:rotate(180deg)}
.deck-test-cards span{font-size:.8rem}
