/* Seasons (client/panels-season.js) — gunmetal like the Clan Duel, tinted by the season theme:
   --tc theme colour, --td its dark shade, --tg its glow as "r,g,b". */
.sn-root { --tc: #e8893a; --td: #2a1c14; --tg: 255,160,70; min-height: 100%; display: flex; flex-direction: column; margin: -12px -12px 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--td) 65%, #3a4048), #14171a 72%); }
#panel .pn-wrap.sn-root { padding-bottom: 0; min-height: calc(100% + 12px); }
.sn-root small.ok, #sn-zone i.ok { color: var(--c-good-hi); } .sn-root small.warn, #sn-zone i.warn { color: var(--c-amber-hi); } .sn-root small.no, #sn-zone i.no { color: #ff8a6a; }
@keyframes sn-pulse { 50% { transform: translateY(-1px); filter: brightness(1.12); } }

/* banner: canvas art, title, countdown */
.sn-banner { position: relative; height: 150px; overflow: hidden; background: var(--td); border-bottom: 3px solid var(--tc); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.sn-art { display: block; }
.sn-art-banner { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.sn-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.42)); }
.sn-help { position: absolute; left: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--tc); background: rgba(20,22,26,.72); color: #fff; font: 900 17px/1 system-ui; }
.sn-bt { position: absolute; right: 12px; top: 10px; z-index: 1; display: grid; justify-items: end; gap: 3px; text-align: right; }
.sn-bt small { font: 800 11px/1 system-ui; letter-spacing: .16em; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px #000; }
.sn-bt b { font: 900 30px/1.05 system-ui; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0,0,0,.65), 0 0 18px rgba(var(--tg), .75); }
.sn-bt span { padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(var(--tg), .75); font: 800 12px/1.2 system-ui; color: #fff; }
.sn-cd { position: absolute; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.62); }
.sn-cd small { font-size: 11px; color: #d8dde2; } .sn-cd b { font: 900 15px/1 ui-monospace, Menlo, monospace; color: var(--c-amber-hi); }
.sn-weeks { display: grid; gap: 5px; padding: 8px 12px 7px; background: #181c20; border-bottom: 1px solid #343c43; }
.sn-weeks .pips { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.sn-weeks .pips i { height: 18px; border-radius: 5px; background: #23292e; border: 1px solid #343c43; font: 800 10px/16px system-ui; font-style: normal; text-align: center; color: #7f8a93; }
.sn-weeks .pips i.past { background: color-mix(in srgb, var(--tc) 35%, #1a1f24); border-color: transparent; color: #d8dde2; }
.sn-weeks .pips i.on { background: var(--tc); border-color: #fff3c8; color: #1a1208; box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 70%, transparent); }
.sn-weeks small { font-size: 12px; color: #c9d1d8; } .sn-weeks small span { color: var(--muted); }

/* body */
.sn-body { flex: 1; display: grid; align-content: start; gap: 12px; padding: 12px 12px 16px; }
.sn-intro { margin: 0; padding: 9px 12px; border-left: 3px solid var(--tc); border-radius: 0 10px 10px 0; background: rgba(0,0,0,.3); font-size: 13.5px; line-height: 1.4; font-style: italic; color: #e3e8ec; }
.sn-card { padding: 12px; border-radius: 14px; background: linear-gradient(#262c32, #1a1f24); border: 1px solid #3a434b; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.sn-card h4 { margin: -12px -12px 10px; padding: 8px 12px; border-radius: 13px 13px 0 0; background: #20262b; border-bottom: 1px solid #343c43; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tc); }
.sn-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.sn-body > .sn-note { margin: 0 2px; }
.sn-btn { width: 100%; min-height: 46px; padding: 6px 10px; border: 0; border-radius: 12px; display: grid; justify-items: center; align-content: center; gap: 2px; font: 900 15px/1.15 system-ui; color: #1a1208;
  background: linear-gradient(color-mix(in srgb, var(--tc) 78%, #fff), var(--tc)); box-shadow: 0 3px 0 color-mix(in srgb, var(--tc) 45%, #000); }
.sn-btn small { font: 700 11px/1 system-ui; opacity: .8; }
.sn-btn:active, .sn-buy:active, .sn-claim:active { transform: translateY(2px); }
.sn-btn.gold { background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 3px 0 #8a5a10, 0 0 14px rgba(255,215,106,.4); animation: sn-pulse 1.6s ease-in-out infinite; }
.sn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sn-stats > div { display: grid; gap: 3px; min-width: 0; padding: 8px 4px; border-radius: 10px; background: #15191c; text-align: center; }
.sn-stats small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-stats b { font: 900 19px/1.1 system-ui; color: #fff; white-space: nowrap; } .sn-stats b i { font: 700 12px/1 system-ui; font-style: normal; color: var(--muted); }
.sn-prog { margin-top: 10px; } .sn-prog .hd { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #c9d1d8; } .sn-prog .hd b { color: #fff; font-weight: 800; }
.sn-bar { height: 12px; margin-top: 5px; border-radius: 6px; overflow: hidden; background: #0e1114; box-shadow: inset 0 0 0 1px #3a434b; }
.sn-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 60%, #000), var(--tc)); transition: width .3s; }

/* resistance structure */
.sn-res .top { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; }
.sn-art-structure { border-radius: 12px; background: radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--td) 55%, #3a3a3a), #0e1114); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 60%, #000); }
.sn-res .tx small { font: 800 10px/1 system-ui; letter-spacing: .1em; color: var(--tc); }
.sn-res .tx b { display: flex; align-items: center; gap: 8px; margin-top: 2px; font: 900 19px/1.2 system-ui; color: #fff; }
.sn-res .tx .lv { padding: 3px 7px; border-radius: 999px; background: var(--tc); font: 800 12px/1 system-ui; color: #1a1208; }
.sn-res .tx p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.3; color: #c9d1d8; }
.sn-res .val { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 13px; color: #d8dde2; }
.sn-res .val b { margin-left: auto; font: 900 22px/1 system-ui; color: #fff; } .sn-res .val i { font-style: normal; font-size: 12px; color: var(--muted); }
.sn-meter { position: relative; height: 12px; margin: 6px 4px 26px; border-radius: 6px; background: #0e1114; box-shadow: inset 0 0 0 1px #3a434b; }
.sn-meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, #000), var(--tc)); }
.sn-meter .mk { position: absolute; top: -3px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #59636d; }
.sn-meter .mk.ok { background: #fff; box-shadow: 0 0 6px var(--tc); }
.sn-meter .mk em { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font: 800 10px/1 system-ui; font-style: normal; white-space: nowrap; color: #8f9aa3; }
.sn-meter .mk.ok em { color: #fff; }
.sn-meter .mk:last-child em { left: auto; right: -4px; transform: none; }
.sn-cost { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sn-cost span { padding: 3px 8px; border-radius: 999px; background: #0e1114; border: 1px solid #343c43; font: 700 12px/1.3 system-ui; white-space: nowrap; }
.sn-cost span.no { color: #ff8a6a; border-color: #7a3a2a; } .sn-cost .tok { border-color: color-mix(in srgb, var(--tc) 60%, #343c43); } .sn-cost .tm { color: var(--muted); }
.sn-job { display: grid; grid-template-columns: 1fr 48px; gap: 8px; align-items: center; }
.sn-jbar { position: relative; height: 36px; border-radius: 10px; overflow: hidden; background: #0e1114; box-shadow: inset 0 0 0 1px #3a434b; }
.sn-jbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 45%, #000), var(--tc)); transition: width 1s linear; }
.sn-jbar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; font: 800 13px/1 system-ui; color: #fff; text-shadow: 0 1px 2px #000; }
.sn-speed { width: 48px; height: 36px; padding: 0; border: 0; border-radius: 10px; font-size: 18px; background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 3px 0 #8a5a10; }
.sn-max { padding: 10px; border-radius: 10px; text-align: center; font: 800 13px/1.3 system-ui; color: var(--c-amber-hi); background: rgba(255,215,106,.08); }

/* zones */
.sn-zones .top { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.sn-zones .tx { display: grid; gap: 7px; align-content: start; min-width: 0; }
.sn-zones .tx p { margin: 0; font-size: 12.5px; line-height: 1.35; color: #d8dde2; } .sn-zones .tx .me { font-weight: 700; color: var(--c-amber-hi); }
.sn-mapbtn { min-height: 38px; padding: 4px 8px; border-radius: 10px; background: #15191c; border: 1px solid color-mix(in srgb, var(--tc) 60%, #343c43); font: 800 13px/1 system-ui; color: #fff; }
.sn-prot { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; background: #16281c; border: 1px dashed #4a8a5a; }
.sn-prot span { font-size: 22px; } .sn-prot b { display: block; font-size: 14px; color: #9be86b; } .sn-prot small { display: block; font-size: 12px; line-height: 1.3; color: #c9d1d8; }
.sn-zrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.sn-zrow .sw { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px dashed rgba(var(--tg), .9); font: 900 13px/1 system-ui; color: #fff; text-shadow: 0 1px 0 #000; }
.sn-zrow .sw.z1 { background: color-mix(in srgb, var(--tc) 28%, #5a5730); } .sn-zrow .sw.z2 { background: color-mix(in srgb, var(--tc) 52%, #4a4428); } .sn-zrow .sw.z3 { background: color-mix(in srgb, var(--tc) 78%, #3a3020); }
.sn-zrow .nm { min-width: 0; } .sn-zrow .nm b { display: block; font-size: 14px; } .sn-zrow .nm small { display: block; font-size: 11.5px; color: var(--muted); } .sn-zrow .nm small span { white-space: nowrap; }
.sn-zrow .rq { text-align: right; } .sn-zrow .rq b { display: block; font: 900 14px/1.2 system-ui; white-space: nowrap; } .sn-zrow .rq small { font: 800 11px/1.2 system-ui; white-space: nowrap; }

/* lists: scoring, rank rewards, ranking */
.sn-act { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); }
.sn-list h4 + .sn-act, .sn-list h4 + .sn-rrow { border-top: 0; padding-top: 0; }
.sn-act .ic { font-size: 19px; text-align: center; } .sn-act .lb { font-size: 13.5px; }
.sn-act b { padding: 3px 8px; border-radius: 999px; background: #1f3a1c; font: 800 11.5px/1.2 system-ui; color: var(--c-good-hi); white-space: nowrap; }
.sn-rws { display: flex; flex-wrap: wrap; gap: 5px; }
.sn-rw { padding: 3px 8px; border-radius: 999px; background: #0e1114; border: 1px solid #343c43; font-size: 12.5px; white-space: nowrap; } .sn-rw b { font-weight: 800; }
.sn-rw.tok { border-color: color-mix(in srgb, var(--tc) 65%, #343c43); }
.sn-rrow { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); }
.sn-rrow .rk { font: 900 14px/1 system-ui; text-align: center; color: var(--c-amber-hi); }
.sn-list .pn-rank { border-bottom-color: rgba(255,255,255,.06); } .sn-list .pn-rank:last-child { border-bottom: 0; } .sn-list .pn-rank.me { margin-top: 4px; }
.sn-rname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sn-rname i { font-style: normal; font-weight: 700; color: #8fc4f5; }
.sn-wallet, .sn-myrank, .sn-last { display: grid; grid-template-columns: 52px 1fr; gap: 4px 10px; align-items: center; }
.sn-card .big { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: #12161a; box-shadow: 0 0 0 2px var(--tc), 0 0 14px rgba(var(--tg), .35); }
.sn-card .big + div small { display: block; font-size: 12px; color: var(--muted); } .sn-card .big + div b { display: block; font: 900 25px/1.1 system-ui; color: #fff; }
.sn-card .big + div i { display: block; font-style: normal; font-size: 12.5px; color: #c9d1d8; }
.sn-wallet p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* pass track */
.sn-track { display: grid; gap: 6px; }
.sn-tier { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #1c2126; border: 1px solid #343c43; }
.sn-tier .no { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2a3036; box-shadow: inset 0 0 0 2px #59636d; font: 900 15px/1 system-ui; color: #fff; }
.sn-tier.big .no { border-radius: 11px; box-shadow: inset 0 0 0 2px #e0a52a; }
.sn-tier .rw { min-width: 0; display: grid; gap: 4px; } .sn-tier .rw small { font-size: 11px; color: var(--muted); }
.sn-tier .st { width: 40px; text-align: center; font-size: 18px; } .sn-tier .st.ok { font-weight: 900; color: var(--c-good-hi); }
.sn-tier.locked { opacity: .6; } .sn-tier.locked .no { color: #9aa4ad; }
.sn-tier.next { opacity: 1; border-color: color-mix(in srgb, var(--tc) 60%, #343c43); box-shadow: inset 3px 0 0 var(--tc); }
.sn-tier.done { background: #18201a; border-color: #2f4a34; } .sn-tier.done .no { background: #1f3a1c; box-shadow: inset 0 0 0 2px #4a8a3a; color: var(--c-good-hi); }
.sn-tier.ready { background: linear-gradient(90deg, rgba(255,215,106,.16), #1c2126 70%); border-color: #e0a52a; }
.sn-tier.ready .no { background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 0 10px rgba(255,215,106,.5); color: #2a1a04; }
.sn-claim { min-width: 64px; min-height: 38px; padding: 4px 10px; border: 0; border-radius: 10px; background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 3px 0 #8a5a10; font: 900 13px/1 system-ui; color: #2a1a04; }

/* shop */
.sn-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sn-item { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 10px 8px; border-radius: 14px; background: linear-gradient(#262c32, #1a1f24); border: 1px solid #3a434b; text-align: center; }
.sn-item .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: #12161a; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 50%, #343c43); }
.sn-item .nm { display: grid; align-items: center; min-height: 2.4em; font: 800 13px/1.2 system-ui; }
.sn-item .sn-rws { justify-content: center; } .sn-item .lim { font-size: 11px; color: var(--muted); }
.sn-item.out { opacity: .5; }
.sn-step { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; width: 100%; border-radius: 10px; overflow: hidden; background: #0e1114; box-shadow: inset 0 0 0 1px #343c43; }
.sn-step button { height: 34px; padding: 0; border: 0; border-radius: 0; background: #2a3036; font: 900 18px/1 system-ui; color: #fff; } .sn-step span { font: 800 14px/1 system-ui; }
.sn-buy { width: 100%; min-height: 40px; padding: 4px; border: 0; border-radius: 10px; font: 900 14px/1 system-ui; color: #1a1208;
  background: linear-gradient(color-mix(in srgb, var(--tc) 78%, #fff), var(--tc)); box-shadow: 0 3px 0 color-mix(in srgb, var(--tc) 45%, #000); }
.sn-buy.poor { filter: grayscale(.8) brightness(.75); }

/* rules popup */
.sn-rules { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; line-height: 1.4; }

/* bottom tab slider */
.sn-tabs { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 2px; align-items: stretch; padding: 6px 6px calc(8px + var(--safe-bottom));
  background: linear-gradient(#2c3238, #181c20); border-top: 3px solid var(--tc); box-shadow: 0 -6px 14px rgba(0,0,0,.5); }
.sn-back { flex: 0 0 48px; height: 48px; align-self: center; padding: 0; border-radius: 50%; border: 0; font-size: 22px; color: #fff; background: radial-gradient(circle at 50% 35%, #59636d, #2a3036); box-shadow: 0 0 0 2px var(--tc); }
.sn-tab { position: relative; flex: 1 0 56px; padding: 6px 2px; border: 0; border-radius: 10px 10px 4px 4px; background: none; display: grid; justify-items: center; gap: 2px; color: #fff; }
.sn-tab .ic { font-size: 24px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.sn-tab b { font: 900 12px/1.1 system-ui; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.sn-tab.on { background: linear-gradient(color-mix(in srgb, var(--tc) 72%, #fff), var(--tc)); box-shadow: 0 -2px 0 rgba(255,255,255,.5) inset; }
.sn-tab .hud-bdg { top: 2px; right: 6px; }

/* Map view: the zone chip under the commander card */
#sn-zone { position: absolute; left: 8px; top: 86px; z-index: 6; max-width: calc(100% - 134px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 7px; align-items: center;
  padding: 5px 8px 5px 7px; border-radius: 12px; border: 1.5px solid var(--tc, #e8893a); background: rgba(18,16,14,.84); box-shadow: 0 3px 8px rgba(0,0,0,.4); color: #fff; text-align: left; }
#sn-zone .ic { grid-row: span 2; font-size: 21px; line-height: 1; }
#sn-zone b { font: 900 12.5px/1.2 system-ui; white-space: nowrap; }
#sn-zone small { grid-column: 2 / -1; font: 700 10.5px/1.2 system-ui; color: #c9d1d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sn-zone i { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.1); font: 900 11.5px/1 system-ui; font-style: normal; white-space: nowrap; }
html.land #sn-zone { left: 50%; top: auto; bottom: 62px; max-width: 320px; transform: translateX(-50%); } /* landscape: above the chat strip */
