/* Fontes locais (SIL OFL): funcionam offline e em WebView */
@font-face{font-family:'Lilita One';font-style:normal;font-weight:400;font-display:swap;src:url('../design/fonts/lilita-one-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lilita One';font-style:normal;font-weight:400;font-display:swap;src:url('../design/fonts/lilita-one-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url('../design/fonts/nunito-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url('../design/fonts/nunito-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url('../design/fonts/nunito-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url('../design/fonts/nunito-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:url('../design/fonts/nunito-latin-800-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:url('../design/fonts/nunito-latin-ext-800-normal.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:url('../design/fonts/nunito-latin-900-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:url('../design/fonts/nunito-latin-ext-900-normal.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* LEGENDS — interface do jogo · estilo "cartoon arcade": céu azul, painéis claros com contorno grosso,
   botões com relevo, cartas com crachá de nível e cadeado. Retrato no telemóvel, adaptação a desktop. */
:root {
  --ink: #0F2A4A; --ink-2: #1D3F66;
  --sky-1: #7FD8FF; --sky-2: #3BAAF0; --sky-3: #1F7FD6; --sky-4: #165BA8;
  --panel: #FFFFFF; --panel-2: #EAF4FF; --panel-3: #D3E7FB; --panel-line: #9CC4EA;
  --navy: #0D2440; --navy-2: #13355C; --navy-3: #1C4A7C;
  --yellow: #FFD23F; --yellow-2: #F5A623; --green: #4CD964; --green-2: #22A845; --red: #FF5A4E; --red-2: #C93A30;
  --blue: #4AA3FF; --blue-2: #2275D6; --cyan: #5FE3F5; --pink: #FF6FAE; --gold: #FFC531;
  --texto: #0F2A4A; --texto-2: #4F6F92; --texto-inv: #FFFFFF;
  --ok: #3DDC84; --perigo: #FF4D5E; --aviso: #FFB020; --turquesa: #22D3C5; --ouro: #FFD23F;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --f-display: "Lilita One", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-ui: "Nunito", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--texto); font: 600 15px/1.4 var(--f-ui); }
body {
  overscroll-behavior: none;
  background-color: #0A2C6E;
  background-image:
    radial-gradient(circle at 50% -5%, rgba(64,200,255,.55), transparent 55%),
    radial-gradient(circle at 0% 60%, rgba(140,90,255,.22), transparent 45%),
    radial-gradient(circle at 100% 85%, rgba(0,220,200,.18), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, #1A6BDB, #0E45A8 40%, #0A2C6E 80%, #082358);
  background-attachment: fixed;
}
a { color: var(--blue-2); text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; margin: .6em 0 .4em; line-height: 1.1; }
h1 { font-size: 28px; color: #fff; text-shadow: 0 3px 0 var(--ink), 0 0 2px var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
h2 { font-size: 21px; color: #fff; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
h3 { font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.card h2, .modal-box h2, .card h3, .modal-box h3 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
p { margin: .3em 0 .7em; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 12px; min-height: 46px; width: 100%; box-shadow: inset 0 3px 0 rgba(15,42,74,.12); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ico-img { width: 26px; height: 26px; display: inline-block; vertical-align: middle; flex: none; }
#app { min-height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; position: relative; }

/* barra superior: pastilhas de moeda como nos jogos de referência */
#top { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 10px calc(10px + var(--safe-l));
  background: linear-gradient(180deg, #0D4BB0, #093580); border-bottom: 3px solid #05204F; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
#top:empty { display: none; }
.brand img { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 0 var(--ink)); }
.chip { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px 3px 30px; min-height: 32px; border-radius: 999px; background: #fff; border: 3px solid var(--ink);
  font: 400 15px var(--f-display); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -4px 0 rgba(15,42,74,.12); }
.chip .ico-img { position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(15,42,74,.35)); }
.chip.gold { background: linear-gradient(#FFE27A, #FFC531); } .chip.blue { background: linear-gradient(#8FD0FF, #4AA3FF); color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.chip small { color: var(--texto-2); font: 700 11px var(--f-ui); -webkit-text-stroke: 0; }
.chip.plain { padding: 3px 10px; }
.bell { margin-left: auto; position: relative; padding: 2px; } .bell img { width: 34px; height: 34px; display: block; }
.bell.has::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font: 400 12px var(--f-display); border: 2px solid var(--ink); border-radius: 10px; padding: 0 6px; }
.gear img { width: 32px; height: 32px; display: block; }
#view { flex: 1; padding: 12px calc(14px + var(--safe-r)) calc(104px + var(--safe-b)) calc(14px + var(--safe-l)); }

/* barra inferior com ícones grandes e separador ativo elevado */
#tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20; display: flex; justify-content: space-around; align-items: stretch;
  padding: 0 0 var(--safe-b); background: linear-gradient(180deg, #0D4BB0, #082B6B); border-top: 3px solid #05204F; box-shadow: 0 -4px 0 rgba(0,0,0,.3); }
#tabs:empty { display: none; }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; color: #fff; font: 400 12px var(--f-display); padding: 8px 2px 8px; transition: transform .15s; }
#tabs a img { width: 38px; height: 38px; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
#tabs a span { opacity: 0; height: 0; overflow: hidden; }
#tabs a.on { background: linear-gradient(180deg, var(--yellow), var(--yellow-2)); color: var(--ink); border-left: 3px solid #04101E; border-right: 3px solid #04101E; }
#tabs a.on img { transform: translateY(-14px) scale(1.25); filter: drop-shadow(0 4px 0 rgba(15,42,74,.4)); }
#tabs a.on span { opacity: 1; height: auto; margin-top: -10px; }
.loading { display: grid; place-items: center; min-height: 50vh; } .loading img { width: 80px; animation: bob 1.2s ease-in-out infinite; filter: drop-shadow(0 4px 0 var(--ink)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px) scale(1.05); } }
.spin { animation: spin 3s linear infinite; }
.boot-err { text-align: center; padding: 40px; color: #fff; }

/* botões com relevo (amarelo principal, azul secundário, verde, vermelho) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 8px 18px 12px; border-radius: 16px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, #FFE98A 0%, var(--yellow) 45%, var(--yellow-2) 100%); color: var(--ink); font: 400 18px var(--f-display); letter-spacing: .03em; text-transform: uppercase;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.14), inset 0 3px 0 rgba(255,255,255,.55), 0 4px 0 var(--ink); cursor: pointer; transition: transform .1s; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), 0 1px 0 var(--ink); }
.btn:disabled { filter: grayscale(.8) brightness(.9); opacity: .7; cursor: not-allowed; }
.btn.sec { background: linear-gradient(180deg, #8FD0FF, var(--blue) 50%, var(--blue-2)); color: #fff; text-shadow: none; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.btn.go { background: linear-gradient(180deg, #A8F5A0, var(--green) 50%, var(--green-2)); color: #fff; text-shadow: none; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.btn.danger { background: linear-gradient(180deg, #FF9A90, var(--red) 50%, var(--red-2)); color: #fff; text-shadow: none; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.btn.small { min-height: 38px; padding: 4px 12px 8px; font-size: 15px; border-radius: 13px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.5), 0 3px 0 var(--ink); }
.btn.wide { width: 100%; margin: 6px 0; } .btn.big { min-height: 68px; font-size: 28px; border-radius: 20px; }
.link { background: none; border: 0; color: var(--blue-2); cursor: pointer; padding: 4px; font-weight: 800; }

/* painéis claros com contorno */
.card { background: var(--panel); border: 3px solid var(--ink); border-radius: var(--r); padding: 14px; margin: 12px 0; box-shadow: inset 0 -5px 0 var(--panel-3), 0 4px 0 rgba(15,42,74,.35); }
.card.link { display: block; color: var(--ink); font: 400 17px var(--f-display); }
.card.warn { background: #FFE8E6; } .warn-text { color: var(--red-2); font-weight: 800; } .gold-text { color: #B26A00; font-weight: 800; }
.row { display: flex; gap: 8px; align-items: center; } .row > .btn { flex: 1; } .row.wrap { flex-wrap: wrap; } .row.center { justify-content: center; } .row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; } .center { text-align: center; } .muted { color: var(--texto-2); } .small { font-size: 13px; }
#view > p.muted, #view > .muted, .page-note, .region > p, #view > p { color: #CFE3F7; text-shadow: 0 1px 0 var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font: 400 13px var(--f-display); color: var(--ink); }
.tag.gold { background: linear-gradient(#FFE27A, var(--gold)); } .tag.ok { background: var(--green); color: #fff; } .tag.blue { background: var(--blue); color: #fff; }

/* faixa de secção (como "Cannons 1/7 Unlocked") */
.banner-head { display: flex; align-items: center; margin: 18px 0 10px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 rgba(15,42,74,.35);
  background: linear-gradient(90deg, var(--cyan), var(--blue) 75%); }
.banner-head h2 { flex: 1; margin: 0; padding: 10px 14px; font-size: 24px; color: var(--ink); -webkit-text-stroke: 0; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.banner-head .count { background: #fff; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); padding: 6px 14px 6px 26px; text-align: center; font: 400 22px/1 var(--f-display); color: var(--ink); }
.banner-head .count small { display: block; font-size: 11px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.seg button { border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px 6px; min-height: 38px; background: #fff; color: var(--ink); font: 400 15px var(--f-display); cursor: pointer; box-shadow: inset 0 -3px 0 var(--panel-3), 0 3px 0 rgba(15,42,74,.35); }
.seg button.on { background: linear-gradient(#FFE98A, var(--yellow) 50%, var(--yellow-2)); } .seg button:disabled { opacity: .45; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; color: var(--ink); box-shadow: inset 0 -4px 0 var(--panel-3), 0 3px 0 rgba(15,42,74,.3); }
.item.locked { background: #DDE6F0; } .item.me { background: #FFF6CC; } .item.unread { background: #E6FBFF; }
.item .place { font: 400 22px var(--f-display); width: 30px; text-align: center; }
.av { width: 42px; height: 42px; object-fit: cover; object-position: 50% 0; border-radius: 12px; background: var(--panel-3); border: 2px solid var(--ink); }
.bar { height: 16px; background: #183D66; border-radius: 10px; overflow: hidden; border: 3px solid var(--ink); margin: 6px 0 3px; }
.bar i { display: block; height: 100%; background: linear-gradient(180deg, #A8F5A0, var(--green) 60%, var(--green-2)); border-radius: 6px; }
.pos { color: var(--green-2); font-family: var(--f-display); } .neg { color: var(--red-2); font-family: var(--f-display); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9FB4CC; border: 2px solid var(--ink); } .dot.online { background: var(--green); } .dot.in_game, .dot.in_room, .dot.in_queue { background: var(--aviso); }
.field { display: block; margin: 8px 0; } .field span { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; font-weight: 800; }
.page-head { display: flex; align-items: center; gap: 10px; } .page-head h1 { margin: 6px 0; }
.back { background: linear-gradient(#8FD0FF, var(--blue) 50%, var(--blue-2)); border: 3px solid var(--ink); width: 44px; height: 44px; border-radius: 14px; cursor: pointer; flex: none; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 0 var(--ink); }
.back img { width: 24px; height: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(104px + var(--safe-b)); transform: translate(-50%, 160%); max-width: 92%; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 16px; font: 400 16px var(--f-display); z-index: 60; transition: transform .3s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 4px 0 var(--ink); }
.toast.on { transform: translate(-50%, 0); } .toast.err { background: #FFE1DE; } .toast.ok { background: #DDFBE5; } .toast.chat { background: #FFF6CC; bottom: auto; top: calc(110px + var(--safe-t)); transform: translate(-50%, -300%); } .toast.chat.on { transform: translate(-50%, 0); }
#toasts .toast:nth-last-child(2) { opacity: .6; }
.modal { position: fixed; inset: 0; background: rgba(8, 28, 52, .62); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 18px; }
.modal-box { background: linear-gradient(180deg, #fff, var(--panel-2)); color: var(--ink); border: 4px solid var(--ink); border-radius: 24px; padding: 18px; width: 100%; max-width: 420px; max-height: 86vh; overflow: auto; box-shadow: 0 6px 0 var(--ink); animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.modal-box.wide { max-width: 720px; } .modal-box textarea, .modal-box select { margin: 6px 0; } .modal-text { font-size: 16px; }
.legend-modal { text-align: center; } .legend-modal .kicker { font: 400 14px var(--f-display); letter-spacing: .3em; color: var(--blue-2); } .legend-em { width: 190px; animation: pop 1s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* abertura e autenticação */
.auth { padding-top: calc(16px + var(--safe-t)); } .auth-logo { display: block; width: min(330px, 84%); margin: 14px auto 8px; filter: drop-shadow(0 5px 0 rgba(15,42,74,.45)); animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
.lang-switch { display: flex; justify-content: center; gap: 6px; } .lang-switch button { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px 4px; cursor: pointer; font: 400 15px var(--f-display); color: var(--ink); }
.lang-switch button.on { background: var(--yellow); } .links { text-align: center; font-size: 14px; }
.auth .card h2 { font-size: 24px; }

/* início */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .hello h1 { margin: 4px 0; }
.daily { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #FFF6CC, #fff); } .daily img { width: 54px; } .daily p { margin: 0; }
.play-hero { position: relative; border-radius: 24px; padding: 14px; margin: 12px 0; border: 3px solid #04101E; box-shadow: 0 5px 0 rgba(0,0,0,.4);
  background: radial-gradient(ellipse at 50% 70%, rgba(95,227,245,.45), transparent 55%), repeating-conic-gradient(from 0deg at 50% 62%, rgba(255,255,255,.06) 0 8deg, transparent 8deg 18deg), linear-gradient(180deg, #2A7FF0, #0F4BB5); background-color: #1A5FCC; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.play-hero .hero-stage { position: relative; height: 220px; display: grid; place-items: end center; }
.play-hero .hero-stage img.hero { height: 210px; position: relative; z-index: 1; filter: drop-shadow(0 6px 0 rgba(15,42,74,.25)); animation: bob 2.4s ease-in-out infinite; }
.pedestal { position: absolute; bottom: 0; width: 200px; height: 44px; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #fff, #CFE6FB 55%, #8DB6DF); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink-2); }
.region h2 { margin-top: 18px; }

/* coleção: cartas com crachá de nível, visto e cadeado */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ccard { position: relative; border: 3px solid var(--ink); border-radius: 16px; padding: 0; text-align: center; color: var(--ink); overflow: hidden; background: #fff; box-shadow: 0 4px 0 rgba(15,42,74,.45); }
.ccard .art { display: block; height: 128px; background: radial-gradient(circle at 50% 75%, rgba(255,255,255,.7), transparent 60%), linear-gradient(180deg, var(--c, #888), color-mix(in srgb, var(--c, #888) 55%, #0F2A4A)); position: relative; }
.ccard .art img { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); height: 132px; }
.ccard b { display: block; padding: 6px 4px 7px; font: 400 14px/1.1 var(--f-display); background: linear-gradient(#fff, var(--panel-2)); border-top: 3px solid var(--ink); }
.ccard small { display: none; }
.ccard .lv { position: absolute; top: 4px; right: 4px; z-index: 2; background: linear-gradient(#FFE98A, var(--gold)); border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; font: 400 13px var(--f-display); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.ccard .ty { position: absolute; top: 4px; left: 4px; z-index: 2; width: 26px; height: 26px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; display: grid; place-items: center; }
.ccard .inteam { position: absolute; top: -4px; left: -4px; z-index: 3; width: 34px; height: 34px; }
.ccard.locked .art { filter: saturate(.25) brightness(.55); } .ccard.locked .art img { filter: brightness(.35) contrast(1.2); }
.ccard.locked .lockbig { position: absolute; z-index: 3; left: 50%; top: 40px; transform: translateX(-50%); width: 56px; height: 56px; filter: drop-shadow(0 3px 0 var(--ink)); }
.ccard.locked b { background: #C9D6E4; }
.ccard.sel { outline: 4px solid var(--green); outline-offset: -1px; }
.char-hero { position: relative; text-align: center; height: 300px; display: grid; place-items: end center; margin: 6px 0 4px; }
.char-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, rgba(95,227,245,.35), transparent 50%), repeating-conic-gradient(from 0deg at 50% 70%, rgba(255,255,255,.12) 0 8deg, transparent 8deg 18deg); border-radius: 24px; -webkit-mask: radial-gradient(circle at 50% 70%, #000 30%, transparent 70%); mask: radial-gradient(circle at 50% 70%, #000 30%, transparent 70%); }
.char-hero img { position: relative; z-index: 1; height: 270px; filter: drop-shadow(0 6px 0 rgba(15,42,74,.3)); animation: bob 2.6s ease-in-out infinite; }
.char-hero .pedestal { width: 220px; left: 50%; transform: translateX(-50%); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .stages figure { margin: 0; text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px; box-shadow: 0 3px 0 rgba(15,42,74,.35); }
.stages img { width: 100%; height: 76px; object-fit: contain; } .stages figcaption { font: 400 11px var(--f-display); } .stages .locked { background: #C9D6E4; } .stages .locked img { filter: brightness(0) opacity(.45); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0; } .stats div { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 6px; text-align: center; box-shadow: inset 0 -4px 0 var(--panel-3), 0 3px 0 rgba(15,42,74,.3); }
.stats small { display: block; font-size: 11px; color: var(--texto-2); font-weight: 800; } .stats b { font: 400 22px var(--f-display); }
.stats .ico-img { width: 26px; height: 26px; display: block; margin: 0 auto 2px; }
.timeline { display: flex; overflow-x: auto; gap: 6px; padding: 4px 2px 10px; } .timeline div { flex: none; width: 108px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 8px; font-size: 11px; color: var(--texto-2); }
.timeline div.got { background: #DDFBE5; } .timeline b { display: block; color: var(--ink); font: 400 16px var(--f-display); }

/* equipa */
.team-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tslot { position: relative; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.65), transparent 55%), linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 50%, #0F2A4A)); border: 3px solid var(--ink); border-radius: 18px; padding: 6px; text-align: center; box-shadow: 0 4px 0 rgba(15,42,74,.45); }
.tslot.fourth { box-shadow: 0 0 0 3px var(--yellow), 0 4px 0 rgba(15,42,74,.45); } .tslot img { height: 112px; } .tslot b { display: block; font: 400 15px var(--f-display); color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.tslot select { margin-top: 4px; min-height: 36px; padding: 4px 8px; font-size: 13px; border-width: 2px; }
.tslot .nv { position: absolute; top: 6px; left: 6px; background: var(--yellow); border: 2px solid var(--ink); font: 400 13px var(--f-display); padding: 0 7px; border-radius: 8px; }

/* fila */
.searching { display: grid; place-items: center; padding: 30px 0 10px; } .searching img { width: 170px; filter: drop-shadow(0 6px 0 var(--ink)); }
#view > p.center { color: #fff; font: 400 18px var(--f-display); text-shadow: 0 2px 0 var(--ink); }

/* partida (HUD em painéis azul-marinho translúcidos) */
body.in-match #tabs, body.in-match #top { display: none; }
body.in-match #view { padding: 0; }
.match { position: fixed; inset: 0; max-width: 1100px; margin: 0 auto; overflow: hidden; color: #fff; --sc: #FFB020;
  background: radial-gradient(120% 70% at 50% 0, #1C6FE0, #0B3486 60%, #071E4E); --top: calc(122px + var(--safe-t)); --bot: calc(238px + var(--safe-b)); }
.board-area { position: absolute; inset: 0; }
.board-wrap { position: absolute; inset: 0; touch-action: none; } .board-canvas { width: 100%; height: 100%; display: block; }
.turn-glow { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--sc) 70%, transparent), inset 0 0 60px color-mix(in srgb, var(--sc) 45%, transparent); transition: box-shadow .5s; z-index: 1; }
.match.mine .turn-glow { animation: glowp 1.6s ease-in-out infinite alternate; }
@keyframes glowp { from { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--sc) 80%, transparent), inset 0 0 40px color-mix(in srgb, var(--sc) 35%, transparent); } to { box-shadow: inset 0 0 0 4px var(--sc), inset 0 0 90px color-mix(in srgb, var(--sc) 55%, transparent); } }
.replay-board { position: relative; height: 56vh; border-radius: 18px; overflow: hidden; margin-bottom: 10px; border: 3px solid var(--ink); }

/* topo */
.mtop { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 6px;
  background: linear-gradient(180deg, rgba(5,22,58,.92), rgba(5,22,58,.0)); }
.mbtn { position: relative; width: 46px; height: 46px; flex: none; border-radius: 15px; border: 3px solid var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0;
  background: linear-gradient(180deg, #5FB4FF, #2C7FE8 55%, #1A5FC4); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 0 var(--ink); }
.mbtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 1px 0 var(--ink); }
.mbtn.round { border-radius: 50%; width: 44px; height: 44px; }
.mbtn .mi { width: 24px; height: 24px; } .mbtn .glyph { font: 400 22px/1 var(--f-display); color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.burger { display: grid; gap: 4px; } .burger b { display: block; width: 20px; height: 4px; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 var(--ink); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; border: 2px solid var(--ink); font: 400 12px/16px var(--f-display); font-style: normal; }
.turnpill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 30%, #10316F), #0B2456); box-shadow: 0 3px 0 var(--ink), 0 0 0 0 var(--sc); transition: background .4s; }
.turnpill.mine { background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 85%, #fff), var(--sc)); color: var(--ink); animation: pillp 1.2s ease-in-out infinite alternate; }
@keyframes pillp { to { box-shadow: 0 3px 0 var(--ink), 0 0 18px 2px var(--sc); } }
.tp-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sc); border: 3px solid var(--ink); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.tp-txt { min-width: 0; line-height: 1.05; } .tp-txt b { display: block; font: 400 18px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turnpill:not(.mine) .tp-txt b { -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.tp-txt small { font-size: 11.5px; font-weight: 800; opacity: .9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tring { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; }
.tr-svg, .tr-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-svg .bg { fill: #0B2456; stroke: var(--ink); stroke-width: 7; } .tr-svg .fg { fill: none; stroke: var(--green); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; transition: stroke-dasharray .25s linear; }
.tring b { position: relative; font: 400 18px var(--f-display); font-variant-numeric: tabular-nums; }
.tring.alert .fg { stroke: var(--red); } .tring.alert { animation: beat .5s infinite alternate; } @keyframes beat { to { transform: scale(1.12); } }

/* jogadores */
.mseats { position: absolute; z-index: 5; left: 10px; right: 10px; top: calc(66px + var(--safe-t)); display: flex; gap: 6px; }
.ms { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 12px; border: 2px solid rgba(4,16,40,.9);
  background: rgba(8,30,74,.78); backdrop-filter: blur(6px); font: 400 13px var(--f-display); opacity: .8; transition: all .3s; }
.ms i { width: 22px; height: 22px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--sc); border: 2px solid var(--ink); }
.ms span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms b { background: #fff; color: var(--ink); border-radius: 7px; padding: 0 6px; font-weight: 400; min-width: 22px; text-align: center; }
.ms em { position: absolute; top: -8px; right: 4px; font-style: normal; font-size: 9.5px; background: var(--ink); padding: 0 5px; border-radius: 6px; letter-spacing: .04em; }
.ms.on { opacity: 1; border-color: var(--sc); background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 40%, #0B2456), #0B2456); box-shadow: 0 0 12px color-mix(in srgb, var(--sc) 70%, transparent); transform: translateY(-1px) scale(1.03); }
.ms.out { filter: grayscale(1); opacity: .45; } .ms.me span { color: var(--yellow); }

.mside { position: absolute; z-index: 5; right: 10px; top: calc(104px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; }
.mbubbles { position: absolute; z-index: 6; left: 12px; right: 64px; top: calc(110px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.bub { align-self: flex-start; max-width: 100%; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: 5px 10px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); animation: pop .3s cubic-bezier(.34,1.56,.64,1); transition: opacity .4s, transform .4s; }
.bub b { font-family: var(--f-display); font-weight: 400; } .bub.out { opacity: 0; transform: translateY(-8px); }

/* anúncios */
.mbanner { position: absolute; z-index: 7; left: 50%; top: 34%; transform: translate(-50%, -50%) scale(.8); width: min(88%, 420px); text-align: center; padding: 10px 14px;
  background: linear-gradient(180deg, #fff, #DCEBFF); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; font: 400 18px var(--f-display); opacity: 0; pointer-events: none;
  transition: all .28s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 5px 0 var(--ink), 0 10px 30px rgba(0,0,0,.35); }
.mbanner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); } .mbanner.gold { background: linear-gradient(#FFF3B0, var(--yellow)); } .mbanner.ok { background: linear-gradient(#E6FFEC, #A8F5A0); }
.turn-overlay { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.0), rgba(3,12,34,.0)); }
.turn-overlay.on { opacity: 1; background: radial-gradient(circle at 50% 45%, rgba(3,12,34,.15), rgba(3,12,34,.6)); }
.to-card { text-align: center; transform: scale(.6) rotate(-4deg); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.turn-overlay.on .to-card { transform: none; }
.to-kick { display: inline-block; font: 400 15px var(--f-display); letter-spacing: .12em; background: var(--ink); padding: 2px 14px; border-radius: 999px; color: #9CC7F0; }
.to-title { font: 400 44px/1 var(--f-display); margin: 8px 0; color: var(--sc); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink), 0 0 30px var(--sc); padding: 0 10px; }
.turn-overlay.mine .to-title { font-size: 54px; color: var(--yellow); }
.to-dice { display: inline-flex; align-items: center; gap: 8px; background: rgba(4,16,40,.85); border: 3px solid var(--ink); border-radius: 16px; padding: 4px 14px 4px 6px; }
.to-dice span { width: 40px; height: 36px; display: grid; place-items: end center; padding-bottom: 2px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(#B8F6FF, var(--cyan)); color: var(--ink); font: 400 20px var(--f-display); }
.to-dice small { font: 400 14px var(--f-display); }

/* confirmação */
.mconfirm { position: absolute; z-index: 7; left: 10px; right: 10px; bottom: calc(var(--bot) + 8px); background: linear-gradient(180deg, #fff, #E3F0FF); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  padding: 10px 12px; box-shadow: 0 4px 0 var(--ink), 0 10px 26px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .22s cubic-bezier(.34,1.56,.64,1); }
.mconfirm.on { transform: none; opacity: 1; pointer-events: auto; } .mconfirm p { margin: 0 0 8px; font: 400 16px/1.25 var(--f-display); } .mconfirm.busy, .mdock.busy { opacity: .6; pointer-events: none; }

/* dock inferior */
.mdock { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(6,24,62,.0), rgba(6,24,62,.86) 16%, #061A44); }
.dk-ap { display: flex; align-items: center; gap: 10px; }
.die { width: 46px; height: 42px; flex: none; display: grid; place-items: end center; padding-bottom: 4px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #DDFBFF, var(--cyan) 60%, #0FA3B5); }
.die span { font: 400 22px var(--f-display); color: var(--ink); }
.pips { flex: 1; } .pips small { font-size: 11px; font-weight: 800; color: #9CC7F0; text-transform: uppercase; letter-spacing: .06em; }
.pips div { display: flex; gap: 5px; margin-top: 2px; } .pips i { width: 22px; height: 22px; border-radius: 7px; background: #0B2456; border: 3px solid var(--ink); }
.pips i.on { background: linear-gradient(#FFF0A0, var(--yellow) 60%, var(--yellow-2)); box-shadow: 0 0 10px rgba(255,200,61,.7); }
.endturn { flex: none; min-height: 42px; padding: 4px 18px 8px; border-radius: 15px; border: 3px solid var(--ink); cursor: pointer; font: 400 18px var(--f-display); color: var(--ink);
  background: linear-gradient(180deg, #FFF0A0, var(--yellow) 55%, var(--yellow-2)); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -4px 0 rgba(0,0,0,.15), 0 4px 0 var(--ink); }
.endturn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); } .endturn.pulse { animation: beat .6s infinite alternate; }
.dk-hint { text-align: center; padding: 12px; font: 400 16px var(--f-display); color: #CFE6FF; }
.dk-unit { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.14); border-radius: 16px; padding: 4px 6px; }
.dk-port { width: 46px; height: 52px; object-fit: cover; object-position: 50% 8%; border-radius: 12px; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 40%, #8FD0FF, #2C7FE8); flex: none; }
.dk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-name { display: flex; align-items: center; gap: 6px; min-width: 0; } .dk-name b { font: 400 17px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-name .ty { width: 20px; height: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 1px; flex: none; }
.hpbar { position: relative; height: 16px; border-radius: 8px; background: #0B2456; border: 3px solid var(--ink); overflow: hidden; }
.hpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #A8F5A0, var(--green) 60%, var(--green-2)); }
.hpbar span { position: relative; display: block; text-align: center; font: 400 11px/10px var(--f-display); color: #fff; -webkit-text-stroke: .8px var(--ink); paint-order: stroke fill; }
.dk-hprow { display: flex; gap: 6px; align-items: center; } .dk-hprow .hpbar { flex: 1; min-width: 60px; }
.dk-stats { display: inline-flex; gap: 3px; flex: none; } .dk-stats span { display: inline-flex; align-items: center; gap: 2px; font: 400 13px var(--f-display); background: rgba(0,0,0,.28); padding: 0 6px 0 3px; border-radius: 7px; }
.dk-stats .si { width: 14px; height: 14px; } .dk-disg, .dk-warn { font-size: 11.5px; font-weight: 800; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tabs { display: flex; gap: 4px; flex: none; }
.dk-tab { position: relative; width: 34px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); background: linear-gradient(#2C5EA8, #163A78); padding: 0; overflow: hidden; cursor: pointer; opacity: .65; }
.dk-tab img { width: 150%; margin-left: -25%; margin-top: -3px; } .dk-tab i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--green); }
.dk-tab.on { opacity: 1; background: linear-gradient(#FFE27A, var(--yellow-2)); box-shadow: 0 0 8px rgba(255,200,61,.8); border-color: #fff; }
.dk-acts { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; } .dk-acts::-webkit-scrollbar { display: none; }
.abtn { position: relative; flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.ab-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #8FD0FF, #2C7FE8 60%, #1A4FA8); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(0,0,0,.2), 0 4px 0 var(--ink); transition: transform .15s; }
.ab-ic .ai { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(15,42,74,.6)); }
.abtn b { font: 400 12.5px/1.05 var(--f-display); text-align: center; -webkit-text-stroke: .8px var(--ink); paint-order: stroke fill; max-width: 74px; }
.abtn .cost { position: absolute; top: -2px; right: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: linear-gradient(#FFF0A0, var(--yellow)); color: var(--ink); border: 2px solid var(--ink); font: 400 13px/18px var(--f-display); font-style: normal; }
.abtn.on .ab-ic { background: radial-gradient(circle at 35% 30%, #FFF6C0, var(--yellow) 60%, #E59A00); transform: translateY(-3px) scale(1.06); box-shadow: inset 0 3px 0 rgba(255,255,255,.6), 0 4px 0 var(--ink), 0 0 16px rgba(255,200,61,.8); }
.abtn:disabled { opacity: .4; filter: grayscale(.8); cursor: default; }
.dk-wait { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 25%, #10316F), #0B2456); margin-bottom: 6px; }
.dk-wait b { font: 400 18px var(--f-display); display: block; } .dk-wait small { color: #9CC7F0; font-weight: 800; }
.dk-wav { width: 44px; height: 44px; border-radius: 50%; background: var(--sc); border: 3px solid var(--ink); display: grid; place-items: center; animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-4px); } }
.dots { margin-left: auto; display: flex; gap: 5px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: dot 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-6px); opacity: .5; } }

/* gaveta (chat / histórico) */
.mscrim { position: absolute; inset: 0; z-index: 9; background: rgba(3,12,34,.5); opacity: 0; pointer-events: none; transition: opacity .25s; } .mscrim.on { opacity: 1; pointer-events: auto; }
.mdrawer { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 72%; display: flex; flex-direction: column; gap: 8px; padding: 6px 12px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, #144FB0, #0A2C6E); border-top: 4px solid var(--ink); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.4); transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.9,.3,1.05); }
.mdrawer.on { transform: none; }
.dr-grab { width: 54px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); margin: 4px auto; cursor: pointer; }
.dr-tabs { justify-content: center; } .dr-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; flex: none; scrollbar-width: none; }
.qchip { flex: none; border: 3px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 12px 5px; font: 400 14px var(--f-display); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.chatlog.big { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: rgba(0,0,0,.2); border-radius: 16px; padding: 10px; }
.cl { align-self: flex-start; max-width: 86%; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: 5px 10px; }
.cl.me { align-self: flex-end; background: linear-gradient(#FFF0A0, var(--yellow)); border-radius: 14px 14px 4px 14px; }
.cl b { display: block; font: 400 12px var(--f-display); opacity: .8; } .cl-act { display: flex; gap: 6px; } .cl-act .link { font-size: 11px; padding: 0; color: #2C7FE8; }
.chatform { flex: none; gap: 6px; } .chatform input { flex: 1; min-height: 44px; }
.loglist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ll { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.ll .r { font: 400 12px var(--f-display); font-style: normal; background: var(--ink); color: #9CC7F0; border-radius: 6px; padding: 0 6px; min-width: 22px; text-align: center; }

/* pausa */
.pause h2 { text-align: center; margin-top: 0; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 3px solid var(--ink); border-radius: 16px; cursor: pointer; font: 400 13px/1.1 var(--f-display); color: var(--ink);
  background: linear-gradient(180deg, #fff, #DCEBFF); box-shadow: inset 0 -4px 0 rgba(15,42,74,.12), 0 3px 0 var(--ink); }
.ptile span { font-size: 24px; line-height: 28px; } .ptile .mi { width: 28px; height: 28px; }
.help { padding-left: 0; list-style: none; display: grid; gap: 10px; } .help li { display: flex; gap: 10px; align-items: center; }
.help .sw { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); flex: none; font-style: normal; display: grid; place-items: center; }
.help .sw.die { background: var(--cyan); clip-path: polygon(50% 0, 100% 100%, 0 100%); font: 400 12px var(--f-display); padding-top: 6px; }
.board2d { position: absolute; inset: var(--top, 6px) 6px var(--bot, 6px); display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 4px; max-width: calc((100vh - 330px) * 1); margin: 0 auto; }
.c2 { position: relative; border: 2px solid rgba(15,42,74,.35); border-radius: 9px; background: #D7ECFF; box-shadow: 0 4px 0 #3F7FC4; padding: 0; cursor: pointer; display: grid; place-items: center; overflow: visible; }
.board2d[data-map="ilhas"] .c2 { background: #B8F27A; box-shadow: 0 4px 0 #5E8F12; } .board2d[data-map="floresta"] .c2 { background: #5BD47E; box-shadow: 0 4px 0 #1C6E39; }
.c2.alt { filter: brightness(.93); } .c2.t-void { visibility: hidden; } .c2.t-obstacle::after { content: "▲"; font-size: 22px; color: var(--ink); }
.c2.t-gate_closed::after { content: "🔒"; } .c2.t-gate_open::after { content: "⛩"; opacity: .6; } .c2.t-water_high { background: #1D8FE0 !important; } .c2.t-water_low { background: #7FD3FF !important; } .c2.t-bridge { background: var(--yellow) !important; } .c2.t-barrier::after { content: "▦"; color: #7E22CE; font-size: 22px; }
.c2.pending::before { content: "⏳"; position: absolute; top: -6px; right: -3px; font-size: 11px; z-index: 2; }
.c2.dest { outline: 3px dashed var(--hl); background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--hl) 50%, transparent) 0 5px, transparent 5px 10px); }
.c2.dest[data-label]::after { content: attr(data-label); position: absolute; bottom: 1px; right: 3px; font: 400 12px var(--f-display); color: var(--ink); }
.c2.route { box-shadow: inset 0 0 0 3px #fff, 0 4px 0 #3F7FC4; } .c2.sel { outline: 4px solid var(--yellow); } .c2.target { background: #FF9A90 !important; }
.c2 .obj { position: absolute; inset: 22% 30%; background: var(--oc); clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%); }
.c2 .u2 { position: absolute; bottom: 6%; height: 140%; pointer-events: none; z-index: 1; } .c2 .ring2 { position: absolute; bottom: 0; width: 80%; height: 24%; border: 3px solid var(--sc); border-radius: 50%; }
.c2 .disg2 { position: absolute; top: -4px; left: -4px; font-size: 12px; z-index: 2; }

/* resultado com estrelas */
.result { text-align: center; }
.res-title { text-align: center; font: 400 48px var(--f-display); margin: 18px 0 4px; color: #fff; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
.res-title.win { color: var(--yellow); } .res-title.lose { color: #DCEBFA; } .res-title.draw { color: var(--cyan); }
.stars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 4px 0 6px; } .stars img { width: 64px; height: 64px; filter: drop-shadow(0 3px 0 rgba(15,42,74,.4)); animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
.stars img:nth-child(2) { width: 84px; height: 84px; animation-delay: .15s; } .stars img:nth-child(3) { animation-delay: .3s; }
.result p.center.muted { color: #EAF6FF; text-shadow: 0 1px 0 var(--ink); }
.gold-card { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, #FFF3B0, #fff); text-align: left; }

/* perfil e conversa */
.profile-card { border-width: 4px; background: radial-gradient(circle at 50% 30%, #fff, var(--panel-2)); } .feat { height: 120px; } .rings { display: flex; align-items: center; gap: 2px; font: 400 16px var(--f-display); }
.chatlog { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; } .chatlog.big { max-height: calc(100vh - 270px); min-height: 40vh; background: rgba(255,255,255,.08); border: 3px solid var(--ink); border-radius: 18px; padding: 10px; }
.msg { align-self: flex-start; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 8px 12px; border-radius: 16px 16px 16px 4px; max-width: 80%; } .msg.mine { align-self: flex-end; background: #FFF6CC; border-radius: 16px 16px 4px 16px; }
.msg small { display: block; font-size: 10px; color: var(--texto-2); }
.modal-box .chatlog div { color: var(--ink); }

@media (min-width: 900px) {
  #app { max-width: 1100px; } #tabs { max-width: 1100px; }
  .cgrid { grid-template-columns: repeat(6, 1fr); }
  .team-slots { grid-template-columns: repeat(4, 1fr); }
  .match { max-width: none; }
  .board2d { max-width: calc((100vh - 40px) * 1); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.chatform .btn { flex: none; width: 58px; padding: 0; }

/* ================= disputa de lugar (luta de empurrão) ================= */
.duel { position: absolute; inset: 0; z-index: 11; display: none; flex-direction: column; align-items: center; gap: 10px; padding: calc(14px + var(--safe-t)) 14px calc(16px + var(--safe-b)); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 35%, #FF8A1F 0%, #C2410C 22%, #4C1D95 58%, #1E0B4B 100%); color: #fff; }
.duel.on { display: flex; animation: duelIn .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes duelIn { from { transform: scale(1.15); opacity: 0; } }
.du-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.du-bg i { position: absolute; left: -20%; width: 140%; height: 3px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: speed 0.9s linear infinite; }
.du-bg i:nth-child(1) { top: 18%; } .du-bg i:nth-child(2) { top: 31%; animation-delay: .3s; } .du-bg i:nth-child(3) { top: 47%; animation-delay: .1s; }
.du-bg i:nth-child(4) { top: 62%; animation-delay: .5s; } .du-bg i:nth-child(5) { top: 74%; animation-delay: .2s; } .du-bg i:nth-child(6) { top: 88%; animation-delay: .65s; }
@keyframes speed { from { transform: translateX(-30%) scaleX(.4); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(30%) scaleX(1); opacity: 0; } }
.du-top { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.du-title { display: flex; align-items: center; gap: 8px; font: 400 26px var(--f-display); letter-spacing: .04em; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.du-title img { width: 34px; }
.du-paused { font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); padding: 2px 10px; border-radius: 999px; }
.du-timer { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 400 28px var(--f-display); background: #fff; color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.du-timer.alert { background: var(--red); color: #fff; animation: beat .4s infinite alternate; }
.du-arena { --shift: 0%; position: relative; width: 100%; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.du-arena > .du-f:first-child { transform: translateX(var(--shift)); } .du-arena > .du-f:last-child { transform: translateX(var(--shift)); }
.du-arena .du-clash { transform: translateX(var(--shift)); }
.du-f { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .08s linear; }
.du-glow { position: absolute; top: 4%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sc) 85%, #fff), transparent 65%); opacity: .55; }
.du-img { position: relative; width: 100%; max-width: 190px; max-height: 34vh; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(15,26,58,.55)); animation: brace .35s ease-in-out infinite alternate; }
.du-f:last-child .du-img { transform: scaleX(-1); animation-name: braceR; }
@keyframes brace { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-4px); } }
@keyframes braceR { from { transform: scaleX(-1) rotate(-3deg); } to { transform: scaleX(-1) rotate(3deg) translateY(-4px); } }
.lwin .du-f:first-child .du-img, .rwin .du-f:last-child .du-img { animation-duration: .18s; }
.du-name { position: relative; margin-top: -6px; font: 400 18px var(--f-display); background: var(--sc); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 0 12px 2px; box-shadow: 0 3px 0 var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.du-tags span { display: inline-flex; align-items: center; gap: 3px; font: 400 12px var(--f-display); background: rgba(15,26,58,.75); border-radius: 8px; padding: 2px 7px; }
.du-ty img { width: 14px; height: 14px; } .du-lv.q { background: var(--yellow); color: var(--ink); }
.du-cn { font-size: 12px; font-weight: 800; opacity: .85; margin-top: 2px; }
.du-clash span { display: grid; place-items: center; width: 60px; height: 60px; font: 400 26px var(--f-display); color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  background: radial-gradient(circle, #fff 0 30%, transparent 70%); animation: clash .25s ease-in-out infinite alternate; }
@keyframes clash { to { transform: scale(1.18) rotate(8deg); } }
.du-bar { position: relative; width: 100%; height: 30px; border-radius: 15px; border: 4px solid var(--ink); overflow: hidden; background: #1E0B4B; box-shadow: 0 4px 0 var(--ink); flex: none; }
.du-fl, .du-fr { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 60%, #fff), var(--sc)); }
.du-fl { left: 0; width: 50%; } .du-fr { right: 0; width: 50%; filter: saturate(.9); }
.du-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); box-shadow: 0 0 14px #fff; z-index: 2; }
.du-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.6); }
.du-ctrl { width: 100%; display: flex; gap: 14px; flex: none; }
.du-btn { flex: 1; height: min(26vh, 150px); border-radius: 26px; border: 4px solid var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 40% 30%, #FFF3B0, var(--yellow) 55%, #E59A00); box-shadow: inset 0 4px 0 rgba(255,255,255,.6), inset 0 -8px 0 rgba(0,0,0,.18), 0 7px 0 var(--ink); color: var(--ink); }
.du-btn.r { background: radial-gradient(circle at 40% 30%, #FFD0D6, #FF6B7A 55%, #D83A4F); }
.du-btn img { width: 56px; pointer-events: none; } .du-btn b { font: 400 22px var(--f-display); pointer-events: none; }
.du-btn.hit { animation: hit .12s ease-out; } @keyframes hit { 50% { transform: translateY(6px) scale(.96); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 var(--ink); } }
.du-btn.wrong { animation: wrong .25s; } @keyframes wrong { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.du-watch { font: 400 20px var(--f-display); background: rgba(0,0,0,.3); border-radius: 18px; padding: 16px 22px; }
.du-hint { margin: 0; text-align: center; font-weight: 800; font-size: 14px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.du-risk { margin: -6px 0 0; font-size: 12px; font-weight: 800; color: #FFE27A; }
.du-count { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 400 120px var(--f-display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); opacity: 0; }
.du-count.on { opacity: 1; animation: countp .9s ease-out infinite; } .du-count.go { font-size: 74px; color: var(--yellow); animation: none; } .du-count.out { opacity: 0; transition: opacity .3s; }
@keyframes countp { from { transform: scale(1.6); } 30% { transform: scale(1); } }
.du-result { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 10px; text-align: center; background: radial-gradient(circle, rgba(15,10,40,.35), rgba(15,10,40,.8)); pointer-events: none; z-index: 3; }
.duel.place .du-result { display: grid; }
.dr-big { font: 400 60px var(--f-display); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
.dr-big.win { color: var(--yellow); } .dr-big.lose { color: #FF8FA3; } .dr-sub { font: 400 18px var(--f-display); background: var(--ink); padding: 4px 14px; border-radius: 999px; }
.du-mini { display: none; }
.duel.mini { inset: auto 10px auto 10px; top: calc(104px + var(--safe-t)); padding: 10px 12px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); animation: none; gap: 0; }
.duel.mini > *:not(.du-mini) { display: none !important; } .duel.mini .du-mini { display: flex; align-items: center; gap: 10px; width: 100%; font: 400 15px/1.2 var(--f-display); }
.du-mini b { flex: 1; font-weight: 400; } .dm-t { background: #fff; color: var(--ink); border-radius: 10px; padding: 2px 8px; border: 2px solid var(--ink); }

/* ================= tutorial ================= */
.coach { position: absolute; z-index: 7; left: 10px; right: 64px; top: calc(104px + var(--safe-t)); display: none; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #E3F0FF); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink), 0 10px 24px rgba(0,0,0,.3); }
.coach.on { display: flex; animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.co-av { width: 48px; height: 56px; object-fit: cover; object-position: 50% 6%; border-radius: 12px; border: 3px solid var(--ink); background: radial-gradient(circle, #FFE27A, #F5A623); flex: none; }
.co-body { flex: 1; min-width: 0; } .co-body p { margin: 2px 0 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.co-step { display: flex; align-items: center; gap: 6px; font: 400 12px var(--f-display); color: #2C7FE8; }
.co-dots { display: flex; gap: 3px; } .co-dots i { width: 7px; height: 7px; border-radius: 50%; background: #C9DAF0; } .co-dots i.d { background: var(--green); } .co-dots i.c { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.co-btns { display: flex; gap: 8px; align-items: center; } .co-btns .link { color: #2C7FE8; }
@keyframes focusp { 0%, 100% { box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 4px 0 var(--ink), 0 0 0 0 rgba(255,200,61,.9); } 50% { box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 4px 0 var(--ink), 0 0 0 10px rgba(255,200,61,0); } }
.match[data-focus="move"] .abtn[data-m="move"] .ab-ic, .match[data-focus="attack"] .abtn[data-m="attack"] .ab-ic, .match[data-focus="push"] .abtn[data-m="push"] .ab-ic,
.match[data-focus="defend"] .abtn[data-m="defend"] .ab-ic, .match[data-focus="ability"] .abtn[data-m="ability"] .ab-ic, .match[data-focus="end"] .endturn { animation: focusp 1.1s infinite; }
.tut-card { background: linear-gradient(180deg, #FFF6C8, #FFE27A); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; box-shadow: 0 4px 0 var(--ink); }
.tut-card p { margin: 4px 0 0; font-weight: 700; }
.tut-done { text-align: center; } .td-burst { font-size: 64px; animation: pop .6s cubic-bezier(.34,1.56,.64,1); }

/* ================= regras, mais jogos ================= */
.rules { display: grid; gap: 10px; }
.rule { background: linear-gradient(#FFFFFF, #EEF5FF); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; box-shadow: 0 5px 0 rgba(15,42,74,.35); }
.modal .rule { background: #EEF5FF; border-color: #D3E3F7; color: var(--ink); }
.rule.hot { background: linear-gradient(135deg, #FFF1DE, #F1E8FF); border-color: #FF8A1F; }
.rule-h { display: flex; align-items: center; gap: 8px; } .rule-h img { width: 28px; height: 28px; } .rule-h h3 { margin: 0; font-size: 18px; }
.rule p { margin: 6px 0 0; line-height: 1.45; font-weight: 600; }
.btn.more-games { margin-top: 14px; background: linear-gradient(180deg, #C4B5FD, #8B5CF6 55%, #6D28D9); color: #fff; }
.mg-ic { display: inline-grid; grid-template-columns: 9px 9px; gap: 3px; margin-right: 8px; vertical-align: middle; }
.mg-ic i { width: 9px; height: 9px; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 rgba(15,26,58,.6); }
.mg-ic.dark i { background: #8B5CF6; border: 1.5px solid var(--ink); } .ptile .mg-ic { margin: 4px 0; }
a.ptile { text-decoration: none; }
.segsub { display: block; font-size: 11px; opacity: .8; }
.board2d .cell.chal { box-shadow: inset 0 0 0 3px #FF8A1F, 0 0 10px #FF8A1F; }

@media (min-width: 700px) {
  .du-img { max-width: 300px; max-height: 40vh; } .du-title { font-size: 34px; } .du-btn { height: 180px; max-width: 360px; } .du-ctrl { justify-content: center; max-width: 760px; }
  .du-bar { max-width: 760px; } .mdock { max-width: 760px; margin: 0 auto; } .mconfirm { max-width: 600px; margin: 0 auto; } .coach { max-width: 560px; }
}

/* ================= cenários ================= */
.mthumb { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; aspect-ratio: 1/1; width: 100%; padding: 3px; border-radius: 8px; background: #0B2456; }
.mthumb.t-ilhas { background: #2E8FE8; } .mthumb.t-cristal { background: #1E2F9E; } .mthumb.t-floresta { background: #0E5E45; }
.mthumb i { border-radius: 2px; } .mthumb i.fl { box-shadow: inset 0 0 0 2px #FFC83D; }
.mthumb.rnd { display: grid; place-items: center; font: 400 34px var(--f-display); color: #fff; grid-template-columns: 1fr; }
.mpick { display: flex; flex-direction: column; gap: 6px; }
.mp-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.mp-card { flex: none; width: 92px; display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 6px; border-radius: 14px; border: 3px solid var(--ink); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.mp-card b { font: 400 11.5px/1.1 var(--f-display); text-align: center; } .mp-card small { color: var(--yellow); font-size: 10px; }
.mp-card.on { background: linear-gradient(#FFE27A, var(--yellow-2)); color: var(--ink); box-shadow: 0 0 10px rgba(255,200,61,.7); } .mp-card.on small { color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 14px; border: 3px solid var(--ink); background: rgba(255,255,255,.1); text-align: center; }
.mcard b { font: 400 12px/1.1 var(--f-display); } .mcard small { font-size: 10px; color: #CFE6FF; }
.mcard.locked .mthumb { filter: grayscale(1) brightness(.5); } .mcard.locked b { opacity: .6; }
.mc-n { position: absolute; top: 2px; left: 2px; background: var(--ink); color: var(--yellow); font: 400 11px var(--f-display); border-radius: 8px; padding: 0 5px; }
.flag2 { position: absolute; top: -4px; right: -2px; font-size: 18px; filter: drop-shadow(0 0 3px var(--fc)); }
.ms em.def { background: var(--red); }
.mseats:has(.ms:nth-child(4)) .ms span { display: none; } .mseats:has(.ms:nth-child(4)) .ms { justify-content: space-between; }

/* ================= resultado: ações, estatísticas, confronto, ranking ================= */
.res-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.res-actions .row { gap: 10px; } .res-actions .row.wrap { row-gap: 10px; }
.res-stats h3 { margin: 0 0 8px; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.14); }
.modal .stile { background: #EEF5FF; border-color: #D3E3F7; color: var(--ink); }
.stile i { font-style: normal; font-size: 20px; } .stile b { font: 400 22px var(--f-display); } .stile small { font-size: 10.5px; font-weight: 800; opacity: .85; text-align: center; line-height: 1.1; }
.stile.zero { opacity: .45; }
.stat-meta { margin: 8px 0 4px; text-align: center; }
.stat-cmp { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.stat-cmp th, .stat-cmp td { padding: 5px 6px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); } .stat-cmp td:first-child { text-align: left; font-weight: 700; }
.stat-cmp th { font: 400 13px var(--f-display); } .stat-cmp td.best { color: var(--yellow); font-weight: 900; }
.h2h-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); margin: 8px 0 12px; background: #ddd; }
.h2h-bar i.w { background: var(--green); } .h2h-bar i.d { background: #A9B9CC; } .h2h-bar i.l { background: var(--red); }
.h2h h4 { margin: 12px 0 6px; } .h2h .item { color: var(--ink); background: #F3F8FF; } .h2h .pos { color: #16A34A; } .h2h .neg { color: #DC2626; }
.around-pos { text-align: center; font: 400 26px var(--f-display); color: var(--ink); margin-bottom: 8px; }
.around-list { max-height: 55vh; overflow-y: auto; } .around .item { color: var(--ink); background: #F3F8FF; }
.around .item.me { background: linear-gradient(#FFF3B0, var(--yellow)); border: 2px solid var(--ink); font-weight: 900; }

/* ---------------- construtor de arenas */
.btn.build { background: linear-gradient(180deg, #FFD7A0, #FF9F43 50%, #E67E22); color: #fff; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.btn.build .ico-img, .b-promo .ico-img { width: 26px; height: 26px; }
.b-promo { display: flex; gap: 12px; align-items: center; margin-top: 14px; } .b-promo .ico-img { width: 48px; height: 48px; }
.seg.tabs button { flex: 1; }
.b-how ol { margin: 6px 0 0; padding-left: 20px; } .b-how li { margin: 2px 0; font-size: 13.5px; }
.b-list { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 700px) { .b-list { grid-template-columns: 1fr 1fr; } }
.b-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 10px; border-radius: var(--r); border: 3px solid var(--ink); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 0 rgba(15,42,74,.35); }
div.b-card { cursor: default; }
.b-card .mthumb { width: 74px; flex: none; }
.b-card b { font: 400 17px var(--f-display); display: block; }
.b-card .row { margin-top: 6px; gap: 6px; }
.b-note { background: #FFF4D6; border-radius: 10px; padding: 6px 8px; margin: 6px 0 0; }
.tag.st-draft { background: var(--panel-3); } .tag.st-pending { background: var(--aviso); color: var(--ink); } .tag.st-approved { background: var(--green); color: #fff; } .tag.st-rejected { background: var(--red); color: #fff; }
.tag.bad { background: var(--red); color: #fff; }
.mthumb i.ob { box-shadow: inset 0 0 0 2px #FFD23F; background-image: radial-gradient(circle, #FFD23F 30%, transparent 32%) !important; }
.mthumb.big { max-width: 320px; margin: 0 auto 12px; }

.bed { display: grid; gap: 12px; }
@media (min-width: 900px) { .bed { grid-template-columns: minmax(340px, 460px) 1fr; align-items: start; } .bed-main { position: sticky; top: 70px; } }
.bed-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; aspect-ratio: 1/1; width: 100%; max-width: 460px; margin: 0 auto; padding: 6px; border-radius: 16px; border: 4px solid var(--ink);
  background: #1E2F9E; touch-action: none; user-select: none; box-shadow: 0 6px 0 rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.15); }
.bed-board.t-ilhas { background: #2E8FE8; } .bed-board.t-floresta { background: #0E5E45; }
.bc { position: relative; border-radius: 6px; display: grid; place-items: center; cursor: crosshair; overflow: hidden; }
.b-floor, .sw.b-floor { background: #C4E6FF; } .bc.b-floor.alt { background: #A8D4FA; }
.t-ilhas .b-floor { background: #8BD84A; } .t-ilhas .bc.b-floor.alt { background: #79C93C; }
.t-floresta .b-floor { background: #52C46A; } .t-floresta .bc.b-floor.alt { background: #45B25C; }
.b-void { background: radial-gradient(circle at 50% 40%, #0B1630, #02060F 70%); box-shadow: inset 0 3px 6px rgba(0,0,0,.8); }
.b-obstacle { background: radial-gradient(circle at 35% 30%, #9FB3C8, #5E7189 55%, #3A4A60); box-shadow: inset 0 -4px 0 rgba(0,0,0,.3); }
.b-bridge { background: repeating-linear-gradient(90deg, #D99A55 0 7px, #A86A2E 7px 9px); box-shadow: inset 0 3px 0 #7A4A1E, inset 0 -3px 0 #7A4A1E; }
.b-gate_open { background: #C4E6FF; box-shadow: inset 4px 0 0 #3B6FE0, inset -4px 0 0 #3B6FE0; }
.b-gate_closed { background: repeating-linear-gradient(90deg, #3B6FE0 0 5px, #1D3F9A 5px 8px); }
.b-water_low { background: repeating-linear-gradient(160deg, #7FD8FF 0 6px, #5CC8FF 6px 12px); }
.b-water_high { background: repeating-linear-gradient(160deg, #2C86F0 0 6px, #1D5FC0 6px 12px); }
.b-erase { background: #fff; color: var(--red); }
.bflag { position: absolute; inset: 6%; border-radius: 50%; background: var(--tc); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.bflag img { width: 70%; height: 70%; filter: drop-shadow(0 1px 0 #fff); }
.bflag b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); font: 400 11px/12px var(--f-display); text-align: center; }
.bobj { width: 76%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: linear-gradient(#FFE98A, var(--yellow-2)); font: 400 15px var(--f-display); color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.bobj.o-tower { background: linear-gradient(#FFE98A, #FFB020); font-size: 17px; } .bobj.o-depot { background: linear-gradient(#C5F5FF, #5FE3F5); } .bobj.o-position { background: linear-gradient(#FFFFFF, #D3E7FB); }
.bmove { position: absolute; top: 1px; left: 2px; font: 400 10px var(--f-display); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.bed-legend { text-align: center; margin-top: 6px; color: #DCEBFF; }
.btools { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.btool { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 12px; border: 3px solid var(--panel-line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.btool small { font-size: 10.5px; line-height: 1.1; text-align: center; font-weight: 800; }
.btool.on { border-color: var(--ink); background: linear-gradient(#FFF6C8, #FFE27A); box-shadow: 0 3px 0 var(--ink); }
.btool .sw { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; position: relative; font-style: normal; font: 400 18px var(--f-display); }
.btool .sw .bflag, .btool .sw .bobj { position: static; width: 28px; height: 28px; inset: auto; }
.btool .sw .bflag b { right: -8px; bottom: -8px; }
.bed-meta .seg button.thm-ilhas { box-shadow: inset 0 -6px 0 #79C93C; } .bed-meta .seg button.thm-cristal { box-shadow: inset 0 -6px 0 #A8D4FA; } .bed-meta .seg button.thm-floresta { box-shadow: inset 0 -6px 0 #2E8A4A; }
.bchk { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 5px; }
.bchk li { padding: 7px 10px; border-radius: 10px; font-size: 13.5px; } .bchk .err { background: #FFE1DE; } .bchk .warn { background: #FFF1CC; } .bchk .ok { background: #DDF8E6; }
.bed-actions { position: sticky; bottom: calc(8px + var(--safe-b)); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px; margin-top: 12px; border-radius: var(--r); background: rgba(13,36,64,.92); border: 3px solid var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.bed-actions .btn { flex: 1 1 140px; }
.bed-actions .btn.danger-t { flex: 0 0 auto; }
.bed-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.arena-view { display: grid; gap: 12px; }
.res-earn { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.res-earn .earn { display: flex; flex-direction: column; align-items: center; min-width: 120px; padding: 6px 12px; border-radius: 14px; background: var(--panel-2); }
.res-earn .earn b { font: 400 26px var(--f-display); color: var(--blue-2); } .res-earn .earn b.pos { color: var(--green-2); } .res-earn .earn b.neg { color: var(--red-2); }
.res-earn p { flex-basis: 100%; margin: 4px 0 0; }
.bed-actions { gap: 6px; padding: 8px; bottom: calc(76px + var(--safe-b)); }
.bed-actions .btn { flex: 1 1 calc(50% - 6px); min-height: 40px; font-size: 14px; padding: 6px 8px; }
.bed-actions .btn.danger-t { flex: 0 0 48px; }
@media (min-width: 900px) { .bed-actions { bottom: 12px; } .bed-actions .btn { flex: 1 1 auto; } }
.bed-tools { margin-top: 10px; }
.bed-tools h3 { margin: 6px 0 2px; }
@media (max-width: 899px) {
  .bed-tools .btools { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .bed-tools .btool { flex: 0 0 72px; scroll-snap-align: start; }
}
@media (min-width: 900px) { .bed-main { position: static; } }
.bed > *, .bed-main, .bed-side { min-width: 0; }
.bed-board { max-width: min(460px, 100%); }
@media (max-width: 899px) {
  .bed-actions { flex-wrap: nowrap; padding: 6px; gap: 5px; }
  .bed-actions .btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px 3px; font-size: 11px; line-height: 1.1; white-space: normal; flex-direction: column; }
  .bed-actions .btn.danger-t { flex: 0 0 40px; }
}

/* ---------------- ficha de personagem, guia, avisos */
.dk-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dk-cls { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.16); color: #DCEBFF; }
.dk-info-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 400 13px/1 var(--f-display); cursor: pointer; padding: 0; }
.cf-who { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 1px 8px 1px 2px; border-radius: 999px; background: var(--panel-2); }
.cf-who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; }
.usheet .us-head { display: flex; gap: 12px; align-items: center; }
.usheet .us-port { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; background: var(--panel-2); border: 3px solid var(--ink); }
.usheet h3 { margin: 0 0 4px; } .usheet .tag img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
.tag.cls-vanguard { background: #CFE6FF; } .tag.cls-saboteur { background: #FFD9C7; } .tag.cls-scout { background: #D6F7D9; }
.us-vs { display: grid; gap: 6px; margin: 8px 0; font-size: 13.5px; } .us-vs .win { background: #DDF8E6; border-radius: 10px; padding: 6px 8px; } .us-vs .lose { background: #FFE1DE; border-radius: 10px; padding: 6px 8px; }
.us-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
.us-stat { background: var(--panel-2); border-radius: 10px; padding: 4px; text-align: center; } .us-stat small { display: block; font-size: 10.5px; color: var(--texto-2); } .us-stat b { font: 400 16px var(--f-display); }
.us-abil { display: grid; gap: 6px; } .us-ab { background: var(--panel-2); border-radius: 12px; padding: 7px 10px; } .us-ab .cost { float: right; font-size: 12px; font-weight: 900; color: var(--blue-2); } .us-ab p { margin: 2px 0 0; }
.type-tri { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 4px 10px; justify-items: center; align-items: center; margin: 6px 0; }
.type-tri .tt-node { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 14px; border: 3px solid var(--panel-line); background: #fff; min-width: 96px; }
.type-tri .tt-node img { width: 28px; height: 28px; } .type-tri .tt-node b { font: 400 14px var(--f-display); }
.type-tri .tt-node.on { border-color: var(--ink); background: linear-gradient(#FFF6C8, #FFE27A); }
.type-tri .tt-vanguard { grid-column: 1 / 3; grid-row: 1; } .type-tri .tt-scout { grid-column: 2; grid-row: 3; } .type-tri .tt-saboteur { grid-column: 1; grid-row: 3; }
.type-tri .tt-a { font-style: normal; font: 400 20px var(--f-display); color: var(--green-2); }
.type-tri .a1 { grid-column: 2; grid-row: 2; transform: rotate(60deg); } .type-tri .a2 { grid-column: 1 / 3; grid-row: 3; transform: rotate(180deg); z-index: 1; } .type-tri .a3 { grid-column: 1; grid-row: 2; transform: rotate(-60deg); }
.type-tri p { grid-column: 1 / 3; grid-row: 4; text-align: center; margin: 4px 0 0; }
.guide { display: grid; gap: 12px; margin: 12px 0; }
.gsec .gs-h { display: flex; align-items: center; gap: 8px; } .gsec .gs-h h3 { margin: 0; } .gsec .gs-h .ico-img { width: 28px; height: 28px; }
.gs-n { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font: 400 14px var(--f-display); }
.g-classes { display: grid; gap: 8px; } .g-cls { border-radius: 14px; padding: 8px 10px; } .g-cls.cls-vanguard { background: #E6F2FF; } .g-cls.cls-saboteur { background: #FFEDE4; } .g-cls.cls-scout { background: #E7FAEA; }
.g-cls > b { display: flex; align-items: center; gap: 6px; font: 400 17px var(--f-display); } .g-cls > b img { width: 22px; }
.g-chars { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; } .g-chars a { flex: none; width: 62px; text-align: center; color: var(--ink); text-decoration: none; }
.g-chars img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; border: 2px solid var(--panel-line); } .g-chars small { font-size: 10px; display: block; line-height: 1.1; }
.g-costs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .g-costs span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); font-weight: 800; font-size: 13px; }
.g-costs .ico-img { width: 18px; height: 18px; } .g-costs b { color: var(--blue-2); }
.guide-card { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: linear-gradient(#FFF8D9, #FFE9A0); }
.live-match { background: linear-gradient(#C8FFD8, #7BE89A) !important; font-weight: 900; animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 50% { box-shadow: 0 0 0 6px rgba(76,217,100,.45); } }
.td-steps { text-align: left; font-size: 13.5px; margin: 6px 0 12px; padding-left: 20px; } .td-steps li { margin: 4px 0; }
.help h4, .modal-box h4 { margin: 12px 0 4px; }

/* ---------------- sem zoom e sem sair da página */
html, body { touch-action: pan-x pan-y; overflow-x: clip; max-width: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#app, #view, .page { max-width: 100vw; overflow-x: clip; }
input, select, textarea { font-size: 16px; }
img, svg, canvas { max-width: 100%; }
.card, .gsec, .modal-box { overflow-wrap: anywhere; min-width: 0; }

/* ---------------- 2D: vida, tipo e estados */
.c2 .hp2 { position: absolute; left: 6%; right: 6%; top: -7px; height: 9px; border-radius: 6px; background: rgba(15,26,58,.75); border: 1.5px solid #0F1A3A; z-index: 3; overflow: hidden; pointer-events: none; }
.c2 .hp2 i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#7CF3A0, #2EBF5F); border-radius: 4px; }
.c2 .hp2.mid i { background: linear-gradient(#FFE27A, #F5A623); } .c2 .hp2.low i { background: linear-gradient(#FF9AA2, #E5384A); }
.c2 .hp2 b { position: absolute; right: 2px; top: -1px; font: 400 9px/10px var(--f-display); color: #fff; -webkit-text-stroke: 1.5px #0F1A3A; paint-order: stroke fill; }
.c2 .ty2 { position: absolute; left: -4px; top: 4px; width: 17px; height: 17px; z-index: 3; pointer-events: none; filter: drop-shadow(0 1px 0 #0F1A3A); }
.c2 .st2 { position: absolute; right: -2px; top: 4px; font-size: 11px; z-index: 3; pointer-events: none; }

/* ---------------- disputa: expressões, vantagem, teclas */
.du-f .du-sweat, .du-f .du-spark { position: absolute; top: 12%; font-style: normal; font-size: 26px; opacity: 0; transition: opacity .2s; z-index: 2; pointer-events: none; }
.du-f .du-sweat { right: 14%; } .du-f .du-spark { left: 12%; }
.du-f.tired .du-sweat { opacity: 1; animation: sweat 1s ease-in infinite; }
.du-f.happy .du-spark { opacity: 1; animation: sparkle .8s ease-in-out infinite alternate; }
.du-f.tired .du-img { animation: tired 1.1s ease-in-out infinite !important; filter: drop-shadow(0 6px 0 rgba(15,26,58,.55)) saturate(.75) brightness(.92); }
.du-f.happy .du-img { animation: happy .45s ease-in-out infinite alternate !important; }
.du-f:last-child.tired .du-img { animation-name: tiredR !important; } .du-f:last-child.happy .du-img { animation-name: happyR !important; }
@keyframes tired { 0%, 100% { transform: translateY(6px) rotate(-3deg) scaleY(.96); } 50% { transform: translateY(10px) rotate(-6deg) scaleY(.93); } }
@keyframes tiredR { 0%, 100% { transform: scaleX(-1) translateY(6px) rotate(-3deg) scaleY(.96); } 50% { transform: scaleX(-1) translateY(10px) rotate(-6deg) scaleY(.93); } }
@keyframes happy { from { transform: translateY(0) rotate(2deg); } to { transform: translateY(-14px) rotate(-2deg); } }
@keyframes happyR { from { transform: scaleX(-1) translateY(0) rotate(2deg); } to { transform: scaleX(-1) translateY(-14px) rotate(-2deg); } }
@keyframes sweat { from { transform: translateY(-6px); opacity: 1; } to { transform: translateY(18px); opacity: 0; } }
@keyframes sparkle { from { transform: scale(.8) rotate(-10deg); } to { transform: scale(1.2) rotate(10deg); } }
.du-adv { text-align: center; margin: 4px auto 6px; padding: 5px 14px; border-radius: 999px; font: 400 15px var(--f-display); color: var(--ink); background: #fff; border: 3px solid var(--ink); width: fit-content; max-width: 92%; }
.du-adv.l { background: linear-gradient(#E0FFE8, #8FF0AE); } .du-adv.r { background: linear-gradient(#FFE6E1, #FFB3A6); } .du-adv.eq { background: #EEF4FF; }
.du-btn kbd { font: 700 12px system-ui; background: rgba(255,255,255,.85); color: var(--ink); border-radius: 6px; padding: 1px 6px; border: 2px solid var(--ink); }
@media (hover: none) { .du-btn kbd { display: none; } }
.du-cost { text-align: center; color: #FFD9DE; font-size: 12.5px; margin: 2px 0; }
.dr-hp { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font: 800 14px var(--f-body, system-ui); } .dr-hp span { background: rgba(255,255,255,.9); color: var(--ink); border-radius: 10px; padding: 3px 10px; } .dr-hp .lose { background: #FFE1DE; }

/* ---------------- cartas do baralho (animadas por especialidade) */
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
@media (min-width: 760px) { .deck { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #fff), #fff 55%); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 5px 0 rgba(15,42,74,.4); min-width: 0; }
button.dcard:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(15,42,74,.4); }
.dcard.fourth { background: repeating-linear-gradient(135deg, #F1E8FF 0 10px, #fff 10px 20px); }
.dcard.on { outline: 4px solid var(--yellow); }
.dc-badge { position: absolute; top: -10px; left: 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 0 9px; font: 400 13px var(--f-display); z-index: 2; }
.dc-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.dc-ty { display: inline-flex; align-items: center; gap: 3px; font: 800 11px system-ui; padding: 2px 7px 2px 3px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1.5px solid var(--ink); }
.dc-ty img { width: 15px; height: 15px; }
.dc-lv { font: 400 13px var(--f-display); background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 8px; }
.dc-art { height: 108px; display: grid; place-items: center; overflow: visible; }
.dc-art img { height: 118px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(15,42,74,.3)); transform-origin: 50% 100%; }
.dcard.big .dc-art { height: 150px; } .dcard.big .dc-art img { height: 160px; }
.dc-name { font: 400 16px var(--f-display); text-align: center; line-height: 1.05; }
.dc-stats { display: flex; justify-content: space-between; gap: 2px; font-size: 11.5px; background: rgba(15,42,74,.06); border-radius: 10px; padding: 3px 5px; } .dc-stats b { font: 400 13px var(--f-display); }
.dc-edge { display: grid; gap: 2px; font-size: 11px; font-weight: 800; } .dc-edge .win { color: #12803D; } .dc-edge .lose { color: #C0262F; } .dc-edge .neu { color: #4B5D7A; }
.dc-ab { display: flex; flex-wrap: wrap; gap: 3px; } .dc-ab span { font-size: 10.5px; font-weight: 800; background: #EEF4FF; border-radius: 8px; padding: 1px 6px; }
.dc-eq { display: flex; flex-wrap: wrap; gap: 3px; font-size: 10.5px; color: #4B5D7A; }
.deck-mix .tag { margin: 2px; } .deck-mix .tag.off { opacity: .45; } .tag.cls-medic { background: #CFF7E6; } .tag img { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.us-vs .neu { background: #EEF4FF; border-radius: 10px; padding: 6px 8px; }
.type-tri .tt-medic { grid-column: 1 / 3; grid-row: 4; display: flex; align-items: center; gap: 6px; font-size: 12.5px; background: #E9FBF3; border-radius: 12px; padding: 5px 10px; }
.type-tri .tt-medic img { width: 22px; } .type-tri p { grid-row: 5; }
.tedit .te-head { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
@media (max-width: 560px) { .tedit .te-head { grid-template-columns: 1fr; } .tedit .te-head .dcard { max-width: 220px; margin: 0 auto; } }
.te-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; padding: 4px; }
.te-grid .dcard .dc-art { height: 80px; } .te-grid .dcard .dc-art img { height: 88px; }
.eq-pick { display: flex; flex-wrap: wrap; gap: 6px; } .eqb { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--panel-line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.eqb.on { border-color: var(--ink); background: linear-gradient(#FFF6C8, #FFE27A); } .eqb small { font-size: 11px; color: #4B5D7A; }
.modal-box.wide { max-width: min(760px, 96vw); }
.type-line { margin: -4px 0 8px; }
/* animações de espera conforme a especialidade */
.anim-vanguard { animation: idleV 1.6s ease-in-out infinite; }
.anim-saboteur { animation: idleS 1.2s ease-in-out infinite; }
.anim-scout { animation: idleR .7s ease-in-out infinite; }
.anim-medic { animation: idleM 2s ease-in-out infinite; }
@keyframes idleV { 0%, 100% { transform: scaleY(1) translateY(0); } 50% { transform: scaleY(.97) translateY(2px) rotate(-1.5deg); } }
@keyframes idleS { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-3deg); } 75% { transform: translateX(3px) rotate(3deg); } }
@keyframes idleR { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes idleM { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 4px 0 rgba(15,42,74,.3)) drop-shadow(0 0 0 #7CF3B0); } 50% { transform: translateY(-4px); filter: drop-shadow(0 4px 0 rgba(15,42,74,.3)) drop-shadow(0 0 10px #7CF3B0); } }
.sp-charger.anim-vanguard { animation: charge 1.4s ease-in-out infinite; }
@keyframes charge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(8px) rotate(4deg); } }
.sp-breaker.anim-saboteur { animation: breaker 1s ease-in-out infinite; }
@keyframes breaker { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-6deg) translateY(-2px); } 55% { transform: rotate(5deg) translateY(1px); } }
.sp-seer.anim-scout { animation: seer 2s ease-in-out infinite; }
@keyframes seer { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .anim-vanguard, .anim-saboteur, .anim-scout, .anim-medic { animation: none !important; } }
.g-classes, .g-cls, .gsec { min-width: 0; } .g-cls { overflow: hidden; } .g-chars { max-width: 100%; }
.deck-tip { color: #fff; font-weight: 800; font-size: 13.5px; text-shadow: 0 1px 0 var(--ink); margin: 4px 0 12px; }
.dcard.bad { outline: 4px solid var(--red); }

/* ---------------- equipa: escolha visual */
.dc-eq span { display: inline-flex; align-items: center; gap: 3px; background: #F3F7FD; border-radius: 8px; padding: 1px 5px 1px 2px; } .dc-eq img { width: 18px; height: 18px; }
.deck .dcard.on { outline: 4px solid var(--yellow); outline-offset: 2px; transform: translateY(-3px); }
.tedit2 { scroll-margin-top: 70px; } .tedit2 h4 { margin: 12px 0 6px; }
.te2-head { display: flex; gap: 10px; align-items: center; } .te2-head h3 { margin: 0; } .te2-head p { margin: 2px 0 0; }
.te2-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); font: 400 20px var(--f-display); }
.te2-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px 2px 8px; }
.pc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 3px solid var(--panel-line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; }
.pc img { height: 74px; object-fit: contain; transform-origin: 50% 100%; } .pc b { font: 400 12.5px var(--f-display); text-align: center; line-height: 1.05; }
.pc small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; } .pc small img { height: 14px; width: 14px; }
.pc.on { border-color: var(--ink); background: linear-gradient(#FFF6C8, #FFE27A); box-shadow: 0 3px 0 var(--ink); }
.pc.taken { opacity: .5; cursor: not-allowed; } .pc.locked { opacity: .55; filter: grayscale(.8); } .pc.locked img { filter: brightness(.4); }
.pc-tag { position: absolute; top: 3px; right: 3px; font-size: 10px; font-weight: 900; background: #E5ECF6; border-radius: 6px; padding: 0 5px; } .pc-tag.on { background: var(--green); color: #fff; }
.eq-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.eq-tile { position: relative; flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 14px; border: 3px solid var(--panel-line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; text-align: center; }
.eq-tile img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(15,42,74,.25)); }
.eq-tile b { font: 400 13px var(--f-display); line-height: 1.05; } .eq-st { font-size: 10.5px; font-weight: 800; color: #3A4B66; min-height: 14px; }
.eq-cost { position: absolute; top: 4px; right: 5px; font-size: 10.5px; font-weight: 900; color: var(--blue-2); }
.eq-none { width: 54px; height: 54px; display: grid; place-items: center; font: 400 30px var(--f-display); color: #9AA8BD; }
.eq-tile.on { border-color: var(--ink); background: linear-gradient(#FFF6C8, #FFE27A); box-shadow: 0 3px 0 var(--ink); }
.te2-ab { margin-top: 10px; } .te2-ab summary { cursor: pointer; font-weight: 900; }
.team-save { position: sticky; bottom: calc(80px + var(--safe-b)); z-index: 4; margin-top: 10px; }

/* ---------------- atalhos do início (pensados para o telemóvel) */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qtile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(#FFFFFF, #E6F0FF); color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 rgba(15,42,74,.4); -webkit-tap-highlight-color: transparent; }
.qtile:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(15,42,74,.4); }
.qtile.hl { background: linear-gradient(#FFF8D9, #FFE07A); }
.qi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.8); border: 2px solid var(--ink); }
.qt { display: flex; flex-direction: column; min-width: 0; } .qt b { font: 400 17px var(--f-display); line-height: 1.05; } .qt small { font-size: 11.5px; font-weight: 700; color: #3A4B66; line-height: 1.2; }
.guide-card { position: relative; padding: 0 !important; overflow: hidden; display: block !important; }
.gc-main { display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; color: var(--ink); text-decoration: none; min-height: 72px; }
.gc-main b { display: block; font: 400 18px var(--f-display); } .gc-main small { display: block; font-size: 13px; font-weight: 700; color: #3A4B66; }
.gc-go { margin-left: auto; font: 400 34px var(--f-display); color: var(--ink); }
.gc-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 900; cursor: pointer; z-index: 2; }
.col-tabs { margin-bottom: 10px; }

* { -webkit-tap-highlight-color: transparent; }
button, a, .c2, .bc { touch-action: pan-x pan-y; }
#view .type-line, #view .col-tabs + div > p.muted, #view .page > div > p.muted.small { color: #DCEBFF; text-shadow: 0 1px 0 var(--ink); }
/* cor da equipa bem explícita no 2D */
.c2.has-u { background: color-mix(in srgb, var(--sc) 38%, #FFFFFF) !important; box-shadow: inset 0 0 0 4px var(--sc), 0 4px 0 color-mix(in srgb, var(--sc) 70%, #0F1A3A) !important; }
.c2 .ring2 { border-width: 4px; background: color-mix(in srgb, var(--sc) 45%, transparent); }
.c2 .pen2 { position: absolute; left: -5px; bottom: -5px; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: var(--sc); border: 2px solid #0F1A3A; color: #fff; font: 400 11px/14px var(--f-display); text-align: center; -webkit-text-stroke: 1px #0F1A3A; paint-order: stroke fill; pointer-events: none; }
.c2 .hp2 { border-color: var(--sc, #0F1A3A); border-width: 2px; }
.dk-odice { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 4px 8px; }
.die.sm { width: 38px; height: 34px; font-size: 17px; } .dk-odice .pips small { color: #DCEBFF; font-size: 10.5px; }
.eq-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 800; } .eq-legend span { background: #EEF4FF; border-radius: 8px; padding: 2px 7px; }
.budget .bar { margin: 6px 0; } .budget p { margin: 4px 0 0; color: #3A4B66; }

/* ---------------- textos em cima do fundo azul: sempre brancos (cinzento só dentro de cartões claros) */
#view .muted, #view .type-line, #view .deck-tip, #view .links, #view .hint { color: #F2F7FF !important; text-shadow: 0 1px 0 rgba(15,26,58,.7); }
#view :is(.card, .modal-box, .item, .ccard, .dcard, .rule, .gsec, .b-card, .qtile, .pc, .eq-tile, .us-ab, .tedit2, .bed-check, .bed-meta, .bed-tools, table, .list .item, .room-card, .mp-card, .res-earn) .muted { color: var(--texto-2) !important; text-shadow: none; }
.modal .muted { color: var(--texto-2) !important; text-shadow: none; }
/* objetos no cenário (2D) */
.c2 .pick2 { position: absolute; z-index: 2; font-size: 22px; filter: drop-shadow(0 2px 0 rgba(15,26,58,.6)); animation: pickfloat 1.4s ease-in-out infinite; pointer-events: none; }
.c2 .pick2::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); z-index: -1; }
@keyframes pickfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* resultado da disputa: entrada fluida, letra a letra */
.duel.place .du-result { animation: drBg .4s ease-out both; }
@keyframes drBg { from { opacity: 0; } to { opacity: 1; } }
.dr-big { animation: drFloat 2.6s ease-in-out .9s infinite !important; white-space: nowrap; }
.dr-big span { display: inline-block; animation: drLetter .6s cubic-bezier(.22, 1, .36, 1) calc(var(--i) * 40ms) both; }
@keyframes drLetter { 0% { opacity: 0; transform: translateY(28px) scale(.4) rotate(-8deg); filter: blur(4px); } 60% { opacity: 1; transform: translateY(-6px) scale(1.12) rotate(2deg); filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes drFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.03); } }
.dr-big.win { text-shadow: 0 6px 0 var(--ink), 0 0 26px rgba(255,210,63,.65); } .dr-big.lose { text-shadow: 0 6px 0 var(--ink), 0 0 22px rgba(255,90,120,.5); }
.dr-sub { animation: drUp .5s cubic-bezier(.22, 1, .36, 1) .35s both; } .dr-hp { animation: drUp .5s cubic-bezier(.22, 1, .36, 1) .55s both; }
@keyframes drUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.duel.mini { animation: drMini .35s ease-out both !important; }
@keyframes drMini { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dr-big, .dr-big span, .dr-sub, .dr-hp { animation: none !important; } }
/* 2D: ícone da classe maior; personagem selecionada em destaque */
.c2 .ty2 { width: 24px; height: 24px; left: -6px; top: 2px; background: #fff; border-radius: 50%; padding: 2px; border: 2px solid #0F1A3A; }
.c2 .u2 { height: 150%; }
.c2.sel { z-index: 4; transform: scale(1.12); box-shadow: inset 0 0 0 4px var(--sc, #FFC83D), 0 0 0 4px #FFE27A, 0 0 24px 6px rgba(255,226,122,.8) !important; }
.c2.sel .u2 { filter: drop-shadow(0 0 8px #FFE27A); }
/* painel da personagem selecionada maior */
.dk-port { width: 62px; height: 70px; border-color: #FFE27A; box-shadow: 0 0 0 3px var(--ink), 0 0 14px rgba(255,226,122,.7); }
.dk-tab { width: 42px; height: 48px; } .dk-tab.on { transform: scale(1.15); }
/* avisos de mensagens e notificações push */
.toast.tap { cursor: pointer; }
.msg-toast { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 220px; }
.msg-toast b { font-size: 15px; } .msg-toast span { font: 400 15px var(--f-body, inherit); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-toast small { font-size: 12px; opacity: .7; }
.push-card { display: flex; align-items: center; gap: 10px; position: relative; padding-right: 34px; }
.push-card .qi { font-size: 26px; } .push-card small { display: block; color: var(--muted, #667); }
.push-card .gc-x { position: absolute; top: 6px; right: 6px; }
/* gozo de quem mata (ecrã do adversário) e despedida de quem morre */
.kill-show { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.kill-show.big { background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.15), rgba(10,8,30,.55)); animation: ks-fade .25s ease-out; }
.kill-show .ks-taunt { position: relative; display: flex; flex-direction: column; align-items: center; animation: ks-pop .55s cubic-bezier(.34,1.7,.5,1) both; }
.kill-show .ks-burst { position: absolute; top: 8%; width: 300px; height: 300px; border-radius: 50%; background: conic-gradient(from 0deg, var(--sc) 0 10deg, transparent 10deg 30deg, var(--sc) 30deg 40deg, transparent 40deg 60deg, var(--sc) 60deg 70deg, transparent 70deg 90deg, var(--sc) 90deg 100deg, transparent 100deg 120deg, var(--sc) 120deg 130deg, transparent 130deg 150deg, var(--sc) 150deg 160deg, transparent 160deg 180deg, var(--sc) 180deg 190deg, transparent 190deg 210deg, var(--sc) 210deg 220deg, transparent 220deg 240deg, var(--sc) 240deg 250deg, transparent 250deg 270deg, var(--sc) 270deg 280deg, transparent 280deg 300deg, var(--sc) 300deg 310deg, transparent 310deg 330deg, var(--sc) 330deg 340deg, transparent 340deg); opacity: .45; animation: ks-spin 4s linear infinite; -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.kill-show .ks-killer { position: relative; width: 230px; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transform-origin: 50% 90%; }
.kill-show .ks-bubble { position: relative; margin-top: -8px; max-width: 280px; background: #fff; color: #1E1430; font: 400 20px var(--f-display); padding: 10px 16px; border-radius: 18px; border: 3px solid var(--sc); box-shadow: 0 6px 0 rgba(0,0,0,.25); text-align: center; animation: ks-pop .4s .25s cubic-bezier(.34,1.7,.5,1) both; }
.kill-show .ks-name { margin-top: 6px; color: #fff; font: 400 16px var(--f-display); text-shadow: 0 2px 0 #1E1430; }
.kill-show .ks-bye { position: absolute; right: 14px; bottom: calc(150px + var(--safe-b, 0px)); display: flex; flex-direction: column; align-items: center; animation: ks-bye 1.9s .2s ease-in-out both; }
.kill-show .ks-victim { width: 92px; height: auto; filter: grayscale(.35) drop-shadow(0 6px 10px rgba(0,0,0,.4)); transform-origin: 50% 100%; animation: ks-wave .5s .3s ease-in-out 3 alternate; }
.kill-show .ks-bye small { color: #fff; font: 400 13px var(--f-display); text-shadow: 0 2px 0 #1E1430; background: rgba(20,16,48,.7); padding: 2px 8px; border-radius: 10px; }
.kill-show.mid .ks-killer { width: 150px; } .kill-show.mid .ks-burst { width: 200px; height: 200px; } .kill-show.mid .ks-bubble { font-size: 16px; max-width: 220px; }
.kill-show.mid, .kill-show.small { align-items: flex-start; padding-top: calc(130px + var(--safe-t, 0px)); }
.kill-show.small .ks-taunt { transform: scale(.62); } .kill-show.small .ks-killer { width: 140px; } .kill-show.small .ks-bubble { display: none; } .kill-show.small .ks-burst { display: none; }
.kill-show.out { opacity: 0; transition: opacity .45s; }
/* cada classe goza à sua maneira */
.kill-show.kt-vanguard .ks-killer { animation: ks-flex .5s .35s ease-in-out 4 alternate; }
.kill-show.kt-saboteur .ks-killer { animation: ks-wiggle .28s .35s ease-in-out 7 alternate; }
.kill-show.kt-scout .ks-killer { animation: ks-hop .42s .35s cubic-bezier(.3,0,.6,1) 5 alternate; }
.kill-show.kt-medic .ks-killer { animation: ks-tilt .6s .35s ease-in-out 3 alternate; }
@keyframes ks-fade { from { opacity: 0; } }
@keyframes ks-pop { from { transform: scale(.2) translateY(60px); opacity: 0; } }
@keyframes ks-spin { to { transform: rotate(360deg); } }
@keyframes ks-flex { to { transform: scale(1.12, .94); } }
@keyframes ks-wiggle { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes ks-hop { to { transform: translateY(-34px) scale(1.03, .97); } }
@keyframes ks-tilt { from { transform: rotate(-6deg) translateX(-6px); } to { transform: rotate(6deg) translateX(6px); } }
@keyframes ks-wave { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes ks-bye { 0% { transform: translateY(20px); opacity: 0; } 15% { transform: none; opacity: 1; } 75% { transform: translateY(-10px); opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kill-show * { animation: none !important; } }
/* personagens animadas nas cartas (folha de fotogramas) */
.idle-sp { display: inline-block; aspect-ratio: 240 / 378; background: no-repeat 0 0 / 1200% 100%; animation: idleSheet 1.7s steps(12) infinite; filter: drop-shadow(0 4px 0 rgba(15,42,74,.25)); }
@keyframes idleSheet { from { background-position: 0 0; } to { background-position: 109.0909% 0; } }
.ccard .art .idle-sp { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); height: 150px; }
.dc-art .idle-sp { height: 134px; } .dcard.big .dc-art .idle-sp { height: 180px; } .te-grid .dcard .dc-art .idle-sp { height: 100px; }
.pc .idle-sp { height: 84px; display: block; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .idle-sp { animation: none; } }
/* ================= lobby (montra, faixa do jogador, baús, botão de batalha) ================= */
.lobby { display: flex; flex-direction: column; gap: 12px; }
.lb-banner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; color: #fff;
  background: linear-gradient(180deg, #2C3A6C, #1B2550); border: 3px solid #0F1A3A; border-radius: 18px; box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 4px 0 #0F1A3A; }
.lb-face { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #FFC83D; background: radial-gradient(circle at 50% 35%, #6F9BFF, #2B55D9) no-repeat; background-repeat: no-repeat; background-size: 300%, cover; background-position: 50% 55%, center; box-shadow: 0 3px 0 #0F1A3A; flex: none; }
.lb-who { min-width: 0; } .lb-who b { display: block; font: 400 19px var(--f-display); text-shadow: 0 2px 0 #0F1A3A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who small { color: #BFD3FF; font-weight: 800; font-size: 12.5px; }
.lb-trophy { display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #0F1A3A; color: #FFC83D; text-decoration: none; font: 400 17px var(--f-display); }
.lb-trophy img { width: 24px; height: 24px; }
.lb-tools { display: flex; gap: 6px; }
.lb-tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(#4B7BFF, #2B55D9); border: 3px solid #0F1A3A; box-shadow: 0 3px 0 #0F1A3A, inset 0 2px 0 rgba(255,255,255,.3); }
.lb-tool img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.lb-stage { display: grid; grid-template-columns: 66px 1fr 66px; align-items: center; gap: 4px; }
.lb-col { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lb-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
.lb-side .ls-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 50% 35%, #5C8CFF, #2747C4 70%); border: 4px solid #FFC83D; box-shadow: 0 0 0 3px #0F1A3A, 0 5px 0 3px #0F1A3A, inset 0 3px 0 rgba(255,255,255,.35); }
.lb-side .ls-ic img { width: 28px; height: 28px; filter: brightness(0) invert(1) drop-shadow(0 2px 0 rgba(15,26,58,.5)); }
.lb-side small { margin-top: 4px; font: 400 12px var(--f-display); text-shadow: 0 2px 0 #0F1A3A; white-space: nowrap; }
.lb-side .ls-badge { position: absolute; top: -4px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #FF3B5C; border: 2px solid #0F1A3A; color: #fff; font: 400 13px/18px var(--f-display); font-style: normal; text-align: center; }
.lb-show { position: relative; height: 372px; display: grid; place-items: end center; }
.lb-spin { position: relative; z-index: 3; height: 372px; aspect-ratio: 300 / 520; margin-bottom: 0; filter: drop-shadow(0 18px 18px rgba(0,0,40,.35)); background-repeat: no-repeat; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.lb-spin.idle { background-size: 1200% 100%; animation: idleSheet 1.8s steps(12) infinite; }
.lb-spin.turn { background-size: 2400% 100%; cursor: grabbing; }
.lb-spin.in-r { animation: idleSheet 1.8s steps(12) infinite, lbInR .35s ease-out; } .lb-spin.in-l { animation: idleSheet 1.8s steps(12) infinite, lbInL .35s ease-out; }
@keyframes lbInR { from { transform: translateX(60px); opacity: 0; } } @keyframes lbInL { from { transform: translateX(-60px); opacity: 0; } }
.lb-hint { white-space: nowrap; position: absolute; z-index: 4; top: 8px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(15,26,58,.6); color: #fff; font-size: 12px; font-weight: 800; transition: opacity .4s; pointer-events: none; }
.lb-hint.gone { opacity: 0; }
.lb-arrow { position: absolute; z-index: 4; top: 46%; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #0F1A3A; background: linear-gradient(#FFE07A, #FFB020); color: #0F1A3A; font: 400 30px/34px var(--f-display); box-shadow: 0 4px 0 #0F1A3A; cursor: pointer; }
.lb-arrow.l { left: -6px; } .lb-arrow.r { right: -6px; }
.lb-arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 #0F1A3A; }
.lb-name { position: absolute; z-index: 4; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #0F1A3A; color: #fff; white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.lb-name img { width: 22px; height: 22px; } .lb-name b { font: 400 16px var(--f-display); } .lb-name small { color: #FFC83D; font-weight: 800; font-size: 12px; }
.lb-dots { position: absolute; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lb-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #0F1A3A; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.lb-dots button.on { background: #FFC83D; transform: scale(1.25); }
.lb-chests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; border-radius: 18px; background: linear-gradient(#3A2E6E, #251C50); border: 3px solid #0F1A3A; box-shadow: 0 4px 0 #0F1A3A, inset 0 2px 0 rgba(255,255,255,.12); }
.lb-chest { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 12px; border: 3px solid #0F1A3A; background: linear-gradient(#6A4CC8, #4A32A0); color: #fff; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.lb-chest .lc-ic { font-size: 26px; filter: drop-shadow(0 2px 0 rgba(15,26,58,.5)); }
.lb-chest .lc-bar { width: 86%; height: 7px; border-radius: 4px; background: #0F1A3A; overflow: hidden; } .lb-chest .lc-bar i { display: block; height: 100%; background: #FFC83D; }
.lb-chest small { font: 400 11.5px var(--f-display); }
.lb-chest.ready { background: linear-gradient(#FFD45A, #F59E0B); color: #0F1A3A; animation: lbReady 1.2s ease-in-out infinite; }
.lb-chest.claimed { opacity: .55; }
@keyframes lbReady { 50% { transform: translateY(-3px) scale(1.04); } }
.lb-actions { display: grid; grid-template-columns: 78px 1fr 78px; gap: 8px; align-items: stretch; padding: 8px; border-radius: 20px; background: linear-gradient(#2C4FB8, #1D3A8E); border: 3px solid #0F1A3A; box-shadow: 0 4px 0 #0F1A3A, inset 0 2px 0 rgba(255,255,255,.15); }
.lb-deck, .lb-rank { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 3px solid #0F1A3A; text-decoration: none; color: #fff;
  background: linear-gradient(#5C8CFF, #2B55D9); box-shadow: 0 4px 0 #0F1A3A, inset 0 2px 0 rgba(255,255,255,.3); }
.lb-deck .lb-face { width: 46px; height: 46px; border-width: 2px; } .lb-deck i { position: absolute; right: 4px; bottom: 18px; font: 400 13px var(--f-display); font-style: normal; background: #0F1A3A; border-radius: 6px; padding: 0 5px; }
.lb-rank img { width: 38px; height: 38px; } .lb-deck small, .lb-rank small { font: 400 12px var(--f-display); text-shadow: 0 2px 0 #0F1A3A; }
.lb-play { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; border-radius: 16px; border: 3px solid #0F1A3A; cursor: pointer;
  background: linear-gradient(180deg, #FFD966 0%, #FFB020 55%, #F08A00 100%); box-shadow: 0 6px 0 #0F1A3A, inset 0 3px 0 rgba(255,255,255,.55), inset 0 -5px 0 rgba(160,60,0,.35); }
.lb-play b { font: 400 34px/1 var(--f-display); color: #fff; -webkit-text-stroke: 2px #0F1A3A; paint-order: stroke fill; text-shadow: 0 3px 0 #0F1A3A; letter-spacing: .02em; }
.lb-play small { font: 400 13px var(--f-display); color: #4A2400; }
.lb-play:active, .lb-deck:active, .lb-rank:active { transform: translateY(3px); box-shadow: 0 2px 0 #0F1A3A; }
.lb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lb-mode { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 3px solid #0F1A3A; text-decoration: none; color: #fff; font-size: 20px;
  background: linear-gradient(#4B7BFF, #2B55D9); box-shadow: 0 4px 0 #0F1A3A, inset 0 2px 0 rgba(255,255,255,.3); }
.lb-mode b { font: 400 15px var(--f-display); text-shadow: 0 2px 0 #0F1A3A; }
.lb-mode.go { background: linear-gradient(#3DDC84, #1FA35A); } .lb-mode.build { background: linear-gradient(#FF9F45, #E36A10); }
@media (min-width: 900px) { .lb-show { height: 430px; } .lb-spin { height: 430px; } }
/* ecrãs de configuração (treino, sala, classificado): painel legível sobre o fundo */
.card.setup { padding: 12px 14px 14px; }
.card.setup h3 { margin-top: 10px; } .card.setup h3:first-child { margin-top: 0; }
.card.setup .btn.wide { margin-top: 6px; }
.card.setup .card { box-shadow: none; background: #F2F6FF; }
/* títulos de secção fora de painéis ficam brancos com contorno */
h3 { color: #fff; text-shadow: 0 2px 0 rgba(15,26,58,.75); }
.card h3, .modal-box h3, .card.setup h3 { color: var(--ink); text-shadow: none; }

/* disputa no telemóvel: nada se sobrepõe aos botões — toda a área do botão recebe o toque */
.duel:not(.mini) * { pointer-events: none; }
.duel:not(.mini) .du-btn { pointer-events: auto; position: relative; z-index: 6; }
.duel:not(.mini) .du-btn * { pointer-events: none; }
.duel.mini .du-mini, .duel.mini .du-mini * { pointer-events: auto; }
.mbanner, .bubbles, .bub, .coach.off { pointer-events: none; }

/* lançamento do dado: roda à vista, com brilho, e aterra com estalo */
.to-dice .to-die { position: relative; width: 58px; height: 52px; display: grid; place-items: end center; padding-bottom: 4px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(#E8FDFF, var(--cyan)); color: var(--ink); }
.to-dice .to-die b { font: 400 26px var(--f-display); }
.to-dice { position: relative; padding: 6px 16px 6px 8px; }
.to-dice::before { content: ''; position: absolute; left: -6px; top: 50%; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; background: radial-gradient(circle, rgba(140,240,255,.95), rgba(60,200,255,.35) 45%, transparent 70%); filter: blur(2px); opacity: .9; animation: dieGlow .5s ease-in-out infinite alternate; pointer-events: none; }
.to-dice.rolling .to-die { animation: dieSpin .15s linear infinite; }
.to-dice.landed .to-die { animation: dieLand .5s cubic-bezier(.34,1.8,.5,1); }
.to-dice.landed::before { animation: dieBurst .7s ease-out forwards; }
.to-dice.landed.v3 .to-die { background: linear-gradient(#FFF7C2, var(--yellow)); }
.to-dice.landed.v3::before { background: radial-gradient(circle, rgba(255,240,140,1), rgba(255,200,60,.45) 45%, transparent 70%); }
.to-dice small { font: 400 16px var(--f-display); }
@keyframes dieSpin { 0% { transform: rotate(-14deg) scale(.92); } 50% { transform: rotate(14deg) scale(1.08) translateY(-4px); } 100% { transform: rotate(-14deg) scale(.92); } }
@keyframes dieLand { 0% { transform: scale(1.7) rotate(20deg); } 60% { transform: scale(.9); } 100% { transform: none; } }
@keyframes dieGlow { to { transform: scale(1.18); opacity: 1; } }
@keyframes dieBurst { 0% { transform: scale(.8); opacity: 1; } 40% { transform: scale(1.9); opacity: 1; } 100% { transform: scale(1.3); opacity: .55; } }
.pips i.bonus.on { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

/* aviso grande: +1 jogada */
.bigpop { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(255,214,60,.25), rgba(8,10,40,.45) 70%); animation: bpIn .25s ease-out; }
.bigpop:not(.mine) { background: none; }
.bp-card { position: relative; text-align: center; animation: bpPop .6s cubic-bezier(.34,1.8,.5,1) both; }
.bp-card b { position: relative; display: block; font: 400 64px/1 var(--f-display); color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink), 0 0 40px rgba(255,220,80,.9); letter-spacing: .02em; }
.bigpop:not(.mine) .bp-card b { font-size: 40px; color: #fff; }
.bp-card small { position: relative; display: inline-block; margin-top: 10px; font: 400 18px var(--f-display); background: rgba(4,16,40,.88); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 14px; max-width: 90vw; }
.bp-rays { position: absolute; left: 50%; top: 40%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,230,120,.55) 0 10deg, transparent 10deg 24deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: bpRays 3s linear infinite; }
.bigpop:not(.mine) .bp-rays { display: none; }
.bigpop.out { opacity: 0; transition: opacity .4s; }
@keyframes bpIn { from { opacity: 0; } }
@keyframes bpPop { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bpRays { to { transform: rotate(360deg); } }

/* cartas da personagem no painel da partida: carta com presença + tipologia */
.match .dk-unit { overflow: visible; }
.dk-card { --tc: #4C8DFF; --tc2: #1D4FC4; position: relative; flex: none; width: 74px; height: 96px; margin: -22px 2px 0 0; border-radius: 14px; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 55%, #fff), var(--tc) 55%, var(--tc2)); box-shadow: 0 0 0 3px #fff inset, 0 5px 0 var(--ink), 0 0 18px color-mix(in srgb, var(--tc) 70%, transparent); transform: rotate(-5deg); overflow: hidden; cursor: pointer; animation: dkcIn .5s cubic-bezier(.34,1.7,.5,1); }
.dk-card.ty-saboteur { --tc: #FF5A6E; --tc2: #B8203A; } .dk-card.ty-scout { --tc: #38D27A; --tc2: #138A48; } .dk-card.ty-medic { --tc: #FFC83D; --tc2: #D08A00; }
.dkc-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255,255,255,.22) 0 9deg, transparent 9deg 22deg); animation: bpRays 9s linear infinite; }
.dkc-art { position: absolute; left: 50%; bottom: 14px; width: 118%; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 3px 0 rgba(15,26,58,.5)); animation: dkcBob 1.6s ease-in-out infinite alternate; }
.dkc-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 58%); transform: translateX(-120%); animation: dkcShine 3.2s ease-in-out infinite; pointer-events: none; }
.dkc-ty { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: 0 2px 0 var(--ink); z-index: 2; }
.dkc-ty img { width: 16px; height: 16px; }
.dkc-lv { position: absolute; right: 3px; top: 3px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 50%; background: linear-gradient(#FFF3B0, var(--yellow)); border: 2px solid var(--ink); color: var(--ink); font: 400 12px/18px var(--f-display); text-align: center; z-index: 2; }
.dkc-type { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; font: 400 11px/16px var(--f-display); text-align: center; letter-spacing: .06em; text-transform: uppercase; z-index: 2; }
.dk-tab { --tc: #4C8DFF; width: 40px; height: 52px; border-radius: 10px; border: 2px solid var(--ink); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 50%, #fff), var(--tc)); opacity: .75; transform: rotate(var(--rt, 0deg)); transition: transform .2s, opacity .2s; overflow: visible; }
.dk-tab:nth-child(odd) { --rt: -4deg; } .dk-tab:nth-child(even) { --rt: 4deg; }
.dk-tab.ty-saboteur { --tc: #FF5A6E; } .dk-tab.ty-scout { --tc: #38D27A; } .dk-tab.ty-medic { --tc: #FFC83D; }
.dk-tab .dkt-art { position: absolute; left: 50%; bottom: 4px; width: 120%; margin: 0; transform: translateX(-50%); }
.dk-tab .dkt-ty { position: absolute; left: -5px; top: -6px; width: 18px; height: 18px; border-radius: 6px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; z-index: 2; }
.dk-tab .dkt-ty img { width: 11px; height: 11px; }
.dk-tab i { border-radius: 0 0 8px 8px; }
.dk-tab.on { opacity: 1; transform: rotate(0) scale(1.15) translateY(-4px); border-color: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 12px color-mix(in srgb, var(--tc) 80%, #fff); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 50%, #fff), var(--tc)); }
@keyframes dkcIn { 0% { transform: rotate(-20deg) scale(.5); } 100% { transform: rotate(-5deg); } }
@keyframes dkcBob { to { transform: translateX(-50%) translateY(-3px) scale(1.03); } }
@keyframes dkcShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
/* 2D: ícone da classe a 50%, inteiro só na selecionada */
.c2 .ty2 { width: 13px; height: 13px; left: -3px; top: 3px; padding: 1px; border-width: 1.5px; transition: all .15s; }
.c2.sel .ty2 { width: 26px; height: 26px; left: -7px; top: 1px; padding: 2px; border-width: 2px; }
.mzoom { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mzoom .mbtn { width: 38px; height: 38px; } .mzoom .glyph { font-size: 22px; line-height: 1; }

/* foto de perfil */
.lb-face { position: relative; }
.lb-face-edit { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font: 400 12px/16px var(--f-display); font-style: normal; text-align: center; }
.av-field .row { align-items: center; gap: 12px; }
.avpick h3 { margin: 0 0 10px; }
.avp-top { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.avp-top .grow { display: flex; flex-direction: column; gap: 6px; }
.av { object-fit: cover; }
/* ===== equipa ao estilo Clash: baralho de 4 cartas + coleção por baixo ===== */
.deck-panel { background: linear-gradient(180deg, #2A63C9, #17418F); border: 3px solid var(--ink); border-radius: 20px; padding: 12px 10px 10px; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 5px 0 rgba(15,26,58,.5); margin: 8px 0 10px; }
.deck4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.k4 { --tc: #4C8DFF; --tc2: #1D4FC4; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0; border: 0; background: none; font: inherit; color: #fff; cursor: pointer; min-width: 0; transition: transform .15s; }
.k4.t-saboteur { --tc: #C86BFF; --tc2: #7A2BC9; } .k4.t-scout { --tc: #38D27A; --tc2: #138A48; } .k4.t-medic { --tc: #FFC83D; --tc2: #D08A00; }
.k4:active { transform: scale(.95); }
.k4-frame { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; border: 3px solid var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 45%, #fff), var(--tc) 40%, var(--tc2)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 4px 0 var(--ink); overflow: hidden; }
.k4.fourth .k4-frame { background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), linear-gradient(180deg, color-mix(in srgb, var(--tc) 45%, #fff), var(--tc) 40%, var(--tc2)); }
.k4.bad .k4-frame { outline: 3px solid var(--red); outline-offset: 1px; }
.k4-art { position: absolute; inset: 6px 0 16px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 85%, rgba(255,255,255,.55), transparent 62%); }
.k4-art .idle-sp { height: 104%; filter: drop-shadow(0 3px 0 rgba(15,26,58,.45)); }
.k4-pos { position: absolute; left: -2px; top: -2px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 0 0 10px 0; background: var(--ink); color: var(--yellow); font: 400 13px/22px var(--f-display); text-align: center; z-index: 2; }
.k4-ty { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; z-index: 2; }
.k4-ty img { width: 13px; height: 13px; }
.k4-lv { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0 2px; background: linear-gradient(180deg, rgba(15,26,58,.55), rgba(15,26,58,.95)); font: 400 12px/1 var(--f-display); text-align: center; color: #fff; -webkit-text-stroke: 0; z-index: 2; }
.k4-name { font: 400 11.5px/1.1 var(--f-display); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 var(--ink); }
.k4-eq { display: flex; justify-content: center; gap: 4px; padding: 2px 4px; border-radius: 999px; background: rgba(15,26,58,.55); border: 2px solid rgba(15,26,58,.8); }
.k4-eq img { width: 20px; height: 20px; object-fit: contain; }
.k4-eq i { width: 20px; height: 20px; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; opacity: .35; filter: grayscale(1); }
.deck-panel .deck-tip { margin: 10px 2px 8px; font-size: 12.5px; }
.deck-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.di-budget { display: inline-flex; align-items: center; gap: 6px; background: rgba(15,26,58,.6); border: 2px solid var(--ink); border-radius: 14px; padding: 3px 12px 3px 6px; }
.di-budget i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 40% 40%, #F7B6FF, #C03BE0); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.di-budget b { font: 400 20px var(--f-display); color: #fff; }
.di-budget.over b { color: #FF8A8A; }
.di-mix { display: flex; gap: 4px; flex-wrap: wrap; } .di-mix .tag { padding: 2px 6px; font-size: 11px; } .di-mix .tag img { width: 13px; height: 13px; }
.deck-more summary { font: 400 15px var(--f-display); cursor: pointer; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 2px 8px; }
.col-head h3 { margin: 0; color: #fff; } .col-head small { color: #FFC8F5; font-weight: 800; }
.cgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.cgrid.c4 .ccard { border-radius: 12px; }
.cgrid.c4 .ccard .art { height: 92px; }
.cgrid.c4 .ccard .art .idle-sp { height: 106px; bottom: -6px; }
.cgrid.c4 .ccard .art img { height: 100px; }
.cgrid.c4 .ccard b { font-size: 11px; padding: 4px 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgrid.c4 .ccard .lv { font-size: 10px; padding: 0 4px; top: 3px; right: 3px; }
.cgrid.c4 .ccard .ty { width: 20px; height: 20px; top: 3px; left: 3px; } .cgrid.c4 .ccard .ty svg { width: 12px; height: 12px; }
.cgrid.c4 .ccard .inteam { width: 26px; height: 26px; }
.cgrid.c4 .ccard.locked .lockbig { width: 38px; height: 38px; top: 26px; }
/* folha da posição */
.slot-sheet { display: flex; flex-direction: column; gap: 10px; }
.ss-card .dcard { max-width: 300px; margin: 0 auto; cursor: default; }
.ss-done { position: sticky; bottom: 0; z-index: 3; }
/* cartas grandes: a personagem já não fica por cima do nome */
.dc-art { height: 138px; } .dcard.big .dc-art { height: 184px; } .te-grid .dcard .dc-art { height: 104px; }
.dc-art .idle-sp { height: 134px; }

/* ===== cartas ao estilo Clash (baralho e coleção) ===== */
.crgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding-top: 8px; }
.crc { --rim1: #D9E8FF; --rim2: #7FA4D6; --rim3: #3C5F99; --lvc: #fff; --glow: transparent; --tc: #4C8DFF; --tc2: #163E8F;
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: #fff; text-decoration: none; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.crc:active { transform: scale(.94); }
.crc.t-saboteur { --tc: #B65CFF; --tc2: #4A1A8A; } .crc.t-scout { --tc: #3FD884; --tc2: #0F6B3A; } .crc.t-medic { --tc: #FFC83D; --tc2: #8A5A00; }
.crc.r-rare { --rim1: #FFE0B0; --rim2: #FF9F2E; --rim3: #A84E00; --lvc: #FFC56B; }
.crc.r-epic { --rim1: #F6D0FF; --rim2: #C46BFF; --rim3: #6A1FB0; --lvc: #F2A6FF; --glow: rgba(200,110,255,.85); }
.crc.r-legend { --rim1: #D6FFFB; --rim2: #3FE0D0; --rim3: #0F7A8A; --lvc: #8FFFF2; --glow: rgba(80,240,220,.8); }
.crc.r-champion { --rim1: #FFF6C8; --rim2: #FFCB3D; --rim3: #A86A00; --lvc: #FFE27A; --glow: rgba(255,205,60,.9); }
/* moldura metálica + contorno escuro + brilho da raridade */
.crc-frame { position: relative; display: block; aspect-ratio: 5 / 6.4; border-radius: 12px; padding: 4px; background: linear-gradient(160deg, var(--rim1), var(--rim2) 35%, var(--rim3) 70%, var(--rim2)); box-shadow: 0 0 0 2.5px #0B1530, 0 4px 0 2px #0B1530, 0 0 14px 2px var(--glow); }
.crc.r-legend .crc-frame { background: conic-gradient(from 200deg, #8FFFF2, #6FB6FF, #D99BFF, #FFE27A, #8FFFF2); }
.crc-art { position: absolute; inset: 4px; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tc) 35%, #fff) 0, var(--tc) 45%, var(--tc2) 100%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 -18px 18px -8px rgba(0,0,0,.45); }
.crc-art::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -18%; height: 46%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.4), transparent 65%); }
.crc-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,255,255,.13) 0 8deg, transparent 8deg 20deg); animation: bpRays 14s linear infinite; }
.crc-art .idle-sp { position: relative; height: 122%; margin-bottom: -10%; animation-delay: var(--d) !important; filter: drop-shadow(0 4px 2px rgba(0,0,0,.45)); }
.crc-art img { position: relative; height: 110%; margin-bottom: -8%; filter: brightness(.12) contrast(1.4); }
.crc-crest { position: absolute; left: 50%; top: -9px; width: 30px; height: 20px; transform: translateX(-50%); z-index: 3; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--rim1), var(--rim2) 55%, var(--rim3)); clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); filter: drop-shadow(0 0 0 #0B1530); }
.crc-crest::before { content: ''; position: absolute; inset: 2px 3px 2px; background: #0B1530; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.crc-crest img { position: relative; width: 12px; height: 12px; filter: brightness(0) invert(1); }
.crc-lvl { position: absolute; left: 0; right: 0; bottom: 7px; z-index: 3; text-align: center; font: 400 13px/1 var(--f-display); color: var(--lvc); -webkit-text-stroke: 3px #0B1530; paint-order: stroke fill; text-shadow: 0 2px 0 #0B1530; letter-spacing: .02em; }
.crc-shine { position: absolute; inset: 4px; border-radius: 8px; overflow: hidden; pointer-events: none; z-index: 2; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.4) 48%, transparent 60%) no-repeat; background-size: 250% 100%; animation: crcShine 5s ease-in-out infinite; animation-delay: var(--d); }
.crc.r-common .crc-shine { opacity: .5; }
@keyframes crcShine { 0%, 65% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
/* gota (posição no baralho) */
.crc-drop { position: absolute; left: -7px; top: -7px; z-index: 4; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 35%, #FFD3FF, #E040FB 55%, #8E16B8); border: 2.5px solid #0B1530; display: grid; place-items: center; box-shadow: 0 2px 0 #0B1530; }
.crc-drop b { transform: rotate(45deg); font: 400 14px/1 var(--f-display); color: #fff; -webkit-text-stroke: 2px #0B1530; paint-order: stroke fill; }
.crc-in { position: absolute; right: -5px; top: -6px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#9BF7A8, #22B04A); border: 2.5px solid #0B1530; color: #fff; font: 400 12px/17px var(--f-display); text-align: center; -webkit-text-stroke: 1.5px #0B1530; paint-order: stroke fill; }
/* arma e escudo nos cantos de baixo */
.crc-eq { position: absolute; left: -6px; right: -6px; bottom: -9px; z-index: 4; display: flex; justify-content: space-between; pointer-events: none; }
.crc-eq img, .crc-eq i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #CBD8EE); border: 2px solid #0B1530; object-fit: contain; padding: 2px; box-shadow: 0 2px 0 #0B1530; }
.crc-eq i { font-style: normal; font-size: 11px; line-height: 19px; text-align: center; filter: grayscale(1); opacity: .6; }
/* barra de experiência */
.crc-bar { position: relative; height: 15px; margin: 2px 2px 0; border-radius: 6px; background: #0F2350; border: 2px solid #0B1530; overflow: hidden; box-shadow: inset 0 2px 0 rgba(0,0,0,.35); }
.crc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #7DF0FF, #1FA8E8); box-shadow: inset 0 2px 0 rgba(255,255,255,.5); }
.crc-bar em { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); font: 400 9px/1 var(--f-display); font-style: normal; color: #fff; -webkit-text-stroke: 1.5px #0B1530; paint-order: stroke fill; }
.crc-bar b { position: relative; display: block; text-align: center; font: 400 9.5px/11px var(--f-display); color: #fff; -webkit-text-stroke: 2px #0B1530; paint-order: stroke fill; }
.crc-bar.lock { background: #3A4560; } .crc-bar.lock b { font-size: 9px; color: #C9D6E4; }
.crc-name { font: 400 11px/1.1 var(--f-display); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; text-shadow: 0 1px 0 #0B1530; }
/* bloqueadas */
.crc.locked .crc-frame { background: linear-gradient(160deg, #8C97AD, #4D5873 60%, #343C52); box-shadow: 0 0 0 2.5px #0B1530, 0 4px 0 2px #0B1530; }
.crc.locked .crc-art { background: radial-gradient(ellipse at 50% 30%, #5D6A88, #2A3350); }
.crc.locked .crc-rays, .crc.locked .crc-shine { display: none; }
.crc.locked .crc-lvl { font-size: 18px; bottom: 30%; -webkit-text-stroke: 0; text-shadow: 0 3px 0 #0B1530; }
/* baralho */
.deck4.crgrid { gap: 10px 8px; padding: 6px 2px 0; }
.crc.fourth .crc-art { background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 7px, transparent 7px 14px), radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tc) 35%, #fff) 0, var(--tc) 45%, var(--tc2) 100%); }
.crc.bad .crc-frame { box-shadow: 0 0 0 2.5px #0B1530, 0 4px 0 2px #0B1530, 0 0 0 5px var(--red); }
.deck-panel { background: radial-gradient(circle at 50% 0, rgba(255,255,255,.18), transparent 60%), linear-gradient(180deg, #2F6BD8, #173F92); }
@media (min-width: 700px) { .crgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .deck4.crgrid { grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; } .crc-lvl { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .crc-rays, .crc-shine { animation: none; } }

.deck4 .crc-bar { margin-top: 8px; }
.deck4 .crc-lvl { bottom: 9px; }

.lb-me { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; border-radius: 16px; }
.lb-me:active { transform: scale(.97); }
.lb-edit { font-style: normal; font-size: 12px; margin-left: 6px; opacity: .75; vertical-align: 2px; }

/* retratos (foto ou personagem) como fundo: nada estica nem se sobrepõe */
.lb-face { display: block; background-color: #2B55D9; }
.av-big { display: block; width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--ink); flex: none; background-color: #2B55D9; }
.avp-cur { display: block; width: 96px; height: 96px; border-radius: 22px; border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); flex: none; background-color: #2B55D9; }
.avp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-rows: 70px; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px; }
.avp-c { display: block; position: relative; width: 100%; height: 70px; padding: 0; border-radius: 14px; border: 3px solid var(--ink); background: #2B55D9; overflow: hidden; cursor: pointer; }
.avp-ci { position: absolute; inset: 0; display: block; }
.avp-c.on { border-color: #fff; box-shadow: 0 0 0 3px var(--yellow); }

/* 2026-11-18: compact battle controls — one portrait per unit, no repeated large card. */
.match .mdock { gap: 5px; padding: 5px 8px calc(5px + var(--safe-b)); }
.match .dk-ap { gap: 7px; }
.match .dk-ap .die { width: 36px; height: 34px; font-size: 20px; }
.match .dk-ap .pips small { font-size: 9px; }
.match .dk-ap .pips i { width: 16px; height: 16px; border-width: 2px; border-radius: 5px; }
.match .endturn { min-height: 36px; padding: 3px 12px 5px; font-size: 15px; }
.match .dk-unit { padding: 5px 7px; gap: 7px; border-radius: 12px; min-height: 66px; }
.match .dk-card { display: none; }
.match .dk-info { gap: 2px; }
.match .dk-name { gap: 3px 5px; }
.match .dk-name b { font-size: 14px; max-width: calc(100% - 50px); }
.match .dk-name .ty { width: 16px; height: 16px; }
.match .dk-cls { font-size: 9px; padding: 0 4px; }
.match .dk-info-btn { width: 24px; height: 24px; }
.match .dk-hprow { gap: 3px; }
.match .dk-hprow .hpbar { height: 13px; min-width: 42px; }
.match .dk-hprow .hpbar span { font-size: 10px; }
.match .dk-stats span { font-size: 10px; padding: 0 3px; }
.match .dk-stats .si { width: 11px; height: 11px; }
.match .dk-disg, .match .dk-warn { font-size: 9px; }
.match .dk-tabs { gap: 4px; padding: 3px 0; }
.match .dk-tab { width: 36px; height: 46px; transform: none; overflow: hidden; border-radius: 8px; }
.match .dk-tab.on { transform: none; box-shadow: 0 0 0 1px #fff; }
.match .dk-tab .dkt-art { width: 105%; }
.match .dk-tab .dkt-ty { top: 1px; left: 1px; width: 14px; height: 14px; border-width: 1px; border-radius: 4px; }
.match .dk-tab .dkt-ty img { width: 9px; height: 9px; margin: 0; }
.match .dk-acts { gap: 4px; padding: 1px 1px 3px; }
.match .abtn { min-width: 48px; min-height: 50px; padding: 2px; flex: 1 0 48px; }
.match .abtn .ab-ic { width: 31px; height: 31px; border-width: 2px; }
.match .abtn .ai { width: 21px; height: 21px; }
.match .abtn b { font-size: 10px; line-height: 1.15; }
.match .abtn .cost { width: 17px; height: 17px; font-size: 11px; top: 0; right: 2px; border-width: 2px; }
/* Tap duel: instructions own a row above controls, never behind the buttons. */
.duel.on:not(.mini) { display: grid; grid-template-rows: auto minmax(100px, 1fr) auto auto auto auto; align-items: center; justify-items: center; gap: 6px; overflow-y: auto; padding: calc(8px + var(--safe-t)) 12px calc(12px + var(--safe-b)); }
.duel:not(.mini) > :not(.du-bg):not(.du-count):not(.du-result):not(.du-mini) { position: relative; flex-shrink: 0; min-width: 0; }
.du-top { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; text-align: left; }
.du-title { font-size: 23px; }
.du-paused { grid-column: 1; justify-self: start; font-size: 10px; }
.du-timer { grid-column: 2; grid-row: 1 / 3; width: 44px; height: 44px; font-size: 23px; }
.du-arena { height: 100%; min-height: 100px; }
.du-img { max-height: clamp(80px, 26dvh, 220px); width: 100%; object-fit: contain; }
.du-f { min-width: 0; }
.du-name { font-size: 15px; }
.du-tags { gap: 2px; margin-top: 3px; }
.du-tags span { font-size: 10px; padding: 2px 4px; }
.du-cn { font-size: 10px; }
.du-adv { font-size: 12px; margin: 0; padding: 3px 10px; }
.du-instructions { width: 100%; display: grid; gap: 3px; text-align: center; }
.du-instructions p { margin: 0; line-height: 1.25; }
.du-hint { font-size: 12px; }
.du-risk, .du-cost { font-size: 10px; }
.du-ctrl { padding-bottom: 5px; gap: 12px; }
.du-btn { height: clamp(76px, 15dvh, 120px); min-height: 76px; box-sizing: border-box; touch-action: none; }
.du-btn img { width: 34px; }
.du-btn b { font-size: 19px; }
@media (max-height: 580px) {
  .duel.on:not(.mini) { grid-template-rows: auto minmax(65px, 1fr) auto auto auto auto; gap: 3px; }
  .du-img { max-height: 75px; }
  .du-arena { min-height: 65px; }
  .du-tags, .du-cn { display: none; }
  .du-btn { height: 76px; }
}
@media (max-width: 360px) {
  .match .dk-tab { width: 31px; height: 44px; }
  .match .dk-name b { font-size: 12px; }
  .match .dk-stats { display: none; }
}

.board2d .c2 > * { rotate: var(--counter-rotation, 0rad); }

@media (max-height: 580px) {
 .du-btn { gap: 1px; padding: 4px; }
 .du-btn img { width: 22px; }
 .du-btn b { font-size: 17px; line-height: 1.1; }
 .du-btn kbd { font-size: 10px; padding: 0 4px; line-height: 1.1; }
}

/* New original character illustrations. Team identity stays in rings, flags and badges. */
.idle-sp.royal-art, .lb-spin.royal-art { background-size: contain; background-position: center bottom; background-repeat: no-repeat; animation: royalBreathe 3s ease-in-out infinite; transform-origin: center bottom; }
@keyframes royalBreathe { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
img[src*="#stage=300"], .royal-art[data-stage="300"] { filter: drop-shadow(0 0 5px #bb844d); }
img[src*="#stage=600"], .royal-art[data-stage="600"] { filter: drop-shadow(0 0 7px #9ad8ff); }
img[src*="#stage=1000"], .royal-art[data-stage="1000"] { filter: drop-shadow(0 0 9px #ffd15c); }
img[src*="#stage=1200"], .royal-art[data-stage="1200"] { filter: drop-shadow(0 0 11px #b78cff) drop-shadow(0 0 3px #fff); }
@media (prefers-reduced-motion: reduce) { .royal-art { animation: none !important; } }

/* Lobby without the former 3D showcase. */
.lb-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px 8px; }
.lb-shortcuts .lb-side { width:100%; min-width:0; }

.c2 .u2{bottom:18%;height:128%}.c2 .hp2{top:auto;bottom:2%;left:12%;right:5%;height:9px}.c2 .ty2{top:auto;bottom:0;left:-2px;width:15px;height:15px}
.c2 .unit2{position:absolute;inset:0;pointer-events:none;display:flex;justify-content:center;transform-origin:center}

/* ===== painel da partida «Ações em cima» ===== */
.match .mdock { gap: 6px; padding: 8px 10px calc(8px + var(--safe-b)); }
.dk-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.dk-apbox { display: flex; align-items: center; gap: 7px; flex: none; }
.dk-apn { font: 400 36px/1 var(--f-display); color: var(--cyan); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); min-width: 22px; text-align: center; }
.dk-apr { display: flex; flex-direction: column; gap: 3px; }
.match .dk-apr small { display: block; font-size: 9.5px; line-height: 1; font-weight: 900; color: #9CC7F0; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.dk-apr .pips { display: flex; gap: 4px; flex: none; }
.dk-apr .pips i { width: 17px; height: 17px; border-radius: 5px; border-width: 2px; }
.dk-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 2px; background: none; border: 0; color: #fff; font: 400 16px/1.1 var(--f-display); text-shadow: 0 2px 0 var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dk-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-title .dk-info-btn { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink); border: 2px solid var(--ink); font: 400 12px/16px var(--f-display); font-style: normal; text-align: center; text-shadow: none; }
div.dk-title { font: 400 14px/1.2 var(--f-display); color: #CFE6FF; white-space: normal; text-align: center; }
.match .dk-head .endturn { min-height: 40px; padding: 4px 14px 6px; font-size: 16px; }
/* ações: círculos grandes, bola do custo presa ao círculo com o número bem centrado */
.match .dk-acts { display: flex; justify-content: space-between; gap: 4px; padding: 6px 2px 2px; overflow-x: auto; }
.match .abtn { flex: 1 0 58px; min-width: 58px; max-width: 82px; min-height: 0; padding: 0; gap: 4px; }
.match .abtn .ab-ic { position: relative; width: 50px; height: 50px; border-width: 3px; }
.match .abtn .ai { width: 28px; height: 28px; }
.match .abtn b { font-size: 12px; line-height: 1.1; max-width: 80px; }
.match .abtn .cost { position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; min-width: 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background: linear-gradient(#FFF6B8, var(--yellow)); box-shadow: 0 2px 0 var(--ink); font-style: normal; }
.match .abtn .cost span { display: block; font: 400 14px/1 var(--f-display); color: var(--ink); transform: translateY(1px); }
/* trocar personagem: cartões com retrato, nome e vida */
.dk-swap { display: flex; flex-direction: column; gap: 4px; }
.dk-sub { font: 400 13px var(--f-display); color: #CFE6FF; padding-left: 2px; }
.dk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; }
.dk-pc { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; height: 46px; padding: 0 6px 0 2px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: linear-gradient(180deg, #2E5DA8, #1B3D7A); color: #fff; cursor: pointer; overflow: hidden; }
.dk-pc img { flex: none; height: 44px; width: 34px; object-fit: cover; object-position: 50% 15%; }
.dk-pcn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.dk-pcn b { font: 400 13px/1 var(--f-display); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-pchp { display: block; height: 5px; border-radius: 3px; background: rgba(0,0,0,.35); overflow: hidden; }
.dk-pchp i { display: block; height: 100%; background: var(--green); }
.dk-pchp.low i { background: var(--red); }
.dk-pc.on { border: 3px solid var(--yellow); box-shadow: 0 0 0 2px var(--ink), 0 0 12px rgba(255,200,61,.6); background: linear-gradient(180deg, #3A6DBE, #24498E); }
.dk-status { text-align: center; font-size: 12.5px; line-height: 1.25; font-weight: 800; color: #CFE6FF; }
.dk-status .dk-disg { display: block; font-size: 11.5px; }
.dk-status b { color: var(--yellow); font-family: var(--f-display); font-weight: 400; }
.dk-status .dk-disg { color: #FFC8F5; }
@media (max-width: 420px) { .match .dk-apr small { display: none; } }
@media (max-width: 380px) { .dk-apr .pips { gap: 3px; } .dk-apr .pips i { width: 13px; height: 13px; border-radius: 4px; } .dk-apn { font-size: 30px; } .dk-head { gap: 7px; } .match .dk-head .endturn { padding: 4px 10px 6px; font-size: 14px; } .dk-title { font-size: 14px; } }
@media (max-width: 350px) { .match .abtn { flex-basis: 52px; min-width: 52px; } .match .abtn .ab-ic { width: 44px; height: 44px; } .match .abtn .ai { width: 24px; height: 24px; } .match .abtn b { font-size: 10.5px; } .match .abtn .cost { width: 21px; height: 21px; right: -6px; } .match .abtn .cost span { font-size: 12px; } .dk-pc { padding-right: 4px; gap: 2px; } .dk-pc img { width: 24px; } .dk-pcn b { font-size: 11.5px; text-overflow: clip; } }

/* Lobby restored with the team's approved character illustrations. */
.lb-team-show{height:360px;isolation:isolate}
.lb-team-art{position:absolute;inset:0 0 82px;width:100%;height:calc(100% - 82px);object-fit:contain;filter:drop-shadow(0 12px 12px #061c5866);touch-action:pan-y;user-select:none}
.lb-team-show .lb-name{bottom:55px;max-width:100%;font-size:14px;display:flex;align-items:center;gap:5px}
.lb-team-show .lb-name img{width:20px;height:20px}
.lb-team-show .lb-name small{font-size:10px}
.lb-team-choices{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:5px}
.lb-team-choices button{width:39px;height:48px;padding:0;border:2px solid #82caff;border-radius:10px;background:linear-gradient(#3b9bea,#123778);overflow:hidden;cursor:pointer}
.lb-team-choices button.on{border-color:#ffe074;box-shadow:0 0 12px #ffcd56}
.lb-team-choices img{width:100%;height:100%;object-fit:contain}
.col-character{min-width:0;display:flex;flex-direction:column;gap:5px}
.col-character>.crc{width:100%;flex:1}
.col-train.btn{padding:5px 2px;font-size:11px;min-height:32px;white-space:normal}
.training-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.training-options button{display:flex;flex-direction:column;gap:5px;white-space:normal}
.training-options .chosen{background:linear-gradient(#ffe989,#ffc32e);color:#112d50;box-shadow:0 0 12px #ffd34a88}
.rule .rule-h h3{color:#ffd45a;-webkit-text-stroke:1px #173657;paint-order:stroke fill;text-shadow:0 1px 0 #173657}
@media(max-width:360px){.lb-team-choices button{width:32px;height:43px}.lb-team-show .lb-name{font-size:11px}.lb-team-show{height:330px}}

/* Illustrated lobby icons: preserve their painted colours and materials. */
.lobby .lobby-icon{object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 2px #061a5066)}
.lb-side .ls-ic img{width:48px;height:48px;filter:drop-shadow(0 3px 2px #061a5080)}
.lb-side .ls-ic{overflow:visible}
.lb-tool img{width:29px;height:29px;object-fit:contain;filter:drop-shadow(0 2px 1px #061a5066)}
.lb-trophy img{width:30px;height:30px;object-fit:contain}
.lb-rank img{width:46px;height:46px;object-fit:contain}
.lb-mode .lobby-icon{width:38px;height:38px}
.lb-mode{gap:6px;padding:8px}
.lb-mode b{min-width:0}
.lobby .qi .lobby-icon{width:38px;height:38px}
.lb-chest .lc-ic{position:relative}
.lb-chest .lc-ic .lobby-icon{width:42px;height:42px}
.lb-chest .lc-ic b{position:absolute;right:-3px;bottom:0;color:#b7ff9a}

/* seta da personagem selecionada no tabuleiro 2D (mesmo grafismo dos botões) */
.c2.sel { overflow: visible; }
.c2.sel::before { content: ''; position: absolute; left: 50%; top: -26px; z-index: 6; width: 22px; height: 26px; margin-left: -11px; pointer-events: none; animation: selArrow .7s ease-in-out infinite alternate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 52'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFF6B8'/%3E%3Cstop offset='.45' stop-color='%23FFC83D'/%3E%3Cstop offset='1' stop-color='%23F29A00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M14 5h16v18h9L22 46 5 23h9z' fill='%230F1A3A' transform='translate(0 4)' stroke='%230F1A3A' stroke-width='6' stroke-linejoin='round'/%3E%3Cpath d='M14 5h16v18h9L22 46 5 23h9z' fill='url(%23g)' stroke='%230F1A3A' stroke-width='5' stroke-linejoin='round'/%3E%3Crect x='16' y='8' width='4' height='14' rx='2' fill='%23fff' opacity='.75'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes selArrow { to { transform: translateY(-5px); } }

/* barra inferior com os ícones ilustrados do lobby */
#tabs a img.tab-ic { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(6,26,80,.45)); }
#tabs a.on img.tab-ic { filter: drop-shadow(0 5px 2px rgba(15,42,74,.45)); }
#tabs a span.tab-av { display: block; opacity: 1; width: 36px; height: 36px; margin-bottom: 2px; border-radius: 50%; overflow: hidden; flex: none;
  border: 3px solid #F4B83E; box-shadow: 0 0 0 2px #0F1A3A, inset 0 0 0 2px rgba(255,255,255,.35), 0 3px 2px rgba(6,26,80,.45);
  background-size: 165% auto, cover !important; background-position: 50% 19%, center !important; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
#tabs a span.tab-av.photo { background-size: cover !important; background-position: center !important; }
#tabs a.on span.tab-av { transform: translateY(-14px) scale(1.2); border-color: #FFE27A; }

/* ===== missões ===== */
.q-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.q-tabs { position: sticky; top: 0; z-index: 3; }
.q-tabs button { position: relative; }
.q-badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red, #FF4D5E); color: #fff; font: 400 11px/18px var(--f-display); font-style: normal; border: 2px solid var(--ink); }
.q-note { text-align: center; font: 400 13px var(--f-display); color: #fff; background: linear-gradient(90deg, rgba(61,220,132,.25), rgba(61,220,132,.05)); border: 2px solid rgba(61,220,132,.6); border-radius: 12px; padding: 6px 10px; }
.q-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.q-sec h3 { margin: 0; }
.q-timer { font: 800 12px var(--f-body, inherit); color: #CFE6FF; white-space: nowrap; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: linear-gradient(180deg, #2E5DA8, #1B3D7A); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: #fff; }
.q-row.ready { background: linear-gradient(180deg, #3A6DBE, #24498E); box-shadow: 0 4px 0 var(--ink), 0 0 14px rgba(255,200,61,.55); border-color: #FFC83D; }
.q-row.claimed { opacity: .6; }
.q-ic { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 2px rgba(6,26,80,.5)); }
.q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.q-main b { font: 400 14px/1.15 var(--f-display); }
.q-stars { margin-left: 6px; color: var(--yellow); letter-spacing: 1px; font-size: 13px; }
.q-bar { position: relative; height: 16px; border-radius: 8px; background: #0F2350; border: 2px solid var(--ink); overflow: hidden; }
.q-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #B8FFB0, #3DDC84 55%, #1FAE5E); }
.q-bar span { position: relative; display: block; text-align: center; font: 400 10.5px/12px var(--f-display); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.q-rw { display: flex; gap: 4px; flex-wrap: wrap; }
.q-rw .rw { font: 400 11px/1 var(--f-display); font-style: normal; padding: 3px 6px; border-radius: 8px; border: 2px solid var(--ink); }
.q-rw .coins { background: linear-gradient(#FFF3B0, var(--yellow)); color: var(--ink); }
.q-rw .pd { background: linear-gradient(#BFE9FF, var(--cyan)); color: var(--ink); }
.q-rw .xp { background: linear-gradient(#E9C8FF, #B57BFF); color: var(--ink); }
.q-done { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#9BF7A8, #22B04A); border: 3px solid var(--ink); font: 400 16px var(--f-display); color: #fff; flex: none; }
.btn.go.pulse { animation: beat .6s infinite alternate; }
/* check-in */
.ci-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 0, rgba(255,255,255,.2), transparent 60%), linear-gradient(180deg, #7A3FD0, #4A1F95); box-shadow: 0 5px 0 var(--ink); color: #fff; }
.ci-head { display: flex; align-items: center; justify-content: space-between; } .ci-head b { font: 400 18px var(--f-display); }
.ci-streak { font: 400 13px var(--f-display); background: rgba(0,0,0,.3); padding: 3px 10px; border-radius: 12px; }
.ci-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ci-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 5px; border-radius: 10px; background: rgba(15,26,58,.45); border: 2px solid rgba(255,255,255,.15); }
.ci-day small { font: 400 10px var(--f-display); } .ci-day img { width: 30px; height: 30px; object-fit: contain; }
.ci-day .q-rw { flex-direction: column; align-items: center; gap: 2px; } .ci-day .q-rw .rw { font-size: 8.5px; padding: 1px 3px; border-width: 1.5px; }
.ci-day.big { background: linear-gradient(180deg, rgba(255,200,61,.45), rgba(255,140,0,.25)); border-color: var(--yellow); } .ci-day.big img { width: 36px; height: 36px; }
.ci-day.today { border-color: #fff; box-shadow: 0 0 0 2px var(--yellow), 0 0 14px rgba(255,200,61,.8); animation: beat .7s infinite alternate; }
.ci-day.got { opacity: .55; } .ci-ok { position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px var(--f-display); color: #9BF7A8; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.ci-card small.muted { color: #E5D6FF; text-align: center; }
.ci-modal { width: 100%; max-width: 440px; }
/* comparência do mês */
.att-track { position: relative; height: 74px; margin: 6px 18px 0; }
.att-line { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 5px; background: #0F2350; border: 2px solid var(--ink); overflow: hidden; }
.att-line i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #C86BFF, #FFC83D); }
.att-node { position: absolute; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.att-node b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#5C7FC0, #2B4C8F); border: 3px solid var(--ink); font: 400 14px var(--f-display); }
.att-node.ready b { background: linear-gradient(#FFF3B0, var(--yellow)); color: var(--ink); box-shadow: 0 0 12px rgba(255,200,61,.8); animation: beat .7s infinite alternate; }
.att-node.claimed b { background: linear-gradient(#9BF7A8, #22B04A); }
.att-node small { font: 400 9.5px var(--f-display); white-space: nowrap; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.modal-box:has(.ci-modal) { padding: 8px; background: transparent; border: 0; box-shadow: none; }

/* aviso de recompensa: fixo no ecrã e texto legível */
.bigpop { position: fixed; z-index: 120; }
.bp-card small { color: #fff; font-size: 20px; padding: 6px 16px; background: rgba(4,16,40,.92); -webkit-text-stroke: 0; text-shadow: 0 2px 0 rgba(0,0,0,.5); }

/* quem está a jogar e quantas jogadas tem: contador grande na pílula do topo */
.tp-ap { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 5px; padding: 3px 9px 4px 7px; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 80%, #fff), var(--sc)); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.tp-ap b { grid-row: 1 / 3; font: 400 30px/1 var(--f-display); -webkit-text-stroke: 0; }
.tp-ap small { font: 400 10px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.tp-pips { display: flex; gap: 2px; } .tp-pips i { width: 8px; height: 8px; border-radius: 3px; background: rgba(15,26,58,.35); border: 1.5px solid var(--ink); } .tp-pips i.on { background: #fff; }
.tp-ap.mine { animation: pillp 1.2s ease-in-out infinite alternate; }
.turnpill { border-width: 3px; }
.turnpill:not(.mine) { background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 55%, #10264f), color-mix(in srgb, var(--sc) 30%, #0b1838)); }
@media (max-width: 380px) { .tp-ap b { font-size: 24px; } .tp-ap small { display: none; } }
/* ajuda/regras/guia: ícones das ações especiais */
.help .sw-ic { width: 26px; height: 26px; flex: none; }
.us-abic { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.g-specials { display: grid; gap: 8px; margin-top: 8px; }
.g-sp { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(15,42,74,.08); border: 2px solid rgba(15,42,74,.15); }
.g-sp img { width: 46px; height: 46px; flex: none; background: #1B3D7A; border-radius: 12px; padding: 5px; border: 2px solid #0F2A4A; }
.g-sp b { font: 400 15px var(--f-display); } .g-sp p { margin: 2px 0 0; }
