
/* Only the Nebel-Crew page is changed. Existing friend/search/message/profile
   handlers and server data remain untouched. */
html body .app section#friends.v673-friends{
  position:relative!important;
  overflow:hidden!important;
  padding:10px 8px 28px!important;
  background:
    radial-gradient(circle at 50% -6%,rgba(174,116,52,.16),transparent 28%),
    radial-gradient(circle at 6% 35%,rgba(138,88,38,.08),transparent 26%),
    radial-gradient(circle at 94% 57%,rgba(138,88,38,.07),transparent 25%),
    linear-gradient(180deg,#1b1008 0%,#2b190d 52%,#100905 100%)!important;
}

/* ---------- Fantasy / wooden page header ---------- */
html body .app section#friends.v673-friends > .v052-scene-banner{
  min-height:122px!important;
  margin:0 0 12px!important;
  padding:18px 78px 16px!important;
  border:2px solid #80602b!important;
  border-radius:17px!important;
  overflow:visible!important;
  background:
    linear-gradient(90deg,rgba(0,0,0,.23),transparent 15%,transparent 85%,rgba(0,0,0,.23)),
    repeating-linear-gradient(8deg,rgba(255,255,255,.022) 0 3px,rgba(0,0,0,.025) 3px 7px),
    linear-gradient(180deg,#6c401c 0%,#4b2a13 53%,#321a0d 100%)!important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.58),
    inset 0 0 0 4px rgba(35,18,8,.78),
    inset 0 0 0 6px rgba(177,119,47,.30),
    inset 0 1px rgba(255,232,181,.22)!important;
  position:relative!important;
  text-align:center!important;
}
html body .app section#friends.v673-friends > .v052-scene-banner::before{
  content:"🌿";
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%) rotate(-12deg);
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:30px;
  background:radial-gradient(circle,#17351d 0 52%,#07100a 55% 100%);
  border:2px solid #9a7132;
  box-shadow:0 0 0 4px #21150b,0 0 18px rgba(67,216,79,.28);
}
html body .app section#friends.v673-friends > .v052-scene-banner::after{
  content:"GOOD BUDS\A BETTER LEGENDS";
  white-space:pre;
  position:absolute;
  right:11px;
  top:16px;
  padding:8px 7px;
  border:1px solid #8d6b35;
  border-radius:7px;
  background:
    repeating-linear-gradient(4deg,rgba(255,255,255,.035) 0 2px,transparent 2px 5px),
    linear-gradient(160deg,#8e5928,#5c3518);
  color:#1c1008;
  font-size:7px;
  line-height:1.05;
  font-weight:1000;
  letter-spacing:.02em;
  transform:rotate(2deg);
  box-shadow:0 4px 9px #0008,inset 0 1px #d39c55;
}
html body .app section#friends.v673-friends > .v052-scene-banner > div{
  width:100%!important;
}
html body .app section#friends.v673-friends .v052-title{
  font-family:Georgia,"Times New Roman",serif!important;
  color:#fff0cb!important;
  font-size:25px!important;
  font-weight:1000!important;
  letter-spacing:.015em!important;
  text-shadow:0 2px 0 #291408,0 0 9px rgba(248,195,93,.25)!important;
}
html body .app section#friends.v673-friends .v052-sub{
  display:inline-block!important;
  margin-top:7px!important;
  padding:5px 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(179,125,54,.55)!important;
  background:rgba(19,10,5,.55)!important;
  color:#e7d8b8!important;
  font-size:8.5px!important;
  font-weight:800!important;
}

