/* =====================================================================
   ORBO v7.1 — o menu mais limpo.
   Regra: texto so onde ele faz falta. O icone fala, o nome aparece quando
   a pessoa pede (toque longo) ou quando ela escolhe (o modo).
   ===================================================================== */

/* ---------- os nomes saem de baixo dos icones da orbita ---------- */
.ob-label { display: none !important; }

/* sem o rotulo embaixo, o circulo pode respirar um pouco mais */
.scene.orbit2 .ob-circle { box-shadow: 0 5px 0 rgba(0,0,0,0.5), inset 0 0 0 1.5px var(--oc-rim2, var(--stroke)), inset 0 1px 0 rgba(255,255,255,0.14); }

/* ---------- a fita de modos: sem caixa, so os icones ---------- */
.mode-name {
  display: block; width: 100%; text-align: center;
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--text); line-height: 1.1; min-height: 17px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bottom-dock { gap: 8px; }
.bottom-dock .mode-name + .mode-seg { margin-top: -2px; }

.mode-seg {
  width: auto; padding: 0; gap: 14px; justify-content: center;
  background: none; box-shadow: none; border-radius: 0;
}
.mode-btn {
  position: relative; flex: 0 0 auto; width: 74px; min-height: 58px; padding: 0 0 8px;
  border-radius: 20px; background: none; box-shadow: none;
  color: var(--muted); opacity: 0.34;
  transition: opacity 0.16s, color 0.16s, transform 0.12s;
}
.mode-btn span:not(.ic) { display: none; }
.mode-btn .ic, .mode-btn > .ic.ic-live { width: 36px; height: 36px; position: relative; z-index: 1; }

/* os tres respiram, cada um no seu tempo: a fita fica viva sem virar bagunca */
.mode-btn .ic { animation: mb-vive 4.2s ease-in-out infinite; }
.mode-btn:nth-child(2) .ic { animation-delay: -1.4s; }
.mode-btn:nth-child(3) .ic { animation-delay: -2.8s; }
.mode-btn.active .ic { animation-duration: 3s; }
@keyframes mb-vive {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}
.mode-btn:active { transform: translateY(2px); }
.mode-btn.active { opacity: 1; color: var(--text); background: none; box-shadow: none; }
.mode-btn.active > .ic.ic-live { box-shadow: none; filter: drop-shadow(0 0 12px var(--ic-forte, rgba(76,240,255,0.6))); }

/* o escolhido ganha uma claridade atras, no lugar da pilula */
.mode-btn::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 62px; height: 62px;
  margin: -35px 0 0 -31px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--ic-luz, rgba(76,240,255,0.26)), transparent 68%);
  opacity: 0; transform: scale(0.7); transition: opacity 0.2s, transform 0.2s;
}
.mode-btn.active::before { opacity: 1; transform: scale(1); }

/* o ponto do escolhido: e o unico enfeite que sobrou */
.mode-btn::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--ic, var(--accent)); opacity: 0; transform: scale(0.4);
  box-shadow: 0 0 8px var(--ic-forte, rgba(76,240,255,0.6));
  transition: opacity 0.18s, transform 0.18s;
}
.mode-btn.active::after { opacity: 1; transform: scale(1); }

/* o selo de moeda extra do Infinito encosta no canto do icone */
.mode-bonus { right: -4px; top: -3px; font-size: 9px; padding: 1px 5px; }

/* a descricao do modo sai da tela: ela ja mora na dica do botao */
.mode-desc { display: none !important; }

/* ---------- o carrinho da loja ---------- */
.og-cart { transform-box: view-box; transform-origin: 12px 16px; animation: og-cart 3.4s ease-in-out infinite; }
.og-drop { transform-box: fill-box; transform-origin: center; animation: og-drop 3.4s ease-in-out infinite; }
@keyframes og-cart {
  0%, 100% { transform: translateX(-0.6px) rotate(-1.4deg); }
  50% { transform: translateX(0.6px) rotate(1.4deg); }
}
@keyframes og-drop {
  0%, 26% { opacity: 0; transform: translateY(-8px) scale(0.5); }
  38% { opacity: 1; transform: translateY(0) scale(1.18); }
  45% { transform: translateY(0) scale(0.92); }
  52%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(2px) scale(0.88); }
}
.perf-1 .og-cart, .perf-0 .og-cart, .perf-1 .og-drop, .perf-0 .og-drop,
.perf-1 .mode-btn .ic, .perf-0 .mode-btn .ic { animation: none !important; }
.perf-0 .og-drop, .perf-1 .og-drop { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .og-cart, .og-drop, .mode-btn .ic { animation: none !important; }
  .og-drop { opacity: 1; }
}

