/* rankclan.css - ToyWars Thailand /rank (rank.html + rank.js) and /clan (clan.html + clan.js): site header + footer (same look as the other pages),
   hero band, leaderboard tabs / podium / table / paging, clan list with search, clan detail (mark, level bar, stats, notice, members).
   Colours follow the game's login screen (deep navy + yellow). */
:root{
  --navy-0: #050817; --navy-1: #0b1640; --navy-2: #13225c; --navy-3: #1c3182; --navy-4: #2a46b0;
  --ink: #eef2ff; --mute: #a9b6e3; --dim: #7383bd;
  --gold: #ffd21f; --gold-2: #ffb300; --gold-3: #ff8a00; --gold-ink: #241452;
  --red: #ff3d5a; --green: #22c06b; --line: rgba(160, 180, 255, .16);
  --font-h: 'Kanit', 'Prompt', 'Leelawadee UI', 'Tahoma', sans-serif;
  --font: 'Prompt', 'Kanit', 'Leelawadee UI', 'Tahoma', sans-serif;
  --atlas: url(/assets/ui/atlas/login_1024_tw.webp);
}
*, *::before, *::after{box-sizing: border-box;}
html{-webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px;}
body.tw{margin: 0; min-height: 100vh; background: var(--navy-0); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden;}
a{color: var(--gold);}
button{font: inherit;}
img{max-width: 100%;}
[hidden]{display: none !important;}

/* ---------------------------------------------------------------- header (identical to /topup) */
.tw-top{position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(8, 14, 44, .97), rgba(11, 22, 64, .94)); border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);}
.tw-top__in{display: flex; align-items: center; gap: 28px; width: min(100% - 32px, 1200px); height: 68px; margin: 0 auto;}
.tw-logo{--lh: 50px; flex: 0 0 auto; display: block; width: calc(var(--lh) * 2); height: var(--lh); background: var(--atlas) no-repeat;
  background-size: calc(var(--lh) * 4.971) auto; background-position: calc(var(--lh) * -1.456) calc(var(--lh) * -1.029); mix-blend-mode: lighten;}
.tw-nav{display: flex; align-items: center; gap: 6px;}
.tw-nav__a{display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--mute); font-family: var(--font-h);
  font-size: 16.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s;}
.tw-nav__a svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.tw-nav__a:hover{color: #fff; background: rgba(255, 255, 255, .06);}
.tw-nav__a.is-on{color: var(--gold); background: rgba(255, 210, 31, .12); box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .35);}
.tw-top__end{display: flex; align-items: center; gap: 12px; margin-left: auto;}
.tw-nav__a--play{display: none;}
.tw-guest, .tw-userbox{display: inline-flex; align-items: center; gap: 8px;}
.tw-hbtn{display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; color: #fff; font-family: var(--font-h); font-size: 15.5px; font-weight: 500;
  text-decoration: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: background .15s;}
