#clan-atlas{padding:0;border:1px solid #a38958;border-radius:22px;width:min(760px,calc(100vw - 28px));max-height:90dvh;color:#243645;background:#eddcb9;box-shadow:0 20px 80px #0009;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8c754d #ead9b5}
#clan-atlas::backdrop{background:#071c24bc;backdrop-filter:blur(7px)}
#clan-atlas *{box-sizing:border-box}#clan-atlas header{position:relative;padding:34px 32px 25px;border-bottom:3px double #b19a70;background:linear-gradient(100deg,#f7e9caec,#e9d4aebb),url('img/map_johto.jpg') center/cover}
#clan-atlas header small{font:10px Arial;letter-spacing:3px;color:#836e4e}#clan-atlas h2{font:38px/1.1 Georgia!important;color:#263a4b!important;margin:12px 40px 6px 0!important}#clan-atlas header p{font:13px/1.6 Arial;color:#88734f;margin:0;max-width:450px}
#clan-atlas .ca-close{position:absolute;right:18px;top:18px;width:40px;height:40px;font:25px Arial;color:#705533;background:#ecdcba;border:1px solid #bda47a;border-radius:7px;cursor:pointer}
.ca-body{padding:24px 28px 32px;background:linear-gradient(#f7eddaef,#ecd9b5e8),url('img/map_johto.jpg') center/cover;min-height:260px}
#clan-atlas input{width:100%;min-height:46px;padding:12px 16px;border:1px solid #aa9168;border-radius:10px;background:#fff4dce8!important;color:#28394b!important;font:14px Arial}
.ca-tabs{display:flex;margin:15px 0 22px;border:1px solid #b19a70;border-radius:8px;overflow:hidden}.ca-tabs button{flex:1;border:0;background:#e7d3ac;color:#6f5d43;font:700 14px Georgia;padding:12px;cursor:pointer}.ca-tabs button[aria-pressed=true]{background:#253e51;color:#f2dfb9}
.ca-card{background:#fff4d6a8;border:1px solid #baa27a;border-radius:12px;padding:22px;margin:14px 0;box-shadow:0 4px 12px #62461d12;display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center}.ca-card>img{width:52px;height:60px;object-fit:contain;filter:drop-shadow(0 4px 4px #71542225)}.ca-card h3{font:700 25px Georgia!important;color:#283d4c!important;margin:0!important;overflow-wrap:anywhere}.ca-card small{display:block;font:12px/1.6 Arial;color:#8b7555;margin-top:6px}.ca-card>b{font:23px Georgia;color:#31495b}.ca-actions{grid-column:1/-1;display:flex;gap:10px;border-top:1px solid #cbb995;padding-top:16px;margin-top:4px;flex-wrap:wrap}.ca-actions button{border:1px solid #a18659;border-radius:6px;padding:11px 14px;font:700 13px Georgia;background:#263e4f;color:#f6e4bc;cursor:pointer;min-height:42px}.ca-actions button+button{background:#efdeb9;color:#3b4d56}.ca-status{font:14px/1.6 Arial;color:#7e694b;padding:24px 0}.ca-status button{padding:10px;border:1px solid #9b855f;color:#243e51;background:#f6e5bd;cursor:pointer}
#clan-atlas :is(button,input):focus-visible{outline:3px solid #48718b;outline-offset:2px}
.living-links button[data-living=clans],.app-tile[onclick*="lg-clans"]{background:linear-gradient(120deg,#f1e3c5,#d9c29a)!important;color:#253d4c!important;border:1px solid #b89c6d!important;border-radius:10px!important;padding:12px!important}
@media(max-width:520px){#clan-atlas header{padding:28px 20px 22px}#clan-atlas h2{font-size:32px!important}.ca-body{padding:18px 16px 28px}.ca-card{padding:16px;grid-template-columns:42px 1fr auto;gap:10px}.ca-card>img{width:40px;height:48px}.ca-card h3{font-size:22px!important}.ca-card>b{font-size:20px}.ca-actions{gap:7px}.ca-actions button{font-size:12px}}
