/* Alliance Wars - clan home (client/panels/clan.js homeHTML): header card, level bar, notice, tile grid, bottom bar.
   Our look: dark navy panels, gold trim, Nunito; sized for a 412 px wide portrait phone. */
.ch-head { display: flex; gap: 12px; align-items: center; padding: 12px; background: linear-gradient(170deg, #2b3752, #1c2437); box-shadow: inset 0 0 0 1px rgba(233,199,106,.3), 0 3px 0 rgba(0,0,0,.35); }
.ch-ban { flex: 0 0 auto; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.ch-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-id h3 { font-size: 18px; line-height: 1.15; word-break: break-word; }
.ch-id h3 .so-tag { margin-right: 4px; }
.ch-info { background: rgba(0,0,0,.3); border: 1px solid rgba(233,199,106,.22); border-radius: 10px; padding: 6px 9px; display: grid; gap: 3px; }
.ch-info div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.ch-info span { color: var(--mute); display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.ch-info b { color: var(--ink); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; text-align: right; }

.ch-lvl { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; }
.ch-lvl-b { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--pix); color: #fff3cf;
  background: radial-gradient(circle at 35% 30%, #f7d36a, #b97a17); border: 2px solid #2a1a0e; box-shadow: 0 2px 0 rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.25); }
.ch-lvl-bar { position: relative; flex: 1; }
.ch-lvl-bar .bar { height: 18px; border-radius: 9px; }
.ch-lvl-bar .bar > i { background: linear-gradient(#8af09a, #2f9c45); border-radius: 9px; }
.ch-lvl-bar small { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px/1 var(--pix); color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }

.ch-notice { margin-top: 12px; padding: 10px 12px; min-height: 74px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(175deg, #242e45, #1b2233); box-shadow: inset 0 0 0 1px rgba(233,199,106,.22); }
.ch-n-t { color: var(--gold); font-weight: 800; display: flex; align-items: center; gap: 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.ch-n-x { white-space: pre-wrap; word-break: break-word; font-size: 14px; color: var(--ink); }
.ch-n-sub { margin-top: auto; }

.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ch-tile { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 10px 6px 6px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(170deg, #34436a, #232d46); border: 2px solid #11161f;
  box-shadow: inset 0 0 0 1px rgba(233,199,106,.35), inset 0 -4px 0 rgba(0,0,0,.28), 0 3px 0 rgba(0,0,0,.35); color: var(--ink); }
.ch-tile:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(233,199,106,.35), inset 0 -2px 0 rgba(0,0,0,.28); }
.ch-ic { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 11px; background: radial-gradient(circle at 50% 40%, rgba(255,214,120,.22), rgba(0,0,0,.25)); }
.ch-ic .ic { width: 40px; height: 40px; }
.ch-tile b { flex: 1; font: 800 16px/1.1 var(--pix); text-shadow: 0 1px 0 #000; }
.ch-badge { position: absolute; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; border: 2px solid #fff;
  font: 800 12px/18px var(--pix); font-style: normal; text-align: center; box-shadow: 0 2px 3px rgba(0,0,0,.4); }

.ch-foot { display: flex; justify-content: space-around; gap: 8px; margin-top: 16px; padding: 10px 6px 4px; border-top: 2px solid rgba(233,199,106,.25); }
.ch-fb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--ink); cursor: pointer; min-width: 74px; }
.ch-fb .ic { width: 30px; height: 30px; padding: 10px; box-sizing: content-box; border-radius: 50%; background: linear-gradient(170deg, #34436a, #232d46); border: 2px solid #11161f;
  box-shadow: inset 0 0 0 1px rgba(233,199,106,.4), 0 3px 0 rgba(0,0,0,.35); }
.ch-fb b { font: 800 13px/1 var(--pix); }
.ch-fb .ch-badge { top: -4px; right: 6px; }

.ch-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ch-sub h3 { font-size: 18px; }

/* no clan: Create / Join / Invites & Requests */
.cj-tabs button { flex: 1; white-space: nowrap; font-size: 13px; padding: 8px 4px; }
.cj-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: linear-gradient(170deg, #2b3752, #1f283c); box-shadow: inset 0 0 0 1px rgba(233,199,106,.22); }
.cj-ban { position: relative; flex: 0 0 auto; }
.cj-lv { position: absolute; left: -4px; bottom: -2px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 4px; font: 800 11px/16px var(--pix); font-style: normal; text-align: center;
  color: #fff3cf; background: radial-gradient(circle at 35% 30%, #f7d36a, #b97a17); border: 2px solid #2a1a0e; }
.cj-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cj-mid b { font: 800 15px/1.2 var(--pix); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cj-mid b .so-tag { margin-right: 3px; }
.cj-mid span { font-size: 12px; color: var(--mute); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.cj-btn { display: flex; flex-direction: column; gap: 4px; }
.cj-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0; color: var(--mute); opacity: .85; }
.cj-empty b { font: 800 16px/1 var(--pix); }

/* create clan form and banner picker */
.cc-form { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: linear-gradient(170deg, #2b3752, #1c2437); box-shadow: inset 0 0 0 1px rgba(233,199,106,.3); }
.cc-ban { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-ban [data-cban] { filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.cc-l { display: flex; flex-direction: column; gap: 4px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.cc-l small { font-weight: 700; color: var(--mute); }
.cc-chk { min-height: 14px; font-weight: 800; font-size: 12px; }
.so-lang { width: auto; max-width: 60%; }
.cb-prev { display: grid; place-items: center; padding: 6px 0 10px; }
.cb-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cb-sw { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #11161f; cursor: pointer; }
.cb-badge { width: 46px; height: 50px; border-radius: 8px; border: 2px solid #11161f; background: rgba(0,0,0,.3); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cb-sw.on, .cb-badge.on { outline: 3px solid var(--gold); outline-offset: 1px; }

/* clan chat sub-tabs (client/panels/chat.js) */
.cv-csub { margin: 0 0 6px; flex: 0 0 auto; }
.cv-csub button { flex: 1; }
.cv-notice { padding: 10px 4px; display: flex; flex-direction: column; gap: 8px; }