.tw-hbtn:hover{background: rgba(255, 255, 255, .15);}
.tw-hbtn--line{color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 31, .6); background: transparent;}
.tw-chip{display: inline-flex; align-items: center; gap: 6px; height: 38px; max-width: 300px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-h); font-size: 15px; color: #fff; white-space: nowrap;}
.tw-chip__name{min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-right: 4px;}
.tw-chip img{flex: 0 0 auto;}
.tw-chip b{color: var(--gold); font-weight: 600; font-size: 16px;}
.tw-hout{height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-family: var(--font-h); font-size: 14.5px; cursor: pointer; white-space: nowrap;}
.tw-hout:hover{color: #fff; background: rgba(255, 255, 255, .07);}
.tw-play{display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 24px; border-radius: 999px; font-family: var(--font-h); font-size: 17px;
  font-weight: 600; color: var(--gold-ink); text-decoration: none; white-space: nowrap; background: linear-gradient(180deg, #ffe45c 0%, var(--gold) 45%, var(--gold-2) 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55) inset, 0 4px 14px rgba(255, 170, 0, .35); transition: transform .1s, filter .15s;}
.tw-play:hover{filter: brightness(1.06);}
.tw-play:active{transform: translateY(1px);}

/* ---------------------------------------------------------------- footer + toast (same as /topup) */
.tw-foot{border-top: 1px solid var(--line); background: #04060f;}
.tw-foot__in{display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; width: min(100% - 32px, 1000px); margin: 0 auto; padding: 26px 0 30px;}
.tw-logo--foot{--lh: 40px;}
.tw-foot__nav{display: flex; flex-wrap: wrap; gap: 6px 18px;}
.tw-foot__nav a{color: var(--mute); text-decoration: none; font-size: 15px;}
.tw-foot__nav a:hover{color: #fff;}
.tw-foot__c{margin: 0 0 0 auto; font-size: 13.5px; color: var(--dim);}
.tw-toast{position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px;
  background: #1d2752; color: #fff; box-shadow: 0 0 0 1px rgba(255, 210, 31, .4), 0 10px 30px rgba(0, 0, 0, .5); font-size: 15px;}


/* ---------------------------------------------------------------- page frame + hero band */
.rc-main{position: relative; min-height: 60vh; background:
  radial-gradient(900px 520px at 15% 420px, rgba(84, 60, 220, .2), transparent 70%),
  radial-gradient(800px 520px at 88% 900px, rgba(0, 170, 255, .12), transparent 70%),
  linear-gradient(180deg, #070b1e 0, var(--navy-1) 460px, #0a1238 1400px, var(--navy-0) 100%);}
.rc-hero{position: relative; overflow: hidden; isolation: isolate; border-bottom: 5px solid var(--gold);}
.rc-hero::before{content: ''; position: absolute; inset: -20px; z-index: -2; background: var(--rc-bg, url(/site/img/home/map_siege.webp)) 50% 50% / cover no-repeat;
  filter: blur(5px) saturate(1.2) brightness(.45);}
.rc-hero::after{content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 260px at 50% 0%, rgba(110, 80, 255, .3), transparent 70%), linear-gradient(180deg, rgba(5, 8, 23, .2), rgba(5, 8, 23, .75));}
.rc-hero__in{width: min(100% - 32px, 1100px); margin: 0 auto; padding: 40px 0 34px; text-align: center;}
.rc-eyebrow{margin: 0 0 4px; font-family: var(--font-h); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--gold);}
.rc-h1{margin: 0; font-family: var(--font-h); font-size: 50px; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35);}
.rc-h1 span{color: var(--gold); text-shadow: 0 3px 0 #b85a00, 0 0 24px rgba(255, 190, 0, .35);}
.rc-sub{margin: 8px auto 0; max-width: 760px; font-size: 17px; font-weight: 300; color: #cfd8ff;}
.rc-wrap{width: min(100% - 32px, 1100px); margin: 0 auto; padding: 30px 0 80px;}

/* ---------------------------------------------------------------- controls: tabs + period toggle + search */
.rc-bar{display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px;}
.rc-tabs{display: flex; flex-wrap: wrap; gap: 8px;}
.rc-tab{display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-h); font-size: 17px; font-weight: 500; color: var(--mute); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .15s, color .15s;}
.rc-tab svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;}
.rc-tab:hover{color: #fff; background: rgba(255, 255, 255, .13);}
.rc-tab.is-on{color: var(--gold-ink); background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 14px rgba(255, 170, 0, .3);}
.rc-seg{display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(5, 10, 40, .55); box-shadow: inset 0 0 0 1px var(--line);}
.rc-seg button{min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-family: var(--font-h); font-size: 15.5px;
  font-weight: 500; cursor: pointer;}
.rc-seg button.is-on{color: #fff; background: var(--navy-4); box-shadow: inset 0 0 0 1px rgba(170, 190, 255, .35);}
.rc-note{margin: -8px 0 18px; font-size: 14px; color: var(--dim);}
.rc-tab:focus-visible, .rc-seg button:focus-visible, .rc-pg button:focus-visible, .rc-search input:focus-visible, .rc-search button:focus-visible,
.rc-clan:focus-visible, .rc-back:focus-visible, .rc-btn:focus-visible{outline: 3px solid #fff; outline-offset: 2px;}

/* ---------------------------------------------------------------- clan mark (back + symbol from the game's atlases) */
.rc-mark{position: relative; display: inline-block; flex: 0 0 auto; vertical-align: middle;}
.rc-mark > i{position: absolute; inset: 0; background-repeat: no-repeat;}
.rc-mark.is-none{border-radius: 50%; background: radial-gradient(circle at 40% 35%, #c9d4f0, #8796b8 70%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);}
.rc-ctag{display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--mute); text-decoration: none; font-size: 14px; white-space: nowrap;}
.rc-ctag b{color: #9fd4ff; font-weight: 600;}
a.rc-ctag:hover b{color: #fff; text-decoration: underline;}

/* ---------------------------------------------------------------- rank: podium + table */
.rc-podium{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin: 0 0 18px;}
.rc-pod{position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 14px 18px; border-radius: 24px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(120, 140, 255, .22), transparent 70%), linear-gradient(180deg, #23399c, #172a78);
  box-shadow: inset 0 0 0 1px rgba(170, 190, 255, .25), 0 10px 26px rgba(0, 0, 20, .35);}
.rc-pod--1{order: 2; padding: 32px 14px 26px; box-shadow: inset 0 0 0 2px var(--gold), 0 0 34px rgba(255, 190, 0, .3), 0 10px 26px rgba(0, 0, 20, .35);}
.rc-pod--2{order: 1;}
.rc-pod--3{order: 3;}
.rc-pod.is-me{box-shadow: inset 0 0 0 2px #6dffa8, 0 0 26px rgba(46, 204, 113, .3);}
.rc-medal{display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%; font-family: var(--font-h); font-size: 26px; font-weight: 700;
  color: var(--gold-ink); background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 4px 12px rgba(0, 0, 0, .3);}
.rc-pod--1 .rc-medal{width: 64px; height: 64px; font-size: 30px;}
.rc-pod--2 .rc-medal{background: linear-gradient(180deg, #ffffff, #cfd7ea 50%, #9ea9c4);}
.rc-pod--3 .rc-medal{background: linear-gradient(180deg, #ffd2a6, #e39a55 50%, #b56a2c);}
.rc-pod__name{max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-h); font-size: 22px; font-weight: 600; color: #fff;}
.rc-pod .rc-ctag{max-width: 100%; margin-top: 2px;}
.rc-pod__val{margin-top: 8px; font-family: var(--font-h); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--gold); text-shadow: 0 2px 0 #9a4a00;}
.rc-pod__val small{display: block; font-size: 13px; font-weight: 500; color: var(--mute); text-shadow: none;}
.rc-pod__lv{font-size: 13.5px; color: var(--mute);}

.rc-table{border-radius: 20px; overflow: hidden; background: rgba(19, 34, 92, .45); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 20, .25);}
.rc-tr{display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 90px 110px; align-items: center; gap: 12px; padding: 11px 22px;}
.rc-tr:nth-child(even){background: rgba(5, 10, 40, .25);}
.rc-tr--head{background: rgba(5, 10, 40, .6) !important; font-size: 13.5px; color: var(--dim);}
.rc-tr--level{grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 110px;}
.rc-tr--level .rc-c-lv{display: none;}
.rc-no{font-family: var(--font-h); font-size: 18px; font-weight: 600; color: var(--mute);}
.rc-no.is-top{color: var(--gold);}
.rc-nm{overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #fff;}
.rc-tr .rc-num{text-align: right; font-variant-numeric: tabular-nums; color: var(--mute);}
.rc-tr .rc-val{text-align: right; font-family: var(--font-h); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold);}
.rc-tr--head .rc-num, .rc-tr--head .rc-val{font-family: var(--font); font-size: 13.5px; font-weight: 400; color: var(--dim);}
.rc-tr.is-me{background: rgba(46, 204, 113, .16) !important; box-shadow: inset 4px 0 0 #2ecc71;}
.rc-me{margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #0b3a20; background: #6dffa8; vertical-align: 2px;}
.rc-dash{color: var(--dim);}

.rc-pg{display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px;}
.rc-pg button{min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); color: #fff;
  font-family: var(--font-h); font-size: 15.5px; cursor: pointer;}
.rc-pg button:hover:not(:disabled){background: rgba(255, 255, 255, .15);}
.rc-pg button:disabled{opacity: .4; cursor: default;}
.rc-pg span{min-width: 80px; text-align: center; font-family: var(--font-h); color: var(--mute);}

/* ---------------------------------------------------------------- empty / loading / error */
.rc-empty{display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 20px 42px; border-radius: 22px; text-align: center;
  background: rgba(19, 34, 92, .45); box-shadow: inset 0 0 0 1px var(--line);}
.rc-empty__ic{display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 6px; border-radius: 22px; color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 8px 22px rgba(255, 170, 0, .25);}
.rc-empty__ic svg{width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.rc-empty strong{font-family: var(--font-h); font-size: 22px; font-weight: 600; color: #fff;}
.rc-empty p{margin: 0; max-width: 520px; font-size: 15.5px; color: var(--mute);}
.rc-empty .rc-btn{margin-top: 12px;}
.rc-loading{display: flex; align-items: center; justify-content: center; gap: 10px; padding: 50px 0; color: var(--mute);}
.rc-spin{width: 18px; height: 18px; border: 3px solid rgba(120, 140, 220, .35); border-top-color: var(--gold); border-radius: 50%; animation: rc-spin .9s linear infinite;}
@keyframes rc-spin{to{transform: rotate(360deg);}}
.rc-btn{display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-h); font-size: 17px; font-weight: 600; text-decoration: none; color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe45c 0%, var(--gold) 45%, var(--gold-2) 100%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55) inset, 0 6px 18px rgba(255, 170, 0, .3);}
.rc-btn:hover{filter: brightness(1.07);}
.rc-btn--ghost{color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);}

/* ---------------------------------------------------------------- clan list */
.rc-search{display: flex; flex: 1 1 360px; max-width: 520px; gap: 8px;}
.rc-search input{flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(4, 8, 28, .65); color: #fff; font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .28); outline: none;}
.rc-search input::placeholder{color: var(--dim);}
.rc-search input:focus{box-shadow: inset 0 0 0 2px var(--gold);}
.rc-search button{flex: 0 0 auto; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--font-h); font-size: 16px; font-weight: 600;
  color: var(--gold-ink); background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2));}
.rc-count{font-size: 15px; color: var(--mute);}
.rc-count b{color: #fff; font-weight: 500;}
.rc-clans{display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none;}
.rc-clan{display: grid; grid-template-columns: 46px 56px minmax(0, 1fr) repeat(3, 92px) 110px 96px; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; border-radius: 18px;
  color: inherit; text-decoration: none; background: linear-gradient(180deg, rgba(42, 70, 176, .5), rgba(19, 34, 92, .65)); box-shadow: inset 0 0 0 1px rgba(170, 190, 255, .18);
  transition: transform .12s, box-shadow .15s, background .15s;}
.rc-clan:hover{transform: translateY(-2px); background: linear-gradient(180deg, rgba(52, 84, 200, .62), rgba(23, 42, 120, .75)); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 31, .55), 0 10px 22px rgba(0, 0, 20, .3);}
.rc-clan--head{padding-top: 4px; padding-bottom: 4px; background: none !important; box-shadow: none !important; transform: none !important; font-size: 13px; color: var(--dim);}
.rc-clan--head span{text-align: center;}
.rc-clan--head span:nth-child(3){text-align: left;}
.rc-clan .rc-no{text-align: center; font-size: 20px;}
.rc-clan__nm{min-width: 0;}
.rc-clan__nm strong{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-h); font-size: 19px; font-weight: 600; color: #fff;}
.rc-clan__nm strong em{font-style: normal; color: #9fd4ff;}
.rc-clan__nm small{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--mute);}
.rc-st{display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center;}
.rc-st b{font-family: var(--font-h); font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;}
.rc-st small{font-size: 12px; color: var(--dim);}
.rc-st--pts b{color: var(--gold);}
.rc-wld{font-variant-numeric: tabular-nums;}
.rc-wld b{font-size: 15px;}
.rc-wld i{font-style: normal; color: #7df0ac;} .rc-wld u{text-decoration: none; color: #ffb3c0;} .rc-wld s{text-decoration: none; color: var(--mute);}
.rc-badge{justify-self: center; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap;}
.rc-badge--open{color: #7df0ac; background: rgba(34, 192, 107, .18);}
.rc-badge--closed{color: #ffb3c0; background: rgba(255, 61, 90, .16);}
.rc-how{display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; align-items: start; margin-top: 30px; padding: 22px 26px; border-radius: 22px;
  background: rgba(19, 34, 92, .55); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute);}
.rc-how__ic{grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2));}
.rc-how__ic svg{width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.rc-how strong{font-family: var(--font-h); font-size: 20px; font-weight: 600; color: #fff;}
.rc-how ol{margin: 4px 0 0; padding-left: 20px;}
.rc-how li{margin: 4px 0; font-size: 15px; line-height: 1.6;}
.rc-how li b{color: var(--gold); font-weight: 500;}

/* ---------------------------------------------------------------- clan detail */
.rc-back{display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 6px 14px 6px 10px; border-radius: 999px; color: var(--mute); text-decoration: none;
  font-family: var(--font-h); font-size: 15px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);}
.rc-back:hover{color: #fff; background: rgba(255, 255, 255, .12);}
.rc-back svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;}
.rc-card{border-radius: 26px; padding: 26px 30px; background: radial-gradient(120% 70% at 0% 0%, rgba(120, 140, 255, .2), transparent 60%), linear-gradient(180deg, #22389a 0%, #172a78 45%, #0f1d58 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .22), 0 20px 50px rgba(0, 0, 0, .4);}
.rc-ch{display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;}
.rc-ch__mark{display: grid; place-items: center; width: 120px; height: 120px; border-radius: 28px; background: rgba(5, 10, 40, .45); box-shadow: inset 0 0 0 1px var(--line);}
.rc-ch__tag{display: inline-block; padding: 1px 12px; border-radius: 8px; font-family: var(--font-h); font-size: 16px; font-weight: 600; color: #0b1640; background: #9fd4ff;}
.rc-ch h2{margin: 6px 0 2px; overflow-wrap: anywhere; font-family: var(--font-h); font-size: 38px; font-weight: 700; line-height: 1.15; color: #fff;}
.rc-ch__meta{display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--mute);}
.rc-ch__meta b{color: #fff; font-weight: 500;}
.rc-lv{display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 50%; text-align: center;
  background: radial-gradient(circle at 40% 30%, #ffe45c, var(--gold) 45%, var(--gold-3)); color: var(--gold-ink); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 22px rgba(255, 170, 0, .3);}
.rc-lv small{font-size: 12.5px; font-weight: 500;}
.rc-lv b{font-family: var(--font-h); font-size: 40px; font-weight: 700; line-height: 1;}
.rc-exp{margin-top: 20px;}
.rc-exp__top{display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mute);}
.rc-exp__top b{color: #fff; font-weight: 500;}
.rc-exp__bar{height: 12px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: rgba(5, 10, 40, .6); box-shadow: inset 0 0 0 1px var(--line);}
.rc-exp__bar i{display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold), #fff3a6);}
.rc-stats{display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px;}
.rc-stat{padding: 14px 16px; border-radius: 16px; background: rgba(5, 10, 40, .4); box-shadow: inset 0 0 0 1px var(--line);}
.rc-stat small{display: block; font-size: 13px; color: var(--dim);}
.rc-stat b{display: block; font-family: var(--font-h); font-size: 24px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;}
.rc-stat b.is-gold{color: var(--gold);}
.rc-stat b .rc-of{font-size: 16px; color: var(--mute);}
.rc-notice{margin-top: 18px; padding: 16px 20px; border-radius: 16px; border-left: 6px solid var(--gold); background: rgba(5, 10, 40, .4);}
.rc-notice small{display: block; margin-bottom: 2px; font-family: var(--font-h); font-size: 14px; color: var(--gold);}
.rc-notice p{margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; color: #dfe6ff;}
.rc-notice p.is-empty{color: var(--dim);}
.rc-h2{margin: 30px 0 12px; font-family: var(--font-h); font-size: 26px; font-weight: 600; color: #fff;}
.rc-h2 span{font-size: 16px; font-weight: 400; color: var(--mute);}
.rc-mems{margin: 0; padding: 0; list-style: none; border-radius: 20px; overflow: hidden; background: rgba(19, 34, 92, .45); box-shadow: inset 0 0 0 1px var(--line);}
.rc-mem{display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 80px 100px 120px; align-items: center; gap: 12px; padding: 11px 22px;}
.rc-mem:nth-child(even){background: rgba(5, 10, 40, .25);}
.rc-mem--head{background: rgba(5, 10, 40, .6) !important; font-size: 13px; color: var(--dim);}
.rc-dot{width: 11px; height: 11px; border-radius: 50%; background: #4a5480;}
.rc-dot.is-on{background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .25);}
.rc-mem__nm{min-width: 0;}
.rc-mem__nm strong{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #fff;}
.rc-mem__nm small{display: block; font-size: 12.5px; color: var(--dim);}
.rc-mem__nm small.is-on{color: #7df0ac;}
.rc-role{justify-self: start; padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; color: #c9d4f0; background: rgba(255, 255, 255, .08);}
.rc-role--0{color: var(--gold-ink); background: var(--gold);}
.rc-role--1{color: #9fd4ff; background: rgba(0, 150, 255, .2);}
.rc-mem .rc-num{text-align: right; font-variant-numeric: tabular-nums; color: var(--mute);}
.rc-mem .rc-num.is-gold{color: var(--gold); font-weight: 500;}
.rc-mem .rc-num{white-space: nowrap;}
.rc-mem.is-me{background: rgba(46, 204, 113, .16) !important; box-shadow: inset 4px 0 0 #2ecc71;}
.rc-pod .rc-noclan{margin-top: 2px; font-size: 13px; color: var(--dim);}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px){
  .rc-clan{grid-template-columns: 40px 50px minmax(0, 1fr) repeat(2, 80px) 92px; gap: 10px;}
  .rc-clan > .rc-st--lv, .rc-clan--head > .rc-h-lv{display: none;}
  .rc-clan .rc-badge{grid-column: 3; grid-row: 2; justify-self: start; margin-top: -4px;}
  .rc-clan--head > .rc-h-badge{display: none;}
  .rc-stats{grid-template-columns: repeat(2, minmax(0, 1fr));}
  .rc-mem{grid-template-columns: 40px minmax(0, 1fr) 100px 70px 90px;}
  .rc-mem > .rc-c-joined{display: none;}}
@media (max-width: 720px){
  .rc-hero__in{padding: 26px 0 22px;}
  .rc-h1{font-size: 34px;}
  .rc-sub{font-size: 15px;}
  .rc-eyebrow{font-size: 12.5px;}
  .rc-wrap{padding: 20px 0 50px;}
  .rc-bar{gap: 10px;}
  .rc-tabs{display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%;}
  .rc-tab{justify-content: center; min-height: 42px; padding: 0 6px; font-size: 15px; gap: 5px;}
  .rc-tab svg{display: none;}
  .rc-seg{width: 100%;}
  .rc-seg button{flex: 1 1 0;}
  .rc-note{font-size: 13px; margin-top: -4px;}
  .rc-podium{gap: 8px;}
  .rc-pod{padding: 16px 6px 12px; border-radius: 18px;}
  .rc-pod--1{padding: 22px 6px 16px;}
  .rc-medal{width: 40px; height: 40px; font-size: 19px;}
  .rc-pod--1 .rc-medal{width: 46px; height: 46px; font-size: 22px;}
  .rc-pod__name{font-size: 15.5px;}
  .rc-pod .rc-ctag{font-size: 12px;}
  .rc-pod__val{font-size: 22px;}
  .rc-pod__val small{font-size: 11.5px;}
  .rc-pod__lv{font-size: 12px;}
  .rc-tr, .rc-tr--level{grid-template-columns: 34px minmax(0, 1fr) 70px; gap: 4px 8px; padding: 10px 14px;}
  .rc-tr .rc-c-clan{grid-column: 2; grid-row: 2; font-size: 12.5px;}
  .rc-tr .rc-c-lv{display: none;}
  .rc-tr .rc-val{grid-column: 3; grid-row: 1 / span 2; font-size: 17px;}
  .rc-tr--head .rc-c-clan{display: none;}
  .rc-no{font-size: 16px;}
  .rc-pg{gap: 8px;}
  .rc-pg button{padding: 0 14px; font-size: 14.5px;}
  .rc-search{flex: 1 1 100%; max-width: none;}
  .rc-clan{grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px 12px 10px; border-radius: 16px;}
  .rc-clan--head{display: none;}
  .rc-clan .rc-no{grid-row: 1 / span 2; font-size: 16px;}
  .rc-clan .rc-mark{grid-row: 1 / span 2;}
  .rc-clan__nm strong{font-size: 16.5px;}
  .rc-clan__nm small{font-size: 12.5px;}
  .rc-clan > .rc-st{flex-direction: row; gap: 4px; align-items: baseline;}
  .rc-clan > .rc-st b{font-size: 15px;}
  .rc-clan > .rc-st--pts{grid-column: 4; grid-row: 1; justify-self: end;}
  .rc-clan > .rc-st--mem{display: none;}
  .rc-clan > .rc-wld{display: none;}
  .rc-clan .rc-badge{grid-column: 4; grid-row: 2; justify-self: end; margin: 0; font-size: 12px; padding: 2px 9px;}
  .rc-clan__nm .rc-clan__more{display: block;}
  .rc-how{grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 16px;}
  .rc-how__ic{width: 44px; height: 44px; border-radius: 12px; grid-row: auto;}
  .rc-how__ic svg{width: 24px; height: 24px;}
  .rc-how ol{grid-column: 1 / -1;}
  .rc-how li{font-size: 14px;}
  .rc-card{padding: 18px 16px; border-radius: 22px;}
  .rc-ch{grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px;}
  .rc-ch__mark{width: 84px; height: 84px; border-radius: 20px;}
  .rc-ch h2{font-size: 25px;}
  .rc-ch__tag{font-size: 14px;}
  .rc-ch__meta{font-size: 13px; gap: 2px 12px;}
  .rc-lv{grid-column: 1 / -1; flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 16px; border-radius: 14px; justify-self: stretch;}
  .rc-lv b{font-size: 26px;}
  .rc-stats{gap: 8px;}
  .rc-stat{padding: 10px 12px; border-radius: 14px;}
  .rc-stat b{font-size: 20px;}
  .rc-h2{font-size: 22px; margin-top: 24px;}
  .rc-mem{grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 4px 10px; padding: 10px 14px;}
  .rc-mem--head{display: none;}
  .rc-mem > .rc-c-pts{display: none;}
  .rc-mem .rc-role{justify-self: end;}}
.rc-clan__nm .rc-clan__more{display: none; font-size: 12px; color: var(--dim); white-space: normal;}
@media (prefers-reduced-motion: reduce){.rc-spin{animation: none;} .rc-clan{transition: none;} .rc-clan:hover{transform: none;}}

/* ---------------------------------------------------------------- level badges + character pictures (game art, rankclan.js) */
.rc-grade{display: inline-block; flex: 0 0 auto; vertical-align: middle; background-repeat: no-repeat; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));}
.rc-face{display: inline-block; flex: 0 0 auto; vertical-align: middle; border-radius: 10px; background-color: #1c2a6a; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .35);}
.rc-face--big{border-radius: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 0, 0, .45);}
.rc-ell{min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.rc-pod__pic{position: relative; margin-bottom: 10px;}
.rc-pod__pic .rc-medal{position: absolute; left: 50%; bottom: -14px; margin: 0 0 0 -21px; width: 42px; height: 42px; font-size: 20px;}
.rc-pod--1 .rc-pod__pic .rc-medal{width: 48px; height: 48px; margin-left: -24px; font-size: 23px; bottom: -16px;}
.rc-pod--1 .rc-face--big{box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(255, 190, 0, .45), 0 8px 20px rgba(0, 0, 0, .45);}
.rc-pod__name{display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px;}
.rc-who{display: flex; align-items: center; gap: 8px; min-width: 0;}
.rc-who .rc-nm{min-width: 0;}
.rc-tr{padding-top: 8px; padding-bottom: 8px;}

/* ---------------------------------------------------------------- my clan panel (clan list, logged-in / guest) */
.rc-mine{margin: 0 0 22px; padding: 18px 22px; border-radius: 22px; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 210, 31, .12), transparent 55%), rgba(19, 34, 92, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .3), 0 10px 26px rgba(0, 0, 20, .25);}
.rc-mine:not(.rc-mine--in) > .rc-mine__row, .rc-mine--guest{display: flex; align-items: center; gap: 16px;}
.rc-mine--in{display: flex; align-items: center; gap: 16px;}
.rc-mine__ic{display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe45c, var(--gold) 50%, var(--gold-2));}
.rc-mine__ic svg{width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.rc-mine__t{flex: 1 1 auto; min-width: 0;}
.rc-mine__t strong{display: block; font-family: var(--font-h); font-size: 20px; font-weight: 600; color: #fff;}
.rc-mine__t strong em{font-style: normal; color: #9fd4ff;}
.rc-mine__t small{display: block; font-size: 13px; color: var(--gold);}
.rc-mine__t p{margin: 2px 0 0; font-size: 15px; color: var(--mute);}
.rc-mine__t p b{color: var(--gold); font-weight: 600;}
.rc-mine__sub{display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--mute);}
.rc-mine__acts{display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto;}
.rc-mine__clan{display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none;}
.rc-mine__clan:hover strong{text-decoration: underline;}
.rc-mine__h{margin: 18px 0 8px; font-family: var(--font-h); font-size: 17px; font-weight: 600; color: #fff;}
.rc-mine__err{margin: 0 0 8px; color: #ffc2cc;}
.rc-mine .rc-loading{padding: 10px 0;}
.rc-reqs{display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none;}
.rc-req{display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(5, 10, 40, .4); box-shadow: inset 0 0 0 1px var(--line);}
.rc-req__clan{flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none;}
.rc-req__acts{display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto;}
.rc-wait{padding: 2px 10px; border-radius: 999px; font-size: 12.5px; color: var(--gold); background: rgba(255, 210, 31, .14);}
.rc-cline{display: flex; align-items: center; gap: 10px; min-width: 0;}
.rc-cline__t{min-width: 0;}
.rc-cline__t strong{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-h); font-size: 16.5px; font-weight: 600; color: #fff;}
.rc-cline__t strong em{font-style: normal; color: #9fd4ff;}
.rc-cline__t small{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--mute);}

/* ---------------------------------------------------------------- buttons (small / ghost / danger) */
.rc-btn:disabled{opacity: .55; cursor: progress; filter: none;}
.rc-btn--sm{min-height: 38px; padding: 0 16px; font-size: 15px; white-space: nowrap;}
.rc-btn--big{min-height: 52px; padding: 0 32px; font-size: 19px;}
.rc-btn--danger{color: #fff; background: linear-gradient(180deg, #ff6b80, #e0203f); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);}
.rc-btn.is-ask{color: #fff; background: #b3122e; box-shadow: 0 0 0 3px rgba(255, 61, 90, .45);}

/* ---------------------------------------------------------------- actions on the clan card + join requests + settings */
.rc-act{display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);}
.rc-act:empty{display: none;}
.rc-act__t{display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 260px; margin: 0; font-size: 15px; color: #dfe6ff;}
.rc-join{display: flex; flex: 1 1 100%; gap: 8px;}
.rc-join input{flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(4, 8, 28, .65); color: #fff; font: inherit; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .28); outline: none;}
.rc-join input:focus{box-shadow: inset 0 0 0 2px var(--gold);}
.rc-reqlist .rc-mem--req{grid-template-columns: 44px minmax(0, 1fr) auto;}
.rc-reqmsg{color: #cfd8ff !important; font-style: italic;}
.rc-quiet{margin: 0; padding: 14px 18px; border-radius: 16px; font-size: 14.5px; color: var(--dim); background: rgba(19, 34, 92, .35); box-shadow: inset 0 0 0 1px var(--line);}
.rc-set{margin-top: 16px; border-radius: 18px; background: rgba(19, 34, 92, .45); box-shadow: inset 0 0 0 1px var(--line);}
.rc-set summary{padding: 14px 18px; cursor: pointer; list-style: none; font-family: var(--font-h); font-size: 17px; font-weight: 500; color: #fff;}
.rc-set summary::-webkit-details-marker{display: none;}
.rc-set summary::before{content: '\2699'; margin-right: 8px; color: var(--gold);}
.rc-set[open] summary{border-bottom: 1px solid var(--line);}
.rc-form--set{padding: 16px 18px 18px;}

/* ---------------------------------------------------------------- forms (create clan / settings) */
.rc-form__h{margin: 0; font-family: var(--font-h); font-size: 30px; font-weight: 700; color: #fff;}
.rc-form__sub{margin: 4px 0 18px; font-size: 15px; color: var(--mute);}
.rc-form__two{display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px;}
.rc-field{display: flex; flex-direction: column; gap: 5px; min-width: 0; margin-bottom: 14px;}
.rc-field__l{font-family: var(--font-h); font-size: 15.5px; font-weight: 500; color: #fff;}
.rc-field__h{font-size: 12.5px; color: var(--dim);}
.rc-field input, .rc-field textarea{width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: rgba(4, 8, 28, .65); color: #fff; font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .28); outline: none; resize: vertical;}
.rc-field input{height: 46px;}
.rc-field input:focus, .rc-field textarea:focus{box-shadow: inset 0 0 0 2px var(--gold);}
.rc-check{display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; font-size: 15px; color: #dfe6ff; cursor: pointer;}
.rc-check input{width: 20px; height: 20px; accent-color: var(--gold);}
.rc-form__err{margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 61, 90, .16); color: #ffc2cc; font-size: 14.5px;}
.rc-form__foot{display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px;}
.rc-form__note{margin: 10px 0 0; text-align: right; font-size: 13.5px; color: #ffc2cc;}
.rc-cost{font-size: 15px; color: var(--mute);}
.rc-cost b{color: var(--gold); font-weight: 600;}
.rc-cost.is-bad b:last-child{color: #ff8a9b;}

/* mark picker: preview + back grid + symbol grid (as the game's create dialog) */
.rc-mk{display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start;}
.rc-mk__prev{position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(120, 140, 255, .25), transparent 70%), rgba(5, 10, 40, .5); box-shadow: inset 0 0 0 1px var(--line);}
.rc-mk__prev small{font-size: 12.5px; color: var(--dim);}
.rc-mk__grids{display: flex; flex-direction: column; gap: 10px; min-width: 0;}
.rc-mk__lbl{display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--mute);}
.rc-mk__grid{display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto; padding: 8px; border-radius: 14px;
  background: rgba(5, 10, 40, .45); box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--navy-4) transparent;}
.rc-mk__cell{display: grid; place-items: center; height: 46px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .12s, box-shadow .12s;}
.rc-mk__cell:hover{background: rgba(255, 255, 255, .12);}
.rc-mk__cell.is-on{background: rgba(255, 210, 31, .2); box-shadow: inset 0 0 0 2px var(--gold);}
.rc-mk__cell:focus-visible{outline: 3px solid #fff; outline-offset: 1px;}
.rc-mkpart{display: block; background-repeat: no-repeat;}

/* members with pictures */
.rc-mem__pic{position: relative; display: inline-flex;}
.rc-mem__pic .rc-dot{position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; box-shadow: 0 0 0 2px #13225c;}
.rc-mem__pic .rc-dot.is-on{box-shadow: 0 0 0 2px #13225c, 0 0 8px rgba(46, 204, 113, .6);}
.rc-mem__nm strong{display: flex; align-items: center; gap: 6px;}

@media (max-width: 720px){
  .rc-pod__pic .rc-medal{width: 34px; height: 34px; margin-left: -17px; font-size: 16px; bottom: -12px;}
  .rc-pod--1 .rc-pod__pic .rc-medal{width: 38px; height: 38px; margin-left: -19px; font-size: 18px;}
  .rc-pod .rc-face--big{width: 72px !important; height: 80px !important; border-radius: 14px;}
  .rc-pod--1 .rc-face--big{width: 84px !important; height: 93px !important;}
  .rc-pod__name{gap: 3px; max-width: 100%;}
  .rc-pod__name .rc-grade{width: 20px !important; height: 20px !important;}
  .rc-tr .rc-who{gap: 6px;}
  .rc-tr .rc-who .rc-face{width: 30px !important; height: 33px !important; border-radius: 8px;}
  .rc-tr .rc-c-clan{padding-left: 66px;}
  .rc-mine{padding: 14px; border-radius: 18px;}
  .rc-mine:not(.rc-mine--in) > .rc-mine__row, .rc-mine--guest, .rc-mine--in{flex-wrap: wrap; gap: 10px 12px;}
  .rc-mine__ic{width: 44px; height: 44px; border-radius: 12px;}
  .rc-mine__ic svg{width: 24px; height: 24px;}
  .rc-mine__t{flex: 1 1 calc(100% - 60px);}
  .rc-mine__t strong{font-size: 17.5px;}
  .rc-mine__t p{font-size: 13.5px;}
  .rc-mine__acts{flex: 1 1 100%;}
  .rc-mine__acts .rc-btn{flex: 1 1 0;}
  .rc-mine__clan .rc-mark{width: 48px !important; height: 48px !important;}
  .rc-req{flex-wrap: wrap; padding: 10px 12px;}
  .rc-req__acts{flex: 1 1 100%; justify-content: flex-end;}
  .rc-act{gap: 8px;}
  .rc-act > .rc-btn{flex: 1 1 auto;}
  .rc-join{flex-direction: column;}
  .rc-join input, .rc-join .rc-btn{width: 100%;}
  .rc-reqlist .rc-mem--req{grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px;}
  .rc-reqlist .rc-req__acts{grid-column: 1 / -1;}
  .rc-form__h{font-size: 24px;}
  .rc-form__sub{font-size: 14px;}
  .rc-form__two{grid-template-columns: 1fr; gap: 0;}
  .rc-mk{grid-template-columns: 1fr; gap: 10px;}
  .rc-mk__prev{position: static; flex-direction: row; justify-content: center; padding: 10px;}
  .rc-mk__grid{grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); max-height: 168px; gap: 5px; padding: 6px;}
  .rc-mk__cell{height: 42px;}
  .rc-form__foot{justify-content: stretch;}
  .rc-form__foot .rc-cost{flex: 1 1 100%; text-align: center;}
  .rc-form__foot .rc-btn{flex: 1 1 100%;}
  .rc-form__note{text-align: center;}
  .rc-mem{grid-template-columns: 40px minmax(0, 1fr) auto auto;}
  .rc-mem .rc-mem__pic .rc-face{width: 34px !important; height: 38px !important;}}

/* ---------------------------------------------------------------- site header v2 (7 menu items: หน้าแรก ดาวน์โหลด เติมเงิน แรงค์ แคลน Discord + เข้าเล่น)
   The same block sits at the end of home.css, topup.css, download.css and rankclan.css so every page's header looks and wraps the same:
   > 1180px one row (menu without icons, online pill = person icon + number, logout = icon);
   721-1180px two rows: logo + online + account, then the whole menu (with icons) incl. "เข้าเล่น";
   <= 720px the menu row scrolls sideways ("เข้าเล่น" first), edge to edge with a fade on the right. */
.tw-top__in{gap: 22px;}
.tw-nav{gap: 2px; min-width: 0;}
.tw-nav__a{padding: 0 12px; white-space: nowrap;}
.tw-nav__a svg{display: none;}
.tw-nav__a--dc svg{display: block; width: 19px; height: 19px; fill: currentColor; stroke: none;}
.tw-nav__a--dc:hover{color: #fff; background: rgba(88, 101, 242, .32);}
.tw-nav__a--play{display: none;}
.tw-top__end{gap: 10px; margin-left: auto;}
.tw-top .tw-online{flex: 0 0 auto; margin-left: -10px; font-size: 0; gap: 6px; padding: 0 11px;}
.tw-top .tw-online b{font-size: 13px;}
.tw-top .tw-online b::before{content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -1px; background: #8ff0b6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3.5 22a8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3.5 22a8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat;}
.tw-chip{max-width: 230px;}
.tw-hout{position: relative; flex: 0 0 auto; width: 38px; padding: 0; font-size: 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line);}
.tw-hout::before{content: ''; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px; background: var(--mute);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E") center / contain no-repeat;}
.tw-hout:hover::before{background: #fff;}
.tw-nav__a:focus-visible, .tw-hout:focus-visible, .tw-hbtn:focus-visible, .tw-play:focus-visible{outline: 3px solid #fff; outline-offset: 2px;}
@media (max-width: 1180px){
  .tw-top__in{flex-wrap: wrap; height: auto; padding: 8px 0 6px; row-gap: 4px; gap: 10px;}
  .tw-nav{order: 3; flex: 1 1 100%; width: 100%; justify-content: flex-start; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;}
  .tw-nav::-webkit-scrollbar{display: none;}
  .tw-nav__a{flex: 1 0 auto; justify-content: center; height: 38px; padding: 0 12px; font-size: 15px; gap: 6px;}
  .tw-nav__a svg{display: block; width: 16px; height: 16px;}
  .tw-nav__a--dc svg{width: 17px; height: 17px;}
  .tw-nav__a--play{display: inline-flex; order: -1; color: var(--gold);}
  .tw-nav__a--play svg{fill: currentColor; stroke: none;}
  .tw-play{display: none;}
  .tw-top .tw-online{order: 1; margin-left: 0; height: 30px;}
  .tw-top__end{order: 2; gap: 6px; min-width: 0;}}
@media (max-width: 720px){
  .tw-top__in{gap: 8px;}
  .tw-nav{flex: 0 0 auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; gap: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);}
  .tw-nav__a{flex: 0 0 auto; height: 36px; padding: 0 11px; font-size: 14.5px; gap: 5px;}
  .tw-nav__a svg{display: block;}
  .tw-guest, .tw-userbox{gap: 6px; min-width: 0;}
  .tw-hbtn{height: 34px; padding: 0 11px; font-size: 13.5px;}
  .tw-chip{height: 34px; max-width: 142px; padding: 0 10px; font-size: 13.5px; gap: 4px;}
  .tw-chip b{font-size: 14.5px;}
  .tw-hout{width: 34px; height: 34px;}
  .tw-top .tw-online{height: 28px; padding: 0 8px; gap: 5px;}
  .tw-top .tw-online i{display: none;}
  .tw-top .tw-online b::before{margin-right: 3px;}}
@media (max-width: 380px){
  .tw-hbtn{padding: 0 8px; font-size: 13px;}
  .tw-chip{max-width: 128px;}}
@media (max-width: 720px){.tw-logo{--lh: 36px;}}
@media (max-width: 380px){.tw-logo{--lh: 32px;}}
