.mahjong-page{min-width:0}.mahjong-page .board-game-play{display:block;min-width:0;max-width:100%}.mahjong-page button,.mahjong-page select,.mahjong-page input:not([type=checkbox]){min-height:44px}.mahjong-page button{white-space:normal}.mahjong-setup{padding:1rem;border:1px solid #9ba59b;border-radius:12px}.mahjong-setup label{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.7rem 0}.mahjong-setup input,.mahjong-setup select{min-width:0;max-width:100%;box-sizing:border-box}.mahjong-frame{overflow:auto;max-width:100%;min-width:0;border:2px solid #426755;border-radius:10px;background:#254f42;max-height:78vh}.mahjong-board{position:relative;isolation:isolate;margin:12px;box-sizing:content-box}.mahjong-tile{position:absolute;width:62px;height:80px;padding:2px!important;border:2px solid #807663!important;border-radius:7px;background:#fff7de!important;color:#173f34!important;box-shadow:0 5px #b1a17f,3px 4px #74684d;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;cursor:pointer;box-sizing:border-box;line-height:1.05}.mahjong-tile svg{width:39px;height:45px;flex:none;fill:currentColor;stroke:currentColor;stroke-width:1.4}.mahjong-tile svg path{fill:none}.mahjong-tile svg text{font-size:22px;stroke:none;text-anchor:middle;font-weight:800}.mahjong-tile svg .mahjong-numeral{font-size:26px}.mahjong-tile svg .mahjong-bonus-number{font-size:10px}.mahjong-tile span{font-size:10px;max-width:56px;overflow-wrap:anywhere;line-height:1.05;font-weight:700}.mahjong-family-0{color:#204d84!important}.mahjong-family-1{color:#1d6548!important}.mahjong-family-2{color:#852e35!important}.mahjong-family-3{color:#573b75!important}.mahjong-family-4{color:#7a451a!important}.mahjong-blocked{background:#e4dfce!important}.mahjong-selected{outline:4px solid #ed9a1b!important;outline-offset:-5px}.mahjong-tile:focus-visible{outline:3px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 5px #143a31,0 5px #b1a17f}.mahjong-large .mahjong-tile span{font-size:12px}.mahjong-large .mahjong-tile svg{height:42px}.mahjong-preview{padding:1rem;border:2px solid #426755;border-radius:12px;margin:1rem 0}.mahjong-preview button{margin:.25rem;max-width:100%}.mahjong-record{padding:.7rem;border:1px solid #9ba59b;border-radius:10px;margin:.6rem 0;min-width:0;overflow-wrap:anywhere}.mahjong-record h3{margin-top:0}.mahjong-warning{padding:1rem;background:#fff0cb;border:2px solid #8a5012}.mahjong-page .board-game-actions{position:static;display:flex;flex-wrap:wrap;gap:.5rem}.mahjong-page .board-game-result{min-width:0;overflow-wrap:anywhere}.mahjong-page details{min-width:0;overflow-wrap:anywhere}.mahjong-page p{overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.mahjong-page *{transition:none!important;animation:none!important}}.board-game-page.mahjong-page{width:100%;max-width:1000px;min-width:0;box-sizing:border-box}.mahjong-page .mahjong-preview button,.mahjong-page .board-game-actions>button{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}.mahjong-page .board-game-records p{min-width:0;display:block}@media (max-width:480px){.board-game-page.mahjong-page{padding:16px 12px}.mahjong-page .mahjong-preview{padding:12px}.mahjong-page .mahjong-preview button{display:block;width:100%;margin:8px 0}}.mahjong-slot{position:absolute;right:2px;top:2px;font-size:9px;line-height:1;background:#fff7de;color:#274a3f;padding:1px;border-radius:2px}.mahjong-page label{min-height:44px}.mahjong-page .board-game-actions>label{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .25rem;box-sizing:border-box}.mahjong-page details>summary{min-height:44px;padding:8px 0;box-sizing:border-box;cursor:pointer}
