/* ===== Liroth v8.28 - PADRAO UNICO de textos, titulos e botoes (carregado por ultimo) =====
   Escala: titulo da pagina 26px (22px no celular) | secao 16px | texto 14px | apoio 13px | legenda 12px
   Botao principal 44px / 14px | botao pequeno (filtros, paginas) 36px / 13px */

/* titulos */
html body .BoxContent h1{font-size:26px !important;line-height:1.2}
html body .BoxContent h1.bw-pagetitle{font-size:26px !important}
html body .BoxContent font.f3,html body .BoxContent font.f3 p,html body .BoxContent font.f3 b{font-size:16px !important;line-height:1.35 !important}
html body .BoxContent font.f2,html body #News font.f2,html body #News .f2{font-size:14px !important;line-height:1.5 !important}
html body .BoxContent font.f1,html body #News font.f1,html body #News .f1{font-size:14px !important;line-height:1.6 !important}
html body .BoxContent h3.lr-sec,html body .BoxContent h3.lg-sec,html body .BoxContent h3.sp-h{font-size:16px}
html body .BoxContent h4.lg-grp,html body .BoxContent h3.lg-grp{font-size:15px}

/* texto corrido */
html body .BoxContent .lr-lead,html body .BoxContent .lg-lead,html body .BoxContent .sp-lead{font-size:15px;line-height:1.6}
html body .BoxContent p,html body .BoxContent li{font-size:14px}
html body .BoxContent td,html body .BoxContent .lr-nw li,html body .BoxContent .lr-nw-promo span,html body .BoxContent .lr-role-h span{font-size:14px}
html body.bw-clean .BoxContent table:has(> thead) tbody td,html body.bw-clean .BoxContent td[style*="width:15%"] b{font-size:14px}
html body .BoxContent .lr-tbl th{font-size:13px}

html body.bw-clean .BoxContent table[border="1"] td{font-size:14px !important}
html body.bw-clean .BoxContent table[border="1"] th{font-size:13px !important}
html body.bw-clean .BoxContent table:has(> thead) tbody td{font-size:14px !important}

html body .BoxContent .TableContent td,html body .BoxContent .TableContent td p,html body .BoxContent .TableContent td b,html body .BoxContent .TableContent label{font-size:14px !important}

/* legendas e rotulos pequenos */
html body .BoxContent dt,html body .BoxContent th,html body .BoxContent small,html body .BoxContent .lr-kpi span,html body .BoxContent .lg-bar label,html body .BoxContent .lr-day>i small{font-size:12px}
html body .BoxContent .lg-cnt,html body .BoxContent .hr .hs,html body .BoxContent .hr .hx,html body .BoxContent .lg-act a{font-size:13px}

/* botao principal: 44px / 14px */
html body .BoxContent .BigButton{box-sizing:border-box;height:44px !important;max-height:44px;border-radius:10px !important}
html body .BoxContent .BigButtonText,html body .BoxContent .BigButton input[type=submit],html body .BoxContent input.BigButtonText{height:44px;font-size:14px !important;font-weight:600;line-height:44px}
html body .BoxContent a.lr-nw-btn,html body .lr-conn-a a.lr-nw-btn,html body .lr-links a.lr-nw-btn,html body .lr-conn-a a.lr-nw-btn2,html body .lr-links a.lr-nw-btn2{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:0 22px;border-radius:10px;font:600 14px/1.2 "BW Barlow",sans-serif}
html body .BoxContent input[type=submit]:not(.BigButtonText),html body .BoxContent input[type=button]{box-sizing:border-box;min-height:44px;height:44px;padding:0 22px;border-radius:10px;font:600 14px "BW Barlow",sans-serif}

/* botao pequeno: 36px / 13px (filtros, abas, paginas) */
html body .lr-pg button{min-width:36px;height:36px;padding:0 12px;font-size:13px;border-radius:8px}
html body .lg-tabs button{height:36px;font-size:13px}
html body .lg-nav a{font-size:13px}
html body .lg-act a{padding:0 14px;min-height:36px;display:inline-flex;align-items:center;border-radius:8px}

