/* Season Pass (client-debug/js/season.js, src/map/season.js): the window - "ลมหนาวแห่งมิดการ์ด", a winter night (Noh 2026-11-08
   22:44 "ออกแบบให้สวยเลยนะ"): an aurora over falling snow in the head, ice for the progress and the free row, gold for the
   Premium; the rows named on the left beside their cells, the levels a path between them. The same in every theme
   (#win-season over the RO theme's).
   Entries only with a season (<html class="sp-sys">), their dot when rewards wait (<html class="sp-ready">). Linked by
   client/index.html and client-debug/index.html after style.css. */

html:not(.sp-sys) .sp-entry, html:not(.sp-sys) .mh-grid [data-w="!season"] { display: none !important; }
#mb-season { position: relative; }
html.sp-ready #mb-season::after, html.sp-ready .mh-grid [data-w="!season"]::after { content: ""; position: absolute; top: 3px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 6px #ff4d6d; }
html.sp-ready .mh-grid [data-w="!season"] { position: relative; }
/* the button beside the minimap (ui.js buildMapButtons): a violet-gold tile, a red dot when rewards wait */
.sb-ic.sb-season { border-color: #5b2aa6; color: #fff; background: linear-gradient(#d8b4ff, #8d4ee6 52%, #5b2aa6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(255, 225, 140, 0.8); }
#map-btns .map-btn.map-season { position: relative; }
#map-btns .map-season .sp-mdot { display: none; position: absolute; top: -2px; right: 9px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #ff4d6d; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
html.sp-ready #map-btns .map-season .sp-mdot { display: block; }

#win-season { --sp-night: #0d1531; --sp-deep: #15224a; --sp-ice: #9fd6ff; --sp-frost: #eaf5ff; --sp-gold: #ffc94a; --sp-amber: #e0922a;
	--sp-aurora: #5ee6c4; --sp-cw: 86px; --sp-ch: 76px; --sp-lh: 24px; --sp-gap: 5px; }
#win-season .win-body { padding: 0; overflow: auto; background: linear-gradient(180deg, #14224d, var(--sp-night) 55%, #0a1027); color: var(--sp-frost); }
.sp { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.sp-wait { padding: 20px; text-align: center; }

/* the head: the night sky - snow (two layers of specks), the aurora's band, the level's crest (ice; gold with the Premium) */
.sp-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 14px 14px; overflow: hidden;
	background:
		radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px) 0 0 / 41px 37px,
		radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.45) 0 0.8px, transparent 1.3px) 13px 9px / 29px 23px,
		linear-gradient(103deg, transparent 18%, rgba(94, 230, 196, 0.26) 40%, rgba(128, 132, 255, 0.24) 58%, transparent 78%),
		linear-gradient(180deg, #1d3168, #142350); border-bottom: 1px solid rgba(159, 214, 255, 0.25); }
.sp-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 78px;
	clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); color: #0d1f45;
	background: linear-gradient(160deg, #ffffff, #bfe6ff 45%, #6db4ec); filter: drop-shadow(0 0 10px rgba(159, 214, 255, 0.6)); }
.sp-isvip .sp-badge { color: #3b2100; background: linear-gradient(160deg, #fff6cf, #ffd36b 45%, #e59a2c); filter: drop-shadow(0 0 10px rgba(255, 201, 74, 0.6)); }
.sp-badge b { font-size: 27px; line-height: 1; font-weight: 900; }
.sp-badge small { font-size: 10.5px; font-weight: 700; }
.sp-info { flex: 1; min-width: 0; }
.sp-name { font-size: 18px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(94, 230, 196, 0.35); }
.sp-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 1px; font-size: 12px; color: #bcd3f5; }
.sp-sub span:first-child { color: var(--sp-frost); font-weight: 700; }
.sp-bar { position: relative; height: 16px; margin-top: 7px; border-radius: 8px; overflow: hidden; background: rgba(4, 9, 28, 0.6); border: 1px solid rgba(159, 214, 255, 0.35); }
.sp-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #4f9ee0, #a9ddff 75%, #ffffff); box-shadow: 0 0 10px rgba(159, 214, 255, 0.7); transition: width 0.5s; }
.sp-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 700; line-height: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.sp-acts { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
#win-season .sp-buy, #win-season .sp-all, #win-season .sp-dget { height: 32px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 10px; font: 800 13px/32px var(--font, sans-serif); text-shadow: none; cursor: pointer; }
#win-season .sp-buy { color: #3b2100; background: linear-gradient(180deg, #fff1b0, var(--sp-gold) 55%, var(--sp-amber)); box-shadow: 0 0 12px rgba(255, 201, 74, 0.5), inset 0 -2px 0 rgba(120, 60, 0, 0.3); }
#win-season .sp-buy.sure { color: #fff; background: linear-gradient(180deg, #ff9a7a, #e8553b); }
#win-season .sp-all { color: #0d1f45; background: linear-gradient(180deg, #ffffff, #bfe6ff 55%, #7cc0f0); box-shadow: 0 0 10px rgba(159, 214, 255, 0.45), inset 0 -2px 0 rgba(20, 60, 120, 0.25); }
#win-season .sp-buy:hover, #win-season .sp-all:hover, #win-season .sp-dget:hover { filter: brightness(1.08); }
#win-season .sp-buy:focus-visible, #win-season .sp-all:focus-visible, #win-season .sp-dget:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sp-vip { padding: 6px 12px; border-radius: 10px; font-weight: 800; color: #3b2100; background: linear-gradient(180deg, #fff1b0, var(--sp-gold) 55%, var(--sp-amber)); text-align: center; }

/* the Premium's gift of each day (Noh 2026-11-08 14:15 - 14:20, 22:44): the day's card - which day, its gifts, a mark for each of
   its days (taken gold, missed red, today bright, to come dim); before the Premium: all it gives in the season */
.sp-daily { display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; color: #fff3d0;
	border: 1px solid rgba(255, 201, 74, 0.45); background: linear-gradient(100deg, rgba(255, 201, 74, 0.17), rgba(21, 34, 74, 0.7) 62%); }
.sp-daily.can { border-color: var(--sp-gold); box-shadow: 0 0 14px rgba(255, 201, 74, 0.35); }
.sp-dday { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 58px; border-radius: 10px; color: #3b2100;
	background: linear-gradient(180deg, #fff1b0, var(--sp-gold) 60%, var(--sp-amber)); box-shadow: inset 0 -2px 0 rgba(120, 60, 0, 0.25); }
.sp-dday b { font-size: 22px; line-height: 1; font-weight: 900; }
.sp-dday small { font-size: 10px; font-weight: 700; }
.sp-crest { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 24px;
	background: radial-gradient(circle at 40% 35%, #fff6cf, var(--sp-gold) 55%, var(--sp-amber)); box-shadow: 0 0 14px rgba(255, 201, 74, 0.55); }
.sp-dmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-dt { font-weight: 800; color: #ffe08a; }
.sp-dg { display: flex; gap: 5px; flex-wrap: wrap; }
.sp-dg .sp-it { flex-direction: row; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); font-size: 12px; }
.sp-dg .sp-it b { position: static; font-size: 12px; }
.sp-dtot .sp-it { border: 1px solid rgba(255, 201, 74, 0.45); background: rgba(255, 201, 74, 0.1); }
.sp-dtot .sp-it b { font-size: 13px; }
.sp-dmini { display: inline-flex; vertical-align: middle; gap: 3px; }
.sp-dmini .sp-it { padding: 0 5px 0 1px; background: rgba(0, 0, 0, 0.25); }
.sp-dmini .sp-it b { font-size: 11px; }
.sp-dmini .ic { transform: scale(0.8); margin: -2px; }
.sp-dmarks { display: flex; gap: 2px; }
.sp-dmarks i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.sp-dmarks i.t { background: linear-gradient(90deg, #ffe08a, var(--sp-gold)); }
.sp-dmarks i.x { background: rgba(255, 110, 110, 0.4); }
.sp-dmarks i.c { background: #fff; box-shadow: 0 0 6px #fff; }
.sp-dn { font-size: 11.5px; color: #c9d8f5; }
.sp-dsell .sp-dn { color: #ffe9b0; }
#win-season .sp-dget { flex: none; color: #3b2100; background: linear-gradient(180deg, #fff1b0, var(--sp-gold) 55%, var(--sp-amber)); box-shadow: 0 0 12px rgba(255, 201, 74, 0.5), inset 0 -2px 0 rgba(120, 60, 0, 0.3); }
.sp-dok { flex: none; font-size: 12px; font-weight: 700; color: #9cf5b8; }

/* the board: the rows' names on the left (ฟรี ice, Premium gold - solid gold once bought), the levels scrolling beside them */
.sp-board { display: flex; align-items: flex-start; margin: 10px 0 0 12px; }
.sp-tabs { flex: none; display: flex; flex-direction: column; gap: var(--sp-gap); width: 58px; padding: 6px 0 10px; }
.sp-rl { display: flex; flex-direction: column; align-items: center; justify-content: center; height: var(--sp-ch); box-sizing: border-box; border-radius: 12px 0 0 12px; text-align: center; }
.sp-rl b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.sp-rl small { font-size: 10.5px; font-weight: 700; opacity: 0.85; }
.sp-rf { color: var(--sp-frost); border: 1px solid rgba(159, 214, 255, 0.35); border-right: 0; background: linear-gradient(90deg, rgba(159, 214, 255, 0.22), rgba(159, 214, 255, 0.06)); }
.sp-rp { color: #ffe08a; border: 1px solid rgba(255, 201, 74, 0.5); border-right: 0; background: linear-gradient(90deg, rgba(255, 201, 74, 0.25), rgba(255, 201, 74, 0.06)); }
.sp-rp.vip { color: #3b2100; background: linear-gradient(180deg, #fff1b0, var(--sp-gold) 55%, var(--sp-amber)); }
.sp-rp b { font-size: 18px; }
.sp-tgap { height: var(--sp-lh); }
.sp-track { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 6px 12px 10px 4px; scrollbar-width: thin; scrollbar-color: rgba(159, 214, 255, 0.4) transparent; }
.sp-cols { display: flex; gap: 6px; width: max-content; }
.sp-col { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-gap); width: var(--sp-cw); }

/* a cell: its rewards in one line, the amount over each icon's corner as in the bag; one to take glows with "รับ" under it */
.sp-cell { position: relative; display: flex; align-items: center; justify-content: center; height: var(--sp-ch); padding: 2px 2px 12px; border-radius: 12px; box-sizing: border-box; font: inherit; color: inherit; }
#win-season .sp-cell[role=button] { width: 100%; min-height: 0; cursor: pointer; text-shadow: none; }
#win-season .sp-cell[role=button]:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* (two a row at most: four rewards - the Premium's Cash, Battle Manual, Bubble Gum, Blacksmith Blessing - a square of 2 x 2, 2026-11-10) */
.sp-its { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; max-width: 64px; }
.sp-it { position: relative; display: inline-flex; flex-direction: column; align-items: center; font-size: 10.5px; }
.sp-it .ic.sm { margin: 0; }
.sp-it b { color: #fff; font-weight: 800; line-height: 1.1; }
.sp-cell .sp-it b { position: absolute; right: -3px; bottom: -5px; font-size: 10.5px; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000, 0 0 3px #000; }
.sp-cell .sp-c b { right: 50%; transform: translateX(50%); }
.sp-f { background: linear-gradient(180deg, rgba(159, 214, 255, 0.16), rgba(159, 214, 255, 0.05)); border: 1px solid rgba(159, 214, 255, 0.3); }
.sp-p { background: linear-gradient(180deg, rgba(255, 201, 74, 0.18), rgba(255, 201, 74, 0.05)); border: 1px solid rgba(255, 201, 74, 0.42); }
.sp-none { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); }
.sp-lock { opacity: 0.5; filter: saturate(0.6); }
.sp-vlock { opacity: 0.72; }
.sp-got { opacity: 0.45; }
.sp-can { animation: sp-glow 1.6s ease-in-out infinite; }
.sp-f.sp-can { border-color: #d6efff; background: linear-gradient(180deg, rgba(159, 214, 255, 0.38), rgba(159, 214, 255, 0.12)); }
.sp-p.sp-can { border-color: #ffe7a0; background: linear-gradient(180deg, rgba(255, 201, 74, 0.42), rgba(255, 201, 74, 0.14)); }
.sp-get { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 0 10px; border-radius: 7px 7px 0 0; font: 800 10.5px/14px var(--font, sans-serif); font-style: normal; color: #0d1f45; background: #d6efff; }
.sp-p .sp-get { color: #3b2100; background: var(--sp-gold); }
.sp-tick { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 11px; color: #05361a; background: #6ff0a0; }
.sp-lk { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-size: 11px; }
.sp-z i, .sp-c i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 11px; }
.sp-z i { color: #6b4300; background: radial-gradient(circle at 40% 35%, #fff2b8, #f2b632); }
.sp-c i { color: #06304a; background: radial-gradient(circle at 40% 35%, #f2fbff, #8fd0ff 50%, #2f8fd8); box-shadow: 0 0 6px rgba(159, 214, 255, 0.6); }

/* the levels: a path between the rows - ice up to the level reached, the level now a white stone */
.sp-lvn { position: relative; height: var(--sp-lh); display: grid; place-items: center; }
.sp-lvn::before { content: ""; position: absolute; left: -6px; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.sp-col.on .sp-lvn::before { background: linear-gradient(90deg, #6db4ec, #cdeeff); box-shadow: 0 0 6px rgba(159, 214, 255, 0.5); }
.sp-lvn span { position: relative; display: grid; place-items: center; min-width: 28px; height: 20px; padding: 0 4px; border-radius: 10px; font-size: 11.5px; font-weight: 800; color: #9fb3d9; background: #1a2a57; border: 1px solid rgba(159, 214, 255, 0.25); }
.sp-col.on .sp-lvn span { color: #0d1f45; background: linear-gradient(180deg, #ffffff, #bfe6ff); border-color: #ffffff; }
.sp-col.now .sp-lvn span { color: #0d1f45; background: #fff; border-color: var(--sp-gold); box-shadow: 0 0 0 2px rgba(255, 201, 74, 0.6), 0 0 10px #fff; }
.sp-tip { margin: 2px 14px 12px; font-size: 12px; color: #9fb3d9; }
.sp-fx .sp-p { animation: sp-flash 1.2s ease-out 2; }
@keyframes sp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 239, 255, 0.3); } 50% { box-shadow: 0 0 12px 2px rgba(214, 239, 255, 0.55); } }
.sp-p.sp-can { animation-name: sp-glowp; }
@keyframes sp-glowp { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 74, 0.35); } 50% { box-shadow: 0 0 12px 2px rgba(255, 201, 74, 0.6); } }
@keyframes sp-flash { 0% { filter: brightness(2); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .sp-can, .sp-fx .sp-p { animation: none !important; } }
html.gfx-low .sp-can { animation: none; }
@media (max-width: 760px) {
	.sp-head { flex-wrap: wrap; gap: 10px 12px; }
	.sp-acts { flex-direction: row; width: 100%; min-width: 0; }
	.sp-acts > * { flex: 1 1 auto; min-width: 0; }
	#win-season .sp-buy, #win-season .sp-all { padding: 0 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sp-crest { display: none; }
	.sp-daily { flex-wrap: wrap; margin: 8px 8px 0; }
	#win-season .sp-dget, .sp-dok { width: 100%; text-align: center; }
	.sp-board { margin-left: 8px; }
	.sp-tabs { width: 48px; }
	.sp-tip { margin: 2px 10px 10px; }
}
html.mhud .win.win-season { --wk: max(var(--uik, 1), 0.85); transform: scale(max(var(--uik, 1), 0.85)); max-height: calc((100% - 88px - var(--mh-wb)) / max(var(--uik, 1), 0.85)) !important; }