/* ---------- Main Crew panel ---------- */
html body .app section#friends.v673-friends > .v673-crew-card{
  margin:0!important;
  padding:13px!important;
  border:1px solid #76542d!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 95% 0%,rgba(176,118,54,.09),transparent 27%),
    linear-gradient(155deg,rgba(55,32,15,.99),rgba(24,14,7,.995))!important;
  box-shadow:
    0 14px 35px rgba(0,0,0,.55),
    inset 0 1px rgba(174,236,143,.035),
    inset 0 0 26px rgba(54,142,53,.025)!important;
}
html body .app section#friends.v673-friends .v673-crew-title{
  margin:0 0 10px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid rgba(154,111,60,.30)!important;
}
html body .app section#friends.v673-friends .v673-crew-title h2{
  font-size:18px!important;
  color:#f5f6ef!important;
}
html body .app section#friends.v673-friends .v673-crew-title .muted{
  margin-top:2px!important;
  font-size:8.5px!important;
  color:#a6b4a6!important;
}
html body .app section#friends.v673-friends #v072FriendCount{
  padding:6px 10px!important;
  border:1px solid #76542d!important;
  background:linear-gradient(180deg,#4b2d15,#24150a)!important;
  color:#d9efda!important;
  font-size:8px!important;
  font-weight:900!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04)!important;
}
html body .app section#friends.v673-friends #v072FriendCount::before{
  content:"👥";
  margin-right:4px;
}

/* ---------- Search ---------- */
html body .app section#friends.v673-friends .v072-friend-actions{
  grid-template-columns:minmax(0,1fr) 86px!important;
  gap:8px!important;
  margin:0 0 12px!important;
}
html body .app section#friends.v673-friends #v072FriendSearchInput{
  min-width:0!important;
  height:45px!important;
  padding:0 13px 0 37px!important;
  border:1px solid #76542d!important;
  border-radius:12px!important;
  outline:none!important;
  background:
    radial-gradient(circle at 16px 50%,rgba(113,215,96,.18) 0 4px,transparent 5px),
    linear-gradient(180deg,#2e1b0e,#170d07)!important;
  color:#edf3ea!important;
  font-size:11px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;
}
html body .app section#friends.v673-friends #v072FriendSearchInput::placeholder{
  color:#77837b!important;
}
html body .app section#friends.v673-friends #v072FriendSearchInput:focus{
  border-color:#64b25d!important;
  box-shadow:0 0 0 2px rgba(100,178,93,.12),0 0 15px rgba(84,211,84,.08)!important;
}
html body .app section#friends.v673-friends #v072FriendSearchBtn{
  min-height:45px!important;
  padding:0 13px!important;
  border:1px solid #8de168!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#91ea6b 0%,#45ad40 100%)!important;
  color:#071008!important;
  font-size:11px!important;
  font-weight:1000!important;
  text-shadow:0 1px rgba(255,255,255,.22)!important;
  box-shadow:0 6px 15px rgba(26,99,31,.28),inset 0 1px rgba(255,255,255,.36)!important;
}

/* ---------- Section headings ---------- */
html body .app section#friends.v673-friends .v072-friend-section{
  margin-top:12px!important;
}
html body .app section#friends.v673-friends .v072-friend-section h3{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin:0 0 8px!important;
  padding:0 0 7px!important;
  border-bottom:1px solid rgba(145,103,54,.24)!important;
  color:#eff3ec!important;
  font-size:11px!important;
  font-weight:1000!important;
}
html body .app section#friends.v673-friends .v072-friend-section:nth-of-type(2) h3::before{
  content:"✉️";
  font-size:13px;
}
html body .app section#friends.v673-friends .v072-friend-section:nth-of-type(3) h3::before{
  content:"👥";
  font-size:14px;
}

/* ---------- Empty/request state ---------- */
html body .app section#friends.v673-friends .v072-empty,
html body .app section#friends.v673-friends .v072-status-offline{
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  padding:10px 12px!important;
  border:1px solid #6b4c28!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#2c1a0e,#170d07)!important;
  color:#8f9d92!important;
  font-size:8px!important;
}

/* ---------- Friend cards ---------- */
html body .app section#friends.v673-friends #v072FriendsList,
html body .app section#friends.v673-friends #v072RequestsList,
html body .app section#friends.v673-friends #v072FriendSearchResults{
  display:grid!important;
  gap:7px!important;
}
html body .app section#friends.v673-friends .v072-player-row{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid #73522c!important;
  border-radius:13px!important;
  background:
    radial-gradient(circle at 7% 50%,rgba(173,115,52,.09),transparent 19%),
    linear-gradient(155deg,#34200f 0%,#211208 63%,#130a05 100%)!important;
  box-shadow:
    inset 0 1px rgba(188,242,170,.025),
    0 6px 15px rgba(0,0,0,.23)!important;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
html body .app section#friends.v673-friends .v072-player-row:active{
  transform:scale(.995)!important;
  border-color:#4f9454!important;
}

