.cl-screen{height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#314c5d,#142a39 75%)}
.cl-stage{height:calc(100dvh - 76px);display:flex;flex-direction:column;max-width:1800px;margin:auto;padding:8px 20px;box-sizing:border-box;min-height:0}
.cl-title{display:flex;justify-content:space-between;align-items:center;flex:0 0 36px;padding:0 8px}
.cl-title h1{font-size:25px;margin:0;color:#f5eee0}.cl-title h1 small{font-size:13px;font-weight:400;margin-left:12px;color:#c9d7dc}.cl-edition{font-size:12px;color:#b9cbd2}
.cl-layout{display:grid;grid-template-columns:205px minmax(0,1fr) 265px;gap:12px;flex:1;min-height:0}
.cl-players,.cl-panel{overflow:auto;min-height:0;padding:8px;border-radius:12px;background:#122a38d9;scrollbar-width:thin}
.cl-players .board-player{border:1px solid #66828b66;border-left:4px solid var(--cl-colour);margin-bottom:8px;min-height:68px;padding:7px;display:flex;gap:7px;align-items:center;overflow:hidden;background:#213946;border-radius:9px}
.cl-players .board-player.active{background:#354b53;border-color:#e1c37b;box-shadow:inset 0 0 0 1px #e1c37b}.cl-players .board-player>span:last-child{min-width:0;flex:1}.cl-players strong,.cl-players small{display:block;overflow-wrap:anywhere}.cl-players strong{font-size:14px;color:#f5eee0}.cl-players small{font-size:11px;line-height:1.4;color:#d2dfe0}
.cl-players .avatar,.cl-players .ember-avatar,.cl-players .ava-avatar,.cl-players .ghost-avatar,.cl-players .clover-avatar{width:48px!important;height:55px!important;flex:0 0 48px;min-width:0;object-fit:contain}.cl-players img{width:100%;height:100%;object-fit:contain}
.cl-board-wrap{display:flex;flex-direction:column;min-width:0;min-height:0;border-radius:14px;background:#0e233126;overflow:hidden}.cl-frame{flex:1;position:relative;min-height:0;touch-action:none;overflow:hidden;outline:none;-webkit-tap-highlight-color:transparent}.cl-frame canvas{display:block;width:100%;height:100%;outline:none;-webkit-tap-highlight-color:transparent}
.cl-room-label{position:absolute;transform:translate(-50%,-50%);pointer-events:none;font-size:clamp(10px,1vw,15px);font-weight:700;white-space:nowrap;color:#f5f2e9;padding:3px 6px;background:#142b39db;border:1px solid #9fb0b744;border-radius:5px;box-shadow:0 1px 3px #0c182766;text-shadow:0 1px 1px #071922}.cl-room-label[hidden]{display:none}
.cl-camera{flex:0 0 40px;display:flex;align-items:center;justify-content:center;gap:5px;background:#142b39;padding:4px;box-sizing:border-box}.cl-camera button{padding:5px 9px;font-size:11px;min-height:29px}.cl-camera label{display:flex;gap:5px;align-items:center;font-size:11px;margin:0;color:#cedce0}.cl-camera input{width:75px;padding:0;margin:0;min-height:0}.cl-camera small{font-size:10px;color:#a4bcc6;max-width:110px}
.cl-turn{color:#e9f1f2;background:#234452;padding:10px;border-radius:8px;line-height:1.35;font-size:14px;margin-bottom:8px}.cl-turn.my-turn{border-left:4px solid #e5c57c;background:#395454;color:#ffedb6;font-weight:600}.cl-suggestion{padding:9px;border:1px solid #c6a77577;border-radius:8px;margin-bottom:9px;background:#293f49}.cl-suggestion strong,.cl-suggestion small{display:block}.cl-suggestion strong{font-size:13px;line-height:1.4;color:#efdebc;margin:4px 0}.cl-suggestion small{font-size:11px;color:#ccd8dd}
.cl-actions{display:flex;flex-direction:column;gap:7px}.cl-actions button{font-size:13px;padding:8px;min-height:35px}.cl-actions form{display:flex;flex-direction:column;gap:7px}.cl-actions label{font-size:12px;margin:0}.cl-actions select{font-size:13px;padding:7px;width:100%;margin-top:3px}.cl-current-room{color:#e3d2ac;font-size:13px}.cl-actions p{margin:2px 0;font-size:12px;color:#ccdadd}.cl-accuse-button{background:#563740;color:#f3dce0;border-color:#986c75}.cl-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:12px}.cl-tools button{font-size:11px;padding:7px 4px;min-height:30px}.cl-message{font-size:11px;color:#abc1ca;line-height:1.35;margin:12px 0 0}.cl-guide{font-size:12px;color:#efdca5;line-height:1.4;padding:8px;background:#313f3f;border-radius:7px}
.cl-dice{display:flex;gap:5px;align-items:center}.cl-dice span{background:#eee8d8;border-radius:5px;font-size:20px;color:#263949;padding:2px 9px;font-weight:700}.cl-dice small{color:#d1dddd;font-size:12px}.cl-route{color:#a3e7f2!important}
.cl-hand{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.cl-card{width:110px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:10px 7px;border:3px solid var(--cl-card-colour);border-radius:9px;background:linear-gradient(145deg,#f3e9d3,#d7cbb0);color:#233b49;box-shadow:0 3px 9px #09172355;box-sizing:border-box;text-align:center}.cl-card small{text-transform:uppercase;font-size:10px;letter-spacing:1.5px;color:#48606a}.cl-card span{font-size:44px;color:var(--cl-card-colour);text-shadow:1px 2px 0 #172b3c88}.cl-card strong{font-size:13px;line-height:1.25}.cl-private-reveal{display:flex;flex-direction:column;align-items:center;gap:6px}.cl-private-reveal>small{color:#d5e4e3;font-size:11px}.cl-private-reveal .cl-card{animation:cl-evidence .5s ease both}.cl-match-cards{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.cl-match-cards button{padding:4px;display:flex;flex-direction:column;gap:5px;align-items:center}.cl-match-cards .cl-card{width:94px;min-height:115px;padding:5px}.cl-match-cards .cl-card span{font-size:25px}.cl-match-cards .cl-card strong{font-size:11px}.cl-case-solution{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.cl-case-solution>strong{width:100%}.cl-case-solution .cl-card{width:75px;min-height:110px;padding:5px}.cl-case-solution .cl-card span{font-size:22px}.cl-case-solution .cl-card strong{font-size:11px}
.cl-notebook-scroll{max-height:48dvh;overflow:auto;scrollbar-width:thin}.cl-notebook table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.cl-notebook th,.cl-notebook td{padding:4px;border-bottom:1px solid #738b8a44;text-align:left}.cl-notebook thead th{position:sticky;top:0;background:#213b43;z-index:1;max-width:100px;overflow:hidden;text-overflow:ellipsis}.cl-notebook td button{font-size:10px;padding:4px;min-height:27px;min-width:54px}.cl-notebook .cl-known{color:#9be0b9}.cl-notebook textarea{width:100%;box-sizing:border-box}.cl-notebook>p{font-size:12px;line-height:1.35}.cl-accusation-preview{line-height:1.8;color:#eddcb9}.cl-case-history{max-height:60dvh;overflow:auto}.cl-case-history p{padding:7px;border-bottom:1px solid #859e9944;font-size:13px}
.cl-animating .cl-actions,.cl-sending .cl-actions{opacity:.7;pointer-events:none}.cl-animating .cl-frame{cursor:progress}.cl-overlay:empty{display:none}
@keyframes cl-evidence{from{transform:perspective(600px) rotateY(90deg);opacity:0}to{transform:perspective(600px) rotateY(0);opacity:1}}
@media(max-width:1100px){.cl-layout{grid-template-columns:150px minmax(0,1fr) 210px;gap:7px}.cl-stage{padding:5px 8px}.cl-players .board-player{padding:5px;gap:4px}.cl-players .board-player .avatar,.cl-players .board-player .ember-avatar{width:35px!important;height:44px!important;flex-basis:35px}.cl-players strong{font-size:12px}.cl-players small{font-size:10px}.cl-camera small{display:none}}
@media(max-width:900px),(max-height:500px){.cl-screen .topbar{height:40px;min-height:40px;padding:3px 8px;box-sizing:border-box}.cl-screen .topbar .brand img{width:28px;height:28px}.cl-screen .topbar .brand{font-size:14px}.cl-screen .topbar .brand small{display:none}.cl-screen .topbar .pill,.cl-screen .topbar [data-action="rules"]{display:none}.cl-screen .topbar .turn-announcement{font-size:11px;padding:3px 7px}.cl-screen .topbar button{padding:4px 8px;min-height:28px}.cl-stage{height:calc(100dvh - 40px);padding:3px 5px}.cl-title{flex-basis:22px;padding:0 4px}.cl-title h1{font-size:15px}.cl-title h1 small{font-size:10px;margin-left:6px}.cl-edition{font-size:9px}.cl-layout{grid-template-columns:90px minmax(0,1fr) 174px;gap:4px}.cl-players,.cl-panel{padding:4px;border-radius:6px}.cl-players .board-player{display:block;padding:3px;min-height:0;border-left-width:3px;margin-bottom:4px}.cl-players .board-player>.avatar,.cl-players .board-player>.ember-avatar,.cl-players .board-player>.ava-avatar,.cl-players .board-player>.ghost-avatar,.cl-players .board-player>.clover-avatar{width:32px!important;height:34px!important;margin:0 auto;display:block}.cl-players strong{font-size:10px;line-height:1.2}.cl-players small{font-size:8px;line-height:1.2}.cl-room-label{font-size:8px;padding:2px 3px;border-radius:3px}.cl-camera{flex-basis:30px;gap:3px;padding:2px}.cl-camera button{font-size:9px;padding:3px 6px;min-height:25px}.cl-camera label{font-size:9px;gap:3px}.cl-camera input{width:55px}.cl-turn{font-size:11px;padding:6px;margin-bottom:5px}.cl-actions{gap:4px}.cl-actions button{font-size:10px;padding:5px;min-height:30px}.cl-actions form{gap:4px}.cl-actions label{font-size:9px}.cl-actions select{font-size:11px;padding:4px;margin-top:1px}.cl-actions p,.cl-current-room{font-size:10px}.cl-tools{gap:3px;margin-top:6px}.cl-tools button{font-size:9px;padding:4px 2px;min-height:27px}.cl-suggestion{padding:5px;margin-bottom:5px}.cl-suggestion strong{font-size:10px;margin:3px 0}.cl-suggestion small{font-size:9px}.cl-message{font-size:9px;margin-top:6px}.cl-guide{font-size:10px;padding:5px}.cl-dice span{font-size:16px;padding:0 6px}.cl-dice small{font-size:10px}.cl-private-reveal .cl-card{width:92px;min-height:115px;padding:5px}.cl-private-reveal .cl-card span{font-size:25px}.cl-private-reveal .cl-card strong{font-size:11px}.cl-private-reveal>small{font-size:9px}.cl-match-cards .cl-card{width:70px;min-height:100px}.cl-notebook table{font-size:10px}.cl-notebook-scroll{max-height:45dvh}}
@media(max-width:670px){.cl-layout{grid-template-columns:76px minmax(0,1fr) 156px}.cl-title h1 small{display:none}.cl-camera label{gap:2px}.cl-camera input{width:45px}.cl-camera button{padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.cl-private-reveal .cl-card{animation:none}}

.cl-players .ember-seat-avatar{width:48px!important;height:55px!important;flex:0 0 48px;min-width:0;overflow:hidden;display:block}.cl-players .ember-seat-avatar img{width:100%;height:100%;object-fit:contain}
@media(max-width:1100px){.cl-players .ember-seat-avatar{width:35px!important;height:44px!important;flex-basis:35px}}
@media(max-width:900px),(max-height:500px){.cl-players .ember-seat-avatar{width:32px!important;height:34px!important;margin:0 auto}}

.cl-stage{width:100%;flex:1;min-height:0}.cl-screen>.topbar{height:76px;min-height:0;flex:0 0 76px;box-sizing:border-box;padding:10px 20px}.cl-screen>.topbar .brand img{width:44px;height:44px}.cl-screen>.topbar button{min-height:38px}
@media(max-width:900px),(max-height:500px){.cl-screen>.topbar{height:40px;flex-basis:40px;padding:3px 8px}.cl-screen>.topbar .brand img{width:28px;height:28px}.cl-screen>.topbar button{min-height:28px}.cl-room-label{font-size:9px}}

.cl-replay-frame{height:330px;width:100%;min-width:0}.cl-replay-frame .cl-room-label{font-size:8px}@media(max-height:500px){.cl-replay-frame{height:180px}}

.cl-screen>.topbar{position:relative!important;inset:auto;display:flex;align-items:center;justify-content:space-between}.cl-screen>.topbar>.row{position:static;display:flex;gap:5px;align-items:center}.cl-screen .topbar .turn-announcement{position:static;inset:auto}.cl-screen .topbar select{font-size:11px;padding:4px;min-height:28px;height:30px;max-width:180px}.cl-screen .topbar>.row button{white-space:nowrap}

@media(max-width:900px),(max-height:500px){.cl-private-reveal .cl-card{min-height:91px;padding:4px}.cl-private-reveal .cl-card span{font-size:22px}.cl-camera button{min-width:26px;min-height:27px}}
