.lobbyHome{max-width:1140px;margin-top:30px}.lobbyHeading{margin-bottom:26px}.eyebrow{display:block;color:#cbb57b;font-size:11px;letter-spacing:2px;margin-bottom:6px}.lobbyHeading .heading{margin:8px 0 10px;font-size:34px}.lobbyHeading .sub{margin:0;font-size:13px}.lobbyGrid{align-items:start;gap:22px}.entryPanel{padding:26px}.sectionTitle{display:flex;align-items:center;gap:13px;margin-bottom:24px}.sectionTitle h2{font-size:23px;margin:0 0 4px}.sectionTitle p{margin:0;color:#aac1b5;font-size:12px}.stepDot{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #ba9e61;border-radius:12px;background:#c8aa5814;font-size:15px;color:#f5d88e}.entryPanel label{font-size:12px;margin-bottom:7px}.entryPanel input,.entryPanel select{min-height:46px}.joinBlock{margin-top:20px;margin-bottom:22px;padding:18px;background:#071f1880;border:1px solid #668c704f;border-radius:13px}.roomCodeInput{letter-spacing:3px;text-transform:uppercase;font-size:18px}.roomCodeInput::placeholder{font-size:14px;letter-spacing:1px}.entryActions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.entryActions button{padding:12px 8px;min-height:46px;font-size:14px}.joinBlock>small{display:block;font-size:11px;line-height:1.6}.entryDetails{border-top:1px solid #76937b38}.entryDetails summary{cursor:pointer;padding:18px 0;font-size:15px;font-weight:600;color:#f3e3b7}.entryDetails summary span{font-size:11px;font-weight:400;color:#a8beaf;display:inline-block;margin-left:9px}.entryDetails[open] summary{padding-bottom:10px}.detailsBody{display:grid;gap:10px;padding-bottom:18px}.detailsBody p{font-size:12px;line-height:1.7;margin:0 0 4px}.detailsBody .fields{gap:12px}.detailsBody .entryActions{margin:4px 0}.publicPanel{padding:26px;min-height:230px}.publicPanel h2{font-size:23px;margin:0}.publicPanel>.row{margin-bottom:20px}.publicPanel .roomRow{gap:8px}.publicPanel .roomRow button{padding:9px 12px;white-space:nowrap}.publicPanel .roomRow>div{flex:1;min-width:130px}.resumeCard{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;border:1px solid #b89d5c;background:#c9a95312;border-radius:13px;padding:15px}.resumeCard[hidden]{display:none}.resumeCard b{display:block;font-size:16px}.resumeCard small{display:block;margin-top:5px;color:#b6cebd;font-size:11px;line-height:1.6}.resumeCard button{font-size:12px;white-space:nowrap;padding:10px}.entryHelp{color:#c6b885}.connectionNotice{position:fixed;top:82px;right:22px;z-index:90;width:min(440px,calc(100% - 24px));background:#14382ff5;border:1px solid #d1b575;border-radius:14px;box-shadow:0 10px 40px #0006;padding:16px}.connectionNotice[hidden]{display:none}.connectionCopy strong,.connectionCopy small{display:block}.connectionCopy strong{font-size:16px;color:#ffdf9b}.connectionCopy small{font-size:12px;line-height:1.7;color:#c0d2c6;margin-top:6px}.connectionButtons{display:flex;gap:8px;margin-top:12px}.connectionButtons button{min-height:40px;font-size:12px;padding:9px 14px}.connectionButtons button:first-child{background:#e5c677;color:#17372b;font-weight:700}
@media(max-width:1023px){.lobbyHome{margin:20px auto}.lobbyHeading{margin-bottom:18px}.lobbyHeading .heading{font-size:27px;letter-spacing:1px}.lobbyHeading .sub{font-size:11px;line-height:1.8}.lobbyGrid{gap:16px}.entryPanel,.publicPanel{padding:20px}.sectionTitle{margin-bottom:20px;gap:10px}.sectionTitle h2,.publicPanel h2{font-size:21px}.stepDot{width:38px;height:38px}.sectionTitle p{font-size:11px}.joinBlock{padding:14px;margin-top:16px;margin-bottom:12px}.entryDetails summary{font-size:14px;padding:16px 0}.entryDetails summary span{font-size:10px;margin-left:4px}.entryDetails .fields{grid-template-columns:1fr 1fr}.resumeCard{flex-wrap:wrap;padding:12px}.resumeCard>div{flex:1;min-width:130px}.resumeCard button{min-height:44px}.connectionNotice{top:52px;right:12px;padding:14px}.connectionButtons button{min-height:44px}.roomCodeInput{font-size:18px}}
@media(max-width:360px){.entryPanel,.publicPanel{padding:16px}.entryActions{gap:6px}.entryActions button{font-size:12px}.entryDetails summary span{display:block;margin:5px 0 0 16px}.resumeCard button{width:100%}}

.gamesHomeLink{display:inline-flex;align-items:center;min-height:44px;color:#d4c18e;text-decoration:none;font-size:12px;white-space:nowrap}.gamesHomeLink:hover{color:#ffe2a1}.gamesHomeLink:focus-visible{outline:2px solid #e4c37d;outline-offset:3px;border-radius:4px}@media(max-width:1023px){.gamesHomeLink{font-size:10px;min-height:32px}.topbar{gap:8px}}
/* Homepage shares the Find Friends visual language; table styles stay scoped. */
body:has(.lobbyHome){background:radial-gradient(ellipse at 20% 20%,#1d4f3938,transparent 65%),#081f19}
.topbar{height:78px;max-width:1240px;margin:auto;padding:0 28px;background:transparent;box-shadow:none;border-bottom:1px solid #c2c9a520;gap:20px}.topbar .brand{color:#f4eddb;text-decoration:none;gap:12px;font:600 21px "Microsoft YaHei","PingFang SC",sans-serif;letter-spacing:2px}.topbar .brandIcon{width:38px;height:44px;object-fit:contain;filter:none;background:none;box-shadow:none;border:0;border-radius:0}.topbar .brand b{font:inherit}.topbar .brand span{display:block;font:400 8px sans-serif;letter-spacing:3px;color:#9eb8a8;margin-top:5px}.topbar .gamesHomeLink{margin-left:auto;color:#c9d1ba}.topbar .pill{font-size:10px;background:transparent;border-color:#a8bd8730;color:#9eb8a8}
.lobbyHome{max-width:1120px;margin:40px auto 70px;padding:0 24px;display:grid;grid-template-columns:1.1fr 1fr;gap:32px 58px}.lobbyGrid{display:contents}.lobbyHeading{position:relative;min-height:480px;padding:23px 0;margin:0}.lobbyHome .eyebrow{font:400 10px "Microsoft YaHei",sans-serif;letter-spacing:2px;color:#b8bb96;margin:0 0 14px}.lobbyHeading .heading{font:600 clamp(38px,4vw,54px)/1.3 "Microsoft YaHei","PingFang SC",sans-serif;letter-spacing:3px;margin:0 0 22px;color:#f4eddb}.lobbyHeading .heading span{color:#e8c988}.lobbyHeading .sub{font-size:14px;line-height:1.9;color:#9eb8a8}.lobbyRules{position:absolute;bottom:10px;font-size:11px;color:#9eb8a8;line-height:1.8}.lobbyRules span{margin:0 5px;color:#e8c988}.entryPanel{padding:30px;background:linear-gradient(130deg,#173c2e,#102e24);border:1px solid #a8bd8740;border-radius:20px;box-shadow:none}.sectionTitle{margin-bottom:24px}.sectionTitle h2{color:#f4eddb;font-size:24px;font-weight:600;margin:0 0 9px}.sectionTitle p{font-size:11px;color:#9eb8a8}.entryPanel input,.entryPanel select{background:#09271e;border-color:#69856a;color:#f7edce;border-radius:9px;font-size:14px}.entryPanel label{color:#c3d0b8}.joinBlock{background:none;border:0;padding:0;margin:20px 0}.entryPanel button{min-height:44px;font-size:12px;background:#244b3b;color:#e9ddb8;border:1px solid #b79e615e;border-radius:10px}.entryPanel button.primary{background:linear-gradient(120deg,#f3dfaf,#c8a461);color:#21392b;border-color:#efdbab}.entryDetails summary{font-size:13px;color:#e9ddb8;padding:16px 0}.entryDetails summary span{color:#9eb8a8;font-size:10px}.publicPanel{grid-column:1/-1;padding:28px 0 0;border:0;border-top:1px solid #a8bd8740;border-radius:0;background:none;box-shadow:none;min-height:160px}.publicPanel h2{font-size:22px;font-weight:600;color:#f4eddb}.publicPanel #refresh{background:none;border:0;color:#becdb7;font-size:12px;min-height:44px}.publicPanel #rooms{font-size:12px;color:#9eb8a8;line-height:1.8}.publicPanel .roomRow{border-color:#a8bd8730}.mahjongHero{position:absolute;left:195px;top:240px;width:220px;height:190px;transform:rotate(10deg)}.heroTile{position:absolute;width:92px;height:132px;background:linear-gradient(130deg,#fffdf5,#e5ddc9);border:1px solid #fff9;border-bottom:7px solid #65917a;border-radius:11px;box-shadow:0 12px 24px #0004;display:flex;align-items:center;justify-content:center}.heroTile span{font:600 65px "KaiTi","STKaiti",serif}.tileOne{transform:translate(-40px,15px) rotate(-23deg);color:#226044}.tileTwo{z-index:1;transform:rotate(-4deg);color:#a12a31}.tileThree{transform:translate(55px,18px) rotate(16deg);flex-direction:column;gap:10px}.tileThree i{width:19px;height:19px;border:5px solid #285e4a;border-radius:50%}.tileThree i:nth-child(2){border-color:#a12a31}
@media(max-width:760px){.topbar{height:68px;padding:0 20px;gap:10px}.topbar .brand{font-size:18px;letter-spacing:1px}.topbar .brandIcon{width:30px;height:38px}.topbar .brand span{font-size:7px;letter-spacing:2px}.topbar .pill{display:none}.topbar .gamesHomeLink{font-size:11px}.lobbyHome{grid-template-columns:1fr;margin:22px auto 40px;padding:0 20px;gap:26px}.lobbyHeading{min-height:270px;padding:10px 0 32px}.lobbyHeading .heading{font-size:38px;letter-spacing:2px}.lobbyHeading .sub{font-size:12px;max-width:240px}.mahjongHero{left:auto;right:8px;top:85px;transform:scale(.72) rotate(10deg);transform-origin:right center;width:150px}.lobbyRules{bottom:0;font-size:10px}.entryPanel{padding:24px}.publicPanel{grid-column:1;padding-top:24px}.entryDetails .fields{grid-template-columns:1fr 1fr}.connectionNotice{top:78px}}
@media(max-width:380px){.mahjongHero{right:0;top:100px;transform:scale(.53) rotate(10deg)}.lobbyHeading .sub{max-width:200px;font-size:11px}.lobbyHeading .heading{font-size:34px}.entryPanel{padding:20px}.entryActions button{font-size:11px}}
@media(max-width:760px){.lobbyHeading{min-height:390px}.mahjongHero{top:195px;right:38px;transform:scale(.72) rotate(10deg)}.lobbyHeading .sub{max-width:none}}
@media(max-width:380px){.lobbyHeading{min-height:365px}.mahjongHero{top:180px;right:30px;transform:scale(.62) rotate(10deg)}.lobbyHeading .sub{max-width:none}}

.heroTile .whiteDragon{display:block;width:57px;height:90px;border:5px double #34658a;border-radius:5px;background:transparent}

/* Keep the decorative tiles below the introduction at every width. */
.lobbyHeading{display:flex;flex-direction:column;align-items:flex-start;min-height:480px}.lobbyHeading .mahjongHero{position:relative;top:auto;right:auto;bottom:auto;left:auto;flex:none;align-self:center;margin:32px 0 20px;width:180px;height:175px;transform:rotate(10deg)}.lobbyHeading .lobbyRules{position:static;margin: auto 0 0;padding-top:20px}.lobbyHeading .sub{margin:0}
@media(max-width:760px){.lobbyHeading{min-height:0}.lobbyHeading .mahjongHero{margin:28px 0 12px;transform:scale(.85) rotate(10deg);transform-origin:center;height:155px}.lobbyHeading .lobbyRules{padding-top:12px}}
@media(max-width:380px){.lobbyHeading .mahjongHero{transform:scale(.75) rotate(10deg);height:145px}}

.publicPanel #refresh{background:#244b3b;border:1px solid #b79e6199;color:#f0dfb6;font-size:13px;font-weight:600;min-height:44px;padding:11px 20px;border-radius:10px;box-shadow:0 2px 5px #0002}
.publicPanel #refresh:hover{background:#315e49;border-color:#e8c988}.publicPanel #refresh:active{transform:translateY(1px)}

.entryPanel .resumeCard{display:block;margin:20px 0 0;padding:0;border:0;background:none}.entryPanel .resumeCard[hidden]{display:none}.entryPanel .resumeCard #resume{width:100%;min-height:46px;color:#e8c988;background:#1b4432;border:1px solid #b79e6170;font-size:12px;font-weight:500;border-radius:10px;padding:12px 16px}.entryPanel .resumeCard #resumeStatus{display:block;margin:8px 0 0;text-align:center;font-size:10px;color:#9eb8a8;line-height:1.6}
