.ca-screen{height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 60% 40%,#283c41,#111c24);color:#f7f1e5;display:flex;flex-direction:column}.ca-screen .topbar{flex:none}.ca-stage{flex:1;min-height:0;display:grid;grid-template-columns:190px minmax(0,1fr) 76px;grid-template-rows:minmax(0,1fr) 112px;gap:10px;padding:10px}.ca-players{grid-row:1/3;overflow:auto;display:flex;flex-direction:column;gap:8px}.ca-heading{font-size:21px;margin:0 0 4px}.ca-player{display:grid;grid-template-columns:48px 1fr;gap:8px;padding:10px;border:1px solid #ffffff24;border-left:5px solid var(--colour);border-radius:12px;background:#142229;min-width:0}.ca-player.active{box-shadow:inset 0 0 0 2px var(--colour);background:#263c42}.ca-player .avatar{width:48px;height:48px;min-width:0;object-fit:contain}.ca-player strong,.ca-player small{display:block;overflow-wrap:anywhere;line-height:1.2}.ca-player small{color:#d1dedc;margin-top:5px;font-size:12px}.ca-player b{color:var(--colour);font-size:22px;text-shadow:0 1px 2px #000}.ca-frame{min-width:0;min-height:0;position:relative;border-radius:15px;overflow:hidden;background:#213a3b;touch-action:none;box-shadow:inset 0 0 0 1px #ffffff20}.ca-frame canvas{display:block;width:100%;height:100%;outline:none;-webkit-tap-highlight-color:transparent}.ca-view-dock{min-width:0;display:flex;flex-direction:column;gap:6px;overflow-y:auto;background:#142229;border-radius:12px;padding:7px}.ca-view-dock button{font-size:11px;padding:8px 3px;min-height:32px}.ca-view-dock label{font-size:11px;color:#dfebe9;display:flex;flex-direction:column;gap:6px}.ca-view-dock input{width:100%;min-width:0;margin:0}.ca-view-dock #request-status{position:static;font-size:10px;max-width:100%;white-space:normal;padding:5px}.ca-tray{grid-column:2/4;display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:10px 12px;background:#142229;border:1px solid #ffffff22;border-radius:12px;min-width:0;overflow:auto}.ca-tray canvas{width:80px;height:80px;border-radius:5px;border:3px solid #756f55;box-shadow:0 5px 10px #0007;touch-action:none;cursor:grab;transform:rotate(var(--rotation,0deg))}.ca-tray .ca-tile-slot{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:#273c3e;border-radius:6px;font-size:30px}.ca-tray .ca-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ca-tray button{padding:7px 11px;font-size:13px;min-height:32px}.ca-instruction{display:block;font-size:15px;line-height:1.25;margin-bottom:7px;overflow-wrap:anywhere}.ca-detail{font-size:11px;color:#b9ccca;margin:5px 0 0;line-height:1.3}.ca-last-event{font-size:11px;margin:8px 0;color:#d0dbd5}.ca-overlay:empty{display:none}.ca-overlay{position:absolute;inset:0;pointer-events:none}.ca-overlay>*{pointer-events:auto}.ca-score-pop{position:absolute;left:50%;top:15%;transform:translateX(-50%);background:#101d24ed;border:1px solid #ffd579;border-radius:10px;padding:8px 14px;pointer-events:none;max-width:80%;font-size:14px;animation:ca-score 2s both}.ca-result{position:absolute;inset:12px;background:#12232bf5;z-index:5;padding:18px;overflow:auto;border:1px solid #819d96;border-radius:15px}.ca-result h2{margin-top:0}.ca-result-row{display:flex;justify-content:space-between;gap:12px;padding:8px;border-bottom:1px solid #ffffff25}.ca-replay-frame{height:300px;max-height:42dvh;background:#243e3d;position:relative;border-radius:12px;overflow:hidden}.ca-replay-frame canvas{display:block;width:100%;height:100%}.ca-draw-animation{animation:ca-draw .6s ease-out}@keyframes ca-draw{from{transform:translateY(50px) rotateY(160deg);opacity:.2}to{transform:translateY(0) rotateY(0);opacity:1}}@keyframes ca-score{0%{opacity:0;translate:0 15px}15%,80%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -10px}}
@media(max-width:1000px),(max-height:620px){.ca-stage{grid-template-columns:130px minmax(0,1fr) 65px;grid-template-rows:minmax(0,1fr) 92px;padding:5px;gap:5px}.ca-player{grid-template-columns:35px 1fr;padding:6px;gap:5px;border-radius:8px}.ca-player .avatar{width:35px;height:35px}.ca-player strong{font-size:12px}.ca-player small{font-size:10px;margin-top:3px}.ca-player b{font-size:17px}.ca-heading{font-size:16px}.ca-tray{padding:6px 8px;gap:8px;grid-template-columns:70px minmax(0,1fr)}.ca-tray canvas,.ca-tray .ca-tile-slot{width:66px;height:66px}.ca-instruction{font-size:13px;margin-bottom:4px}.ca-tray button{font-size:11px;padding:5px 8px;min-height:29px}.ca-actions{gap:4px}.ca-view-dock{padding:4px;gap:4px}.ca-view-dock button{padding:6px 2px;min-height:28px}.ca-screen .topbar{min-height:34px;padding:3px 8px}.ca-screen .topbar .brand,.ca-screen .topbar>.row>*:not([data-action="table-menu"]):not([data-action="menu"]){display:none}.ca-screen .topbar>.row{margin-left:auto}.ca-detail{font-size:10px}.ca-last-event{font-size:10px}.ca-score-pop{font-size:12px}}
@media(max-width:680px){.ca-stage{grid-template-columns:105px minmax(0,1fr) 58px;grid-template-rows:minmax(0,1fr) 92px}.ca-player{grid-template-columns:28px 1fr}.ca-player .avatar{width:28px;height:28px}.ca-heading{font-size:14px}.ca-view-dock button{font-size:10px}.ca-tray{grid-template-columns:62px minmax(0,1fr)}.ca-tray canvas,.ca-tray .ca-tile-slot{width:58px;height:58px}.ca-tray button{padding:4px 6px;font-size:10px}.ca-instruction{font-size:12px}.ca-detail{max-height:26px;overflow:auto}}
.ca-feature-select{width:auto;max-width:180px;font-size:12px;min-height:30px;padding:5px;color:#f7f1e5;background:#263e41;border:1px solid #81918c;border-radius:6px}@media(max-width:680px){.ca-feature-select{max-width:125px;font-size:10px;min-height:29px}}
.ca-player .ember-seat-avatar,.ca-player .ava-seat-avatar,.ca-player .ghost-seat-avatar,.ca-player .clover-seat-avatar{width:48px;height:48px;min-width:0}.ca-player>span:first-child img{width:100%;height:100%;object-fit:contain}@media(max-width:1000px),(max-height:620px){.ca-player .ember-seat-avatar,.ca-player .ava-seat-avatar,.ca-player .ghost-seat-avatar,.ca-player .clover-seat-avatar{width:35px;height:35px}}@media(max-width:680px){.ca-player .ember-seat-avatar,.ca-player .ava-seat-avatar,.ca-player .ghost-seat-avatar,.ca-player .clover-seat-avatar{width:28px;height:28px}}

.ca-screen>.topbar{position:relative;inset:auto;display:flex;height:auto;flex:none;background:#0d2229}.ca-screen>.topbar>.row{position:static;display:flex;gap:6px}.ca-screen>.topbar>.turn-announcement{position:static;inset:auto;max-width:220px;min-width:0}.ca-stats{display:flex;align-items:center;gap:5px}.ca-player .ca-stats small{display:inline;margin:0;white-space:nowrap}.ca-player .ca-meep-word{display:inline}
@media(max-width:1000px),(max-height:620px){.ca-screen>.topbar{height:40px;min-height:40px;padding:2px 8px}.ca-screen>.topbar>.turn-announcement{font-size:12px;padding:4px 9px;line-height:1}.ca-screen>.topbar [data-action=table-menu]{min-height:32px;height:32px;padding:3px 8px}.ca-player .ca-meep-word{display:none}.ca-players{gap:5px}.ca-player .ca-stats b{font-size:16px}.ca-player .ca-stats small{font-size:10px}}

.ca-view-dock button{flex:none;width:100%}.ca-player{flex:none}.ca-player .ca-stats b{line-height:1}.ca-players{scrollbar-width:none}.ca-players::-webkit-scrollbar{display:none}
@media(max-width:1000px),(max-height:620px){.ca-player{padding:4px}.ca-players{gap:4px}.ca-player small{margin-top:2px}.ca-view-dock{gap:3px}.ca-player .ca-points-word{display:none}.ca-tray button,.ca-feature-select{min-height:32px}.ca-player .ca-stats b{font-size:14px}.ca-player .ca-stats small{font-size:10px}}

.ca-view-dock input[type=range]{height:18px;min-height:18px;padding:0}
