.app{overflow:clip}.home-page{padding-bottom:calc(116px + env(safe-area-inset-bottom));--home-header-height:76px;background:linear-gradient(180deg,#29113b 0,#11091e 440px)}.home-header{height:76px;position:sticky;top:0;z-index:9;display:flex;align-items:center;justify-content:space-between;padding:14px 18px 10px;background:linear-gradient(0deg,#251130ed,#291238aa),url('assets/header.webp') center 19%/cover;border-bottom:1px solid #f2d59410;backdrop-filter:blur(18px)}.home-tabs{display:flex;gap:17px;align-items:center;height:100%}.home-tabs button{position:relative;padding:9px 0;font-size:18px;color:#bdabcd;letter-spacing:-.4px;white-space:nowrap}.home-tabs button.active{color:#fff;font-weight:750}.home-tabs button.active:after{content:"";position:absolute;bottom:0;left:calc(50% - 14px);width:28px;height:3px;background:var(--gold);border-radius:5px;box-shadow:0 0 10px #e4c77966}.home-header-actions{display:flex;gap:7px;align-items:center}.home-edit{width:35px;height:39px;padding:0;display:grid;place-items:center}.home-edit img{width:35px;height:35px;object-fit:contain}.home-search{color:#efd49f;padding:5px}.home-search svg{width:24px;height:24px;filter:drop-shadow(0 1px 3px #ffc77244)}.home-showcase{padding-top:5px}.horizontal-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.horizontal-scroll::-webkit-scrollbar{display:none}.banner-wrap{position:relative;margin:0 13px 11px}.banner-track{display:flex;scroll-snap-type:x mandatory;border-radius:15px}.home-banner{min-width:100%;aspect-ratio:3.1/1;scroll-snap-align:center;position:relative;text-align:left;padding:18px 22px;background-position:center;background-size:100% 100%;border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;overflow:hidden}.home-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#17052255,transparent 75%);pointer-events:none}.banner-copy{position:relative;z-index:1;max-width:66%;display:flex;flex-direction:column;gap:3px}.banner-copy small{font-size:9px;letter-spacing:1.6px;color:#f1d09c;text-transform:uppercase;font-weight:650}.banner-copy strong{font-family:Georgia,serif;font-size:26px;line-height:1.1;color:#fff2cf;text-shadow:0 2px 8px #180619}.banner-copy span{font-size:11px;color:#eadcee;margin-top:4px}.banner-dots{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);display:flex;gap:5px;z-index:1}.banner-dots button{width:6px;height:6px;border-radius:6px;background:#ffffff66;padding:0}.banner-dots button.current{width:17px;background:#ffe4a8}.carousel-pause{position:absolute;right:12px;bottom:8px;background:#130b2660;border-radius:20px;padding:3px;color:#f7e7ca}.carousel-pause svg{width:13px;height:13px}.rank-track{display:flex;gap:10px;padding:0 13px;scroll-snap-type:x proximity;margin:3px 0 12px}.rank-card{flex:0 0 146px;height:99px;position:relative;background-size:100% 100%;background-position:center;scroll-snap-align:start;padding:0}.rank-title{position:absolute;top:18px;left:7px;right:7px;color:#ffe8ad;font-family:Georgia,serif;font-size:16px;text-shadow:0 1px 4px #100318;text-align:center;z-index:2}.rank-faces{position:absolute;left:14px;right:14px;bottom:12px;display:flex;align-items:flex-end;justify-content:center;gap:7px}.rank-faces img{border:1px solid #f4d497cc;box-shadow:0 1px 5px #140725;object-fit:cover;object-position:top;width:28px;height:28px;border-radius:50%}.rank-faces img:nth-child(2){width:35px;height:35px}.people-track{display:flex;gap:13px;padding:1px 14px 13px;scroll-snap-type:x proximity}.person-button{padding:0;flex:0 0 57px;width:57px;text-align:center;scroll-snap-align:start}.person-photo{display:block;width:56px;height:56px;border-radius:50%;border:1.5px solid #b76aeb;padding:2px;background:#11091e;box-shadow:0 0 0 2px #893fba0b}.person-photo img{height:100%;width:100%;object-fit:cover;object-position:50% 18%;border-radius:50%}.person-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-top:5px;color:#dbcbe7}.country-dock{position:sticky;top:var(--home-header-height);z-index:8;background:linear-gradient(180deg,#29123cfa,#190c29fa);backdrop-filter:blur(18px);border-bottom:1px solid #e9c89510;padding:9px 0 10px}.country-track{display:flex;gap:9px;padding:0 13px;align-items:center}.country-filter{flex-shrink:0;height:33px;min-width:58px;display:flex;align-items:center;justify-content:center;gap:6px;background:#ffffff08;border:1px solid #ffffff0c;border-radius:19px;padding:5px 13px;color:#bba5cf;font-size:13px}.country-filter[aria-pressed=true]{border-color:#e7c37d;background:linear-gradient(150deg,#7940ba,#391858);color:#fff0c6;box-shadow:inset 0 0 8px #edcf8515}.country-filter img{width:17px;height:17px;object-fit:contain}.flag{width:27px;height:19px;border-radius:3px;box-shadow:0 1px 4px #0003;display:block;flex-shrink:0}.home-grid{padding:13px 13px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.room-column{display:flex;flex-direction:column;gap:10px}.room-card{display:block;position:relative;width:100%;aspect-ratio: .82;overflow:hidden;border-radius:16px;padding:0;text-align:left;background:#281c38;isolation:isolate;border:1px solid #fff1;transition:filter .2s}.room-card.tall{aspect-ratio:.73}.room-cover{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.room-card:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,#08030fe8 0%,#08030f55 25%,transparent 50%);z-index:1;pointer-events:none}.room-card:hover{filter:brightness(1.08)}.room-wealth{position:absolute;left:8px;top:8px;background:#09061180;backdrop-filter:blur(4px);border:1px solid #fff2;border-radius:14px;padding:2px 7px 2px 3px;color:#fff;display:flex;align-items:center;font-size:12px;gap:3px;z-index:2}.room-wealth img{width:17px;height:17px;object-fit:contain}.room-info{position:absolute;left:10px;right:10px;bottom:10px;z-index:2}.room-members{display:flex;padding-left:3px;margin-bottom:7px}.room-members img{width:21px;height:21px;object-fit:cover;object-position:top;border-radius:50%;border:1px solid #d9c4ea;margin-left:-3px}.room-title-row{display:flex;gap:5px;align-items:center}.room-title-row .flag{width:20px;height:14px}.room-name{flex:1;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px;font-weight:600}.room-listeners{display:flex;align-items:center;gap:3px;font-size:11px}.sound-bars{display:flex;gap:2px;align-items:center;width:13px;height:16px;color:#e57bff}.sound-bars i{width:2px;border-radius:3px;background:currentColor;height:7px}.sound-bars i:nth-child(2){height:13px}.sound-bars i:nth-child(3){height:10px}.welcome-tile{position:relative;min-height:102px;border-radius:16px;background:linear-gradient(135deg,#623a8f,#271239);border:1px solid #d6ae6baa;display:flex;align-items:center;text-align:left;padding:14px 9px 14px 14px;overflow:hidden}.welcome-tile:after{content:"";position:absolute;inset:3px;border-radius:12px;border:1px solid #edcf8522;pointer-events:none}.welcome-tile>span{font-family:Georgia,serif;font-size:20px;line-height:1.1;color:#fff0bf;width:60%;position:relative;z-index:1}.welcome-tile small{display:block;font-family:system-ui,sans-serif;font-size:9px;color:#d5bedf;line-height:1.3;margin-top:7px}.welcome-tile img{position:absolute;width:79px;height:79px;right:-4px;bottom:0;object-fit:contain;transform:rotate(-8deg)}.feed-empty{text-align:center;padding:50px 28px}.feed-empty>img{width:70px;height:70px;object-fit:contain}.feed-empty h2{font-size:20px}.feed-empty p{font-size:14px;color:var(--muted)}.room-modal-cover{width:100%;height:180px;object-fit:cover;object-position:50% 25%;border-radius:15px}.room-modal-actions{display:flex;gap:10px}.room-modal-actions button{flex:1}.search-field{margin-bottom:12px}.search-results button{width:100%;text-align:left}.rank-number{font-family:Georgia,serif;color:var(--gold);font-size:22px;min-width:25px}.rank-result{margin:10px 0}.home-edits input{margin-bottom:5px}.room-edit-name{margin-top:20px}.home-edit-hint{font-size:12px!important}.room-card .saved-room{position:absolute;top:10px;right:10px;color:#edcf85;z-index:2;font-size:16px}.rank-card:hover{filter:brightness(1.12)}
@media(min-width:400px){.rank-card{flex-basis:155px;height:105px}.people-track{gap:15px}.banner-copy strong{font-size:30px}.home-banner{aspect-ratio:3.15/1}.room-name{font-size:13px}.room-listeners{font-size:12px}.room-members img{width:24px;height:24px}.welcome-tile{min-height:119px}.welcome-tile>span{font-size:23px}.welcome-tile img{width:92px;height:92px}}
@media(max-width:360px){.home-tabs{gap:13px}.home-tabs button{font-size:16px}.home-header{padding-left:13px;padding-right:10px}.home-header-actions{gap:2px}.banner-copy strong{font-size:23px}.rank-card{flex-basis:136px;height:94px}.person-button{flex-basis:53px;width:53px}.person-photo{width:52px;height:52px}.home-grid{gap:9px}.room-info{left:7px;right:7px}.room-name{font-size:11px}.welcome-tile>span{font-size:19px}.welcome-tile img{width:65px;height:65px}.home-header-actions .home-edit{width:30px}}
.home-banner{background-size:auto 100%;background-position:right center;border:1px solid #e8c88d80}
.home-banner:after{background:linear-gradient(90deg,#170822f2 0,#170822b8 38%,#17082225 80%,transparent)}
.rank-card{flex-basis:150px;height:133px}.rank-title{top:41%;font-size:14px;text-shadow:0 1px 5px #000,0 0 10px #000}.rank-faces{left:6px;right:6px;bottom:8px;justify-content:space-between;gap:0}.rank-faces img{width:39px;height:39px;border:0}.rank-faces img:nth-child(2){width:49px;height:49px}
@media(min-width:400px){.rank-card{flex-basis:158px;height:140px}.rank-faces img{width:41px;height:41px}.rank-faces img:nth-child(2){width:51px;height:51px}}
@media(max-width:360px){.rank-card{flex-basis:140px;height:124px}.rank-faces img{width:36px;height:36px}.rank-faces img:nth-child(2){width:45px;height:45px}.rank-title{font-size:13px}}
/* Normalize artwork and position portraits from each card's measured openings. */
.rank-track{align-items:flex-start}
.rank-card{background:none;overflow:hidden;flex-shrink:0;aspect-ratio:493/438}
.rank-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.rank-cp .rank-art{top:8.4%;height:97.3%;bottom:auto}
.rank-faces{inset:0;display:block;position:absolute;pointer-events:none}
.rank-faces img,.rank-faces img:nth-child(2){position:absolute;max-width:none;transform:translate(-50%,-50%);border:0;border-radius:50%;clip-path:ellipse(50% 50% at 50% 50%);object-fit:cover;object-position:50% 20%;box-shadow:none}
.rank-title{top:43%;z-index:2;pointer-events:none;line-height:1.2}
.rank-cp .rank-title{top:40%}
.couple-portraits{display:flex;gap:3px}.couple-portraits img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:top;border:1px solid #edcf8566}
/* Fixed art dimensions and one backdrop outside the scrolling content. */
.home-backdrop{position:fixed;inset:0;max-width:480px;margin-inline:auto;z-index:0;pointer-events:none;background-color:var(--bg);background-image:linear-gradient(180deg,#11091e22 0px,#11091e55 60px,#11091ebb 108px,var(--bg) 146px),url('assets/header.webp');background-position:top center;background-size:100% 100%,200% auto;background-repeat:no-repeat}
.home-visible .app{background:transparent;z-index:1}
.home-page{position:relative;isolation:isolate;display:grid;grid-template-rows:76px minmax(0,1fr);height:100dvh;padding:0;background:none;overflow:hidden}
.home-page::before{content:none}
.home-header{position:relative;top:auto;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.home-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding-bottom:calc(116px + env(safe-area-inset-bottom));scrollbar-width:none;clip-path:inset(var(--pinned-country-height,0px) 0 0 0)}
.home-scroll::-webkit-scrollbar{display:none}
.country-dock{position:relative;top:auto;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.pinned-countries{position:absolute;top:76px;left:0;right:0;z-index:8;background:none;padding:9px 0 10px;overflow:hidden}
.home-showcase,.home-grid,.feed-empty,.country-dock{clip-path:none}

/* V19: main room and personal room lists, on the established continuous backdrop. */
.mine-panel{padding:8px 13px 0}
.main-room-banner{display:flex;align-items:center;gap:12px;width:100%;height:104px;padding:15px 14px;text-align:left;background:#21152f url('assets/mine-banner.webp') center/cover no-repeat;border:1px solid #edcf8533;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px #08041044}
.main-room-avatar{width:68px;height:68px;flex:0 0 68px;display:grid;place-items:center;border:1px solid #edcf85aa;border-radius:12px;overflow:hidden;background:#21152f;color:var(--gold)}
.main-room-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.main-room-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:7px}
.main-room-copy small{font-size:9px;color:var(--gold);letter-spacing:1.4px;font-weight:650}
.main-room-copy strong{font-size:16px;line-height:1.25;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.main-room-copy>span{font-size:11px;color:var(--muted)}
.main-room-status{display:flex;align-items:center;gap:5px;font-size:12px;color:#d3b5ff;flex-shrink:0}
.main-room-status svg{width:14px;height:14px;color:var(--gold);margin-left:3px}
.mine-tabs{display:flex;gap:9px;margin:16px 0 0}
.mine-tabs button{flex:1;min-height:36px;padding:8px 14px;border-radius:20px;border:1px solid #ffffff10;background:#21152f;color:var(--muted);font-size:13px;font-weight:600}
.mine-tabs button.active{background:linear-gradient(135deg,#64389a,#382149);border-color:var(--gold);color:#faf5ff;box-shadow:inset 0 0 8px #edcf8515}
.main-room-banner .sound-bars{display:flex;gap:2px;align-items:center;height:14px}
.main-room-banner .sound-bars i{width:2px;height:10px;border-radius:2px;background:#b88cff;animation:mine-audio 1s ease-in-out infinite alternate;transform-origin:center}
.main-room-banner .sound-bars i:nth-child(2){animation-delay:-.45s;height:14px}.main-room-banner .sound-bars i:nth-child(3){animation-delay:-.7s;height:8px}
@keyframes mine-audio{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:360px){.main-room-banner{gap:9px;padding:12px;height:98px}.main-room-avatar{width:60px;height:60px;flex-basis:60px}.main-room-copy strong{font-size:14px}.main-room-copy>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.main-room-banner .sound-bars i{animation:none}}

.main-room-status{background:#11091eaa;border-radius:8px;padding:6px 5px}

/* V20: lighter personal banner and concise Explore promotion lists. */
.home-search{padding:3px;width:32px;height:36px;display:grid;place-items:center}
.home-search img{width:27px;height:27px;object-fit:contain}
.home-edit{width:34px;height:36px}.home-edit img{width:32px;height:32px;object-fit:contain}
.main-room-banner{background-color:#b2a0c5;border-color:#edcf8580;box-shadow:0 4px 15px #08041025}
.main-room-avatar{border-color:#edcf85;border-radius:11px}
.main-room-copy small{color:#4e345c;letter-spacing:1.3px}.main-room-copy strong{color:#261630}.main-room-copy>span{color:#5e486c}
.main-room-status{color:#503263;background:#f6eafa60;border:1px solid #edcf8555;padding:6px;border-radius:8px}
.main-room-status svg{color:#634373}.main-room-banner .sound-bars i{background:#734996}
.explore-panel{padding:0 13px}
.explore-tabs{display:flex;gap:20px;align-items:center;min-height:39px;margin-bottom:11px}
.explore-tabs button{position:relative;color:var(--muted);font-size:13px;padding:7px 0 9px;white-space:nowrap}
.explore-tabs button.active{color:var(--text);font-weight:650}
.explore-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;border-radius:2px;background:var(--gold)}
.explore-banners{display:flex;flex-direction:column;gap:12px}
.explore-banner{position:relative;width:100%;height:108px;text-align:left;border:1px solid #edcf8540;border-radius:13px;overflow:hidden;background:#21152f}
.explore-banner-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.explore-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#160e2377,#160e2315 66%,transparent);pointer-events:none}
.explore-banner-copy{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:6px;width:67%;height:100%;padding:14px 16px}
.explore-banner-copy small{font-size:8px;letter-spacing:1.3px;color:var(--gold);font-weight:650}
.explore-banner-copy strong{font-family:Georgia,serif;color:#fff1d4;font-size:22px;font-weight:600;line-height:1.05}
.explore-banner-copy>span{font-size:10px;line-height:1.3;color:#e0cfe8;max-width:190px}
@media(max-width:360px){.explore-banner{height:98px}.explore-banner-copy{width:70%;padding:12px}.explore-banner-copy strong{font-size:19px}.explore-banner-copy>span{font-size:9px}.explore-tabs{gap:18px}}

.explore-banner-copy strong{font-size:20px}
@media(max-width:360px){.explore-banner-copy strong{font-size:18px}}

/* V21: approved castle banner and the same profile identity as Me. */
.main-room-banner{position:relative;isolation:isolate;background-color:#21152f;border:0;background-size:100% 100%;box-shadow:0 4px 15px #08041025}
.main-room-banner:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent 58%,#11091e00 63%,#11091e2e 79%,#11091e2e 100%);border-radius:inherit}
.main-room-avatar{position:relative;width:68px;height:68px;flex:0 0 68px;padding:4px;border:2px solid var(--gold);border-radius:50%;background:linear-gradient(145deg,#8853d4,#211538);box-shadow:0 0 0 3px #edcf850c;overflow:hidden}
.main-room-initial{display:grid;place-items:center;width:100%;height:100%;font-family:Georgia,serif;font-size:29px;background:linear-gradient(135deg,#3d2661,#180e2b);border-radius:50%;color:var(--gold)}
.main-room-avatar img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}
.main-room-copy small{color:var(--gold)}.main-room-copy strong{color:var(--text)}.main-room-copy>span{color:#bfaed0}
.main-room-status{background:#11091e66;border:1px solid #edcf8533;color:#ead9ff}
.main-room-status svg{color:var(--gold)}.main-room-banner .sound-bars i{background:#c8a9ff}
.detail-card .main-room-modal-avatar{width:55px;height:55px;flex-basis:55px}.detail-card .main-room-modal-avatar img{width:100%;height:100%}
.home-header-actions{align-items:center;gap:3px}
.home-edit,.home-search{width:36px;height:40px;display:grid;place-items:center;padding:0}
.home-edit img{width:32px;height:32px}.home-search img{width:22px;height:22px}
@media(max-width:360px){.main-room-avatar{width:60px;height:60px;flex-basis:60px}.main-room-initial{font-size:26px}}

/* V22: independent banners, centered rankings and fixed country controls. */
.banner-track{gap:12px;border-radius:0;scroll-snap-type:x mandatory}
.home-banner{flex:0 0 100%;min-width:0;background-size:cover;background-position:center;background-repeat:no-repeat}
.banner-copy{min-width:0}.banner-copy strong{overflow-wrap:anywhere}
.rank-track{margin:3px 13px 12px;padding:0;gap:10px;scroll-snap-type:x mandatory;align-items:center}
.rank-card{flex:0 0 44%;height:auto;aspect-ratio:493/438;scroll-snap-align:center}
.country-row{display:flex;align-items:center;gap:8px;padding:0 13px;min-width:0}
.country-track{flex:1;min-width:0;gap:8px;padding:0}
.country-filter{min-width:52px;height:33px;padding:5px 10px}
.country-filter .flag{width:22px;height:15px;border-radius:2px;object-fit:cover}
.popular-filter{flex:0 0 auto;min-width:0;gap:4px;padding:5px 9px}
.country-more{flex:0 0 33px;width:33px;height:33px;padding:0;display:grid;place-items:center}
.country-more img{width:33px;height:33px;object-fit:contain}
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px;align-items:start}
.room-card,.room-card.tall{min-width:0;aspect-ratio:auto;border:0;border-radius:0;background:transparent;overflow:visible}
.room-card:after{content:none}
.room-art{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;border-radius:16px;border:1px solid #ffffff11;background:var(--surface);isolation:isolate}
.room-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#08030f99,transparent 35%);z-index:1;pointer-events:none}
.room-info{left:8px;right:8px;bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:4px}
.room-members{margin-bottom:0;min-width:0}.room-listeners{flex-shrink:0}
.room-title-row{margin-top:7px;width:100%;min-width:0;overflow:hidden;gap:6px}
.room-title-row .flag{width:20px;height:14px;object-fit:cover;border-radius:2px;flex:0 0 auto}
.room-name{display:block;flex:1 1 0;min-width:0;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start;color:var(--text)}
.welcome-tile{min-width:0;width:100%;grid-column:2;min-height:0;aspect-ratio:1;padding:12px}
.welcome-tile>span{font-size:21px;width:75%}.welcome-tile img{width:80px;height:80px;right:-8px;bottom:0}.welcome-tile small{max-width:85px}
.country-region-tabs{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #ffffff0c;margin-bottom:15px}
.country-region-tabs button{flex-shrink:0;font-size:13px;color:var(--muted);padding:8px 0 11px;border-bottom:2px solid transparent}
.country-region-tabs button.active{color:var(--text);border-bottom-color:var(--gold)}
.country-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;max-height:45dvh;overflow:auto;padding:3px 2px 8px}
.country-option{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:8px;border-radius:18px;background:var(--surface);border:1px solid #ffffff0a}
.country-option>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;text-align:left}
.country-option .flag{width:20px;height:14px;object-fit:cover;border-radius:2px}
.country-option[aria-pressed=true]{background:var(--accent);border-color:var(--gold);color:var(--text)}
@media(max-width:360px){.country-row{gap:6px}.popular-filter{font-size:12px;padding-inline:7px}.room-name{font-size:12px}.welcome-tile>span{font-size:19px}.country-option{padding:7px 5px}.country-option>span{font-size:10px}}

dialog.country-selector-sheet{margin:auto auto 0;width:min(480px,100%);border-radius:24px 24px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom))}.country-selector-sheet .sheet-head{margin-bottom:12px}.country-selector-sheet .sheet-head h2{font-size:19px}.country-selector-sheet .country-options{max-height:45dvh}

/* V23: reuse the interior of the wide artwork, with one responsive frame. */
.home-search img{width:32px;height:32px}
.home-banner{isolation:isolate;background:var(--surface);border:1px solid #edcf8580;padding:12px 18px;aspect-ratio:3.15/1}
/* Original interior bounds: x ends at 1520, y runs from 14 to 158 in 1600x178.
   Preserve artwork proportions while clipping its baked frame outside the card. */
.banner-art{position:absolute;z-index:-1;top:-9.722%;right:-17.637%;height:123.611%;width:auto;max-width:none;pointer-events:none}
.home-banner:after{z-index:0;background:linear-gradient(90deg,#170822eb 0%,#170822b8 42%,#17082233 70%,transparent 88%)}
.banner-copy{max-width:64%;gap:3px}.banner-copy small{font-size:8px;letter-spacing:1.25px}.banner-copy strong{font-size:24px;line-height:1.03}.banner-copy span{font-size:10px;line-height:1.2;margin-top:2px}
.banner-dots{bottom:7px}
/* Selected pills use the same amethyst and champagne-gold material as More. */
.country-filter[aria-pressed=true]{border:2px solid #edcf85;background:radial-gradient(ellipse at 35% 18%,#ad80ec 0%,#713cba 36%,#39204f 76%,#21152f 100%);color:#fff0c6;box-shadow:inset 0 0 0 1px #fff0c655,inset 0 -2px 4px #15082066,0 1px 3px #0004}
/* Fixed sheet height independent of country count, with UA width limits reset. */
dialog.country-selector-sheet{box-sizing:border-box;inset:auto 0 0;margin:0 auto;width:100%;max-width:480px;height:min(58dvh,520px);min-height:0;max-height:calc(100dvh - 12px);padding:18px 18px calc(18px + env(safe-area-inset-bottom));overflow:hidden;border-radius:24px 24px 0 0}
dialog.country-selector-sheet[open]{display:flex;flex-direction:column}
.country-selector-sheet .sheet-head{flex:0 0 40px;min-width:0;margin-bottom:12px;gap:8px}
.country-selector-sheet .sheet-head h2{flex:1;min-width:0;font-size:18px;line-height:1.2}
.country-selector-sheet #sheetBody{display:flex;flex:1;min-height:0;flex-direction:column}
.country-selector-sheet .country-region-tabs{flex:0 0 42px;min-height:42px;margin-bottom:12px;gap:16px}
.country-selector-sheet .country-options{flex:1;min-height:0;max-height:none;align-content:start;overflow:auto;overscroll-behavior:contain}
.country-option{min-height:34px}
.country-search-toggle{padding:0;width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center}
.country-search-toggle img,.country-search-form>img{width:32px;height:32px;object-fit:contain}
.country-search-form{display:flex;flex:1;min-width:0;height:40px;align-items:center;gap:4px;animation:country-search-in .16s ease-out}
.country-search-form input{flex:1;min-width:0;width:0;min-height:38px;height:38px;padding:7px 8px;font-size:16px;margin:0;border:1px solid #edcf8533;background:#11091e80;border-radius:10px}
.country-search-back{display:grid;place-items:center;flex:0 0 28px;padding:0;color:var(--gold)}
.country-search-back svg{width:21px;height:21px}
.country-search-empty{grid-column:1/-1;text-align:center;padding:28px 5px}
@keyframes country-search-in{from{opacity:0;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:360px){.home-banner{padding:10px 14px}.banner-copy strong{font-size:21px}.banner-copy small{font-size:7px;letter-spacing:1px}.banner-copy span{font-size:9px}.country-selector-sheet .sheet-head h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.country-search-form{animation:none}}

/* V24: wider centered rankings, balanced header loupe and faceted filter rims. */
.rank-track{margin-inline:0;padding-inline:0}
.home-header .home-search img{width:28px;height:28px}
.country-filter[aria-pressed=true]{
 border:2px solid transparent;
 background:
  radial-gradient(ellipse at 35% 12%,#76439f 0%,#502770 38%,#301840 76%,#21152f 100%) padding-box,
  repeating-linear-gradient(125deg,#edcf85 0px 7px,#ad7b3e 7px 9px,#352044 9px 11px,#f5dfa1 11px 12px,#d0a65e 12px 17px) border-box;
 color:#fff0c6;
 box-shadow:inset 0 0 0 1px #edcf8533,inset 0 -2px 5px #11091e88,0 1px 3px #0004;
}

/* V25: generated selected background, with fixed round ends and flexible center.
   Only the selected state changes. Border-image draws full-height left/right caps;
   the central strip stretches horizontally without distorting the rounded rim. */
.country-filter[aria-pressed=true]{
 background:none;
 border:2px solid transparent;
 border-image-source:url('assets/filter-selected.webp');
 border-image-slice:0 13.81% fill;
 border-image-width:0 16.5px;
 border-image-outset:0;
 border-image-repeat:stretch;
 box-shadow:none;
 color:#fff0c6;
}

.room-list-id{font-size:9px;color:#a89ab9;white-space:nowrap;margin-inline-start:auto}

.server-connected .rank-faces{display:none}.server-connected .room-cover[src$="empty-mascot.webp"]{object-fit:contain;background:#21152f}

.room-search-page{position:fixed;inset:0;z-index:90;max-width:480px;margin:auto;background:#fcfaf8;color:#30283c;display:flex;flex-direction:column;padding-top:var(--zwin-host-safe-top,env(safe-area-inset-top,0px));padding-bottom:var(--zwin-host-safe-bottom,env(safe-area-inset-bottom,0px));font:14px Inter,system-ui,sans-serif;box-sizing:border-box}
.room-search-header{display:flex;align-items:center;height:56px;flex:none;padding:0 15px 0 4px;gap:4px}.room-search-back{border:0;background:none;color:#695776;width:35px;height:44px;font-size:34px;padding:0}.room-search-form{flex:1;display:flex;align-items:center;height:36px;background:#eee9f2;border-radius:20px;overflow:hidden}.room-search-form input{flex:1;min-width:0;height:36px;border:0;background:transparent;padding:0 12px;font:14px Inter,system-ui;color:#30283c;outline-offset:-2px}.room-search-submit{border:0;background:none;color:#695776;font:600 13px Inter,system-ui;padding:0 12px;height:36px}.room-search-tabs{display:flex;height:44px;flex:none;border-bottom:1px solid #eee8f0}.room-search-tabs button{flex:1;border:0;background:none;font:600 14px Inter,system-ui;color:#998ba4;position:relative}.room-search-tabs button[aria-selected=true]{color:#6f469c}.room-search-tabs button[aria-selected=true]:after{content:'';position:absolute;width:24px;height:3px;border-radius:4px;background:#9b6cff;bottom:0;left:calc(50% - 12px)}.room-search-results{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.search-row{display:flex;align-items:center;gap:12px;padding:10px 15px;border:0;background:none;width:100%;text-align:start;color:inherit;min-height:74px}.search-row>img{width:50px;height:50px;border-radius:50%;object-fit:cover;background:#eee8f2}.search-row-copy{display:grid;gap:6px;min-width:0}.search-row-copy strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-row-copy small{color:#998ba4;font-size:12px}.search-status{padding:20px;text-align:center;color:#998ba4}.search-more{display:block;margin:12px auto;border:0;background:#eee8f2;border-radius:20px;color:#695776;padding:10px 22px}.search-profile-photo{display:block;width:90px;height:90px;border-radius:50%;object-fit:cover;margin:0 auto 15px}
/* V81 home proportions; room geometry and country controls are unchanged. */
.banner-track{margin-left:10px;margin-right:10px;gap:10px}.home-banner{height:100px;aspect-ratio:auto;padding:10px 16px}.banner-copy strong{font-size:24px;line-height:1.12}.banner-copy small{font-size:8px}.banner-copy span{font-size:11px}.server-connected .rank-faces{visibility:hidden}.people-empty .people-track{height:0}.people-empty{display:none}.room-load-more{display:block;margin:24px auto 110px;padding:12px 24px;min-height:44px;border:1px solid #ffffff20;border-radius:24px;background:#21152f;color:#faf5ff;font:inherit}.room-load-more[hidden]{display:none}.room-load-more:disabled{opacity:.6}.banner-track,.rank-track,.people-track{touch-action:pan-x pan-y;user-select:none}.banner-track img,.rank-track img,.people-track img{-webkit-user-drag:none;pointer-events:none}
.people-track[hidden]{display:none!important}.create-room-page{position:fixed;inset:0;z-index:15000;background:#11091e;color:#faf5ff;overflow:auto;box-sizing:border-box;padding:max(14px,var(--zwin-host-safe-top,0px)) 24px max(28px,var(--zwin-host-safe-bottom,0px));font-family:Inter,system-ui,sans-serif}.create-room-page header{display:flex;align-items:center;gap:14px;max-width:440px;margin:auto}.create-room-page h1{font-size:19px;font-weight:600}.create-back{width:44px;height:44px;font-size:32px;border:0;background:none;color:#faf5ff}.create-room-page form{max-width:380px;min-height:calc(100dvh - 110px);margin:auto;display:flex;flex-direction:column}.create-cover{display:flex;flex-direction:column;align-items:center;gap:10px;margin:36px 0;color:#a89ab9;font-size:13px;cursor:pointer}.create-cover img{width:100px;height:100px;object-fit:cover;border-radius:18px;background:#21152f}.create-name span{display:block;margin-bottom:12px;color:#a89ab9;font-size:13px}.create-name input{height:52px;width:100%;box-sizing:border-box;border:1px solid #ffffff20;border-radius:12px;padding:0 16px;background:#21152f;color:#faf5ff;font:inherit;font-size:16px}.create-name input:focus{outline:1px solid #9b6cff}.create-primary{height:48px;margin-top:auto;flex-shrink:0;border:0;border-radius:24px;background:#9b6cff;color:#faf5ff;font:inherit;font-weight:600}.create-primary:disabled{opacity:.5}#createRoomError{color:#edb4c2;font-size:13px;min-height:24px;margin:14px 0 30px}
.banner-wrap{margin:0 10px 11px}.banner-track{margin-left:0;margin-right:0}
.home-showcase{padding-top:12px}

/* Stable room-result extent keeps the country bar collapsed across filter changes. */
.room-results{display:flow-root;min-height:var(--room-results-min-height,0px)}

/* APK UI trial: one compositor-positioned country row, with stable result extent. */
.home-scroll{clip-path:none;overflow-anchor:none}
.country-dock{position:sticky;top:0;z-index:8;background:var(--bg);overflow-anchor:none}
.pinned-countries{display:none!important}
.home-page{grid-template-rows:calc(76px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px))) minmax(0,1fr)}
.home-header{height:calc(76px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px)));padding-top:calc(14px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px)));padding-left:calc(18px + var(--zwin-host-safe-left,0px));padding-right:calc(10px + var(--zwin-host-safe-right,0px))}
/* Reserve the selected outline width in every chip state. */
.country-filter{border-width:2px}

/* Home spacing trial: reduce full items and their containers together. */
.home-page{grid-template-rows:calc(52px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px))) minmax(0,1fr)}
.home-header{height:calc(52px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px)));padding-top:calc(8px + var(--zwin-host-safe-top,env(safe-area-inset-top,0px)));padding-bottom:8px}
.home-showcase{padding-top:8px}
.banner-wrap{margin-bottom:10px}
.rank-track{margin-top:0;margin-bottom:10px;gap:10px}
.rank-card{flex-basis:40%;height:auto;aspect-ratio:493/438}
.people-track{gap:10px;padding:1px 13px 8px}
.person-button{flex:0 0 51px;width:51px}
.person-photo{width:50px;height:50px}
.person-name{margin-top:4px}
.country-filter .flag{width:26px;height:18px}
.banner-dots{gap:5px;max-width:calc(100% - 20px)}
.banner-dots button,.banner-dots button.current{position:relative;flex:none;width:5px;height:5px;border-radius:50%}
.banner-dots button:before{content:'';position:absolute;inset:-9px -2.5px}
.home-scroll{padding-bottom:calc(86px + var(--zwin-host-safe-bottom,env(safe-area-inset-bottom,0px)))}

.popular-fire{font-size:18px;line-height:1;display:inline-block}.room-list-end{text-align:center;color:var(--muted);font-size:13px;line-height:20px;margin:0;padding:30px 12px 26px;pointer-events:none}
