:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#fffdf7;background:#185640;-webkit-text-size-adjust:100%;--button-normal-bg:#F8DC91;--button-normal-fg:#154E3C;--button-pressed-bg:#E9C66A;--button-disabled-bg:#9DA27C;--button-disabled-fg:#20352C;--button-focus:#82dcff;--button-focus-inner:#123f32}*{box-sizing:border-box}body{margin:0}html:has(.candidate-controls:not([hidden])){overflow-anchor:none}main{container-type:inline-size;width:min(100%,620px);min-height:100vh;min-height:100svh;min-height:100dvh;margin:auto;padding:max(8px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:8px}header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 6px}.app-header{height:44px;min-height:44px;flex:none}.app-header h1{min-width:0;overflow:hidden;text-overflow:ellipsis;margin-right:auto}.app-idle{display:flex;min-height:clamp(180px,42vh,360px);flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;text-align:center}.app-idle[hidden]{display:none}.app-idle h2{margin:0 0 8px;font-size:clamp(1.15rem,5vw,1.5rem)}.app-idle p{margin:0;line-height:1.6;overflow-wrap:anywhere}.online-game-active #app-idle{display:none}#local-table[hidden],#local-table-summary[hidden],#local-game-controls[hidden],#local-table .center-info[hidden]{display:none!important}h1{margin:0;font-size:clamp(14px,calc(3.8vw + 1.8px),1.5rem);white-space:nowrap}.main-menu-shell{position:relative;z-index:8;flex:none}.main-menu-toggle{display:grid;align-content:center;justify-items:center;gap:4px;width:44px;height:44px;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#fffdf7;box-shadow:none;cursor:pointer;touch-action:manipulation}.main-menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}.main-menu-toggle:hover{background:#23684b}.main-menu-toggle:active{background:#2d7655}.main-menu-toggle[aria-expanded=true]{border-color:#82aa91;background:#286b4e}.main-menu-toggle:focus-visible{outline:3px solid var(--button-focus);outline-offset:2px}.main-menu-items{position:absolute;top:calc(100% + 4px);right:0;z-index:20;display:flex;flex-direction:column;gap:0;width:max-content;min-width:216px;max-width:min(240px,calc(100vw - 16px));padding:4px;border:1px solid #b8cbbd;border-radius:10px;background:#fffdf7;color:#154e3c;box-shadow:0 5px 16px #00000038}.main-menu-items .main-menu-item{display:block;width:100%;min-width:0;min-height:44px;padding:8px 12px;border:0;border-radius:6px;background:#fffdf7;color:#154e3c;box-shadow:none;font:inherit;font-size:14px;font-weight:500;line-height:1.35;text-align:left;white-space:normal;cursor:pointer;touch-action:manipulation}.main-menu-items .main-menu-item[hidden]{display:none}.main-menu-items .main-menu-item+.main-menu-item{border-top:1px solid #d8e1d9;border-radius:0}.main-menu-items .main-menu-item:hover{background:#edf3ee}.main-menu-items .main-menu-item:active:not(:disabled){background:#e2ece4}.main-menu-items .main-menu-item:focus-visible{position:relative;z-index:1;outline:2px solid #39765e;outline-offset:-3px}.main-menu-items .main-menu-item:disabled{cursor:default}.main-menu-language{display:grid;gap:6px;padding:10px 8px 6px;border-top:1px solid #d8e1d9;font-size:14px;line-height:1.3}#menu-language-current{font-weight:600}.main-menu-language-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.main-menu-language-choices button{min-width:0;min-height:44px;padding:6px 4px;border:1px solid #63947a;border-radius:6px;background:#fffdf7;color:#154e3c;font:inherit;cursor:pointer;touch-action:manipulation}.main-menu-language-choices button[aria-pressed=true]{border:2px solid #185640;background:#e2ece4;font-weight:700}.main-menu-language-choices button:hover{background:#edf3ee}.main-menu-language-choices button:focus-visible{outline:3px solid var(--button-focus);outline-offset:2px}@media(max-height:500px){.main-menu-language{grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px;padding-block:4px}.main-menu-language-choices{gap:4px}.main-menu-language-choices button{min-height:40px;padding:4px}}html[lang=en] .main-menu-items{max-width:min(284px,calc(100vw - 16px))}html[lang=en] .control-action-button{white-space:normal;overflow-wrap:break-word;line-height:1.2}html[lang=en] #online-dialog .online-waiting-operation{white-space:normal;overflow-wrap:break-word}html[lang=en] .online-room-expiry-row{white-space:normal}html[lang=en] .online-seat-content{flex-wrap:wrap}html[lang=en] .online-seat-status{margin-left:auto}ul{list-style:none;padding:0;margin:0}#player-hand{container-type:inline-size;width:100%;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:1px;margin:0;padding:0}#player-hand li{min-width:0}#player-hand .drawn-tile{margin-left:4px}.tile-choice{display:block;width:100%;padding:0;border:0;border-radius:3px;cursor:pointer;touch-action:manipulation}.tile-choice[aria-pressed=true]{transform:translateY(-8px);outline:2px solid #ffda7d;outline-offset:0}.tile-choice:disabled{cursor:default}.discard-controls{position:relative;bottom:auto;z-index:2;isolation:isolate;border:1px solid transparent;border-radius:8px;padding:8px 6px calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:stretch;gap:6px}.discard-controls:before,.candidate-controls:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:1px solid #39765e;border-radius:8px;background:#123f32}.discard-controls.candidate-active:before{display:none}.discard-controls.candidate-active{box-sizing:border-box;height:var(--candidate-anchor-height);min-height:var(--candidate-anchor-height)}.normal-controls:not([hidden]){display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%}.action-status{width:100%;min-width:0;margin:0;font-size:14px;overflow-wrap:anywhere}.action-buttons{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;width:100%}.control-action-button{min-width:72px;min-height:44px;flex:0 1 calc((100% - 12px) / 3);padding:8px 6px;border:1px solid currentColor;border-radius:8px;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;touch-action:manipulation;cursor:pointer}.control-action-button:disabled{cursor:default}.action-group-status{min-width:0;margin:0;font-size:14px;overflow-wrap:anywhere}.decision-controls{position:relative;z-index:10;box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(min(100%,84px),1fr));align-content:end;align-items:stretch;width:100%;gap:6px;min-height:0;max-height:calc(100vh - 16px);padding:8px;border:1px solid transparent;border-radius:8px;background:none;overflow:hidden}.decision-controls:not([hidden]){display:grid}.discard-controls:has(.decision-controls:not([hidden])){padding:0;gap:0}.discard-controls:has([data-panel-part=call-controls]:not([hidden]))>.normal-controls>.action-status,.discard-controls:has([data-panel-part=call-controls]:not([hidden]))>.normal-controls>.keyboard-help{display:none}.decision-buttons{display:grid;grid-column:1 / -1;grid-template-columns:repeat(auto-fit,minmax(min(100%,84px),1fr));align-items:stretch;gap:6px;width:100%}.decision-controls>.action-group-status{grid-column:1 / -1}.decision-buttons .control-action-button{min-width:0;min-height:44px;width:100%}.candidate-controls{position:fixed;z-index:40;isolation:isolate;inset-inline-start:var(--candidate-panel-left);bottom:var(--candidate-panel-bottom,max(8px,env(safe-area-inset-bottom,0px)));flex-direction:column;align-items:stretch;gap:6px;width:var(--candidate-panel-width);box-sizing:border-box;max-height:var(--candidate-panel-available-height, calc(100vh - 16px) );padding:8px;border:1px solid transparent;border-radius:8px;overflow:hidden}.candidate-controls:not([hidden]){display:flex}.candidate-option-list{display:flex;flex:0 1 auto;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:6px;width:100%;min-width:0;min-height:0;max-height:var(--candidate-panel-available-height, calc(100vh - 104px) );margin:0;padding:5px;scroll-padding:5px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.candidate-option-button{display:flex;flex:1 1 88px;align-items:center;justify-content:center;gap:2px;min-width:72px;min-height:58px;max-width:calc(25% - 5px);padding:4px;border:1px solid currentColor;border-radius:8px;touch-action:manipulation;cursor:pointer}.candidate-option-button .tile-svg{flex:none;width:20px;min-width:0;height:auto}.candidate-option-button:has(.tile-svg:nth-child(4)){flex-basis:96px;min-width:96px;max-width:calc(33.333% - 4px)}.candidate-back-button{flex:0 0 auto;width:100%;min-height:44px}.candidate-option-button:focus-visible,.candidate-back-button:focus-visible,.decision-buttons button:focus-visible{outline:3px solid var(--button-focus);outline-offset:2px}.candidate-option-button:disabled,.candidate-back-button:disabled{cursor:default}@supports (height:100dvh){.decision-controls{max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.candidate-controls{max-height:var(--candidate-panel-available-height, calc(100dvh - 16px) )}.candidate-option-list{max-height:var(--candidate-panel-available-height, calc(100dvh - 104px) )}}.round-result-actions{display:flex;align-items:stretch;justify-content:center;flex:1 1 100%;gap:6px}.round-result-actions button{flex:1 1 0;min-width:72px;min-height:44px;padding:8px 6px}.keyboard-help{width:100%;margin:0;font-size:11px;color:#d4e5db}@media(hover:none)and (pointer:coarse){.keyboard-help{display:none}}.tile-svg{display:block;width:100%;height:auto;aspect-ratio:60/84}.test-heading{flex-wrap:wrap}.river-test-badge{margin-left:auto;padding:2px 7px;border:1px solid #ffda7d;border-radius:999px;color:#ffda7d;font-size:11px}#river-test-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;padding:8px;border:1px solid #63947a;border-radius:8px;background:#123f32}#river-test-controls label{font-size:13px}#river-test-controls select,#river-test-controls button{min-height:44px}#river-test-controls p{flex:1 1 100%;margin:0;color:#d4e5db;font-size:12px}#win-result{padding:12px;border:1px solid #ffda7d;border-radius:8px;overflow-wrap:anywhere}#win-result h2{margin:0;font-size:1.2rem}#win-result p{margin:8px 0}#online-result-content{padding:12px;border:1px solid #ffda7d;border-radius:8px;overflow-wrap:anywhere}#online-result-content[hidden]{display:none}#online-result-content .online-settlement{margin-top:16px;padding-top:12px;border-top:1px solid #63947a}#online-result-content h2{margin:0;font-size:1.1rem}#online-result-content h3{margin:10px 0 4px;font-size:1rem}#online-result-content p{margin:6px 0}@media(max-width:350px){header{gap:4px;padding-inline:2px}.discard-controls{padding:4px 6px calc(10px + env(safe-area-inset-bottom,0px));gap:4px}.action-status,.action-group-status{font-size:12px}.keyboard-help{display:none}}.winning-hand,.public-winning-hand{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:1px;padding:0;margin:8px 0;list-style:none;width:100%;max-width:560px}.winning-hand li,.public-winning-hand li{min-width:0;aspect-ratio:60/84}.winning-hand .tile-svg,.public-winning-hand .tile-svg{width:100%;height:100%}.ron-pending>.normal-controls:not([hidden]){display:none}.winner-result+.winner-result{border-top:1px solid #63947a;margin-top:16px;padding-top:16px}.win-score{font-weight:700}.win-payments{padding-left:20px;overflow-wrap:anywhere}.fu-details{margin:12px 0}.fu-details summary{min-height:44px;padding:10px 0;cursor:pointer}.fu-details summary:focus-visible{outline:3px solid #82dcff;outline-offset:2px}.fu-details ul{padding-left:20px}.pao-details{margin:12px 0;overflow-wrap:anywhere}.pao-details summary{min-height:44px;padding:10px 0;cursor:pointer}.pao-details summary:focus-visible{outline:3px solid #82dcff;outline-offset:2px}.pao-details ul{padding-left:20px}header h1{margin:0}header>div{min-width:0}#match-result{padding:12px;border:1px solid #ffda7d;border-radius:8px;overflow-wrap:anywhere}#match-result h2{font-size:1.1rem;margin:0}#match-result p{margin:6px 0}.online-game-active #local-table-summary,.online-game-active #local-game-layout,.online-game-active #local-table,.online-game-active #round-result-summary,.online-game-active #local-game-controls,.online-game-active #win-result,.online-game-active #match-result{display:none!important}#online-match{display:flex;flex-direction:column;gap:8px;width:100%}#local-game-layout{display:contents}#online-match #online-player-hand{container-type:inline-size;width:100%;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:1px;margin:0;padding:0}#online-match #online-player-hand li{min-width:0}#online-match #online-player-hand .drawn-tile{margin-left:4px}#online-match #online-player-hand .tile-choice{width:round(down,100%,1px);max-width:min(42px,calc((100cqw - 13px) / 14));margin:auto}#online-match .seat-bottom #online-player-hand{display:flex;width:auto;max-width:100%;align-self:center;container-type:normal}#online-match .seat-bottom #online-player-hand li{flex:0 0 var(--table-tile-width);width:var(--table-tile-width)}#online-match .seat-bottom #online-player-hand .tile-choice{width:100%;max-width:none;margin:0}#online-match .public-hand-tile{display:block;flex:none;width:var(--river-tile-width);height:var(--river-tile-height)}#online-match .public-hand-tile .tile-svg{width:100%;height:100%}#online-match [data-ura-dora=true]{outline:1px dashed #ffda7d}#online-match #online-round-result{padding:8px;border:1px solid #ffda7d;border-radius:8px;overflow-wrap:anywhere}#online-match #online-round-result[hidden]{display:none}#online-match #online-round-result h2,#online-match #online-round-result h3{margin:2px 0 6px;font-size:14px}#online-match #online-round-result p{margin:4px 0;font-size:12px}#online-start-game{min-height:44px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;touch-action:manipulation}#online-start-game{padding:8px 12px}#online-start-game:disabled{cursor:default}#online-next-round:disabled{white-space:normal}@media(max-height:650px){main{gap:4px}.keyboard-help{display:none}.discard-controls{padding:4px 6px calc(8px + env(safe-area-inset-bottom,0px));gap:4px}}.result-open{overflow:hidden}#result-dialog{--result-height:100vh;--safe-top:max(12px,env(safe-area-inset-top,0px));--safe-bottom:max(12px,env(safe-area-inset-bottom,0px));position:fixed;inset:var(--safe-top) max(3vw,env(safe-area-inset-right,0px)) var(--safe-bottom) max(3vw,env(safe-area-inset-left,0px));margin:auto;width:94%;max-width:600px;max-height:calc(var(--result-height) - var(--safe-top) - var(--safe-bottom));padding:0;border:2px solid #ffda7d;border-radius:12px;color:#fffdf7;background:#185640;overflow:hidden}@supports (height:100svh){#result-dialog{--result-height:100svh}}@supports (height:100dvh){#result-dialog{--result-height:100dvh}}#result-dialog[open]{display:flex;flex-direction:column}#match-result-dialog{--result-height:100vh;--safe-top:max(12px,env(safe-area-inset-top,0px));--safe-bottom:max(12px,env(safe-area-inset-bottom,0px));position:fixed;inset:var(--safe-top) max(3vw,env(safe-area-inset-right,0px)) var(--safe-bottom) max(3vw,env(safe-area-inset-left,0px));margin:auto;box-sizing:border-box;width:94%;max-width:600px;max-height:calc(var(--result-height) - var(--safe-top) - var(--safe-bottom));padding:0;border:2px solid #ffda7d;border-radius:12px;color:#fffdf7;background:#185640;overflow:hidden}@supports (height:100svh){#match-result-dialog{--result-height:100svh}}@supports (height:100dvh){#match-result-dialog{--result-height:100dvh}}#match-result-dialog[open]{display:flex;flex-direction:column}#match-result-dialog::backdrop{background:#0009}#match-result-body{overflow-wrap:anywhere}#match-result-dialog button{min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;touch-action:manipulation;cursor:pointer;white-space:nowrap}.match-result-format{margin:0 0 8px;font-weight:700}.match-result-standings{display:grid;gap:6px;margin:0;padding:0;list-style:none}.match-result-standings li{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:start;gap:8px;padding:8px;border:1px solid #63947a;border-radius:8px}.match-result-rank{font-weight:700;white-space:nowrap}.match-result-name{min-width:0;overflow-wrap:anywhere}.match-result-points{font-variant-numeric:tabular-nums;white-space:nowrap}#result-dialog::backdrop{background:#0009}.result-header,.result-footer{flex:none;padding:10px 12px;background:#154e3c}.result-header h2{margin:0;font-size:clamp(1rem,4vw,1.3rem)}#result-body{overflow-wrap:anywhere}#result-dialog button{min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;touch-action:manipulation;cursor:pointer}#next-round{margin:0}.result-footer{display:flex;justify-content:space-between;gap:16px}.result-footer button{white-space:nowrap;min-width:0}#new-game-dialog{width:calc(100% - 32px);max-width:480px;box-sizing:border-box;max-height:calc(100svh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overflow:hidden;padding:16px;border:2px solid #ffda7d;border-radius:12px;background:#185640;color:#fffdf7}@supports (height:100dvh){#new-game-dialog{max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)))}}#new-game-dialog::backdrop{background:#0009}#new-game-dialog[open]{display:flex;flex-direction:column;gap:8px}.new-game-header{flex:none;min-width:0}.new-game-header h2{margin:0 0 6px;font-size:1.15rem}#new-game-question{margin:0;line-height:1.45;overflow-wrap:anywhere}.dialog-scroll-panel{display:grid;grid-template-columns:minmax(0,1fr) 8px;align-items:stretch;gap:8px;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}.dialog-scroll-content{min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 8px 4px 0}.dialog-scroll-content:focus-visible{outline:3px solid #82dcff;outline-offset:-3px}.dialog-scroll-content::-webkit-scrollbar{display:none}.dialog-scroll-indicator{position:relative;align-self:stretch;width:6px;min-height:0;margin:0 1px;border-radius:6px;background:#154e3c;cursor:pointer}.dialog-scroll-indicator[hidden]{display:none}.dialog-scroll-indicator span{position:absolute;top:0;left:0;width:100%;min-height:20px;border-radius:6px;background:#ffda7d;will-change:transform,height}.rules-editor{min-width:0}.rules-editor .match-format-options{margin:0 0 10px}.rule-settings-fixed h3{margin:8px 0 0;font-size:.92rem}.rule-settings-fixed-list .confirmed-rule-row:first-child{border-top:0}.new-game-actions{position:static;z-index:auto;display:flex;justify-content:space-between;gap:12px;flex:none;margin-top:2px;padding:8px 0 0;border-top:1px solid #63947a;background:#185640}.new-game-actions button{flex:1 1 50%;min-width:0}.match-format-options,.cpu-difficulty-options{display:grid;gap:6px;margin:0 0 16px;padding:10px;border:1px solid #63947a;border-radius:8px}.match-format-options legend,.cpu-difficulty-options legend{padding:0 4px;font-weight:700}.match-format-options label,.cpu-difficulty-options label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600;touch-action:manipulation}.match-format-options input[type=radio],.cpu-difficulty-options input[type=radio],.online-entry-form .match-format-options input[type=radio]{flex:none;width:22px;min-width:22px;min-height:22px;height:22px;margin:0;padding:0;accent-color:#ffda7d}.online-entry-form .match-format-options{margin:0}.optional-rule-options{display:grid;gap:4px;margin:0 0 12px;padding:10px;border:1px solid #63947a;border-radius:8px}.optional-rule-options legend{padding:0 4px;font-weight:700}.optional-rule-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:2px 0;touch-action:manipulation}.optional-rule-option input[type=checkbox]{flex:none;width:24px;min-width:24px;min-height:24px;height:24px;margin:0;accent-color:#ffda7d}.optional-rule-option span{display:grid;gap:2px;min-width:0}.optional-rule-option strong{font-size:.92rem}.optional-rule-option small{color:#e3eee7;font-size:.77rem;line-height:1.3}#new-game-dialog button{min-height:44px;padding:8px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;white-space:nowrap;touch-action:manipulation;cursor:pointer}#new-game-dialog .new-game-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere}#diagnostic-dialog{position:fixed;inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));margin:auto;padding:12px;border:2px solid #ffda7d;border-radius:12px;background:#185640;color:#fffdf7;overflow:hidden}#diagnostic-dialog[open]{display:flex;flex-direction:column;gap:8px}#diagnostic-dialog::backdrop{background:#000000a6}.diagnostic-header,.diagnostic-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.diagnostic-header h2,.diagnostic-header p{margin:0}.diagnostic-header>div{min-width:0}.diagnostic-header #diagnostic-build-info{overflow-wrap:anywhere}.diagnostic-header h2{font-size:1.1rem}.diagnostic-header p,#diagnostic-status{font-size:.82rem}#diagnostic-origin-info{flex:none;border:1px solid #ffda7d;border-radius:8px;padding:7px 9px;overflow-wrap:anywhere}#diagnostic-origin-info h3{margin:0 0 3px;font-size:.8rem}#diagnostic-origin-info strong{display:block;color:#ffda7d;font:700 1rem/1.3 ui-monospace,monospace;overflow-wrap:anywhere}#diagnostic-origin-info pre{margin:4px 0 0;white-space:pre-wrap;font:.68rem/1.3 ui-monospace,monospace}#diagnostic-close{flex:0 0 auto;white-space:nowrap}#diagnostic-dialog button{min-width:64px;min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;touch-action:manipulation}#diagnostic-entries{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid #63947a;border-radius:8px;padding:6px}.diagnostic-entry{padding:7px 4px;border-bottom:1px solid #63947a;overflow-wrap:anywhere}.diagnostic-entry p{margin:0 0 4px;font-size:.78rem}.diagnostic-entry pre{margin:0;white-space:pre-wrap;font:.75rem ui-monospace,monospace}.diagnostic-error p{color:#ffb4a2}#diagnostic-status{min-height:1em;margin:0}.diagnostic-footer{justify-content:flex-end}#online-rules-dialog{display:none}#online-rules-dialog[open]{display:flex;flex-direction:column;gap:8px}.readonly-rules-dialog>p{flex:none;margin:0}.confirmed-rules-list{display:grid;gap:0;margin:0}.confirmed-rule-row{display:grid;grid-template-columns:minmax(76px,32%) minmax(0,1fr);gap:8px;padding:8px 2px;border-bottom:1px solid #63947a}.confirmed-rule-row dt{font-weight:700;overflow-wrap:anywhere}.confirmed-rule-row dd{margin:0;overflow-wrap:anywhere}#online-rules-list{min-height:0;max-height:min(68vh,620px);max-height:min(68dvh,620px)}.readonly-rules-dialog[open]{display:flex;flex-direction:column;min-height:0;overflow:hidden}.readonly-rules-dialog>.dialog-scroll-panel{flex:1 1 auto;max-height:min(68vh,620px);max-height:min(68dvh,620px)}.readonly-rules-dialog #online-rules-list{padding:0 8px 4px 0}.online-dialog{box-sizing:border-box;width:min(calc(100vw - 24px),520px);max-width:calc(100vw - 24px);max-height:calc(100svh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:clamp(12px,3.5vw,18px);border:2px solid #ffda7d;border-radius:12px;background:#185640;color:#fffdf7}@supports (height:100dvh){.online-dialog{max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)))}}.online-dialog[open]{display:block}.online-form-dialog[open]{display:flex;flex-direction:column}.online-create-dialog[open]{min-height:0;overflow:hidden}#online-dialog[open]{display:flex;flex-direction:column;min-height:0}.online-dialog::backdrop{background:#0009}.online-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin-bottom:8px;padding:0}.online-dialog h2{margin:0;font-size:clamp(1.1rem,4.5vw,1.25rem);line-height:1.3}.online-dialog-header h2{flex:1 1 auto;min-width:0}.online-dialog button{min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;touch-action:manipulation}.online-dialog input:focus-visible{outline:3px solid #82dcff;outline-offset:2px}.online-dialog button:disabled{cursor:not-allowed}.online-dialog .online-dialog-close{box-sizing:border-box;flex:none;width:max-content;min-width:44px;height:44px;padding:4px 8px;white-space:nowrap;font-size:.82rem}#online-dialog{--online-operation-width:clamp(96px,28vw,112px)}#online-dialog .online-dialog-header{display:grid;grid-template-columns:minmax(0,1fr) var(--online-operation-width);gap:8px}#online-dialog .online-dialog-close{width:100%;min-width:0}#online-dialog .online-waiting-operation{box-sizing:border-box;flex:none;width:100%;min-width:0;height:44px;min-height:44px;padding:6px 8px;border-radius:8px;font-size:.82rem;font-weight:600;line-height:1.25;white-space:nowrap}.online-form-dialog{width:min(calc(100vw - 24px),420px)}.online-entry-form{display:grid;gap:10px;min-width:0}.online-create-dialog #online-create-form{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.online-create-dialog .dialog-scroll-content{margin-right:-6px;padding-left:6px}.online-create-fields{display:grid;gap:10px;min-width:0}.online-create-dialog #online-create-actions{flex:none;margin-top:8px;padding:8px 6px 6px;background:#185640}.online-create-dialog #online-create-actions button{width:auto;white-space:normal;overflow-wrap:anywhere}.online-entry-form label{margin:0;font-weight:600}.online-entry-form input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px;border:1px solid #9dc5b2;border-radius:6px;font:inherit}.online-entry-form button{width:100%}.online-form-message{margin:0;color:#fff1cc;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}#online-status{flex:none;margin:0 0 6px;padding:6px 8px;border-radius:6px;background:#123f32;font-size:.88rem;line-height:1.35;overflow-wrap:anywhere}.app-notice{position:fixed;z-index:7;top:calc(max(8px,env(safe-area-inset-top,0px)) + 52px);left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));max-width:520px;margin:0 auto;padding:10px 12px;border:1px solid #ffda7d;border-radius:8px;background:#123f32;color:#fffdf7;box-shadow:0 4px 16px #0000004d;line-height:1.45;overflow-wrap:anywhere;pointer-events:none}#online-room{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin-top:4px;overflow:hidden}#online-room-content{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.online-room-info{display:grid;gap:2px;margin-bottom:5px}.online-room-rule-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.online-room-rule-row p{min-width:0;overflow-wrap:anywhere}.online-room-info p{margin:0}#online-dialog .online-room-info{gap:6px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #63947a}#online-dialog .online-room-code-row{display:grid;grid-template-columns:max-content minmax(0,1fr) var(--online-operation-width);align-items:center;gap:8px;min-width:0}.online-room-code-row>span{flex:none;font-size:.88rem}.online-room-code-row strong{min-width:max-content;letter-spacing:.08em;font-size:1.05rem}#online-dialog .online-room-rule-row{display:grid;grid-template-columns:minmax(0,1fr) var(--online-operation-width);align-items:center;gap:8px;min-width:0}.online-room-expiry-row{color:#d7e6dd;font-size:.72rem;line-height:1.25;white-space:nowrap}#online-seats{display:grid;gap:4px;padding:0;margin:4px 0 6px;list-style:none}#online-seats li{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:6px;min-width:0;min-height:34px;box-sizing:border-box;padding:4px 7px;border:1px solid #63947a;border-radius:6px}#online-seats[data-assigned=true]{grid-template-columns:max-content minmax(0,1fr);column-gap:6px}#online-seats[data-assigned=true] li{grid-column:1 / -1;grid-template-columns:subgrid}#online-seats .online-seat-wind{color:#ffda7d;font-weight:700}.online-seat-content{display:flex;align-items:center;gap:6px;min-width:0}.online-seat-player-line{display:flex;align-items:center;flex:1 1 auto;min-width:0}.online-seat-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.online-seat-role{flex:none;color:#ffda7d;font-size:.82rem;white-space:nowrap}.online-seat-status{flex:none;font-size:.82rem;white-space:nowrap}.online-seat-content.is-empty{color:#d7e6dd}#online-seats li[data-kind=cpu]{background:#123f32}#online-seats li[data-kind=empty]{color:#d7e6dd;border-style:dashed}#online-connection{margin:2px 0 5px;padding:6px 8px;border-radius:6px;background:#123f32;font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}#online-finalized-message{margin:4px 0;padding:7px 8px;border:1px solid #ffda7d;border-radius:8px;background:#123f32;font-size:.9rem;font-weight:700;line-height:1.35}#online-error{margin:4px 0;padding:7px 8px;border:1px solid #ffb4a2;border-radius:6px;color:#fff0eb;background:#632f26;font-size:.88rem;line-height:1.35;overflow-wrap:anywhere}#online-actions{display:grid;flex:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"leave progress" "reconnect reconnect";gap:6px;margin-top:4px;padding-top:5px;border-top:1px solid #63947a;background:#185640}#online-actions button{min-width:0;white-space:normal}#online-actions button:disabled{cursor:wait}#online-leave{grid-area:leave}#online-ready,#online-finalize,#online-start-game{grid-area:progress}#online-reconnect{grid-area:reconnect;width:100%}@media(max-width:360px){#online-dialog{--online-operation-width:88px}#online-dialog .online-room-code-row>span{font-size:.82rem}#online-dialog .online-room-code-row strong{font-size:1rem}.online-seat-content{flex-wrap:wrap;gap:2px 6px}.online-seat-status{margin-left:auto}}[hidden]{display:none!important}.discard-controls.result-available>:not(.normal-controls){display:none}.discard-controls.result-available .normal-controls>:not(.action-buttons){display:none}.discard-controls.result-available .action-buttons>:not(.round-result-actions){display:none}.discard-controls.result-available{position:relative;bottom:auto;justify-content:center;padding:4px 6px max(4px,env(safe-area-inset-bottom,0px))}#round-result-summary{width:100%;padding:8px 10px;border:1px solid #63947a;border-radius:8px;background:#123f32;font-size:14px;line-height:1.4;overflow-wrap:anywhere}#round-result-summary p{margin:2px 0}.round-summary-winner{font-weight:700}.round-summary-yaku{color:#fff1cc}.round-win-summary+.round-win-summary{border-top:1px solid #39765e;margin-top:6px;padding-top:6px}.ron-pending [data-panel-part=kan-toggle]{display:none}.result-dora{margin:12px 0;min-width:0}.result-dora h3{margin:0 0 6px;font-size:.95rem}.result-dora-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:min(100%,240px)}.result-dora-slot{min-width:0;aspect-ratio:60 / 84}.result-dora-slot svg{display:block;width:100%;height:100%}.result-dora-placeholder{box-sizing:border-box;border:1px dashed #9dc5b2;border-radius:5px;background:#fffdf70d}.result-dora-description{margin:5px 0 0;font-size:.8rem;overflow-wrap:anywhere}#player-hand .tile-choice{max-width:42px;margin:auto}.round-result-actions:not([hidden]){display:flex}@media(max-width:599px){main:has(.discard-controls.result-available){gap:4px;padding-top:max(4px,env(safe-area-inset-top,0px));padding-bottom:max(4px,env(safe-area-inset-bottom,0px))}#round-result-summary{padding:4px 8px;line-height:1.2}#round-result-summary p{margin:0}#online-match:has(.discard-controls.result-available){gap:4px}#online-match:has(.discard-controls.result-available) #online-round-result{padding:4px 8px}#online-match:has(.discard-controls.result-available) #online-round-result .round-summary-winner,#online-match:has(.discard-controls.result-available) #online-round-result .round-summary-tenpai{margin:0;font-size:14px;line-height:1.2}.round-result-actions{flex:0 0 100%;width:100%}.round-result-actions button{min-width:0}.discard-controls.result-available{padding:4px 6px;gap:4px}}@media(max-width:599px)and (max-height:552px){main:has(.discard-controls.result-available) #local-game-layout>#local-table,#online-match:has(.discard-controls.result-available) #online-table{width:min(calc(100% + 8px),calc(100dvh - 240px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));margin-inline:auto}}.table{container-type:normal;position:relative;display:grid;grid-template-columns:calc(var(--table-tile-width) * 2.5 + 2px) minmax(0,1fr) calc(var(--table-tile-width) * 2.5 + 2px);grid-template-rows:auto auto auto;grid-template-areas:". top ." "left rivers right" "bottom bottom bottom";gap:3px;padding:6px 2px;border:2px solid #39765e;border-radius:16px;background:radial-gradient(ellipse at center,#287a5a,#1c6048);--table-tile-width:min(42px,round(down,calc((100cqw - 21px) / 14),1px));--table-tile-height:calc(var(--table-tile-width) * 1.4);--meld-headroom:calc(var(--table-tile-width) + 2px)}.seat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.seat-top{grid-area:top;grid-column:1 / -1;padding-bottom:4px}.seat-left{grid-area:left;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;align-self:stretch}.seat-right{grid-area:right;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;align-self:stretch}.seat-bottom{grid-area:bottom;align-items:stretch;gap:10px;padding-top:8px}.seat-label{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px;min-width:0;width:100%;margin:0;padding:0 2px;border:1px solid transparent;border-radius:5px;font-size:10px;line-height:1;text-align:left;color:#fff1cc}.seat-label>span{display:block;white-space:nowrap}.seat-name{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600}.seat-details{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;min-width:max-content;white-space:nowrap}.seat-details>span{white-space:nowrap}.seat-label[data-active=true]{border-color:#ffda7d;background:#103e30;color:#ffda7d}.seat-points{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.concealed-hand{display:flex;gap:1px;justify-content:center;max-width:100%}.tile-back{display:block;flex:none;width:var(--table-tile-width);height:var(--table-tile-height);border:1px solid #e5dfc5;border-radius:2px;background:linear-gradient(#658ab1,#315877);box-shadow:0 1px #ddd4b9}.seat-left .concealed-hand,.seat-right .concealed-hand{flex-direction:column;gap:1px}.seat-left .tile-back,.seat-right .tile-back{width:var(--table-tile-height);height:var(--table-tile-width)}.rivers{--river-tile-width:var(--table-tile-width);--river-tile-height:var(--table-tile-height);grid-area:rivers;width:100%;justify-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-template-areas:"top top" "info info" "left right" "bottom bottom";gap:8px 4px;align-content:start;align-items:center;justify-items:center;min-width:0}.river{display:block;gap:0;min-width:0}.river-top{grid-area:top}.river-bottom{grid-area:bottom}.river-left{grid-area:left}.river-right{grid-area:right}.river-tile{position:relative;width:var(--table-tile-height);height:var(--table-tile-height)}.river-tile.pending-discard-target{outline:3px solid #FFD700;outline-offset:0;border-radius:2px;pointer-events:none;z-index:1}.river-left .river-tile,.river-right .river-tile{width:var(--table-tile-height);height:var(--table-tile-height)}.river-tile-face{position:absolute;display:block;width:var(--river-tile-width);height:var(--river-tile-height);left:calc((100% - var(--river-tile-width)) * .5);top:calc((100% - var(--river-tile-height)) * .5)}.river-tile-face .tile-svg{display:block;width:100%;height:100%;transform-box:border-box;transform-origin:top left}.river-top .river-tile-face .tile-svg{transform:translate(var(--river-tile-width),var(--river-tile-height)) rotate(180deg)}.river-left .river-tile-face .tile-svg{transform:translate(calc((var(--river-tile-height) + var(--river-tile-width)) * .5),calc((var(--river-tile-height) - var(--river-tile-width)) * .5)) rotate(90deg)}.river-right .river-tile-face .tile-svg{transform:translate(calc((var(--river-tile-width) - var(--river-tile-height)) * .5),calc((var(--river-tile-height) + var(--river-tile-width)) * .5)) rotate(270deg)}.river-top .river-tile[data-riichi-declaration=true] .tile-svg{transform:translate(calc((var(--river-tile-width) - var(--river-tile-height)) * .5),calc((var(--river-tile-width) + var(--river-tile-height)) * .5)) rotate(270deg)}.river-bottom .river-tile[data-riichi-declaration=true] .tile-svg{transform:translate(calc((var(--river-tile-height) + var(--river-tile-width)) * .5),calc((var(--river-tile-height) - var(--river-tile-width)) * .5)) rotate(90deg)}.river-left .river-tile[data-riichi-declaration=true] .tile-svg{transform:translate(var(--river-tile-width),var(--river-tile-height)) rotate(180deg)}.river-right .river-tile[data-riichi-declaration=true] .tile-svg{transform:none}.center-info{grid-area:info;align-self:stretch;width:100%;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:3px 0;border-radius:6px;background:#123f32;font-size:12px;line-height:1.35;text-align:center;overflow-wrap:anywhere}.round-label{font-weight:700}.wall-count{display:flex;flex-direction:column;gap:1px}.wall-dead-count{color:#ffda7d}.dora-area h2{margin:0 0 3px;font-size:9px}.dora-indicators{display:grid;grid-template-columns:repeat(5,var(--table-tile-width));grid-template-rows:var(--table-tile-height);justify-content:center;gap:1px}.dora-slot,.dora-slot .tile-svg{width:var(--table-tile-width);height:var(--table-tile-height)}.dora-slot.tile-back{box-sizing:border-box;border:1px solid #e5dfc5;border-radius:2px;background:linear-gradient(#658ab1,#315877)}.dora-slot.tile-back svg{display:block;width:100%;height:100%}.dora-slot span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dora-placeholder{border:1px solid #39765e;border-radius:2px}.deposit-sticks{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:4px}.deposit-stick{width:26px;height:8px}.deposit-stick svg{width:100%;height:100%;display:block}.open-melds{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:100%}.result-melds{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:100%;--meld-tile-width:18px;--meld-tile-height:25.2px;--meld-headroom:20px}.open-melds:empty{display:none}.open-meld{--meld-tile-gap:1px;position:relative;display:flex;align-items:flex-end;gap:var(--meld-tile-gap);padding:var(--meld-headroom) 0 0;isolation:isolate}.open-meld>span{position:relative;display:block;flex:none;width:var(--meld-tile-width);height:var(--meld-tile-height)}.open-meld .tile-svg{width:var(--meld-tile-width);height:var(--meld-tile-height)}.open-meld .called-tile{width:var(--meld-tile-height);height:var(--meld-tile-width)}.open-meld .called-tile .tile-svg{position:absolute;left:calc(var(--meld-tile-width) * .2);top:calc(var(--meld-tile-width) * -.2);transform:rotate(90deg)}.open-meld .added-kan-tile{position:absolute;width:var(--meld-tile-height);height:var(--meld-tile-width);left:0;top:calc(0px - var(--meld-tile-width) - var(--meld-tile-gap));z-index:2}.open-meld .added-kan-tile .tile-svg{position:absolute;left:calc(var(--meld-tile-width) * .2);top:calc(var(--meld-tile-width) * -.2);transform:rotate(90deg)}.open-meld .pending-kan-tile{outline:2px dashed #ffda7d;background:#80551b}.open-meld small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.open-meld .concealed-kan-back{border:1px solid #eee5ca;border-radius:2px;background:#426e9b}.seat-top .open-meld{transform:rotate(180deg)}.seat-left .open-melds,.seat-right .open-melds{display:grid;grid-auto-rows:calc(var(--table-tile-width)*4.4 + 6px);gap:4px;width:100%;padding:0;align-self:center}.seat-left .open-meld{transform:rotate(90deg);transform-origin:center;margin:auto;width:max-content}.seat-right .open-meld{transform:rotate(270deg);transform-origin:center;margin:auto;width:max-content}.seat-bottom .open-melds{justify-content:flex-end;min-height:0}.control-option-button:disabled{cursor:default}.wall-dead-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.seat-top .open-melds{flex-wrap:wrap}#player-hand .tile-choice{width:round(down,100%,1px)}#player-hand .tile-choice{max-width:min(42px,calc((100cqw - 13px) / 14))}@media(min-width:960px){main{width:min(100%,1000px)}#player-hand{max-width:604px;align-self:center}.table{grid-template-columns:calc(var(--table-tile-height) + var(--table-tile-width)*2.5 + 5px) minmax(0,1fr) calc(var(--table-tile-height) + var(--table-tile-width)*2.5 + 5px)}.seat-left,.seat-right{display:grid;grid-template-rows:auto 1fr;gap:8px 5px;align-items:start}.seat-left{grid-template-columns:var(--table-tile-height) calc(var(--table-tile-width)*2.5)}.seat-right{grid-template-columns:calc(var(--table-tile-width)*2.5) var(--table-tile-height)}.seat-left .seat-label,.seat-right .seat-label{grid-column:1 / -1}.seat-left .concealed-hand{grid-column:1;grid-row:2}.seat-right .concealed-hand{grid-column:2;grid-row:2}.seat-left .open-melds{grid-column:2;grid-row:2;align-self:start}.seat-right .open-melds{grid-column:1;grid-row:2;align-self:start}.rivers{grid-template-columns:calc(var(--table-tile-height)*3 + 2px) minmax(0,1fr) calc(var(--table-tile-height)*3 + 2px);grid-template-rows:auto minmax(calc(var(--table-tile-height)*6 + 5px),auto) auto;grid-template-areas:". top ." "left info right" ". bottom ."}.dora-indicators{grid-template-columns:repeat(3,var(--table-tile-width));grid-template-rows:repeat(2,var(--table-tile-height))}}.table-summary{--table-tile-width:min(42px,round(down,calc((100cqw - 18px) / 15.8),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4);display:flex;align-items:center;gap:6px;min-width:0}.score-strip{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(0,auto));flex:1;min-width:0;gap:0}.score-strip .seat-label{padding:0 2px;font-size:10px;line-height:1}.table-summary .dora-area{flex:none;text-align:center}.table-summary .dora-indicators{grid-template-columns:repeat(5,var(--table-tile-width));grid-template-rows:var(--table-tile-height)}.table-summary .deposit-sticks{margin-top:1px}.table{container-type:inline-size;display:block;width:calc(100% + 8px);margin-inline:-4px;aspect-ratio:1 / 1;padding:0;flex:none;--table-tile-width:min(42px,round(down,calc((100cqw - 18px) / 15.8),.1px));--cell:calc(var(--table-tile-height) + 1px)}.table .seat,.table .rivers{--table-tile-width:min(42px,round(down,calc((100cqw - 22px) / 15.8),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4);--river-tile-width:calc(var(--table-tile-width)*.76);--river-tile-height:calc(var(--table-tile-height)*.76);--cell:calc(var(--table-tile-height) + 1px)}.table .seat{--meld-tile-width:var(--river-tile-width);--meld-tile-height:var(--river-tile-height);position:absolute;display:flex;flex-direction:row;gap:4px;padding:0;align-items:center;justify-content:center}.seat-top{top:2px;left:8px;right:8px;height:calc(var(--table-tile-height) + var(--meld-headroom))}.table .seat-top{align-items:flex-start;flex-direction:row-reverse}.table .seat-left,.table .seat-right{--side-seat-offset:calc(var(--river-tile-height)*.5 + 2px);top:50%;left:50%;width:calc(100% - 10px);height:var(--table-tile-height)}.table .seat-left{transform:translate(-50%,-50%) translate(calc(-50cqw + var(--side-seat-offset))) rotate(90deg)}.table .seat-right{transform:translate(-50%,-50%) translate(calc(50cqw - var(--side-seat-offset))) rotate(270deg)}.table .seat-right .concealed-hand,.table .seat-right .open-melds{transform:translate(calc(var(--river-tile-width)*.85),calc(var(--river-tile-width)*.1))}.table .seat-left .concealed-hand,.table .seat-left .open-melds{transform:translate(calc(0px - var(--river-tile-width)*.85),calc(var(--river-tile-width)*.1))}.table .seat-left .open-meld,.table .seat-right .open-meld{--meld-tile-gap:.1px;gap:var(--meld-tile-gap)}@media(max-width:430px){.table .seat-right .concealed-hand{transform:translate(var(--river-tile-width))}.table .seat-right .open-melds{transform:translate(calc(var(--river-tile-width) + 1.65px),.1px)}.table .seat-left .concealed-hand{transform:translate(calc(0px - var(--river-tile-width)))}.table .seat-left .open-melds{transform:translate(calc(0px - var(--river-tile-width) + .4px),.5px)}}.table .seat .concealed-hand{display:flex;flex:0 0 auto;flex-direction:row;gap:1px;justify-content:center;width:max-content;margin:0;max-width:none}.table .seat .tile-back{width:var(--river-tile-width);height:var(--river-tile-height)}.table .seat .tile-back,.table .seat .concealed-kan-back{box-sizing:border-box}.table .seat .open-melds{display:flex;flex-direction:row;flex-wrap:nowrap;gap:1px;width:auto;padding:0;align-self:auto;max-width:none}@media(max-width:430px){.table .seat-left .open-melds,.table .seat-right .open-melds{gap:.5px}}.table .seat-top .open-melds{flex-direction:row-reverse}.table .seat .open-meld{transform:none;margin:0;padding:0}.table .seat .open-meld>span{width:var(--meld-tile-width);height:var(--meld-tile-height)}.table .seat .open-meld .tile-svg{width:var(--meld-tile-width);height:var(--meld-tile-height)}.table .seat .open-meld .called-tile,.table .seat .open-meld .added-kan-tile{width:var(--meld-tile-height);height:var(--meld-tile-width)}.table .seat .open-meld[data-meld-type=kakan]{padding-top:calc(var(--meld-tile-width) + var(--meld-tile-gap))}.table .seat .open-melds:has(.open-meld[data-meld-type=kakan]){align-items:flex-end}.table .seat-top .open-melds:has(.open-meld[data-meld-type=kakan]){align-items:flex-start}.table .seat-top .open-meld[data-meld-type=kakan]{padding-top:0;padding-bottom:calc(var(--meld-tile-width) + var(--meld-tile-gap))}.table .seat-top .open-meld[data-meld-type=kakan] .added-kan-tile{top:calc(var(--meld-tile-width) + var(--meld-tile-gap))}.table .seat-left .open-melds:has(.open-meld[data-meld-type=kakan]),.table .seat-right .open-melds:has(.open-meld[data-meld-type=kakan]){align-items:flex-start}.table .seat-left .open-meld[data-meld-type=kakan]{padding-top:calc(var(--meld-tile-width) + var(--meld-tile-gap));padding-bottom:0;margin-top:calc(0px - var(--meld-tile-width) - var(--meld-tile-gap));margin-bottom:0;transform:none}.table .seat-right .open-meld[data-meld-type=kakan]{padding-top:0;padding-bottom:calc(var(--meld-tile-width) + var(--meld-tile-gap));margin-bottom:calc(0px - var(--meld-tile-width) - var(--meld-tile-gap));transform:translateY(calc(0px - (var(--meld-tile-width) + var(--meld-tile-gap)) * .8))}.table .seat-left .open-meld[data-meld-type=kakan] .added-kan-tile{top:calc(0px - var(--meld-tile-width) - var(--meld-tile-gap))}.table .seat-right .open-meld[data-meld-type=kakan] .added-kan-tile{top:calc(var(--meld-tile-width) + var(--meld-tile-gap))}@media(min-width:960px){.table .seat-right .open-melds{transform:translate(calc(var(--river-tile-width)*.85 + 4.5px),calc(var(--river-tile-width)*.1))}.table .seat-left .open-melds{transform:translate(calc(0px - var(--river-tile-width)*.85 + 9px),calc(var(--river-tile-width)*.1))}.table .seat-left .open-melds,.table .seat-right .open-melds{gap:.5px}.table .seat-right .open-meld[data-meld-type=kakan]{transform:translate(4.5px,calc(0px - var(--meld-tile-width) - var(--meld-tile-gap)))}}.table .seat-bottom{left:5px;right:5px;bottom:2px;flex-direction:row;gap:8px;align-items:flex-end;justify-content:center}.table .seat-bottom #player-hand{order:1}.table .seat-bottom .open-melds{order:2;justify-content:center;padding-top:0}.table .seat-bottom .open-melds:empty{display:none}.table .rivers{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(var(--cell)*11.65);height:calc(var(--cell)*11.65);display:block}.table .river{position:absolute;gap:0}.table .river-top{left:50%;top:calc(var(--cell)*1.8);transform:translate(-50%)}.table .river-top[data-river-overflow=true]{top:calc(var(--cell)*1.8 + 3px)}.table .river-right{right:calc(var(--cell)*1.2);top:50%;transform:translateY(-50%)}.table .river-bottom{left:50%;bottom:calc(var(--cell)*1.8);right:auto;transform:translate(-50%)}.table .river-left{left:calc(var(--cell)*1.2);top:50%;bottom:auto;transform:translateY(-50%)}.table .river-bottom[data-river-rows]:not([data-river-rows="3"]){top:calc(100% - var(--cell)*1.8 - var(--table-tile-height)*.76*3 - 2px);bottom:auto}.table:has(.river-bottom[data-river-rows]:not([data-river-rows="3"])) .seat-bottom{bottom:1px}.table .center-info{position:absolute;left:calc(var(--cell)*4.325);top:calc(var(--cell)*4.25);width:calc(var(--cell)*3 - 1px);height:calc(var(--cell)*3 - 1px);padding:2px;gap:2px;font-size:9px}.table .wall-count{gap:2px}.table #player-hand{display:flex;width:auto;max-width:100%;align-self:center;container-type:normal}.table #player-hand li{flex:0 0 var(--table-tile-width);width:var(--table-tile-width)}.table #player-hand .revealed-tile{display:block;flex:none;width:var(--table-tile-width);height:var(--table-tile-height)}.table #player-hand .revealed-tile .tile-svg{width:100%;height:100%}.table #player-hand .tile-choice{max-width:none;margin:0}.table #player-hand .tile-choice{width:100%}.table .seat .revealed-tile{display:block;flex:none;width:var(--river-tile-width);height:var(--river-tile-height)}.table .seat .revealed-tile .tile-svg{width:100%;height:100%}.table .winning-tile{outline:2px solid #ffda7d;outline-offset:-2px}.table .seat-top .revealed-tile,#online-match .seat-top .public-hand-tile{rotate:180deg}@media(max-height:650px)and (max-width:599px){.table .seat-bottom{gap:8px;padding:0}}@media(min-width:600px)and (max-height:850px){.table{container-type:inline-size;width:min(100%,calc(100svh - 32px));margin-inline:0;align-self:center;--table-tile-width:min(42px,round(down,calc((100svh - 53px) / 14),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4)}.table .seat,.table .rivers{--table-tile-width:min(42px,round(down,calc((100cqw - 22px) / 14),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4);--river-tile-width:calc(var(--table-tile-width)*.76);--river-tile-height:calc(var(--table-tile-height)*.76)}.table-summary{--table-tile-width:min(42px,round(down,calc((100svh - 96px) / 15.8),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4)}}@supports (height:100dvh){@media(min-width:600px)and (max-height:850px){.table{width:min(100%,calc(100dvh - 32px));--table-tile-width:min(42px,round(down,calc((100dvh - 53px) / 14),.1px))}.table-summary{--table-tile-width:min(42px,round(down,calc((100dvh - 96px) / 15.8),.1px))}}}@media(max-width:599px)and (max-height:600px){.table{width:min(100%,calc(100svh - 268px));margin-inline:0;align-self:center}}@supports (height:100dvh){@media(max-width:599px)and (max-height:600px){.table{width:min(100%,calc(100dvh - 268px))}}}.table .river-tile{width:var(--river-tile-width);height:var(--river-tile-height);justify-self:center;align-self:center}.table .river-left .river-tile,.table .river-right .river-tile{width:var(--river-tile-height);height:var(--river-tile-width)}.table .center-info{justify-content:center;gap:2px;font-size:clamp(8px,1.8cqw,11px);line-height:1.25}.table .round-label{white-space:nowrap;font-size:clamp(8px,1.8cqw,11px);line-height:inherit}.table .center-info .dora-area{--dora-width:var(--river-tile-width);--dora-height:var(--river-tile-height);flex:none}.table .center-info .dora-indicators{grid-template-columns:repeat(5,var(--dora-width));grid-template-rows:none;grid-auto-rows:var(--dora-height)}.table .center-info .dora-slot,.table .center-info .dora-slot .tile-svg{width:var(--dora-width);height:var(--dora-height)}.table .center-info .deposit-sticks{margin-top:1px;gap:1px}.table .center-info>div{flex-shrink:0}.dora-slot{position:relative}.dora-slot.ura-indicator:nth-child(6):after{content:attr(data-ura-label);position:absolute;left:0;bottom:0;background:#ffda7d;color:#123f32;font-size:6px;line-height:1}.table .wall-dead-count{color:inherit}.declaration-bubble{position:absolute;z-index:40;display:flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:min(150px,calc(100% - 8px));padding:8px 12px;border:2px solid #805300;border-radius:15px;background:#fff1b8;color:#26372b;box-shadow:0 3px 8px #00000059;font-size:clamp(21px,7vw,29px);font-weight:900;line-height:1;white-space:nowrap;writing-mode:horizontal-tb;text-orientation:mixed;pointer-events:none;-webkit-user-select:none;user-select:none}.declaration-bubble:after{position:absolute;width:12px;height:12px;background:inherit;content:""}.declaration-bubble-top:after{top:-8px;left:calc(50% - 6px);border-top:2px solid #805300;border-left:2px solid #805300;transform:rotate(45deg)}.declaration-bubble-right:after{top:calc(50% - 6px);right:-8px;border-top:2px solid #805300;border-right:2px solid #805300;transform:rotate(45deg)}.declaration-bubble-bottom:after{bottom:-8px;left:calc(50% - 6px);border-right:2px solid #805300;border-bottom:2px solid #805300;transform:rotate(45deg)}.declaration-bubble-left:after{top:calc(50% - 6px);left:-8px;border-bottom:2px solid #805300;border-left:2px solid #805300;transform:rotate(45deg)}.table .center-info .deposit-stick{width:clamp(18px,calc(var(--cell)*.48),30px);height:clamp(6px,calc(var(--cell)*.16),10px)}.table .center-info{left:50%;top:calc(var(--cell)*4.15);transform:translate(-50%);width:calc(var(--cell)*4.65 - 1px);height:auto;min-height:calc(var(--cell)*3 - 1px);padding:0 1px;gap:1px}.table .center-info:has(.ura-indicator){gap:1px}.table .round-summary{display:flex;justify-content:center;align-items:flex-start;gap:2px;letter-spacing:-.95px;white-space:nowrap;overflow-wrap:normal;font-size:clamp(12px,2.4cqw,15px);line-height:1.2}.table .round-label{white-space:nowrap}.table .wall-count{display:block}.table .center-info .deposit-sticks{margin-top:0;gap:2px;flex:none}.table .center-info .deposit-stick{flex:none;width:44px;height:11.73px}.table .round-summary .round-label{font-weight:400}@media(max-width:599px){.table .center-info{top:calc(var(--cell)*4.15 - 1.5px)}.table .round-summary,.table .round-label,.table .wall-count{font-size:16px;line-height:1.2}.table .round-summary{flex-direction:column;align-items:center;gap:1px;letter-spacing:normal}.table .round-label{font-weight:600}.table .wall-count{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.table .wall-dead-count{font-size:12px}.table .center-info .deposit-sticks:has(.deposit-stick:nth-child(3)) .deposit-stick{width:min(44px,calc(33.333% - 1.333px));height:auto;aspect-ratio:60 / 16}.table .center-info .deposit-sticks:has(.deposit-stick:nth-child(4)) .deposit-stick{width:min(44px,calc(25% - 1.5px))}}@media(min-width:960px){main:has(#local-game-layout),main:has(#online-match){width:min(100%,1440px);padding:max(8px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}#local-game-layout,#online-match{--pc-controls-space:120px;--pc-board-size:min(860px,max(450px,calc(100svh - 44px - 76px - 24px - max(8px,env(safe-area-inset-top,0px)) - max(8px,env(safe-area-inset-bottom,0px)) - var(--pc-controls-space))));display:flex;flex:none;flex-direction:column;align-items:center;gap:8px;width:100%;min-width:0}@supports (height:100dvh){#local-game-layout,#online-match{--pc-board-size:min(860px,max(450px,calc(100dvh - 44px - 76px - 24px - max(8px,env(safe-area-inset-top,0px)) - max(8px,env(safe-area-inset-bottom,0px)) - var(--pc-controls-space))))}}#local-game-layout>*,#online-match>*{width:min(100%,var(--pc-board-size));flex:none}#local-game-layout>#local-table,#online-match>#online-table{width:min(100%,var(--pc-board-size));margin:0;align-self:center;--table-tile-width:min(52px,round(down,calc((100cqw - 18px) / 16.2),.1px))}#local-game-controls,#online-game-controls{min-height:108px;padding:6px}#local-game-controls.result-available,#online-game-controls.result-available{min-height:0;padding:4px 6px;gap:4px}#round-result-summary{padding:4px 8px;line-height:1.2}#round-result-summary p{margin:0}#online-match:has(.discard-controls.result-available) #online-round-result{padding:4px 8px}#online-match:has(.discard-controls.result-available) #online-round-result h2,#online-match:has(.discard-controls.result-available) #online-round-result h3,#online-match:has(.discard-controls.result-available) #online-round-result p{margin:0;line-height:1.2}.decision-controls>.action-group-status,.decision-buttons .control-action-button{font-size:14px}.table .seat-label,.score-strip .seat-label{font-size:14px;line-height:1.2}.table .seat,.table .rivers{--table-tile-width:min(52px,round(down,calc((100cqw - 22px) / 16.2),.1px));--table-tile-height:calc(var(--table-tile-width)*1.4);--river-tile-width:calc(var(--table-tile-width)*.76);--river-tile-height:calc(var(--table-tile-height)*.76);--cell:calc(var(--table-tile-height) + 1px)}.table .seat{--meld-headroom:calc(var(--table-tile-width) + 2px)}.table .seat-right .open-melds{transform:translate(calc(var(--river-tile-width)*.75 + 4.5px),calc(var(--river-tile-width)*.1))}.table .seat-left .open-melds{transform:translate(calc(0px - var(--river-tile-width)*.75 + 9px),calc(var(--river-tile-width)*.1))}.table .center-info{font-size:14px}.table .round-summary{flex-wrap:wrap;font-size:16px;letter-spacing:normal}.table .round-label{font-size:16px}.table .wall-count,.table .center-info .dora-area h2{font-size:14px}}button.ui-button:not(.tile-choice),.ui-button:not(.tile-choice){background-color:var(--button-normal-bg);color:var(--button-normal-fg);border-color:var(--button-normal-fg);box-shadow:inset 0 0 0 1px var(--button-normal-fg);touch-action:manipulation}button.ui-button:active:not(:disabled):not([aria-busy=true]):not(.tile-choice),.ui-button:active:not(:disabled):not([aria-busy=true]):not(.tile-choice){background-color:var(--button-pressed-bg)}button.ui-button.ui-button:disabled:not([aria-busy=true]),.ui-button.ui-button:disabled:not([aria-busy=true]){background-color:var(--button-disabled-bg);color:var(--button-disabled-fg);border-color:var(--button-disabled-fg);box-shadow:inset 0 0 0 1px var(--button-disabled-fg);opacity:1;cursor:default}button.ui-button[aria-busy=true],.ui-button[aria-busy=true]{position:relative;cursor:wait}button.ui-button[aria-busy=true]:after,.ui-button[aria-busy=true]:after{content:"";position:absolute;top:4px;right:4px;width:8px;height:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-wait .8s linear infinite;pointer-events:none}@keyframes button-wait{to{transform:rotate(360deg)}}button.ui-button.ui-button:focus-visible:not(.tile-choice),a.ui-button:focus-visible{outline:3px solid var(--button-focus);outline-offset:2px;box-shadow:inset 0 0 0 2px var(--button-focus-inner)}button.tile-choice.ui-button.ui-button:focus-visible{outline:3px solid var(--button-focus);outline-offset:2px;box-shadow:inset 0 0 0 2px var(--button-focus-inner)}button.ui-button.ui-button[aria-pressed=true]:not(.tile-choice):not(:disabled){box-shadow:inset 0 0 0 2px var(--button-focus-inner)}.tile-choice.ui-button{background-color:transparent;color:inherit;border-color:transparent;box-shadow:none}button.tile-choice.ui-button.ui-button:disabled{background-color:transparent;color:inherit;border-color:transparent;box-shadow:none}button.tile-choice.ui-button[aria-pressed=true]{background-color:transparent;outline:2px solid var(--button-focus-inner);outline-offset:0;box-shadow:inset 0 0 0 2px var(--button-focus-inner)}button.tile-choice.ui-button[aria-pressed=true]:disabled{transform:none}.pwa-update-notice{flex:none;height:44px}.pwa-update-notice p{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pwa-update-notice button{min-width:44px;height:44px;min-height:44px;padding:0 8px;font-size:14px;white-space:nowrap}
