/* JLPT180 Bang Hội room. Own CSS; do not style Sảnh Chính/TKC/Leaderboard. */
.jlpt180-banghoi-room,
.jlpt180-banghoi-room *{
  box-sizing:border-box;
}

.jlpt180-banghoi-view{
  width:100%;
  min-height:100%;
  padding:clamp(12px,1.4vw,22px);
  color:#12324a;
}

.jlpt180-banghoi-room{
  --bh-ink:#12324a;
  --bh-muted:#5d7388;
  --bh-jade:#14b8a6;
  --bh-blue:#38bdf8;
  --bh-gold:#d99313;
  --bh-red:#e11d48;
  width:min(1180px,100%);
  margin:0 auto;
  display:grid;
  gap:14px;
}

.jlpt180-banghoi-hero,
.jlpt180-banghoi-card{
  position:relative;
  border:1px solid rgba(20,184,166,.22);
  background:
    radial-gradient(circle at 8% 5%, rgba(167,243,208,.28), transparent 28%),
    radial-gradient(circle at 95% 0%, rgba(255,220,150,.20), transparent 30%),
    linear-gradient(135deg,rgba(255,255,255,.95),rgba(236,255,249,.90));
  box-shadow:0 16px 36px rgba(4,44,66,.12), inset 0 1px 0 rgba(255,255,255,.95);
  overflow:hidden;
}

.jlpt180-banghoi-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-radius:26px;
}

.jlpt180-banghoi-hero:before,
.jlpt180-banghoi-card:before{
  content:'';
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg,#14b8a6,#38bdf8,#fbbf24,#fb7185);
}

.jlpt180-banghoi-kicker,
.jlpt180-banghoi-card-head span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(20,184,166,.12);
  color:#087869;
  border:1px solid rgba(20,184,166,.18);
  font-size:12px;
  line-height:1;
  font-weight:1000;
}

.jlpt180-banghoi-hero h2{
  margin:8px 0 0;
  color:var(--bh-ink);
  font-family:"Cinzel", Georgia, serif;
  font-size:clamp(32px,4vw,56px);
  line-height:.98;
  letter-spacing:.02em;
}

.jlpt180-banghoi-hero p,
.jlpt180-banghoi-card-head p,
.jlpt180-banghoi-side-text{
  max-width:760px;
  margin:8px 0 0;
  color:var(--bh-muted);
  font-size:14px;
  line-height:1.45;
  font-weight:800;
}

.jlpt180-banghoi-status{
  flex:0 0 auto;
  min-width:150px;
  padding:12px 14px;
  border-radius:20px;
  border:1px solid rgba(20,184,166,.18);
  background:linear-gradient(135deg,#ecfdf5,#ffffff);
  text-align:center;
}
.jlpt180-banghoi-status span{
  display:block;
  color:#5f7688;
  font-size:11px;
  font-weight:900;
}
.jlpt180-banghoi-status b{
  display:block;
  margin-top:3px;
  color:#087869;
  font-size:18px;
  font-weight:1000;
}
.jlpt180-banghoi-status.is-ma{
  border-color:rgba(225,29,72,.20);
  background:linear-gradient(135deg,#fff1f2,#ffffff);
}
.jlpt180-banghoi-status.is-ma b{color:#be123c;}

.jlpt180-banghoi-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,330px);
  gap:14px;
  align-items:start;
}

.jlpt180-banghoi-card{
  border-radius:24px;
  padding:16px;
}

.jlpt180-banghoi-card-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:14px;
}
.jlpt180-banghoi-card-head h3{
  margin:4px 0 0;
  color:var(--bh-ink);
  font-size:clamp(24px,2.2vw,34px);
  line-height:1.05;
  font-weight:1000;
}

