.cat-section{display:grid;grid-template-columns:1fr minmax(200px,330px);gap:50px;align-items:center;background:#f4e9df}.cat-section p{color:var(--muted)}.cat-section button{border:0;cursor:pointer}.cat-preview{width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:18px}#cat-dialog{width:min(650px,calc(100% - 24px));max-height:90dvh;margin:auto;padding:24px;border:1px solid #ceb49b;border-radius:22px;background:#fcf8f2;color:var(--ink);overflow:auto}#cat-dialog::backdrop{background:#30231dc7;backdrop-filter:blur(5px)}.cat-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;font-size:12px;letter-spacing:1px}.cat-dialog-bar button,.cat-back{background:none;border:1px solid #d5bfae;border-radius:24px;padding:10px 18px;color:var(--ink);cursor:pointer;min-height:44px}#cat-title{font-size:26px;line-height:1.55;outline:none}#cat-content p{font-size:16px}#cat-content input{display:block;width:100%;padding:15px;border:1px solid #cdb39f;border-radius:12px;font:inherit;margin:10px 0;background:white;color:var(--ink)}#cat-content .button{border:0;cursor:pointer;white-space:normal;margin:16px 0;min-height:48px}#cat-content fieldset{border:0;padding:0;margin:0;min-width:0}.cat-option{display:block;padding:14px 16px;border:1px solid #d9c4b4;border-radius:12px;margin:10px 0;cursor:pointer;font-size:16px}.cat-option:has(input:checked){background:#efe0d2;border-color:#865752}#cat-content .cat-option input{display:inline;width:auto;margin:0 10px 0 0;accent-color:#865752}.cat-progress{color:var(--rose);font-size:14px!important}.cat-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.cat-result-card{width:min(100%,290px);aspect-ratio:2/3;background-image:url('cat-cards.webp');background-size:200% 200%;margin:16px auto;border-radius:18px;animation:cat-flip .75s ease both}.cat-reveal{display:block;margin:20px auto!important;min-height:220px!important;width:min(100%,260px);background:linear-gradient(135deg,#865752,#c29472)!important;font-size:24px!important;border:5px double #e7ceb1!important}.cat-summary{width:100%;min-height:170px;font:14px/1.6 Anuphan,sans-serif;padding:12px;border:1px solid #d9c4b4;border-radius:10px;background:#fffaf5;color:var(--ink)}.cat-note{font-size:13px!important;color:var(--muted)}.cat-status{color:#76503d}#cat-content a:not(.button){text-decoration:underline;text-underline-offset:4px}.cat-result-copy h3{font-size:19px;margin:20px 0 5px}@keyframes cat-flip{from{opacity:0;transform:perspective(800px) rotateY(80deg)}to{opacity:1;transform:perspective(800px) rotateY(0)}}@media(max-width:800px){.cat-section{grid-template-columns:1fr;gap:24px}.cat-preview{max-height:320px}.cat-section h2{font-size:30px}#cat-dialog{padding:18px}#cat-title{font-size:23px}.cat-dialog-bar{letter-spacing:0}.cat-option{padding:13px}.cat-actions .button{flex:1}}@media(prefers-reduced-motion:reduce){.cat-result-card{animation:none}}

/* Keep the host card and invitation together on wide screens. */
.cat-section{grid-template-columns:minmax(0,540px) minmax(0,300px);justify-content:center;column-gap:clamp(28px,4vw,64px)}
.cat-section>div{min-width:0}.cat-preview{max-width:300px;max-height:none;width:100%;justify-self:center;box-shadow:0 14px 34px #77534418}
@media(max-width:800px){.cat-section{grid-template-columns:minmax(0,540px);row-gap:28px}.cat-preview{width:min(100%,240px);max-height:none}.cat-section>div{width:100%}}

@media(max-width:800px){.cat-dialog-bar{flex-wrap:wrap}.cat-dialog-bar>span{min-width:0;overflow-wrap:anywhere}.cat-dialog-bar button{margin-left:auto}}
