/* Crystal Heroes — visual das novidades: baús, botões do menu, janela genérica, perfil, amigos,
   clã, modos, histórico, nível e visuais dos heróis, configurações, convite e replay. */

/* ───────── baús no menu ───────── */
.ch-chests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.chest {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px;
  min-height: 86px; padding: 8px 4px 7px; border-radius: 14px; color: var(--ch-text, #fff);
  background: linear-gradient(170deg, rgba(42, 74, 200, .45), rgba(20, 22, 84, .75)); border: 1px solid var(--ch-line, rgba(150, 180, 255, .2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 16px rgba(2, 4, 22, .45); font: inherit; cursor: pointer;
  transition: transform .15s, filter .15s;
}
.chest b { font: 400 13px var(--display, sans-serif); letter-spacing: .02em; }
.chest small { font-size: 11px; font-weight: 800; color: var(--ch-muted, #a9b5e8); white-space: nowrap; }
.chest:hover:not(.empty) { transform: translateY(-2px); filter: brightness(1.1); }
.chest:active:not(.empty) { transform: scale(.96); }
.chest.empty { cursor: default; border-style: dashed; background: rgba(10, 14, 50, .35); justify-content: center; }
.chest.empty .chest-ico { font-size: 22px; opacity: .35; }
.chest.empty small { opacity: .6; white-space: normal; text-align: center; }
.chest.ready { border-color: #ffd54d; box-shadow: 0 0 0 2px rgba(255, 213, 77, .35), 0 0 22px rgba(255, 213, 77, .4); animation: chestPulse 1.4s ease-in-out infinite; }
.chest.ready small { color: #ffe27a; }
.chest.opening small { color: #9fe3ff; }
@keyframes chestPulse { 50% { box-shadow: 0 0 0 3px rgba(255, 213, 77, .55), 0 0 30px rgba(255, 213, 77, .6); } }
/* baú desenhado com CSS (tampa, corpo e fechadura) */
.chest-box { position: relative; width: 44px; height: 36px; margin-bottom: 4px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.chest-box .lid { position: absolute; left: 0; right: 0; top: 0; height: 15px; border-radius: 12px 12px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 70%, #fff), var(--cc)); border: 2px solid #1b1230; }
.chest-box .body { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; border-radius: 3px 3px 7px 7px; background: linear-gradient(180deg, var(--cc), color-mix(in srgb, var(--cc) 60%, #000)); border: 2px solid #1b1230; }
.chest-box .body::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; border-left: 3px solid rgba(27, 18, 48, .35); border-right: 3px solid rgba(27, 18, 48, .35); }
.chest-box .lock { position: absolute; left: 50%; top: 10px; width: 10px; height: 12px; margin-left: -5px; border-radius: 3px; background: #ffd54d; border: 2px solid #1b1230; z-index: 2; }
.chest.ready .chest-box { animation: chestWiggle 1.4s ease-in-out infinite; }
@keyframes chestWiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-7deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
.chest-box.big { width: 110px; height: 90px; margin: 0 auto; }
.chest-box.big .lid { height: 38px; border-width: 3px; animation: lidOpen .7s .25s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% 100%; }
.chest-box.big .body { height: 56px; border-width: 3px; }
.chest-box.big .lock { top: 26px; width: 22px; height: 26px; margin-left: -11px; }
@keyframes lidOpen { to { transform: translateY(-20px) rotate(-14deg); } }

/* ───────── botões flutuantes da vitrine (3 de cada lado) ───────── */
.ch-hub { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.hub-col { display: flex; flex-direction: column; gap: 7px; pointer-events: auto; }
.hub-b {
  position: relative; width: 66px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
  border-radius: 16px; color: #fff; font-family: inherit; font-weight: 800; font-size: 10.5px; letter-spacing: .01em; cursor: pointer;
  background: linear-gradient(170deg, rgba(70, 90, 230, .78), rgba(26, 18, 92, .86)); border: 1.5px solid rgba(190, 200, 255, .38);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px rgba(2, 4, 22, .55); backdrop-filter: blur(6px);
  transition: transform .15s, filter .15s, box-shadow .15s; animation: hubIn .45s cubic-bezier(.3, 1.4, .5, 1) both;
}
.hub-col.r .hub-b { background: linear-gradient(170deg, rgba(150, 70, 240, .78), rgba(40, 14, 92, .86)); }
.hub-col .hub-b:nth-child(2) { animation-delay: .06s; } .hub-col .hub-b:nth-child(3) { animation-delay: .12s; }
.hub-b:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.15); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 0 0 2px rgba(255, 213, 77, .55), 0 8px 20px rgba(2, 4, 22, .6); }
.hub-b:active { transform: scale(.93); }
.hub-ico { font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.hub-t { text-shadow: 0 1px 0 rgba(0, 0, 0, .5); white-space: nowrap; }
.hub-dot { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ff4f6d; border: 2px solid #1b1230; box-shadow: 0 0 8px rgba(255, 79, 109, .8); animation: dotBlink 1.2s ease-in-out infinite; }
@keyframes dotBlink { 50% { transform: scale(1.25); } }
@keyframes hubIn { from { opacity: 0; transform: translateY(12px) scale(.8); } }
#lobby .ch-stage .ch-feat { max-width: calc(100% - 180px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-foot { display: none !important; }
@media (max-width: 640px) {
  #lobby .ch-stage { aspect-ratio: 1 / .84; }
  .ch-hub { left: 6px; right: 6px; top: 74px; bottom: auto; align-items: flex-start; }
  .hub-col { gap: 4px; }
  .hub-b { width: 50px; height: 44px; border-radius: 12px; font-size: 8.5px; gap: 1px; }
  .hub-ico { font-size: 17px; }
  #lobby .ch-stage .ch-feat { max-width: calc(100% - 140px); font-size: 12px; }
}
.ch-avatar { cursor: pointer; }
.ch-hero-lv { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 8px; background: rgba(10, 8, 40, .82); color: #ffe27a; font-weight: 800; font-size: 10.5px; border: 1px solid rgba(255, 213, 77, .5); }
#rankList li[data-nick] { cursor: pointer; transition: background .15s; }
#rankList li[data-nick]:hover { background: rgba(255, 255, 255, .07); }

/* ───────── janela genérica ───────── */
.modal.x-modal { width: min(560px, 100%); padding: 0; display: flex; flex-direction: column; max-height: min(92vh, 100%); overflow: hidden; text-align: left; }
.x-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.x-head h2 { margin: 0; font-size: 24px; }
.x-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(10, 8, 40, .45); color: #fff; font-size: 16px; cursor: pointer; }
.x-close:hover { background: rgba(255, 79, 109, .5); }
.x-body { padding: 14px 18px 18px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 10px; }
.x-body .btn { white-space: normal; }
.x-note { margin: 0; color: #dbe4ff; font-size: 14px; line-height: 1.4; }
.x-mini { margin: 4px 0 0; color: #c9d4ff; font-size: 12.5px; }
.x-h { margin: 6px 0 0; font: 400 17px var(--display, sans-serif); letter-spacing: .02em; color: #ffe27a; }
.x-h small { font-weight: 700; font-size: 12px; color: #c9d4ff; letter-spacing: 0; }
.x-list { display: flex; flex-direction: column; gap: 7px; }
.x-bar { position: relative; height: 16px; margin-top: 5px; border-radius: 9px; background: rgba(5, 6, 30, .6); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
.x-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3d8bff, #4be3a0); border-radius: 9px; }
.x-bar span { position: relative; display: block; text-align: center; font-weight: 800; font-size: 11px; line-height: 16px; text-shadow: 0 1px 0 #000; }
.x-ok { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #2fbf71; color: #fff; font-weight: 900; border: 2px solid #1b1230; }
.x-mis { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(10, 14, 60, .45); border: 1px solid rgba(255, 255, 255, .1); }
.x-mis.done { border-color: #ffd54d; background: rgba(255, 213, 77, .1); }
.x-mis.claimed { opacity: .6; }
.x-mis-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-mis-txt b { font-size: 15px; }
.x-mis-txt small { color: #c9d4ff; font-weight: 700; font-size: 12.5px; }
.x-mis .btn { flex: none; }
.x-medal { font-size: 26px; flex: none; }
.ico-gold, .ico-shard { vertical-align: -2px; }
.x-bonus { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(185, 140, 255, .3), rgba(61, 139, 255, .25)); border: 1px solid rgba(255, 255, 255, .2); }
.x-bonus > div { flex: 1; display: flex; flex-direction: column; }
.x-bonus small { color: #dbe4ff; font-size: 12.5px; }
.x-bonus-ico { font-size: 30px; }
.x-bonus.claimed { opacity: .6; }
/* prêmio de login: 7 dias */
.x-login { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.x-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 11px; background: rgba(10, 14, 60, .5); border: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.x-day small { font-size: 10.5px; font-weight: 800; color: #c9d4ff; }
.x-day b { font-size: 11.5px; line-height: 1.15; }
.x-day.now { border-color: #ffd54d; background: rgba(255, 213, 77, .16); box-shadow: 0 0 14px rgba(255, 213, 77, .35); animation: chestPulse 1.4s ease-in-out infinite; }
.x-day.got { opacity: .55; }
.x-day em { position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2fbf71; font-style: normal; font-size: 11px; font-weight: 900; border: 2px solid #1b1230; }
/* baú aberto */
.x-chest-open { position: relative; padding: 20px 0 6px; }
.x-rays { position: absolute; inset: -20px 0 0; margin: auto; width: 240px; height: 240px; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--cc) 55%, transparent) 0 10deg, transparent 10deg 24deg); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: rays 8s linear infinite; }
.x-chest-open { isolation: isolate; }
@keyframes rays { to { transform: rotate(360deg); } }
.x-loot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.x-loot-i { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 10px 12px; border-radius: 14px; background: rgba(10, 14, 60, .55); border: 1px solid rgba(255, 255, 255, .16); animation: lootIn .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.x-loot-i:nth-child(2) { animation-delay: .12s; } .x-loot-i:nth-child(3) { animation-delay: .24s; }
.x-loot-i b { font: 400 20px var(--display, sans-serif); }
.x-loot-i small { color: #c9d4ff; font-weight: 800; font-size: 12px; }
.x-loot-i.hero { border-color: var(--rar); box-shadow: 0 0 20px color-mix(in srgb, var(--rar) 60%, transparent); }
.x-loot-i.hero img { width: 72px; height: 90px; border-radius: 10px; object-fit: cover; }
@keyframes lootIn { from { opacity: 0; transform: scale(.4) translateY(20px); } }

/* ───────── perfil ───────── */
.x-prof { display: flex; align-items: center; gap: 14px; }
.x-prof > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.x-pname { font: 400 24px var(--display, sans-serif); }
.x-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #3d8bff, #7a3cf0); border: 2px solid #ffd54d; }
.x-av img { width: 100%; height: 100%; object-fit: cover; }
.x-av.big { width: 76px; height: 76px; border-width: 3px; box-shadow: 0 0 18px rgba(255, 213, 77, .35); }
.x-av-letter { font: 400 18px var(--display, sans-serif); color: #fff; }
.x-av.big.x-av-letter { font-size: 34px; }
.x-clantag { padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 800; }
.x-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.x-st { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(10, 14, 60, .5); border: 1px solid rgba(255, 255, 255, .1); }
.x-st b { font: 400 18px var(--display, sans-serif); color: #ffe27a; }
.x-st small { font-size: 11px; font-weight: 800; color: #c9d4ff; text-align: center; }
.x-fav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 213, 77, .1); border: 1px solid rgba(255, 213, 77, .3); }
.x-fav img { width: 44px; height: 55px; border-radius: 9px; object-fit: cover; }
.x-fav > div { display: flex; flex-direction: column; }
.x-fav small { color: #c9d4ff; font-size: 12px; font-weight: 800; }
.x-deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.x-dk { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--rar, #8fb3d9); aspect-ratio: 4 / 5; background: #0d0826; }
.x-dk img { display: block; width: 100%; height: 100%; object-fit: cover; }
.x-dk em { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 800; font-size: 10.5px; font-style: normal; color: #ffe27a; background: rgba(5, 6, 30, .78); }
.x-deck.sm { gap: 4px; margin-top: 6px; }
.x-deck.xs { display: flex; gap: 2px; }
.x-deck.xs .x-dk { width: 28px; border-width: 1px; border-radius: 6px; }
.x-avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.x-avpick button { padding: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .25); background: #0d0826; cursor: pointer; transition: transform .12s; }
.x-avpick button:hover { transform: scale(1.08); }
.x-avpick button.on { border-color: #ffd54d; box-shadow: 0 0 12px rgba(255, 213, 77, .6); }
.x-avpick img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ───────── amigos e clã ───────── */
.x-add { display: flex; gap: 8px; }
.x-add input, .x-clan-new input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(5, 6, 30, .55); color: #fff; font-weight: 700; font-size: 15px; }
.x-add input:focus, .x-clan-new input:focus { outline: none; border-color: #ffd54d; }
.x-fr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; background: rgba(10, 14, 60, .45); border: 1px solid rgba(255, 255, 255, .1); }
.x-fr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-fr-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-fr-txt small { color: #c9d4ff; font-size: 12px; font-weight: 700; }
.x-fr-b { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.x-fr-b .btn { padding: 6px 10px; font-size: 12.5px; }
.x-del { width: 32px; padding: 6px 0 !important; }
.on-dot, .off-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4be3a0; box-shadow: 0 0 6px #4be3a0; vertical-align: 0; }
.off-dot { background: #6a7099; box-shadow: none; }
.x-pos { flex: none; width: 22px; text-align: center; font: 400 15px var(--display, sans-serif); color: #ffe27a; }
.x-clan-head { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(122, 60, 240, .35), rgba(42, 92, 255, .3)); }
.x-clan-head > div { display: flex; flex-direction: column; min-width: 0; }
.x-clan-head b { font: 400 22px var(--display, sans-serif); }
.x-clan-head small { color: #dbe4ff; font-weight: 700; font-size: 12.5px; }
.x-clan-head p { margin: 4px 0 0; font-size: 13.5px; font-style: italic; color: #fff; }
.x-emb { flex: none; width: 60px; height: 60px; display: grid; place-items: center; font-size: 32px; border-radius: 16px; background: rgba(5, 6, 30, .5); border: 2px solid #ffd54d; }
.x-emb.sm { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; border-width: 1px; }
.x-clan-new { display: flex; flex-direction: column; gap: 8px; }
.x-emb-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.x-emb-pick button { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .18); background: rgba(5, 6, 30, .5); cursor: pointer; }
.x-emb-pick button.on { border-color: #ffd54d; background: rgba(255, 213, 77, .2); }
.x-inline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #dbe4ff; }
.x-inline input { flex: none; width: 90px; }

/* ───────── modos de jogo ───────── */
.x-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-mode { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 20px rgba(2, 4, 22, .4); }
.md-caos { background: linear-gradient(160deg, rgba(255, 138, 61, .45), rgba(120, 20, 60, .65)); }
.md-duo { background: linear-gradient(160deg, rgba(61, 139, 255, .5), rgba(20, 30, 110, .7)); }
.md-desafio { background: linear-gradient(160deg, rgba(75, 227, 160, .4), rgba(10, 70, 80, .7)); }
.md-torneio { background: linear-gradient(160deg, rgba(255, 213, 77, .45), rgba(120, 60, 10, .7)); }
.x-mode-top { display: flex; gap: 10px; align-items: flex-start; }
.x-mode-top > div { display: flex; flex-direction: column; }
.x-mode-top b { font: 400 18px var(--display, sans-serif); }
.x-mode-top small { color: #f2f5ff; font-size: 12.5px; line-height: 1.3; }
.x-mode-ico { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.x-mode-b { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.x-mode-b .btn { flex: 1; padding: 8px 8px; font-size: 13px; }
.x-tour { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.x-tour i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-weight: 800; font-size: 11px; font-style: normal; background: rgba(5, 6, 30, .5); border: 1px solid rgba(255, 255, 255, .2); }
.x-tour i.w { background: #2fbf71; border-color: #b8ffd8; }
.x-tour i.ch { font-size: 12px; }
/* dificuldade do treino */
.x-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-df { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border-radius: 16px; color: #fff; font: inherit; cursor: pointer; text-align: center; border: 2px solid rgba(255, 255, 255, .16); transition: transform .15s, filter .15s; }
.x-df:hover { transform: translateY(-2px); filter: brightness(1.12); }
.x-df.on { border-color: #ffd54d; box-shadow: 0 0 16px rgba(255, 213, 77, .4); }
.x-df span { font-size: 30px; }
.x-df b { font: 400 19px var(--display, sans-serif); }
.x-df small { font-size: 12px; color: #e8edff; line-height: 1.25; }
.x-df em { font-size: 11px; font-style: normal; font-weight: 800; color: #ffe27a; }
.df-facil { background: linear-gradient(160deg, #2fbf71, #136b43); }
.df-normal { background: linear-gradient(160deg, #3d8bff, #1838b0); }
.df-dificil { background: linear-gradient(160deg, #ff8a3d, #b0361d); }
.df-mestre { background: linear-gradient(160deg, #b98cff, #4a1690); }

/* ───────── histórico ───────── */
.x-hist { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 13px; background: rgba(10, 14, 60, .45); border-left: 5px solid #6a7099; }
.x-hist.win { border-left-color: #4be3a0; } .x-hist.lose { border-left-color: #ff4f6d; }
.x-hist-top, .x-hist-bot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.x-hist-top small { margin-left: auto; color: #c9d4ff; font-size: 12px; font-weight: 700; }
.x-res { font: 400 16px var(--display, sans-serif); }
.x-hist.win .x-res { color: #8dffc8; } .x-hist.lose .x-res { color: #ff9cb0; }
.x-mode-tag { padding: 1px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 800; }
.x-delta { font-weight: 900; font-size: 13px; } .x-delta.up { color: #8dffc8; } .x-delta.down { color: #ff9cb0; }
.x-hist-mid { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.x-score { font: 400 17px var(--display, sans-serif); color: #ffe27a; white-space: nowrap; }
.x-hist-bot small { flex: 1; color: #c9d4ff; font-size: 12.5px; }
.x-hist-bot .btn { padding: 5px 10px; font-size: 12.5px; }

/* ───────── nível e visuais do herói (coleção) ───────── */
.bi-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bi-lv { padding: 8px 10px; border-radius: 12px; background: rgba(255, 213, 77, .1); border: 1px solid rgba(255, 213, 77, .3); }
.bi-lv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bi-lv-top small { color: #dbe4ff; font-size: 12px; font-weight: 700; }
.bi-lv-badge { padding: 2px 9px; border-radius: 9px; background: linear-gradient(180deg, #ffe27a, #f29a17); color: #1b1230; font: 400 14px var(--display, sans-serif); }
.bi-lv-max { margin: 5px 0 0; font-size: 12.5px; color: #c9d4ff; font-weight: 700; }
.bi-up { margin-top: 7px; width: 100%; }
.bi-skins-t { font: 400 14px var(--display, sans-serif); color: #ffe27a; }
.bi-sk-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bi-sk { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 6px; min-width: 58px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .18); background: rgba(5, 6, 30, .5); color: #fff; font: inherit; cursor: pointer; }
.bi-sk > i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 2px solid #1b1230; }
.bi-sk small { font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.bi-sk.on { border-color: #ffd54d; box-shadow: 0 0 10px rgba(255, 213, 77, .5); }
.bi-sk.buy small { color: #ffe27a; }
.x-skin-prev { position: relative; width: 140px; margin: 0 auto; padding: 10px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, var(--b), var(--a) 70%); text-align: center; }
.x-skin-prev img { width: 100px; height: 125px; object-fit: cover; border-radius: 12px; }

/* ───────── configurações ───────── */
.x-set { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; text-align: left; }
.x-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; font-weight: 800; font-size: 14px; }
.x-slider input { grid-column: 1 / -1; width: 100%; accent-color: #ffd54d; }
.x-slider b { grid-row: 1; grid-column: 2; color: #ffe27a; font-size: 13px; }
.x-gfx { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: 14px; }
.x-gfx small { color: #c9d4ff; font-weight: 700; font-size: 12px; }
.x-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(5, 6, 30, .5); }
.x-seg button { padding: 8px 4px; border-radius: 9px; border: 0; background: transparent; color: #dbe4ff; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.x-seg button[aria-pressed="true"] { background: linear-gradient(180deg, #ffe27a, #f29a17); color: #1b1230; }

/* ───────── fim de partida ───────── */
.x-end { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 10px; }
.x-end:empty { display: none; }
.x-end-i { padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; }
.x-end-i.warn { background: rgba(255, 138, 61, .2); }
.x-end-i.sm { font-size: 12.5px; opacity: .85; }

/* ───────── convite de amigo ───────── */
.invite-box { position: fixed; z-index: 70; left: 50%; top: max(14px, env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(420px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: linear-gradient(160deg, #3468e0, #4a1690); border: 3px solid #ffd54d; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: inviteIn .4s cubic-bezier(.3, 1.5, .5, 1); }
.invite-box[hidden] { display: none; }
.invite-ico { font-size: 28px; }
.invite-box p { flex: 1; min-width: 160px; margin: 0; font-size: 14.5px; }
.invite-b { display: flex; gap: 6px; margin-left: auto; }
@keyframes inviteIn { from { transform: translate(-50%, -30px); opacity: 0; } }

/* ───────── replay ───────── */
.replay-bar { position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(640px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; background: rgba(8, 10, 40, .88); border: 2px solid rgba(255, 213, 77, .6); backdrop-filter: blur(6px); }
.replay-bar[hidden] { display: none; }
.rp-tag { padding: 2px 8px; border-radius: 7px; background: #ff4f6d; font: 400 13px var(--display, sans-serif); }
.rp-names { flex: 1; min-width: 120px; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-prog { flex-basis: 100%; order: 3; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.rp-prog i { display: block; height: 100%; width: 0; background: #ffd54d; transition: width .2s linear; }
.replay-bar .btn { padding: 6px 12px; font-size: 13px; }
#game.replaying .hud-bottom, #game.replaying #btnMenu, #game.replaying #emoteBar { display: none !important; }

/* ───────── celular ───────── */
@media (max-width: 640px) {
  .x-modes, .x-diff { grid-template-columns: 1fr; }
  .x-stats { grid-template-columns: repeat(2, 1fr); }
  .x-login { grid-template-columns: repeat(4, 1fr); }
  .x-fr { flex-wrap: wrap; }
  .x-fr-b { flex-basis: 100%; }
  .chest { min-height: 76px; }
  .chest small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .chest.ready, .chest.ready .chest-box, .x-rays, .hub-dot, .x-day.now { animation: none !important; } }
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.chest-box.mini { display: inline-block; vertical-align: middle; width: 22px; height: 18px; margin: 0 2px 0 0; filter: none; }
.chest-box.mini .lid { height: 8px; border-width: 1.5px; border-radius: 6px 6px 2px 2px; }
.chest-box.mini .body { height: 11px; border-width: 1.5px; }
.chest-box.mini .body::before { left: 3px; right: 3px; border-width: 0 1.5px; }
.chest-box.mini .lock { top: 5px; width: 5px; height: 6px; margin-left: -2.5px; border-width: 1px; }
.x-bonus-ico .chest-box.mini { width: 36px; height: 30px; }
.x-bonus-ico .chest-box.mini .lid { height: 13px; } .x-bonus-ico .chest-box.mini .body { height: 18px; } .x-bonus-ico .chest-box.mini .lock { top: 8px; width: 8px; height: 10px; margin-left: -4px; }

/* contador de online clicável + lista */
#online { cursor: pointer; }
#online:hover { filter: brightness(1.2); }
.x-online { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(75, 227, 160, .12); border: 1px solid rgba(75, 227, 160, .4); font-weight: 700; }
.x-online b { color: #4be3a0; font-size: 17px; }
.x-online .ln-dot, .ln-dot { width: 10px; height: 10px; border-radius: 50%; background: #4be3a0; box-shadow: 0 0 10px #4be3a0; }

/* limite de usos por partida na barra de heróis */
.hslot .uses { position: absolute; z-index: 3; right: 4px; top: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(10, 8, 40, .85); color: #ffe27a; font-weight: 900; font-size: 12px; border: 1px solid rgba(255, 213, 77, .6); pointer-events: none; }
.hslot.used-up { filter: grayscale(1) brightness(.55); cursor: not-allowed; }
.hslot.used-up .uses { color: #ff9cb0; border-color: #ff4f6d; font-size: 10px; }
.bi-uses { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 700; color: #dbe4ff; }
.bi-uses b { color: #ffe27a; }

/* selo "2x" (usos por partida) nos cartões do time e da coleção */
.card .cuse, .ch-hero-uses { position: absolute; z-index: 2; left: 5px; bottom: 26px; padding: 1px 6px; border-radius: 8px; background: rgba(10, 8, 40, .85); color: #ffe27a; font-weight: 900; font-size: 11px; border: 1px solid rgba(255, 213, 77, .6); pointer-events: none; }
.ch-hero-uses { left: auto; right: 6px; top: 26px; bottom: auto; }
.card { position: relative; }
.hslot .card .cuse { display: none; }

/* ───────── tela de Modos (cartões caprichados) ───────── */
.modal.x-modal.xv-modes { width: min(780px, 100%); }
.xm-intro { padding: 8px 12px; border-radius: 12px; background: rgba(5, 6, 30, .35); }
.xm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xm { --a: #3d8bff; --b: #1a2a8a; position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--a) 22%, #12103a), #0f0c33 70%); border: 1.5px solid color-mix(in srgb, var(--a) 55%, transparent); box-shadow: 0 10px 24px rgba(2, 4, 22, .5), 0 1px 0 rgba(255, 255, 255, .12) inset; transition: transform .18s, box-shadow .18s; }
.xm:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(2, 4, 22, .6), 0 0 0 2px color-mix(in srgb, var(--a) 60%, transparent); }
.xm-caos { --a: #ff7a3d; --b: #8a1640; } .xm-duo { --a: #4f8dff; --b: #1c2b9a; } .xm-desafio { --a: #2fd3a0; --b: #0d5a62; } .xm-torneio { --a: #ffc23a; --b: #8a4a0c; }
.xm-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; background: linear-gradient(120deg, var(--a), var(--b)); overflow: hidden; }
.xm-head::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 22px); pointer-events: none; }
.xm-ico { position: relative; z-index: 1; flex: none; width: 54px; height: 54px; display: grid; place-items: center; font-size: 30px; border-radius: 16px; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 60%); border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.xm-tt { position: relative; z-index: 1; min-width: 0; }
.xm-tt h3 { margin: 0; font: 400 21px var(--display, sans-serif); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.xm-tt p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: #fff; opacity: .95; }
.xm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.xm-tags span { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: color-mix(in srgb, var(--a) 22%, transparent); border: 1px solid color-mix(in srgb, var(--a) 55%, transparent); color: #fff; }
.xm-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 4px; }
.xm-line { margin: 0; font-size: 13px; line-height: 1.4; color: #dbe4ff; }
.xm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(5, 6, 30, .45); font-size: 12.5px; font-weight: 700; color: #dbe4ff; }
.xm-row b { color: #ffe27a; }
.xm-pips { display: flex; gap: 4px; margin-left: auto; }
.xm-pips i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1.5px solid rgba(255, 255, 255, .35); }
.xm-pips i.on { background: #4be3a0; border-color: #b8ffd8; box-shadow: 0 0 8px rgba(75, 227, 160, .7); }
.xm-deck { margin: 0; }
.xm-track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 2px 0; }
.xm-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; }
.xm-track i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 11px; background: #1b1846; border: 2px solid rgba(255, 255, 255, .25); }
.xm-track i.xmc { border-color: color-mix(in srgb, var(--a) 70%, transparent); background: #2a2050; }
.xm-track i.won { background: #2fbf71; border-color: #b8ffd8; }
.xm-foot { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; }
.xm-main { width: 100%; padding: 11px 10px; font-size: 15px; }
.xm-alt { display: flex; gap: 6px; }
.xm-alt .btn { flex: 1; padding: 7px 8px; font-size: 12.5px; }
@media (max-width: 640px) { .xm-grid { grid-template-columns: 1fr; } .xm-tt h3 { font-size: 19px; } }
.xm-track { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.xm-track i { width: 100%; max-width: 32px; height: auto; justify-self: center; overflow: hidden; }
.xm-track i .chest-box.mini { width: 16px; height: 13px; margin: 0; }
.xm-track i .chest-box.mini .lid { height: 6px; } .xm-track i .chest-box.mini .body { height: 8px; } .xm-track i .chest-box.mini .lock { top: 3px; width: 4px; height: 5px; margin-left: -2px; }
.xm-track i { width: 28px; height: 28px; max-width: none; aspect-ratio: auto; align-self: center; }

/* ───────── tela de Heróis no PC: cabe na tela, painéis com rolagem própria e barra de baixo ───────── */
@media (min-width: 1000px) {
  #builder:not([hidden]) { height: 100dvh; box-sizing: border-box; grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: 12px; padding-bottom: 0; overflow: hidden; }
  #builder > .deck-panel { grid-row: 2; }
  #builder .info, #builder .ch-binfo { grid-row: 3; margin-top: 0 !important; min-height: 0; max-height: 100%; overflow-y: auto; align-self: stretch; scrollbar-width: thin; }
  #builder .collection { grid-row: 2 / 4; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  #builder #tabbar.ch-nav { grid-column: 1 / -1; grid-row: 4; justify-self: center; width: min(760px, 100%); margin: 0; }
}
/* selo de usos no canto de cima, longe do preço */
.card .cuse { left: auto; right: 5px; top: 5px; bottom: auto; }
/* celular */
@media (max-width: 640px) {
  .x-hist-mid { flex-wrap: wrap; justify-content: center; }
  .x-deck.xs .x-dk { width: 22px; }
  .x-hist-top small { margin-left: 0; }
}

@media (min-width: 1000px) {
  body #builder .ch-binfo { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; overflow-y: auto !important; align-content: start; }
  body #builder .ch-binfo .bi-art { width: 100% !important; height: 150px !important; min-height: 150px !important; }
  body #builder .ch-binfo .bi-desc, body #builder .ch-binfo .bi-title { display: block; }
}

@media (min-width: 1000px) and (max-height: 820px) { body #builder .ch-binfo .bi-art { height: 110px !important; min-height: 110px !important; } }

/* ───────── loja com gemas ───────── */
.ico-gem { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; flex: none;
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); background: linear-gradient(150deg, #e2fff0 0%, #5cf0a8 35%, #12a866 70%, #06603a 100%); filter: drop-shadow(0 0 4px rgba(60, 240, 160, .6)); }
.ico-gem.big { width: 38px; height: 40px; }
.ch-money.gm { cursor: pointer; } .ch-money.gm b { color: #7dffc0; }
.ch-money .ico-gem { width: 24px; height: 26px; margin: 0; }
.money.gem b { color: #7dffc0; } .money .ico-gem { width: 24px; height: 26px; margin: 0; }
.ico-skin { display: inline-block; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#5fffd0, #1b2b6b, #9a6bff, #5fffd0); border: 3px solid var(--outline); }
.st-wallet { display: flex; gap: 12px; align-items: center; }
.st-safe { margin: 4px 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(47, 211, 138, .12); border: 2px solid rgba(47, 211, 138, .4); font: 800 12.5px/1.4 var(--body); color: #c9ffe4; }
.st-sec { margin-top: 12px; }
.st-sec h3 { margin: 0 0 8px; font: 400 17px var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 var(--outline); }
.st-sec h3 small { font: 800 11px var(--body); color: var(--muted); margin-left: 6px; }
.st-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.so-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 14px 14px 12px; border-radius: 16px; border: 3px solid var(--outline); overflow: hidden;
  background: linear-gradient(160deg, #ffcf6a 0%, #ff8a3a 45%, #c0306a 100%); box-shadow: 0 6px 0 rgba(6, 10, 40, .55), inset 0 2px 0 rgba(255, 255, 255, .35); }
.so-card.so-prem { background: linear-gradient(160deg, #6af0d0 0%, #3a7dff 50%, #4a1fb0 100%); }
.so-card.got { filter: saturate(.6); }
.so-tag { justify-self: start; font: 800 10.5px var(--body); text-transform: uppercase; letter-spacing: .05em; background: rgba(6, 10, 40, .55); color: #fff; padding: 3px 9px; border-radius: 999px; }
.so-name { font: 400 22px var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 var(--outline); }
.so-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 800 13px var(--body); color: #fff; text-shadow: 0 1px 0 rgba(6, 10, 40, .6); }
.so-list .ico-gem, .so-list .ico-gold { width: 16px; height: 16px; }
.so-buy { justify-self: stretch; font-size: 17px; }
.so-own { justify-self: start; font: 400 15px var(--display); color: #fff; background: rgba(6, 10, 40, .5); padding: 6px 12px; border-radius: 10px; }
.st-gems, .st-golds { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.sg-card, .sgo-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 8px 10px; border-radius: 16px; border: 3px solid var(--outline); cursor: pointer; color: #fff; font: inherit;
  background: linear-gradient(180deg, #1f7a5a, #0e3d3a); box-shadow: 0 5px 0 rgba(6, 10, 40, .55), inset 0 2px 0 rgba(255, 255, 255, .2); transition: transform .12s; }
.sgo-card { background: linear-gradient(180deg, #8a5a14, #4a2a08); }
.sg-card:hover, .sgo-card:hover { transform: translateY(-3px); }
.sg-card:active, .sgo-card:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(6, 10, 40, .55); }
.sg-card.best { background: linear-gradient(180deg, #24b07a, #0d5a46); box-shadow: 0 5px 0 rgba(6, 10, 40, .55), 0 0 0 3px #7dffc0 inset; }
.sg-card b, .sgo-card b { font: 400 22px var(--display); letter-spacing: .03em; text-shadow: 0 2px 0 var(--outline); }
.sg-card small, .sgo-card small { font: 800 11px var(--body); color: #cfe; opacity: .85; }
.sg-art, .sgo-art { height: 52px; display: flex; align-items: flex-end; justify-content: center; }
.sg-art .ico-gem { width: 26px; height: 30px; margin: 0 -5px; }
.sg-art.sg-1 .ico-gem { width: 34px; height: 40px; }
.sgo-art .ico-gold { width: 30px; height: 30px; margin: 0 -7px; }
.sg-price { margin-top: 6px; padding: 5px 12px; border-radius: 10px; background: var(--gold, #ffcf2e); color: var(--outline, #0b0f3a); font: 400 15px var(--display); border: 2px solid var(--outline); }
.sg-price.gem { background: #0b2a24; color: #7dffc0; }
.sg-price.gem .ico-gem { width: 15px; height: 16px; }
.sg-bonus { position: absolute; top: -9px; right: -6px; transform: rotate(6deg); background: #ff4f8a; color: #fff; font: 800 10.5px var(--body); padding: 3px 8px; border-radius: 999px; border: 2px solid var(--outline); }
.si-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.si-gem .ico-gem { width: 14px; height: 15px; }
.st-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-hist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font: 800 13px var(--body); }
.st-hist li small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.st-hist li.empty { display: block; color: var(--muted); }
.sh-cost { color: #7dffc0; font-variant-numeric: tabular-nums; } .sh-cost .ico-gem { width: 14px; height: 15px; }
.st-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.st-pick button { display: grid; justify-items: center; gap: 2px; width: 78px; padding: 4px; border-radius: 12px; }
.st-pick img { width: 64px; height: 80px; object-fit: cover; object-position: top; border-radius: 8px; }
.st-pick small { font: 800 10.5px var(--body); color: #fff; }
.x-buy2 { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn.gem { background: linear-gradient(180deg, #3ce69a, #12905a); }
.ptier.prem.locked .pbox { position: relative; }
.ptier .pl { position: absolute; right: 4px; bottom: 4px; transform: scale(.7); }
.ptier.prem .pbox { background: linear-gradient(180deg, #2a8a8a, #1a3a6a); }
.ptier.prem.locked .pbox > :not(.pl) { opacity: .55; }
.prem-buy { flex: none; width: 92px; height: 120px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 14px; border: 3px solid var(--outline); cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #ffcf2e, #ff8a0a); box-shadow: 0 4px 0 rgba(6, 10, 40, .55); font: inherit; }
.prem-buy b { font: 400 13px/1.05 var(--display); color: var(--outline, #0b0f3a); text-align: center; }
.prem-buy small { font: 800 10px var(--body); color: var(--outline, #0b0f3a); }
@media (max-width: 560px) {
  .st-gems, .st-golds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-offers { grid-template-columns: 1fr; }
  .so-name { font-size: 19px; }
}
.si-gem { background: linear-gradient(180deg, #3ce69a, #12905a) !important; color: #fff; }
.si-gem.ghost { background: linear-gradient(180deg, #2a5a4a, #183a30) !important; color: #bfe; }
.st-pick button { height: auto; overflow: visible; }
@media (max-width: 560px) {
  .st-golds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sgo-card { padding: 10px 4px 8px; } .sgo-card b { font-size: 17px; } .sgo-art .ico-gold { width: 22px; height: 22px; margin: 0 -6px; } .sgo-art { height: 36px; }
  .sgo-card .sg-price { padding: 4px 6px; font-size: 13px; }
}
/* extrato */
.st-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.st-sum div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 2px solid rgba(255, 255, 255, .06); }
.st-sum b { font: 400 17px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.st-sum b .ico-gem, .st-sum b .ico-gold { width: 15px; height: 16px; }
.st-sum small { font: 800 10.5px var(--body); color: var(--muted); }
.st-hist { max-height: 420px; overflow-y: auto; padding-right: 2px; }
.st-hist li:not(.empty) { grid-template-columns: auto 1fr auto; align-items: center; }
.st-hist .sh-ico { font-size: 18px; width: 26px; text-align: center; }
.st-hist .sh-what { display: grid; gap: 1px; }
.st-hist .sh-what small { grid-column: auto; }
.st-hist .sh-cost { display: grid; justify-items: end; gap: 1px; color: #ff9a9a; }
.st-hist .sh-cost em { font-style: normal; color: #7dffc0; font-size: 12px; }
.st-hist .sh-money { color: #ffe27a; } .st-hist .sh-gold { color: #ffcf6a; }
.st-hist li.sk-admin .sh-cost { color: #7dffc0; }
@media (max-width: 560px) { .st-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* trilha Premium: rolagem livre (sem "puxar" para os lados) e botão Liberar sempre visível */
.prem-track { scroll-snap-type: none; overscroll-behavior-x: contain; }
.prem-track .prem-buy { position: sticky; left: 0; z-index: 3; align-self: center; }
/* loja: gemas e ouro ocupam a linha inteira, sem espaço sobrando */
.st-gems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.st-golds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-gems .sg-card, .st-golds .sgo-card { padding: 16px 6px 12px; min-width: 0; }
.sg-card b, .sgo-card b { font-size: 26px; }
.sg-card small { text-align: center; }
.sg-art, .sgo-art { height: 60px; }
.sg-art .ico-gem { width: 24px; height: 28px; }
.sg-price { white-space: nowrap; }
.st-panel { container-type: inline-size; }
@container (max-width: 640px) {
  .st-gems { display: flex; flex-wrap: wrap; gap: 8px; }
  .st-gems .sg-card { flex: 1 1 calc(50% - 8px); }
  .st-gems .sg-card.best { flex-basis: 100%; }
  .st-golds { gap: 8px; }
  .st-golds .sgo-card { padding: 10px 4px 8px; }
  .sg-card b { font-size: 22px; } .sgo-card b { font-size: 17px; }
  .sgo-art { height: 36px; }
}
.st-sec.st-first { margin-top: 4px; }
