/* ======================================================= cosmetics shop (js/cosmetics.js) */
.dia { width: 16px; height: 16px; flex: none; vertical-align: -3px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.coin { outline: 2px solid rgba(255, 246, 200, .55); outline-offset: -5px; font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(#ffe36e, #e9a21a); color: #5a3a00; font-size: 11px; font-weight: 900; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }

/* ---------- HUD pill next to the money ---------- */
#cos-hud { display: flex; gap: 6px; align-self: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.cos-dia, .cos-lure { display: flex; align-items: center; gap: 4px; background: linear-gradient(#1d3f86, #12264d); border: 2px solid var(--border-hi); border-radius: 14px; padding: 2px 10px 2px 6px; font-size: 13px; font-weight: 900; box-shadow: 0 0 0 2px #0a1630; white-space: nowrap; }
.cos-dia:hover, .cos-lure:hover { border-color: #fff; }
.cos-lure { color: var(--gold); font-size: 12px; }
.cos-lure[hidden] { display: none; }
.cos-lure img { width: 18px; height: 18px; }

/* ---------- the Mall (js/cosmetics.js, js/malltabs.js): head (segments) · try-on stage · scrolling view · bottom tab bar ---------- */
.shop-panel { position: relative; }
.shop-panel .modal-body, html.touch .shop-panel .modal-body { display: flex; padding: 0; overflow: hidden; min-height: 0; }
.ml {
  flex: 1; min-width: 0; min-height: 0; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "scroll" "tabs";
}
.ml.try { grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); grid-template-areas: "head head" "stage scroll" "tabs tabs"; }
.ml-head { grid-area: head; padding: 12px 16px 0; }
.ml-head[hidden] { display: none; }
.ml-scroll { grid-area: scroll; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-top: 60px; }
.ml-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 12px 16px 22px; }
.ml-content.enter { animation: ml-in .22s var(--ease); }
@keyframes ml-in { from { opacity: 0; transform: translateY(6px); } }
.ml-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.ml-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ff5f6b; box-shadow: 0 0 0 2px #14214a; }

/* bottom tab bar: five text tabs, a small line glyph each, gold when on */
.ml-tabbar { grid-area: tabs; position: relative; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  padding: 6px 10px calc(6px + var(--sab, 0px)); border-top: 1px solid var(--line); background: rgba(8, 14, 36, .82); }
.ml-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 52px; padding: 4px 2px;
  border: 0; border-radius: 12px; background: none; color: var(--muted); font: 800 12px/1.1 Nunito, sans-serif; letter-spacing: .2px; transition: color var(--t), background var(--t); }
.ml-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-glyph { width: 22px; height: 22px; flex: none; }
.ml-tab.on { color: var(--gold); }
.ml-tab.on::before { content: ''; position: absolute; top: -7px; left: 32%; right: 32%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
@media (hover: hover) { .ml-tab:not(.on):hover { color: var(--text); background: var(--surface); } }
.ml-tab .ml-dot { top: 5px; left: calc(50% + 8px); }
@media (min-width: 761px) and (min-height: 481px) {
  .ml-tab { flex-direction: row; gap: 8px; min-height: 46px; font-size: 14px; }
  .ml-glyph { width: 20px; height: 20px; }
  .ml-tab .ml-dot { top: 8px; left: auto; right: 14%; }
  .ml-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* segmented control (Apparel: Trainer · Pokémon · Mounts; Passes) */
.ml-seg { display: flex; gap: 3px; padding: 3px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.ml-seg button { position: relative; flex: 1; min-width: 0; min-height: 38px; padding: 0 8px; border: 0; border-radius: 11px; background: none; color: var(--muted);
  font: 900 14px/1 Nunito, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background var(--t), color var(--t); }
.ml-seg button.on { background: linear-gradient(#2c4385, #22356b); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1); }
@media (hover: hover) { .ml-seg button:not(.on):hover { color: var(--text); } }
.ml-seg .ml-dot { top: 7px; right: 10px; }

/* filter chips: stay at the top of the view while it scrolls */
.ml-chips { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -12px -16px -4px; padding: 12px 16px 8px;
  background: rgba(19, 31, 66, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  background: rgba(255, 255, 255, .045); color: var(--muted); font: 800 13px Nunito, sans-serif; transition: background var(--t), color var(--t), border-color var(--t); }
.ml-chips::-webkit-scrollbar { display: none; }
.ml-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .045); color: var(--muted); font: 800 13px Nunito, sans-serif; transition: background var(--t), color var(--t), border-color var(--t); }
.ml-chip.on { background: var(--text); border-color: var(--text); color: #14204a; }
.ml-chip .ml-dot { top: 2px; right: 2px; }
.ml-chip small { font-size: 11px; font-weight: 900; opacity: .7; }
.ml-chip.on small { opacity: .6; }
@media (hover: hover) { .ml-chip:not(.on):hover { color: var(--text); border-color: var(--border-hi); } }

/* section headings inside a view */
.ml-sec { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 6px 2px 0; font-size: 14px; color: var(--gold); }
.ml-sec small { color: var(--muted); font-size: 12px; font-weight: 800; }
.ml .ml-sec { align-items: center; margin: 8px 2px 0; font: 900 15px Nunito, sans-serif; color: var(--text); }
.ml .ml-sec small { margin-left: auto; }
.ml .ml-grid > .ml-sec:first-child { margin-top: 0; }
.ml-tagx { font-style: normal; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: rgba(62, 224, 122, .16); color: #8ff0b2; }
.ml-tagx.lead { background: var(--gold); color: #3a2400; }
.ml-block { display: flex; flex-direction: column; gap: 10px; }
.ml-block + .ml-block { padding-top: 6px; border-top: 1px solid var(--line); }
.ml-sec.ml-blk { margin-top: 2px; font-size: 16px; }
/* Items are icons: smaller tiles, a shorter picture */
.ml[data-tab="items"] .ml-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.ml[data-tab="items"] .ml-pic { aspect-ratio: 5 / 4; }
/* Pokémon: a species tile before the pieces made for it (one grid that flows) */
.ml-spc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 8px 6px; border-radius: 16px; text-align: center;
  border: 1px dashed var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.ml-spc.mine { border-style: solid; border-color: rgba(143, 240, 178, .4); background: linear-gradient(180deg, rgba(62, 224, 122, .1), transparent); }
.ml-spc.lead { border-style: solid; border-color: rgba(255, 207, 74, .6); background: linear-gradient(180deg, rgba(255, 207, 74, .14), transparent); }
.ml-spc-pic { width: 72%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.ml-spc-pic img { width: 100%; height: 100%; object-fit: contain; }
.ml-spc b { font-size: 14px; line-height: 1.15; overflow-wrap: anywhere; }
.ml-spc small { color: var(--muted); font-size: 11px; font-weight: 800; }
.ml-spc.mine small { color: #8ff0b2; }
.ml-spc.lead small { color: var(--gold); }
.ml-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 12px; border-radius: 16px; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); grid-column: 1 / -1; }
.ml-empty b { color: var(--text); font-size: 15px; }
.ml-empty span { font-size: 13px; font-weight: 700; max-width: 40ch; }
.ml-note b { color: var(--text); }

/* 3D try-on (Apparel): the stage and what it shows with its next step */
.ml-stagebox { grid-area: stage; position: relative; display: flex; flex-direction: column; min-height: 0; margin: 12px 0 12px 16px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(79, 195, 255, .2), transparent 70%), linear-gradient(#1b2d62, #0f1a3d); }
.ml-stagebox[hidden] { display: none; }
.ml-stage { position: relative; flex: 1; min-height: 0; cursor: grab; }
.ml-stage.grab { cursor: grabbing; }
.ml-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ml-stage-load { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ml-stage-load[hidden] { display: none; }
.ml-tryinfo { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; background: rgba(6, 12, 32, .6); border-top: 1px solid var(--line); }
.ml-ti-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ml-ti-t b { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-ti-t small { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-ti-a { display: flex; align-items: center; gap: 6px; flex: none; }
.ml-ti-a .btn { min-height: 40px; }
.ml-ti-a .ml-st { padding: 0 12px; min-height: 40px; }
.ml-ti-x { position: absolute; top: -40px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(6, 12, 32, .6); color: var(--text); }
.ml-ti-x .ic { width: 16px; height: 16px; }
.ml-buy-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(#ffd95e, #f2b23a);
  color: #3a2400; font: 900 16px Nunito, sans-serif; box-shadow: 0 2px 0 #b8720c; }
.ml-buy-btn .dia { width: 17px; height: 17px; }
.ml-buy-btn s { font-size: 11px; opacity: .6; }
@media (hover: hover) { .ml-buy-btn:hover { filter: brightness(1.06); } }
.ml-card.sel { border-color: #55d6ff; box-shadow: 0 0 0 2px rgba(85, 214, 255, .45); }

/* Featured: highlights carousel */
.ml-hero { position: relative; }
.ml-hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.ml-hero-track::-webkit-scrollbar { display: none; }
.ml-slide { --a: #ff5f6b; position: relative; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: center; gap: 8px; min-width: 0; min-height: 176px;
  padding: 18px 10px 18px 20px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); color: var(--text); font: inherit; text-align: left; overflow: hidden;
  background: radial-gradient(circle at 78% 50%, color-mix(in srgb, var(--a) 45%, transparent), transparent 58%), linear-gradient(125deg, var(--b1, #3c2066), var(--b2, #1c2560)); }
.ml-slide.s-deals { --a: #ff5f6b; --b1: #4b1d5c; --b2: #1f2460; }
.ml-slide.s-season { --a: #b27cff; --b1: #2b2170; --b2: #142a66; }
.ml-slide.s-new { --a: #3ee07a; --b1: #11465a; --b2: #172a5e; }
.ml-slide.s-gems { --a: #4fc3ff; --b1: #12417e; --b2: #1a2660; }
.ml-slide.s-bundle { --a: #ffcf4a; --b1: #5a2a8a; --b2: #1d2a6e; }
.ml-slide.s-bundle .ml-sl-sub { display: inline-flex; align-items: center; gap: 4px; }
.ml-slide.s-bundle .ml-sl-sub .dia { width: 16px; height: 16px; }
.ml-slide.s-bundle .ml-sl-cta { background: linear-gradient(#ffd95e, #f2b23a); color: #3a2400; font-size: 16px; padding: 8px 12px 8px 16px; }
.ml-sl-pic.big { width: 100%; max-width: 172px; }
.ml-slide.s-bundle .ml-sl-art { height: auto; min-height: 124px; }
.ml-sl-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ml-kick { font: 900 11px Nunito, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.ml-sl-t > b { font: 400 25px/1.08 'Lilita One', Nunito, sans-serif; letter-spacing: .4px; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.ml-sl-sub { color: #dbe3fb; font-size: 13px; font-weight: 800; }
.ml-sl-sub i { font-style: normal; color: var(--gold); font-variant-numeric: tabular-nums; }
.ml-sl-sub b { color: #8ff0b2; }
.ml-slide .ml-bar { width: min(220px, 100%); height: 7px; }
.ml-sl-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 7px 10px 7px 14px; border-radius: 999px; background: #fff; color: #14204a; font: 900 13px Nunito, sans-serif; }
.ml-sl-cta .ic { width: 16px; height: 16px; }
.ml-sl-art { position: relative; height: 150px; display: grid; place-items: center; }
.ml-sl-pic { display: grid; place-items: center; width: 140px; aspect-ratio: 1; border-radius: 18px; }
.ml-sl-pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.ml-sl-stack { position: relative; width: 100%; height: 100%; }
.ml-sl-stack .ml-sl-pic { position: absolute; width: 58%; }
.ml-sl-stack .ml-sl-pic:nth-child(1) { left: 21%; top: 8%; z-index: 2; width: 66%; }
.ml-sl-stack .ml-sl-pic:nth-child(2) { left: -4%; top: 28%; opacity: .9; }
.ml-sl-stack .ml-sl-pic:nth-child(3) { right: -6%; top: 26%; opacity: .9; }
.ml-sl-icon { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.ml-sl-gem .dia { width: 112px; height: 112px; filter: drop-shadow(0 10px 18px rgba(0, 120, 255, .45)); }
@media (hover: hover) { .ml-slide:hover .ml-sl-cta { background: var(--gold); } }
.ml-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.ml-dots button { width: 22px; height: 18px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.ml-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: width var(--t), background var(--t); }
.ml-dots button.on::before { width: 18px; background: var(--gold); }
.ml-strips { display: flex; flex-direction: column; gap: 8px; }

/* Featured: rows that scroll sideways */
.ml-rowsec { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 8px; }
.ml-rowhead { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.ml-rowhead h4 { margin: 0; font: 900 16px Nunito, sans-serif; color: var(--text); }
.ml-cd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 95, 107, .16); color: #ffb3b9; font-size: 12px; font-weight: 900; }
.ml-cd .ic { width: 14px; height: 14px; }
.ml-cd i { font-style: normal; font-variant-numeric: tabular-nums; }
.ml-see { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 4px 0 10px; border: 0; border-radius: 10px; background: none; color: var(--accent-2); font: 900 13px Nunito, sans-serif; }
.ml-see .ic { width: 16px; height: 16px; }
@media (hover: hover) { .ml-see:hover { background: var(--surface); color: var(--text); } }
.ml-hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  margin: -4px -16px 0; padding: 4px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
.ml-hrow::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .ml-hrow { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; } }
.ml-hrow > .ml-card { scroll-snap-align: start; }

/* skeletons while the first catalogue loads, and on pictures still rendering */
.sk, .ml-card.sk .ml-pic, .ml-card.sk i, .ml-hero.sk .ml-slide, .ml-rowsec > .sk-l {
  background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 70%) !important;
  background-size: 220% 100% !important; animation: ml-shimmer 1.4s linear infinite; }
@keyframes ml-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ml-card.sk { pointer-events: none; }
.ml-card.sk::before { display: none; }
.ml-card.sk i { display: block; height: 11px; border-radius: 6px; margin: 4px 2px 0; width: 80%; }
.ml-card.sk i.s { width: 50%; }
.ml-card.sk i.sk-b { height: 34px; width: auto; margin-top: 12px; border-radius: 10px; }
.sk-l.h { display: block; width: 140px; height: 16px; border-radius: 8px; }
.ml-hero.sk .ml-slide { border: 0; }
.sp-ico.sk { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .sk, .ml-card.sk .ml-pic, .ml-card.sk i, .ml-hero.sk .ml-slide, .ml-rowsec > .sk-l, .ml-content.enter { animation: none; } }
html.reduce-motion .sk, html.reduce-motion .ml-card.sk .ml-pic, html.reduce-motion .ml-content.enter { animation: none; }

/* ---------- one card for everything sold ---------- */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; align-content: start; }
.ml-card {
  --r: #8aa0c8;
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 8px 10px; min-width: 0;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: transform var(--t) var(--ease), border-color var(--t), background var(--t);
}
.ml-card::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--r); opacity: .85; }
.ml-card.r-rare { --r: #4fc3ff; } .ml-card.r-epic { --r: #b27cff; } .ml-card.r-legendary { --r: #ffcf4a; }
@media (hover: hover) { .ml-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--r) 60%, transparent); background: rgba(255, 255, 255, .07); } }
.ml-card:focus-visible { outline: none; box-shadow: var(--focus); }
.ml-card.on { border-color: rgba(62, 224, 122, .55); }
.ml-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 6px;
  background: radial-gradient(ellipse 46% 13% at 50% 88%, rgba(0, 0, 0, .3), transparent 70%), radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--r) 26%, transparent), transparent 72%), rgba(0, 0, 0, .14); }
.ml-pic img { width: 100%; height: 100%; object-fit: contain; }
.ml-pic.icon img { width: 66%; height: 66%; }
.ml-nm { font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-ty { color: var(--muted); font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-ty.fit { color: #8ff0b2; }
.ml-ty .ic { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.ml-foot { margin-top: auto; padding-top: 8px; display: flex; }
.ml-pr { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; border-radius: 10px;
  background: linear-gradient(#ffd95e, #f2b23a); color: #3a2400; font-weight: 900; font-size: 15px; }
.ml-pr .dia { width: 17px; height: 17px; }
.ml-pr s { opacity: .6; font-size: 11px; }
.ml-st { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; border-radius: 10px; font-weight: 900; font-size: 13px; }
.ml-st .ic { width: 16px; height: 16px; }
.ml-st.own { background: rgba(255, 255, 255, .08); color: var(--muted); }
.ml-st.on { background: rgba(62, 224, 122, .16); color: #8ff0b2; }
.ml-st.lock { background: rgba(178, 124, 255, .16); color: #d4bdff; }
.ml-up-a .ml-st { flex: none; padding: 0 14px; }
.ml-badge { position: absolute; top: 12px; z-index: 1; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 7px; }
.ml-badge.sale { left: 12px; background: #ff4d5e; color: #fff; }
.ml-badge.prem { left: 12px; background: linear-gradient(#ffe06e, #e9a21a); color: #3a2400; }
.ml-badge.qty { right: 12px; background: #2a7fe0; color: #fff; }
.ml-badge.live { left: 12px; top: 34px; background: #8e44c9; color: #fff; }
.ml-badge.try { left: 12px; background: #55d6ff; color: #032537; }
.ml-badge.new { left: 12px; background: #3ee07a; color: #05301a; }
/* shiny mounts: a rainbow-gold "Shiny" badge and sparkles twinkling over the picture */
.ml-badge.shiny { left: 12px; display: inline-flex; align-items: center; gap: 2px; background: linear-gradient(90deg, #ffe27a, #ff9ee0, #9fdcff); color: #2a1240; }
.ml-badge.shiny .ic { width: 11px; height: 11px; }
.ml-card.shiny .ml-pic::before, .ml-card.shiny .ml-pic::after { content: ''; position: absolute; z-index: 1; width: 14px; height: 14px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 10%, #fff6c8 12% 13%, transparent 15% 35%, #fff6c8 37% 38%, transparent 40% 60%, #fff6c8 62% 63%, transparent 65% 85%, #fff6c8 87% 88%, transparent 90%);
  border-radius: 50%; filter: drop-shadow(0 0 3px #ffe27a); animation: mlTwinkle 2.2s ease-in-out infinite; }
.ml-card.shiny .ml-pic::before { top: 14%; right: 14%; }
.ml-card.shiny .ml-pic::after { bottom: 18%; left: 16%; width: 10px; height: 10px; animation-delay: 1.1s; }
@keyframes mlTwinkle { 0%, 100% { transform: scale(.4); opacity: 0; } 45%, 55% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ml-card.shiny .ml-pic::before, .ml-card.shiny .ml-pic::after { animation: none; opacity: .9; } }
.ml-sh-fit { margin: 2px 0; font-size: 12.5px; font-weight: 800; color: #8ff0b2; }
.ml-sh-fit .ic { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }

/* ---------- progress bar, claim pill, info strips ---------- */
.ml-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.ml-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fc3ff, #b27cff); }
.ml-pill { font-style: normal; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 13px; background: #ff5f6b; color: #fff; font-weight: 900; font-size: 13px; }
.ml-daily { margin-top: 2px; }
.cs-info { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.cs-info > img { width: 32px; height: 32px; }
.cs-info > div { flex: 1; min-width: 0; }
.cs-info small { display: block; color: var(--muted); font-size: 12px; }
.cs-info i { font-style: normal; color: var(--gold); }

/* boosts strip (front page / Boosts) */
.ml-boost { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.ml-boost > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.ml-boost img { width: 36px; height: 36px; flex: none; }
.ml-boost span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-boost b { font-size: 13.5px; }
.ml-boost small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ml-boost i { font-style: normal; color: var(--gold); font-weight: 900; }
.ml-boost-on { background: linear-gradient(120deg, rgba(142, 68, 201, .35), rgba(142, 68, 201, .08)) !important; border-color: rgba(208, 140, 255, .45) !important; }

/* ---------- upgrades ---------- */
.ml-list { display: flex; flex-direction: column; gap: 8px; }
.ml-up { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.ml-up > img { width: 44px; height: 44px; }
.ml-up-t small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ml-up-t i { font-style: normal; }
.ml-up-a { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 130px; }
.ml-up-a .cs-price { margin: 0; }
.ml-up-a .btn i { font-style: normal; }

/* ---------- diamond packs: one ladder ---------- */
.ml-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ml-pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 10px 10px; border-radius: 18px; min-width: 0;
  background: linear-gradient(180deg, rgba(42, 127, 224, .2), rgba(255, 255, 255, .03)); border: 1px solid rgba(124, 200, 255, .3); color: var(--text); font: inherit; cursor: pointer;
  transition: transform var(--t) var(--ease), border-color var(--t);
}
@media (hover: hover) { .ml-pack:not(:disabled):hover { transform: translateY(-2px); border-color: #9be8ff; } }
.ml-pack:disabled { cursor: default; }
.ml-pack.pop { border-color: rgba(255, 207, 74, .7); background: linear-gradient(180deg, rgba(255, 207, 74, .2), rgba(255, 255, 255, .03)); }
.ml-pack.val { border-color: rgba(62, 224, 122, .6); background: linear-gradient(180deg, rgba(62, 224, 122, .18), rgba(255, 255, 255, .03)); }
.ml-tag { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 0 0 10px 10px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.ml-pack.pop .ml-tag { background: linear-gradient(#ffe06e, #e9a21a); color: #3a2400; }
.ml-pack.val .ml-tag { background: #2ecc71; color: #06301a; }
.ml-gems { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; height: 54px; align-content: center; width: 90%; }
.ml-gems .dia { width: 26px; height: 26px; }
.ml-pack.t4 .ml-gems .dia { width: 22px; height: 22px; }
.ml-pack.t0 .ml-gems .dia { width: 40px; height: 40px; }
.ml-pack.t1 .ml-gems .dia { width: 32px; height: 32px; }
.ml-pn { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; line-height: 1.1; }
.ml-pn .dia { width: 20px; height: 20px; }
.ml-pb { color: var(--muted); font-size: 11.5px; font-weight: 800; text-align: center; min-height: 15px; }
.ml-pb em { font-style: normal; color: #8ff0b2; }
.ml-pct { margin-bottom: 6px; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 7px; background: rgba(62, 224, 122, .2); color: #8ff0b2; }
.ml-buy { margin-top: auto; align-self: stretch; display: grid; place-items: center; min-height: 38px; border-radius: 11px; background: linear-gradient(#ffd95e, #f2b23a); color: #3a2400; font-weight: 900; font-size: 16px; }
.ml-pack:disabled .ml-buy { background: rgba(255, 255, 255, .1); color: var(--muted); }

/* ---------- detail / confirm sheet (over the whole panel) ---------- */
.ml-sheet-host { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 24, .62); animation: ml-fade .16s ease-out; }
@keyframes ml-fade { from { opacity: 0; } }
.ml-sheet {
  --r: #8aa0c8;
  position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 18px 18px 16px; border-radius: 22px; background: linear-gradient(180deg, #1b2a58, #111b3c); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: ml-up .22s var(--ease);
}
@keyframes ml-up { from { transform: translateY(16px); opacity: 0; } }
.ml-sheet.r-rare { --r: #4fc3ff; } .ml-sheet.r-epic { --r: #b27cff; } .ml-sheet.r-legendary { --r: #ffcf4a; }
.ml-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--surface); color: var(--text); }
.ml-x .ic { width: 20px; height: 20px; }
.ml-sh-pic { width: 168px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px;
  background: radial-gradient(ellipse 46% 13% at 50% 88%, rgba(0, 0, 0, .3), transparent 70%), radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--r) 30%, transparent), transparent 72%); }
.ml-sh-pic img { width: 100%; height: 100%; object-fit: contain; }
.ml-sh-pic.icon img { width: 62%; height: 62%; }
.ml-sh-pic.gems .dia { width: 50%; height: 50%; }
.ml-sh-nm { font-size: 20px; line-height: 1.2; margin-top: 2px; }
.ml-sh-ty { color: var(--muted); font-size: 12.5px; font-weight: 800; }
.ml-sh-d { margin: 6px 0 2px; font-size: 13.5px; color: #d7def5; }
.ml-sh-d:empty { display: none; }
.ml-sh-warn { margin: 2px 0; font-size: 12.5px; font-weight: 800; color: #ffd98a; }
.ml-sh-ok, .ml-sh-own { margin: 6px 0 2px; font-weight: 800; font-size: 13.5px; text-wrap: balance; }
.ml-sh-ok { color: #8ff0b2; }
.ml-sh-own { color: var(--muted); }
.ml-sh-ok .ic, .ml-sh-own .ic { width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; }
.ml-sh-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; width: 100%; margin: 8px 0 2px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); text-align: left; font-size: 13.5px; }
.ml-sh-sum span { color: var(--muted); font-weight: 700; }
.ml-sh-sum b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }
.ml-sh-sum b .dia { width: 15px; height: 15px; }
.ml-sh-sum s { opacity: .55; font-weight: 700; }
.ml-sh-sum .bad { color: #ff9aa4; }
.ml-sh-acts { display: flex; gap: 8px; width: 100%; margin-top: 10px; }
.ml-sh-acts .btn { flex: 1; min-height: 46px; font-size: 15px; }
.ml-sh-acts .btn.buy { flex: 1.6; width: auto; padding: 6px 12px; }
.ml-sh-acts .btn .dia { width: 17px; height: 17px; }
/* PayPal-style checkout button (yellow pill, two-tone wordmark, the USD price) */
.ml-sh-acts .btn.pp-btn { flex: 2.2; gap: 5px; padding: 6px 10px; white-space: nowrap; background: #ffc439; border-color: #f2ba36; color: #111; border-radius: 999px; font-weight: 800; }
.btn.pp-btn:hover:not(:disabled) { background: #f2ba36; }
.pp-word { font-style: italic; font-weight: 900; font-size: 1.08em; letter-spacing: -.2px; }
.pp-word i { font-style: inherit; }
.pp-word i:first-child { color: #003087; }
.pp-word i:last-child { color: #009cde; }
.pp-amt { padding-left: 6px; margin-left: 2px; border-left: 1px solid rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.ml-sh-sum b small { font-size: 11px; color: var(--muted); font-weight: 800; }
.ml-try { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 0; background: none; color: var(--accent-2); font: 800 13px Nunito, sans-serif; cursor: pointer; }
.ml-try .ic { width: 16px; height: 16px; }
.ml-sh-fine { margin-top: 8px; color: var(--muted); font-size: 11px; }

/* ---------- the sheet: a side panel on wide screens and phones held sideways, a bottom sheet on phones ---------- */
@media (min-width: 761px), (max-height: 480px) {
  .ml-sheet-host { place-items: stretch end; padding: 0; background: rgba(4, 8, 24, .5); }
  .ml-sheet { width: min(400px, 92%); height: 100%; max-height: none; justify-content: flex-start; border-radius: 0; border-width: 0 0 0 1px; padding: 24px 22px 18px; animation: ml-side .24s var(--ease); }
  .ml-sheet .ml-sh-acts { margin-top: auto; padding-top: 14px; }
  .ml-sh-pic { width: 200px; flex: none; }
}
@keyframes ml-side { from { transform: translateX(28px); opacity: 0; } }

/* ---------- phones (portrait) ---------- */
@media (max-width: 760px) {
  .ml-head { padding: 8px 12px 0; }
  .ml-content { padding: 10px 12px 18px; gap: 12px; }
  .ml-chips { margin: -10px -12px -2px; padding: 10px 12px 8px; }
  .ml-hrow { margin: -4px -12px 0; padding: 4px 12px 6px; scroll-padding: 0 12px; grid-auto-columns: 138px; gap: 8px; }
  .ml-grid, .ml-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ml-tabbar { padding: 4px 4px calc(4px + var(--sab, 0px)); gap: 0; }
  .ml-tab { font-size: 11.5px; min-height: 50px; }
  .ml-slide { min-height: 158px; grid-template-columns: minmax(0, 1fr) 38%; padding: 16px 6px 16px 16px; }
  .ml-sl-t > b { font-size: 21px; }
  .ml-sl-art { height: 124px; }
  .ml-sl-pic { width: 116px; }
  .ml-sl-icon { width: 92px; height: 92px; }
  .ml-sl-gem .dia { width: 92px; height: 92px; }
  /* Apparel: the stage on top, the grid under it (three across), the bar at the bottom */
  .ml.try { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "head" "stage" "scroll" "tabs"; }
  .ml-stagebox { margin: 8px 12px 0; height: clamp(200px, calc(34 * var(--udvh, 1dvh)), 320px); }
  .ml-tryinfo { min-height: 58px; padding: 8px 10px; }
  .ml.try .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  /* Items: icons, three across with a shorter picture */
  .ml[data-tab="items"] .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ml[data-tab="items"] .ml-card { padding: 6px 6px 8px; border-radius: 13px; }
  .ml[data-tab="items"] .ml-pic { aspect-ratio: 5 / 4; margin-bottom: 4px; }
  .ml[data-tab="items"] .ml-nm { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; min-height: 2.3em; }
  .ml[data-tab="items"] .ml-ty { font-size: 10.5px; }
  .ml[data-tab="items"] .ml-pr { min-height: 30px; font-size: 13px; border-radius: 8px; }
  .ml[data-tab="items"] .ml-badge { top: 8px; font-size: 9px; padding: 1px 5px; }
  .ml[data-tab="items"] .ml-card .ml-i { top: 8px; right: 8px; }
  /* diamond packs: tighter tiles */
  .ml-pack { padding: 22px 8px 8px; gap: 2px; }
  .ml-gems { height: 40px; }
  .ml-pack .ml-gems .dia { width: 22px; height: 22px; }
  .ml-pack.t0 .ml-gems .dia { width: 32px; height: 32px; }
  .ml-pack.t1 .ml-gems .dia { width: 26px; height: 26px; }
  .ml-pn { font-size: 20px; }
  .ml.try .ml-card { padding: 5px 5px 7px; border-radius: 13px; }
  .ml.try .ml-card::before { left: 10px; right: 10px; }
  .ml.try .ml-pic { margin-bottom: 3px; border-radius: 9px; }
  .ml.try .ml-nm { font-size: 12px; }
  .ml.try .ml-ty { font-size: 10.5px; }
  .ml.try .ml-with { display: none; }
  .ml-spc b { font-size: 12px; }
  .ml-spc { padding: 6px 4px; border-radius: 13px; }
  .ml.try .ml-foot { padding-top: 5px; }
  .ml.try .ml-pr, .ml.try .ml-st { min-height: 28px; font-size: 12.5px; gap: 3px; border-radius: 8px; }
  .ml.try .ml-pr .dia { width: 13px; height: 13px; }
  .ml.try .ml-pr s { display: none; }
  .ml.try .ml-st .ic { width: 13px; height: 13px; }
  .ml.try .ml-badge { top: 8px; font-size: 9px; padding: 1px 5px; }
  .ml.try .ml-badge.sale, .ml.try .ml-badge.prem, .ml.try .ml-badge.try, .ml.try .ml-badge.new, .ml.try .ml-badge.shiny { left: 8px; }
  .ml-up { grid-template-columns: 40px 1fr; }
  .ml-up > img { width: 38px; height: 38px; }
  .ml-up-a { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .ml-up-a > * { flex: 1; }
  .ml-sheet-host { place-items: end stretch; padding: 0; }
  .ml-sheet { width: 100%; max-height: calc(100% - 24px); border-radius: 22px 22px 0 0; padding: 20px 16px calc(16px + var(--sab, 0px)); }
  .ml-sheet::before { content: ''; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
  .ml-sh-pic { width: 132px; }
}
@media (max-width: 360px) {
  .ml-tab span { font-size: 10.5px; }
  .ml.try .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phones held sideways: the tabs become a rail on the left (under the thumb), the stage beside the grid ---------- */
@media (max-height: 480px) {
  .ml { grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "tabs head" "tabs scroll"; }
  .ml.try { grid-template-columns: 74px minmax(190px, 34%) minmax(0, 1fr); grid-template-areas: "tabs head head" "tabs stage scroll"; }
  .ml-tabbar { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 2px; padding: 6px 4px calc(6px + var(--sab, 0px)); border-top: 0; border-right: 1px solid var(--line); }
  .ml-tab { min-height: 0; font-size: 11px; gap: 2px; padding: 2px; }
  .ml-glyph { width: 20px; height: 20px; }
  .ml-tab.on { background: var(--surface); }
  .ml-tab.on::before { top: 22%; bottom: 22%; left: -4px; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .ml-head { padding: 8px 12px 0; }
  .ml-seg button { min-height: 34px; font-size: 13px; }
  .ml-content { padding: 10px 12px 14px; gap: 10px; }
  .ml-chips { margin: -10px -12px -2px; padding: 10px 12px 6px; }
  .ml-chip { min-height: 32px; }
  .ml-hrow { margin: -4px -12px 0; padding: 4px 12px 6px; grid-auto-columns: 132px; gap: 8px; }
  .ml-grid, .ml-packs { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .ml-stagebox { margin: 8px 0 10px 10px; }
  .ml-tryinfo { min-height: 0; padding: 6px 8px; gap: 6px; }
  .ml-ti-t b { font-size: 13px; }
  .ml-ti-t small { font-size: 11px; }
  .ml-ti-a .ghost { display: none; }   /* a second tap on the card opens its details */
  .ml-ti-a .btn, .ml-buy-btn { min-height: 34px; padding: 0 10px; justify-content: center; font-size: 14px; }
  .ml-ti-a .ml-st { min-height: 34px; }
  .ml-ti-x { top: -36px; right: 8px; width: 28px; height: 28px; }
  .ml.try .ml-pic { aspect-ratio: 4 / 3; margin-bottom: 3px; }
  .ml.try .ml-card { padding: 5px 5px 7px; }
  .ml.try .ml-foot { padding-top: 4px; }
  .ml.try .ml-with { display: none; }
  .ml.try .ml-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
  .ml.try .ml-nm { font-size: 12px; }
  .ml.try .ml-ty { font-size: 10.5px; }
  .ml.try .ml-pr, .ml.try .ml-st { min-height: 28px; font-size: 12.5px; }
  .ml-slide { min-height: 136px; padding: 12px 6px 12px 16px; }
  .ml-sl-t > b { font-size: 20px; }
  .ml-sl-art { height: 110px; }
  .ml-sl-pic { width: 104px; }
  .ml-sl-icon, .ml-sl-gem .dia { width: 84px; height: 84px; }
  .ml-sheet { width: min(420px, 58%); padding: 14px 14px calc(12px + var(--sab, 0px)); gap: 2px; }
  .ml-sh-pic { width: 96px; }
  .ml-sh-d { font-size: 12.5px; margin: 2px 0; }
  .ml-sh-acts .btn { min-height: 40px; }
  .ml-up { grid-template-columns: 40px 1fr auto; }
}

/* ---------- price button (Season Pass Premium, upgrades) and badges ---------- */
.cs-price, .cs-act { margin-top: 8px; width: 100%; min-height: 40px; }
.cs-price {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
  background: linear-gradient(#ffe06e, #f3a51e); border: 2px solid #fff0b8; color: #3a2400; font-weight: 900; font-size: 16px;
  box-shadow: 0 3px 0 #b8720c;
}
.cs-price .dia { width: 18px; height: 18px; }
.cs-price:hover { filter: brightness(1.08); }
.cs-price:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8720c; }
.cs-price s { opacity: .6; font-size: 11px; }
.cs-price.confirm { background: linear-gradient(#7dff9f, #2ecc71); border-color: #c9ffd9; color: #06301a; box-shadow: 0 3px 0 #1b8a4a; animation: cs-pulse .8s ease-in-out infinite alternate; }
@keyframes cs-pulse { to { box-shadow: 0 0 12px rgba(125, 255, 159, .7); } }
.cs-badge { position: absolute; top: 6px; z-index: 1; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 6px; }
.cs-badge.sale { left: 6px; background: #ff3b3b; color: #fff; }
.cs-badge.owned { right: 6px; background: #2ecc71; color: #06301a; }
.cs-badge.premium { left: 6px; background: linear-gradient(#ffe06e, #e9a21a); color: #3a2400; }
.cs-badge.active { left: 6px; background: #8e44c9; color: #fff; }
.cs-badge.active i { font-style: normal; }
.cs-badge.static { position: static; font-size: 12px; padding: 4px 10px; }
.cs-price { min-height: 36px; font-size: 15px; border: 0; box-shadow: none; background: linear-gradient(#ffd95e, #f2b23a); }
.cs-price:active { box-shadow: none; }

/* ---------- season pass ---------- */
.sp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.sp-level { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(#3e6bc0, #16326b); border: 3px solid var(--gold); line-height: 1; }
.sp-level span { font-size: 10px; color: var(--muted); font-weight: 900; text-transform: uppercase; }
.sp-level b { font-size: 26px; color: var(--gold); }
.sp-prog { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.sp-title { font-weight: 900; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* social.css also has a .sp-title (profile title pill): undo it inside the pass */
.sp .sp-title { font-size: 15px; color: var(--text); background: none; padding: 0; border-radius: 0; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.sp-bar { height: 12px; background: #0a1838; border: 1px solid #2c4f96; border-radius: 6px; overflow: hidden; }
.sp-bar > div { height: 100%; background: linear-gradient(90deg, #4fc3ff, #b27cff); }
.sp-head .cs-price { width: auto; margin: 0; }
.sp-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-prem { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.sp-prem small { font-size: 10px; font-weight: 900; color: var(--gold); text-transform: uppercase; text-align: center; }
.sp-prog i { font-style: normal; color: var(--gold); font-weight: 900; }
.sp-tier.next .sp-n { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, rgba(255, 196, 46, .75) var(--p), #0a1838 var(--p)); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, .8); }
.sp-tier.next .sp-n small { font-size: 10px; font-weight: 900; opacity: .85; }
.sp-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.sp-labels, .sp-tier { display: grid; grid-template-rows: 22px 118px 118px; gap: 6px; flex: none; }
.sp-labels { position: sticky; left: 0; z-index: 2; background: #12264d; padding-right: 4px; }
.sp-labels b { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); background: #0f2552; border-radius: 8px; width: 28px; font-size: 12px; color: var(--muted); }
.sp-labels b.prem { color: var(--gold); }
.sp-tier { width: 96px; }
.sp-n { text-align: center; font-weight: 900; font-size: 12px; color: var(--muted); background: #0a1838; border-radius: 6px; line-height: 22px; }
.sp-tier.reached .sp-n { background: linear-gradient(#ffd85e, #f3a51e); color: #3a2400; }
.sp-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; text-align: center; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 10px; }
.sp-cell.premium { background: linear-gradient(#2a2160, #17143d); border-color: #6c5bd6; }
.sp-cell.ready { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 207, 74, .45); }
.sp-cell.claimed { opacity: .55; }
.sp-cell.locked > :not(.sp-state) { filter: grayscale(.7) brightness(.75); }
.sp-cell small { font-size: 10px; font-weight: 800; line-height: 1.15; }
.sp-ico { width: 36px; height: 36px; display: grid; place-items: center; font-size: 24px; }
.sp-ico .dia { width: 30px; height: 30px; }
.sp-ico.coin { width: 30px; height: 30px; font-size: 15px; border-radius: 50%; background: linear-gradient(#ffe36e, #e9a21a); color: #5a3a00; font-weight: 900; }
.sp-ico.big { width: 52px; height: 52px; image-rendering: auto; }
.sp-ico > img { width: 100%; height: 100%; object-fit: contain; }
.sp-state { position: absolute; top: 3px; right: 6px; font-size: 12px; font-weight: 900; color: #7dff9f; }
.sp-claim { padding: 2px 10px; font-size: 11px; }

/* ---------- upgrades (level pips) ---------- */
.cs-pips { display: flex; gap: 4px; margin-top: 4px; }
.cs-pips i { width: 18px; height: 6px; border-radius: 3px; background: #0a1838; border: 1px solid #2c4f96; }
.cs-pips i.on { background: var(--gold); border-color: #ffe9a8; }
.cs-lv { color: var(--muted); font-size: 11px; }

/* ---------- diamonds ---------- */
.cs-demo { background: rgba(255, 207, 74, .12); border: 2px dashed var(--gold); color: var(--gold); border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; text-align: center; }
.cs-secure { background: rgba(46, 204, 113, .1); border: 2px solid rgba(46, 204, 113, .45); color: #bff5d3; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; text-align: center; }
.cs-checkout { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px; border-radius: 12px;
  background: linear-gradient(160deg, #1b3f86, #102a5c); border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(255, 207, 74, .25); }
.cs-checkout.ok { border-color: #2ecc71; box-shadow: 0 0 18px rgba(46, 204, 113, .3); }
.cs-checkout.bad { border-color: #ff6b6b; box-shadow: none; }
.cs-ck-row { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; }
.cs-ck-row .dia { width: 24px; height: 24px; }
.cs-ck-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.cs-orders { display: flex; flex-direction: column; gap: 6px; }
.cs-orders .cs-sec { margin: 4px 2px 2px; }
.cs-order { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 800; }
.cs-order .dia { width: 14px; height: 14px; }
.cs-st { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: #2a3f6e; white-space: nowrap; }
.cs-st.ok { background: #2ecc71; color: #06301a; }
.cs-st.bad { background: #6e2a2a; color: #ffd0d0; }
.cs-st.wait { background: #6e5a2a; color: #ffe9a8; }
.cs-help { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 13px; color: var(--muted); }
.cs-fine { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }


/* ---------- status banners, busy / short / offline buttons, purchase + claim animations ---------- */
.cs-note { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.cs-note b { color: var(--gold); }
.cs-note span:not(.spin) { flex: 1; min-width: 180px; color: var(--muted); font-weight: 700; }
.cs-note .btn { margin-left: auto; }
.cs-note.off { border-color: #6c7cff; }
.cs-note.err { border-color: #ff6b6b; }
.cs-note.err b { color: #ffb0b0; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }
.cs-price:disabled { cursor: default; filter: none; }
.cs-price.off { background: #26365c; border-color: #3a4f80; color: #aab6d6; box-shadow: none; }
.cs-price.off .dia { filter: grayscale(.6); }
.cs-price.busy { opacity: .85; }
.cs-price.short { background: linear-gradient(#4fc3ff, #2f7fe0); border-color: #c8ecff; color: #04203f; box-shadow: 0 3px 0 #1a4f99; font-size: 13px; }
.cs-pill.neg b { color: #ff8a8a; }
.cs-lead { margin: 0 auto; max-width: 720px; width: 100%; font-size: 12px; font-weight: 800; }
.cs-lv { color: var(--muted); font-size: 11px; }
.cs-empty { grid-column: 1 / -1; text-align: center; padding: 24px 8px; }
.ml-card.flash, .ml-up.flash, .ml-pack.flash { animation: cs-flash 1.2s ease-out; }
@keyframes cs-flash { 0% { box-shadow: 0 0 0 0 rgba(125, 255, 159, .9); transform: scale(1.03); } 100% { box-shadow: 0 0 0 16px rgba(125, 255, 159, 0); transform: none; } }
.sp-cell.pop { animation: sp-pop .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sp-pop { 0% { transform: scale(.85); box-shadow: 0 0 0 0 rgba(255, 207, 74, .9); } 50% { transform: scale(1.08); } 100% { transform: none; box-shadow: 0 0 0 14px rgba(255, 207, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .ml-card.flash, .ml-up.flash, .ml-pack.flash, .sp-cell.pop, .cs-price.confirm { animation: none; } }


/* ---------- Mall v2 (docs/mall-plan.md): chips, notes, passes, bundles ---------- */
.ml-note { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ml-with { display: block; margin-top: 2px; color: #ffcf4a; font-size: 10.5px; font-weight: 900; letter-spacing: .2px; }
.ml-card.locked { opacity: .62; }
#cos-hud .cos-exp { color: #8ff0b2; }
.ml-club { background: linear-gradient(120deg, rgba(255, 207, 74, .18), rgba(255, 207, 74, .04)); border-color: rgba(255, 207, 74, .4); }

.ml-plan { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid rgba(208, 140, 255, .4); background: linear-gradient(160deg, rgba(140, 63, 208, .28), rgba(255, 255, 255, .03)); }
.ml-plan.founder { border-color: rgba(255, 207, 74, .5); background: linear-gradient(160deg, rgba(240, 165, 28, .26), rgba(255, 255, 255, .03)); }
.ml-plan.flash { animation: cs-flash .6s ease-out; }
.ml-plan-h { display: flex; align-items: center; gap: 12px; }
.ml-plan-h img { width: 52px; height: 52px; flex: none; }
.ml-plan-h h4 { margin: 0; font-size: 18px; }
.ml-plan-h small { color: var(--muted); font-size: 12px; font-weight: 800; }
.ml-plan-st { font-size: 13px; color: #8ff0b2; font-weight: 800; }
.ml-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ml-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 700; }
.ml-perks .ic { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 1px; }
.ml-perks small { color: var(--muted); }
.ml-sheet .ml-perks { align-self: stretch; margin: 6px 0; }
.ml-plan-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ml-plan-a > * { flex: 1 1 160px; }
.ml-plan-a .cs-price { margin: 0; }
.ml-plan-a .cs-price small { margin-left: 6px; font-size: 11px; opacity: .8; }
.ml-plan-next { color: var(--muted); font-size: 12.5px; font-weight: 800; }
.ml-plan-next i { font-style: normal; color: var(--gold); }

.ml-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ml-bundle { --h: #6fe3d0; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; min-width: 0; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--h) 55%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--h) 30%, transparent), rgba(255, 255, 255, .03) 70%); }
.ml-bundle.violet { --h: #d08cff; } .ml-bundle.gold { --h: #ffcf4a; }
.ml-bundle:disabled { cursor: default; }
@media (hover: hover) { .ml-bundle:not(:disabled):hover { transform: translateY(-2px); border-color: var(--h); } }
.ml-bn-pic { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--h) 35%, transparent), rgba(0, 0, 0, .25) 70%); overflow: hidden; }
.ml-bn-pic img { width: 100%; height: 100%; object-fit: contain; animation: ml-sway 6s ease-in-out infinite; }
@keyframes ml-sway { 50% { transform: translateX(3%) rotate(-2deg) scale(1.03); } }
.ml-bn-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-bn-t b { font-size: 17px; }
.ml-bn-t small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.ml-chips-s { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ml-chips-s em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: rgba(0, 0, 0, .28); color: var(--text); }
.ml-chips-s em.own { opacity: .55; text-decoration: line-through; }
.ml-chips-s em.mnt { background: color-mix(in srgb, var(--h, #ffc83a) 40%, rgba(0, 0, 0, .3)); }
.ml-bundle .ml-buy { margin-top: 4px; }
.ml-bundle:disabled .ml-buy { background: rgba(255, 255, 255, .1); color: var(--muted); }
@media (max-width: 760px), (max-height: 480px) {
  .ml-bundles { grid-template-columns: minmax(0, 1fr); }
  .ml-bundle { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .ml-bn-pic { aspect-ratio: 1; grid-row: 1 / span 2; }
  .ml-bundle .ml-buy { grid-column: 2; }
}
/* Featured: the three bundles side by side under the highlights */
.ml-rh-note { color: var(--muted); font-size: 12px; font-weight: 800; }
.ml-bntiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ml-bnt { --h: #6fe3d0; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-width: 0; padding: 6px 6px 8px; border-radius: 16px; text-align: left;
  color: var(--text); font: inherit; cursor: pointer; border: 1px solid color-mix(in srgb, var(--h) 55%, transparent);
  background: linear-gradient(170deg, color-mix(in srgb, var(--h) 32%, transparent), rgba(255, 255, 255, .03) 75%); transition: transform var(--t) var(--ease), border-color var(--t); }
.ml-bnt.violet { --h: #d08cff; } .ml-bnt.gold { --h: #ffcf4a; }
.ml-bnt:disabled { cursor: default; }
@media (hover: hover) { .ml-bnt:not(:disabled):hover { transform: translateY(-2px); border-color: var(--h); } }
.ml-bnt-pic { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 4px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse 46% 13% at 50% 88%, rgba(0, 0, 0, .32), transparent 70%), radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--h) 40%, transparent), rgba(0, 0, 0, .22) 72%); }
.ml-bnt-pic img { width: 100%; height: 100%; object-fit: contain; }
.ml-bnt .ml-kick { font-size: 9.5px; letter-spacing: .8px; color: color-mix(in srgb, var(--h) 70%, #fff); }
.ml-bnt > b { font-size: 13.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-bnt-d { display: inline-flex; align-items: center; gap: 3px; color: #cfe4ff; font-size: 12px; font-weight: 900; }
.ml-bnt-d .dia { width: 13px; height: 13px; }
.ml-bnt .ml-buy { margin-top: 6px; min-height: 34px; font-size: 14.5px; border-radius: 10px; }
.ml-bnt:disabled .ml-buy { background: rgba(255, 255, 255, .1); color: var(--muted); }
.ml-bnt .ml-badge { top: 10px; left: 10px; }
@media (min-width: 761px) { .ml-bntiles { gap: 12px; } .ml-bnt { padding: 8px 8px 10px; } .ml-bnt > b { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .ml-bn-pic img, .ml-plan.flash { animation: none; } }

/* ---------- boosts "i": how a lure / EXP pass works (Bag rows, Mall strip + card + sheet, HUD chip card) ---------- */
.bx-i { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; padding: 0; margin-left: 2px; border-radius: 50%; border: 1.5px solid rgba(208, 220, 255, .55);
  background: rgba(255, 255, 255, .08); color: #dfe7ff; font: italic 900 11px/1 Georgia, 'Times New Roman', serif; cursor: pointer; vertical-align: 1px; }
button.bx-i { position: relative; }
button.bx-i::after { content: ''; position: absolute; inset: -12px; }   /* a finger-sized tap target around the small dot */
button.bx-i:hover, .bx-i[aria-expanded="true"] { background: #6c8cff; border-color: #fff; color: #fff; }
.bx-help { display: grid; gap: 3px; margin-top: 5px; padding: 7px 9px; border-radius: 10px; background: rgba(10, 20, 48, .55); border: 1px solid rgba(160, 180, 255, .2);
  color: #d7def5; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: normal; text-align: left; }
.bx-help[hidden] { display: none; }
.ml-boost .bx-help:not([hidden]) { display: grid; }
.ml-boost .bx-help > span { display: block; }
.bx-help b, .bg-txt .bx-help b, .ml-boost .bx-help b { display: inline; color: var(--gold); font-size: inherit; font-weight: 900; white-space: normal; }
.ml-card .ml-i { position: absolute; top: 12px; right: 12px; z-index: 1; cursor: inherit; }
.ml-card:has(.ml-badge.qty) .ml-i { top: 36px; }
.ml-sh-how { margin: 8px 0 2px; text-align: left; }
.ml-sh-how > b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; color: #eef2ff; }
.ml-sh-how > b .bx-i { margin: 0; }
.cos-lure .bx-i { width: 15px; height: 15px; margin-left: 3px; font-size: 9.5px; border-color: rgba(255, 220, 120, .6); color: inherit; background: rgba(0, 0, 0, .2); }
#cos-hud { position: relative; }
.bx-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(290px, calc(calc(100 * var(--uvw, 1vw)) - 32px)); padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(#1d3f86, #12264d); border: 2px solid var(--border-hi); box-shadow: 0 0 0 2px #0a1630, 0 10px 28px rgba(0, 0, 0, .45); white-space: normal; }
.bx-pop[hidden] { display: none; }
.bx-pop-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; color: #fff; }
.bx-pop-t i { font-style: normal; color: var(--gold); }
.bx-pop .bx-help { background: rgba(5, 12, 32, .45); }
.bx-pop-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------------- Exchange (diamonds to coins, js/exchange.js) */
.shop-panel .mh-actions .ml-xch { min-height: 30px; padding: 0 10px 0 8px; border-radius: 999px; gap: 4px; font-size: 12.5px; }
.shop-panel .mh-actions .ml-xch .ic { width: 15px; height: 15px; }
.ml-xcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 227, 255, .14), rgba(255, 207, 74, .1)); border: 1px solid rgba(255, 207, 74, .35); }
.ml-xc-ic { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.28); flex: none; }
.ml-xc-ic .dia { width: 20px; height: 20px; } .ml-xc-ic .ic { width: 14px; height: 14px; color: var(--gold); } .ml-xc-ic .wl-cur { width: 18px; height: 18px; }
.ml-xc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ml-xc-t b { font: 400 17px/1.1 'Lilita One', Nunito, sans-serif; letter-spacing: .3px; }
.ml-xc-t small { color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 520px) { .shop-panel .mh-actions .ml-xch span { display: none; } .shop-panel .mh-actions .ml-xch { padding: 0 7px; } }
/* phones: no room by the pills (the Mall title would be cut); the diamond pill opens Diamonds, where Exchange is first */
@media (max-width: 420px) { .shop-panel .mh-actions .ml-xch { display: none; } }
.shop-panel .modal-head .wl-money { cursor: pointer; }

/* Battle speed (Diamonds tab) */
.ml-speeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.ml-speed { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-align: left; color: #fff; font: inherit; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14); }
.ml-speed.gold { border-color: rgba(255, 210, 63, .55); background: linear-gradient(135deg, rgba(255, 196, 46, .16), rgba(255, 255, 255, .02)); }
.ml-speed:disabled { cursor: default; opacity: .8; }
.ml-sp-x { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font: 400 26px 'Lilita One', Nunito, sans-serif; color: #2b1800; background: linear-gradient(180deg, #ffe066, #ff9f1c); }
.ml-speed.teal .ml-sp-x { color: #062a2a; background: linear-gradient(180deg, #8ff3e2, #26b8a5); }
.ml-sp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ml-sp-t b { font-size: 15px; } .ml-sp-t small { color: var(--muted); font-weight: 700; font-size: 12px; }
.ml-speed .ml-buy { position: static; }
.ml-sp-big { font: 400 54px 'Lilita One', Nunito, sans-serif; color: #ffd23f; }
.ml-speed .ml-buy { position: static; margin: 0; align-self: center; padding: 0 14px; }

/* Mall Pokémon offers: Kanto Classic, Johto, Hoenn and Sinnoh Starter (Featured cards + pick sheet, js/cosmetics.js offerHtml / renderOfferSheet) */
.ml-offer { --h: #7ad66b; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'pics t' 'buy buy'; align-items: center; gap: 10px 12px; padding: 12px;
  border-radius: 18px; text-align: left; color: var(--text); font: inherit; cursor: pointer; border: 1px solid color-mix(in srgb, var(--h) 50%, transparent);
  background: linear-gradient(135deg, rgba(122, 214, 107, .16), rgba(255, 140, 64, .1) 50%, rgba(79, 160, 255, .14)); }
.ml-offer:disabled { cursor: default; }
@media (hover: hover) { .ml-offer:not(:disabled):hover { transform: translateY(-2px); border-color: var(--h); } }
.ml-of-pics { grid-area: pics; display: flex; gap: 6px; }
/* one tile per starter: same size, side by side, the flat icon wholly inside its tile (no 3D portrait here) */
.ml-of-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 65%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, #1a2040), color-mix(in srgb, var(--c) 16%, #141a33)); }
.ml-of-ico img { display: block; width: 38px; height: 38px; object-fit: contain; }
@media (min-width: 761px) { .ml-of-ico { width: 54px; height: 54px; border-radius: 16px; } .ml-of-ico img { width: 44px; height: 44px; } }
.ml-of-big img { width: 100%; height: 100%; object-fit: contain; }
.ml-of-t { grid-area: t; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-of-t b { font: 400 19px/1.1 'Lilita One', Nunito, sans-serif; letter-spacing: .3px; }
.ml-of-t small:not(.ml-kick) { color: #d7def5; font-size: 12.5px; font-weight: 700; }
.ml-offer .ml-buy { grid-area: buy; margin: 0; }
.ml-offer:disabled .ml-buy { background: rgba(255, 255, 255, .1); color: var(--muted); }
@media (min-width: 761px) { .ml-offer { grid-template-columns: auto minmax(0, 1fr) 150px; grid-template-areas: 'pics t buy'; } }
.ml-of-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 10px 0 4px; }
.ml-of-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border-radius: 16px; color: var(--text); font: inherit; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 28%, transparent), rgba(0, 0, 0, .2) 75%); }
.ml-of-card.sel { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent), 0 6px 18px rgba(0, 0, 0, .35); }
.ml-of-card:disabled { cursor: default; opacity: .7; }
.ml-of-card b { font-size: 14px; }
/* the Kanto Classic: tradeable, a red-gold edge so it reads as its own thing */
.ml-offer.trade { --h: #ff8a5c; background: linear-gradient(135deg, rgba(255, 120, 80, .16), rgba(255, 196, 64, .1) 50%, rgba(79, 160, 255, .12)); }
.ml-offer.trade .ml-kick { color: #ffb38a; }
/* Items > Starter Pokémon: every offer as a small tile, two a row on a phone, four on a wide screen */
.ml-oft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 761px) { .ml-oft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ml-oft { --h: #7ad66b; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; color: var(--text); font: inherit; cursor: pointer; text-align: center;
  border: 1px solid color-mix(in srgb, var(--h) 45%, transparent); background: linear-gradient(135deg, rgba(122, 214, 107, .12), rgba(255, 140, 64, .08) 50%, rgba(79, 160, 255, .12)); }
.ml-oft.trade { --h: #ff8a5c; background: linear-gradient(135deg, rgba(255, 120, 80, .14), rgba(255, 196, 64, .08) 50%, rgba(79, 160, 255, .1)); }
.ml-oft:disabled { cursor: default; }
@media (hover: hover) { .ml-oft:not(:disabled):hover { border-color: var(--h); } }
.ml-oft-pics { display: flex; gap: 4px; }
.ml-oft .ml-of-ico { width: 36px; height: 36px; border-radius: 10px; }
.ml-oft .ml-of-ico img { width: 30px; height: 30px; }
.ml-oft b { font: 400 15px/1.15 'Lilita One', Nunito, sans-serif; letter-spacing: .2px; }
.ml-oft-tr { color: #ffb38a; font-size: 10.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.ml-oft .ml-buy { position: static; margin: 2px 0 0; width: 100%; }
.ml-oft:disabled .ml-buy { background: rgba(255, 255, 255, .1); color: var(--muted); }
/* the pick sheet: who keeps it (bound) or that it trades */
.ml-of-rule { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: #d7def5; font-size: 12px; font-weight: 800; }
.ml-of-rule .ic { width: 14px; height: 14px; flex: none; }
.ml-of-rule.trade { color: #9be38b; }
/* the Type Egg's type picker (its purchase sheet): one chip per type, 4 a row */
.ml-egt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 4px 0 10px; }
.ml-egt-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 6px; border-radius: 12px; color: var(--text); font: 800 11.5px/1.1 inherit; font-family: inherit; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 30%, transparent), rgba(0, 0, 0, .2) 75%); }
.ml-egt-b img { width: 40px; height: 40px; object-fit: contain; }
.ml-egt-b.sel { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
/* the Shiny Starter Egg's region picker: 9 regions, 3 a row, each chip a small egg beside the name (short rows, no scrolling) */
.ml-egt.ml-egt-rg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-egt-rg .ml-egt-b { flex-direction: row; justify-content: flex-start; gap: 4px; padding: 3px 6px 3px 3px; font-size: 12.5px; min-width: 0; }
.ml-egt-rg .ml-egt-b img { width: 30px; height: 30px; flex: none; }
.ml-egt-rg .ml-egt-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-of-big { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; }
.ml-of-type { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--c); color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }

/* a limited-time diamond offer (js/catalog.js PROMOS: Black Friday) */
:root { --black-ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%233a3a44'/%3E%3Cstop offset='1' stop-color='%230b0b10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='47' fill='url%28%23t%29' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M3 50a47 47 0 0 0 94 0z' fill='%2316161c'/%3E%3Crect x='3' y='45' width='94' height='10' fill='%23000'/%3E%3Cpath d='M3 45h94' stroke='%23ffc440' stroke-width='2.4'/%3E%3Cpath d='M3 55h94' stroke='%23ffc440' stroke-width='2.4'/%3E%3Ccircle cx='50' cy='50' r='15' fill='%23000'/%3E%3Ccircle cx='50' cy='50' r='11' fill='%2316161c' stroke='%23ffc440' stroke-width='3'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23ffc440'/%3E%3Cpath d='M22 22a40 40 0 0 1 22-12' fill='none' stroke='%23fff' stroke-opacity='.25' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ml-promo {   display: grid; gap: 2px; margin: 0 0 12px; padding: 12px 96px 12px 14px; border-radius: 14px; color: #fff; position: relative; overflow: hidden;
  background: var(--black-ball) right -18px center / 120px no-repeat, linear-gradient(120deg, #0b0b10 0%, #1d1a22 60%, #2c2410 100%); border: 1px solid rgba(255, 196, 64, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset; }
.ml-promo-k { justify-self: start; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: #ffc440; color: #1a1020; }
.ml-promo b { font-size: 17px; }
.ml-promo small { color: #ffd98a; font-weight: 700; }
.ml-promo small i { font-style: normal; font-variant-numeric: tabular-nums; }
.ml-pb s { opacity: .6; }
.ml-pct.promo { background: rgba(255, 196, 64, .22); color: #ffd36b; }
.ml-slide.s-promo { background: linear-gradient(120deg, #0b0b10 0%, #1d1a22 60%, #2c2410 100%); }
.ml-slide.s-promo .ml-kick { color: #ffc440; }
.ml-promo-art { display: grid; place-items: center; position: relative; background: var(--black-ball) center / contain no-repeat; }
.ml-promo-art .dia { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.ml-promo-art b { position: absolute; right: 2px; bottom: 2px; font-size: 20px; font-weight: 900; color: #ffc440; text-shadow: 0 2px 0 #1a1020; }
/* the offer's chip on the game screen, under the minimap (js/cosmetics.js refreshHud): tap opens the Mall's Diamonds */
#cos-hud .cos-promo { color: #ffc440; border: 1.5px solid rgba(255, 196, 64, .85); background: linear-gradient(#1d1a22, #0b0b10);
  gap: 4px; height: 24px; padding: 0 8px 0 4px; font-size: 11px; justify-content: center; border-radius: 12px; box-sizing: border-box; }
#cos-hud .cos-promo .bb { width: 15px; height: 15px; background: var(--black-ball) center / contain no-repeat; flex: none; }
#cos-hud .cos-promo b { font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
/* as wide as its words, about the width of the Mall / Bag / Hub row above it, right-aligned with it */
#cos-hud .cos-promo i { font-style: normal; font-variant-numeric: tabular-nums; color: #fff; }
/* the offer's popup (js/blackballs.js openEventInfo) */
.bpf { display: grid; gap: 12px; }
.bpf-hero { display: grid; gap: 4px; padding: 14px 110px 14px 14px; border-radius: 14px; color: #fff; min-height: 72px;
  background: var(--black-ball) right -14px center / 104px no-repeat, linear-gradient(120deg, #0b0b10 0%, #1d1a22 60%, #2c2410 100%); border: 1px solid rgba(255, 196, 64, .55); }
.bpf-k { justify-self: start; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: #ffc440; color: #1a1020; }
.bpf-hero b { color: #ffd98a; font-size: 14px; }
.bpf-hero i { font-style: normal; font-variant-numeric: tabular-nums; }
.bpf-sec { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.bpf-sec b { font-size: 15px; }
.bpf-sec p { margin: 4px 0 8px; font-size: 13px; line-height: 1.4; opacity: .9; }
.bpf-ic { width: 44px; height: 44px; display: grid; place-items: center; }
.bpf-ic .dia { width: 34px; height: 34px; }
.bpf-ball { background: var(--black-ball) center / contain no-repeat; }
.bpf-ball.sm { width: 22px; height: 22px; display: inline-block; }
.bpf-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.bpf-stats span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 196, 64, .12); color: #ffd98a; }
.bpf-stats b { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.bpf-done { background: rgba(62, 224, 122, .18) !important; color: #8ff0b2 !important; }
/* the popup's fun part: the picture on the map and the prizes */
.bpf-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 196, 64, .35); background: #0b0b10; }
.bpf-shot img { display: block; width: 100%; height: auto; }
.bpf-shot figcaption { font-size: 12px; padding: 6px 10px; color: #ffd98a; }
.bpf-hunt .bpf-ball { width: 44px; height: 44px; animation: bpf-bob 2.4s ease-in-out infinite; }
@keyframes bpf-bob { 50% { transform: translateY(-4px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .bpf-hunt .bpf-ball { animation: none; } }
.bpf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.bpf-chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-size: 14px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(127, 227, 255, .12); color: #bff2ff; }
.bpf-chip .dia { width: 15px; height: 15px; }
.bpf-chip.jackpot { background: linear-gradient(90deg, #ffc440, #ffe08a); color: #1a1020; box-shadow: 0 0 12px rgba(255, 196, 64, .5); }
.bpf-chip.jackpot em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.bpf-small { font-size: 12px !important; opacity: .8; margin: 2px 0 8px !important; }

/* ---- limited editions (js/catalog.js "seasonal sales": Christmas, Halloween) ---- */
.ml-badge.ltd { left: 12px; background: linear-gradient(#ff5a5f, #c8141e); color: #fff; }
.ml.try .ml-badge.ltd { left: 8px; }
.ml-ltd { display: block; margin-top: 2px; color: #ff9aa2; font-size: 10px; line-height: 1.25; font-weight: 800; white-space: normal; text-wrap: balance; }
.ml-rh-note.ml-ltd { display: inline; margin: 0; font-size: 11.5px; }
.ml-note.ml-ltd-note { border: 1px solid rgba(255, 90, 95, .35); background: rgba(200, 20, 30, .12); }
.ml-note.ml-ltd-note b { color: #ffb3b8; }
.ml-sh-ltd { margin: 4px 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 90, 95, .35); background: rgba(200, 20, 30, .12); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ml-sh-ltd b { display: block; color: #ffb3b8; font-weight: 900; }
.ml-slide.s-ltd { --a: #ff5a5f; --b1: #6a1220; --b2: #0f3a24; }
