/* FIVE PK - Missioni + Stagione + PKO (13/10/2026) */
.ms-widget { margin: 0 0 18px; }
.ms-widget-open { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid rgba(226,177,74,.45);
  border-radius: 16px; background: linear-gradient(110deg, #141518 0%, #1b1c20 55%, #3a0f15 100%); color: #f3efe4; text-align: left; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.ms-widget-open:hover { border-color: #e2b14a; }
.ms-tier { display: inline-flex; align-items: baseline; justify-content: center; min-width: 58px; height: 58px; border-radius: 50%; padding-top: 14px; box-sizing: border-box;
  background: radial-gradient(circle at 35% 30%, #f7d985, #e2b14a 55%, #a8781f); color: #1a1408; font-weight: 800; }
.ms-tier b { font-size: 22px; } .ms-tier small { font-size: 11px; opacity: .75; }
.ms-tier.is-big { min-width: 84px; height: 84px; padding-top: 22px; } .ms-tier.is-big b { font-size: 32px; }
.ms-widget-main { display: grid; gap: 4px; min-width: 0; } .ms-widget-main strong { font-size: 16px; } .ms-widget-main > span { font-size: 13px; color: #c9c2b0; }
.ms-widget-side { display: grid; gap: 2px; font-size: 13px; color: #e9e3d4; } .ms-widget-side small { color: #b5ad9a; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-cta { padding: 8px 14px; border-radius: 999px; background: #c8242f; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ms-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.ms-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a8781f, #e2b14a, #f7d985); }
@media (max-width: 700px) { .ms-widget-open { grid-template-columns: auto 1fr; } .ms-widget-side { grid-column: 1 / -1; } .ms-cta { grid-column: 1 / -1; text-align: center; } }

.ms-dialog { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(4,6,8,.72); padding: 16px; }
.ms-dialog[hidden] { display: none; }
.ms-sheet { width: min(920px, 100%); max-height: min(88vh, 900px); display: grid; grid-template-rows: auto auto 1fr; border-radius: 20px; overflow: hidden;
  background: #121316; color: #efeadd; border: 1px solid rgba(226,177,74,.4); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ms-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; background: linear-gradient(110deg, #17181c, #3a0f15); }
.ms-head h2 { margin: 0; font-size: 24px; } .ms-eyebrow { margin: 0; color: #e2b14a; font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.ms-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 24px; cursor: pointer; }
.ms-tabs { display: flex; gap: 6px; padding: 8px 22px 0; background: #3a0f1500; border-bottom: 1px solid rgba(255,255,255,.08); }
.ms-tabs button { border: 0; background: none; color: #b9b2a1; padding: 10px 14px; font-weight: 700; border-bottom: 3px solid transparent; cursor: pointer; }
.ms-tabs button.is-active { color: #fff; border-color: #e2b14a; }
.ms-body { overflow: auto; padding: 16px 22px 24px; } .ms-body h3 { margin: 18px 0 10px; font-size: 15px; color: #e2b14a; text-transform: uppercase; letter-spacing: .06em; }
.ms-note { margin: 0 0 6px; font-size: 13px; color: #b9b2a1; }
.ms-missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ms-mission { padding: 12px 14px; border-radius: 14px; background: #1b1c20; border: 1px solid rgba(255,255,255,.07); display: grid; gap: 8px; }
.ms-mission.is-done { border-color: rgba(45,226,230,.55); background: linear-gradient(135deg, #151b33, #1b1c20); }
.ms-mission-top, .ms-mission-foot { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .ms-mission-foot small { color: #8f8879; }
.ms-xp { color: #f7d985; font-weight: 800; font-size: 13px; white-space: nowrap; }
.ms-season-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; } .ms-season-head > div { display: grid; gap: 6px; flex: 1; } .ms-season-head span { font-size: 13px; color: #c9c2b0; }
.ms-rewards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ms-reward { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border-radius: 14px; background: #1b1c20; border: 1px solid rgba(255,255,255,.07); text-align: center; opacity: .62; }
.ms-reward.is-unlocked { opacity: 1; border-color: rgba(226,177,74,.6); } .ms-reward.is-next { opacity: .9; border-style: dashed; border-color: #e2b14a; }
.ms-reward img { width: 72px; height: 72px; object-fit: contain; } .ms-reward-name { font-size: 12px; font-weight: 700; } .ms-reward small { font-size: 11px; color: #9a9383; }
.ms-reward-tier { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 800; color: #e2b14a; }
.ms-icon { width: 72px; height: 72px; display: grid; place-items: center; font-size: 34px; border-radius: 50%; background: radial-gradient(circle, #3a0f15, #121316); color: #f7d985; border: 2px solid #e2b14a; }
.ms-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pick { display: grid; justify-items: center; gap: 4px; width: 104px; padding: 8px; border-radius: 12px; border: 2px solid rgba(255,255,255,.08); background: #1b1c20; color: #efeadd; cursor: pointer; font-size: 11px; }
.ms-pick img { width: 64px; height: 64px; object-fit: contain; } .ms-pick.is-selected { border-color: #e2b14a; box-shadow: 0 0 0 2px rgba(226,177,74,.25); } .ms-pick:disabled { opacity: .4; cursor: not-allowed; }
.cx-season-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; } .cx-season-row select { max-width: 60%; }

/* Season cosmetics (own view). The season felt wins over the basic felt colour. */
html[data-season-felt] .felt-ring { background-size: cover !important; background-position: center !important; }
html[data-season-felt="f1"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #1a2142 0%, #0b0f1e 100%) padding-box, linear-gradient(180deg, #55595e, #232528 60%, #151618) border-box !important; }
html[data-season-felt="f2"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #9b7a2c 0%, #4a3610 100%) padding-box, linear-gradient(180deg, #55595e, #232528 60%, #151618) border-box !important; }
html[data-season-felt="f3"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #24345c 0%, #0b1226 100%) padding-box, linear-gradient(180deg, #55595e, #232528 60%, #151618) border-box !important; }
html[data-season-felt="f4"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #8a1f2b 0%, #3d0910 100%) padding-box, linear-gradient(180deg, #55595e, #232528 60%, #151618) border-box !important; }
html[data-season-felt="f5"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #4a5058 0%, #1c1f23 100%) padding-box, linear-gradient(180deg, #55595e, #232528 60%, #151618) border-box !important; }
html[data-season-felt="f6"] .felt-ring { background: radial-gradient(ellipse at 50% 48%, #6a1a22 0%, #111214 100%) padding-box, linear-gradient(180deg, #e2b14a, #a8781f 30%, #232528 70%, #151618) border-box !important; }
html[data-season-back="b1"] .card-back { background: url("./assets/season/back-b1.webp") center / cover !important; }
html[data-season-back="b2"] .card-back { background: url("./assets/season/back-b2.webp") center / cover !important; }
html[data-season-back="b3"] .card-back { background: url("./assets/season/back-b3.webp") center / cover !important; }
html[data-season-back="b4"] .card-back { background: url("./assets/season/back-b4.webp") center / cover !important; }
html[data-season-back="b5"] .card-back { background: url("./assets/season/back-b5.webp") center / cover !important; }
html[data-season-back="b6"] .card-back { background: url("./assets/season/back-b6.webp") center / cover !important; }
html[data-season-back] .card-back { border-color: #fff !important; }
html[data-season-avatar] .seat.is-hero .seat-avatar { background: var(--season-avatar) center / cover no-repeat !important; }
html[data-season-avatar] .seat.is-hero .seat-avatar > * { opacity: 0 !important; }

/* PKO bounty tag on each seat */
.pko-bounty { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 6; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 800; color: #1a1408; background: linear-gradient(180deg, #f7d985, #e2b14a); border: 1px solid #a8781f; box-shadow: 0 2px 6px rgba(0,0,0,.45); pointer-events: auto; }
.seat.is-lower-half .pko-bounty { bottom: auto; top: -14px; }
@media (max-width: 700px) { .pko-bounty { font-size: 9px; padding: 1px 5px; bottom: -11px; } .seat.is-lower-half .pko-bounty { top: -11px; } }

/* MISSIONI 2.0 (hud-missions-20261018): level, character avatars, cash reward chip, unlock toast */
.ms-level { flex-direction: column; align-items: center; padding-top: 8px; gap: 0; } .ms-level small { font-size: 9px; letter-spacing: .1em; } .ms-level b { line-height: 1; }
.ms-tier.ms-level.is-big { padding-top: 14px; }
.ms-cash { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f5c54b; color: #1b1200; font-weight: 800; }
.ms-cash-state { font-size: 12px; color: #2de2e6; } .ms-cash-state.is-non_disponibile { color: #b5ad9a; }
.ms-char img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #0d0e10; border: 2px solid rgba(226,177,74,.4); }
.ms-unlock { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2200; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(110deg, #17181c, #3a0f15); color: #f3efe4; border: 1px solid #e2b14a; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.ms-unlock[hidden] { display: none; } .ms-unlock img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #e2b14a; }
.ms-unlock div { display: grid; } .ms-unlock span { font-size: 13px; color: #d8d1c0; }
.ms-unlock button { border: 0; border-radius: 999px; padding: 8px 14px; background: #c8242f; color: #fff; font-weight: 800; cursor: pointer; }
/* 16 cartoon avatars (19/10/2026): square crops shown round */
.ms-pick img[src*="/characters/"], .ms-reward img[src*="/characters/"], .ms-unlock img { border-radius: 50%; object-fit: cover; }
html[data-season-avatar^="c"] .seat.is-hero .seat-avatar { border-radius: 50%; background-size: cover !important; }
