:root{--navy:#142d4c;--blue:#286a9b;--felt:#145f60;--felt-dark:#10484d;--paper:#f8faf7;--gold:#e6bb62;--red:#b73549;--muted:#58718a;--line:#d6e1e9;--bg:#edf3f7;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--navy);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:1px solid var(--line);border-radius:11px;background:white;color:var(--navy);padding:11px 17px;min-height:44px;font-weight:600;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.43;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{color:white;background:var(--blue);border-color:var(--blue)}.quiet{background:transparent;border-color:transparent;padding:8px 10px}.muted{color:var(--muted);font-size:13px;line-height:1.65}.fine{font-size:12px;line-height:1.6;color:var(--muted)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h2{font-size:20px}p{line-height:1.65}small{font-size:11px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em}.masthead{min-height:74px;padding:12px max(18px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;text-align:left;font-size:18px}.brand small{display:block;letter-spacing:.17em;font-size:8px;margin-top:3px}.cabin-mark{display:grid;place-items:center;width:39px;height:45px;color:white;background:var(--navy);border-radius:15px 15px 11px 11px;font-size:31px}.header-actions{display:flex;align-items:center;gap:3px}.header-actions>span{max-width:200px;font-size:11px;color:var(--muted)}main{max-width:1040px;margin:auto;padding:24px 22px calc(20px + env(safe-area-inset-bottom))}.notice{max-width:1000px;margin:12px auto 0;padding:13px 18px;color:#80401a;background:#fff0d7;border:1px solid #ead4a7;border-radius:12px;font-size:13px}.lobby{max-width:750px;margin:18px auto}.boarding{background:var(--navy);color:var(--paper);border-radius:25px;display:grid;grid-template-columns:1fr 150px;overflow:hidden;position:relative}.boarding-title{padding:35px 32px}.boarding h1{font-size:62px;line-height:1.03;letter-spacing:.02em;margin:21px 0 13px;font-weight:800}.boarding h1 span{font-size:27px;display:block;margin-top:10px;font-weight:500;letter-spacing:.23em}.boarding p{font-size:14px;color:#c8d9e8;margin:0}.boarding-emblem{align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-right:25px;transform:rotate(-9deg)}.boarding-emblem span{height:70px;display:grid;place-items:center;background:#f8faf7;color:var(--navy);font-family:Georgia,serif;font-size:41px;border-radius:8px}.boarding-emblem span:nth-child(2n){color:var(--red)}.boarding-strip{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 32px;border-top:1px dashed #6883a0;font-size:12px;color:#d9e6ef}.boarding-strip b{color:var(--gold)}.lobby-form{padding:27px 6px}label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}input,select{border:1px solid #bccddc;border-radius:10px;background:white;padding:12px;color:var(--navy);min-height:45px;width:100%}input{margin-bottom:20px}.field-row{display:flex;gap:14px;align-items:stretch}.field-row>*{flex:1;min-width:0}.field-row input{margin:0}.primary-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.primary-actions>button{flex:1}.peer-list{display:grid;gap:10px}.peer-list button{text-align:left}.room-bar{display:flex;justify-content:space-between;gap:16px;align-items:center}.room-heading{font-size:19px;margin:6px 0}.room-heading span{font-variant-numeric:tabular-nums;letter-spacing:.12em}.room-summary{margin-bottom:8px}.room-tools{display:flex;gap:6px}.room-tools button{font-size:12px;padding:8px 12px}.score-strip{position:relative;z-index:6;display:grid;grid-template-columns:1fr auto 1fr;background:white;border:1px solid var(--line);border-radius:15px;margin:12px 0 16px;padding:14px 22px;gap:15px}.team-score{display:grid;grid-template-columns:1fr auto;gap:3px 14px;align-items:center}.team-score small{grid-column:1}.team-score strong{grid-column:2;grid-row:1/3;font-size:29px;font-variant-numeric:tabular-nums}.team-score span{font-size:12px;color:var(--muted)}.team-b{text-align:right}.round-meta{text-align:center;display:grid;gap:3px;min-width:110px;font-size:11px}.round-meta b{font-size:20px}.felt-table{background:radial-gradient(ellipse at 50% 45%,#216f6a,var(--felt-dark));border:7px solid #d5e1e7;border-radius:42px;min-height:355px;position:relative;box-shadow:inset 0 0 0 1px #6b9193;overflow:hidden;color:white}.felt-table::after{content:"";position:absolute;inset:26px 45px;border:1px solid #88aaa229;border-radius:100px;pointer-events:none}.seats{position:absolute;inset:0;pointer-events:none}.seats button{pointer-events:auto}.seat{position:absolute;width:140px;padding:10px;border-radius:12px;background:#143e4599;border:1px solid #6b959859;z-index:2;text-align:center;font-size:12px}.seat.pos-0{bottom:12px;left:50%;transform:translateX(-50%)}.seat.pos-1{right:12px;top:50%;transform:translateY(-50%)}.seat.pos-2{top:12px;left:50%;transform:translateX(-50%)}.seat.pos-3{left:12px;top:50%;transform:translateY(-50%)}.seat.current{border-color:var(--gold);box-shadow:0 0 0 2px #e6bb6230}.seat.offline{opacity:.65}.seat-name{display:block;overflow-wrap:anywhere;line-height:1.35;font-weight:650}.seat-sub{display:block;font-size:10px;color:#c0d8d7;line-height:1.5;margin-top:4px}.seat-count{color:var(--gold);font-variant-numeric:tabular-nums}.seat button{padding:1px 7px;font-size:10px;min-height:25px;margin-top:5px;background:#eef7f1}.table-center{position:relative;max-width:440px;width:calc(100% - 330px);min-width:180px;margin:115px auto 105px;text-align:center;z-index:1}.table-center .eyebrow{color:#acd2d0}.table-center h2{font-size:23px;margin:7px 0}.table-center p{font-size:12px;color:#d3e6e2;margin:5px 0}.public-cards{display:flex;justify-content:center;flex-wrap:wrap;margin:12px 0}.public-cards .card{width:38px;height:58px;min-height:58px;margin-left:-7px;font-size:20px;padding:4px 5px;box-shadow:0 2px 3px #001d2a33;cursor:default}.public-cards .card:first-child{margin-left:0}.tribute-public{font-size:11px;color:#e9d399}.room-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:17px 0}.room-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:11px}.room-controls select{width:auto;font-size:12px}.inline-panel{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px;background:#fff4dc;border:1px solid #ddc68e;border-radius:13px;margin:12px 0;font-size:13px}.inline-panel p{margin:0}.hand-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px 18px 18px;margin-top:16px}.hand-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.hand-heading h2{font-size:16px;margin:0}.hand-heading h2 small{font-weight:400;color:var(--muted)}.hand-heading button{font-size:11px;padding:6px 8px;min-height:35px}.hand{padding:21px 0 3px;display:flex;justify-content:center;flex-wrap:wrap;touch-action:pan-y;gap:20px 0}.hand-row{display:flex;justify-content:center;width:100%;position:relative;min-height:92px}.card{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;position:relative;font-family:Georgia,"Times New Roman",serif;font-weight:bold;line-height:.93;font-size:28px;width:61px;height:89px;min-height:89px;flex-shrink:0;padding:8px 8px;border-radius:7px;border:1px solid #b7c6d0;background:var(--paper);color:var(--navy);box-shadow:0 2px 3px #16394d21;transition:transform .12s,border-color .12s;margin-left:-22px}.card:first-child{margin-left:0}.card span{display:block;font-size:.72em;margin-top:5px}.card.red{color:var(--red)}.card.wild::after{content:"配";position:absolute;font:700 9px sans-serif;right:4px;bottom:5px;color:#765118;background:#f3dba9;padding:3px;border-radius:3px}.card[aria-pressed=true]{transform:translateY(-13px);border-color:var(--blue);background:#edf7ff;box-shadow:0 0 0 2px #286a9b}.card.grouped{border-bottom:4px solid var(--gold)}.card:disabled{opacity:1}.interpretation{min-height:28px;text-align:center;font-size:12px;color:var(--muted);margin:10px 0}.play-controls{display:flex;justify-content:center;gap:10px;margin-top:12px}.play-controls button{min-width:78px}.play-controls .primary{min-width:120px}#pattern-label{text-align:center;font-weight:400;font-size:12px}#pattern-choice{width:auto;max-width:100%;margin-left:7px;font-size:12px}.result-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:15px;padding:22px;margin:15px 0}.result-card h2{margin:0 0 10px}.result-card p{font-size:13px;margin:5px 0}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 2px;font-size:11px;color:var(--muted)}.table-footer button{font-size:11px}.overlay{position:fixed;inset:0;background:#0b203d88;backdrop-filter:blur(3px);z-index:20;display:flex;justify-content:center;align-items:center;padding:20px}.sheet{background:#f8fafc;max-width:680px;width:100%;max-height:90dvh;overflow:auto;border-radius:22px;padding:30px;color:var(--navy)}.sheet-close{float:right}.sheet h2{clear:both;padding-top:17px;font-size:26px}.sheet h3{font-size:17px;margin-top:25px}.sheet p{font-size:13px;color:#345168}.history-record{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px;margin-bottom:12px}.history-record h3{margin-top:0}.history-record p{margin-bottom:5px}.history-record summary{cursor:pointer;font-size:14px;font-weight:700}#online-entry{margin-top:20px}
@media(max-width:650px){main{padding:16px 12px 24px}.masthead{padding:10px 14px;min-height:66px}.header-actions>span{display:none}.header-actions button{font-size:12px;padding:8px}.boarding{grid-template-columns:1fr 120px}.boarding-title{padding:29px 25px}.boarding h1{font-size:53px}.boarding-strip{padding:17px 25px;font-size:10px}.boarding-emblem{padding-right:20px;gap:8px}.boarding-emblem span{height:53px;font-size:33px}.room-bar{align-items:flex-start}.room-tools{flex-wrap:wrap;justify-content:flex-end;max-width:170px}.room-tools button{min-height:35px;font-size:10px;padding:7px}.score-strip{padding:11px 12px;gap:7px}.team-score{gap:3px}.team-score small{font-size:9px}.team-score strong{font-size:22px}.round-meta{min-width:70px}.round-meta b{font-size:17px}.felt-table{min-height:335px;border-width:5px;border-radius:30px}.seat{width:83px;font-size:11px;padding:8px 4px}.seat.pos-1{right:6px}.seat.pos-3{left:6px}.seat.pos-0{bottom:8px}.seat.pos-2{top:8px}.table-center{width:calc(100% - 186px);min-width:126px;margin:106px auto 94px}.table-center h2{font-size:18px}.table-center p{font-size:10px}.public-cards .card{width:30px;height:46px;min-height:46px;font-size:17px;padding:4px;letter-spacing:-1px}.room-controls{gap:7px}.room-controls>button{font-size:12px;padding:10px 12px}.hand-panel{padding:13px 9px;border-radius:16px}.hand-heading{justify-content:center}.hand-heading h2{margin-right:auto}.hand-heading button{font-size:10px;padding:5px}.hand-row{min-height:72px}.card{width:43px;height:70px;min-height:70px;font-size:23px;padding:6px 4px;margin-left:calc((100% - 43px)/13 - 43px)}.card span{font-size:.67em}.hand{gap:12px 0}.play-controls button{min-width:64px;padding:10px 14px}.play-controls .primary{min-width:91px}.table-footer{align-items:flex-start;flex-direction:column}.table-footer>div{align-self:flex-end}.sheet{padding:22px}.overlay{padding:10px}.field-row{gap:10px}.fine{font-size:11px}}
@media(max-width:370px){.card{width:39px;margin-left:calc((100% - 39px)/13 - 39px);font-size:21px}.boarding-title{padding:27px 20px}.boarding-strip{padding:15px 20px}.primary-actions{gap:8px}.primary-actions button{font-size:12px;padding:11px}.room-controls label{width:100%;justify-content:center}}
@media(orientation:landscape) and (max-height:550px){.masthead{min-height:53px;padding:6px 18px}main{padding-top:12px}.felt-table{min-height:245px}.table-center{margin-top:85px;margin-bottom:70px}.seat{padding:5px}.score-strip{margin:7px 0;padding:8px 16px}.hand-panel{margin-top:8px}.room-controls{padding:8px 0}.hand-row{width:auto}.hand{gap:0}.card{width:45px;height:70px;min-height:70px;font-size:22px;margin-left:-22px}.hand-row+.hand-row{margin-left:7px}.seat.pos-0{bottom:5px}.seat.pos-2{top:5px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.deal-flight{position:fixed;z-index:10;display:grid;place-items:center;width:34px;height:49px;border:3px solid #f8faf7;border-radius:5px;background:repeating-linear-gradient(45deg,#286a9b,#286a9b 3px,#245b84 3px,#245b84 6px);color:#e6bb62;font:700 13px Georgia,serif;pointer-events:none;box-shadow:0 2px 8px #0c253d44}.skip-animation{position:absolute;right:10px;bottom:10px;z-index:5;font-size:10px;padding:5px 9px;min-height:30px;background:#f8faf7e6}
.card .card-rank{font-size:1em;line-height:1;margin:0;letter-spacing:-1px}.card.ten .card-rank{font-size:.79em;letter-spacing:-1.8px}.card.joker .card-rank{font-family:-apple-system,"PingFang SC",sans-serif;font-size:12px;writing-mode:vertical-rl;letter-spacing:1px;line-height:1.2}.card.wild::after{left:3px;right:auto}
.more-actions{display:flex;flex-wrap:wrap;gap:12px}
.training-consent{display:flex;align-items:center;gap:10px;min-height:48px}.training-consent input{width:22px;height:22px;min-height:22px;margin:0}.training-record{padding:12px 0;border-bottom:1px solid #172f4220}.training-record select{display:block;width:100%;margin-top:6px}#training-json{display:block;width:100%;margin:10px 0;padding:10px;font:12px monospace;resize:vertical}#training-json-panel{margin-top:18px}
@media(max-width:650px){
 .at-table .masthead{min-height:46px;padding:4px 13px;height:46px}.at-table .brand{font-size:14px;gap:8px}.at-table .brand small{font-size:7px}.at-table .cabin-mark{width:29px;height:33px;font-size:26px;border-radius:11px}.at-table .header-actions button{min-height:38px}.at-table main{padding:7px 10px 10px}.at-table .room-bar{min-height:43px;align-items:center}.at-table .room-bar>div>.eyebrow{display:none}.at-table .room-heading{font-size:15px;margin:0 0 3px}.at-table #room-summary{font-size:9px;margin:0;line-height:1.25;max-width:205px}.at-table .room-tools{flex-wrap:nowrap;max-width:none;gap:2px}.at-table .room-tools button{font-size:10px;padding:5px 8px;min-height:38px}.at-table .score-strip{padding:7px 12px;margin:6px 0 8px;min-height:55px;border-radius:12px}.at-table .team-score strong{font-size:23px}.at-table .team-score span{font-size:10px}.at-table .round-meta{gap:0;min-width:80px;font-size:9px}.at-table .round-meta b{font-size:16px}.at-table .round-meta small{font-size:9px}.at-table .felt-table{height:214px;min-height:214px;border-width:4px;border-radius:26px}.at-table .felt-table::after{inset:14px 28px}.at-table .seat{width:78px;padding:6px 4px;border-radius:10px;font-size:10px}.at-table .seat-sub{font-size:9px;line-height:1.35;margin-top:2px}.at-table .seat.pos-0,.at-table .seat.pos-2{width:154px;padding:4px 6px}.at-table .seat.pos-0{bottom:5px}.at-table .seat.pos-2{top:5px}.at-table .seat.pos-0 .seat-sub,.at-table .seat.pos-2 .seat-sub{display:inline-block;margin:2px 3px 0}.at-table .seat.pos-0 .seat-sub:last-child{display:none}.at-table .table-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:calc(100% - 182px);min-width:119px}.at-table .table-center h2{font-size:17px;line-height:1.15;margin:5px 0}.at-table .table-center p{line-height:1.35;margin:4px 0;font-size:10px}.at-table .table-center .eyebrow{font-size:9px}.at-table .public-cards{margin:6px 0}.at-table .public-cards .card{width:28px;height:39px;min-height:39px;padding:3px;font-size:16px}.at-table .public-pattern{font-size:9px}.at-table .hand-panel{margin-top:9px;padding:8px 9px 11px;border-radius:14px}.at-table .hand-heading{min-height:28px;gap:0;flex-wrap:nowrap}.at-table .hand-heading h2{font-size:13px;white-space:nowrap}.at-table .hand-heading h2 small{font-size:9px}.at-table .hand-heading>div{display:flex}.at-table .hand-heading button{font-size:9px;min-height:32px;padding:4px 5px}.at-table .hand{padding:17px 0 0;gap:12px 0}.at-table .hand-row{min-height:64px}.at-table .hand .card{height:64px;min-height:64px;font-size:22px;padding-top:5px}.at-table .interpretation{font-size:10px;min-height:20px;margin:7px 0 0;line-height:1.4}.at-table .play-controls{margin-top:5px;gap:9px}.at-table .play-controls button{min-height:44px}.at-table #pattern-label{font-size:10px;margin:3px 0}.at-table #pattern-choice{padding:5px;min-height:33px;font-size:11px;max-width:240px}.at-table .inline-panel{padding:9px;margin:6px 0;font-size:11px}.at-table .inline-panel button{padding:6px 12px;min-height:38px}
}
.danger{color:white;background:var(--red);border-color:var(--red)}
@media(orientation:landscape) and (max-height:550px){
 .at-table .masthead{height:42px;min-height:42px;padding:3px 14px}.at-table .brand{font-size:13px}.at-table .cabin-mark{height:30px;width:28px;font-size:24px}.at-table .brand small{font-size:7px}.at-table main{padding:4px 10px 8px}.at-table #table-screen{display:grid;grid-template-columns:43% minmax(0,57%);column-gap:10px;grid-template-rows:auto auto 1fr}.at-table .room-bar{grid-column:1/-1;min-height:33px;align-items:center}.at-table .room-bar>div>.eyebrow{display:none}.at-table .room-heading{display:inline-block;font-size:14px;margin:0 10px 0 0}.at-table #room-summary{display:inline-block;font-size:9px;margin:0}.at-table .room-tools button{padding:4px 8px;min-height:30px;font-size:10px}.at-table .score-strip{grid-column:1;grid-row:2;margin:4px 0 5px;padding:5px 8px;min-height:47px;gap:4px}.at-table .team-score strong{font-size:20px}.at-table .team-score small{font-size:8px}.at-table .team-score span{font-size:9px}.at-table .round-meta{min-width:68px;font-size:8px;gap:0}.at-table .round-meta b{font-size:14px}.at-table .round-meta small{font-size:8px}.at-table .felt-table{grid-column:1;grid-row:3;height:164px;min-height:164px;border-width:4px}.at-table .seat{font-size:9px;width:71px;padding:4px 3px}.at-table .seat-sub{font-size:8px;margin-top:1px;line-height:1.25}.at-table .seat.pos-0,.at-table .seat.pos-2{width:135px}.at-table .seat.pos-0 .seat-sub,.at-table .seat.pos-2 .seat-sub{display:inline-block;margin:2px}.at-table .seat.pos-0 .seat-sub:last-child{display:none}.at-table .table-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 165px);min-width:105px;margin:0}.at-table .table-center h2{font-size:15px;margin:3px 0}.at-table .table-center p{font-size:9px;line-height:1.25;margin:3px 0}.at-table .table-center .eyebrow{font-size:8px}.at-table .public-cards{margin:5px 0}.at-table .public-cards .card{height:35px;min-height:35px;width:25px;font-size:14px;padding:3px}.at-table .hand-panel{grid-column:2;grid-row:2/4;align-self:stretch;margin:4px 0 0;padding:7px 9px}.at-table .hand-heading{flex-wrap:nowrap;gap:3px;min-height:29px}.at-table .hand-heading h2{font-size:12px;white-space:nowrap}.at-table .hand-heading h2 small{font-size:8px}.at-table .hand-heading>div{display:flex}.at-table .hand-heading button{padding:3px 4px;font-size:8px;min-height:29px}.at-table .hand{gap:8px 0;padding:12px 0 0}.at-table .hand-row{width:100%;min-height:52px}.at-table .hand-row+.hand-row{margin-left:0}.at-table .hand .card{height:52px;min-height:52px;width:40px;font-size:21px;padding:5px 4px;margin-left:calc((100% - 40px)/13 - 40px)}.at-table .hand .card:first-child{margin-left:0}.at-table .interpretation{font-size:9px;min-height:13px;margin:3px 0}.at-table .play-controls{margin-top:5px;gap:7px}.at-table .play-controls button{min-height:42px;font-size:12px;min-width:65px;padding:8px 12px}.at-table .play-controls .primary{min-width:90px}.at-table #pattern-label{font-size:9px;margin:3px 0}.at-table #pattern-choice{font-size:10px;min-height:27px;padding:3px}.at-table #vote-panel,.at-table #swap-panel,.at-table #waiting-controls{grid-column:1/-1}.at-table .more-actions{display:flex}
}

/* One shared Guandan table: portrait controls stay beside the player's hand. */
.game-table{display:contents}
.hand-tools{display:flex;gap:2px}
.hand-heading button{min-height:44px}
.hand .card.tribute-unavailable{opacity:.38}
.hand .card.tribute-legal{border-color:#286a9b;box-shadow:0 0 0 1px #286a9b}
.hand .card[aria-pressed=true]{transform:translateY(-10px);border-color:#286a9b;box-shadow:0 0 0 2px #286a9b}
.hand .card:focus-visible{outline:3px solid #e6bb62;outline-offset:1px;z-index:3}
.hand .card:disabled{cursor:default}
@media(max-width:650px) and (orientation:portrait){
 .at-table .masthead{height:40px;min-height:40px;padding:2px 12px}
 .at-table .header-actions button{min-height:36px;padding:4px 8px}
 .at-table main{padding:6px 10px}
 .at-table .room-bar{min-height:36px;gap:6px}
 .at-table .room-heading{font-size:14px;line-height:1.2}
 .at-table .room-tools button{min-height:44px;font-size:11px;padding:6px 9px}
 .at-table .score-strip{min-height:46px;margin:4px 0 6px;padding:6px 10px}
 .at-table .felt-table{height:clamp(140px,calc(100dvh - 540px),195px);min-height:140px;border-radius:23px}
 .at-table .seat.pos-0,.at-table .seat.pos-2{width:146px;padding:3px 6px}
 .at-table .seat.pos-0{bottom:4px}.at-table .seat.pos-2{top:4px}
 .at-table .seat-sub{line-height:1.25}
 .at-table .table-center{width:calc(100% - 168px);min-width:120px}
 .at-table .table-center h2{font-size:15px;margin:4px 0}
 .at-table .table-center p{font-size:10px;line-height:1.3;margin:3px 0}
 .at-table .table-center #turn-detail{max-height:39px;overflow:auto}
 .at-table .public-cards{margin:5px 0}
 .at-table .public-cards .card{width:27px;height:37px;min-height:37px;font-size:16px}
 .at-table .hand-panel{margin-top:7px;padding:4px 8px 8px}
 .at-table .hand-heading{min-height:44px;gap:3px;justify-content:space-between}
 .at-table .hand-heading h2{font-size:12px;margin:0;white-space:nowrap}
 .at-table .hand-heading h2 small{font-size:10px}
 .at-table .hand-heading>div{display:flex;gap:0}
 .at-table .hand-heading button{min-height:44px;padding:5px 7px;font-size:11px;white-space:nowrap}
 .at-table .hand{padding:12px 0 0;gap:12px 0;overflow:visible;touch-action:pan-y}
 .at-table .hand-row{min-height:60px}
 .at-table .hand .card{height:60px;min-height:60px;width:43px;padding:4px;font-size:23px;margin-left:calc((100% - 43px)/13 - 43px)}
 .at-table .hand .card:first-child{margin-left:0}
 .at-table .hand .card[aria-pressed=true]{transform:translateY(-9px)}
 .at-table .interpretation{font-size:11px;min-height:25px;margin:4px 0 0;line-height:1.4}
 .at-table .play-controls{margin-top:3px;gap:8px}
 .at-table .play-controls button{min-height:46px;min-width:0;flex:1;padding:9px 8px;font-size:15px}
 .at-table .play-controls .primary{flex:1.4;font-weight:750}
 .at-table #pattern-label{margin:4px 0;font-size:11px}
 .at-table #pattern-choice{min-height:44px;max-width:230px}
 .at-table #waiting-controls:has(>button:not([hidden])){padding:10px 0}
}

.card .level-badge{position:absolute;left:3px;bottom:3px;font:700 9px/1 sans-serif;margin:0;padding:2px;color:#6b4918;background:#f3dba9;border-radius:3px}
@media(max-width:650px) and (orientation:portrait){
 .at-table .felt-table{min-height:170px}
 .at-table .public-cards{flex-wrap:nowrap}
 .at-table .public-cards .card{margin-left:-12px}
 .at-table .public-cards .card:first-child{margin-left:0}
 .at-table .felt-table[data-phase="playing"]:has(#public-cards:not(:empty)) #phase-label,
 .at-table .felt-table[data-phase="playing"]:has(#public-cards:not(:empty)) #turn-detail{display:none}
}

@media(max-width:650px) and (orientation:portrait){
 .at-table .felt-table{height:clamp(208px,calc(100dvh - 490px),215px);min-height:208px}
 .at-table .hand-row{min-height:68px}
 .at-table .hand .card{height:68px;min-height:68px}
}
@media(orientation:landscape) and (max-height:550px){
 .at-table .hand-heading button,.at-table .play-controls button{min-height:44px}
}

.ai-seat{border-style:dashed}.ai-seat .seat-name{color:#efdda3}.ai-seat-control{min-height:36px;padding:5px 9px;font-size:12px}.record-mode{color:var(--muted);font-size:12px}

.trick-layer{position:absolute;inset:0;z-index:1;pointer-events:none}
.trick-play{position:absolute;display:grid;justify-items:center;max-width:170px;transition:opacity .12s,filter .12s}
.trick-owner{max-width:88px;margin-bottom:2px;padding:1px 6px;border-radius:8px;background:#0d3a3dbd;color:#dcecea;font-size:9px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trick-play .public-cards{margin:0;flex-wrap:nowrap}
.trick-play.is-earlier{opacity:.52;filter:saturate(.65)}
.trick-layer .trick-play[data-seat-passed]{visibility:hidden;pointer-events:none}
.trick-play[data-winning-play]{z-index:2;opacity:1;filter:none}
.trick-play[data-winning-play] .trick-cards{filter:drop-shadow(0 0 5px #e6bb62b8)}
.trick-play.trick-pos-0{left:50%;bottom:70px;transform:translateX(calc(-50% + var(--seat-stack,0px)))}
.trick-play.trick-pos-1{right:102px;top:50%;transform:translateY(calc(-50% + var(--seat-stack,0px)))}
.trick-play.trick-pos-2{left:50%;top:66px;transform:translateX(calc(-50% + var(--seat-stack,0px)))}
.trick-play.trick-pos-3{left:102px;top:50%;transform:translateY(calc(-50% + var(--seat-stack,0px)))}
.trick-pass-marker{position:absolute;z-index:2;padding:2px 7px;border:1px solid #bad4ce70;border-radius:9px;background:#0c3b3ecc;color:#d9e7e4;font-size:10px;line-height:1.25}
.trick-pass-marker.trick-pos-0{left:calc(50% + 82px);bottom:23px}.trick-pass-marker.trick-pos-1{right:23px;top:calc(50% + 49px)}
.trick-pass-marker.trick-pos-2{left:calc(50% + 82px);top:23px}.trick-pass-marker.trick-pos-3{left:23px;top:calc(50% + 49px)}
.trick-empty-anchor{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}
.trick-collection-copy{z-index:6}
@media(max-width:650px){
 .trick-play{max-width:104px}.trick-owner{max-width:62px;font-size:8px}
 .trick-play.trick-pos-0{bottom:49px}.trick-play.trick-pos-2{top:45px}
 .trick-play.trick-pos-1{right:61px}.trick-play.trick-pos-3{left:61px}
 .trick-pass-marker.trick-pos-0{left:calc(50% + 48px);bottom:14px}.trick-pass-marker.trick-pos-1{right:8px;top:calc(50% + 36px)}
 .trick-pass-marker.trick-pos-2{left:calc(50% + 48px);top:14px}.trick-pass-marker.trick-pos-3{left:8px;top:calc(50% + 36px)}
}

/* One shared portrait action rail. Slots never move when tribute replaces play. */
.table-navigation{display:none}
.play-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.play-controls>button,.play-controls .submit-slot>button{width:100%;min-width:0;min-height:46px;margin:0;padding:8px 4px}
.play-controls .submit-slot{min-width:0}.play-controls .submit-slot>button{height:100%}
.hand-heading .hand-tools{display:flex;gap:4px;align-items:center;flex-wrap:nowrap}
.hand-tools button{min-width:44px;min-height:44px;padding:5px;font-size:12px;white-space:nowrap}
.hand-heading h2{white-space:nowrap}.hand-heading h2 small{display:block}
.hand-row .card[data-hand-group]{border-bottom:3px solid #628b9a}
.hand-row .card[data-group-kind="custom"]{border-bottom-color:#9a7434}
.hand-row .card[data-group-start]{border-left:3px solid #628b9a}
.hand-row .card[data-group-end]{border-right:3px solid #628b9a}
.hand-row .card[data-group-kind="custom"][data-group-start]{border-left-color:#9a7434}
.hand-row .card[data-group-kind="custom"][data-group-end]{border-right-color:#9a7434}
.hand-row .card[data-group-start]::before{content:attr(data-group-label);position:absolute;top:-13px;left:-2px;color:#375561;background:#e7f0ef;border-radius:3px;font:9px/12px sans-serif;white-space:nowrap;padding:0 2px;pointer-events:none}
.hand-row .card[data-group-kind="custom"][data-group-start]::before{color:#76571e;background:#faf0d4}
.playing-table>.masthead,.playing-table .room-bar{display:none}
.playing-table .score-strip{grid-template-columns:44px minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) 44px;gap:3px}
.playing-table .table-navigation{display:block;min-width:44px;min-height:44px;padding:5px;font-size:12px}
.playing-table #table-back{font-size:28px}
.playing-table .team-score{padding:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:0}
.playing-table .team-score small{font-size:0}.playing-table .team-score small::first-letter{font-size:11px}
.playing-table .team-score strong{font-size:21px;line-height:23px}.playing-table .team-score>span{display:none}
.playing-table .round-meta{gap:1px}.playing-table .round-meta>span{font-size:10px}.playing-table .round-meta>b{font-size:16px}.playing-table .round-meta>small{display:none}
.playing-table #notice{position:fixed;z-index:40;top:58px;left:12px;right:12px;pointer-events:none}
@media(max-width:650px){
 body.playing-table{height:100dvh}
 .playing-table main{height:100dvh;padding:calc(4px + env(safe-area-inset-top)) 10px calc(6px + env(safe-area-inset-bottom));box-sizing:border-box}
 .playing-table #table-screen{height:100%;display:flex;flex-direction:column;min-height:0}
 .playing-table .score-strip{height:54px;min-height:54px;margin:0 0 4px;flex-shrink:0}
 .playing-table,.result-table{--table-felt-height:max(208px,calc(100dvh - 375px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
 .playing-table .felt-table{height:var(--table-felt-height);min-height:208px;flex:0 0 auto;margin:0;border-width:5px;border-radius:28px}
 .playing-table .hand-panel{height:301px;flex:0 0 301px;margin:6px 0 0;padding:0 6px 6px;min-height:0}
 .playing-table .hand-heading{min-height:44px;height:44px;margin:0;gap:4px}
 .playing-table .hand-heading h2{font-size:11px;line-height:14px;margin:0}
 .playing-table .hand-heading h2 small{font-size:10px}
 .playing-table .hand-heading button{font-size:11px;min-height:44px;min-width:44px;padding:4px}
 /* Reserve both rows even after the hand shrinks, so table and seats stay put. */
 .playing-table .hand{height:173px;padding:18px 0 3px;gap:16px;align-content:flex-start}
 .playing-table .hand-row{min-height:68px}
 .playing-table .hand-row .card{height:68px;width:43px;margin-left:calc((100% - 43px)/13 - 43px)}
 .playing-table .hand-row .card:first-child{margin-left:0}
 .playing-table .interpretation{height:24px;min-height:24px;margin:3px 0 0;font-size:11px;line-height:12px;display:flex;align-items:center;overflow:auto}
 .playing-table #pattern-label{position:absolute;left:16px;right:16px;bottom:calc(59px + env(safe-area-inset-bottom));z-index:6;background:#f5f8f6;border:1px solid #b5c7c1;border-radius:8px;padding:3px 8px;font-size:11px;display:flex;align-items:center;gap:6px}
 .playing-table #pattern-choice{flex:1;min-width:0;max-width:none;min-height:44px;margin:0}
 .playing-table .play-controls{margin:3px 0 0;gap:6px;flex-shrink:0}
 .playing-table .play-controls>button,.playing-table .play-controls .submit-slot>button{font-size:15px;height:46px;min-width:0;min-height:46px;padding:6px 2px}
 .playing-table .seat.pos-0{visibility:hidden}
 .playing-table #vote-panel,.playing-table #swap-panel,.playing-table #practice-save-panel{position:fixed;z-index:10;left:12px;right:12px;bottom:calc(66px + env(safe-area-inset-bottom));background:#f5f8f6;box-shadow:0 4px 20px #163b3930}
 .playing-table .trick-play.trick-pos-0{bottom:34px}
}

/* The friend lobby uses the table's felt and a small fan of four cards as its
   identity. Scope every rule to the lobby so playing and settlement stay fixed. */
.friends-app.lobby-active{background:radial-gradient(ellipse at 60% 0,#176951 0,#0b3d32 65%);color:#fff6df;min-height:100dvh}
.friends-app.lobby-active>.masthead{max-width:750px;margin:auto;background:transparent;border:0;min-height:68px;padding:12px 20px;color:#fff6df}
.friends-app.lobby-active .brand,.friends-app.lobby-active .masthead .quiet{color:#fff6df}
.friends-app.lobby-active .cabin-mark{background:#fff6df;color:#0b3d32;width:36px;height:40px;border-radius:13px;font-family:Georgia,serif}
.friends-app.lobby-active .brand{font-size:19px}.friends-app.lobby-active .brand small{color:#bed5c8}
.friends-app.lobby-active .header-actions{gap:0}.friends-app.lobby-active #connection{display:none}
.friends-app.lobby-active .masthead .quiet{padding:8px;min-width:44px;font-size:13px}
.friends-app.lobby-active main{max-width:750px;padding:0 20px calc(16px + env(safe-area-inset-bottom))}
.friends-app .lobby{margin:0 auto;max-width:620px}
.friends-app .lobby .boarding{border-radius:0;background:transparent;grid-template-columns:1fr 115px;min-height:138px;overflow:visible}
.friends-app .lobby .boarding-title{padding:14px 0 20px}
.friends-app .lobby .boarding .eyebrow{font-size:11px;letter-spacing:.08em;color:#e6bb69}
.friends-app .lobby .boarding h1{font-family:"Songti SC","STSong",serif;font-size:44px;font-weight:800;line-height:1.1;margin:9px 0 0;letter-spacing:.04em}
.friends-app .lobby .boarding h1 span{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:14px;font-weight:400;letter-spacing:0;line-height:1.6;margin-top:9px;color:#d1e3d7}
.friends-app .lobby .boarding-emblem{display:block;height:110px;width:115px;position:relative;transform:none;padding:0;align-self:center}
.friends-app .lobby .boarding-emblem span{position:absolute;width:43px;height:64px;left:35px;top:26px;display:grid;place-items:center;border-radius:6px;border:1px solid #e5ddc8;background:#fff6df;font-family:Georgia,serif;font-size:29px;color:#173e33;box-shadow:0 3px 8px #00271938;transform-origin:center 120%}
.friends-app .lobby .boarding-emblem span:nth-child(1){transform:rotate(-32deg)}
.friends-app .lobby .boarding-emblem span:nth-child(2){transform:rotate(-11deg);color:#bd3b43}
.friends-app .lobby .boarding-emblem span:nth-child(3){transform:rotate(11deg)}
.friends-app .lobby .boarding-emblem span:nth-child(4){transform:rotate(32deg);color:#bd3b43}
.friends-app .lobby-role{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.friends-app .lobby-role button{padding:16px 8px;border:1px solid #cce4d93b;background:#174f40;color:#fff6df;text-align:center;border-radius:15px;min-height:80px}
.friends-app .lobby-role b{font-size:17px;display:block}.friends-app .lobby-role small{font-size:11px;display:block;margin-top:5px;opacity:.75;font-weight:400}
.friends-app .lobby-role button[aria-pressed=true]{background:#e6bb69;border-color:#f3d599;color:#41321a;box-shadow:inset 0 1px #fff8d87a}
.friends-app .lobby-form{background:#fff6df;padding:20px;border:1px solid #f8ebcb;border-radius:20px;color:#173e33;box-shadow:0 8px 24px #00271c26}
.friends-app .lobby-context-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.friends-app #lobby-context{font-size:19px;margin:0;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.friends-app #lobby-mode-badge{white-space:nowrap;font-size:10px;color:#527064;padding:5px 8px;border-radius:20px;background:#e6ecdc}
.friends-app .lobby-form #mode-help{font-size:12px;line-height:1.55;color:#577465;margin:0 0 18px}
.friends-app .lobby-form label{font-size:12px;color:#456253;margin:0 0 7px}
.friends-app .lobby-form input,.friends-app .lobby-form select{background:#fffdf6;color:#173e33;border-color:#d8dec9;border-radius:10px;font-size:16px;min-height:48px;padding:11px 12px;margin:0}
.friends-app .lobby-form input[aria-invalid=true]{border-color:#bd3b43;box-shadow:0 0 0 1px #bd3b43}
.friends-app #nickname-help{font-size:11px;color:#70806a;margin:6px 0 15px}
.friends-app #room-options,.friends-app #online-entry{margin:0 0 15px}
.friends-app .lobby-form .primary-actions{display:flex;margin:16px 0 6px;gap:8px}
.friends-app .lobby-form .primary-actions button{width:100%;min-height:50px;border-radius:12px;background:#146350;color:#fff6df;border-color:#146350;font-size:17px;padding:10px;font-weight:700}
.friends-app .lobby-details{border-top:1px solid #dde1cc;margin-top:13px;padding-top:5px;font-size:12px}
.friends-app .lobby-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:#5a7262;list-style:none;touch-action:manipulation}
.friends-app .lobby-details summary::after{content:'⌄';margin-left:auto;font-size:18px;transition:transform .15s}
.friends-app .lobby-details[open] summary::after{transform:rotate(180deg)}
.friends-app .lobby-details summary:focus-visible{outline:3px solid #e6bb69;outline-offset:1px;border-radius:5px}
.friends-app .lobby-details .fine{color:#637762;margin:10px 0 0}
.friends-app .lobby-practice{display:flex;align-items:center;gap:13px;text-decoration:none;border:1px solid #afd4be42;background:#155340;color:#fff6df;border-radius:17px;padding:16px;margin-top:13px;min-height:83px;touch-action:manipulation}
.friends-app .practice-mark{display:grid;place-items:center;background:#fff6df;color:#146350;font-family:Georgia,serif;font-size:29px;border-radius:10px;width:40px;height:48px;flex:none}
.friends-app .lobby-practice b{display:block;font-size:17px}.friends-app .lobby-practice small{display:block;margin-top:5px;font-size:11px;color:#c6dbcf}
.friends-app .entry-arrow{margin-left:auto;font-size:30px;color:#e6bb69;font-weight:400;line-height:1}
.friends-app .lobby-practice:focus-visible{outline:3px solid #e6bb69;outline-offset:3px}
.friends-app .lobby .account-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px;margin:12px 0 0;background:transparent;border:0;border-radius:0;color:#c6dbcf}
.friends-app .lobby .account-entry p{font-size:10px;color:#c6dbcf;margin:0;line-height:1.5;flex:1}
.friends-app .lobby .account-entry button{background:transparent;color:#fff6df;border-color:#acd0ba50;min-height:44px;padding:8px 10px;font-size:12px;white-space:nowrap}
.friends-app .lobby .legal-entry{display:flex;justify-content:center;gap:12px;margin:0;padding:0;border:0}
.friends-app .lobby .legal-entry button{color:#b8d1c2;font-size:10px;padding:8px 5px;min-width:44px;min-height:44px;background:transparent;border:0}
.friends-app #discovery{color:#fff6df;margin-top:18px}.friends-app #discovery .muted{color:#c6dbcf}
@media(max-width:360px){.friends-app.lobby-active main{padding-left:14px;padding-right:14px}.friends-app .lobby-form{padding:16px}.friends-app .lobby .boarding{min-height:125px}.friends-app .lobby .boarding h1{font-size:40px}.friends-app #lobby-context{font-size:17px}.friends-app .lobby-role b{font-size:15px}}
@media(min-width:680px){.friends-app.lobby-active>.masthead{padding-top:20px;min-height:88px}.friends-app .lobby .boarding{min-height:150px}.friends-app .lobby-form{padding:25px}}
@media(prefers-reduced-motion:reduce){.friends-app .lobby-details summary::after{transition:none}}

.playing-table .interpretation:empty{visibility:hidden}

/* A completed deal is still part of the table. Keep its authoritative result
   over the felt, with the next-deal controls immediately below on phones. */
.felt-table[data-phase="roundOver"] .table-center,.felt-table[data-phase="roundOver"]>#trick-layer,
.felt-table[data-phase="matchOver"] .table-center,.felt-table[data-phase="matchOver"]>#trick-layer,
.felt-table[data-phase="closed"] .table-center,.felt-table[data-phase="closed"]>#trick-layer{display:none}
.felt-table>.table-result{position:absolute;z-index:5;left:max(58px,12%);right:max(58px,12%);top:50%;bottom:auto;max-height:calc(100% - 48px);transform:translateY(-50%);margin:0;padding:18px 20px;overflow:auto;color:var(--navy);background:#f8faf7;border-top-width:4px;box-shadow:0 8px 24px #082f3540}
.felt-table>.table-result h2{font-size:20px}.felt-table>.table-result h3{font-size:16px;margin:5px 0 8px}.felt-table>.table-result p{font-size:12px;line-height:1.45;margin:4px 0}
.felt-table>.table-result .history-record{margin:0;padding:0;border:0;background:transparent}
/* Settlement content stays readable while decorative entry/collection effects
   finish. Keep collecting cards below it without covering confirmation panels. */
.felt-table>.table-result{opacity:1!important}
.result-table .trick-collection-copy{z-index:3}
@media(max-width:650px){
 body.result-table{height:100dvh;overflow:hidden}
 .result-table>.masthead,.result-table .room-bar{display:none}
 .result-table main{height:100dvh;padding:calc(4px + env(safe-area-inset-top)) 10px calc(6px + env(safe-area-inset-bottom));box-sizing:border-box}
 .result-table #table-screen{height:100%;display:flex;flex-direction:column;min-height:0}
 .result-table #hand-panel{display:none!important}
 .result-table .table-navigation{display:block;min-width:44px;min-height:44px;padding:5px;font-size:12px}
 .result-table #table-back{font-size:28px}
 .result-table .score-strip{grid-template-columns:44px minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) 44px;gap:3px;height:54px;min-height:54px;margin:0 0 4px;padding:5px 8px;flex-shrink:0}
 .result-table .team-score{padding:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:0}
 .result-table .team-score small{font-size:0}.result-table .team-score small::first-letter{font-size:11px}
 .result-table .team-score strong{font-size:21px;line-height:23px}.result-table .team-score>span{display:none}
 .result-table .round-meta{gap:1px;min-width:0}.result-table .round-meta>span{font-size:10px}.result-table .round-meta>b{font-size:16px}.result-table .round-meta>small{display:none}
 .result-table .felt-table{height:var(--table-felt-height);min-height:208px;flex:0 0 auto;margin:0;border-width:5px;border-radius:28px}
 .result-table .felt-table>.table-result{left:14px;right:14px;top:50%;bottom:auto;max-height:calc(100% - 36px);padding:14px 15px;border-radius:14px}
 .result-table .felt-table>.table-result h2{font-size:18px;margin-bottom:7px}.result-table .felt-table>.table-result h3{font-size:15px}.result-table .felt-table>.table-result p{font-size:11px;line-height:1.35}
 .result-table #waiting-controls,.result-table #practice-next{flex:0 0 auto;min-height:54px;margin:auto 0 0;padding:0;gap:7px}
 .result-table #waiting-controls button,.result-table #practice-next button{min-height:46px;padding:8px 14px}
 .result-table #waiting-controls label{margin:0}
}

/* The public clock updates its own text without relaying out the table. */
.turn-clock{--clock-accent:#f1cc79;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;display:flex;align-items:center;justify-content:center;gap:4px;width:68px;min-width:68px;height:24px;box-sizing:border-box;padding:0;border:1px solid var(--clock-accent);border-radius:24px;background:#083c32f5;color:#fff1d0;box-shadow:0 0 0 2px #073b3280,0 0 10px #f1cc7928;pointer-events:none;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.turn-clock-person{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.turn-clock-arrow{width:16px;font-size:17px;font-weight:800;line-height:20px;color:var(--clock-accent);text-align:center}
.turn-clock-seconds{display:flex;align-items:baseline;justify-content:center;gap:1px;min-width:0;font-size:20px;line-height:22px;letter-spacing:0}.turn-clock-unit{font-size:8px;line-height:10px;font-weight:500}
.turn-clock::after{content:'';position:absolute;width:0;height:0;border:3px solid transparent}
.turn-clock[data-direction="0"]::after{top:100%;left:50%;margin-left:-3px;border-top-color:var(--clock-accent);border-bottom-width:0}
.turn-clock[data-direction="1"]::after{left:100%;top:50%;margin-top:-3px;border-left-color:var(--clock-accent);border-right-width:0}
.turn-clock[data-direction="2"]::after{bottom:100%;left:50%;margin-left:-3px;border-bottom-color:var(--clock-accent);border-top-width:0}
.turn-clock[data-direction="3"]::after{right:100%;top:50%;margin-top:-3px;border-right-color:var(--clock-accent);border-left-width:0}
.turn-clock.urgent{--clock-accent:#ff9d55;color:#ffe0ce;background:#68362bf5}.turn-clock.clock-paused{--clock-accent:#aebfaf;color:#d5e0d5;background:#264b43f5;box-shadow:none}
.seat.clock-active{--turn-light:#f1cc79}.seat.clock-urgent{--turn-light:#ff9d55}.seat.clock-paused{--turn-light:#aebfaf}
.seat.clock-active .seat-avatar{outline:2px solid var(--turn-light);outline-offset:2px;box-shadow:0 0 10px #f1cc7970;animation:turn-seat-glow 1.6s ease-in-out infinite alternate}
.seat.clock-paused .seat-avatar{animation:none;box-shadow:none}.seat.clock-urgent .seat-avatar{box-shadow:0 0 12px #ff9d5570}
@keyframes turn-seat-glow{from{box-shadow:0 0 7px color-mix(in srgb,var(--turn-light) 35%,transparent)}to{box-shadow:0 0 14px color-mix(in srgb,var(--turn-light) 60%,transparent)}}
@media(prefers-reduced-motion:reduce){.seat.clock-active .seat-avatar{animation:none}}
.turn-automatic{position:absolute;top:94px;left:50%;transform:translateX(-50%);z-index:8;max-width:230px;border-radius:12px;padding:3px 9px;background:#0b3c30e6;color:#f1ddaa;font-size:11px;white-space:nowrap;pointer-events:none}
.cancel-managed{position:absolute;left:50%;top:130px;transform:translateX(-50%);z-index:12;min-height:44px;width:132px;border-radius:23px;background:linear-gradient(#f7d68c,#e9ae4e);border-color:#f7dfa2;color:#634017;font-weight:700}
.seat-managed{position:absolute;top:0;right:0;font-size:9px;line-height:14px;padding:0 4px;border-radius:6px;background:#e3bd71;color:#254638;white-space:nowrap}
.turn-clock[hidden],.turn-automatic[hidden],.cancel-managed[hidden]{display:none!important}
