/* All match information and context-sensitive choices live on the table. */
body:has(.table-layout)>#app>header{height:64px}
body:has(.table-layout) .brand{font-size:21px;gap:10px}body:has(.table-layout) .brand small{font-size:7px;margin-top:4px}body:has(.table-layout) .seal{height:38px;width:35px}
.table-layout{height:calc(100svh - 64px);min-height:620px;grid-template-columns:minmax(0,1fr) clamp(270px,28vw,390px);max-width:none}
.game-main{padding:17px 18px 19px;min-width:0;height:100%;display:flex;align-items:stretch}
.game-main .table{margin:0;width:100%;max-width:none;min-height:0;padding:12px 14px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:3px}
.table-meta{width:100%;display:flex;justify-content:space-between;gap:12px;color:#ead5a8;font:14px 'Noto Serif JP',serif;letter-spacing:.08em;padding:0 5px 8px;border-bottom:1px solid #b99a6435}.table-meta b{font-size:11px;color:#bda983;font-weight:400;margin-left:12px}.table-meta>span:last-child{font:10px 'Noto Sans JP',sans-serif;letter-spacing:0;color:#d2c2a2}.table-meta small{font-size:9px;margin-left:9px;color:#a69c83}
.table .score-line{flex-shrink:0}.table .score-line strong{font-size:28px}.opponent-zone{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:40px;flex-wrap:wrap}.opponent-hand{margin:5px 0}.opponent-hand .back{height:31px;width:22px}.table .river{flex-shrink:0;min-height:64px;grid-template-columns:repeat(12,26px);gap:3px;padding:3px}.table .river .tile{--w:26px}.table .center-info{width:230px;flex-shrink:0;margin:3px 0;padding:13px 16px 10px}.center-info strong{font-size:21px;margin-bottom:3px}.center-info:before{font-size:6px;margin-bottom:5px}.dora-display{flex-wrap:wrap;margin:5px 0;gap:7px}.indicators{display:flex;gap:3px;justify-content:center}.indicators .tile{--w:24px}.wall-info{font-size:10px;color:#cbbd9d;margin-top:7px}.wall-info span{margin-left:16px;color:#9da88f}.decision-space{min-height:47px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;position:relative;z-index:2}.table-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;align-items:center}.table-actions>button{min-height:34px;padding:8px 15px;background:url('assets/ui/svg/button_secondary.svg') center/100% 100% no-repeat;border:0;color:#ead5a8;font-size:11px;font-family:'Noto Serif JP',serif;box-shadow:0 5px 14px #0005}.table-actions>button.primary{background-image:url('assets/ui/svg/button_primary.svg');color:#201b10}.table-actions>button:hover{filter:brightness(1.16)}.table-actions:has(.option-tiles)>button{display:flex;gap:7px;align-items:center;padding:6px 12px}.option-tiles{display:inline-flex;gap:2px}.option-tiles .tile{--w:19px;box-shadow:0 2px #9b927b}
.tile-hint{color:#d0c3a3;font-size:10px;min-height:0}.tile-hint:empty{display:none}.table .hand{margin:9px 0 7px;gap:4px;flex-shrink:0}.table .hand .tile{--w:clamp(28px,3.2vw,50px)}.hand button:disabled{cursor:not-allowed;filter:brightness(.9)}.hand button:last-child{margin-left:10px}.melds{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end;align-items:end}.melds:empty{display:none}.meld-group{display:inline-flex;gap:2px;align-items:end;padding:3px 4px 4px;border-bottom:1px solid #b99a6444}.meld-group .tile{--w:24px}.meld-back{height:32px;width:24px;margin-bottom:-1px;border-radius:3px}.cpu-melds{max-width:100%}.player-melds{width:100%;min-height:0;flex-shrink:0}.called-marker{display:flex;align-items:center;justify-content:center;width:26px;height:35px;color:#d6c28b55;border:1px dashed #b99a641c;font-size:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.result-melds{justify-content:center;margin:10px 0 20px}.red-tile{outline-color:#b24a35}
.table-layout .side{position:relative;top:auto;height:calc(100% - 34px);margin:17px 12px 17px 0;min-height:0;padding:16px 12px;gap:0;overflow:hidden}.side>.tag:first-child{font-size:8px;margin-bottom:7px}.table-layout .side h2{font-size:24px;margin:0 0 10px}.table-layout .portrait-stage{height:auto;flex:1;min-height:150px}.table-layout .side .speech{font-size:11px;line-height:1.9;padding-top:14px;margin-top:9px}.table-layout .side .progress{margin:12px 0 7px;gap:6px}.table-layout .side .partner-wins{display:block!important;order:5;text-align:center;font-size:10px;color:#c7b68e;margin:0}.side .progress i{width:24px;height:24px}.side .progress i.on:after{inset:8px}
@media(min-width:1450px){.game-main{padding:22px 26px}.table-layout .side{margin:22px 20px 22px 0;height:calc(100% - 44px);padding:20px}.game-main .table{padding:18px 24px}.table .river{grid-template-columns:repeat(12,29px);min-height:76px}.table .river .tile{--w:29px}.table .hand .tile{--w:clamp(40px,3.2vw,60px)}.table .score-line strong{font-size:32px}}
@media(max-width:1150px){.table-layout{grid-template-columns:minmax(0,1fr) 280px}.game-main{padding:15px 13px}.game-main .table{padding:10px 7px}.table .hand .tile{--w:clamp(25px,3.7vw,42px)}.table .hand{gap:3px}.table-meta{font-size:12px}.table-meta small{display:none}.table-actions>button{font-size:10px;padding:8px 12px}.table .river{grid-template-columns:repeat(12,24px)}.table .river .tile{--w:24px}.called-marker{width:24px;height:32px}}
@media(max-width:1000px){.table-layout{grid-template-columns:minmax(0,1fr) 240px}.table-layout .side{display:flex;margin-right:10px;padding:14px 10px}.table-layout .side>*{grid-column:auto;grid-row:auto}.table .hand .tile{--w:clamp(21px,3.05vw,33px)}.table .hand{gap:2px}.table .hand .tile:last-child{margin-left:6px}.opponent-hand .back{width:18px;height:27px}.table-meta{font-size:11px}.table .score-line strong{font-size:24px}.meld-group .tile{--w:21px}.meld-back{width:21px;height:28px}}
@media(max-width:760px){.table-layout{grid-template-columns:minmax(0,1fr) 180px}.table-layout .side{padding:12px 8px}.side>.tag:first-child{font-size:7px;letter-spacing:.05em}.table-layout .side h2{font-size:20px}.table-layout .side .speech{font-size:10px}.side .progress i{width:20px;height:20px}.side .progress i.on:after{inset:7px}.table .hand .tile{--w:clamp(19px,3vw,25px)}.table .river{grid-template-columns:repeat(9,23px)}.table .river .tile{--w:23px}.table .center-info{width:190px}.table-meta{padding-bottom:6px}.table-meta b{margin-left:5px}.game-main{padding-left:10px;padding-right:10px}.decision-space{min-height:50px}}
@media(max-width:600px){.table-layout{height:auto;min-height:0;grid-template-columns:1fr}.game-main{height:calc(100svh - 64px);min-height:620px;padding:12px}.table .hand .tile{--w:clamp(20px,5.4vw,32px)}.table .hand{gap:2px}.table .river{grid-template-columns:repeat(12,22px);min-height:61px}.table .river .tile{--w:22px}.table-meta{font-size:12px}.table .side{height:auto}.table-layout .side{margin:0 12px 20px;padding:18px;display:grid;grid-template-columns:46% 1fr;height:auto;gap:12px}.table-layout .side .portrait-stage{grid-column:1;grid-row:1/6;height:300px}.table-layout .side>.tag:first-child,.table-layout .side h2,.table-layout .side .progress,.table-layout .side .speech,.table-layout .side .partner-wins{grid-column:2;margin:0}.table-layout .side .partner-wins{text-align:left}.table-actions>button{font-size:11px}.table .center-info{width:210px}.called-marker{width:22px;height:30px}}
@media(max-height:740px) and (min-width:601px){.table-layout{min-height:570px}.table .river{min-height:54px}.table .river .tile{--w:22px}.table .center-info{padding:10px 12px 8px}.center-info strong{font-size:18px}.center-info:before{display:none}.table .hand{margin:5px 0}.decision-space{min-height:39px}.game-main .table{gap:1px}}