/* Magias */
.sp-lead{margin:0 0 6px;text-align:center;color:#cfc6b0}
html body .BoxContent h3.sp-h{margin:26px 0 12px;text-align:center;font-family:'BW Cinzel',Georgia,serif;font-weight:600;color:#e2b04a;letter-spacing:.4px}
.sp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:760px;margin:0 auto}
html body .BoxContent a.sp-card,html body .BoxContent a.sp-wide{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:14px 10px 16px;background:#121110;border:1px solid #262524;border-radius:12px;text-decoration:none}
html body .BoxContent a.sp-card:hover,html body .BoxContent a.sp-wide:hover{border-color:#e2b04a;background:#17140d}
.sp-card img{width:80px;height:80px;margin:0 0 6px;image-rendering:auto}
html body .BoxContent .sp-card b{font:600 15px "BW Barlow",sans-serif;color:#f3d489}
html body .BoxContent .sp-card span{font:400 13px/1.35 "BW Barlow",sans-serif;color:#b9ad92}
html body .BoxContent a.sp-wide{box-sizing:border-box;width:100%;max-width:760px;margin:0 auto;gap:10px}
.sp-ic{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.sp-ic img{width:40px;height:40px}
html body .BoxContent .sp-wide b{font:600 14px "BW Barlow",sans-serif;color:#f3d489}
@media (max-width:700px){.sp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* celular */
@media (max-width:600px){
  html body .BoxContent h1,html body .BoxContent h1.bw-pagetitle{font-size:22px !important}
  html body .BoxContent td{font-size:13px}
  html body .BoxContent .lr-lead,html body .BoxContent .lg-lead,html body .BoxContent .sp-lead{font-size:14px}
}

/* Loja: icones das medalhas e coroas um pouco maiores */
html body .bw-pack .bw-oic,html body .bw-offer>.bw-gem{width:44px !important;height:44px !important;flex:0 0 44px}

/* ===== v8.29: acabamento - cantos e bordas iguais em todo o site ===== */
/* paineis grandes: cantos 12px e borda neutra */
html body #Menu .bw-g,html body .rank,html body .rashid,html body .serversave,html body .donate,html body .InfoBar,html body .BoxContent .bw-shop,html body .BoxContent .bw-next,html body .BoxContent .lg-box,html body .BoxContent .lr-box{border-radius:12px}
html body .BoxContent table.TableContent{border-radius:12px;border-color:#2a2622;overflow:hidden}
html body .BoxContent .bw-shop,html body .InfoBar,html body #Menu .bw-g{border-color:#2a2622}
/* cartoes internos: cantos 10px */
html body .BoxContent .bw-offer,html body .BoxContent .bw-waitgrid>a,html body .BoxContent .lr-cards>div,html body .BoxContent .bw-pack,html body .BoxContent .lg-loc-d{border-radius:10px}
/* titulos de painel: mesma fonte e tamanho */
html body .BoxContent .bw-shop-h h3,html body .BoxContent .bw-wait>h3{font:600 18px 'BW Cinzel',Georgia,serif}
/* foco visivel e movimento reduzido */
html body a:focus-visible,html body button:focus-visible,html body select:focus-visible,html body input:focus-visible{outline:2px solid #e2b04a;outline-offset:2px}
@media (prefers-reduced-motion:reduce){html body *{scroll-behavior:auto !important}}

/* ===== v8.30: Mapa - lista com imagens ===== */
html body .lm-it .lm-b.hi{width:40px;height:40px;background:#14110d !important;border:2px solid var(--c,#4a4036);border-radius:10px;position:relative;overflow:visible;color:#f3e6c4}
html body .lm-it.q .lm-b.hi{border-color:#b47cff}
html body .lm-it.n .lm-b.hi{border-color:#5aa9ff}
html body .lm-it.d .lm-b.hi{border-color:#c98a4b}
html body .lm-it.a .lm-b.hi{border-color:#ff5d5d}
html body .lm-it.r .lm-b.hi{border-color:#aab3c2}
html body .lm-it.v .lm-b.hi{border-color:#3fd0c9}
html body .lm-it.b .lm-b.hi{border-color:#ff7a45}
html body .lm-it.t .lm-b.hi{border-color:#f3d489}
html body .lm-it .lm-b.hi::before{content:none}
html body .lm-it .lm-b .lm-bi{max-width:32px;max-height:32px;width:auto;height:auto;image-rendering:auto}
html body .lm-it .lm-b.hi em{position:absolute;right:-6px;bottom:-6px;font:700 10px 'BW Barlow',sans-serif;font-style:normal;background:var(--c,#4fbf6a);color:#111;padding:1px 4px;border-radius:6px;line-height:1.2}
html body .lm-it:has(.lm-b.hi){grid-template-columns:44px 1fr}

/* ===== v8.30: faixa de abertura das paginas (icone + atalhos) ===== */
html body .pg-hero{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:12px 14px;background:linear-gradient(135deg,#1c1812,#12100d);border:1px solid #2a2622;border-radius:12px}
html body .pg-ic{flex:0 0 52px;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#e2b04a;background:radial-gradient(circle at 35% 30%,#3a2e17,#17130c);border:2px solid #b98a2e;box-shadow:0 0 0 3px rgba(226,176,74,.12)}
html body .pg-ic svg{width:28px;height:28px}
html body .pg-ch{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
html body .pg-ch a{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:10px;border:1px solid #3a3226;background:#16130f;color:#e8d9b0;font:600 13px 'BW Barlow',sans-serif;text-decoration:none}
html body .pg-ch a:hover{border-color:#b98a2e;color:#fff}
@media (max-width:900px){html body .pg-hero{padding:10px 12px;gap:10px}html body .pg-ch{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}html body .pg-ch a{white-space:nowrap}}

/* ===== v8.30: tabelas e caixas antigas do MyAAC no mesmo padrao ===== */
html body .TableContainer{border:1px solid #2a2622 !important;border-radius:12px;overflow:hidden;background:rgba(18,16,13,.55)}
html body .TableContentContainer{border-color:#2a2622 !important;border-radius:12px;overflow:hidden}
html body .TableContainer .TableContainer{border-radius:10px}
html body .TableContainer .CaptionContainer,html body .TableContainer .Text{font-family:'BW Cinzel',Georgia,serif}
@media (max-width:900px){
 html body.pg-guilds table.TableContent tr:first-child:has(td[bgcolor]),html body.pg-guilds .TableContent tr.LabelH{display:none}
 html body.pg-guilds .TableContainer table.TableContent tr:has(a[href*="guild"]),html body.pg-guilds .TableContainer table.TableContent tr:has(input[type=submit]){display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #2a2622}
 html body.pg-guilds .TableContent td{display:block;padding:0 !important;border:0 !important;width:auto !important}
 html body.pg-guilds .TableContent td img{max-width:56px;height:auto}
}
@media (max-width:900px){html body.pg-guilds .TableContent td:last-child a,html body.pg-guilds .TableContent td:last-child input,html body.pg-guilds .TableContent td:last-child button,html body.pg-guilds .TableContent td:last-child .BigButton{min-width:0 !important;width:84px !important;max-width:84px !important;padding:0 !important;margin:0 !important}}
html body img.gi-h[src*="/guia/l/"],html body img.gi-s[src*="/guia/l/"],html body img.gi-b[src*="/guia/l/"]{image-rendering:auto}

/* ===== v8.31: personagem, vazio, regras ===== */
/* cartao de personagem */
html body .pg-char{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding:14px;background:linear-gradient(135deg,#1c1812,#12100d);border:1px solid #2a2622;border-radius:12px;flex-wrap:wrap}
html body .pg-pic{flex:0 0 96px;width:96px;height:96px;border-radius:12px;border:2px solid #b98a2e;background:radial-gradient(circle at 50% 35%,#2e2415,#120f09);display:flex;align-items:center;justify-content:center;overflow:hidden}
html body .pg-pic img{max-width:90px;max-height:90px}
html body .pg-pic img.pg-vimg{image-rendering:pixelated;width:48px}
html body .pg-pic.pg-noimg img:not(.pg-vimg){display:none}
html body .pg-ci{flex:1;min-width:200px}
html body .pg-ci h2{margin:0 0 8px;font:600 26px 'BW Cinzel',Georgia,serif;color:#f3e6c4}
html body .pg-cc{display:flex;flex-wrap:wrap;gap:8px}
html body .pg-cc span{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;border:1px solid #3a3226;background:#16130f;color:#e8d9b0;font:600 13px 'BW Barlow',sans-serif}
html body .pg-cc .pg-st.on{color:#4fd36a;border-color:#2e6b3b}
html body .pg-cc .pg-st.off{color:#a99f88}
html body .pg-sh{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid #b98a2e;background:#16130f;color:#f3e6c4;font:600 14px 'BW Barlow',sans-serif;cursor:pointer}
html body .pg-sh:hover{background:#221b10}
@media (max-width:600px){html body .pg-sh{width:100%;justify-content:center}html body .pg-pic{flex-basis:80px;width:80px;height:80px}}
/* telas vazias */
html body .pg-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;margin:0 0 16px;padding:28px 16px;border:1px dashed #3a3226;border-radius:12px;background:rgba(18,16,13,.6)}
html body .pg-empty .pg-ic{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#e2b04a;border:2px solid #b98a2e;background:radial-gradient(circle at 35% 30%,#3a2e17,#17130c)}
html body .pg-empty b{font:600 18px 'BW Cinzel',Georgia,serif;color:#f3e6c4}
html body .pg-empty p{margin:0;max-width:44ch;color:#a99f88;font:500 14px 'BW Barlow',sans-serif}
html body .pg-eb{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:10px;border:1px solid #b98a2e;color:#f3e6c4;text-decoration:none;font:600 14px 'BW Barlow',sans-serif}
/* paginas de regras: titulos de secao e linha legivel */
html body .Border_3 p:has(>font.f3){margin:22px 0 8px;padding:8px 12px;border-left:3px solid #b98a2e;background:linear-gradient(90deg,rgba(226,176,74,.09),transparent);border-radius:0 8px 8px 0}
html body.pg-termos .Border_3 p,html body.pg-privacidade .Border_3 p,html body.pg-regrasdoar .Border_3 p,html body.pg-porquedoar .Border_3 p{max-width:78ch}
@media (max-width:900px){html body .pg-ch{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:18px}}

/* ===== v9: aviso mobile, cookies, mostrar mais ===== */
html body .pg-pc{display:none}
@media (max-width:900px){
 html body .pg-pc{display:block;margin:14px 0 0;padding:14px;background:linear-gradient(135deg,#1c1812,#12100d);border:1px solid #2a2622;border-radius:12px}
 html body .pg-pc b{display:block;font:600 17px 'BW Cinzel',Georgia,serif;color:#e2b04a;margin:0 0 6px}
 html body .pg-pc p{margin:0 0 12px;font:500 14px/1.45 'BW Barlow',sans-serif;color:#d9cfb8}
 html body .pg-pb{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 html body .pg-pb button{height:44px;padding:0 10px;border-radius:10px;border:1px solid #b98a2e;background:#16130f;color:#f3e6c4;font:600 13px 'BW Barlow',sans-serif;cursor:pointer}
 html body .pg-pb button:only-child{grid-column:1/-1}
}
html body .lr-ck{position:fixed;left:12px;right:12px;bottom:12px;z-index:120;max-width:560px;margin:0 auto;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px;background:#14110d;border:1px solid #b98a2e;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.55)}
html body .lr-ck p{margin:0;flex:1 1 260px;font:500 13px/1.45 'BW Barlow',sans-serif;color:#e8d9b0}
html body .lr-ck a{color:#e2b04a}
html body .lr-ck div{display:flex;gap:8px}
html body .lr-ck button{height:38px;padding:0 16px;border-radius:10px;border:1px solid #3a3226;background:#16130f;color:#f3e6c4;font:600 13px 'BW Barlow',sans-serif;cursor:pointer}
html body .lr-ck button.y{background:linear-gradient(#f6dc92,#cf9835);border-color:#f1d58f;color:#1a1408}
@media (max-width:900px){html body .lr-ck{bottom:76px}}
html body .pg-more{display:block;margin:14px auto;height:42px;padding:0 22px;border-radius:10px;border:1px solid #b98a2e;background:#16130f;color:#f3e6c4;font:600 14px 'BW Barlow',sans-serif;cursor:pointer}

/* v9.1: botao da lista de guilds nao encosta na borda */
html body.pg-guilds .TableContainer table.TableContent td:last-child{padding-right:16px !important;text-align:right}
html body.pg-guilds .TableContainer table.TableContent td:last-child a,html body.pg-guilds .TableContainer table.TableContent td:last-child input{max-width:100%}
html body.pg-guilds .TableContainer table.TableContent td:last-child .BigButton,html body.pg-guilds .TableContainer table.TableContent td:last-child input.BigButtonText,html body.pg-guilds .TableContainer table.TableContent td:last-child a{width:84px !important;min-width:0 !important;padding-left:0 !important;padding-right:0 !important}
html body.pg-guilds .TableContainer table.TableContent td:last-child{padding-right:8px !important}
html body .pg-pic canvas.pg-oc{image-rendering:pixelated;max-width:90px;max-height:90px}
html body .pg-pic img.pg-ofb{image-rendering:pixelated;max-width:none;max-height:none;width:64px;height:64px;transform-origin:75% 75%;transform:translate(-16px,-16px) scale(1.5)}

/* v9.3: habilidades do personagem */
html body .pg-sk{display:grid;grid-template-columns:repeat(9,1fr);gap:8px;margin:4px 0}
html body .pg-skc{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px 10px;background:#14110d;border:1px solid #2a2622;border-radius:10px;text-align:center;min-width:0}
html body .pg-skc .pg-ski{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#e2b04a;border:1.5px solid #6e5320;background:radial-gradient(circle at 35% 30%,#2e2415,#120f09)}
html body .pg-skc b{font:600 19px 'BW Cinzel',Georgia,serif;color:#f3e6c4;line-height:1.1;margin-top:2px}
html body .pg-skc small{font:500 12px 'Barlow',system-ui,sans-serif;color:#a89a7c;line-height:1.1}
html body .pg-skc.z b{color:#7d725c}
html body .pg-skc.z .pg-ski{opacity:.6}
html body .pg-skc.lv{border-color:#b98a2e;background:linear-gradient(160deg,#2a2112,#14110d)}
@media (max-width:700px){html body .pg-sk{grid-template-columns:repeat(3,1fr)}}
