.friends-shell{height:100svh;max-width:760px;margin:auto;display:flex;flex-direction:column;padding:10px 4%;gap:10px;background:repeating-linear-gradient(2deg,#0000 0 26px,#2e150b18 27px 28px),linear-gradient(110deg,#874720,#5d2d16 55%,#844119);font-family:Arial,sans-serif;color:#381709;position:relative;overflow:hidden}.friends-wallet{display:flex;gap:4%}.friend-wallet{position:relative;width:48%;height:65px}.friend-wallet svg{width:100%;height:100%}.friend-wallet b{position:absolute;left:40%;right:18%;top:24%;text-align:center;background:#fff5e5;font-size:24px}.friends-heading{position:relative;height:72px;min-height:55px;margin:0}.friends-heading svg{width:100%;height:100%}.friends-heading span{position:absolute;left:42%;top:22%;background:#fff6e9;font-size:28px;font-weight:900}.friend-code{padding:12px;display:flex;align-items:center;gap:8px;border:3px solid #ffba28;outline:2px solid #a94800;border-radius:20px;background:linear-gradient(110deg,#fffdf4,#fff0d8);box-shadow:inset 0 0 0 2px white,0 4px 4px #36130088}.friend-code>div{display:grid;gap:5px}.friend-code small{font-weight:bold}.friend-code strong{font-size:22px}.friend-code>span{margin-left:auto;font-weight:bold;font-size:14px}.friend-code button{padding:0;width:40px;height:40px;border:1px solid #dbaa41;background:#fff6e3;border-radius:12px;box-shadow:0 2px 2px #75402044}.friend-code button svg{width:100%;height:100%}.friend-green{position:relative;min-height:52px;padding:0;border:0;background:none;box-shadow:none;border-radius:24px;color:white;font:900 18px Arial;text-shadow:0 2px 2px #053a25,1px 0 #053a25}.friend-green>svg{position:absolute;inset:0;width:100%;height:100%;border-radius:24px}.friend-green>span{position:relative;display:grid;place-items:center;margin-left:20%;width:75%;min-height:46px;background:linear-gradient(#04bb73,#079d4f);border-radius:12px}.friends-tabs{display:flex;gap:4px}.friends-tabs button{flex:1;padding:12px 4px;font-weight:800;background:#fff6e5;border:2px solid #f4b735;border-radius:25px;color:#4f270f;font-size:16px;box-shadow:0 3px 4px #39140455}.friends-tabs .selected{color:white;background:linear-gradient(#00c56b,#007c3b)}.friends-tabs b{display:inline-grid;place-items:center;background:#e6000c;color:white;border-radius:50%;min-width:22px;height:22px}.friends-scroll{overflow:auto;flex:1;min-height:0;padding:5px 3px;overscroll-behavior:contain}.friend-pane{position:relative;min-height:130px;margin-bottom:12px;padding:12px;display:flex;align-items:center;gap:12px;isolation:isolate;background:#fff6e9;border-radius:22px;border:3px solid #f4ac2f;box-shadow:0 3px 5px #35100677,inset 0 0 0 2px white}.pane-art{position:absolute;inset:0;width:100%;height:100%;z-index:-2;border-radius:22px}.friend-pane:before{content:'';position:absolute;inset:5px;background:linear-gradient(110deg,#fffdf3,#fff2df);border-radius:17px;z-index:-1}.friend-face{width:88px;height:88px;flex:none;border-radius:50%;overflow:hidden;background:#fff1d8;border:2px solid #e1a239}.friend-face svg{width:100%;height:100%}.friend-details{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}.friend-details strong{font-size:22px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.friend-details small{font-size:15px}.friend-details span{font-size:13px;font-weight:700}.friend-actions{display:flex;flex-direction:column;gap:5px;width:34%;max-width:190px}.friend-actions .friend-green{min-height:42px;font-size:14px}.friend-actions .friend-green span{min-height:36px}.friend-small{padding:2px;background:transparent;border:0;box-shadow:none;font-size:11px;color:#765127}.friend-cream{background:#fff5e5;border:2px solid #edb045;border-radius:18px;padding:8px;color:#532b16;font-weight:800}.friends-empty{background:#fff5e6;border:2px solid #dca331;padding:20px;border-radius:18px;text-align:center;font-weight:700}.friends-nav{height:82px;display:flex;flex-shrink:0;gap:1px;margin:0 -3%;position:relative}.friends-nav button{position:relative;background:none;border:0;box-shadow:none;flex:1;padding:0}.friends-nav svg{position:absolute;inset:0;width:100%;height:100%}.friends-nav span{position:absolute;bottom:11%;left:10%;right:10%;background:#fff4e0;font-weight:800;font-size:15px;color:#441d09}.friends-nav button:nth-child(3) span{background:#008e3a;color:white}.friends-notice{position:absolute;bottom:100px;left:6%;right:6%;padding:12px;background:#fff7e8;border:2px solid #dfaa38;border-radius:16px;z-index:30;text-align:center}.friend-overlay{position:absolute;inset:0;background:#0009;z-index:20;display:grid;place-items:center;padding:4%}.friend-dialog{position:relative;background:linear-gradient(130deg,#fffcf1,#fff0d5);border:3px solid #fab224;outline:2px solid #a34809;box-shadow:inset 0 0 0 2px #fff,0 7px 10px #0008;border-radius:30px;padding:26px 16px;width:100%;max-height:88%;overflow:auto;text-align:center}.friend-dialog h2{font-size:26px;margin:0 30px 20px;color:#401b09}.friend-dialog label{display:grid;gap:14px;font-weight:800}.friend-dialog input{padding:14px;width:90%;margin:auto;text-align:center;background:#fff9ef;border:2px solid #d8a444;border-radius:20px;color:#40200e;font-size:26px;letter-spacing:3px}.friend-dialog>.friend-green{width:90%;margin:16px auto}.friend-close{position:absolute;right:8px;top:8px;border:2px solid #ffcc35;border-radius:50%;width:34px;height:34px;background:#e70008;color:white;font-size:25px;padding:0}.friend-profile-face{width:min(220px,65%);margin:auto}.friend-profile-face svg{width:100%;height:100%}.facebook-badge{width:20px;height:20px;text-align:center;background:#075ce0;color:white;border-radius:50%}.friends-scroll h2{color:white;font-size:18px;text-align:center}.friends-shell button:focus-visible{outline:3px solid #5ce8ff;outline-offset:2px}.friends-shell button:disabled{opacity:.65}@media(max-width:390px){.friends-shell{gap:7px;padding-top:7px}.friend-wallet{height:48px}.friends-heading{height:55px}.friends-heading span{font-size:22px}.friend-code{padding:9px 5px;gap:4px}.friend-code strong{font-size:18px}.friend-code>span{font-size:11px}.friend-code button{width:32px;height:32px}.friend-face{width:65px;height:65px}.friend-details strong{font-size:18px}.friend-pane{padding:9px;gap:7px;min-height:105px}.friends-nav{height:68px}.friends-nav span{font-size:12px}}@media(orientation:landscape){.friends-shell{max-width:1000px}.friends-heading,.friend-code{display:none}.friends-wallet{height:50px}.friend-wallet{max-width:230px;height:45px}.friends-nav{height:60px}.friends-scroll{display:grid;grid-template-columns:1fr 1fr;gap:10px}.friend-pane{margin:0}.friends-heading span{font-size:22px}}
.friends-home-badge:not(:empty){position:absolute;right:0;top:-75%;border:2px solid #ffe17c;border-radius:50%;min-width:2em;height:2em;display:grid;place-items:center;background:#e60013;color:white;font:800 2.8cqw Arial;text-shadow:none;z-index:5}.friends-home-badge:empty{display:none}

/* Match the home and store portrait stage. */
body:has(.friends-shell){background:#4c2916;overflow:hidden}
body:has(.friends-shell) #app{height:100svh;display:grid;place-items:center;padding:0}
.friends-shell{width:min(100vw,calc(100svh * 736 / 1426));height:min(100svh,calc(100vw * 1426 / 736));max-width:none;box-sizing:border-box;margin:0;padding:2cqw 4cqw;gap:2cqw;container-type:inline-size}
.friends-shell *{box-sizing:border-box}
.friends-shell .friends-wallet{flex-shrink:0}
.friends-shell .friend-wallet{height:12cqw}
.friends-shell .friends-heading{display:block;height:14cqw;min-height:0;flex-shrink:0}
.friends-shell .friends-heading span{font-size:5.5cqw}
.friends-shell .friend-code{display:flex;flex-shrink:0}
.friends-shell .friends-scroll{display:block}
.friends-shell .shared-main-nav{margin:0 -4cqw -2cqw;flex-shrink:0}

/* Friends composition inspired by the supplied reference; original Amigos menu retained. */
.friends-shell{padding:2cqw 4cqw 0;gap:2cqw;font-family:'Arial Rounded MT Bold',ui-rounded,'Trebuchet MS',sans-serif;background:#9e511d;isolation:isolate;color:#421b0d}
.friends-shell:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#8b3c0c22,#5d270e66),url('assets/fondo.png') center/cover;pointer-events:none}
.friends-shell .friends-wallet{gap:4%;padding:0 4%}
.friends-shell .friend-wallet{height:9cqw;overflow:hidden;border:2px solid #f9b637;border-radius:30px;background:linear-gradient(#fffef7,#fff0d7);box-shadow:0 3px 4px #52200088}
.friend-wallet>svg{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:30px}
.friends-shell .friend-wallet b{top:20%;left:32%;right:18%;font-size:5cqw;background:linear-gradient(#fffaf0,#fff1dc);line-height:1.1}
.friends-shell .friends-heading{height:13cqw;position:relative;margin:0;background:linear-gradient(90deg,#793510,#a65818,#793510);border:2px solid #f8b638;border-radius:5cqw 5cqw 0 0;box-shadow:0 3px 6px #51210a88;display:grid;place-items:center}
.friends-title-plaque{height:100%;width:74%;display:flex;align-items:center;justify-content:center;gap:2cqw;background:linear-gradient(#fffef5,#ffeccf);border:2px solid #f9b638;clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%)}
.friends-title-plaque i{font-size:4cqw;color:#e19a00;font-style:normal;text-shadow:1px 1px #913900}
.friends-shell .friends-heading span{position:static;background:none;font-size:6.8cqw;font-weight:900;line-height:1}
.friend-people-icon{width:8cqw;height:8cqw;fill:#b86613;stroke:#5b2409;stroke-width:2;flex:none;filter:drop-shadow(0 2px 1px #6d380866)}
.friends-shell .friend-code{margin-top:-2cqw;z-index:1;padding:3cqw 2.5cqw;border-radius:4cqw;border:2px solid #ffb530;gap:2cqw;background:linear-gradient(110deg,#fffef7,#fff1db);box-shadow:inset 0 0 0 2px #fff,0 3px 5px #49200d88}
.friend-code>div{gap:1cqw;flex-shrink:0}.friend-code small{font-size:3.6cqw}.friend-code strong{font-size:4cqw}
.friend-code>span{font-size:3.4cqw;text-align:center;border-left:2px solid #e7a931;padding-left:2cqw;flex:1;margin-left:0}
.friend-code button{width:9cqw;height:9cqw;flex-shrink:0;border-radius:2.5cqw;border:2px solid #e8a727;overflow:hidden;padding:0;background:#fffaf0}
.friend-code [data-copy]{width:7cqw;height:8cqw}.friend-code [data-copy] svg{width:65%;height:65%;fill:none;stroke:#54260d;stroke-width:2.5}
.friends-shell .friend-green{background:linear-gradient(#05d977,#009b4b 55%,#006b33);border:2px solid #ffc340;box-shadow:inset 0 0 0 1px #fff8bc,inset 0 3px 1px #86f8b4,0 3px 4px #50200e77;min-height:10cqw;border-radius:6cqw;display:flex;align-items:center;justify-content:center;gap:2cqw;padding:1cqw 3cqw;font-family:inherit;font-size:4.3cqw}
.friends-shell .friend-green>span{display:block;background:none;width:auto;margin:0;min-height:0;border-radius:0;line-height:1.2}
.friend-green .friend-people-icon{width:6cqw;height:6cqw;fill:white;stroke:#17412b}
.friends-shell .friends-tabs{border:2px solid #efac2c;border-radius:7cqw;gap:0;background:linear-gradient(#fffdf3,#ffedcf);box-shadow:0 3px 5px #52210988;flex-shrink:0;overflow:hidden}
.friends-tabs button{border:0;box-shadow:none;border-radius:6cqw;background:none;padding:2.5cqw 1cqw;font-size:3.7cqw;font-family:inherit}.friends-tabs button.selected{background:linear-gradient(#00d575,#007536);box-shadow:inset 0 0 0 2px #ffe176;text-shadow:0 2px #005126}
.friends-tabs b{font-size:3.1cqw;min-width:4.5cqw;height:4.5cqw;border:1px solid #fff1af}
.friends-shell .friends-scroll{padding:1cqw 0;scrollbar-width:thin}
.friends-shell .friend-pane{padding:2cqw;gap:2cqw;min-height:20cqw;border-radius:4cqw;margin-bottom:2cqw;border:2px solid #ffae28}
.friend-pane .pane-art{display:none}.friend-pane:before{inset:2px;border-radius:3.5cqw}
.friends-shell .friend-face{width:20cqw;height:20cqw;border:2px solid #edac23;box-shadow:0 2px 3px #73390c77}
.friends-shell .friend-details{gap:1.3cqw}.friend-details strong{font-size:5cqw}.friend-details small{font-size:3.5cqw}.friend-details span{font-size:3.3cqw}
.friend-presence:before{content:'';display:inline-block;width:3cqw;height:3cqw;border-radius:50%;background:linear-gradient(#d4d6dc,#777b86);border:1px solid #606571;margin-right:1cqw;vertical-align:middle}.friend-presence.online{color:#087c26}.friend-presence.online:before{background:linear-gradient(#52ff78,#009228);border-color:#05721e}.friend-presence.playing{color:#b24d0a}.friend-presence.playing:before{background:linear-gradient(#ffe54a,#ff7800);border-color:#c77b04}
.friends-shell .friend-actions{width:32%;gap:1cqw}.friends-shell .friend-actions .friend-green{font-size:3.3cqw;min-height:10cqw;padding:1.5cqw 1cqw}.friend-actions .friend-small{font-size:2.6cqw}
.friends-tagline{margin:0;color:#fff5dc;text-align:center;font-weight:900;font-size:3.3cqw;text-shadow:0 2px #4b200c;flex-shrink:0;padding:1.5cqw 0}
.friends-shell .shared-main-nav{position:relative;width:calc(100% + 8cqw);height:auto;aspect-ratio:2100/466;margin:0 -4cqw;min-height:0;flex-shrink:0}
.friends-shell .friends-empty{font-size:3.8cqw;padding:5cqw;border-radius:4cqw;background:linear-gradient(#fffef5,#ffeed4)}

.friends-shell .friends-heading .friend-people-icon{width:8cqw;height:8cqw;max-width:8cqw;max-height:8cqw;position:static}
.friends-shell .friends-title-plaque{min-height:0;overflow:hidden}
.friends-shell [data-add]{flex-shrink:0}
.friends-shell [data-add] .friend-people-icon{position:static;inset:auto;width:6cqw;height:6cqw;border-radius:0}


/* Supplied title sheet: preserve artwork proportions and overlay functional hit areas. */
.friends-shell:before{inset:-12px;filter:blur(9px);transform:scale(1.04)}
.friends-top-art{position:relative;width:100%;aspect-ratio:1704/923;flex-shrink:0;margin-top:1cqw}
.friends-top-art>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.friends-art-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.friends-live-code{position:absolute;left:6%;top:40%;width:21%;height:8%;display:grid;place-items:center;font-size:4.5cqw;line-height:1;color:#34160d}
.friends-shell .friends-art-hit{position:absolute;border:0;background:transparent;box-shadow:none;padding:0;margin:0;min-height:0;cursor:pointer;border-radius:2cqw}
.friends-art-hit.copy-hit{left:28%;top:33%;width:9%;height:15%}
.friends-art-hit.whatsapp-hit{left:70.4%;top:30.5%;width:10.8%;height:18%}
.friends-art-hit.facebook-hit{left:83%;top:30.5%;width:10.3%;height:18%}
.friends-art-hit.add-hit{left:2%;top:55%;width:95%;height:22%;border-radius:8cqw}
.friends-art-hit.friends-hit{left:2%;top:79%;width:47.5%;height:19%;border-radius:8cqw 0 0 8cqw}
.friends-art-hit.requests-hit{left:50%;top:79%;width:47.5%;height:19%;border-radius:0 8cqw 8cqw 0}
.friends-shell .friends-art-hit.selected{box-shadow:inset 0 0 0 2px #04a750}
.friends-live-count{position:absolute;right:3%;top:82%;background:#d9170b;color:white;border:1px solid #ffe082;border-radius:50%;width:5cqw;height:5cqw;display:grid;place-items:center;font-size:3cqw;pointer-events:none}

.friends-shell .friends-top-art{margin-top:0}

.friends-selection-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.friends-shell .friends-art-hit.selected{box-shadow:none}

.friends-shell .friends-top-art{margin-top:3cqw}
.friends-shell .friend-actions{align-self:stretch;justify-content:center}
.friends-shell .friend-actions .friend-green{font-size:3.6cqw;gap:1cqw;min-height:10cqw}
.friend-actions [data-invite]:before{content:'⚄';font-size:5cqw;color:white;line-height:1}
.friend-actions [data-profile]:before{content:'♟';font-size:4.5cqw;color:white;line-height:1}



.friends-shell .friends-art-hit[data-list]{display:flex;align-items:center;justify-content:center;padding-left:18%;padding-right:3%;font-family:inherit;font-size:4.3cqw;font-weight:900;color:#421b0d;line-height:1}
.friends-shell .friends-art-hit[data-list].selected{color:white;text-shadow:0 1px 2px #005c2d}

.friends-shell .friends-top-art{margin-top:5.5cqw}
.friends-shell .friends-art-hit[data-list]{padding-left:0;padding-right:0}
.friends-shell .friends-art-hit[data-list]>span{position:absolute;left:35%;right:5%;top:0;height:100%;display:flex;align-items:center;justify-content:center}

.friends-shell .friends-art-hit[data-list]>span{transform:translateY(.55cqw)}
.friends-shell .friends-art-hit.requests-hit>span{left:31%;right:9%}


.friends-shell .friends-art-hit.facebook-hit{top:32%;left:84%;width:9%;height:15%;background:linear-gradient(#269fed,#0069b7);border:2px solid #ffcf51;border-radius:2.5cqw;box-shadow:inset 0 0 0 1px white,0 2px 2px #63370855;display:grid;place-items:center}
.friends-art-hit.facebook-hit svg{width:65%;height:65%;fill:none;stroke:white;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.friends-shell .friends-tagline{font-size:3.6cqw;margin:0;padding:0.8cqw 0;text-wrap:balance}
.friend-share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.friend-share-options button{min-height:48px;font-size:16px}.friend-share-options button:last-child{grid-column:1/-1}

.friends-shell .friends-tagline{font-size:3.9cqw;padding:0;line-height:1.2;margin-top:-1.2cqw;margin-bottom:-1.2cqw}
.friends-shell .friends-scroll{padding-top:0}

/* Fit the avatar's own circular frame, avoiding a second ring. */
.friends-shell .friend-face{position:relative;display:grid;place-items:center;border:0;background:transparent;box-shadow:none;border-radius:50%;overflow:hidden;aspect-ratio:1;flex-shrink:0}
.friends-shell .friend-face>svg{display:block;width:108%;height:108%;max-width:none;transform:none;flex-shrink:0}


.friend-referral-banner{display:block;position:relative;flex-shrink:0;width:100%;border:0;background:transparent;box-shadow:none;padding:0;margin:0;cursor:pointer;aspect-ratio:2079/756}.friend-referral-banner img{width:100%;height:100%;object-fit:contain;display:block}.friend-referral-note{flex-shrink:0;text-align:center;color:#fff5dc;font-size:2.7cqw;line-height:1.1;margin-top:-1.5cqw}.friends-shell .friends-scroll{overflow-y:auto;scroll-snap-type:y proximity}.friend-pane{scroll-snap-align:start}

/* A framed scroll area with a partial next card, and a compact invite footer. */
.friends-shell .friends-scroll{background:linear-gradient(135deg,#713d20ee,#97522be8);border:2px solid #dba34e;border-radius:3cqw;padding:1.5cqw 1.5cqw 0;box-shadow:inset 0 2px 8px #32140755,0 1px 0 #ffe1a3;scrollbar-color:#e8bd72 #60371e;scroll-snap-type:none}
.friends-shell .friend-referral-banner{width:88%;align-self:center;aspect-ratio:2079/660;margin:0;height:28cqw;max-height:28cqw}
.friends-shell .friend-referral-note{font-size:2.7cqw;margin-top:-2cqw;margin-bottom:0;line-height:1.2}

.friends-shell .friend-referral-banner{height:24cqw;max-height:24cqw}


.friends-shell .illustrated-main-nav{width:calc(min(100vw,100svh * 736 / 1426) * .98);align-self:center;margin:0;aspect-ratio:4.5}

.friends-top-art>.friends-panel-art{clip-path:inset(26% 0 0 0)}.friends-top-art>.friends-new-title{position:absolute;top:-3%;left:5%;width:90%;height:29%;object-fit:contain;pointer-events:none}

.friends-top-art>.friends-new-title{top:-10%;left:0;width:100%;height:37%;object-fit:contain}

.friends-top-art>.friends-new-title{top:-13%;left:0;width:100%;height:41%;object-fit:contain}

/* Keep shell spacing relative to the portrait game, never the desktop viewport. */
.friends-shell{--friends-stage-width:min(100vw,calc(100svh * 736 / 1426));padding:calc(var(--friends-stage-width) * .02) calc(var(--friends-stage-width) * .025) 0;gap:calc(var(--friends-stage-width) * .02)}
.friends-shell .illustrated-main-nav{width:100%;flex-shrink:0}
.friends-shell .friends-empty{margin:0}
