/* Tibia TCG — telas novas de 14/11/2026: Profile (estatísticas), Achievements, Feed (rede social) e Desafio do Dia.
   Mesmo visual do resto: Cinzel nos títulos, Alegreya Sans no texto, marrom escuro com dourado. Medidas em var(--u)
   (1cqw no celular, .5cqh no computador), igual ao jogo.css. */

/* ---------- Profile / estatísticas ---------- */
.est { display: flex; flex-direction: column; gap: 2cqh; padding: 1cqh calc(2 * var(--u)) 3cqh; color: #f6ead0; }
.est-topo { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.est-topo img { width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; border: 2px solid #d8a54a; background: #1a1008; object-fit: cover; }
.est-topo b { display: block; font-family: Cinzel, serif; font-size: calc(5 * var(--u)); color: #ffd36b; }
.est-topo small { display: block; font-size: calc(2.7 * var(--u)); color: #d8c49a; }
.est-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(1.4 * var(--u)); }
.est-tile { display: flex; flex-direction: column; align-items: center; padding: 1cqh calc(.6 * var(--u)); border-radius: calc(2 * var(--u));
  background: rgba(20,12,6,.8); border: 1px solid #6b5432; text-align: center; }
.est-tile b { font-family: Cinzel, serif; font-size: calc(5 * var(--u)); color: #ffd36b; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-tile small { font-size: calc(2.3 * var(--u)); color: #e8d7b5; opacity: .85; line-height: 1.1; }
.est-acoes { display: flex; gap: calc(2 * var(--u)); justify-content: center; flex-wrap: wrap; }
.est-acoes .botao-ui { font-size: calc(3.2 * var(--u)); padding: 1.3cqh calc(4 * var(--u)); }
.est-linha { display: grid; grid-template-columns: calc(26 * var(--u)) 1fr auto; align-items: center; gap: calc(2 * var(--u));
  padding: .7cqh calc(2.4 * var(--u)); border-radius: calc(1.6 * var(--u)); background: rgba(20,12,6,.75); border: 1px solid #5a4428; }
.est-rot { font-size: calc(3 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-linha b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); color: #ffd36b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-vazio { font-size: calc(2.8 * var(--u)); opacity: .75; }
.tag-rar { display: inline-block; font-size: calc(2.4 * var(--u)); font-weight: 700; padding: .1em .55em; border-radius: 99px; color: #120c08; background: #ccc; }
.tag-rar.t-fullart { background: #c58bff; } .tag-rar.t-platina { background: #e6eef6; } .tag-rar.t-crystal { background: #8fdcff; } .tag-rar.t-gold { background: #ffd04a; }

/* ---------- Achievements ---------- */
.conq-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(2 * var(--u)); }
.conq { display: flex; gap: calc(2 * var(--u)); align-items: flex-start; padding: 1cqh calc(2 * var(--u)); border-radius: calc(2 * var(--u));
  background: rgba(20,12,6,.8); border: 1px solid #5a4428; }
.conq > img { width: calc(13 * var(--u)); height: calc(13 * var(--u)); object-fit: cover; border-radius: 50%; flex: none; filter: grayscale(1) brightness(.45); border: 2px solid #5a4428; }
.conq.feita { border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.35); }
.conq.feita > img { filter: none; border-color: #ffd36b; }
.conq-txt { display: flex; flex-direction: column; gap: .4cqh; min-width: 0; flex: 1; }
.conq-txt b { font-family: Cinzel, serif; font-size: calc(3.1 * var(--u)); color: #ffd36b; line-height: 1.1; }
.conq-txt small { font-size: calc(2.5 * var(--u)); color: #e8d7b5; opacity: .85; }
.conq-pts { font-family: inherit; font-size: calc(2.3 * var(--u)); color: #1b130a; background: #ffd36b; border-radius: 99px; padding: 0 calc(1.2 * var(--u)); margin-left: calc(1 * var(--u)); vertical-align: middle; white-space: nowrap; }
.conq-txt .chip { align-self: flex-start; height: auto; padding: .4cqh calc(2.4 * var(--u)); font-size: calc(2.7 * var(--u)); }

/* ---------- Feed ---------- */
.soc-abas { display: flex; gap: calc(1.6 * var(--u)); width: 100%; flex: none; flex-wrap: wrap; justify-content: center; }
.soc-abas .chip { height: calc(8 * var(--u)); font-size: calc(3.2 * var(--u)); font-family: Cinzel, serif; font-weight: 800; }
.soc { display: flex; flex-direction: column; gap: 1.6cqh; padding: .5cqh calc(1 * var(--u)) 3cqh; color: #f6ead0; }
.soc-badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; border-radius: 99px; background: #c0392b; color: #fff;
  font-style: normal; font-size: .8em; font-weight: 800; font-family: "Alegreya Sans", sans-serif; }
.soc-vazio { margin-top: 2cqh; }
.soc-priv { margin-top: 1cqh; }
.soc-sub { color: #d8c49a; font-size: calc(2.7 * var(--u)); }
.soc-novo { align-self: center; font-size: calc(3.2 * var(--u)); padding: 1.2cqh calc(5 * var(--u)); }

.soc-stories { display: flex; gap: calc(3 * var(--u)); overflow-x: auto; padding: .5cqh calc(1 * var(--u)) 1cqh; scrollbar-width: none; }
.soc-bolha { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: .4cqh; width: calc(16 * var(--u)); background: none; border: 0; }
.soc-bolha img { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; object-fit: cover; background: #1a1008;
  border: 3px solid #6b5432; padding: 2px; }
.soc-bolha.novo img, .soc-bolha.eu.tem img { border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.6); }
.soc-bolha span { font-size: calc(2.4 * var(--u)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8d7b5; }
.soc-bolha i { position: absolute; right: calc(.6 * var(--u)); top: calc(9.5 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%;
  display: grid; place-items: center; background: #ffd36b; color: #2a1606; font-style: normal; font-weight: 800; font-size: calc(3.6 * var(--u)); border: 2px solid #1a1008; }

.soc-post { display: flex; flex-direction: column; gap: 1cqh; padding: 1.2cqh calc(2.6 * var(--u)); border-radius: calc(2.6 * var(--u));
  background: rgba(20,12,6,.82); border: 1px solid rgba(138,90,20,.7); }
.soc-post header, .soc-chat-topo { display: flex; align-items: center; gap: calc(2 * var(--u)); }
.soc-post header div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.soc-post header b { font-size: calc(3.5 * var(--u)); color: #ffd36b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-post header small { font-size: calc(2.5 * var(--u)); color: #c8b48a; }
.soc-av { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; object-fit: cover; flex: none; background: #1a1008; border: 1px solid #8a5a14; }
.soc-mais { background: none; border: 0; color: #ffd36b; font-size: calc(5 * var(--u)); line-height: 1; padding: 0 calc(1.4 * var(--u)); }
.soc-menu { display: flex; gap: calc(1.6 * var(--u)); flex-wrap: wrap; justify-content: flex-end; }
.soc-menu .chip, .soc .chip.confirma { height: auto; padding: .5cqh calc(2.4 * var(--u)); font-size: calc(2.8 * var(--u)); }
.soc .chip.confirma { background: #6a1a10; color: #fff; }
.soc-legenda { font-size: calc(3.3 * var(--u)); line-height: 1.3; word-break: break-word; white-space: pre-wrap; user-select: text; }

.soc-carta { display: flex; gap: calc(3 * var(--u)); align-items: center; }
.soc-carta img { width: calc(30 * var(--u)); border-radius: calc(1.6 * var(--u)); box-shadow: 0 4px 12px rgba(0,0,0,.7); }
.soc-carta img.r-fullart, .soc-carta img.r-platina, .soc-carta img.r-crystal, .soc-carta img.r-gold { box-shadow: 0 0 14px rgba(255,210,110,.7); }
.soc-carta div { display: flex; flex-direction: column; gap: .6cqh; align-items: flex-start; }
.soc-carta b { font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #ffd36b; }
.soc-carta small { font-size: calc(2.7 * var(--u)); color: #c8b48a; }
.soc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.4 * var(--u)); }
.soc-stats div { display: flex; flex-direction: column; align-items: center; padding: .8cqh 0; border-radius: calc(1.6 * var(--u)); background: rgba(60,38,14,.6); }
.soc-stats b { font-family: Cinzel, serif; font-size: calc(4.4 * var(--u)); color: #ffd36b; }
.soc-stats small { font-size: calc(2.4 * var(--u)); color: #e8d7b5; }
.soc-conq { display: flex; gap: calc(3 * var(--u)); align-items: center; }
.soc-conq img { width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; object-fit: cover; border: 3px solid #ffd36b; box-shadow: 0 0 14px rgba(255,200,90,.55); }
.soc-conq div { display: flex; flex-direction: column; gap: .3cqh; }
.soc-conq small { font-size: calc(2.5 * var(--u)); color: #c8b48a; text-transform: uppercase; letter-spacing: .08em; }
.soc-conq b { font-family: Cinzel, serif; font-size: calc(4.2 * var(--u)); color: #ffd36b; }
.soc-conq span { font-size: calc(2.9 * var(--u)); }
.soc-vit { display: flex; flex-direction: column; gap: .4cqh; padding: 1cqh calc(2.4 * var(--u)); border-radius: calc(2 * var(--u));
  background: linear-gradient(90deg, rgba(90,58,16,.8), rgba(30,18,6,.4)); border-left: 3px solid #ffd36b; }
.soc-vit b { font-family: Cinzel, serif; font-size: calc(4.6 * var(--u)); color: #ffd36b; text-shadow: 0 0 10px rgba(255,190,80,.6); }
.soc-vit span { font-size: calc(3.1 * var(--u)); }

.soc-reacoes { display: flex; gap: calc(1.2 * var(--u)); flex-wrap: wrap; align-items: center; }
.soc-reac { display: inline-flex; align-items: center; gap: calc(.6 * var(--u)); height: calc(7.5 * var(--u)); padding: 0 calc(1.8 * var(--u)); border-radius: 99px;
  border: 1px solid #5a4428; background: rgba(10,6,3,.6); font-size: calc(3.6 * var(--u)); }
.soc-reac small { font-size: calc(2.6 * var(--u)); color: #e8d7b5; font-weight: 700; }
.soc-reac.sel { border-color: #ffd36b; background: #5a3a12; }
.soc-com-btn { margin-left: auto; }

.soc-coments { display: flex; flex-direction: column; gap: .8cqh; padding-top: .8cqh; border-top: 1px solid rgba(138,90,20,.4); }
.soc-com { display: flex; gap: calc(1.6 * var(--u)); align-items: flex-start; }
.soc-com img { width: calc(6.5 * var(--u)); height: calc(6.5 * var(--u)); border-radius: 50%; flex: none; }
.soc-com p { flex: 1; min-width: 0; font-size: calc(3 * var(--u)); line-height: 1.3; word-break: break-word; user-select: text; }
.soc-com p b { color: #ffd36b; }
.soc-com p small { color: #c8b48a; font-size: .8em; margin-left: .3em; }
.soc-x { background: none; border: 0; color: #c8b48a; font-size: calc(3 * var(--u)); padding: 0 calc(.8 * var(--u)); }
.soc-form { display: flex; gap: calc(1.6 * var(--u)); }
.soc-form input, .soc-label input { flex: 1; min-width: 0; font: inherit; font-size: calc(3.2 * var(--u)); padding: .9cqh calc(2 * var(--u)); border-radius: calc(2 * var(--u));
  border: 1px solid #8a6a3c; background: rgba(10,6,3,.8); color: #fff4da; outline: none; user-select: text; }
.soc-form input:focus, .soc-label input:focus { border-color: #ffd36b; box-shadow: 0 0 8px rgba(255,200,90,.5); }
.soc-form .chip { flex: none; }

/* chat */
.soc-conv { width: 100%; text-align: left; color: inherit; }
.soc-conv span { display: flex; flex-direction: column; }
.soc-conv span b { font-size: calc(3.6 * var(--u)); color: #ffd36b; font-weight: 700; }
.soc-conv span small { font-size: calc(2.7 * var(--u)); color: #d8c49a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-av-wrap { position: relative; flex: none; }
.soc-av-wrap .soc-badge { position: absolute; right: -4px; top: -4px; font-size: calc(2.4 * var(--u)); }
.soc-quando { font-size: calc(2.4 * var(--u)); color: #c8b48a; flex: none; }
.soc-chat-topo b { flex: 1; font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #ffd36b; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-chat-topo .chip { height: auto; padding: .5cqh calc(2.4 * var(--u)); }
.soc-msgs { display: flex; flex-direction: column; gap: .8cqh; max-height: 52cqh; overflow-y: auto; padding: 1cqh calc(1 * var(--u));
  border-radius: calc(2 * var(--u)); background: rgba(10,6,3,.55); border: 1px solid rgba(138,90,20,.4); }
.soc-msg { align-self: flex-start; max-width: 80%; display: flex; flex-direction: column; gap: .2cqh; }
.soc-msg p { padding: .8cqh calc(2.4 * var(--u)); border-radius: calc(2.4 * var(--u)) calc(2.4 * var(--u)) calc(2.4 * var(--u)) 2px; background: #2e1e0e;
  border: 1px solid #5a4428; font-size: calc(3.2 * var(--u)); line-height: 1.3; word-break: break-word; white-space: pre-wrap; user-select: text; }
.soc-msg small { font-size: calc(2.2 * var(--u)); color: #c8b48a; padding: 0 calc(1 * var(--u)); }
.soc-msg.meu { align-self: flex-end; align-items: flex-end; }
.soc-msg.meu p { background: #5a3a12; border-color: #a8772a; border-radius: calc(2.4 * var(--u)) calc(2.4 * var(--u)) 2px calc(2.4 * var(--u)); }
.soc-msg .soc-x { font-size: inherit; }

/* janela (compartilhar, denunciar, bloquear) */
.soc-modal { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.72); cursor: default; }
.soc-caixa { width: min(90cqw, 88cqh); max-height: 90cqh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.4cqh; padding: 2cqh calc(4 * var(--u));
  border-radius: calc(3 * var(--u)); background: linear-gradient(#2e1d0c, #160d05); border: 2px solid #d8a54a; box-shadow: 0 2cqh 5cqh rgba(0,0,0,.8); color: #f6ead0; }
.soc-caixa h3 { font-family: Cinzel, serif; font-size: calc(5 * var(--u)); color: #ffd36b; text-align: center; }
.soc-previa { padding: 1.2cqh calc(2.4 * var(--u)); border-radius: calc(2 * var(--u)); background: rgba(10,6,3,.6); border: 1px solid #5a4428; }
.soc-opcoes { display: flex; gap: calc(2 * var(--u)); justify-content: center; }
.soc-opcoes .chip { font-size: calc(3.2 * var(--u)); }
.soc-label { display: flex; flex-direction: column; gap: .6cqh; font-size: calc(2.9 * var(--u)); color: #e8d7b5; }
.soc-botoes { display: flex; gap: calc(2.4 * var(--u)); justify-content: center; flex-wrap: wrap; }
.soc-botoes .botao-ui { min-width: calc(30 * var(--u)); }
.soc-escolha { display: flex; flex-direction: column; gap: 1.2cqh; }

/* story em tela cheia */
.soc-story { position: absolute; inset: 0; z-index: 75; display: flex; flex-direction: column; gap: 1.2cqh; padding: 1.4cqh calc(3 * var(--u)) 2cqh;
  background: radial-gradient(ellipse at 50% 40%, #3a2410, #0b0704 75%); color: #f6ead0; }
.soc-story-barras { display: flex; gap: calc(1 * var(--u)); }
.soc-story-barras i { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.soc-story-barras i.cheia { background: #ffd36b; }
.soc-story-barras i.anda::after { content: ""; position: absolute; inset: 0; background: #ffd36b; transform-origin: left; animation: soc-anda 6s linear forwards; }
@keyframes soc-anda { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.soc-story header { display: flex; align-items: center; gap: calc(2 * var(--u)); }
.soc-story header img { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; border: 2px solid #ffd36b; }
.soc-story header b { font-size: calc(3.8 * var(--u)); color: #ffd36b; }
.soc-story header small { flex: 1; font-size: calc(2.6 * var(--u)); color: #c8b48a; }
.soc-story-x { background: none; border: 0; color: #ffd36b; font-size: calc(6 * var(--u)); line-height: 1; }
.soc-story-meio { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.soc-story-volta, .soc-story-vai { position: absolute; top: 0; bottom: 0; width: 30%; z-index: 1; cursor: pointer; }
.soc-story-volta { left: 0; } .soc-story-vai { right: 0; }
.soc-story-conteudo { display: flex; flex-direction: column; align-items: center; gap: 2cqh; width: 100%; }
.soc-story-conteudo .soc-carta { flex-direction: column; text-align: center; }
.soc-story-conteudo .soc-carta div { align-items: center; }
.soc-story-conteudo .soc-carta img { width: calc(60 * var(--u)); max-height: 52cqh; object-fit: contain; }
.soc-story-conteudo .soc-legenda { text-align: center; font-size: calc(4 * var(--u)); }
.soc-story footer { display: flex; flex-direction: column; gap: 1cqh; position: relative; z-index: 2; }
.soc-story footer > small { text-align: center; color: #c8b48a; font-size: calc(2.8 * var(--u)); }
.soc-story footer .soc-reacoes { justify-content: center; }
.soc-story footer > .chip { align-self: center; }

.soc-toast { position: absolute; left: 50%; bottom: 6cqh; translate: -50% 0; z-index: 90; padding: 1cqh calc(4 * var(--u)); border-radius: 99px;
  background: #2a1a06; border: 2px solid #ffd36b; color: #ffd36b; font-weight: 700; font-size: calc(3.2 * var(--u)); white-space: nowrap;
  box-shadow: 0 1cqh 3cqh rgba(0,0,0,.7); animation: zoom-entra .18s ease-out; }
.soc-fita-mock { position: absolute; left: 0; top: 0; z-index: 95; padding: .3cqh calc(2 * var(--u)); background: #b0261a; color: #fff; font-weight: 800;
  font-size: calc(2.4 * var(--u)); letter-spacing: .08em; pointer-events: none; border-bottom-right-radius: 8px; }

/* botões de compartilhar na abertura de pacote e no fim da partida */
.zoom-carta .soc-share-carta { flex: none; cursor: pointer; }
.soc-fim-share { margin: 1cqh auto 0; display: flex; height: auto; padding: .8cqh calc(3 * var(--u)); font-size: calc(3.2 * var(--u)); }

/* ---------- Desafio do Dia (tela Solo Battles) ---------- */
.dia-card { display: flex; align-items: center; gap: calc(3 * var(--u)); width: 100%; flex: none; padding: 1cqh calc(3 * var(--u)); border-radius: calc(2.6 * var(--u));
  background: linear-gradient(90deg, rgba(110,70,18,.92), rgba(40,24,8,.9)); border: 2px solid #ffd36b; box-shadow: 0 0 14px rgba(255,200,90,.4); text-align: left; color: #f6ead0; }
.dia-card > img { width: calc(18 * var(--u)); aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(1.2 * var(--u)); box-shadow: 0 4px 10px rgba(0,0,0,.7); flex: none; }
.dia-txt { display: flex; flex-direction: column; gap: .4cqh; min-width: 0; }
.dia-txt small { font-size: calc(2.6 * var(--u)); color: #ffe7a8; text-transform: uppercase; letter-spacing: .06em; }
.dia-txt b { font-family: Cinzel, serif; font-size: calc(4.8 * var(--u)); color: #ffd36b; line-height: 1.05; }
.dia-txt > span { font-size: calc(2.9 * var(--u)); }
.dia-txt .premio small { text-transform: none; letter-spacing: 0; color: #e8d7b5; font-family: "Alegreya Sans", sans-serif; font-weight: 500; margin-left: .3em; }
.dia-card.feito { border-color: #7fe07a; box-shadow: none; background: linear-gradient(90deg, rgba(40,60,20,.8), rgba(20,14,6,.9)); }
.dia-card:hover { filter: brightness(1.08); }

@media (min-aspect-ratio: 1/1) {
  .est, .soc, .soc-abas { max-width: 96cqh; margin-left: auto; margin-right: auto; width: 100%; }
  .est-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .conq-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dia-card { max-width: 96cqh; align-self: center; }
  .soc-msgs { max-height: 50cqh; }
  .soc-story { left: 50%; right: auto; width: 60cqh; translate: -50% 0; }
  .soc-story-conteudo .soc-carta img { width: 34cqh; }
}

/* ---------- Rankings (ranking.js) ---------- */
.rk-abas { display: flex; gap: calc(1.4 * var(--u)); width: 100%; flex: none; overflow-x: auto; padding: .4cqh calc(2 * var(--u)) .8cqh; scrollbar-width: none; }
.rk-abas::-webkit-scrollbar { display: none; }
.rk-abas .chip { flex: none; height: calc(8 * var(--u)); font-size: calc(3.1 * var(--u)); font-family: Cinzel, serif; font-weight: 800; white-space: nowrap; }
.rk-txt { text-align: center; font-size: calc(3 * var(--u)); color: #e8d7b5; margin: 0; }
.rk-filtros { display: flex; flex-wrap: wrap; gap: calc(2 * var(--u)); justify-content: center; }
.rk-grupo { display: flex; gap: calc(1 * var(--u)); padding: calc(.6 * var(--u)); border-radius: 99px; background: rgba(20,12,6,.7); border: 1px solid #5a4428; }
.rk-grupo .chip { height: calc(7 * var(--u)); font-size: calc(2.8 * var(--u)); }
.rk-voc { padding: 0 calc(1 * var(--u)); }
.rk-voc img { width: calc(5.4 * var(--u)); height: calc(5.4 * var(--u)); border-radius: 50%; object-fit: cover; }
.rk-voc:not(.sel) img { filter: grayscale(.7) brightness(.8); }
.rk-lista { display: flex; flex-direction: column; gap: .7cqh; }
.rk-linha { display: grid; grid-template-columns: calc(8 * var(--u)) calc(9 * var(--u)) minmax(0, 1fr) auto; align-items: center; gap: calc(2 * var(--u));
  padding: .7cqh calc(2.4 * var(--u)); border-radius: calc(1.6 * var(--u)); background: rgba(20,12,6,.78); border: 1px solid #5a4428; }
.rk-linha img { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; object-fit: cover; border: 2px solid #6b5432; background: #1a1008; }
.rk-pos { font-family: Cinzel, serif; font-weight: 800; font-size: calc(4 * var(--u)); text-align: center; color: #d8c49a; font-variant-numeric: tabular-nums; }
.rk-nome { font-size: calc(3.2 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; }
.rk-nome i { font-style: normal; color: #ffd36b; font-size: .85em; }
.rk-nome small { font-size: calc(2.4 * var(--u)); opacity: .7; }
.rk-linha b { font-family: Cinzel, serif; font-size: calc(3.8 * var(--u)); color: #ffd36b; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; display: flex; flex-direction: column; line-height: 1.05; }
.rk-linha b small { font-family: "Alegreya Sans", sans-serif; font-size: calc(2.2 * var(--u)); color: #d8c49a; font-weight: 400; }
.rk-linha.eu { border-color: #ffd36b; background: rgba(90,58,18,.85); box-shadow: 0 0 10px rgba(255,200,90,.3); }
.rk-top1 .rk-pos { color: #ffd04a; text-shadow: 0 0 8px rgba(255,208,74,.6); } .rk-top1 img { border-color: #ffd04a; }
.rk-top2 .rk-pos { color: #e6eef6; } .rk-top2 img { border-color: #c9d3dd; }
.rk-top3 .rk-pos { color: #e09a5a; } .rk-top3 img { border-color: #c07a40; }
.rk-sep { text-align: center; color: #d8c49a; letter-spacing: .3em; }
.rk-rodape { text-align: center; font-size: calc(2.5 * var(--u)); color: #d8c49a; opacity: .8; margin: .5cqh 0 0; }

/* 24/11 (Bruno): moldura de painel do GPT (9-slice, cantos 70px) nas linhas e caixas das telas sociais */
.rk-linha, .est-tile, .soc-post { border-style: solid; border-color: transparent; border-image: url(img/ui_painel.webp) 70 fill / calc(4.2 * var(--u)) stretch;
  border-radius: 0; background: none; }
.rk-linha, .soc-post { padding-left: calc(3.6 * var(--u)); padding-right: calc(3.6 * var(--u)); }
.rk-linha.eu { box-shadow: none; background: none; filter: brightness(1.2) drop-shadow(0 0 .8cqh rgba(255,200,90,.55)); }
.rk-grupo { background: none; border: 0; }
/* 25/11: abas dos Rankings quebram em linhas (antes rolavam para o lado escondidas e a última aparecia cortada) */
.rk-abas { flex-wrap: wrap; justify-content: center; overflow-x: visible; row-gap: .8cqh; }

/* 25/11: código de baralho (compartilhar / importar) */
.cb-modal .soc-caixa { width: min(92cqw, 110cqh); }
.cb-sub { text-align: center; display: flex; align-items: center; justify-content: center; gap: .6cqh; flex-wrap: wrap; }
.cb-sub img, .cb-previa .mini-ui img { width: 2.6cqh; height: 2.6cqh; vertical-align: middle; }
.cb-codigo { font-family: Consolas, "Courier New", monospace; font-size: min(3.4cqw, 2.4cqh); letter-spacing: .08em; color: #ffd36b; word-break: break-all; text-align: center;
  padding: 1.4cqh calc(2.4 * var(--u)); border-radius: calc(2 * var(--u)); background: rgba(10,6,3,.75); border: 1px dashed #d8a54a; user-select: all; }
.cb-ok { color: #7fe07a; text-align: center; min-height: 1.2em; }
.cb-modal input#cb-entrada { font-family: Consolas, "Courier New", monospace; }
.cb-previa { display: flex; flex-direction: column; gap: 1cqh; }
.cb-previa:empty { display: none; }
.cb-falta { color: #ff8a6a; } .cb-tem { color: #7fe07a; }
.cb-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15cqw, 9cqh), 1fr)); gap: .8cqh; max-height: 38cqh; overflow-y: auto; padding: .4cqh; }
.cb-carta { position: relative; border-radius: .6cqh; overflow: hidden; box-shadow: 0 1px 4px #000; }
.cb-carta img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.cb-carta span { position: absolute; right: 2px; top: 2px; padding: 0 .5cqh; border-radius: .5cqh; background: rgba(10,6,3,.9); border: 1px solid #ffd36b; color: #ffd36b; font-size: min(2.6cqw, 1.5cqh); font-weight: 700; }
.cb-carta i { position: absolute; left: 0; right: 0; bottom: 0; padding: .3cqh 0; text-align: center; font-style: normal; font-weight: 700; font-size: min(2.4cqw, 1.4cqh); color: #fff; background: rgba(170,40,20,.88); }
.cb-carta.falta img { filter: grayscale(1) brightness(.45); }
.caixa-baralho.importar .caixa-capa span { font-size: calc(9 * var(--u)); }
