nav button[data-view=friends]{position:relative;background:linear-gradient(#b8c88d,#89a973);border-color:#718e5f;box-shadow:inset 0 2px #e0e8c8,0 3px #637b53;color:#fff;text-shadow:0 1px #637b53;order:3}nav button[data-view=friends].active{outline:2px solid #806141;outline-offset:2px}.friend-nav-dot{position:absolute;right:9px;top:5px;width:10px;height:10px;border-radius:50%;background:#efa14e;border:2px solid #fff5dd}.friend-nav-dot[hidden]{display:none}
.friends-screen .app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 14px calc(100px + env(safe-area-inset-bottom))}.friends-screen #main{display:flex;flex:1;min-height:0;flex-direction:column}.friends-panel{display:flex;flex-direction:column;gap:10px;min-height:0;flex:1}.friends-intro{display:flex;align-items:center;justify-content:space-between;gap:10px}.friends-intro p{font-size:14px;margin:0;color:#7a8564}.friends-intro button{font-size:21px;padding:3px 12px}.friends-list{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:3px 3px 14px;scrollbar-color:#c4cda8 transparent}.friend-card{display:grid;grid-template-columns:64px minmax(0,1fr) 95px;align-items:center;gap:10px;min-height:130px;margin-bottom:12px;padding:12px;background:linear-gradient(130deg,#fffdf3,#f9efd9);border:1.5px solid #dcc39e;border-radius:22px;box-shadow:inset 0 2px white,0 3px #e6d1af}.friend-card.friend-updated{border-color:#cda76e}.friend-portrait{width:64px;height:74px;border-radius:40%;background:#e4ebd5;overflow:hidden;display:flex;align-items:end;justify-content:center}.friend-portrait img{width:60px;height:70px;object-fit:contain}.friend-details{min-width:0}.friend-details h3{font-size:21px;margin:0 0 6px;color:#6b4e38;overflow-wrap:anywhere}.friend-updates{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.friend-updates span{font-size:10px;border-radius:9px;background:#f5dcb1;color:#79582e;padding:3px 6px}.friend-updates small{font-size:11px;color:#9a8a71}.friend-visit{padding:7px 16px;border:1px solid #74956a;background:linear-gradient(#a9c18b,#7d9e6c);color:white;box-shadow:inset 0 1px #d8e6ba,0 2px #71885e;border-radius:13px;font-size:15px;min-height:36px}.friend-room-thumb{height:100px;position:relative;border:1px solid #dac096;border-radius:16px;overflow:hidden;background-position:center;background-size:cover}.friend-room-thumb>div{position:absolute;bottom:3px;height:85px;width:49px;left:calc(50% - 24px)}.friend-room-thumb .dressed-character{position:absolute;inset:0}.friends-status{text-align:center;font-size:13px!important;line-height:1.45;color:#8b7d66;margin:10px 4px}.friends-more{display:block;margin:10px auto}.friends-more[hidden]{display:none}.friend-inbox{padding:11px 14px;border-radius:14px;background:#fbe0d8;color:#895849;font-size:13px}.friend-inbox[hidden]{display:none}
.friend-visit-panel{display:flex;flex-direction:column;min-height:0;flex:1;gap:8px;position:relative}.visit-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.visit-toolbar button{min-height:36px;font-size:13px}.visit-toolbar small{font-size:11px;color:#9d896d;white-space:nowrap}.friend-world-wrap{position:relative;min-height:0;flex:1}.friend-world-wrap>p{text-align:center;position:absolute;inset:25% 10% auto;font-size:15px;line-height:1.5}.friend-world-wrap iframe{display:block;border:0;width:100%;height:100%;border-radius:22px;background:#f1e7d0}.friend-world-wrap [hidden]{display:none}.love-friend{display:block;width:min(100%,330px);margin:0 auto;min-height:43px;flex-shrink:0;border:1.5px solid #d88476;border-radius:18px;color:#8b4942;background:linear-gradient(#ffe0d4,#f3b8ab);box-shadow:inset 0 2px #fff0e4,0 3px #d99b87;font-size:17px;font-weight:600}.love-friend.is-loved{background:#f3e0d5;color:#a08070;box-shadow:none;border-color:#dfc7b8}.visit-note{font-size:11px!important;margin:1px 0 0!important;text-align:center;color:#9d8b72}.friend-heart-burst{position:absolute;bottom:60px;left:50%;height:1px;width:1px;pointer-events:none}.friend-heart-burst span{position:absolute;font-size:35px;color:#f2849c;text-shadow:0 2px #fff;animation:friend-hearts 1.4s ease-out forwards;animation-delay:calc(var(--n)*60ms)}@keyframes friend-hearts{from{opacity:1;transform:translate(-50%,0) scale(.6)}to{opacity:0;transform:translate(calc((var(--n) - 2)*28px),-130px) scale(1.2)}}
.room-screen #room .room-controls>:is(#look,#my-decorations){display:flex;justify-content:center;align-items:center;gap:7px;padding:5px 8px;min-height:44px;background:linear-gradient(#fffcedf5,#f4e6ceee);border:1.5px solid #c9a77b;box-shadow:inset 0 2px white,0 3px #b8946899;font-weight:600;font-size:14px}.room-tool-icon{display:inline-flex;flex-shrink:0;width:30px;height:30px;overflow:visible;align-items:center;justify-content:center}.room-tool-icon img{width:29px;height:30px;object-fit:contain;filter:drop-shadow(0 1px #88654444)}
@media(max-width:360px){.friend-card{grid-template-columns:48px minmax(0,1fr) 74px;gap:8px;padding:10px}.friend-portrait{width:48px;height:64px}.friend-portrait img{width:48px;height:58px}.friend-details h3{font-size:19px}.friend-room-thumb{height:96px}.room-screen #room .room-controls>:is(#look,#my-decorations){font-size:12px;gap:4px;padding:4px}.room-tool-icon{width:26px;height:28px}nav span,.earning-screen nav span{font-size:12px}}
@media(orientation:landscape) and (max-height:500px){.friends-screen .app{padding-bottom:calc(70px + env(safe-area-inset-bottom))}.friend-visit-panel{gap:4px}.visit-note{display:none}.love-friend{min-height:32px;font-size:14px}.room-screen #room .room-controls>:is(#look,#my-decorations){min-height:36px}.room-tool-icon{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.friend-heart-burst span{animation:none}}

.social-sharing-note{display:block;font-size:10px;line-height:1.35;color:#998a73;max-width:340px;margin-top:4px}

/* Friendly informational banner; domain is text, not a button. */
.invite-friend-note{position:relative;display:flex;align-items:center;gap:16px;flex-shrink:0;padding:18px 16px;border:2px solid #90b8a0;border-radius:24px;background:linear-gradient(125deg,#e2f4df,#f7f7d7);box-shadow:inset 0 2px #ffffffcc,0 3px #91ac7950;color:#365b4b;overflow:hidden}
.invite-friend-art{position:relative;width:92px;height:98px;flex:0 0 92px;border-radius:50%;background:#ffffff70}
.invite-friend-art img{position:absolute;bottom:4px;width:60px;height:80px;object-fit:contain;filter:drop-shadow(0 3px 1px #547c5425)}
.invite-friend-art img:first-child{left:-4px;transform:rotate(-9deg)}.invite-friend-art img:nth-child(2){right:-5px;transform:rotate(9deg)}.invite-friend-art span{position:absolute;right:1px;top:-3px;color:#d78087;font-size:26px;text-shadow:0 2px white}
.invite-friend-copy{min-width:0}.invite-friend-note h2{font-size:23px;line-height:1.15;margin:0 0 9px;font-weight:800;letter-spacing:-.4px;color:#285e4e}.invite-friend-note p{font-size:15px;line-height:1.5;margin:0;color:#496352}.invite-friend-note strong{font-size:20px;font-weight:800;color:#235c4c;white-space:nowrap}.friends-panel,.friends-list{min-height:0}
@media(max-width:360px){.invite-friend-note{padding:14px 12px;gap:10px}.invite-friend-art{width:70px;flex-basis:70px;height:86px}.invite-friend-art img{width:49px;height:70px}.invite-friend-note h2{font-size:21px}.invite-friend-note strong{font-size:18px}.invite-friend-note p{font-size:14px}}
@media(max-height:600px){.invite-friend-note{padding:10px 14px;gap:12px}.invite-friend-art{height:64px;width:72px;flex-basis:72px}.invite-friend-art img{height:58px;width:45px}.invite-friend-note h2{font-size:20px;margin-bottom:4px}.invite-friend-note p{font-size:13px;line-height:1.3}.invite-friend-note strong{font-size:17px}}

.copy-friend-invite{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;margin-top:10px;background:linear-gradient(#4d9275,#34725c);border:1px solid #2a604d;border-radius:13px;box-shadow:inset 0 1px #ffffff55,0 3px #285b49;color:white;font-size:14px;font-weight:700;cursor:pointer}.copy-friend-invite:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff55,0 1px #285b49}.copy-friend-invite:focus-visible{outline:3px solid #d69e46;outline-offset:3px}#invite-copy-status{display:block;font-size:11px;line-height:1.3;margin-top:6px;color:#365b4b}#invite-copy-status:empty{display:none}.invite-friend-note p{user-select:text}

/* The invitation headline leads; copied state is a plain confirmation. */
.invite-friend-note h2{font-size:27px;font-weight:800;line-height:1.12;margin-bottom:10px}.invite-friend-note strong{font-size:16px;font-weight:600}.invite-friend-note p{font-size:16px;line-height:1.45}.invite-copy-confirmation{display:block;margin-top:12px;padding:8px 0;color:#286047;font-weight:700;font-size:15px;line-height:24px;background:none;border:0;box-shadow:none;cursor:default}#invite-copy-status{font-size:12px;margin-top:4px}
@media(max-width:360px){.invite-friend-note h2{font-size:24px}.invite-friend-note p,.invite-friend-note strong{font-size:14px}}
@media(max-height:600px){.invite-friend-note h2{font-size:23px;margin-bottom:6px}.invite-friend-note p,.invite-friend-note strong{font-size:14px}}

.invite-friend-art svg{display:block;width:100%;height:100%;overflow:visible}

/* One scrolling surface includes the invite, introduction and all players. */
.friends-screen .friends-scroll{display:block;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:3px 3px 18px;scrollbar-color:#c4cda8 transparent}.friends-scroll>.invite-friend-note,.friends-scroll>.friends-intro,.friends-scroll>.friend-inbox{margin-bottom:12px}.friends-scroll>.friends-list{display:block;overflow:visible;flex:none;min-height:auto;padding:3px 0 0;overscroll-behavior:auto}

.invite-friend-art{background:none;width:102px;flex-basis:102px;height:112px}@media(max-width:360px){.invite-friend-art{width:78px;flex-basis:78px;height:94px}}@media(max-height:600px){.invite-friend-art{width:80px;flex-basis:80px;height:82px}}

/* A small circle of friends, led by the player's selected character. */
.invite-friend-group{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 56%,#fff9e6 0 63%,transparent 64%);width:106px;flex-basis:106px;height:116px}.invite-friend-group img{position:absolute;object-fit:contain;transform:none!important;filter:drop-shadow(0 2px 1px #46695335)}.invite-friend-group .invite-group-friend{width:47px;height:61px;bottom:auto;z-index:1}.invite-friend-group .friend-0{left:-3px;right:auto;top:24px;transform:rotate(-12deg)!important}.invite-friend-group .friend-1{left:30px;right:auto;top:0}.invite-friend-group .friend-2{left:auto;right:-3px;top:24px;transform:rotate(12deg)!important}.invite-friend-group .invite-group-you{left:20px;right:auto;bottom:-1px;top:auto;width:70px;height:85px;z-index:2}.invite-friend-group .invite-group-spark{position:absolute;top:1px;right:2px;font-size:23px;color:#c89d42;z-index:3;text-shadow:0 1px white}@media(max-width:360px),(max-height:600px){.invite-friend-group{width:82px;flex-basis:82px;height:100px}.invite-friend-group .invite-group-friend{width:39px;height:51px}.invite-friend-group .friend-0,.invite-friend-group .friend-2{top:20px}.invite-friend-group .friend-1{left:23px}.invite-friend-group .invite-group-you{width:58px;height:72px;left:13px}}

.friends-scroll .invite-friend-note{margin:0 0 12px;background:linear-gradient(130deg,#fffdf3,#f9efd9);border:1.5px solid #dcc39e;border-radius:22px;box-shadow:inset 0 2px white,0 3px #e6d1af}

/* Give the room the full card height, with compact updates beside it. */
.friend-card{grid-template-columns:48px minmax(0,1fr) 128px;gap:8px;min-height:174px;padding:10px}.friend-portrait{width:48px;height:64px}.friend-portrait img{width:48px;height:60px}.friend-details h3{font-size:19px;margin-bottom:6px}.friend-updates{gap:3px;margin-bottom:7px}.friend-updates span{font-size:10px;padding:2px 5px;line-height:1.3}.friend-updates small{font-size:10px;line-height:1.3}.friend-visit{padding:7px 12px;font-size:14px}.friend-room-thumb{align-self:stretch;height:auto;min-height:152px;border-radius:15px;background-position:center}.friend-room-thumb>div{height:125px;width:72px;bottom:5px;left:calc(50% - 36px)}
@media(max-width:360px){.friend-card{grid-template-columns:40px minmax(0,1fr) 104px;gap:7px;min-height:164px;padding:9px}.friend-portrait{width:40px;height:56px}.friend-portrait img{width:40px;height:52px}.friend-room-thumb{height:auto;min-height:144px}.friend-room-thumb>div{height:116px;width:66px;left:calc(50% - 33px)}.friend-details h3{font-size:17px}.friend-visit{padding:6px 10px}}

/* Keep the bright invitation visible above the independently scrolling list. */
.friends-panel>.invite-friend-note{flex-shrink:0;background:linear-gradient(125deg,#ffed9d,#ffd367);border:2px solid #dfad45;box-shadow:inset 0 2px #fff8c5,0 3px #d6a24844;margin:0;border-radius:22px;padding:14px 16px}.friends-panel>.invite-friend-note h2{color:#654817}.friends-panel>.invite-friend-note p,.friends-panel>.invite-friend-note strong{color:#654f29}.friends-panel>.invite-friend-note .invite-friend-group{height:100px}.friends-panel>.friends-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}@media(max-height:600px){.friends-panel>.invite-friend-note{padding:8px 12px}.friends-panel>.invite-friend-note .invite-friend-group{height:80px}}