.jlpt180-banghoi-choice,
.jlpt180-banghoi-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.jlpt180-banghoi-faction-btn,
.jlpt180-banghoi-leave-btn,
.jlpt180-banghoi-create-form button,
.jlpt180-banghoi-join-btn{
  min-height:44px;
  border:0;
  border-radius:14px;
  padding:10px 14px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(4,44,66,.12), inset 0 -4px 0 rgba(0,0,0,.10);
}
.jlpt180-banghoi-faction-btn.is-chinh,
.jlpt180-banghoi-create-form button{
  background:linear-gradient(180deg,#38d9b8,#0f9f89);
  color:#fff;
}
.jlpt180-banghoi-faction-btn.is-ma,
.jlpt180-banghoi-leave-btn{
  background:linear-gradient(180deg,#fb7185,#be123c);
  color:#fff;
}
.jlpt180-banghoi-create-form button:disabled,
.jlpt180-banghoi-join-btn:disabled{
  cursor:not-allowed;
  opacity:.55;
  filter:grayscale(.2);
}

.jlpt180-banghoi-note,
.jlpt180-banghoi-actions span{
  margin-top:10px;
  color:#61778b;
  font-size:12px;
  line-height:1.4;
  font-weight:850;
}

.jlpt180-banghoi-current{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.jlpt180-banghoi-current div,
.jlpt180-banghoi-box{
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(20,184,166,.16);
  background:rgba(255,255,255,.76);
}
.jlpt180-banghoi-current span{
  display:block;
  color:#60798b;
  font-size:12px;
  font-weight:900;
}
.jlpt180-banghoi-current b{
  display:block;
  margin-top:4px;
  color:#0f766e;
  font-size:17px;
  font-weight:1000;
}

.jlpt180-banghoi-create-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.jlpt180-banghoi-box-title,
.jlpt180-banghoi-side-title{
  margin-bottom:10px;
  color:#0f766e;
  font-size:15px;
  font-weight:1000;
}
.jlpt180-banghoi-create-form{
  display:grid;
  gap:8px;
}
.jlpt180-banghoi-create-form input{
  width:100%;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(20,184,166,.24);
  background:#fff;
  color:#12324a;
  font-weight:900;
}

.jlpt180-banghoi-open-list{
  display:grid;
  gap:8px;
}
.jlpt180-banghoi-join-btn{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  text-align:left;
  background:linear-gradient(135deg,#ffffff,#ecfeff);
  color:#0f766e;
  border:1px solid rgba(20,184,166,.16);
  box-shadow:none;
}
.jlpt180-banghoi-join-btn span{
  color:#60798b;
  font-size:12px;
  font-weight:850;
}

.jlpt180-banghoi-reqs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.jlpt180-banghoi-req{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 9px;
  border-radius:13px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(100,116,139,.12);
}
.jlpt180-banghoi-req i{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  font-style:normal;
  font-weight:1000;
}
.jlpt180-banghoi-req.is-ok i{
  color:#047857;
  background:#dcfce7;
}
.jlpt180-banghoi-req.is-miss i{
  color:#be123c;
  background:#ffe4e6;
}
.jlpt180-banghoi-req span{
  min-width:0;
  color:#12324a;
  font-size:13px;
  font-weight:950;
}
.jlpt180-banghoi-req small{
  color:#60798b;
  font-size:11px;
  font-weight:850;
  text-align:right;
}

.jlpt180-banghoi-cooldown,
.jlpt180-banghoi-empty,
.jlpt180-banghoi-message{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.76);
  border:1px dashed rgba(20,184,166,.25);
  color:#557085;
  font-weight:900;
}
.jlpt180-banghoi-empty.is-small{
  font-size:13px;
}
.jlpt180-banghoi-cooldown{
  margin-bottom:12px;
  border-color:rgba(217,119,6,.28);
  background:#fff7ed;
}
.jlpt180-banghoi-cooldown b{
  display:block;
  color:#b45309;
}
.jlpt180-banghoi-cooldown span{
  display:block;
  margin-top:3px;
  color:#7c4a03;
}

.jlpt180-banghoi-message{
  display:none;
  margin-top:12px;
}
.jlpt180-banghoi-message.is-ok,
.jlpt180-banghoi-message.is-error{
  display:block;
}
.jlpt180-banghoi-message.is-ok{
  border-color:rgba(20,184,166,.30);
  background:#ecfdf5;
  color:#047857;
}
.jlpt180-banghoi-message.is-error{
  border-color:rgba(225,29,72,.25);
  background:#fff1f2;
  color:#be123c;
}

.jlpt180-banghoi-side{
  display:grid;
  gap:12px;
}
.jlpt180-banghoi-rule-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.jlpt180-banghoi-rule-list li{
  padding:9px 10px;
  border-radius:13px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(20,184,166,.13);
  color:#12324a;
  font-weight:900;
}

@media(max-width:1100px){
  .jlpt180-banghoi-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:899px){
  .jlpt180-banghoi-view{
    padding:10px 8px 96px;
  }
  .jlpt180-banghoi-hero{
    display:grid;
    border-radius:22px;
    padding:15px;
  }
  .jlpt180-banghoi-status{
    width:100%;
  }
  .jlpt180-banghoi-create-grid,
  .jlpt180-banghoi-current,
  .jlpt180-banghoi-reqs{
    grid-template-columns:1fr;
  }
  .jlpt180-banghoi-card{
    border-radius:20px;
    padding:13px;
  }
}
