#history{width:min(calc(100% - 24px),600px)}
.game-landscape-compact #history{width:min(calc(var(--game-view-w) - 28px),600px)}
#history p{margin:.4rem 0}
#history #history-matches{display:grid;gap:.55rem;margin:.75rem 0}
#history details{min-inline-size:0;border:1px solid #d4bf8e55;border-radius:9px;padding:.55rem .65rem}
#history summary{cursor:pointer;color:var(--gold);font-weight:700}
#history details[open] summary{margin-bottom:.45rem}
#history table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.9rem;line-height:1.3}
#history th,#history td{padding:.35rem .3rem;border-bottom:1px solid #d4bf8e35;text-align:right}
#history :is(thead,tbody) :is(th,td):nth-child(-n+2),#history tfoot th{text-align:left}
#history thead th:nth-child(1){width:12%}
#history thead th:nth-child(2){width:29%}
#history :is(th,td){overflow-wrap:anywhere}
#history :is(thead,tbody) :is(th,td):nth-child(n+3),#history tfoot td{
 border-inline-start:1px solid #d4bf8e77;text-align:end;font-variant-numeric:tabular-nums;
}
#history tr > :last-child{border-inline-end:1px solid #d4bf8e55}
#history thead th{color:var(--gold)}
#history .history-table{min-inline-size:0;overflow-x:auto}
#history table{min-inline-size:390px}
#history :is(tbody td:nth-child(n+3),tfoot td){white-space:nowrap}
#history tfoot td{font-weight:700}
@media(max-width:380px){#history table{font-size:.79rem}}
#solo-progress-label{display:inline-flex;align-items:center;white-space:nowrap;font-size:.82em;color:#d9c8f3}
#match-final:not([hidden]){margin:12px 0;padding:10px;border:1px solid #d4bf8e77;border-radius:9px}
#match-final>strong{color:var(--gold)}
#match-final p{margin:.35rem 0}
#match-final .deltas{margin:.35rem 0 0}
#setup .field input{font:inherit;color:inherit;background:#233e31;border:1px solid var(--line);border-radius:8px;padding:8px 10px;max-width:10rem;min-height:41px}
#setup .field select{width:100%;min-height:41px}
#setup .setup-draw{display:flex;align-items:center;gap:.45rem}
#setup .setup-draw input{width:1.1rem;height:1.1rem}
#setup .setup-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
#setup .setup-tools .accent{margin:0}
#setup :is(p,small)[hidden]{display:none}
#result #next[hidden]{display:none}
#result.solo-result{
 --solo-result-safe-inline:calc(env(safe-area-inset-left,0px) + env(safe-area-inset-right,0px));
 width:min(860px,calc(var(--game-view-w,100dvw) - 28px - var(--solo-result-safe-inline)));
 max-width:none;max-height:calc(var(--game-view-h,100dvh) - 24px);
 padding:clamp(10px,2vw,18px);overscroll-behavior:contain;
}
.game-landscape-rotated #result.solo-result{
 --solo-result-safe-inline:calc(env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px));
}
#result.solo-result .lobby-tools{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1vw,8px);margin-top:12px;
}
#result.solo-result .lobby-tools:has(> #next[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
#result.solo-result .lobby-tools > .accent{
 box-sizing:border-box;inline-size:100%;min-inline-size:0;min-height:36px;margin:0;padding:4px 6px;
 font-size:clamp(.76rem,2vw,.92rem);line-height:1.15;text-align:center;overflow-wrap:anywhere;
}
#result.solo-result .solo-winning-row{
 container-type:inline-size;display:flex;flex-flow:row nowrap;align-items:flex-start;gap:4px;
 min-inline-size:0;max-inline-size:100%;padding:2px 0 4px;overflow-x:auto;overflow-y:hidden;
}
#result.solo-result .solo-winning-row :is(.solo-winning-faces,.solo-winning-melds,.meld-group){
 display:inline-flex;flex:none;flex-flow:row nowrap;align-items:flex-start;gap:1px;margin:0;
}
#result.solo-result .solo-winning-row :is(.solo-winning-melds,.meld-group){gap:3px}
#result.solo-result .solo-winning-melds > .meld-group{padding:0 0 0 2px;border-inline-start:1px solid #c292678a}
#result.solo-result .solo-winning-row :is(.tile,.tile-back,.fei-represented){
 --solo-face-width:clamp(11px,calc((100cqi - 30px) / var(--solo-winning-count) - 3px),44px);
 box-sizing:border-box;flex:none;inline-size:var(--solo-face-width);
 min-inline-size:0;min-block-size:0;margin:0;padding:0;
}
#result.solo-result .solo-winning-row :is(.tile,.tile-back){height:auto;aspect-ratio:88/122}
#result.solo-result .solo-winning-row .tile img{width:100%;height:100%;object-fit:contain}
#result.solo-result .solo-winning-row .fei-represented > small{
 display:block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.55rem;
}