/* ---------- telas baixas ---------- */
@media (max-height: 700px) {
  .mode-name { font-size: 14px; min-height: 16px; }
  .mode-btn { width: 66px; min-height: 52px; }
  .mode-btn .ic, .mode-btn > .ic.ic-live { width: 32px; height: 32px; }
  .mode-btn::before { width: 54px; height: 54px; margin: -31px 0 0 -27px; }
}

/* =====================================================================
   O selo da fenda: era uma linha de texto, virou uma peca.
   O buraco fica a esquerda com um satelite dando a volta, o nome no meio
   com a claridade da fenda atras dele, e os dois contadores viram pecas
   proprias: o ouro numa ficha e o progresso numa rosca com o numero dentro.
   O texto NAO anima — quem anima e a luz atras dele.
   ===================================================================== */
.rift-chip {
  --rc: #4cf0ff;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 0;
  padding: 10px 12px 10px 11px; border: none; cursor: pointer; border-radius: 20px; color: var(--text);
  background: linear-gradient(180deg, var(--rc-f, rgba(40,60,90,0.5)), rgba(6,9,22,0.92));
  box-shadow: inset 0 0 0 1.5px var(--rc-aro, rgba(140,190,255,0.42)),
              0 8px 22px rgba(0,0,0,0.45);
  transition: transform 0.1s, box-shadow 0.18s;
}
.rift-chip:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--rc-forte, rgba(140,190,255,0.7)); }

