:root{color-scheme:light;--ink:#123d36;--muted:#59746c;--green:#087963;--mint:#e8f8ef;--line:#d5e8de;--paper:#fbfdf9;--gold:#efc75e}*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #de9f24;outline-offset:4px}button:disabled{opacity:.6;cursor:wait}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:19px max(24px,calc((100vw - 1240px)/2));background:var(--paper)}.brand{font-size:29px;font-weight:850;letter-spacing:-1.7px;text-decoration:none}.brand span{font-size:13px;letter-spacing:.3px;font-weight:500;margin-left:14px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:14px}.connection{font-size:12px;color:var(--muted);white-space:nowrap}.connection[data-status=live]:before{content:"";display:inline-block;width:7px;height:7px;background:#199a68;border-radius:50%;margin-right:6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border:1px solid transparent;border-radius:10px;background:var(--green);color:white;padding:12px 20px;text-decoration:none;font-weight:650;min-height:44px}.button.quiet{background:transparent;border-color:var(--line);color:var(--ink)}.button.compact{font-size:13px;padding:9px 14px}.button:hover{filter:brightness(.94)}.text-link{font-size:14px;font-weight:650;border:0;background:none;padding:10px 0;text-decoration:none;color:var(--green)}main{max-width:1240px;margin:auto;padding:0 28px}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:44px;align-items:center;padding:66px 0 64px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;margin:0 0 11px;color:var(--green)}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:clamp(38px,4.5vw,62px);line-height:1.07;letter-spacing:-2.5px;margin:0 0 22px;font-weight:760}h1 span{color:#16a776}.hero-copy{font-size:16px;line-height:1.8;color:var(--muted);margin:0 0 26px}.hero-links{display:flex;align-items:center;gap:24px}.hero-art{position:relative;background:#dff3e5;border:1px solid #d3e9d9;min-height:305px;border-radius:38% 38% 28px 28px;overflow:hidden}.art-court{position:absolute;width:67%;height:73%;left:17%;top:12%;border:3px solid #c7ecd4;background:#75b992;transform:rotate(-16deg);box-shadow:0 16px 30px #30755718}.art-court:before{content:"";position:absolute;inset:18% 0;border-top:2px solid #d8f3db;border-bottom:2px solid #d8f3db}.art-court:after{content:"";position:absolute;top:50%;width:100%;border-top:4px solid #e7f7e5}.court-line{position:absolute;left:50%;height:64%;top:18%;border-left:2px solid #d8f3db}.court-ball{position:absolute;left:22%;top:25%;width:21px;height:21px;border-radius:100%;background:#e5ec86;box-shadow:4px 7px 0 #2a65462a}.art-tile{position:absolute;font-family:serif;left:9%;bottom:13%;font-size:63px;line-height:1.5;color:#14745b;padding:0 18px;background:#fffef0;border-radius:13px;transform:rotate(14deg);box-shadow:0 7px 0 #bed8ad,0 12px 20px #3256432b}.art-lion{position:absolute;right:12%;top:10%;font-size:93px;line-height:1;color:#d78035;text-shadow:0 3px #fff6bd;transform:rotate(12deg)}.art-label{position:absolute;bottom:15px;right:20px;font-size:10px;letter-spacing:1px;color:#315d48}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:21px}h2{font-size:26px;line-height:1.2;letter-spacing:-.7px;margin:0}h3{font-size:18px;margin:0}.count-label{font-size:12px;color:var(--muted)}.filters{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.sport-filters{display:flex;gap:8px;flex-wrap:wrap}.filter{border:1px solid var(--line);border-radius:24px;color:var(--muted);background:transparent;padding:9px 17px;min-height:42px;font-size:13px}.filter.active{background:var(--ink);border-color:var(--ink);color:white}.search input{background:white;border:1px solid var(--line);border-radius:10px;padding:11px 14px;min-height:44px;width:230px;color:var(--ink)}.room-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.room-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;transition:transform .15s,border-color .15s}.room-card:hover{transform:translateY(-3px);border-color:#77b298}.room-preview{height:116px;position:relative;display:flex;align-items:center;justify-content:center;background:#e5f4e8;overflow:hidden}.room-preview.padel{background:#e2f0f8}.room-preview.barongsai{background:#fcf0dc}.preview-mark{font-size:61px;font-family:serif;color:#277b58;line-height:1;transform:rotate(-9deg)}.padel .preview-mark{font-family:inherit;color:#5d9cb7;font-size:82px;transform:rotate(-19deg)}.barongsai .preview-mark{color:#c77a31;font-size:83px}.room-badges{position:absolute;display:flex;gap:5px;top:12px;left:12px;right:12px}.badge{font-size:10px;font-weight:650;border-radius:6px;padding:4px 7px;background:#ffffffdb;color:#2a654d}.badge.live{background:var(--green);color:#fff}.badge.league{background:#f1cd77;color:#5b4712}.card-body{padding:17px 18px}.room-card h3{font-size:17px;line-height:1.35;margin-bottom:7px}.room-card .room-meta{font-size:12px;color:var(--muted);margin:0 0 20px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}.watch-link{color:var(--green);font-weight:750;font-size:12px}.muted{color:var(--muted);font-size:13px}.directory>.muted{margin:18px 0 0;font-size:12px}.empty{grid-column:1/-1;border:1px dashed #b6d7c6;background:var(--mint);border-radius:12px;padding:28px;text-align:center;font-size:14px;color:var(--muted);margin:0}.competitions{margin-top:50px;border-top:1px solid var(--line);padding-top:35px}.competitions .section-heading{margin-bottom:12px}.competition-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.competition-card{display:flex;gap:15px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:18px;text-decoration:none;background:#fff;min-width:0}.competition-card:hover{border-color:#77b298}.competition-mark{display:grid;place-items:center;width:45px;height:45px;flex-shrink:0;border-radius:11px;background:var(--mint);color:var(--green);font-size:22px}.competition-card h3{font-size:15px;line-height:1.4}.competition-card p{font-size:11px;color:var(--muted);margin:4px 0 0}.competition-arrow{margin-left:auto;color:var(--green)}footer{display:flex;flex-wrap:wrap;gap:20px;align-items:center;border-top:1px solid var(--line);margin:45px 0 0;padding:23px 0 28px;font-size:11px;color:var(--muted)}footer a{text-decoration:none}footer span{margin-left:auto}.notice{padding:16px 18px;background:#fff4d9;border:1px solid #efdcae;border-radius:10px;margin-top:20px;font-size:14px}.viewer{padding-top:25px}.viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.viewer-heading h1{font-size:35px;letter-spacing:-1.2px;margin:0 0 8px}.viewer-heading .eyebrow{margin:7px 0}.viewer-heading .muted{margin:0}.back{font-size:12px}.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:20px;align-items:start}.view-panel{min-width:0;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:white}.view-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;font-size:12px;font-weight:650;background:#f5fbf5;border-bottom:1px solid var(--line)}.view-label{font-size:9px;letter-spacing:1px;white-space:nowrap;color:var(--muted)}.visual{position:relative;background:#dcefe4;min-height:360px;display:grid;place-items:center}.visual>.empty{margin:24px}.visual canvas{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;aspect-ratio:1.3;background:#e1f0e7}.play-description{padding:12px 17px;font-size:12px;color:var(--muted);min-height:43px}.side-panel{display:flex;flex-direction:column;gap:16px}.score-card,.roster-panel,.league-panel{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}.score-card .eyebrow,.roster-panel .eyebrow,.league-panel .eyebrow{font-size:9px;margin-bottom:7px}.side-panel h2{font-size:20px;margin-bottom:15px}.score-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #eef4ef;font-size:13px;align-items:center}.score-row:last-child{border:0}.score-row strong{font-size:22px;line-height:1.1}.score-row small{color:var(--muted);font-size:10px}.score-big{font-size:38px;letter-spacing:-1px;font-weight:750;margin:0}.score-caption{font-size:12px;color:var(--muted);margin:0 0 12px}.player-row{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:12px}.player-number{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--mint);flex-shrink:0;font-size:11px;color:var(--green)}.player-row small{display:block;color:var(--muted);font-size:10px}.read-only-note{font-size:11px;color:var(--muted);padding:0 6px;margin:0}.league-row{display:grid;grid-template-columns:22px 1fr auto;gap:8px;font-size:12px;padding:10px 0;border-top:1px solid var(--line)}.league-row strong{color:var(--green)}.mahjong-table{width:100%;height:520px;padding:10px;background:radial-gradient(ellipse at center,#398c6b,#17654e);display:grid;grid-template-columns:24% 52% 24%;grid-template-rows:25% 50% 25%;color:#f5fff6}.mahjong-seat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;text-align:center;border:1px solid #8dc2a32b;border-radius:10px;background:#135d452d}.mahjong-seat.turn{background:#bce4a71a;border-color:#dfd38a}.seat-0{grid-column:2;grid-row:3}.seat-1{grid-column:3;grid-row:2}.seat-2{grid-column:2;grid-row:1}.seat-3{grid-column:1;grid-row:2}.seat-name{font-size:11px;font-weight:700;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.seat-caption{font-size:8px;color:#cce2d5;margin:3px 0}.tile-row{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:4px;max-width:100%}.tile{position:relative;display:inline-flex;width:20px;height:28px;flex-shrink:0;background:#fffcee;border:1px solid #e6e3c9;border-bottom:3px solid #c6d0aa;border-radius:3px;overflow:hidden;align-items:center;justify-content:center}.tile img{width:100%;height:100%;object-fit:contain}.tile-label{display:none}.tile-back{background:#d1e5ad;border-color:#e8ecc6;border-bottom-color:#97bb88}.tile-back:after{content:"";position:absolute;inset:3px;border:1px solid #79a77880;border-radius:2px}.concealed-hand{gap:1px}.concealed-hand .tile{width:9px;height:18px;border-width:1px;border-bottom-width:2px}.concealed-hand .tile:after{inset:2px}.table-center{grid-column:2;grid-row:2;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:7px}.wall-count{text-align:center;font-size:10px;letter-spacing:.3px;color:#dff2dd;margin:0 0 7px}.discards{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-height:0;overflow:auto}.discard-zone{padding:4px;border:1px solid #bfe4c522;border-radius:5px;min-width:0}.discard-zone .tile-row{gap:1px;justify-content:flex-start}.discard-zone .tile{width:16px;height:22px;border-bottom-width:2px}.discard-label{display:block;font-size:7px;color:#cde3d0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.table-last{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:7px;font-size:9px}.table-last .tile{width:24px;height:33px}.lobby-visual{width:100%;padding:40px 24px;text-align:center}.lobby-symbol{font-size:70px;line-height:1.1;color:var(--green);font-family:serif}.lobby-visual h2{margin:18px 0 10px}.lobby-visual p{font-size:13px;color:var(--muted);max-width:350px;margin:auto}dialog{border:1px solid var(--line);border-radius:18px;max-width:450px;width:calc(100% - 32px);color:var(--ink);padding:25px;box-shadow:0 20px 70px #123d362e}dialog::backdrop{background:#173c2d66}dialog h2{font-size:21px}dialog p{font-size:13px;color:var(--muted)}dialog label{display:block;font-size:12px;margin:16px 0 6px}dialog input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);font-size:12px}.full{width:100%;margin-top:12px}.sr-only,.skip-link{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{z-index:5;clip:auto;width:auto;height:auto;background:#fff;padding:12px}
@media(max-width:950px){.topbar{padding:16px 24px}.hero{gap:30px;padding:44px 0}.hero-art{min-height:265px}.room-list{grid-template-columns:repeat(2,minmax(0,1fr))}.watch-layout{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.mahjong-table{height:460px}.score-card,.roster-panel,.league-panel{padding:16px}.visual{min-height:310px}.visual canvas{aspect-ratio:1}.filters{flex-wrap:wrap}.search{flex:1}.search input{width:100%}}
@media(max-width:650px){.topbar{padding:14px 18px;gap:10px}.brand{font-size:26px}.brand span{margin-left:8px;font-size:10px}.top-actions{gap:8px}.top-actions>a{display:none}.connection{font-size:10px}.button.compact{padding:8px 11px;min-height:38px}main{padding:0 18px}.hero{grid-template-columns:1fr;gap:24px;padding:34px 0 31px}.hero h1{font-size:42px;letter-spacing:-2px}.hero-copy{font-size:14px;line-height:1.75;margin-bottom:20px}.hero-art{display:none}.hero-links{gap:22px}.hero-links .button{font-size:13px;padding:11px 16px}.hero-links .text-link{font-size:12px}.eyebrow{font-size:9px}.section-heading{gap:10px;align-items:flex-end;margin-bottom:18px}h2{font-size:23px}.count-label{font-size:10px;text-align:right}.filters{gap:13px}.sport-filters{width:100%;gap:6px;flex-wrap:nowrap}.filter{flex:1;padding:8px 9px;font-size:11px;min-height:41px}.search{width:100%}.search input{font-size:13px}.room-list{gap:12px}.room-preview{height:93px}.room-badges{left:8px;top:8px;gap:3px;flex-wrap:wrap}.badge{font-size:8px;padding:3px 5px}.preview-mark{font-size:51px}.padel .preview-mark,.barongsai .preview-mark{font-size:69px}.card-body{padding:13px 12px}.room-card h3{font-size:14px}.room-card .room-meta{font-size:10px;margin-bottom:12px}.card-bottom{font-size:9px;flex-wrap:wrap;gap:5px}.watch-link{font-size:10px}.directory>.muted{font-size:11px}.competitions{margin-top:34px;padding-top:27px}.competitions .muted{font-size:12px}.competition-list{grid-template-columns:1fr}.competition-card{padding:14px}.competition-card h3{font-size:14px}.competition-mark{width:39px;height:39px}.viewer{padding-top:14px}.viewer-heading{margin-bottom:15px;gap:10px}.viewer-heading h1{font-size:26px}.viewer-heading .muted{font-size:11px}.viewer-heading .button{font-size:12px;padding:10px 12px}.watch-layout{grid-template-columns:1fr}.visual{min-height:320px}.visual canvas{aspect-ratio:1;max-height:480px}.view-bar{font-size:11px;padding:12px}.view-label{font-size:8px}.side-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}.side-panel h2{font-size:18px}.roster-panel,.score-card,.league-panel{padding:15px}.league-panel,.read-only-note{grid-column:1/-1}.mahjong-table{height:470px;padding:7px}.mahjong-seat{padding:3px}.seat-name{font-size:9px}.seat-caption{font-size:7px}.table-center{padding:4px}.tile{width:16px;height:23px}.concealed-hand .tile{width:7px;height:15px}.discard-zone{padding:3px}.discard-zone .tile{width:13px;height:19px}.wall-count{font-size:8px}.table-last{font-size:8px}.discards{gap:3px}.play-description{font-size:11px}.score-row{font-size:11px}.score-row strong{font-size:19px}.player-row{font-size:11px;gap:7px}.player-number{width:24px;height:24px}.player-row small{font-size:9px}.score-big{font-size:32px}footer{gap:14px;font-size:10px;margin-top:30px}footer span{width:100%;margin-left:0}.notice{font-size:12px;padding:13px}.empty{font-size:12px;padding:23px}}
@media(max-width:900px) and (orientation:landscape) and (max-height:540px){.topbar{padding:9px 18px}.viewer{padding-top:7px}.viewer-heading{margin-bottom:10px}.viewer-heading h1{font-size:22px;margin-bottom:3px}.viewer-heading .eyebrow{font-size:8px;margin:0}.back{padding:3px 0}.viewer-heading .muted{font-size:10px}.watch-layout{grid-template-columns:minmax(0,1fr) 220px;gap:12px}.side-panel{display:flex}.view-bar{padding:8px 12px}.visual{min-height:230px}.visual canvas{aspect-ratio:1.65;max-height:390px}.mahjong-table{height:365px}.hero{padding:24px 0}.hero-art{min-height:230px}.viewer-heading .button{padding:8px 12px;min-height:39px}.table-center .tile{width:13px;height:18px}.tile{width:16px;height:22px}.score-card,.roster-panel,.league-panel{padding:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.room-card{transition:none}}
dialog{max-height:85vh;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}
dialog:not([open]){display:none}
.seat-rack{display:contents}
.viewer-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#viewer-connection,#viewer-reconnect{display:none}
@media(orientation:landscape) and (max-height:700px){
body[data-view=watch] .topbar{display:none}
body[data-view=watch] main{padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}
body[data-view=watch] .viewer{padding-top:0}
body[data-view=watch] .viewer-heading{height:50px;margin:0;gap:12px}
body[data-view=watch] .viewer-heading>div{display:flex;align-items:center;gap:16px;min-width:0}
body[data-view=watch] .viewer-heading .viewer-actions{gap:8px}
body[data-view=watch] #viewer-connection{display:inline;font-size:9px}
body[data-view=watch] #viewer-reconnect{display:inline-flex}
body[data-view=watch] .notice{position:fixed;top:54px;left:max(12px,env(safe-area-inset-left));right:234px;z-index:3;max-height:calc(100vh - 75px);max-height:calc(100dvh - 75px);overflow-y:auto;margin:0;padding:12px;font-size:11px;box-shadow:0 8px 24px #143f3626}
body[data-view=watch] .viewer-heading .eyebrow,body[data-view=watch] .viewer-heading .muted{display:none}
body[data-view=watch] .viewer-heading h1{font-size:18px;letter-spacing:-.6px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-view=watch] .back{font-size:11px;white-space:nowrap;padding:13px 0}
body[data-view=watch] .viewer-heading .button{font-size:11px;padding:8px 12px;min-height:36px}
body[data-view=watch] .watch-layout{grid-template-columns:minmax(0,1fr) 210px;gap:12px;height:calc(100vh - 58px - env(safe-area-inset-bottom));height:calc(100dvh - 58px - env(safe-area-inset-bottom))}
body[data-view=watch] .view-panel{height:100%;display:flex;flex-direction:column;border-radius:12px}
body[data-view=watch] .view-bar{min-height:28px;padding:6px 10px;font-size:10px;flex-shrink:0}
body[data-view=watch] .visual{flex:1;min-height:0;display:flex;align-items:stretch}
body[data-view=watch] .visual canvas{width:100%;height:100%;max-height:none;aspect-ratio:auto}
body[data-view=watch] .play-description{min-height:25px;max-height:36px;overflow:auto;padding:5px 10px;font-size:10px;flex-shrink:0}
body[data-view=watch] .side-panel{display:flex;height:100%;overflow-y:auto;padding-bottom:2px;overscroll-behavior:contain}
body[data-view=watch] .side-panel>div,body[data-view=watch] .side-panel>section{flex-shrink:0}
body[data-view=watch] .mahjong-table{height:100%;padding:5px;min-height:0}
body[data-view=watch] .mahjong-seat{padding:3px;overflow:hidden;justify-content:flex-start}
body[data-view=watch] .seat-name{font-size:9px;line-height:12px;flex-shrink:0}
body[data-view=watch] .seat-caption{font-size:7px;line-height:9px;margin:1px 0;flex-shrink:0}
body[data-view=watch] .seat-rack{display:flex;align-items:center;justify-content:flex-start;gap:3px;max-width:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
body[data-view=watch] .seat-rack .tile-row{flex-shrink:0;flex-wrap:nowrap;margin-top:1px;max-width:none}
body[data-view=watch] .seat-1 .seat-rack,body[data-view=watch] .seat-3 .seat-rack{flex-direction:column}
body[data-view=watch] .table-center{padding:3px;min-height:0}
body[data-view=watch] .wall-count{font-size:8px;margin-bottom:3px;flex-shrink:0}
body[data-view=watch] .discards{flex:1;min-height:0;overflow:auto}
body[data-view=watch] .table-last{font-size:8px;margin-top:3px;flex-shrink:0}
body[data-view=watch] .table-last .tile{width:16px;height:21px}
body[data-view=watch] .lobby-visual{padding:15px}
body[data-view=watch] .lobby-symbol{font-size:44px}
body[data-view=watch] .lobby-visual h2{font-size:20px;margin:10px 0}
}
