.community-top-button{
  width:34px;
  height:34px;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
.community-top-button:hover,
.community-top-button[aria-expanded="true"]{
  border-color:rgba(230,196,122,.3);
  background:rgba(230,196,122,.055);
  box-shadow:0 0 18px rgba(230,196,122,.12);
}
.community-top-button img{width:23px;height:23px}
.community-top-button.has-unread img{filter:drop-shadow(0 0 6px rgba(230,196,122,.42))}
.community-news-badge{right:-4px;top:-4px}

.community-modal{
  position:fixed;
  inset:0;
  z-index:2400;
  display:grid;
  place-items:center;
  padding:32px;
  background:rgba(1,2,4,.72);
  backdrop-filter:blur(5px);
}
.community-modal[hidden]{display:none}
.community-dialog{
  width:min(980px,calc(100vw - 64px));
  height:min(680px,calc(100vh - 64px));
  min-height:460px;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(220,174,91,.42);
  border-radius:7px;
  background:
    linear-gradient(155deg,rgba(43,31,19,.42),transparent 42%),
    rgba(7,8,11,.965);
  box-shadow:
    0 28px 90px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,239,197,.08);
  color:var(--text-1);
}
.community-dialog-header{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px 16px 24px;
  border-bottom:1px solid rgba(220,174,91,.22);
  background:linear-gradient(90deg,rgba(220,174,91,.07),transparent 55%);
}
.community-dialog-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--gold-d);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.community-dialog-header h2{
  margin:0;
  color:var(--gold-b);
  font-family:'Instrument Serif',serif;
  font-size:34px;
  font-weight:500;
  line-height:1;
}
.community-dialog-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid rgba(230,196,122,.2);
  border-radius:6px;
  background:rgba(255,255,255,.025);
  color:var(--text-2);
  font-size:25px;
  line-height:1;
  cursor:pointer;
  transition:border-color var(--tr),background var(--tr),color var(--tr);
}
.community-dialog-close:hover{
  border-color:rgba(230,196,122,.52);
  background:rgba(230,196,122,.08);
  color:var(--gold-b);
}
.community-dialog-content{min-height:0;overflow:hidden}
.community-state{
  height:100%;
  display:grid;
  place-items:center;
  padding:30px;
  color:var(--text-3);
  font-size:13px;
  text-align:center;
}
.community-state.error{color:#ff998d}

.community-ratings{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.community-rating-toolbar{
  min-height:65px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:11px 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.018);
}
.community-tabs{display:flex;align-items:center;gap:6px}
.community-tab,
.community-class-all,
.community-class-button{
  border:1px solid rgba(230,196,122,.18);
  border-radius:5px;
  background:rgba(255,255,255,.025);
  color:var(--text-2);
  cursor:pointer;
  transition:border-color var(--tr),background var(--tr),color var(--tr);
}
.community-tab{
  min-width:92px;
  height:34px;
  padding:0 14px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.community-tab:hover,
.community-tab.active,
.community-class-all:hover,
.community-class-all.active,
.community-class-button:hover,
.community-class-button.active{
  border-color:rgba(230,196,122,.55);
  background:rgba(230,196,122,.09);
  color:var(--gold-b);
}
.community-class-filters{display:flex;align-items:center;gap:6px}
.community-class-all{width:44px;height:34px;font-size:9px;font-weight:900;text-transform:uppercase}
.community-class-button{width:34px;height:34px;padding:3px}
.community-class-icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(230,196,122,.22);
  border-radius:4px;
  background:#0a0c10;
}
.community-class-icon img{width:100%;height:100%;display:block;object-fit:cover}

.community-rating-table{
  min-height:0;
  overflow:auto;
  padding:0 18px 14px;
  scrollbar-width:thin;
}
.community-rating-row{
  min-height:50px;
  display:grid;
  align-items:center;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.065);
  color:var(--text-2);
  font-size:12px;
}
.community-rating-table.player .community-rating-row{
  grid-template-columns:42px minmax(150px,1fr) 150px minmax(120px,1.15fr) 116px;
}
.community-rating-table.guild .community-rating-row{
  grid-template-columns:42px minmax(170px,1.25fr) minmax(130px,1fr) 105px 82px 104px;
}
.community-rating-table.valor-arena .community-rating-row{
  grid-template-columns:42px minmax(145px,1fr) 136px minmax(118px,1fr) 100px 112px;
}
.community-rating-row:not(.head):hover{background:rgba(230,196,122,.035)}
.community-rating-row.head{
  position:sticky;
  top:0;
  z-index:2;
  min-height:38px;
  background:#0b0c0f;
  color:var(--text-3);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.community-rating-row.head span:last-child,
.community-rating-value{text-align:right}
.community-rank{
  color:var(--gold-d);
  font-family:'JetBrains Mono',monospace;
  font-weight:800;
}
.community-rating-guild,
.community-rating-class{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}
.community-rating-guild b,
.community-rating-class b,
.community-rating-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.community-rating-class b{font-weight:700;color:var(--text-2)}
.community-rating-name{color:var(--text-1);font-weight:900}
.community-rating-value{
  color:var(--gold-b);
  font-family:'JetBrains Mono',monospace;
  font-weight:900;
}
.community-arena-record{
  color:var(--text-2);
  font-family:'JetBrains Mono',monospace;
  font-weight:800;
  text-align:right;
}
.community-guild-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(230,196,122,.25);
  border-radius:4px;
  background:rgba(230,196,122,.055);
  color:var(--gold-b);
  font-family:'Instrument Serif',serif;
  font-size:16px;
}
.community-guild-icon img{width:100%;height:100%;display:block;object-fit:contain}