/* a claridade da fenda, respirando atras de tudo */
.rc-aura {
  position: absolute; left: 28%; top: 50%; width: 150%; height: 300%;
  margin: -150% 0 0 -30%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--rc-luz, rgba(140,190,255,0.26)), transparent 62%);
  animation: rc-respira 5.2s ease-in-out infinite;
}
@keyframes rc-respira {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* o buraco: nucleo escuro, anel na cor e um satelite dando a volta */
.rc-orbe { position: relative; flex: none; width: 40px; height: 40px; }
.rc-anel, .rc-nucleo, .rc-sat { position: absolute; display: block; border-radius: 50%; }
.rc-anel {
  inset: 0; box-shadow: inset 0 0 0 2px var(--rc-forte, rgba(140,190,255,0.7)),
                        0 0 14px var(--rc-aro, rgba(140,190,255,0.42));
  animation: rc-anel 5.2s ease-in-out infinite;
}
@keyframes rc-anel { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.rc-nucleo {
  inset: 7px; background: radial-gradient(circle at 42% 38%, #121730 0%, #05060f 58%, #000 100%);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.9), 0 0 10px var(--rc-luz, rgba(140,190,255,0.26));
}
.rc-sat { inset: 0; animation: rc-gira 6.5s linear infinite; }
.rc-sat::after {
  content: ''; position: absolute; left: 50%; top: -2px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px var(--rc-forte, rgba(140,190,255,0.7)), 0 0 3px #fff;
}
@keyframes rc-gira { to { transform: rotate(360deg); } }

/* o nome no meio, e a ficha do ouro embaixo dele */
.rc-meio { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rc-nome {
  max-width: 100%; font-family: var(--display); font-size: 15.5px; font-weight: 600; line-height: 1.1;
  color: #fff; letter-spacing: 0.2px; text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-ouro {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px;
  background: rgba(0,0,0,0.34); box-shadow: inset 0 0 0 1px rgba(255,207,74,0.34);
}
.rc-ouro .i { width: 13px; height: 13px; color: var(--gold); }
.rc-ouro em { font-family: var(--display); font-size: 12px; font-weight: 700; font-style: normal; color: var(--gold); }

/* o progresso: rosca com o numero dentro */
.rc-prog { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.rc-rosca { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rc-rosca circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.rc-rosca .t { stroke: rgba(255,255,255,0.12); }
.rc-rosca .a { stroke: var(--rc); filter: drop-shadow(0 0 5px var(--rc-forte, rgba(140,190,255,0.7))); transition: stroke-dasharray 0.5s cubic-bezier(0.2,0.8,0.2,1); }
/* so o numero dentro: o arco ja conta o resto, e "12/10" apertava o desenho */
.rc-prog b { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.3px; }
.rc-prog.dois b { font-size: 13.5px; letter-spacing: -0.6px; }

.rc-go { flex: none; display: inline-flex; color: var(--rc-claro, #cfe4ff); }
.rc-go .i { width: 18px; height: 18px; }

.perf-1 .rc-aura, .perf-0 .rc-aura, .perf-1 .rc-anel, .perf-0 .rc-anel,
.perf-1 .rc-sat, .perf-0 .rc-sat { animation: none !important; }
.perf-0 .rift-chip { box-shadow: inset 0 0 0 1.5px var(--rc-aro, rgba(140,190,255,0.42)); }
@media (prefers-reduced-motion: reduce) {
  .rc-aura, .rc-anel, .rc-sat { animation: none !important; }
}
@media (max-height: 700px) {
  .rift-chip { padding: 8px 10px; gap: 10px; margin-top: 8px; }
  .rc-orbe, .rc-prog { width: 36px; height: 36px; }
  .rc-nome { font-size: 14.5px; }
}

/* ---------- o mesmo selo, servindo aos outros dois modos ---------- */
/* Galaxia: o nucleo e uma estrela, nao um buraco. */
.dc-gal .rc-nucleo {
  background: radial-gradient(circle at 44% 38%, #ffffff 0%, var(--rc-claro, #cfe4ff) 26%, var(--rc-forte, rgba(140,190,255,0.7)) 58%, transparent 78%);
  box-shadow: 0 0 14px var(--rc-forte, rgba(140,190,255,0.7));
}
.dc-gal .rc-sat { animation-duration: 9s; }
.dc-gal .rc-ouro { box-shadow: inset 0 0 0 1px var(--rc-aro, rgba(140,190,255,0.42)); }
.dc-gal .rc-ouro .i { color: var(--rc-claro, #cfe4ff); }
.dc-gal .rc-ouro em { color: #e8eeff; }

/* Treino: o nucleo e uma luz acesa, e a dica ocupa as duas linhas do meio */
.dc-dica .rc-nucleo {
  background: radial-gradient(circle at 44% 36%, #ffffff 0%, #fff6c8 22%, var(--rc-forte, rgba(140,190,255,0.7)) 55%, transparent 78%);
  box-shadow: 0 0 16px var(--rc-luz, rgba(140,190,255,0.26));
}
.dc-dica .rc-sat { animation: none; }
.dc-dica .rc-sat::after { display: none; }
/* a dica ocupa a largura inteira do meio: com align-items:flex-start o texto
   encolheria para o tamanho dele e nunca quebraria a linha */
.rc-meio-dica { align-items: stretch; justify-content: center; text-align: left; gap: 0; }
.rc-dica-txt {
  width: 100%; max-width: 100%; white-space: normal;
  font-family: var(--font, sans-serif); font-size: 12.5px; font-weight: 500;
  line-height: 1.32; color: #e2e8fb; letter-spacing: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* o botao de trocar a dica ocupa o lugar da rosca */
.rc-troca { color: var(--rc-claro, #cfe4ff); }
.rc-troca .i { width: 19px; height: 19px; }
.rift-chip:active .rc-troca { transform: rotate(-40deg); }
.rc-troca { transition: transform 0.2s; }

/* css/rifts.css traz `.rift-chip b`, que pesa mais que uma classe sozinha e
   estava vencendo o alinhamento e o white-space. Duas classes resolvem. */
.rift-chip .rc-nome { flex: none; text-align: center; white-space: nowrap; }
.dc-dica .rc-dica-txt {
  flex: none; width: 100%; text-align: left; white-space: normal;
  font-family: var(--font, sans-serif); font-size: 12.5px; font-weight: 500; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dock-chip[hidden] { display: none; }

/* ===== plataforma: de onde vem a gema, e o apoio (itch/newgrounds) ===== */
.plat-gemas { margin: 6px 0 12px; padding: 14px 16px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.plat-gemas h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.plat-gemas h4 .ic, .plat-gemas h4 svg { width: 18px; height: 18px; color: #c39bff; }
.plat-gemas ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.plat-apoio { margin: 12px 0; padding: 14px 16px; border-radius: 20px; text-align: center; background: rgba(255, 94, 154, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 94, 154, 0.28); }
.plat-apoio b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.plat-apoio b svg { width: 18px; height: 18px; color: #ff5e9a; }
.plat-apoio p { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ===== v9: Forja (loja, aba Itens) ===== */
.forja { margin: 2px 0 14px; padding: 12px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,207,74,0.10), rgba(10,14,32,0.94) 55%); box-shadow: 0 4px 0 rgba(0,0,0,0.42), inset 0 0 0 1.5px rgba(255,207,74,0.30); }
.forja-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.forja-top > div { display: flex; flex-direction: column; min-width: 0; }
.forja-top b { font-size: 17px; line-height: 1.2; color: #ffe39a; }
.forja-top small { font-size: 11.5px; color: var(--muted); }
.forja-card { --ac: #4cf0ff; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 12px; margin-top: 8px; border-radius: 16px; background: rgba(9,13,30,0.72); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.07); }
.forja-card > .btn { grid-column: 1 / -1; }
.forja-info { min-width: 0; }
.forja-info b { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.forja-nv { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.forja-pips { display: flex; gap: 4px; margin: 6px 0 6px; }
.forja-pips i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.10); }
.forja-pips i.on { background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.forja-lista { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.forja-lista li.feito { color: #cfe9ff; text-decoration: line-through; text-decoration-color: rgba(207,233,255,0.35); }
.forja-lista li.prox { color: #ffffff; font-weight: 700; }

/* ===== v9: Barreira (mapa e ficha do sistema) ===== */
.barreira-card { --ac: #4cf0ff; text-align: left; }
.barreira-card .bar-head { display: flex; align-items: center; gap: 12px; }
.barreira-card .bar-head > div { display: flex; flex-direction: column; }
.barreira-card .bar-num { font-size: 30px; line-height: 1.1; }
.barreira-card .bar-num small { font-size: 16px; color: var(--muted); }
.barreira-card .gate-bar { display: block; margin: 12px 0 10px; }
.barreira-card .bar-txt { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.barreira-card .bar-partes { list-style: none; margin: 0 0 14px; padding: 0; }
.barreira-card .bar-partes li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 4px; border-radius: 12px; background: rgba(255,255,255,0.04); font-size: 13px; }
.barreira-card .bar-partes li svg { width: 18px; height: 18px; color: var(--ac); flex: none; }
.barreira-card .bar-partes li span { flex: 1; }
.barreira-card .bar-fenda { margin: 6px 0 10px; font-size: 12px; text-align: center; color: #ffe39a; }
.barreira-card .row { display: flex; gap: 8px; margin-top: 8px; }
.barreira-card .row .btn { flex: 1; }
.barreira-card .bar-fechar { display: block; margin: 10px auto 0; }
.seal-card.bar-seal { width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.btn-cashout .ic svg { color: #ffcf4a; }
.barreira-card .gate-bar { height: 6px; border-radius: 3px; }
.barreira-card .gate-bar span, .bar-seal .gate-bar span { background: #ffcf4a; }
.bar-seal.ok .gate-bar span { background: #35e29a; }

/* ===== v9: provar antes de comprar ===== */
.shop-detail-art .provar-cena { display: block; margin: 0 auto; border-radius: 16px; box-shadow: 0 6px 0 rgba(0,0,0,0.4), inset 0 0 0 1.5px rgba(255,255,255,0.08); }
.shop-detail-art .provar-legenda { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.provar-btn { width: 100%; margin: 4px 0 8px; }
.provar-btn .ic svg { color: #4cf0ff; }
#provar-faixa { position: absolute; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 18px; background: rgba(9,13,30,0.92); box-shadow: 0 4px 0 rgba(0,0,0,0.4), inset 0 0 0 1.5px rgba(76,240,255,0.45); }
#provar-faixa .provar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
#provar-faixa .provar-txt small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #4cf0ff; }
#provar-faixa .provar-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#provar-faixa .btn { flex: none; }
.shop-detail-art.provar-art { display: flex; flex-direction: column; align-items: center; width: 100%; height: auto; min-height: 0; }