/* Avatar / rank medallion */
html body .app section#friends.v673-friends .v072-rank{
  width:39px!important;
  height:39px!important;
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid #806038!important;
  border-radius:50%!important;
  background:
    radial-gradient(circle,#2e1d10 0 55%,#150c06 58% 100%)!important;
  color:#f0f2ec!important;
  font-size:11px!important;
  font-weight:1000!important;
  box-shadow:
    0 0 0 3px rgba(33,84,40,.38),
    0 0 12px rgba(65,174,72,.12)!important;
}
html body .app section#friends.v673-friends .v072-rank::before,
html body .app section#friends.v673-friends .v072-rank::after{
  position:absolute;
  font-size:10px;
  filter:saturate(1.15);
  z-index:-1;
}
html body .app section#friends.v673-friends .v072-rank::before{
  content:"🌿";
  left:-7px;
  bottom:-4px;
  transform:rotate(-30deg);
}
html body .app section#friends.v673-friends .v072-rank::after{
  content:"🌿";
  right:-7px;
  top:-4px;
  transform:rotate(145deg);
}

/* Name + live status */
html body .app section#friends.v673-friends .v072-player-name{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  color:#f5f4ed!important;
  font-size:10.5px!important;
  font-weight:1000!important;
  line-height:1.15!important;
}
html body .app section#friends.v673-friends .v329-presence{
  margin:0!important;
  padding:2px 6px!important;
  border:1px solid #3f5647!important;
  border-radius:999px!important;
  background:#2b1a0e!important;
  color:#89958d!important;
  font-size:5.7px!important;
  font-weight:900!important;
}
html body .app section#friends.v673-friends .v329-presence.online{
  border-color:#3f8b49!important;
  background:#0c2412!important;
  color:#9cec8c!important;
}
html body .app section#friends.v673-friends .v329-presence::before{
  width:5px!important;
  height:5px!important;
}

/* Stats: clearer hierarchy, less text-wall feeling */
html body .app section#friends.v673-friends .v4124-social-lines{
  display:grid!important;
  gap:2px!important;
  margin-top:4px!important;
}
html body .app section#friends.v673-friends .v4124-social-line{
  min-width:0!important;
  color:#98a59a!important;
  font-size:7.1px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
html body .app section#friends.v673-friends .v4124-social-line strong{
  color:#e9cf68!important;
  font-weight:1000!important;
}
html body .app section#friends.v673-friends .v4124-social-line .good{
  color:#86dc73!important;
}

/* Actions */
html body .app section#friends.v673-friends .v073-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
html body .app section#friends.v673-friends .v073-row-actions .btn{
  min-height:32px!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  white-space:nowrap!important;
  font-size:7px!important;
  font-weight:1000!important;
  box-shadow:none!important;
}
html body .app section#friends.v673-friends .v073-row-actions .v382-message-btn{
  border:1px solid #806038!important;
  background:linear-gradient(180deg,#4b2d15,#24150a)!important;
  color:#edf8ea!important;
}
html body .app section#friends.v673-friends .v073-row-actions [data-v073-remove]{
  border:1px solid #ad554b!important;
  background:linear-gradient(180deg,#321714,#1b0b0a)!important;
  color:#ffb1a8!important;
}
html body .app section#friends.v673-friends .v073-row-actions [data-v073-remove]::first-letter{
  color:#ff7065!important;
}
html body .app section#friends.v673-friends .v073-row-actions [data-v073-accept]{
  border:1px solid #76cf62!important;
  background:linear-gradient(180deg,#65c955,#338e36)!important;
  color:#071008!important;
}
html body .app section#friends.v673-friends .v073-row-actions [data-v073-decline]{
  border:1px solid #8b5f53!important;
  background:#21110d!important;
  color:#e8b0a6!important;
}

/* Search results start as a separate panel when present. */
html body .app section#friends.v673-friends #v072FriendSearchResults:not(:empty){
  margin-top:12px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(77,131,75,.24)!important;
}