.community-news-layout{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
}
.community-news-list{
  min-height:0;
  overflow:auto;
  border-right:1px solid rgba(220,174,91,.18);
  background:rgba(0,0,0,.18);
  scrollbar-width:thin;
}
.community-news-row{
  position:relative;
  width:100%;
  min-height:106px;
  display:grid;
  gap:6px;
  padding:14px 16px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:transparent;
  color:var(--text-2);
  text-align:left;
  cursor:pointer;
}
.community-news-row::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:2px;
  background:transparent;
}
.community-news-row:hover{background:rgba(255,255,255,.025)}
.community-news-row.active{background:rgba(230,196,122,.06)}
.community-news-row.active::before{background:var(--gold)}
.community-news-row.unread b{color:var(--gold-b)}
.community-news-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.community-news-row time,
.community-news-article time{
  color:var(--text-3);
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
}
.community-news-row-top i{
  color:#8ee5a2;
  font-size:8px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.community-news-row b{font-size:13px;line-height:1.3}
.community-news-row>span:last-child{
  display:-webkit-box;
  overflow:hidden;
  color:var(--text-3);
  font-size:10px;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.community-news-article{
  min-height:0;
  overflow:auto;
  padding:26px 30px 34px;
  scrollbar-width:thin;
}
.community-news-cover{
  position:relative;
  height:clamp(150px,24vh,220px);
  margin:0 0 22px;
  overflow:hidden;
  border:1px solid rgba(220,174,91,.2);
  border-radius:5px;
  background:#090a0b;
}
.community-news-cover::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 50%,rgba(4,5,6,.42));
}
.community-news-cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.community-news-article header{
  margin-bottom:22px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(220,174,91,.16);
}
.community-news-article h3{
  margin:8px 0 0;
  color:var(--gold-b);
  font-family:'Instrument Serif',serif;
  font-size:31px;
  font-weight:500;
  line-height:1.08;
}
.community-news-summary{
  margin:12px 0 0;
  color:var(--text-2);
  font-size:13px;
  line-height:1.55;
}
.community-news-body{color:var(--text-2);font-size:13px;line-height:1.72}
.community-news-body p{margin:0 0 15px;white-space:pre-line}
.community-news-body strong{color:var(--text-1);font-weight:900}
.community-news-body em{color:var(--gold-b)}
.community-news-engagement{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:22px;
  padding:13px 0;
  border-top:1px solid rgba(220,174,91,.16);
  border-bottom:1px solid rgba(220,174,91,.16);
}
.community-news-reactions{display:flex;align-items:center;gap:7px}
.community-news-reaction{
  height:30px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:5px;
  background:rgba(255,255,255,.025);
  color:var(--text-3);
  cursor:pointer;
}
.community-news-reaction:hover{border-color:rgba(230,196,122,.35);color:var(--text-1)}
.community-news-reaction.active{border-color:rgba(230,196,122,.5);background:rgba(230,196,122,.08);color:var(--gold-b)}
.community-news-reaction:disabled{opacity:.5;cursor:wait}
.community-news-reaction-symbol{font-size:9px;line-height:1}
.community-news-reaction b,.community-news-views b{font-family:'JetBrains Mono',monospace;font-size:10px}
.community-news-views{display:inline-flex;align-items:center;gap:8px;color:var(--text-3)}
.community-news-eye{position:relative;width:15px;height:9px;display:inline-block;border:1px solid currentColor;border-radius:50%/60%;transform:rotate(-1deg)}
.community-news-eye::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:currentColor;transform:translate(-50%,-50%)}
.community-news-inline-error{flex:1;color:#e58b7c;font-size:10px;text-align:center}
.community-news-comments{padding-top:20px}
.community-news-comments-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.community-news-comments-head h4{margin:0;color:var(--text-1);font-size:12px;text-transform:uppercase}
.community-news-comments-head>span{min-width:24px;height:22px;display:grid;place-items:center;border:1px solid rgba(230,196,122,.2);border-radius:999px;color:var(--gold);font:800 9px/1 'JetBrains Mono',monospace}
.community-news-comments-list{display:grid;gap:7px}
.community-news-comment{padding:10px 11px;border:1px solid rgba(255,255,255,.07);border-radius:6px;background:rgba(0,0,0,.16)}
.community-news-comment>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.community-news-comment b{color:var(--gold);font-size:10px}
.community-news-comment time{font-size:8px}
.community-news-comment p{margin:6px 0 0;color:var(--text-2);font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.community-news-comments-empty,.community-news-comments-status{padding:14px;border:1px dashed rgba(230,196,122,.16);border-radius:6px;color:var(--text-3);font-size:11px;text-align:center}
.community-news-comments-status.error{color:#e58b7c}
.community-news-comment-composer{display:grid;gap:7px;margin-top:10px}
.community-news-comment-composer textarea{width:100%;min-height:62px;resize:vertical;border:1px solid rgba(255,255,255,.1);border-radius:6px;background:rgba(0,0,0,.24);padding:9px 10px;color:var(--text-1);font-family:inherit;font-size:11px;line-height:1.5;outline:0}
.community-news-comment-composer textarea:focus{border-color:rgba(230,196,122,.4)}
.community-news-comment-composer>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.community-news-comment-composer>div span{color:var(--text-3);font:8px/1 'JetBrains Mono',monospace}
.community-news-comment-composer button{height:30px;padding:0 12px;border:1px solid rgba(230,196,122,.35);border-radius:5px;background:rgba(230,196,122,.06);color:var(--gold);font-size:9px;font-weight:900;text-transform:uppercase;cursor:pointer}
.community-news-comment-composer button:disabled{opacity:.45;cursor:default}

@media(max-width:1180px),(max-height:720px){
  .community-modal{padding:18px}
  .community-dialog{width:min(920px,calc(100vw - 36px));height:min(620px,calc(100vh - 36px));min-height:410px}
  .community-dialog-header{min-height:70px;padding:13px 16px 12px 19px}
  .community-dialog-header h2{font-size:29px}
  .community-rating-toolbar{min-height:56px;padding:8px 12px}
  .community-rating-table{padding-left:12px;padding-right:12px}
  .community-rating-row{min-height:45px;gap:8px;font-size:11px}
  .community-rating-table.player .community-rating-row{grid-template-columns:34px minmax(128px,1fr) 126px minmax(105px,1fr) 94px}
  .community-rating-table.guild .community-rating-row{grid-template-columns:34px minmax(145px,1.2fr) minmax(112px,1fr) 88px 68px 88px}
  .community-rating-table.valor-arena .community-rating-row{grid-template-columns:34px minmax(125px,1fr) 118px minmax(100px,1fr) 86px 98px}
  .community-news-layout{grid-template-columns:270px minmax(0,1fr)}
  .community-news-row{min-height:94px;padding:11px 13px}
  .community-news-article{padding:21px 24px 28px}
  .community-news-cover{height:clamp(130px,22vh,180px);margin-bottom:18px}
}

@media(max-width:820px){
  .community-rating-toolbar{align-items:flex-start;flex-direction:column;gap:8px}
  .community-news-layout{grid-template-columns:1fr;grid-template-rows:170px minmax(0,1fr)}
  .community-news-list{border-right:0;border-bottom:1px solid rgba(220,174,91,.18)}
  .community-news-row{min-height:82px}
}
