/* v0.9.15 pages beside the hub (src/ui/menus15.js): Boards, Events, Season; the event tour (src/ui/hubTour.js); timed rewards in the
   garage. Same look as the hub: dark glass cards, one .primary.big in the footer, the body scrolls. */
.screen.m15 { background: linear-gradient(90deg, rgba(4,6,11,0.9) 0%, rgba(4,6,11,0.8) 100%); }
.m15-wrap { position: absolute; inset: var(--bar-h) 0 0 0; display: flex; flex-direction: column; min-height: 0;
  padding: 0 max(clamp(14px, 3vw, 40px), calc((100% - 1180px) / 2)); }
.m15-head { display: flex; align-items: center; gap: 12px 16px; flex: none; padding: clamp(6px, 1.4vh, 14px) 0 clamp(4px, 1vh, 10px); }
.m15-head .back { flex: none; align-self: center; }
.m15-t { min-width: 0; flex: 1; display: grid; }
.m15-t h1 { font-size: clamp(22px, 4.4vh, 34px); margin: 0; line-height: 1.05; }
.m15-right { display: flex; align-items: center; gap: 10px; flex: none; }
.m15-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); padding: 2px 4px 10px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.m15-body > * { flex: none; }
.m15-foot { flex: none; padding: clamp(6px, 1.2vh, 12px) 0 clamp(8px, 1.6vh, 16px); border-top: 1px solid var(--line); display: flex; }
.m15-foot .primary.big { width: 100%; max-width: 560px; margin: 0 auto; font-size: clamp(16px, 2.8vh, 22px); padding: clamp(8px, 1.5vh, 15px) 20px; }
.m15-foot .primary.big svg { width: 1em; height: 1em; }
.m15-card { background: rgba(10,13,19,0.78); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(8px, 1.4vh, 14px) 14px; backdrop-filter: blur(8px); }
.m15-sec { margin: 4px 0 0; font: 800 13px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-2); display: flex; gap: 8px; align-items: baseline; }
.m15-sec.first { margin-top: 0; }
.m15-sec .hb-cd { letter-spacing: 0; text-transform: none; }