/* ---------- Bottom wooden Crew plaque ---------- */
html body .app section#friends.v673-friends .v673-crew-footer{
  min-height:64px!important;
  margin:10px 0 0!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:30px auto 1fr 30px!important;
  gap:8px!important;
  align-items:center!important;
  border:2px solid #795725!important;
  border-radius:14px!important;
  background:
    repeating-linear-gradient(6deg,rgba(255,255,255,.02) 0 3px,rgba(0,0,0,.02) 3px 7px),
    linear-gradient(180deg,#553217,#321b0d)!important;
  box-shadow:
    inset 0 0 0 3px rgba(25,13,6,.72),
    0 8px 18px rgba(0,0,0,.42)!important;
  color:#d8efc8!important;
}
html body .app section#friends.v673-friends .v673-crew-footer > span{
  font-size:23px!important;
  text-align:center!important;
  filter:drop-shadow(0 0 6px rgba(80,222,83,.30));
}
html body .app section#friends.v673-friends .v673-crew-footer b{
  color:#8ce56e!important;
  font-size:11px!important;
  font-weight:1000!important;
  text-shadow:0 0 10px rgba(73,204,71,.22)!important;
}
html body .app section#friends.v673-friends .v673-crew-footer small{
  color:#d5bd87!important;
  font-size:6.6px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  text-align:center!important;
}

/* ---------- Phone layout ---------- */
@media(max-width:560px){
  html body .app section#friends.v673-friends > .v052-scene-banner{
    min-height:106px!important;
    padding:15px 61px 13px!important;
  }
  html body .app section#friends.v673-friends > .v052-scene-banner::before{
    left:11px!important;
    width:42px!important;
    height:42px!important;
    font-size:24px!important;
  }
  html body .app section#friends.v673-friends > .v052-scene-banner::after{
    right:7px!important;
    top:13px!important;
    padding:6px 5px!important;
    font-size:5.4px!important;
  }
  html body .app section#friends.v673-friends .v052-title{
    font-size:19px!important;
  }
  html body .app section#friends.v673-friends .v052-sub{
    font-size:6.6px!important;
    padding:4px 8px!important;
  }
  html body .app section#friends.v673-friends > .v673-crew-card{
    padding:10px!important;
  }
  html body .app section#friends.v673-friends .v673-crew-title h2{
    font-size:15px!important;
  }
  html body .app section#friends.v673-friends .v072-friend-actions{
    grid-template-columns:minmax(0,1fr) 72px!important;
    gap:6px!important;
  }
  html body .app section#friends.v673-friends #v072FriendSearchInput{
    height:40px!important;
    padding-left:30px!important;
    font-size:8.4px!important;
  }
  html body .app section#friends.v673-friends #v072FriendSearchBtn{
    min-height:40px!important;
    font-size:8.5px!important;
  }

  /* Friend information stays readable; actions move under the stats rather than
     squeezing/overlapping the text on narrow Android screens. */
  html body .app section#friends.v673-friends .v072-player-row{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:7px!important;
    padding:9px!important;
  }
  html body .app section#friends.v673-friends .v072-rank{
    width:34px!important;
    height:34px!important;
    font-size:9px!important;
  }
  html body .app section#friends.v673-friends .v072-player-name{
    font-size:9.4px!important;
  }
  html body .app section#friends.v673-friends .v4124-social-line{
    font-size:6.4px!important;
  }
  html body .app section#friends.v673-friends .v073-row-actions{
    grid-column:2!important;
    width:100%!important;
    justify-content:flex-start!important;
    margin-top:3px!important;
    gap:5px!important;
    flex-wrap:wrap!important;
  }
  html body .app section#friends.v673-friends .v073-row-actions .btn{
    min-height:28px!important;
    padding:6px 8px!important;
    font-size:6.3px!important;
  }
  html body .app section#friends.v673-friends .v673-crew-footer{
    min-height:55px!important;
    grid-template-columns:24px auto 1fr 24px!important;
    gap:5px!important;
    padding:7px 8px!important;
  }
  html body .app section#friends.v673-friends .v673-crew-footer > span{
    font-size:18px!important;
  }
  html body .app section#friends.v673-friends .v673-crew-footer b{
    font-size:8.5px!important;
  }
  html body .app section#friends.v673-friends .v673-crew-footer small{
    font-size:5.4px!important;
  }
}
