/* Clan Siege (client/panels-siege.js). */
.sg-hero { position: relative; margin-bottom: 10px; padding: 14px 12px; border-radius: 14px; text-align: center; overflow: hidden; border: 1px solid #5a6b3a;
  background: radial-gradient(120% 90% at 50% 0%, #3a4a26 0%, #1c2616 60%, #131a10 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 var(--c-ink); }
.sg-hero.live { border-color: var(--c-blood); background: radial-gradient(120% 90% at 50% 0%, #5a2018 0%, #2a1410 60%, #170d0b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 var(--c-ink), 0 0 16px rgba(224,87,76,.3); }
.sg-hero.sched { border-color: var(--c-amber-lo); background: radial-gradient(120% 90% at 50% 0%, #4a3a16 0%, #261d0e 60%, #16110a 100%); }
.sg-hero.done { border-color: var(--pn-gold2, var(--c-amber-lo)); }
.sg-kicker { font: 800 11.5px/1.3 system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--c-amber-pale); }
.sg-big { margin: 4px 0 2px; font: 900 30px/1.1 system-ui; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.sg-line { font-size: 13px; color: var(--c-text-2); }
.sg-line b { color: var(--c-amber-hi); font-variant-numeric: tabular-nums; }
.sg-hero .pn-note { margin-top: 8px; }
.sg-off { margin-top: 10px; min-height: 40px; }
.sg-go { width: 100%; margin-top: 10px; }

/* the wave pips */
.sg-pips { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin: 10px 0 8px; }
.sg-pip { height: 16px; border-radius: 3px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); font: 900 10px/14px system-ui; font-style: normal; color: rgba(255,255,255,.55); text-align: center; overflow: hidden; }
.sg-pip.boss { border-color: var(--c-amber-lo); }
.sg-pip.held { background: linear-gradient(#7fd36a, #3f8f3a); border-color: #b8f0a0; color: #0e2a0c; }
.sg-pip.fell { background: linear-gradient(#ff7a62, #a33a32); border-color: #ffb3a6; color: #2a0906; }
.sg-pip.gone { background: rgba(255,255,255,.14); }
.sg-pip.next { border-color: var(--c-amber-hi); box-shadow: 0 0 6px var(--c-amber); animation: sg-blink 1s ease-in-out infinite; }
@keyframes sg-blink { 50% { background: rgba(240,180,60,.55); } }
@media (prefers-reduced-motion: reduce) { .sg-pip.next { animation: none; } }

/* scheduling (Leader, Co-Leaders) */
.sg-sched { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
.sg-sub { margin: 8px 0 4px; font: 800 11px/1.3 system-ui; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sg-sub.next { margin-top: 12px; text-align: center; color: var(--c-amber-pale); }
.sg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sg-opt { min-height: 44px; padding: 4px 4px; display: grid; align-content: center; gap: 1px; font-size: 13px; line-height: 1.2; }
.sg-opt b { font-weight: 800; white-space: nowrap; }
.sg-opt small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.sg-opt.on { background: var(--surf-amber, #c8912a); color: var(--c-amber-ink); border-color: #ffe7a6 #e0a030 #9a6414; }
.sg-opt.on small { color: #4a3505; }

/* my wall */
.sg-wall.fallen { border-color: var(--c-blood-lo); }
.sg-wall-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sg-wall-head h3 { margin: 0; }
.sg-tag { padding: 2px 9px; border-radius: 999px; font: 800 11px/1.5 system-ui; letter-spacing: .04em; text-transform: uppercase; background: var(--c-ink); border: 1px solid var(--line); color: var(--c-text-2); white-space: nowrap; }
.sg-tag.good { background: var(--c-good-deep); border-color: var(--c-good); color: #c9ffd0; }
.sg-tag.bad { background: var(--c-blood-deep); border-color: var(--c-blood); color: #ffd0c8; }
.sg-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sg-part { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--c-ink); border: 1px solid var(--line); min-width: 0; }
.sg-part span { font-size: 20px; line-height: 1.1; }
.sg-part b { font-size: 14px; color: var(--pn-gold, var(--c-amber)); font-variant-numeric: tabular-nums; }
.sg-part small { font-size: 10.5px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sg-part.off { opacity: .55; border-style: dashed; }
.sg-warn { margin-top: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; background: var(--c-blood-deep); border: 1px solid var(--c-blood-lo); color: #ffd0c8; }
.sg-meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin-top: 10px; font-size: 12.5px; color: var(--c-text-2); }
.sg-meter b { font-variant-numeric: tabular-nums; }
.sg-meter .pn-bar { grid-column: 1 / -1; }
.sg-verdict { margin-top: 8px; padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; background: rgba(240,180,60,.1); border: 1px solid var(--c-amber-deep); color: var(--c-amber-pale); }
.sg-verdict.good { background: rgba(94,196,107,.12); border-color: var(--c-good-deep); color: #c9ffd0; }
.sg-verdict.bad { background: var(--c-blood-deep); border-color: var(--c-blood-lo); color: #ffd0c8; }
.sg-wall .pn-note { margin-top: 6px; }
.sg-link { width: 100%; margin-top: 8px; min-height: 40px; text-align: left; font-size: 13px; background: rgba(0,0,0,.25); border-color: var(--line); box-shadow: none; }
.sg-link.rules { margin-top: 14px; text-align: center; color: var(--c-text-2); }

/* posted squads */
.sg-post { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; column-gap: 8px; padding: 7px 9px; margin-bottom: 6px; border-radius: 10px; background: #131a16; border: 1px solid var(--line); }
.sg-post span { grid-row: 1 / span 2; font-size: 20px; }
.sg-post b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-post small { grid-column: 2; color: var(--muted); font-size: 12px; }
.sg-post button { grid-column: 3; grid-row: 1 / span 2; min-height: 40px; }

/* the clan board */
.sg-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sg-sec small { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.sg-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 8px; margin-bottom: 6px; border-radius: 10px; background: linear-gradient(#202b24, #171f1a); border: 1px solid var(--line); min-height: 52px; }
.sg-row.me { border-color: var(--pn-gold2, var(--c-amber-lo)); background: linear-gradient(#2f2a14, #1f1b0e); }
.sg-row.fallen { opacity: .8; }
.sg-row .no { text-align: center; font-weight: 800; color: var(--muted); }
.sg-row .mid { min-width: 0; display: grid; gap: 1px; }
.sg-row .mid b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-row .mid b i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--c-amber-pale); }
.sg-row .mid small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.sg-row .v { font-weight: 800; color: var(--pn-gold, var(--c-amber)); font-variant-numeric: tabular-nums; }
.sg-rf { min-height: 40px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.sg-why { font-size: 11px; color: var(--muted); max-width: 84px; text-align: right; }
.sg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--muted); }
.sg-dot.hold { background: var(--c-good); box-shadow: 0 0 5px var(--c-good); }
.sg-dot.fallen { background: var(--c-blood); }

/* rules sheet, reward chips (shared with the Clan Battlefield) */
.sg-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sg-rule:last-child { border-bottom: 0; }
.sg-rule b { flex: none; max-width: 55%; }
.sg-rule > span { color: var(--c-text-2); text-align: right; }
.sg-chips { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.sg-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; font-size: 12px; background: var(--c-ink); border: 1px solid var(--line); white-space: nowrap; }
