/* Friends command deck: retains existing live controls and data handlers. */
#friends-screen{background:linear-gradient(90deg,#02101de0,#02101d65),url('../images/ui/friends/comms-nexus.png') center/cover no-repeat;padding:12px;color:#e5f6ff;isolation:isolate}
#friends-screen .fc-shell{height:100%;min-height:0;display:flex;flex-direction:column;padding:16px 22px 10px;border:1px solid #548fa9;border-radius:22px 0;box-shadow:inset 0 2px #70e6f5;background:#02132116;overflow:hidden}
#friends-screen .fc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #79c3db33;padding-bottom:12px;flex-shrink:0}
#friends-screen .fc-top>div{text-align:center}#friends-screen .fc-top h2{font-family:Orbitron,sans-serif;font-size:25px;letter-spacing:4px;color:#e5f8ff;margin:4px 0 0}
#friends-screen .fc-top small,#friends-screen .fc-top>span{font-size:9px;letter-spacing:2px;color:#8cd9e6}
#friends-screen .fr-back-btn{width:auto;height:auto;min-height:36px;font-size:12px;padding:6px 10px;border:0;color:#86eaff;background:none}
#friends-screen .fc-hero{padding:20px 0;flex-shrink:0}#friends-screen .fc-hero small{font-size:10px;letter-spacing:3px;color:#7ee9f2}
#friends-screen .fc-hero h1{font-family:Arial,sans-serif;font-size:clamp(24px,3.5vw,40px);letter-spacing:-1px;margin:7px 0;color:#f0f9ff;text-shadow:0 2px 8px #00101d}
#friends-screen .fc-hero p{font-size:13px;color:#b6cdd8;margin:0}
#friends-screen .fr-tabs{padding:0 0 10px;gap:7px;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
#friends-screen .fr-tab{flex:0 0 auto;min-width:130px;border:1px solid #45799188;border-radius:3px;background:#061b2bc4;color:#bcd5e1;padding:9px 16px;white-space:nowrap;font-size:12px}
#friends-screen .fr-tab.active{background:linear-gradient(130deg,#155878dd,#0a2e43dd);border-color:#7ce5ff;color:#e6fbff;box-shadow:inset 0 2px #7ce5ff}
#friends-screen .fc-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,27%);gap:16px;flex:1;min-height:0;margin-top:14px}
#friends-screen .fc-roster{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #4c829b99;background:linear-gradient(130deg,#062335b8,#02132185);border-radius:14px 0;overflow:hidden}
#friends-screen .fc-panel-head{padding:14px 18px 10px;flex-shrink:0;border-top:2px solid #73e7f0}#friends-screen .fc-panel-head h3{font-size:16px;margin:0;color:#e5f6ff}#friends-screen .fc-panel-head small{font-size:10px;color:#9ab8c8}
#friends-screen .fr-tab-content{padding:8px 14px 14px;min-width:0}#friends-screen .fr-tab-content.active{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#32768b #061523}
#friends-screen .fr-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px;border:1px solid #37647b99;border-left:2px solid #61cfe2;border-radius:3px;background:linear-gradient(110deg,#0b3547a6,#061a2888)}
#friends-screen .fr-card-top{grid-column:1;display:flex;flex-wrap:wrap;gap:6px;min-width:0}#friends-screen .fr-card-name{min-width:0;font-size:14px;overflow-wrap:anywhere}#friends-screen .fr-status-label{font-size:10px;color:#a9c7d6}
#friends-screen .fr-card-stats{grid-column:1;color:#a9c7d6;font-size:11px;flex-wrap:wrap;gap:10px}
#friends-screen .fr-card-actions{grid-column:2;grid-row:1/3;align-self:center;margin:0;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#friends-screen .fr-card-actions button,#friends-screen .fr-request-actions button,#friends-screen .fr-btn-add,#friends-screen .fr-search-submit{min-height:36px;font-size:11px;padding:8px 10px;border:1px solid #45849c88;border-radius:3px;background:linear-gradient(145deg,#113749cc,#071827dd);color:#d7eff7}
#friends-screen .fr-btn-gift:not(:disabled),#friends-screen .fr-btn-accept{color:#82eac8}#friends-screen .fr-btn-remove{color:#f2a3ad}
#friends-screen button:disabled{opacity:.5;cursor:default}#friends-screen button:focus-visible,#friends-screen input:focus-visible{outline:2px solid #83ecff;outline-offset:2px}
#friends-screen .fr-request-card,#friends-screen .fr-search-card{border:1px solid #37647b99;border-left:2px solid #61cfe2;border-radius:3px;background:#08293ca6;padding:12px;gap:12px}#friends-screen .fr-request-name,#friends-screen .fr-search-name{min-width:0;overflow-wrap:anywhere}
#friends-screen .fc-supplies{display:flex;flex-direction:column;overflow:auto;min-height:0;scrollbar-width:thin}
#friends-screen .fr-gift-banner,#friends-screen .fr-send-all-bar,#friends-screen .fc-network-note{margin:0 0 12px;padding:18px;border:1px solid #4c829b99;border-radius:14px 0;background:linear-gradient(130deg,#062335b8,#02132185);animation:none}
#friends-screen .fr-gift-banner{flex-direction:column;text-align:center;gap:10px}#friends-screen .fr-gift-banner small,#friends-screen .fr-send-all-bar small,#friends-screen .fc-network-note small{font-size:9px;letter-spacing:1px;color:#9cc3d2}
#friends-screen .fr-gift-banner-icon{font-size:40px;color:#ffda82;line-height:1}#friends-screen .fr-gift-banner h3{margin:0;font-size:21px;color:#e5f6ff}#friends-screen .fr-gift-banner-text{font-size:12px;color:#b5ccd8}#friends-screen .fr-gift-amount{font-size:25px;margin-top:12px;color:#ffe09a}
#friends-screen .fr-collect-btn{width:100%;min-height:40px;background:linear-gradient(#ffe69a,#df9a28);color:#211b0e;border:1px solid #ffdf8c;border-radius:3px;font-weight:700;text-shadow:none}
#friends-screen .fr-send-all-bar h3{font-size:15px;margin:8px 0;color:#e5f6ff}#friends-screen .fr-send-all-bar p,#friends-screen .fc-network-note p{font-size:11px;line-height:1.6;color:#b5ccd8;margin:8px 0 12px}
#friends-screen .fr-send-all-btn{font-size:12px;min-height:40px;background:transparent;border:1px solid #6de3f2;border-radius:3px;color:#d5f8ff;text-shadow:0 1px 3px #00111f;box-shadow:none;width:100%}
#friends-screen #friends-send-all-bar{order:1;margin:auto 0 0;padding:0;border:0;border-radius:0;background:transparent;flex-shrink:0}
#friends-screen #friends-send-all-bar>small,#friends-screen #friends-send-all-bar>h3,#friends-screen #friends-send-all-bar>p{display:none}
#friends-screen .fr-send-all-btn:hover:not(:disabled){background:rgba(70,190,215,.12);border-color:#c1f7ff}
#friends-screen .fr-send-all-btn:focus-visible{outline:2px solid #c1f7ff;outline-offset:3px}
#friends-screen .fc-network-note{border-color:#36657b66}#friends-screen .fr-search-bar{flex-shrink:0}#friends-screen input{background:#011421b8;color:#eaf8ff;border:1px solid #448aa2;border-radius:3px;min-width:0}
#friends-screen .fr-invite-panel{background:transparent;border:0;padding:8px;max-width:760px}#friends-screen .fr-invite-copy{color:#bbd2df;line-height:1.6}#friends-screen .fr-empty-state{color:#bbd2df;padding:30px 15px}
#friends-screen .fc-footer{font-size:8px;color:#92b3c4;letter-spacing:2px;margin-top:10px;flex-shrink:0}
#friends-screen .fr-loading{position:absolute;inset:0;align-items:center;justify-content:center;background:url('../images/ui/friends/comms-nexus.png') center/cover no-repeat;z-index:10;color:#e5faff;font:600 16px Arial,sans-serif;text-shadow:0 2px 4px #00101d,0 0 12px #00101d;border:0;box-shadow:none}
@media(max-height:600px){#friends-screen{padding:7px}#friends-screen .fc-shell{padding:9px 14px 6px}#friends-screen .fc-top{padding-bottom:5px}#friends-screen .fc-top h2{font-size:19px}#friends-screen .fc-top small,#friends-screen .fc-top>span{font-size:7px}#friends-screen .fc-hero{padding:8px 0}#friends-screen .fc-hero h1{font-size:25px;margin:3px 0}#friends-screen .fc-hero p{display:none}#friends-screen .fr-tabs{padding-bottom:6px}#friends-screen .fr-tab{min-height:32px;padding:6px 12px;font-size:11px}#friends-screen .fc-workspace{gap:10px;margin-top:8px;grid-template-columns:minmax(0,1fr) 205px}#friends-screen .fc-panel-head{padding:7px 12px}#friends-screen .fc-panel-head h3{font-size:14px}#friends-screen .fc-panel-head small{font-size:9px}#friends-screen .fr-card{padding:8px}#friends-screen .fr-card-name{font-size:12px}#friends-screen .fr-card-stats{font-size:10px}#friends-screen .fr-card-actions button{padding:6px 8px;font-size:10px;min-height:32px}#friends-screen .fr-gift-banner,#friends-screen .fr-send-all-bar,#friends-screen .fc-network-note{padding:10px;margin-bottom:8px}#friends-screen .fr-gift-banner-icon,#friends-screen .fr-send-all-bar p,#friends-screen .fr-send-all-bar h3,#friends-screen .fr-send-all-bar small{display:none}#friends-screen .fr-gift-banner h3{font-size:16px}#friends-screen .fr-gift-amount{font-size:20px;margin-top:5px}#friends-screen .fc-footer{font-size:6px;margin-top:6px}}
@media(max-width:650px){#friends-screen .fc-workspace{grid-template-columns:minmax(0,1fr) 170px}#friends-screen .fr-card{grid-template-columns:minmax(0,1fr)}#friends-screen .fr-card-actions{grid-column:1;grid-row:auto}#friends-screen .fc-top>span{display:none}#friends-screen .fc-top>div{margin-left:auto}#friends-screen .fr-tab{min-width:95px}#friends-screen .fr-request-card,#friends-screen .fr-search-card{flex-wrap:wrap}}
@media(max-width:500px) and (orientation:portrait){#friends-screen .fc-workspace{display:flex;flex-direction:column;overflow:auto}#friends-screen .fc-roster{flex:1 0 260px}#friends-screen .fc-supplies{overflow:visible;flex-shrink:0}#friends-screen .fc-hero p{display:none}}

/* Let the command-deck artwork show through the roster. */
#friends-screen .fc-roster{background:linear-gradient(130deg,#06233540,#02132118);border-color:#4c829b66}
#friends-screen .fr-card{background:linear-gradient(110deg,#0b354738,#061a2820);border-color:#37647b66;border-left-color:#4796a6}
#friends-screen .fr-request-card,#friends-screen .fr-search-card{background:#08293c38;border-color:#37647b66}
#friends-screen .fc-panel-head h3{color:#b8cfda}
#friends-screen .fc-panel-head small{color:#829eaf}
#friends-screen .fr-card-name,#friends-screen .fr-request-name,#friends-screen .fr-search-name{color:#b8cfda;text-shadow:0 1px 3px #00101d}
#friends-screen .fr-card-stats,#friends-screen .fr-status-label{color:#8da9b8;text-shadow:0 1px 3px #00101d}
#friends-screen .fr-card-actions button{background:#07182738;color:#afc9d5}

#friends-screen .fc-network-note small{color:#829eaf}
#friends-screen .fc-network-note p{color:#8da9b8;text-shadow:0 1px 3px #00101d}
/* Dark ink needs a light surface; keep it localized so artwork remains visible. */
#friends-screen .fr-status-label{color:#071c2a;background:rgba(206,231,240,.82);font-family:Arial,sans-serif;font-weight:700;text-shadow:none;padding:4px 6px;border-radius:3px}
#friends-screen .fr-card-actions .fr-btn-gift.gifted,#friends-screen .fr-card-actions .fr-btn-gift:disabled{color:#071c2a;background:rgba(206,231,240,.82);border:1px solid #b2d5df;opacity:1;font-family:Arial,sans-serif;font-weight:700;text-shadow:none}
#friends-screen .fc-network-note{background:rgba(206,231,240,.80);border:1px solid #b2d5df}
#friends-screen .fc-network-note small{color:#173647;font-family:Arial,sans-serif;font-weight:700;text-shadow:none}
#friends-screen .fc-network-note p{color:#071c2a;font:600 12px/1.6 Arial,sans-serif;text-shadow:none}
