.clan-page{margin:0;min-height:100vh;background:#10151a;color:#eddab3}
.clan-sheet{display:grid;grid-template-columns:minmax(145px,220px) minmax(0,1fr);gap:18px;max-width:1320px;margin:clamp(10px,3vw,38px) auto;padding:0 12px;align-items:start}
.clan-sheet aside,.clan-members{min-width:0;padding:18px;border:1px solid #756142;background:linear-gradient(155deg,#2a251e,#171a1d 72%)}
.clan-sheet aside{text-align:center;perspective:700px}
.clan-sheet h1{margin:0 0 18px;font-size:clamp(22px,3vw,34px);overflow-wrap:anywhere}
.clan-standard-cloth{position:relative;width:min(100%,175px);margin:auto;perspective:600px}
.clan-standard-rail{display:block;position:absolute;inset:0;width:100%;height:100%;clip-path:inset(0 0 93% 0)}
.clan-sheet .clan-banner{display:block;width:100%;height:auto;border:0;clip-path:inset(6% 0 0);transform-origin:50% 3%;animation:clan-standard-wave 3.6s ease-in-out infinite alternate}
@keyframes clan-standard-wave{from{transform:rotateY(-7deg) skewX(-1.6deg)}to{transform:rotateY(7deg) skewX(1.6deg)}}
.clan-members h2{margin:0 0 14px}.clan-table-scroll{overflow-x:auto}.clan-members .leaderboard-table{min-width:680px}
.clan-members .leaderboard-table td:nth-child(4)>span{display:block;color:#edc580}
@media(max-width:680px){.clan-sheet{grid-template-columns:minmax(0,1fr);gap:8px}.clan-sheet aside:not([hidden]){display:flex;align-items:center;justify-content:flex-start;gap:20px}.clan-sheet h1{margin:0}.clan-standard-cloth{width:44px;margin:0}.clan-members{padding:10px}}
@media(prefers-reduced-motion:reduce){.clan-sheet .clan-banner{animation:none}}
.clan-standard-cloth{filter:drop-shadow(5px 9px 6px #000a);margin-block:15px}.clan-standard-cloth[data-cut=true] .clan-banner{clip-path:polygon(12% 7%,88% 7%,87% 82%,51% 96%,15% 83%);transform-origin:50% 8%}.clan-standard-cloth[data-cut=true] .clan-standard-rail{clip-path:polygon(5% 3%,95% 3%,94% 8%,6% 8%)}.clan-assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1em;margin-bottom:1em}.clan-assets section,.clan-history{border-bottom:1px solid #685535}.clan-history{text-align:left;font-size:.85em;overflow-wrap:anywhere}.clan-members footer{text-align:right;margin-top:1rem}.clan-members #applyClan{background:linear-gradient(#735330,#32251e);border:1px solid #c69a56;color:#ffe4ad;padding:.7em 1em}.clan-members #applyClan:before{content:"";display:inline-block;width:.9em;height:.9em;margin-right:.4em;background:radial-gradient(#b64a33,#6f1c11);border:1px solid #ca8763;border-radius:48%}#clanApplication{color:#e9d4a9;background:#21201f;border:1px solid #947548;max-width:90vw}#clanApplication textarea{display:block;width:min(400px,74vw);margin:.6em 0}.clan-members .leaderboard-table{min-width:780px}@media(max-width:680px){.clan-sheet aside:not([hidden]){display:block}.clan-standard-cloth{width:80px;margin:12px auto}}

@media(prefers-reduced-motion:no-preference){.clan-sheet .clan-banner{filter:url(#clanFabric)}.clan-standard-cloth[data-cut=true]:after{content:"";position:absolute;inset:0;pointer-events:none;clip-path:polygon(13% 8%,87% 8%,87% 82%,51% 95%,15% 83%);background:linear-gradient(102deg,transparent 20%,#08070625 40%,#ffe9b719 50%,transparent 68%);background-size:180% 100%;animation:clan-fold-shade 5s ease-in-out infinite alternate;mix-blend-mode:soft-light}@keyframes clan-fold-shade{to{background-position:100% 0}}}

.clan-nav{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.clan-nav a{color:#f5cb83}
.clan-members #activity,.clan-members #management{margin:1rem 0;padding:1rem;border:1px solid #735836;background:#211e19}
#huntProgress dl{display:grid;grid-template-columns:1fr auto;gap:.25rem 1rem;max-width:520px}#huntProgress dd{margin:0;font-variant-numeric:tabular-nums}#management label{display:block;margin:.5rem 0}#management input:not([type=checkbox]){max-width:100%}.clan-members [hidden]{display:none!important}
.clan-totem-hud{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.4rem;margin:.5rem}
.clan-totem-hud .totem-summary{position:relative;flex:none}
.clan-totem-hud summary{display:block;position:relative;list-style:none;cursor:pointer;padding-right:.55rem}
.clan-totem-hud summary::-webkit-details-marker{display:none}
.clan-totem-hud summary b{position:absolute;inset:0 0 auto auto;z-index:1}
.clan-totem-hud .totem-stone{display:grid;width:clamp(36px,4vw,58px)}
.clan-totem-hud .totem-tip{left:0;right:auto;z-index:3}
.clan-totem-hud .totem-tip p{margin:.35rem 0}
