:root{color-scheme:dark;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#f6edda;background:#081f19;--gold:#edcf91;--muted:#abc1b1;--line:#b3bf8640}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at top left,#25523d44,transparent 65%)}button,input{font:inherit}button{cursor:pointer;color:#eddfb5;background:#244b3b;border:1px solid #bba66b88;border-radius:9px;padding:10px 14px;min-height:42px}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}a{color:inherit;text-decoration:none}.gold{background:linear-gradient(120deg,#f2dcaa,#c8a362);color:#20392b;font-weight:700}.danger{background:#703e39;border-color:#ae7068}.textButton{background:none;border:0;padding:5px 8px;font-size:12px}.header{height:66px;max-width:1240px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--gold);font-size:22px;font-weight:700}.brand img{width:38px;height:44px}.brand small{display:block;margin-top:4px;line-height:1.2;font-size:8px;letter-spacing:2px;font-weight:400;color:var(--muted)}nav{display:flex;gap:16px;align-items:center;font-size:12px}.lobby{max-width:1100px;padding:0 24px;margin:38px auto 60px;display:grid;grid-template-columns:1.1fr 1fr;gap:38px 60px}.welcome{position:relative;min-height:390px;padding:23px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);margin:0 0 14px}h1{font-size:48px;line-height:1.4;letter-spacing:2px;margin:0 0 20px}h1 span{color:var(--gold)}h2{font-size:24px;margin:0 0 22px}.muted{color:var(--muted);font-size:13px;line-height:1.9}.heroCards{position:absolute;left:265px;bottom:28px;width:165px;height:185px;transform:rotate(12deg)}.heroCards .heroJoker{position:absolute;width:99px;height:142px;background:#f5ecd6;border:1px solid #fff9;border-radius:9px;box-shadow:0 10px 22px #0004;transform:translate(-25px,8px) rotate(-15deg)}.heroCards .heroJoker:nth-child(2){transform:translate(45px,12px) rotate(12deg)}.panel{padding:28px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(135deg,#173c2e,#102d23)}label:not(.privateChoice){display:block;color:var(--muted);font-size:12px;margin:17px 0 8px}input:not([type=checkbox]){width:100%;min-width:0;min-height:45px;border:1px solid #65846a;border-radius:8px;background:#09261d;color:#fff0cc;padding:10px 12px}.joinRow{display:flex;gap:8px}.joinRow button{flex-shrink:0}.entryActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.entryActions small{display:block;font-size:10px;margin-top:3px;font-weight:400}.privateChoice{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted)}#resume{width:100%;margin-top:16px}.error{color:#f1aaa2;font-size:12px;line-height:1.7}.roomSection{grid-column:1/-1;border-top:1px solid var(--line);padding-top:25px}.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.sectionHead h2{margin:0}.roomList{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.roomEntry{border:1px solid var(--line);background:#123428;border-radius:12px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:8px}.roomEntry b{letter-spacing:2px}.roomEntry p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 0}.roomEntry button{font-size:12px}.roomList>.muted{grid-column:1/-1}.tablePage{max-width:1440px;margin:auto;padding:0 18px 12px;height:calc(100dvh - 66px);min-height:600px;display:grid;grid-template-rows:48px minmax(270px,1fr) auto;gap:8px}.tableToolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:11px}.tableToolbar>div{display:flex;gap:7px}.roomBadge{font-size:12px;min-height:36px;padding:6px 10px}.roomBadge b{letter-spacing:2px}#connection{color:var(--muted)}.board{position:relative;overflow:hidden;border:1px solid #a4b06d55;border-radius:70px;background:radial-gradient(ellipse,#206b4c,#104b35 65%,#09392a);box-shadow:inset 0 0 0 7px #052d2355,inset 0 0 70px #001c1755}.boardTexture{position:absolute;inset:14px;border:1px solid #b7c89524;border-radius:58px;pointer-events:none}.bottomInfo{position:absolute;top:15px;left:50%;transform:translateX(-50%);text-align:center;font-size:11px;color:#dfce9e}.bottomInfo small{display:block;font-size:10px;white-space:nowrap}.bottomInfo #bottomCards{display:flex;justify-content:center;gap:4px;margin:6px 0}.bottomInfo .card{width:33px;height:47px}.cardBack{display:inline-block;width:33px;height:47px;border:2px solid #a5b58c;border-radius:5px;background:repeating-linear-gradient(45deg,#ffffff14 0 1px,transparent 1px 5px),#337153}.seat{position:absolute;top:35%;width:132px;max-width:18%;padding:12px 8px;background:#082e23e8;border:1px solid var(--line);border-radius:12px;text-align:center;z-index:2}.seatLeft{left:24px}.seatRight{right:24px}.seat.active{border-color:var(--gold);box-shadow:0 0 0 3px #efcf8b20}.seatName{display:block;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.seat small{display:block;font-size:10px;color:var(--muted);line-height:1.8}.seatCount{display:block;color:var(--gold);margin:7px 0 0;font-size:13px}.role{display:inline-block;font-size:10px;color:#ead39c;border:1px solid #d0b67966;border-radius:5px;padding:2px 6px;margin:5px 0}.role.landlord{background:#a576353b;color:#ffe1a1}.turnStatus{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);width:50%;text-align:center;font-size:14px;line-height:1.8;color:#f7e7b9}.turnStatus b{font:22px Georgia,serif;color:var(--gold);margin-left:6px}.bidControls{position:absolute;bottom:33px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:3}.ready{position:absolute;bottom:22%;left:50%;transform:translateX(-50%);min-width:160px}.recentEvent{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);max-width:85%;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seatPlays{position:absolute;inset:120px 180px 55px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:12px;pointer-events:none}.seatPlay{align-self:center;text-align:center;min-width:0}.seatPlay.left{grid-area:1/1}.seatPlay.right{grid-area:1/2}.seatPlay.bottom{grid-area:2/1/3/3}.seatPlayHeading{display:inline-block;font-size:10px;padding:3px 8px;border:1px solid #bed29a33;border-radius:12px;background:#052c22aa;margin-bottom:6px}.seatPlay.current .seatPlayHeading{color:var(--gold);border-color:#ecd08d99}.playedCards{display:flex;justify-content:center;align-items:center;padding-bottom:4px}.playedCards .card{width:38px;height:55px;margin-left:-14px;opacity:.7}.playedCards .card:first-child{margin-left:0}.seatPlay.current .card{opacity:1;box-shadow:0 0 0 1px #e5c887}.playedCards.many .card{margin-left:-28px}.playedCards.many .card:first-child{margin-left:0}.handArea{min-width:0}.handHeader{display:flex;align-items:center;gap:8px;font-size:12px;min-height:35px}.handHeader #myName{flex:1}.hand{display:flex;align-items:end;justify-content:center;gap:2px;min-height:114px;padding:16px 6px 7px;overflow-x:auto}.card{position:relative;display:inline-block;flex-shrink:0;width:56px;height:81px;min-height:0;padding:0;text-align:left;vertical-align:middle;color:#21382e;background:#f5ecd6;border:1px solid #e3d8ba;border-radius:6px;box-shadow:0 2px 0 #ada78f,0 4px 7px #0004;user-select:none}.card.red{color:#b42b40}.cardArt{display:block;width:100%;height:100%;pointer-events:none}.mobileIndex{display:none}.card.selected{transform:translateY(-11px);outline:2px solid var(--gold);outline-offset:1px}.hand .card{touch-action:manipulation;transition:transform .12s}.playControls{display:flex;align-items:center;justify-content:center;gap:8px;min-height:47px}.playControls button{min-width:65px}#selectionLabel{font-size:10px;color:var(--muted);margin-right:8px}.toast{position:fixed;z-index:20;left:50%;bottom:25px;transform:translateX(-50%);width:max-content;max-width:90%;padding:12px 18px;border-radius:10px;color:#183a2b;background:#eee0ba;font-size:12px;line-height:1.6;text-align:center;box-shadow:0 7px 25px #0005}.dialog{color:#f4e7ca;background:#12382b;border:1px solid #bda261;border-radius:18px;width:min(570px,calc(100% - 28px));padding:25px;max-height:85dvh;overflow:auto}.dialog::backdrop{background:#001b13c9}.dialog p{color:var(--muted);font-size:12px;line-height:1.9}.dialogActions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.wide{width:100%;margin-top:18px}.resultRow{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.resultRow b{color:var(--gold);font-size:21px}.resultRow small{display:block;color:var(--muted);margin-top:4px}.loss{color:#eda6a0!important}
@media(max-width:900px){.roomList{grid-template-columns:repeat(2,1fr)}.heroCards{left:auto;right:8px;bottom:18px;transform:scale(.8) rotate(12deg)}.lobby{gap:25px}.hand .card{width:48px;height:69px;margin-left:-13px}.hand .card:first-child{margin-left:0}.seatPlays{inset:118px 145px 48px}}
@media(max-width:650px){.header{height:48px;padding:0 12px}.brand{font-size:18px;gap:8px}.brand img{width:30px;height:38px}.brand small{font-size:7px;letter-spacing:2px}nav{gap:7px;font-size:10px}.lobby{grid-template-columns:1fr;padding:0 18px;margin:18px auto 35px;gap:22px}.welcome{min-height:190px;padding:8px 0}h1{font-size:35px;margin-bottom:12px}.heroCards{left:auto;right:20px;bottom:10px;transform:scale(.72) rotate(12deg);transform-origin:right bottom}.welcome .muted{font-size:12px}.panel{padding:22px}.roomList{grid-template-columns:1fr}.tablePage{height:calc(100dvh - 48px);min-height:0;padding:0 5px max(6px,env(safe-area-inset-bottom));grid-template-rows:40px minmax(245px,1fr) auto;gap:4px}.tableToolbar{gap:5px}.tableToolbar button{min-height:34px;padding:6px 8px;font-size:10px}.tableToolbar>div{gap:4px}#connection{font-size:9px}.board{border-radius:26px}.boardTexture{inset:7px;border-radius:20px}.bottomInfo{top:8px;font-size:9px}.bottomInfo #bottomCards{gap:3px;margin:4px 0}.bottomInfo .card,.cardBack{width:27px;height:39px}.bottomInfo small{font-size:8px}.seat{width:67px;max-width:23%;top:32%;padding:7px 3px;border-radius:9px}.seatLeft{left:5px}.seatRight{right:5px}.seatName{font-size:11px}.seat small{font-size:8px}.seatCount{font-size:11px;margin-top:4px}.role{font-size:8px;padding:2px 4px;margin:3px 0}.turnStatus{top:91px;transform:translateX(-50%);width:85%;font-size:11px;line-height:1.7}.turnStatus b{font-size:16px}.bidControls{bottom:24px;gap:5px;width:90%;justify-content:center}.bidControls button{padding:8px 10px;font-size:12px;min-height:40px;flex:1;max-width:75px}.seatPlays{inset:125px 73px 24px;gap:6px}.seatPlayHeading{font-size:8px;padding:2px 5px;margin-bottom:4px}.playedCards .card{width:27px;height:39px;margin-left:-14px}.playedCards.many .card{margin-left:-23px}.playedCards .card:first-child{margin-left:0}.recentEvent{font-size:8px;bottom:3px}.ready{min-width:130px;font-size:12px}.handHeader{font-size:10px;gap:5px;min-height:30px}.handHeader .textButton{font-size:10px;min-height:30px}.hand{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px 2px;justify-content:center;min-height:0;padding:13px 3px 5px;overflow:visible}.hand .card{width:100%;height:auto;aspect-ratio:100/144;margin:0;max-width:49px;border-radius:4px;justify-self:center}.hand .card.selected{transform:translateY(-8px)}.hand .card .cardIndex{visibility:hidden}.hand .card .mobileIndex{position:absolute;display:flex;align-items:center;flex-direction:column;gap:1px;left:2px;top:2px;width:15px;background:#f5ecd6;border-radius:2px;pointer-events:none}.mobileIndex b{font:700 13px/1 Georgia,serif}.mobileIndex svg{width:10px;height:10px}.playControls{gap:5px;min-height:44px;flex-wrap:wrap;padding-top:3px}.playControls button{min-width:0;min-height:39px;padding:7px 10px;font-size:12px;flex:1}#selectionLabel{flex-basis:100%;margin:0;text-align:center;font-size:9px;line-height:12px}.toast{bottom:15px}.dialog{padding:20px}.hand>.muted{grid-column:1/-1;text-align:center;margin:5px 0}.resultRow{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hand .card{transition:none}}

.heroCards .heroJoker{display:block;padding:0;overflow:hidden}.heroJoker img{display:block;width:100%;height:100%;object-fit:fill}.joker .cardArt{border-radius:inherit}
