/* Clan: riepilogo e percorsi di gestione, con colori del tema corrente. */
#clan.clan-page { padding:0 1px 18px; }
#clan .cn-head { margin-bottom:16px;gap:4px 10px!important; }
#clan .cn-head .bhead-sub { font-size:11px; }
.clan-overview { display:flex;flex-direction:column;gap:12px; }
#clan .cn-hero { margin:0;padding:14px;background:var(--panel);border-radius:16px; }
#clan .cn-hero-top { gap:12px; }.clan-overview .cn-emblem { flex:0 0 48px;display:flex; }
#clan .cn-hero-name { font-family:inherit;font-size:20px;font-weight:750;margin:0 0 5px;line-height:1.3; }
#clan .cn-tag { font-size:11px;color:var(--sub);margin-right:9px; }
.clan-grade { font-size:10px;color:var(--sub);display:inline-block; }.clan-grade b { color:var(--text); }
.clan-description { font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0;color:var(--text); }
.clan-identity-footer { display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:9px;font-size:10px;color:var(--sub); }
.clan-identity-footer > span { display:flex;align-items:center;gap:5px; }.clan-identity-footer svg { width:13px;height:13px;color:var(--gold); }
.clan-section-title { font-size:12px;font-weight:650;margin:4px 2px -4px; }
.clan-primary { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.clan-entry { width:100%;min-width:0;min-height:66px;display:flex;align-items:center;gap:9px;padding:11px 12px;background:var(--panel);border:1px solid var(--line);border-radius:13px;color:var(--text);font:inherit;text-align:left;cursor:pointer; }
.clan-entry > span:nth-child(2) { flex:1;min-width:0; }.clan-entry b { display:block;font-size:13px;line-height:1.3;overflow-wrap:anywhere; }
.clan-entry small { display:block;font-size:10px;line-height:1.45;color:var(--sub);margin-top:4px;overflow-wrap:anywhere; }
.clan-entry-icon { display:flex;align-items:center;justify-content:center;flex:0 0 23px;color:var(--gold); }.clan-entry-icon svg { width:21px;height:21px; }
.clan-entry i { font-style:normal;font-size:22px;color:var(--sub); }.clan-badge { font-size:10px;padding:4px 6px;border-radius:7px;background:var(--gold-soft);color:var(--gold); }
.clan-primary .clan-entry { flex-wrap:wrap;gap:7px; }.clan-primary .clan-entry-icon { flex-basis:20px; }.clan-primary .clan-entry i { display:none; }
.clan-menu { border:1px solid var(--line);border-radius:13px;overflow:hidden; }.clan-menu .clan-entry { border:0;border-radius:0; }.clan-menu .clan-entry + .clan-entry { border-top:1px solid var(--line); }
.clan-war-card { display:block;width:100%;padding:13px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:14px;background:var(--panel);color:var(--text);font:inherit;text-align:left;cursor:pointer; }
.clan-war-title { display:flex;align-items:center;gap:6px;font-size:13px; }.clan-war-title svg { width:17px;height:17px;color:var(--accent); }.clan-war-title i { margin-left:auto;font-style:normal;font-size:22px;color:var(--sub); }
.clan-war-card p { margin:6px 0 0;font-size:11px;color:var(--sub);line-height:1.5; }
#clan .cn-war-s { padding-top:5px;gap:12px; }.clan-war-card .cn-war-s b { font-size:22px; }
.clan-balances { display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--sub);margin:-4px 3px 0; }
.clan-balances > span { display:inline-flex;align-items:center;gap:4px; }.clan-balances svg { width:17px;height:17px; }.clan-balances .resource-symbol { font-size:17px; }.clan-balances b { color:var(--text); }
#clan .cn-ann-card { margin:0;border:1px solid var(--line);background:var(--gold-soft);padding:12px;border-radius:13px; }
#clan .cn-ann-card small { display:block;font-size:10px;color:var(--sub);margin-top:8px; }
.clan-details { border:1px solid var(--line);border-radius:13px;padding:0 12px;background:var(--panel); }
.clan-details > summary { display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;min-height:50px;font-size:12px;font-weight:600;cursor:pointer; }
.clan-details > summary::-webkit-details-marker { display:none; }.clan-details > summary span { color:var(--sub); }
.clan-details[open] > summary span { transform:rotate(180deg); }
.clan-note { font-size:11px;line-height:1.6;color:var(--sub);margin:8px 0 12px; }
.clan-facts { margin:0 0 10px; }.clan-facts > div { display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;font-size:11px; }
.clan-facts > div + div { border-top:1px solid var(--line); }.clan-facts dt { color:var(--sub); }.clan-facts dd { margin:0;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere;max-width:55%; }
.clan-invite { display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--line);font-size:11px; }.clan-invite span { font-size:10px;color:var(--sub); }
#clan .cn-act { padding-bottom:12px; }#clan .cn-act > div { background:none;border:0;border-radius:0;padding:7px 0; }#clan .cn-act > div + div { border-top:1px solid var(--line); }
#clan :is(button,input,textarea,select,summary,[role=button]):focus-visible,.clan-popup :is(button,input,summary):focus-visible { outline:2px solid var(--accent);outline-offset:-2px; }
#clan .btn,#clan .cn-topback { min-height:44px; }#clan input,#clan textarea { font-size:16px!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:10px;padding:10px;font-family:inherit;width:100%;box-sizing:border-box; }
#clan .slotline label { font-size:12px;color:var(--sub);margin:12px 0 6px; }
#clan #cn-body > .tb-head { font-size:16px;line-height:1.5; }#clan .tn-name { overflow-wrap:anywhere; }#clan .tn-head { flex-wrap:wrap; }
#clan .tn-foot { flex-wrap:wrap;gap:6px; }#clan .tn-foot button { white-space:normal; }
#clan .cn-topback { font-size:12px;padding:7px 9px; }
#clan .clan-danger { border-top:1px solid var(--line);padding-top:16px;margin-top:20px; }#clan .clan-danger h3 { font-size:13px; }
.clan-popup .gt-node { min-width:44px;min-height:52px; }.clan-popup .gt-grid { grid-template-columns:repeat(auto-fit,minmax(48px,1fr)); }
.clan-popup .btn { min-height:44px; }.clan-reward { display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:1.5;margin:2px 4px 2px 0; }.clan-reward svg { width:16px;height:16px; }.clan-reward .resource-symbol { font-size:15px; }
#clan .cn-chat-bar textarea { min-width:0;width:auto;flex:1;border-radius:22px;padding:11px 14px; }#clan .cn-chat-bar button { min-width:44px;min-height:44px; }
@media(hover:hover) { .clan-entry:hover,.clan-war-card:hover { background:var(--panel-strong); } }
@media(max-width:350px) { .clan-entry { padding:10px 9px;gap:6px; }.clan-entry b { font-size:12px; }.clan-primary .clan-entry small { font-size:9px; }#clan .cn-hero-name { font-size:18px; }.clan-identity-footer { font-size:9px; } }

/* Contributi del giorno: riepilogo fisso e lista indipendente. */
#clan [data-war-contributions] {cursor:pointer;transition:background .15s;}
#clan [data-war-contributions]:active {background:var(--gold-soft);}
.war-contributions-popup {--wc-accent:#60a5fa;}
.war-contributions-popup.wc-enemy {--wc-accent:#f87171;}
.war-contributions-popup > .battle-box {display:flex;flex-direction:column;width:440px;max-width:100%;max-height:100%;min-height:0;overflow:hidden;text-align:left;}
.war-contributions-popup .fg-swap-title {flex:0 0 auto;margin:0 36px 12px 0;overflow-wrap:anywhere;font-size:17px;line-height:1.4;}
.war-contributions-popup .fg-swap-title svg {color:var(--wc-accent);}
.wc-summary {display:flex;flex-direction:column;gap:10px;flex:0 0 auto;padding:13px;border:1px solid var(--line);border-top:3px solid var(--wc-accent);border-radius:13px;background:var(--panel);}
.wc-day {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 8px;font-size:10px;color:var(--sub);}
.wc-side {color:var(--wc-accent);font-weight:650;}.wc-summary>strong {font-size:29px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.2;}.wc-summary>strong small {font-size:12px;font-weight:400;color:var(--sub);}
.wc-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.wc-totals>div {display:grid;grid-template-columns:14px 1fr;gap:4px 6px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--card);min-width:0;}
.wc-totals svg {width:14px;height:14px;color:var(--sub);}.wc-totals span {font-size:10px;color:var(--sub);}.wc-totals b {grid-column:2;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.wc-summary>small {font-size:10px;color:var(--sub);line-height:1.4;}
.wc-message {flex:0 0 auto;font-size:12px;line-height:1.5;color:var(--danger);overflow-wrap:anywhere;padding:8px 0;}.wc-message:empty {display:none;}
.wc-tools {flex:0 0 auto;padding:13px 0 8px;}
.wc-list-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}.wc-list-heading strong {font-size:12px;}.wc-list-heading small {font-size:10px;color:var(--sub);}
.wc-search {display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);}
.wc-search:focus-within {border-color:var(--wc-accent);}.wc-search svg {width:15px;height:15px;flex:0 0 15px;color:var(--sub);}
.war-contributions-popup .wc-search input {display:block;min-width:0;width:100%;height:40px;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:16px;outline:none;box-shadow:none;}
.wc-members {min-height:50px;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;}
.wc-member {display:flex;align-items:flex-start;gap:9px;padding:13px 8px;border-bottom:1px solid var(--line);border-radius:9px;}
.wc-member.me {background:var(--gold-soft);}.wc-rank {display:flex;align-items:center;justify-content:center;flex:0 0 25px;height:25px;border-radius:8px;font-size:11px;color:var(--sub);background:var(--panel);font-variant-numeric:tabular-nums;}
.wc-rank.wc-top {color:var(--gold);background:var(--gold-soft);font-weight:750;}
.wc-player {flex:1;min-width:0;}.wc-player-top {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.wc-name {display:block;min-width:0;}.wc-name>b {font-size:13px;line-height:1.5;overflow-wrap:anywhere;}.wc-name em {display:inline-block;padding:1px 5px;border-radius:5px;background:var(--gold-soft);color:var(--gold);font-size:9px;font-style:normal;white-space:nowrap;}
.wc-points {flex:0 0 auto;max-width:48%;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right;}.wc-points small {font-size:9px;color:var(--sub);font-weight:400;}
.wc-breakdown {display:block;font-size:10px;line-height:1.5;color:var(--sub);margin-top:4px;overflow-wrap:anywhere;}
.wc-share {height:3px;margin-top:8px;background:var(--line);border-radius:3px;overflow:hidden;}.wc-share i {display:block;height:100%;background:var(--wc-accent);border-radius:3px;}
.wc-zero .wc-points {color:var(--sub);font-weight:500;}
.wc-empty {display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 10px;text-align:center;color:var(--sub);}.wc-empty svg {width:26px;height:26px;}.wc-empty strong {font-size:13px;}.wc-empty small {font-size:11px;}
.wc-footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;flex:0 0 auto;padding-top:10px;border-top:1px solid var(--line);}
.wc-footer>small {font-size:9px;color:var(--sub);}.wc-footer>div {display:flex;gap:6px;margin-left:auto;}.wc-footer .btn {padding:8px 10px;margin:0;font-size:11px;}
@media(max-height:480px){.war-contributions-popup>.battle-box{padding:12px;}.war-contributions-popup .fg-swap-title{font-size:14px;margin-bottom:6px;}.wc-summary{gap:5px;padding:8px;}.wc-summary>strong{font-size:21px;}.wc-totals{gap:6px;}.wc-totals>div{display:flex;gap:5px;padding:5px;}.wc-totals b{margin-left:auto;font-size:12px;}.wc-tools{padding:7px 0 5px;}.wc-list-heading{margin-bottom:5px;}.war-contributions-popup .wc-search input{height:34px;}.wc-footer{padding-top:6px;}.wc-footer .btn{min-height:38px;}.wc-member{padding:9px 6px;}}

/* Guerra in corso: confronto del giorno, progressione della guerra e azioni. */
#clan .cw-screen {gap:10px;min-width:0;}
#clan .cw-screen #cn-war-scroll {display:flex;flex-direction:column;gap:12px;overscroll-behavior-y:contain;overflow-x:hidden;}
#clan .cw-hero {padding:15px;border:1px solid var(--line);border-radius:17px;background:var(--panel);}
#clan .cw-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;}
#clan .cw-eyebrow {font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--sub);}
#clan .cw-heading h2 {margin:4px 0 0;font-size:25px;font-weight:750;line-height:1.2;}
#clan .cw-heading h2>span {font-size:15px;font-weight:500;color:var(--sub);}
#clan .cw-refresh {flex:0 0 42px;width:42px;min-height:42px;padding:9px;margin:0;border-radius:12px;}
#clan .cw-refresh svg {width:17px;height:17px;}
#clan .cw-phase {display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;padding:13px 0;font-size:10px;color:var(--sub);}
#clan .cw-phase>span {display:inline-flex;align-items:center;gap:4px;}.cw-phase svg {width:13px;height:13px;}
#clan .cw-phase b {color:var(--text);font-weight:650;}
#clan .cw-section-label {font-size:11px;font-weight:650;margin:1px 0 8px;}
#clan .cw-match {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#clan .cw-team {display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:12px 10px;border-radius:13px;text-align:left;background:var(--card);}
#clan .cw-team-own {background:color-mix(in srgb,#3b82f6 7%,var(--card));}
#clan .cw-team-enemy {background:color-mix(in srgb,#ef4444 7%,var(--card));}
#clan .cw-team>small {font-size:9px;color:var(--sub);margin-bottom:7px;}
#clan .cw-team-name {font-size:13px;line-height:1.35;font-weight:700;overflow-wrap:anywhere;}
#clan .cw-tag {font-size:10px;color:var(--sub);margin-top:3px;line-height:1.4;}
#clan .cw-team>b {font-size:27px;line-height:1.15;margin-top:auto;padding-top:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%;}
#clan .cw-team-link {font-size:9px;color:var(--sub);line-height:1.4;margin-top:7px;}
#clan .cw-balance {height:4px;margin-top:12px;background:#ef4444;border-radius:4px;overflow:hidden;}
#clan .cw-balance>i {display:block;height:100%;background:#3b82f6;}
#clan .cw-lead {font-size:10px;text-align:center;color:var(--sub);margin:7px 0 14px;}
#clan .cw-day-score {display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:12px 0;}
#clan .cw-day-score>span {font-size:12px;font-weight:650;}.cw-day-score small {display:block;font-size:9px;font-weight:400;color:var(--sub);margin-top:4px;line-height:1.4;}
#clan .cw-day-score>strong {font-size:23px;white-space:nowrap;}.cw-day-score i {font-style:normal;font-size:16px;color:var(--sub);padding:0 3px;}
#clan .cw-history {display:flex;align-items:center;gap:7px;width:100%;text-align:left;font-size:11px;padding:9px 10px;margin:0;border-radius:10px;}
#clan .cw-history svg {width:15px;height:15px;}.cw-history>span {margin-left:auto;font-size:18px;}
#clan .cw-end {font-size:9px;line-height:1.5;text-align:center;color:var(--sub);margin-top:10px;}
#clan .cw-notice {display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--panel);}
#clan .cw-notice>span {display:flex;flex:0 0 30px;align-items:center;justify-content:center;height:30px;border-radius:9px;background:var(--gold-soft);color:var(--gold);}
#clan .cw-notice svg {width:16px;height:16px;}#clan .cw-notice strong {font-size:12px;}
#clan .cw-notice p {font-size:11px;line-height:1.6;color:var(--sub);margin:5px 0 0;}.cw-notice small {display:block;color:var(--sub);font-size:10px;margin-top:7px;line-height:1.5;}
#clan .cw-screen .bcard {margin:0;border-radius:14px;border:1px solid var(--line);background:var(--panel);padding:13px;}
#clan .cw-section-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;}.cw-section-heading h3 {font-size:14px;margin:0;}.cw-section-heading>small {font-size:10px;color:var(--sub);}
#clan .cw-personal {display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:12px 0;font-size:10px;color:var(--sub);}.cw-personal>b {color:var(--text);font-size:12px;}
#clan .cw-task-list {display:flex;flex-direction:column;gap:5px;}
#clan .cw-task-row {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);}
#clan .cw-task-row.has-points {border-color:color-mix(in srgb,var(--gold) 45%,var(--line));background:var(--gold-soft);}
#clan .cw-task-row>div {display:flex;flex-direction:column;gap:5px;min-width:0;}.cw-task-row b {font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
#clan .cw-task-row small {font-size:10px;line-height:1.4;color:var(--sub);}.cw-task-row>strong {font-size:13px;flex:0 0 auto;}
#clan .cw-members {border:1px solid var(--line);border-radius:13px;background:var(--panel);}
#clan .cw-members>summary {padding:14px;font-size:12px;font-weight:650;cursor:pointer;}
#clan .cw-members .bcard {border:0;background:none;}.cw-members .bcard-head {display:none;}
#clan .cw-screen .ar-dock-row {margin:0!important;padding-top:8px;border-top:1px solid var(--line);background:var(--card);}
#clan .cw-screen .ar-dock-row .btn {min-height:46px;}.cw-screen .wt-nm {min-width:0;}
#clan .cw-screen .wt-atk {min-width:44px;min-height:44px;}.cw-screen .wt-nm b {white-space:normal;overflow-wrap:anywhere;}
@media(max-width:350px){#clan .cw-hero{padding:12px;}#clan .cw-match{gap:8px;}#clan .cw-team{padding:10px 8px;}#clan .cw-team>b{font-size:24px;}#clan .cw-team-name{font-size:12px;}#clan .cw-team-link{font-size:8px;}}
#clan.clan-war-active > .cn-head {display:none!important;}
#clan .cw-phase {padding:10px 0;}
#clan .cw-team {padding:11px 10px;}#clan .cw-team>b {padding-top:9px;}
#clan .cw-notice {padding:11px;}.cw-notice p {font-size:11px;}
#clan .cw-screen .ar-dock-row {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr) minmax(0,.85fr);gap:7px;min-width:0;}
#clan .cw-screen .ar-dock-row .btn {width:100%;min-width:0;max-width:100%;padding:9px 5px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;}
#clan .cw-screen .ar-dock-row .ar-fight {font-size:14px;}
#clan .cw-screen .ar-dock-row svg {width:14px;height:14px;flex:0 0 14px;}
#clan .cw-screen .ar-dock-row small {font-size:10px;}
@media(max-height:480px){.war-contributions-popup{padding:8px;}.wc-members{min-height:32px;}}
@media(max-height:360px){.wc-summary>small{display:none;}.wc-list-heading{display:none;}}
.war-contributions-popup .fg-swap-title {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
