.ht-stage{height:calc(100dvh - 76px);min-height:0;overflow:hidden}.ht-center{position:absolute;left:22%;right:22%;top:25%;bottom:32%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;z-index:2}.ht-round{font-size:12px;color:white;background:#15242ce8;border-radius:6px;padding:4px 10px;text-align:center}.ht-comic{display:flex;gap:7px;max-height:calc(100% - 55px);max-width:100%;transform-origin:center;position:relative}.ht-comic article{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center}.ht-comic article>small{color:white;font-size:11px;background:#14232cec;padding:3px 8px;border-radius:4px}.ht-card{padding:3px!important;background:#fff!important;border:1px solid #d3d3cd!important;border-radius:6px;box-shadow:2px 4px 7px #0007;overflow:hidden;min-height:0!important;flex:none;display:flex;align-items:center;justify-content:center}.ht-card img{width:100%;height:100%;object-fit:contain;background:white;pointer-events:none}.ht-comic .ht-card,.ht-empty{width:clamp(85px,13vw,220px);height:min(25vh,200px);max-width:100%}.ht-empty{border:1px solid #d6c994;border-radius:5px;display:grid;place-items:center;background:#203945}.ht-back{display:flex;flex-direction:column;align-items:center;color:#e8d7aa;font-size:36px}.ht-back small{font-size:9px;max-width:80px;text-align:center}.ht-submissions{display:flex;align-items:center;gap:4px;color:white;font-size:11px}.ht-submitted{display:inline-grid;place-items:center;width:21px;height:27px;background:#203b49;border:1px solid #e8d7aa;font-style:normal;border-radius:3px}.ht-candidates{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}.ht-candidates button{font-size:12px;min-width:32px;min-height:30px;padding:4px}.ht-notice{position:absolute;bottom:calc(23vh + 48px);left:17%;right:17%;text-align:center;color:white;background:#10232cf5;border:1px solid #b9a268;padding:5px 9px;border-radius:6px;font-size:13px;width:fit-content;max-width:66%;margin:auto;z-index:3}.ht-notice small{display:block;font-size:10px;max-width:500px}.ht-hand{position:absolute;left:16%;right:3%;bottom:45px;height:23vh;display:flex;gap:6px;align-items:center;justify-content:center;overflow-x:auto;overflow-y:hidden;padding:8px 3px}.ht-hand .ht-card{width:min(15vw,180px);height:100%;max-height:175px;transition:transform .12s}.ht-selected{outline:3px solid #f5ce75;transform:translateY(-5px)}.ht-controls{position:absolute;bottom:3px;left:16%;right:3%;height:36px;display:flex;gap:6px;justify-content:center;align-items:center}.ht-controls button{font-size:12px;min-height:32px;padding:5px 9px}.ht-local{left:6%!important;bottom:5%!important;width:12%;font-size:12px;display:flex;flex-direction:column;align-items:center;text-align:center}.ht-local strong,.ht-local span{color:white;background:#13232ee8;border-radius:3px;padding:3px;max-width:100%;overflow-wrap:anywhere}.ht-opponent{max-width:15%;z-index:1}.ht-opponent .name,.ht-opponent .count{display:block;color:white;background:#13232ef5;padding:2px 5px;border-radius:4px;white-space:normal;overflow-wrap:anywhere;font-size:12px}.ht-opponent .count{font-size:10px}.ht-opponent .avatar{width:42px;height:42px}.ht-decks{position:absolute;left:2%;top:45%;display:flex;flex-direction:column;gap:5px;pointer-events:none}.ht-decks>span{display:grid;place-items:center;background:#203744;border:1px solid #ddd0a1;border-radius:4px;color:#eedcb2;width:65px;height:40px}.ht-decks small{font-size:8px}.ht-reader{width:min(1100px,96vw);max-width:96vw;height:min(650px,94dvh);max-height:94dvh;padding:10px;overflow:hidden}.ht-reader header{display:flex;align-items:center;gap:8px;justify-content:space-between}.ht-reader header button{padding:5px 10px;min-height:32px}.ht-reader p{font-size:11px;margin:4px 0}.ht-read-window{height:calc(100% - 65px);overflow:hidden;touch-action:none;display:flex;align-items:center;justify-content:center;background:#e9e6df;border-radius:6px}.ht-read-strip{display:flex;gap:6px;align-items:center;height:100%;width:100%;justify-content:center;transform-origin:center;touch-action:none}.ht-read-strip img{width:calc((100% - 12px)/3);height:100%;object-fit:contain;user-select:none;pointer-events:none}.ht-read-strip img:only-child{width:100%}.ht-read-strip:has(img:nth-child(2):last-child) img{width:calc((100% - 6px)/2)}.ht-history{max-height:90dvh;overflow:auto}.ht-history>button{display:block;margin:7px 0}.ht-flight{position:absolute;z-index:10;pointer-events:none;width:40px;height:50px;margin:-25px 0 0 -20px;border:2px solid #d6cba3;border-radius:4px;background:#203945;color:#eee;text-align:center;padding-top:12px;animation:htFlight .65s both}.ht-flip{animation:htFlip .35s ease}.ht-deal{animation:htDeal .35s both}@keyframes htFlight{from{transform:none;opacity:1}90%{opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(5deg);opacity:0}}@keyframes htFlip{from{transform:rotateY(85deg)}to{transform:none}}@keyframes htDeal{from{opacity:0;transform:translateY(-150px) rotate(-10deg)}to{opacity:1;transform:none}}
@media(max-height:550px) and (orientation:landscape){.ht-screen .topbar{position:absolute;right:5px;top:3px;width:auto;padding:0;background:none;border:0;z-index:20}.ht-screen .topbar .brand,.ht-screen .topbar .pill,.ht-screen .topbar .turn-announcement,.ht-screen .topbar .quiet,.ht-screen .menu-label{display:none}.ht-screen .topbar button{min-height:27px;padding:3px 7px}.ht-stage{height:100dvh!important;min-height:0!important}.ht-center{top:22%;bottom:37%;left:20%;right:20%;gap:3px}.ht-round{font-size:9px;padding:2px 6px}.ht-comic{gap:4px;max-height:calc(100% - 40px)}.ht-comic .ht-card,.ht-empty{width:18vw;height:24vh}.ht-comic article>small{font-size:8px;padding:1px 4px}.ht-back{font-size:22px}.ht-back small{font-size:7px}.ht-notice{font-size:10px;bottom:calc(23vh + 37px);padding:3px 6px;max-width:70%;left:15%;right:15%}.ht-notice small{font-size:8px}.ht-hand{height:23vh;bottom:32px;gap:4px;left:15%;right:2%;padding-top:6px}.ht-hand .ht-card{width:15vw}.ht-controls{height:28px;bottom:1px;left:15%;right:2%;gap:4px}.ht-controls button{font-size:9px;min-height:26px;padding:3px 5px}.ht-opponent .avatar{width:24px;height:24px}.ht-opponent .name{font-size:9px;padding:1px 4px}.ht-opponent .count{font-size:7px;padding:1px 4px}.ht-opponent .mini-hand .card-back{width:11px;height:15px}.ht-local{font-size:8px;width:12%}.ht-local .avatar{width:29px;height:29px}.ht-decks{left:2%;top:42%;gap:3px}.ht-decks>span{width:55px;height:27px;font-size:10px}.ht-decks small{font-size:7px}.ht-candidates{gap:3px}.ht-candidates button{min-width:25px;min-height:22px;font-size:9px;padding:2px 4px}.ht-submissions{font-size:9px}.ht-submitted{height:17px;width:14px}.ht-reader header strong{font-size:12px}.ht-reader header button{font-size:10px;min-height:26px}.ht-reader p{font-size:9px}.ht-read-window{height:calc(100% - 53px)}}
@media(prefers-reduced-motion:reduce){.ht-flight{display:none}.ht-flip,.ht-deal{animation:none}.ht-hand .ht-card{transition:none}}
.ht-card{position:relative}.ht-writing{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;color:#151515;font-size:clamp(5px,1vw,14px);line-height:1.05;font-family:Georgia,serif;padding:2px 5px;overflow:hidden;overflow-wrap:anywhere;pointer-events:none}.ht-read-panel{position:relative;width:calc((100% - 12px)/3);height:auto;aspect-ratio:631/656;max-height:100%;display:block;flex:none}.ht-read-strip .ht-read-panel img{width:100%;height:100%;object-fit:contain}.ht-read-panel:only-child{width:auto;height:100%;max-width:100%}.ht-read-strip:has(.ht-read-panel:nth-child(2):last-child) .ht-read-panel{width:calc((100% - 6px)/2)}.ht-read-panel .ht-writing{font-size:clamp(9px,2vw,23px)}.ht-controls{overflow-x:auto;justify-content:safe center}.ht-controls button{flex:none}
.ht-decks{left:10px;top:8px;flex-direction:row}.ht-decks>span{width:62px;height:35px}@media(max-height:550px) and (orientation:landscape){.ht-decks{left:4px;top:3px;gap:3px}.ht-decks>span{width:40px;height:25px}.ht-decks small{font-size:6px}.ht-center{top:29%;bottom:36%}.ht-comic .ht-card,.ht-empty{height:21vh}.ht-round{max-width:100%}}

/* Square printed cards matching the source decks, with a paper rim and stacked edges. */
.ht-card,.ht-empty{box-sizing:border-box;aspect-ratio:1;flex:none;width:auto!important;border-radius:7%!important;border:1px solid #ded8ce!important;padding:4%!important;background:#fffdf8!important;box-shadow:0 1px 0 #e3ded4,0 2px 0 #bdb7ac,0 3px 0 #ece7dd,1px 5px 8px #0009;overflow:hidden}
.ht-card{padding:4px!important}.ht-card .ht-art{position:relative;display:block;width:100%;aspect-ratio:631/656;max-height:100%;min-height:0;pointer-events:none}.ht-art>img{display:block;width:100%;height:100%;object-fit:fill;background:white;border-radius:3%}.ht-card.ht-question{border-color:#cbbc91!important}.ht-card.ht-answer{border-color:#96938e!important}.ht-card.ht-treatment{border-color:#c89791!important}
.ht-comic .ht-card,.ht-comic .ht-empty{height:min(25vh,200px);width:auto!important;aspect-ratio:1}.ht-comic article{flex:none}.ht-comic{justify-content:center;gap:12px}.ht-comic article>small{margin-bottom:5px}.ht-empty{padding:0!important}.ht-back-art{display:block;width:100%;height:100%;object-fit:fill;border-radius:6%;pointer-events:none;user-select:none}
.ht-hand .ht-card{height:100%;width:auto!important;aspect-ratio:1;max-height:175px}.ht-hand{gap:10px;padding-bottom:9px}.ht-selected{outline-offset:2px}
.ht-mini-back{padding:0!important;background:none!important;overflow:hidden;border-radius:14%!important}.ht-submitted{padding:0;background:none;border:0;width:25px;height:25px;box-shadow:1px 2px 2px #0007;border-radius:4px}
.ht-decks{gap:12px}.ht-decks>span{position:relative;width:48px;height:48px;background:none;border:0;box-shadow:0 1px 0 #eee7db,0 3px 0 #999,0 5px 0 #e8e0d3,1px 7px 8px #0007;border-radius:7%;display:block}.ht-decks small{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#15242cf5;color:#fff;padding:2px 4px;border-radius:3px;font-size:8px}
.ht-flight{width:45px;height:45px;padding:0;border:0;border-radius:7%;box-shadow:0 2px 0 #dbd3c6,1px 4px 5px #0009}
.ht-read-strip .ht-read-panel{box-sizing:border-box;width:min(31%,500px)!important;height:auto!important;aspect-ratio:1;max-height:95%;padding:10px!important;display:flex}.ht-read-strip .ht-read-panel:only-child{height:min(95%,600px)!important;width:auto!important;max-width:95%}.ht-read-strip:has(.ht-read-panel:nth-child(2):last-child) .ht-read-panel{width:min(45%,500px)!important}.ht-read-panel .ht-art{width:100%;max-height:100%}.ht-read-panel .ht-writing{font-size:clamp(9px,2vw,23px)}
@media(max-height:550px) and (orientation:landscape){.ht-comic{gap:6px}.ht-comic .ht-card,.ht-comic .ht-empty{height:21vh;width:auto!important}.ht-card{padding:2px!important}.ht-comic article>small{margin-bottom:2px}.ht-hand{gap:6px;padding-bottom:5px}.ht-decks{gap:9px}.ht-decks>span{width:30px;height:30px}.ht-decks small{font-size:6px;top:calc(100% + 6px);padding:1px 2px}.ht-submitted{width:16px;height:16px}.ht-read-strip .ht-read-panel{padding:5px!important}}

@media(max-height:550px) and (orientation:landscape){.ht-center{top:28%;bottom:calc(23vh + 68px)}.ht-round{position:absolute;top:-19px;white-space:nowrap}.ht-comic{max-height:none}.ht-comic .ht-card,.ht-comic .ht-empty{height:18vh}.ht-candidates{flex-wrap:nowrap}}