/* tabs */
.m15-tabs, .m15-subs { display: flex; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex: none; overflow-x: auto; scrollbar-width: none; }
.m15-tabs::-webkit-scrollbar, .m15-subs::-webkit-scrollbar { display: none; }
.m15-tabs button, .m15-subs button { flex: 1 0 auto; background: none; border: 0; border-radius: 9px; padding: clamp(6px, 1.2vh, 9px) 12px; font: 700 13px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.m15-tabs button:hover, .m15-subs button:hover { color: #fff; }
.m15-tabs button.on, .m15-subs button.on { background: var(--surface-hi); color: #fff; box-shadow: inset 0 -2px 0 var(--acc); }
.m15-subs { align-self: flex-start; }
.m15-subs button { padding: 5px 12px; font-size: 12px; }

/* boards */
.m15-board { max-width: 760px; width: 100%; align-self: center; display: grid; gap: 6px; }
.mb-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mb-h > div > b { font: 800 18px var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
.mb-h small { display: block; color: var(--dim); font-size: 12px; }
.mb-you { margin: 0; font-size: 14px; color: var(--txt-2); } .mb-you b { color: var(--acc); font-size: 15px; }
.m15-off { margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(255,204,0,0.08); border: 1px solid var(--acc-line); font-size: 13px; font-weight: 700; color: #ffe38a; }
.m15-off.dim { background: none; border-color: var(--line); color: var(--dim); }
.m15-lb li { grid-template-columns: 34px minmax(0, 1fr) auto auto; padding: 4px 9px; }
.m15-lb .gh-btn { padding: 3px 9px; font-size: 12px; }

/* events */
.m15-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.m15-main, .m15-side { display: grid; gap: clamp(6px, 1.1vh, 10px); min-width: 0; align-content: start; }
.m15-ev { background: rgba(10,13,19,0.78); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(8px, 1.3vh, 12px) 12px; display: grid; gap: 7px; backdrop-filter: blur(8px); }
.m15-ev.gold { border-color: rgba(245,197,24,0.55); }
.m15-ev.closed { opacity: 0.85; }
.me-top { display: flex; align-items: center; gap: 10px; }
.me-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.me-ic svg { width: 22px; height: 22px; }
.me-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.me-t b { font: 800 17px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }
.me-t small { color: var(--dim); font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-t .flagchip { width: 20px; height: 13px; }
.me-act { display: grid; justify-items: end; gap: 2px; flex: none; }
.me-rank { color: var(--txt-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.m15-lad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.m15-lad li { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); color: var(--dim); font-size: 11.5px; line-height: 1.25; min-width: 0; }
.m15-lad li svg { width: 18px; height: 18px; flex: none; opacity: 0.35; }
.m15-lad li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m15-lad li.won { color: #e6eaf0; border-color: var(--line-2); background: rgba(255,255,255,0.06); } .m15-lad li.won svg { opacity: 1; }
.me-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.me-go { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.me-go svg { width: 13px; height: 13px; }
.m15-main > .wide { justify-self: stretch; }
.m15-cup .mc-h { display: flex; align-items: baseline; gap: 8px; } .mc-h .kick { flex: 1; }
.mc-pts { margin: 4px 0 6px; color: var(--txt-2); font-size: 13px; } .mc-pts b { font: 800 30px var(--f-display); color: #fff; margin-right: 4px; }
.mc-ms { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 4px; }
.mc-ms li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; padding: 4px 8px 4px 6px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid transparent; }
.mc-ms li.next { border-color: rgba(56,189,248,0.45); }
.mc-ms .ck { width: 30px; height: 26px; border-radius: 13px; display: grid; place-items: center; font: 800 12px var(--f-display); color: var(--dim); background: rgba(255,255,255,0.06); }
.mc-ms .ck svg { width: 15px; height: 15px; }
.mc-ms li.got .ck { background: #1e7a46; color: #fff; }
.mc-ms li b { display: block; font-size: 13px; } .mc-ms li small { color: var(--dim); font-size: 11.5px; }
.mc-ms li.got b { color: #9ff0bd; }

/* season track */
.ss-top { display: grid; gap: 7px; }
.ss-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ss-h > div > b { font: 800 19px var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; } .ss-h small { display: block; color: var(--dim); font-size: 12px; }
.ss-next { margin: 0; font-size: 13px; color: var(--txt-2); } .ss-next b { color: #fff; }
.ss-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.sc { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; gap: 3px; padding: 6px 3px 7px; border-radius: 10px; background: rgba(10,13,19,0.78); border: 1px solid var(--line); text-align: center; min-width: 0; }
.sc em { font: 800 12px var(--f-display); font-style: normal; color: var(--dim); letter-spacing: 0.08em; }
.sc small { font-size: 11px; line-height: 1.2; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.sc .pv { width: 36px; height: 36px; } .sc .pv-icon svg { width: 22px; height: 22px; }
.sc-cr { display: inline-flex; align-items: center; gap: 3px; height: 36px; } .sc-cr svg { width: 18px; height: 18px; } .sc-cr b { font: 800 14px var(--f-display); color: #f5c542; }
.sc.ms { background: linear-gradient(170deg, rgba(255,204,0,0.1), rgba(10,13,19,0.8)); border-color: var(--acc-line); }
.sc.ms small { color: var(--txt-2); font-weight: 700; }
.sc.lit { border-color: rgba(110,231,160,0.6); box-shadow: 0 0 12px rgba(110,231,160,0.18); } .sc.lit em { color: #6ee7a0; }
.sc.lit:not(.ms) { background: rgba(30,122,70,0.2); }
.sc.next { outline: 2px solid var(--acc); outline-offset: 1px; }
.sc-ok { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: #1e7a46; color: #fff; display: grid; place-items: center; }
.sc-ok svg { width: 10px; height: 10px; stroke-width: 3; }
.ss-note, .ss-last { margin: 0; font-size: 12.5px; color: var(--txt-2); } .ss-last.dim { color: var(--dim); }

/* garage: timed rewards */
.timed-sec { display: grid; gap: 6px; }
.timed-sec h3 { margin: 0; font: 800 13px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-2); }
.timed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timed-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.timed-list li.worn { border-color: var(--acc-line); background: rgba(255,204,0,0.06); }
.timed-list .pv { width: 40px; height: 40px; }
.timed-list b { font-size: 14px; display: block; } .timed-list small { color: #aeb6c3; font-size: 12px; }
.timed-list .left { color: var(--acc); font-weight: 800; }
.timed-list button { padding: 6px 12px; font-size: 13px; }
.item .reward-tag { color: var(--acc); font-weight: 800; }
@media (max-width: 640px) { .timed-list { grid-template-columns: 1fr; } }

/* the event tour on the hub */
.htour { position: fixed; inset: 0; z-index: 60; opacity: 0; transition: opacity .25s ease; }
.htour.on { opacity: 1; }
.htour .tour-dim { position: absolute; inset: 0; }
.htour-card { position: absolute; width: min(300px, calc(100vw - 24px)); background: #fff; color: #111; border-radius: 12px; padding: 10px 14px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: grid; gap: 6px; }
.htour-card small { font: 800 11px var(--f-display); letter-spacing: 0.16em; color: #8a6a00; }
.htour-card b { font-size: 15px; line-height: 1.3; font-weight: 800; }
.htour-card .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 2px; }
.htour-card .primary { padding: 7px 18px; font-size: 14px; }
.htour-card .skip { background: none; border: 0; color: #4b5563; font-weight: 700; font-size: 12.5px; text-decoration: underline; }
.htour-card .dots { display: flex; gap: 5px; } .htour-card .dots i { width: 7px; height: 7px; border-radius: 50%; background: #cbd0d8; } .htour-card .dots i.on { background: #111; }

/* the top bar's season pill (wide screens only: the hub's season card has the link too) */
.tb-season { display: none; align-items: center; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(127,224,214,0.45); background: rgba(127,224,214,0.08); color: #9be9e0; font: 700 12.5px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.tb-season:hover { background: rgba(127,224,214,0.16); }
@media (min-width: 1180px) { .tb-season { display: inline-flex; } }

@media (max-width: 860px) {
  .m15-cols { grid-template-columns: minmax(0, 1fr); }
  .ss-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) and (min-height: 640px) { .m15-side { order: -1; } }
@media (max-height: 520px) {
  .m15-head { padding: 4px 0 3px; }
  .m15-t .kick { display: none; }
  .m15-t h1 { font-size: 22px; }
  .m15-lad li span { display: none; }
  .m15-lad li { justify-content: center; }
  .ss-track { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
  .sc { padding: 3px 2px 4px; gap: 1px; } .sc .pv, .sc-cr { width: 28px; height: 28px; } .sc .pv-icon svg { width: 18px; height: 18px; }
  .sc small { font-size: 11px; -webkit-line-clamp: 2; }
  .ss-note, .ss-last { font-size: 11.5px; }
  .m15-foot { padding: 5px 0 7px; } .m15-foot .primary.big { padding: 8px 18px; font-size: 16px; }
}
