.cah-pack-list{max-height:300px;overflow:auto;margin:12px 0}.cah-pack-list details{padding:7px;border-bottom:1px solid #ffffff1c}.cah-pack{display:flex!important;align-items:center;gap:10px;padding:8px 2px;font-size:14px}.cah-pack[hidden]{display:none!important}.cah-pack input{width:18px!important;height:18px;flex:none}.cah-pack small{display:block;color:#bac8c9;font-size:11px}.cah-options{display:grid;grid-template-columns:2fr 1fr 2fr;gap:8px}.cah-setup{margin-top:18px}.cah-setup input[type=file]{max-width:100%}.cah-import-preview>div{max-height:55vh;overflow:auto}.cah-import-preview{max-width:650px}.cah-stage{overflow:hidden}.cah-center{position:absolute;top:30%;left:22%;right:22%;bottom:35%;display:flex;align-items:center;justify-content:center;gap:14px;isolation:isolate}.cah-round{position:absolute;top:-25px;left:0;right:0;text-align:center;font-size:12px;color:white;text-shadow:0 2px 4px #000}.cah-card{border-radius:7px!important;padding:12px!important;width:115px;height:155px;display:flex;flex-direction:column;align-items:stretch;text-align:left;justify-content:space-between;position:relative;box-shadow:2px 5px 10px #0006;white-space:normal;flex-shrink:0;overflow:hidden;line-height:1.24}.cah-card span{font-size:13px;font-weight:700;overflow:auto;scrollbar-width:thin;white-space:pre-wrap}.cah-card small{font-size:9px;margin-top:6px;flex:none}.cah-white{background:linear-gradient(135deg,#fff,#eae8e2)!important;color:#16191a!important;border:1px solid #bbb!important}.cah-black{background:linear-gradient(140deg,#25282b,#060708)!important;color:white!important;border:1px solid #73767a!important}.cah-prompt .cah-card{width:160px;height:190px}.cah-prompt .cah-card span{font-size:16px}.cah-answers{display:flex;gap:8px;align-items:center;overflow:auto;max-height:100%;padding:12px 5px;max-width:100%;scrollbar-width:thin}.cah-answer{flex:none;text-align:center}.cah-answer>strong{font-size:11px;background:#10191ced;padding:4px;display:block;border-radius:3px}.cah-answer-cards{display:flex;gap:3px}.cah-answer .cah-card{width:115px;height:145px}.cah-answer>button:not(.cah-face-down){font-size:11px;padding:6px}.cah-face-down{width:75px;height:110px;background:repeating-linear-gradient(45deg,#192832,#192832 5px,#293e49 5px,#293e49 7px);border:2px solid #dad3be;color:#fff;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:2px 3px 6px #0008}.cah-face-down small{font-size:10px}.cah-submit-stack{display:flex;gap:4px;align-items:center;flex-wrap:wrap;max-width:300px}.cah-submit-stack span{font-size:12px;color:white;background:#10191ced;padding:5px}.cah-submit-stack i{width:35px;height:55px;font-style:normal}.cah-help{position:absolute;left:20%;right:20%;bottom:30%;margin:0;text-align:center;background:#0a151bee;color:#fff;border:1px solid #b6a67b;border-radius:6px;padding:6px 10px;font-size:14px;line-height:1.2;width:fit-content;max-width:60%;justify-self:center}.cah-help small{display:block;font-size:11px;margin-top:4px}.cah-hand{position:absolute;bottom:45px;left:17%;right:3%;display:flex;justify-content:center;gap:5px;overflow-x:auto;overflow-y:hidden;padding:12px 4px 3px;scrollbar-width:thin}.cah-hand:has(.cah-card:nth-child(11)){justify-content:flex-start}.cah-selected{outline:3px solid #f3d185;transform:translateY(-8px)}.cah-order{position:absolute;right:3px;top:3px;border-radius:50%;background:#b38628;color:#fff;padding:4px;font-size:13px;min-width:22px;text-align:center}.cah-controls{position:absolute;bottom:3px;left:17%;right:3%;display:flex;justify-content:center;align-items:center;gap:8px;height:38px}.cah-controls button{padding:7px 12px;font-size:12px}.cah-controls .small{font-size:10px}.cah-local{left:6%!important;bottom:8%!important;font-size:12px!important;max-width:12%}.cah-opponent .count{color:#fff;font-size:10px}.cah-opponent .name{font-size:12px}.cah-opponent .avatar{width:45px;height:45px;font-size:30px}.cah-opponent .mini-hand .card-back{width:20px;height:29px}.cah-winning{filter:drop-shadow(0 0 8px #eec465)}.cah-flip{animation:cahFlip .5s ease}.cah-slide{pointer-events:none;position:absolute;left:50%;top:50%;width:65px;height:90px;background:#253841;border:2px solid #eee;border-radius:6px;text-align:center;padding-top:28px;animation:cahSubmit .6s both}.cah-deal{animation:cahDeal .45s both}.cah-reader .cah-card{width:min(330px,75vw);height:360px;margin-bottom:14px}.cah-reader .cah-card span{font-size:24px}.cah-reader{max-width:90vw}.cah-screen .turn-wait-panel{display:none}@keyframes cahDeal{from{opacity:0;transform:translate(0,-170px) rotate(-15deg)}to{opacity:1;transform:none}}@keyframes cahFlip{from{transform:rotateY(90deg)}to{transform:rotateY(0)}}@keyframes cahSubmit{from{transform:translateY(150px) rotate(12deg);opacity:1}to{transform:translateY(0) rotate(-5deg);opacity:0}}
@media(max-height:550px) and (orientation:landscape){.cah-center{top:31%;bottom:32%;left:20%;right:20%;gap:6px}.cah-prompt .cah-card{width:115px;height:125px;padding:8px!important}.cah-prompt .cah-card span{font-size:12px}.cah-card{width:68px;height:83px;padding:6px!important}.cah-card span{font-size:9px}.cah-card small{font-size:6px}.cah-hand{bottom:32px;gap:3px;left:15%;right:2%;justify-content:flex-start;padding-top:7px}.cah-controls{left:15%;height:28px;bottom:2px;gap:4px}.cah-controls button{padding:4px 6px;font-size:10px}.cah-controls .small{display:none}.cah-help{bottom:30%;padding:3px 7px;font-size:11px;max-width:65%;left:17%;right:17%;white-space:nowrap}.cah-help small{font-size:8px}.cah-opponent .avatar{width:27px;height:27px;font-size:20px}.cah-opponent .name{font-size:9px}.cah-opponent .count{font-size:8px}.cah-opponent .mini-hand .card-back{width:12px;height:18px}.cah-local .avatar{width:30px;height:30px}.cah-local{font-size:9px!important;bottom:5%!important}.cah-answer .cah-card{width:85px;height:104px}.cah-answer .cah-card span{font-size:10px}.cah-face-down{width:46px;height:70px}.cah-round{font-size:10px;top:-15px}.cah-answer>strong{font-size:9px}.cah-answers{gap:5px;padding:4px}.cah-submit-stack i{width:20px;height:32px}.cah-options{grid-template-columns:1fr 1fr}.cah-pack-list{max-height:180px}}
@media(min-height:551px) and (max-width:1150px){.cah-hand{justify-content:flex-start}.cah-card{width:92px;height:135px}.cah-card span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.cah-deal,.cah-flip,.cah-slide{animation:none}}

.cah-card span{overflow-wrap:anywhere;overflow-x:hidden}.cah-hand .cah-card{min-height:0}.cah-options input{min-width:0}.cah-reader button{min-height:40px}
@media(max-height:550px) and (orientation:landscape){.cah-screen .topbar{position:absolute;right:7px;top:4px;padding:0;border:0;background:none;width:auto}.cah-screen .topbar .brand,.cah-screen .topbar .turn-announcement,.cah-screen .topbar .pill,.cah-screen .topbar .quiet,.cah-screen .menu-label{display:none}.cah-screen .topbar button{min-height:29px;padding:3px 8px}.cah-screen .stage{height:100dvh!important;min-height:0!important}.cah-center{top:30%;bottom:37%}.cah-help{bottom:126px}.cah-local strong{font-size:9px;max-width:90px;white-space:normal}.cah-controls button{min-height:26px}.cah-reader .cah-card{height:250px}.cah-reader .cah-card span{font-size:19px}}

.cah-flight{position:absolute;z-index:8;pointer-events:none;width:45px;height:65px;margin:-32px 0 0 -22px;border:2px solid #dad3be;border-radius:5px;background:#243945;color:#fff;text-align:center;padding-top:15px;font-style:normal;animation:cahFlight .7s both}.cah-shuffling .cah-answer{animation:cahShuffle .6s ease-in-out}.cah-shuffling .cah-answer:nth-child(even){animation-direction:reverse}@keyframes cahFlight{from{transform:translate(0,0) rotate(-8deg);opacity:1}90%{opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(4deg);opacity:0}}@keyframes cahShuffle{0%,100%{transform:none}50%{transform:translateX(20px) rotate(8deg)}}@media(prefers-reduced-motion:reduce){.cah-flight,.cah-shuffling .cah-answer{animation:none}.cah-flight{display:none}}

.cah-card span{flex:1;min-height:0;scrollbar-width:none}.cah-hand .cah-card span{scrollbar-width:none}

@media(max-height:550px) and (orientation:landscape){.cah-opponent{top:min(var(--cah-y),48%)!important}.cah-hand .cah-card{width:clamp(54px,7.8vw,68px)}.cah-center{bottom:39%}}
