/* ==========================================================================
   AETHER — design system para Morpheus MuWeb
   Obsidiana quente + brasa. Sem sidebar, header flutuante, gaveta de conta,
   home em grade "bento". Sobrescreve Bootstrap 4 para todas as views existentes.
   ========================================================================== */

:root {
  --bg:      #0a0908;
  --bg-2:    #100e0c;
  --card:    #14110e;
  --card-2:  #1a1612;
  --line:    #2a241d;
  --line-2:  #3d3428;
  --text:    #efe7da;
  --muted:   #9b9080;
  --ember:   #ff5a2c;
  --ember-2: #ff9d3d;
  --crimson: #d4204a;
  --gold:    #e8c070;
  --teal:    #5eea6a;
  --danger:  #ff5f6d;
  --grad:    linear-gradient(135deg, #ffb347 0%, #ff6a2c 55%, #d4204a 130%);
  --r:       8px;
  --r-lg:    14px;
  --wrap:    1200px;
  --gutter:  clamp(16px, 4vw, 32px);
  --shadow:  0 24px 60px -24px rgba(0,0,0,.8);
  --serif:   "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --head-h:  72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 400 .95rem/1.65 var(--sans); color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255,90,44,.08), transparent 60%);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--ember-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--ember); color: #160a04; }
h1,h2,h3,h4,h5 { color: #fff; font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: #3d3428 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #3d3428; border-radius: 10px; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 5000; background: var(--ember); color: #160a04; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #160a04; }

.ae-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ae-grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ae-main, .ae-footer, .ae-head, .ae-ticker { position: relative; z-index: 1; }

/* ---------- ticker ---------- */
.ae-ticker { background: #070605; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.ae-ticker-in { display: flex; align-items: center; gap: 1.4rem; min-height: 36px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ae-ticker-in::-webkit-scrollbar { display: none; }
.ae-ticker-item { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.ae-ticker-item strong { color: var(--text); font-weight: 600; }
.ae-ticker-item i { color: var(--ember-2); font-size: .72rem; }
a.ae-ticker-item:hover strong { color: var(--ember-2); }
.ae-lang { display: inline-flex; gap: .3rem; }
.ae-lang img { height: 13px; width: auto; display: block; }
.ae-lang a { opacity: .45; padding: 3px; border-radius: 4px; transition: .2s; line-height: 0; }
.ae-lang a:hover, .ae-lang a.active { opacity: 1; background: rgba(255,255,255,.06); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.on { background: var(--teal); animation: ping 2.2s infinite; } .dot.off { background: var(--danger); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 85, 0.55); } 80%,100% { box-shadow: 0 0 0 9px rgba(94, 234, 129, 0); } }
.online { color: var(--teal) !important; } .offline { color: var(--danger) !important; }

/* ---------- header flutuante ---------- */
.ae-head { position: sticky; top: 0; z-index: 1040; padding: 12px 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), padding .25s; }
.ae-head.is-hidden { transform: translateY(-110%); }
.ae-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--head-h); padding-block: 8px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(16,14,12,.72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 40px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  max-width: calc(var(--wrap) + 0px); padding-inline: 14px 10px; transition: background .25s, min-height .25s; }
.ae-head.is-stuck .ae-head-in { background: rgba(10,9,8,.9); min-height: 62px; }
.ae-brand { display: flex; align-items: center; padding-left: 10px; flex: none; }
.ae-brand img { max-height: 44px; width: auto; filter: drop-shadow(0 2px 10px rgba(255,90,44,.25)); }
.ae-nav { display: flex; align-items: center; gap: .1rem; position: relative; }
.ae-nav > a, .ae-more > a {
  position: relative; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: .55rem .95rem; border-radius: 999px; transition: color .2s, background .2s; }
.ae-nav > a:hover, .ae-more > a:hover { color: #fff; background: rgba(255,255,255,.05); }
.ae-nav > a.is-active { color: #160a04; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(255,90,44,.7); }
.ae-more > a::after { margin-left: .5em; }
.ae-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.ae-account-btn i { margin-right: .35rem; }
.ae-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; border-radius: 50%; position: relative; cursor: pointer; }
.ae-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.ae-burger span:nth-child(1) { top: 14px; } .ae-burger span:nth-child(2) { top: 20px; } .ae-burger span:nth-child(3) { top: 26px; }
.ae-burger[aria-expanded=true] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.ae-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.ae-burger[aria-expanded=true] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.dropdown-menu { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; margin-top: .6rem; }
.dropdown-item { color: var(--text); border-radius: 8px; padding: .5rem .9rem; font-size: .88rem; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255,90,44,.12); color: var(--ember-2); }

@media (max-width: 991px) {
  .ae-burger { display: block; }
  .ae-account-btn span { display: none; }
  .ae-head-in { border-radius: 22px; }
  .ae-nav { position: fixed; inset: 0; z-index: 1050; flex-direction: column; align-items: stretch; justify-content: center; gap: .4rem; padding: 90px var(--gutter) 40px;
    background: rgba(10,9,8,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s; }
  .ae-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .ae-nav > a, .ae-more > a { font-family: var(--serif); font-size: 1.5rem; text-transform: none; letter-spacing: 0; padding: .8rem 1rem; border-radius: 12px; color: var(--text); }
  .ae-nav > a.is-active { background: rgba(255,90,44,.14); color: var(--ember-2); box-shadow: none; }
  .ae-burger { position: relative; z-index: 1060; }
  .ae-more .dropdown-menu { position: static !important; transform: none !important; float: none; background: transparent; border: 0; box-shadow: none; }
}

/* ---------- botões ---------- */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .02em; padding: .55rem 1.2rem; border: 1px solid transparent; transition: transform .15s, box-shadow .25s, filter .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .4rem .95rem; font-size: .82rem; } .btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-ae, .bg-orange, .btn-default, .btn-primary, .btn-warning {
  background: var(--grad) !important; color: #160a04 !important; border: 0 !important; box-shadow: 0 10px 26px -10px rgba(255,90,44,.8); }
.btn-ae:hover, .bg-orange:hover, .btn-default:hover, .btn-primary:hover, .btn-warning:hover { filter: brightness(1.1); color: #160a04 !important; box-shadow: 0 14px 34px -10px rgba(255,90,44,.95); }
.btn-line, .btn-secondary, .btn-outline-secondary, .btn-light { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--line-2); }
.btn-line:hover, .btn-secondary:hover, .btn-outline-secondary:hover, .btn-light:hover { border-color: var(--ember-2); color: #fff; background: rgba(255,90,44,.08); }
.btn-info    { background: linear-gradient(135deg, #5eead4, #2dd4bf) !important; border: 0 !important; color: #042f2a !important; }
.btn-success { background: linear-gradient(135deg, #86efac, #34d399) !important; border: 0 !important; color: #052e1b !important; }
.btn-danger  { background: linear-gradient(135deg, #ff5f6d, #d4204a) !important; border: 0 !important; color: #fff !important; }
.btn:disabled, .btn.disabled { opacity: .5; transform: none; pointer-events: none; }

/* ---------- hero ---------- */
.ae-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -84px; padding: calc(84px + clamp(3rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 8vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,.2) 40%, var(--bg) 100%),
    linear-gradient(95deg, rgba(10,9,8,.95) 0%, rgba(10,9,8,.55) 48%, rgba(10,9,8,.05) 100%),
    url("../images/bg.jpg") 70% 15% / cover no-repeat; }
.ae-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(0deg, var(--bg), transparent); }
.ae-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.ae-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.ae-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .72rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ember-2); }
.ae-eyebrow i { font-size: .35rem; color: var(--ember); }
.ae-eyebrow.sm { letter-spacing: .2em; color: var(--muted); }
.ae-hero-title { font-size: clamp(2.8rem, 8.5vw, 6.4rem); line-height: .98; margin: 1rem 0 .8rem; font-weight: 700; letter-spacing: -.025em;
  background: linear-gradient(180deg, #fff 0%, #ffe3c2 55%, #ffb347 120%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.ae-hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: #d9ccb8; max-width: 34ch; margin-bottom: 1.8rem; }
.ae-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.ae-hero-rates { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1px solid var(--line-2); max-width: 520px; }
.ae-hero-rates > div { flex: 1; padding: .9rem 1.2rem .2rem 0; min-width: 110px; }
.ae-hero-rates > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.ae-hero-rates dt { font: 600 .66rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.ae-hero-rates dd { margin: 0; font: 600 1.35rem/1.1 var(--serif); color: #fff; }

.ae-live { position: relative; padding: 1.4rem; background: rgba(16,14,12,.72); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.ae-live::before, .ae-tile::before { content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--ember); border-left: 2px solid var(--ember); border-top-left-radius: var(--r-lg); pointer-events: none; }
.ae-live-head { display: flex; justify-content: space-between; align-items: center; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.ae-ring { --p: 0; width: min(220px, 70%); aspect-ratio: 1; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from -90deg, var(--ember-2), var(--ember) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); position: relative; }
.ae-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ae-ring-in { position: relative; text-align: center; }
.ae-ring-in strong { display: block; font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.ae-ring-in small { font: 600 .68rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ae-live-stats { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.ae-live-stats li { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed var(--line-2); font-size: .85rem; color: var(--muted); }
.ae-live-stats strong { font: 600 1.15rem/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .ae-hero-grid { grid-template-columns: 1fr; } .ae-live { max-width: 440px; } }

/* ---------- bento ---------- */
.ae-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-bottom: 3rem; margin-top: -1rem; }
.ae-tile { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; min-width: 0; transition: border-color .3s, transform .3s; }
.ae-tile:hover { border-color: var(--line-2); }
.t-slides { grid-column: span 8; padding: 0; overflow: hidden; }
.t-shop   { grid-column: span 4; }
.t-news   { grid-column: span 7; }
.t-top    { grid-column: span 5; }
.t-class  { grid-column: span 12; }
.t-events { grid-column: span 6; }
.t-poll   { grid-column: span 6; }
.t-poll.wide { grid-column: span 12; }
.t-gens   { grid-column: span 12; padding: 0; background: none; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-gens::before { display: none; }
.t-siege  { grid-column: span 12; }
.t-gens .ae-tile-title { display: none; }
@media (max-width: 991px) { .t-slides, .t-shop, .t-news, .t-top, .t-events, .t-poll { grid-column: span 12; } }
@media (max-width: 575px) { .t-gens { grid-template-columns: 1fr; } }

.ae-tile-title { display: flex; align-items: center; gap: .6rem; font: 700 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-2); margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.ae-tile .ae-panel { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }

/* painéis genéricos */
.ae-panel, .page-container, .card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); }
.ae-panel { padding: 1.4rem; margin-bottom: 1rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- páginas internas ---------- */
.ae-main { min-height: 60vh; }
.ajax-container > :not(.ae-hero):not(.ae-bento):not(.ae-hall) { width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin-inline: auto; }
.ajax-container > .page-container, .ajax-container > .ae-panel { margin-top: 1.5rem; margin-bottom: 2.5rem; }
.page-container { padding: clamp(1.2rem, 3vw, 2.2rem); }

h1.title, h2.title { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.01em; text-transform: none; color: #fff; margin: 0 0 1.2rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
h1.title::after, h2.title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--grad); }
h1.title .more, h2.title .more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #160a04; font-size: .8rem; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5rem; }
.page-title .t1, .page-title .t3 { display: none; }
.breadcrumb { background: transparent; padding: 0; margin: 0 0 1.4rem; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); } .breadcrumb-item a:hover { color: var(--ember-2); }
.breadcrumb-item.active { color: var(--ember-2); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--line-2); }

/* ---------- modal de conta (login / recuperar / menus) ---------- */
.ae-scrim { position: fixed; inset: 0; z-index: 1900; background: rgba(4,3,2,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s; }
.ae-scrim.show { opacity: 1; }
.ae-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; overflow-y: auto; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s, visibility 0s .25s; }
.ae-modal.open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .25s; }
.ae-modal-card { position: relative; width: min(430px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; margin: auto;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.ae-modal.open .ae-modal-card { transform: none; }
.ae-modal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.ae-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.ae-modal-head h2 { margin: 0; font: 600 1.35rem var(--serif); color: #fff; }
.ae-modal-head h2 i { color: var(--ember-2); font-size: .95em; margin-right: .35rem; }
.ae-x { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; cursor: pointer; transition: .2s; }
.ae-x:hover { border-color: var(--ember-2); color: var(--ember-2); }
.ae-modal-body { padding: 1.3rem; overflow-y: auto; flex: 1; }
.ae-modal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); }
.ae-modal-links a { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .75rem .4rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: .78rem; font-weight: 600; text-align: center; transition: .2s; }
.ae-modal-links a i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,90,44,.14); color: var(--ember-2); }
.ae-modal-links a:hover { border-color: var(--ember-2); transform: translateY(-2px); text-decoration: none; }

/* alterna conteúdo conforme a visão atual (login | recover | account) */
.ae-modal [data-v] { display: none; }
.ae-modal[data-view=login] [data-v=login], .ae-modal[data-view=recover] [data-v=recover], .ae-modal[data-view=account] [data-v=account] { display: inline; }
.ae-modal[data-view=recover] .ae-pane-main, .ae-modal:not([data-view=recover]) .ae-pane-recover { display: none; }
.ae-pane { animation: aePane .3s ease both; }
@keyframes aePane { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ae-hint { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; }
.ae-back { margin-top: 1rem; text-align: center; }
.ae-captcha .img { position: relative; display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.ae-captcha .img img { display: block; max-width: 100%; height: auto; }
.ae-captcha .reload-captcha { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; }
.ae-captcha .reload-captcha:hover { color: var(--ember-2); }
.ae-modal .btn-ae { margin-top: .3rem; }
.ae-modal-logout { margin-top: 1.1rem !important; }
.ae-modal-logout i { margin-right: .4rem; }

/* alternância visitante / logado (o JS troca a classe do <body> após login/logout via ajax) */
.is-logged .ae-only-guest, .is-guest .ae-only-user { display: none !important; }

/* usuário logado no header */
.ae-user { display: inline-flex; align-items: center; gap: .6rem; max-width: 220px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; transition: .2s; }
.ae-user:hover { border-color: var(--ember-2); background: rgba(255,90,44,.08); }
.ae-user-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
.ae-user-txt small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ae-user-txt strong { font-size: .86rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-user-caret { font-size: .6rem; color: var(--muted); }
.ae-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #160a04; font: 700 1rem var(--serif); text-transform: uppercase; }
.ae-logout i { margin-right: .35rem; }

/* campos do login */
.ae-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; }
.ae-eye:hover, .ae-eye[aria-pressed=true] { color: var(--ember-2); }
.ae-input .ae-eye + *, .ae-input:has(.ae-eye) .form-control { padding-right: 2.6rem; }
.ae-login-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.ae-login-row .remember-login { margin: 0; }
.ae-linkbtn { background: none; border: 0; padding: 0; color: var(--ember-2); font-size: .82rem; font-weight: 600; cursor: pointer; }
.ae-linkbtn:hover { color: #fff; text-decoration: underline; }

/* painel da conta (logado) */
.ae-profile { display: flex; align-items: center; gap: .9rem; padding: .9rem; margin-bottom: 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(120% 140% at 0 0, rgba(255,90,44,.14), transparent 60%), rgba(255,255,255,.02); }
.ae-profile .ae-avatar { width: 48px; height: 48px; font-size: 1.35rem; }
.ae-profile-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.ae-profile-txt small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ae-profile-txt strong { font: 600 1.15rem var(--serif); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-vip { flex: none; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(232,192,112,.14); color: var(--gold); border: 1px solid rgba(232,192,112,.3); }
.partial-login ul { list-style: none; padding: 0; margin: 0; }
.ae-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.1rem !important; }
.ae-account li { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); }
.ae-account li span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ae-account li strong { color: var(--gold); font-size: .98rem; }
.ae-menu-label { margin: 0 0 .5rem; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partial-login .services { display: grid; gap: .35rem; }
.partial-login .services li { border: 0; padding: 0; display: block; }
.partial-login .services li > a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; font-size: .9rem; transition: .2s; }
.partial-login .services li > a > span:first-child { flex: 1; }
.partial-login .services li > a > i { font-size: .65rem; color: var(--muted); transition: .2s; }
.partial-login .services li > a:hover { border-color: var(--ember-2); background: rgba(255,90,44,.08); color: var(--ember-2); text-decoration: none; }
.partial-login .services li > a:hover > i { color: var(--ember-2); transform: translateX(3px); }
.ae-sub { display: flex; flex-wrap: wrap; gap: .3rem; padding: .35rem .2rem 0 .4rem; }
.ae-sub a { padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; color: var(--muted); border: 1px solid var(--line); }
.ae-sub a:hover { color: var(--ember-2); border-color: var(--ember-2); text-decoration: none; }

@media (max-width: 991px) {
  .ae-user .ae-user-txt, .ae-user .ae-user-caret { display: none; }
  .ae-user { padding: 3px; }
  .ae-logout span { display: none; }
}
@media (max-width: 420px) { .ae-modal { align-items: end; padding: 0; } .ae-modal-card { border-radius: 18px 18px 0 0; max-height: 92vh; width: 100%; } }
/* notificações do CMS (Bootstrap modal) aparecem acima do modal de conta */
.modal { z-index: 2100; } .modal-backdrop { z-index: 2090; }
body.ae-lock { overflow: hidden; }

.ae-input { position: relative; margin-bottom: .75rem; }
.ae-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.ae-input .form-control { padding-left: 2.5rem; }
.remember-login { margin: .8rem 0 0; display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.social-login { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .8rem; color: var(--muted); }
.social-login a { padding: .3rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); }
.social-login a:hover { border-color: var(--ember-2); }
.forgot-password { margin-top: 1rem; font-size: .82rem; }
.badge { border-radius: 999px; padding: .4em .75em; font-weight: 700; letter-spacing: .02em; }
.badge-secondary { background: rgba(255,255,255,.08); color: var(--gold); } .badge-primary { background: #6d5dfc; }
.badge-success { background: var(--teal); color: #042f2a; } .badge-warning { background: var(--gold); color: #2a1c04; } .badge-danger { background: var(--danger); }
.pull-right { float: right; }

/* ---------- formulários ---------- */
.form-control, .custom-select { color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 10px; padding: .65rem .95rem; height: auto; min-height: 44px; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-control::placeholder { color: #6b6152; }
.form-control:focus, .custom-select:focus { color: #fff; background: rgba(0,0,0,.55); border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,90,44,.2); }
.form-control[readonly], .form-control:disabled { background: rgba(255,255,255,.03); opacity: .7; }
.form-control-sm { min-height: 36px; padding: .4rem .7rem; font-size: .86rem; }
select.form-control option { background: var(--card-2); color: var(--text); }
label, .form-control-label { color: var(--muted); font: 600 .78rem/1.3 var(--sans); letter-spacing: .04em; margin-bottom: .4rem; }
.required { color: var(--ember); } small, .form-text, .help-block { color: var(--muted); }
.form-control-static { color: #fff; padding: .5rem 0; }
input[type=checkbox], input[type=radio], .styled-checkbox { accent-color: var(--ember); }
.invalid-feedback { color: var(--danger); }
.captcha img { border-radius: 8px; border: 1px solid var(--line-2); }

/* ---------- tabelas ---------- */
.table, table.top, table.rankings { width: 100%; color: var(--text); border-collapse: separate; border-spacing: 0; margin-bottom: 1rem; }
.table th, .table td, table.top th, table.top td { border: 0; border-bottom: 1px solid var(--line); padding: .8rem .9rem; vertical-align: middle; }
.table thead th, .thead-dark th, table.top thead th { background: transparent !important; color: var(--muted) !important; border-bottom: 1px solid var(--line-2) !important;
  font: 600 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; padding-block: .7rem; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,.02); }
.table-hover tbody tr:hover, table.top tbody tr:hover { background: rgba(255,90,44,.07); }
.table td a, table.top td a { font-weight: 600; color: #fff; } .table td a:hover { color: var(--ember-2); }
tr.top-0 td, tr.top-1 td, tr.top-2 td { background: rgba(255,157,61,.05); }
tr.top-0 td a { color: var(--gold); }
.table td:first-child, .table th:first-child { font-variant-numeric: tabular-nums; }
.table-responsive { border-radius: var(--r); }

/* ---------- abas / listas / paginação ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); gap: .2rem; flex-wrap: wrap; }
.nav-tabs .nav-link { border: 0; color: var(--muted); font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: .8rem 1rem; border-radius: 0; position: relative; background: transparent; }
.nav-tabs .nav-link:hover { color: #fff; background: transparent; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { background: transparent; color: var(--ember-2); }
.nav-tabs .nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }
.tab-content > .tab-pane { padding-top: 1rem; }
.list-group-item { background: transparent; color: var(--text); border: 1px solid var(--line); }
.list-group-item-action:hover { background: rgba(255,255,255,.04); color: var(--ember-2); }
.list-group-item.active { background: rgba(255,90,44,.12); border-color: var(--ember); color: var(--ember-2); }
.ae-list .list-group-item { border-radius: 10px; margin-bottom: .4rem; }
.pagination { gap: .3rem; flex-wrap: wrap; }
.page-link { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 999px !important; min-width: 40px; text-align: center; }
.page-link:hover { background: rgba(255,90,44,.1); color: var(--ember-2); border-color: var(--ember); }
.page-item.active .page-link { background: var(--grad); color: #160a04; border-color: transparent; font-weight: 800; }
.page-item.disabled .page-link { background: transparent; color: #55493a; }

/* ---------- alertas / cards / modais ---------- */
.alert { border-radius: var(--r); border: 1px solid; background: rgba(255,255,255,.03); color: var(--text); }
.alert-success { border-color: rgba(94,234,212,.5); background: rgba(94,234,212,.08); }
.alert-danger { border-color: rgba(255,95,109,.5); background: rgba(255,95,109,.09); }
.alert-warning { border-color: rgba(255,157,61,.5); background: rgba(255,157,61,.09); }
.alert-info { border-color: rgba(120,170,255,.5); background: rgba(120,170,255,.08); }
.alert .title { border: 0; padding: 0; margin: 0 0 .3rem; font: 600 1rem var(--serif); color: var(--gold); text-transform: none; letter-spacing: 0; }
.card { overflow: hidden; } .card-header { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); color: #fff; font-weight: 700; }
.card-footer { background: rgba(255,255,255,.02); border-top: 1px solid var(--line); }
.box-panel, .box-panel-content { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.modal-content { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--text); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--line); } .close { color: #fff; text-shadow: none; opacity: .7; }
.tooltip-inner { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .45rem .75rem; }
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar { background: var(--grad); }
.price { color: var(--gold); font-weight: 700; font-family: var(--serif); }
.vote-up, .fa-thumbs-up { color: var(--teal); } .vote-down, .fa-thumbs-down { color: var(--danger); }
hr { border-color: var(--line); } blockquote { border-left: 2px solid var(--ember); padding-left: 1rem; color: var(--muted); font-family: var(--serif); font-style: italic; }
code, pre { background: rgba(0,0,0,.4); color: var(--gold); border-radius: 6px; padding: .1rem .4rem; }
.text-muted { color: var(--muted) !important; } .clear { clear: both; }

/* ---------- conteúdo dos plugins na home ---------- */
.t-news h1.title, .t-news h2.title { font-size: 1.2rem; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .85rem .3rem; border-bottom: 1px solid var(--line); font-size: .9rem; transition: padding .2s, background .2s; }
.news li:last-child { border-bottom: 0; }
.news li:hover { padding-left: .8rem; background: linear-gradient(90deg, rgba(255,90,44,.07), transparent); }
.news li a { flex: 1; min-width: 160px; color: #fff; font-weight: 600; } .news li a:hover { color: var(--ember-2); }
.news li .badge { color: #fff; font: 700 .6rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: .45em .8em; }
.news li .created { margin-left: auto; color: var(--muted); font: 500 .72rem var(--mono); }
.news li .body { flex-basis: 100%; color: var(--muted); font-size: .84rem; }

.top-players .tab-content { padding-top: .4rem; }
.top-players table.top, .top-players .table { margin: 0; }
.top-players .table th, .top-players .table td { padding: .6rem .5rem; }

.webshop-products { list-style: none; padding: 0; margin: 0; }
.webshop-products li { display: flex; gap: .8rem; padding: .6rem; margin-bottom: .6rem; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.webshop-products li:hover { border-color: var(--ember); transform: translateX(3px); }
.webshop-products li .image { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.4); flex: none; }
.webshop-products li .image img { max-width: 48px; max-height: 48px; }
.webshop-products li .info { display: flex; flex-direction: column; justify-content: center; font-size: .82rem; color: var(--muted); background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.webshop-products li .name { font: 600 .95rem var(--serif); color: #fff; }

.events .event { padding: .5rem 0; font-size: .86rem; border-bottom: 1px dashed var(--line); }
.events .event .time { float: right; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font: 600 .68rem var(--mono); }
.events .event .time.bg-success { background: var(--teal) !important; color: #042f2a; }
.last-poll .progress, .poll .progress { height: 10px; margin: .3rem 0 .9rem; }

.top-class .title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line);
  font: 700 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-2); }
.top-class ul.class { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.top-class ul.class li { padding: 3px; border-radius: 50%; border: 1px solid transparent; opacity: .55; transition: .25s; }
.top-class ul.class li:hover { opacity: 1; }
.top-class ul.class li.active { opacity: 1; border-color: var(--ember); box-shadow: 0 0 22px -4px rgba(255,90,44,.7); }
.top-class ul.class li img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.top-class .tab-content { display: none; } .top-class .tab-content.active { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.top-class-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; min-height: 240px; }
.top-class-content > img { max-height: 280px; max-width: 46%; object-fit: contain; filter: drop-shadow(0 16px 36px rgba(255,90,44,.3)); }
.top-class-content .info { flex: 1; min-width: 220px; }
.top-class-content .info h3 { font: 600 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.top-class-content .info .name { font: 700 clamp(2rem, 5vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .6rem; }
.top-class-content .info .score, .top-class-content .info .guild { color: var(--muted); } .top-class-content .info strong { color: #fff; }
.top-class-content .info .btn { margin-top: 1.1rem; }
@media (max-width: 575px) { .top-class-content > img { max-width: 100%; margin: 0 auto; } }

.families article { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.families .logo { display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1.8rem 1rem; }
.families .logo img { height: 66px; width: auto; }
.families .name { font-size: .82rem; color: rgba(255,255,255,.8); } .families .name span { display: block; font: 700 1.6rem var(--serif); letter-spacing: .1em; color: #fff; }
.families .info { display: flex; justify-content: space-around; gap: 1rem; padding: .9rem; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.3); color: rgba(255,255,255,.75); }
.families .info strong { color: #fff; margin-left: .4rem; font: 700 1rem var(--serif); }
.families .vanert { background: linear-gradient(160deg, #9d0a1a, #3a0409); } .families .duprian { background: linear-gradient(160deg, #4b22b0, #170a45); }

.ae-siege-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.ae-siege-date { color: var(--muted); font: 500 .78rem var(--mono); }
.ae-siege-body { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.ae-siege-text { flex: 1; min-width: 220px; } .ae-siege-text h3 { font: 700 1.9rem var(--serif); color: var(--gold); margin: 0 0 .3rem; } .ae-siege-text p { margin: 0; color: var(--muted); }
.ae-siege-master { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; }
.ae-siege-master img { border-radius: 50%; } .ae-siege-master small { display: block; font: 600 .62rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ae-siege.ae-panel { margin-bottom: 0; }

.banners .slider-container { width: 100%; }
.banners .sy-pager { display: flex; gap: .4rem; justify-content: center; list-style: none; padding: 0; margin: -2rem 0 0; position: relative; z-index: 5; }
.banners .sy-pager li { width: 9px; height: 9px; margin: 0; transition: .25s; } .banners .sy-pager li a { display: block; width: 100%; height: 100%; border-radius: 999px; background: rgba(255,255,255,.4); text-indent: -9999px; overflow: hidden; }
.banners .sy-pager li.sy-active { width: 28px; } .banners .sy-pager li.sy-active a { background: var(--ember-2); }


/* ---------- sistema de slides ---------- */
[hidden] { display: none !important; }
.t-slides { position: relative; aspect-ratio: 8 / 3; min-height: 220px; background: var(--card); }
.t-slides:not(.has-sl):not(.sl-empty) { background: linear-gradient(110deg, var(--card) 30%, #221b15 50%, var(--card) 70%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
.t-slides:not(.has-sl):not(.sl-empty) > :not(.ae-slide-fallback) { visibility: hidden; }
.t-slides.has-sl > :not(.ae-sl) { display: none !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 575px) { .t-slides { aspect-ratio: 16 / 9; } }

.ae-sl { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; touch-action: pan-y; user-select: none; outline-offset: -3px; }
.ae-sl-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.ae-sl-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.ae-sl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6.5s ease-out; -webkit-user-drag: none; }
.ae-sl-slide[aria-hidden=false] img { transform: scale(1); }
.ae-sl-link { display: block; height: 100%; }
.ae-sl-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,9,8,.75) 0%, rgba(10,9,8,0) 45%); }
.ae-sl-cap { position: absolute; z-index: 2; left: 1.4rem; right: 5rem; bottom: 2.6rem; font: 600 clamp(1.1rem, 2.4vw, 1.9rem)/1.15 var(--serif); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.8); pointer-events: none; }
.ae-sl-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(10,9,8,.55);
  color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, transform .2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ae-sl-nav.prev { left: 14px; } .ae-sl-nav.next { right: 14px; }
.ae-sl:hover .ae-sl-nav, .ae-sl:focus-within .ae-sl-nav { opacity: 1; }
.ae-sl-nav:hover { background: var(--grad); color: #160a04; border-color: transparent; transform: translateY(-50%) scale(1.06); }
@media (hover: none) { .ae-sl-nav { opacity: .85; width: 38px; height: 38px; } }
.ae-sl-dots { position: absolute; z-index: 3; left: 1.4rem; bottom: 1rem; display: flex; gap: .45rem; }
.ae-sl-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.ae-sl-dot.on { width: 30px; background: var(--ember-2); }
.ae-sl-dot:hover { background: #fff; }
.ae-sl-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.ae-sl-bar i { display: block; height: 100%; width: 0; background: var(--grad); }

.ae-slide-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; padding: clamp(1.4rem, 4vw, 3rem);
  background: radial-gradient(600px 300px at 85% 20%, rgba(255,90,44,.28), transparent 70%), linear-gradient(120deg, #1d120b, var(--card)); }
.ae-slide-fallback h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; }
.ae-slide-fallback p { margin: 0 0 .6rem; color: var(--muted); font-family: var(--serif); font-style: italic; }

/* plugins (inner) */
.shop .items .item { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem; transition: .25s; }
.shop .items .item:hover { border-color: var(--ember); transform: translateY(-3px); }
.gateways .image img { max-height: 80px; filter: saturate(.85); transition: .25s; } .gateways .image img:hover { filter: none; transform: scale(1.04); }
.helpdesk-messages li, .comments li { list-style: none; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .7rem; }
.avatar img, img.avatar { border-radius: 12px; }

/* popups / preloader */
#morpheus-popup-container { background: rgba(4,3,2,.8) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#morpheus-popup-container .morpheus-popup-content { background: var(--card-2) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-lg) !important; color: var(--text) !important; box-shadow: var(--shadow); }
.morpheus-popup-btn { background: var(--grad) !important; color: #160a04 !important; border: 0 !important; border-radius: 999px !important; font-weight: 700; }
#morpheus-popup-cancel { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.preloader { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; background: rgba(4,3,2,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.loader { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--ember-2); border-right-color: var(--ember); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ae-404 { text-align: center; padding: 4rem 1rem !important; }
.ae-404-code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ae-404 .title { justify-content: center; border: 0; } .ae-404 .title::after { display: none; }

/* ---------- rodapé ---------- */
.ae-footer { border-top: 1px solid var(--line); background: #070605; padding: 3.5rem 0 0; margin-top: 2rem; }
.ae-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.ae-foot-brand p { color: var(--muted); margin: 1rem 0 0; max-width: 32ch; font-family: var(--serif); font-style: italic; }
.ae-foot-grid h4 { font: 700 .7rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ember-2); margin: 0 0 1.1rem; }
.ae-foot-grid a, .ae-foot-grid span { display: block; color: var(--muted); font-size: .88rem; padding: .22rem 0; }
.ae-foot-grid a:hover { color: #fff; } .ae-foot-grid strong { color: var(--text); font-weight: 600; margin-left: .3rem; }
.ae-staff-line em { float: right; font-style: normal; font: 500 .68rem var(--mono); color: var(--teal); }
.ae-foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.ae-ver { font-family: var(--mono); }
@media (max-width: 860px) { .ae-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ae-foot-grid { grid-template-columns: 1fr; } }

/* ---------- dock mobile ---------- */
.ae-dock { display: none; }
@media (max-width: 991px) {
  body { padding-bottom: 84px; }
  .ae-dock { position: fixed; z-index: 1030; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-around;
    padding: 8px 6px; background: rgba(16,14,12,.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.9); }
  .ae-dock a, .ae-dock button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .04em; padding: 6px 0; cursor: pointer; }
  .ae-dock i { font-size: 1.05rem; } .ae-dock a.is-active, .ae-dock a:hover, .ae-dock button:hover { color: var(--ember-2); }
  .ae-dock .ae-dock-main { flex: 0 0 56px; height: 56px; margin-top: -26px; border-radius: 50%; background: var(--grad); color: #160a04; justify-content: center; box-shadow: 0 10px 26px -6px rgba(255,90,44,.8); }
  .ae-dock .ae-dock-main i { font-size: 1.2rem; }
  .to-top { bottom: 100px !important; }
}
.to-top { position: fixed; right: 18px; bottom: 20px; z-index: 1000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(16,14,12,.9); color: var(--ember-2); display: none; cursor: pointer; transition: .2s; }
.to-top:hover { background: var(--grad); color: #160a04; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   AETHER PRO — melhorias
   ========================================================================== */

/* ---------- ONLINE pulsando ---------- */
.dot { width: 9px; height: 9px; position: relative; }
.dot.on { background: var(--teal); animation: ae-dot 1.6s ease-in-out infinite; }
.dot.on::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: ae-ring 1.6s ease-out infinite; }
.dot.off { background: var(--danger); animation: none; }
@keyframes ae-dot { 0%, 100% { transform: scale(1); box-shadow: 0 0 6px 1px rgba(0,255,85,.6); } 50% { transform: scale(1.28); box-shadow: 0 0 14px 4px rgba(0,255,85,.85); } }
@keyframes ae-ring { 0% { transform: scale(.8); opacity: .85; } 100% { transform: scale(3); opacity: 0; } }
.online { animation: ae-online 1.6s ease-in-out infinite; }
@keyframes ae-online { 0%, 100% { text-shadow: 0 0 0 rgba(0,255,85,0); opacity: .85; } 50% { text-shadow: 0 0 10px rgba(0,255,85,.85); opacity: 1; } }
.ae-live.is-on .ae-ring { animation: ae-glow 2.4s ease-in-out infinite; }
@keyframes ae-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,85,.0), 0 0 18px rgba(0,255,85,.12); } 50% { box-shadow: 0 0 0 8px rgba(0,255,85,.06), 0 0 34px rgba(0,255,85,.28); } }
.ae-live.is-on .ae-ring-in strong { animation: ae-online 2.4s ease-in-out infinite; }

/* ---------- Hall da Fama (Top 3 Resets) ---------- */
.ae-hall { margin-block: 8px 28px; }
.ae-hall-head { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-bottom: 1.6rem; }
.ae-hall-head h2 { margin: 0; font: 700 clamp(1.9rem, 4.4vw, 3rem)/1.05 var(--serif); letter-spacing: -.01em; color: #fff; }
.ae-hall-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .7rem; background: linear-gradient(90deg, var(--ember), transparent); }
.ae-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.ae-pod { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 1.4rem 1.4rem 1.3rem; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .25s, border-color .25s; }
.ae-pod::before { content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--ember); border-left: 2px solid var(--ember); border-top-left-radius: var(--r-lg); }
.ae-pod:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ae-pod-1 { min-height: 330px; border-color: rgba(255,200,90,.45); background: radial-gradient(420px 220px at 50% 0, rgba(255,190,70,.16), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: 0 0 44px -14px rgba(255,190,70,.45); }
.ae-pod-2 { min-height: 288px; }
.ae-pod-rank { position: absolute; z-index: -1; top: -.14em; right: 10px; font: 700 clamp(7rem, 12vw, 11rem)/1 var(--serif); color: rgba(255,255,255,.04); -webkit-text-stroke: 1px rgba(255,255,255,.14); pointer-events: none; user-select: none; }
.ae-pod-1 .ae-pod-rank { -webkit-text-stroke-color: rgba(255,200,90,.4); }
.ae-pod-medal { position: absolute; top: 16px; left: 18px; width: 24px; height: 26px; }
.ae-pod-1 .ae-pod-medal { width: 30px; height: auto; filter: drop-shadow(0 0 8px rgba(255,200,90,.7)); }
.ae-pod-class { display: block; margin-bottom: .5rem; font: 600 .68rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ember-2); }
.ae-pod-name { margin: 0 0 1rem; font: 700 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--serif); color: #fff; overflow-wrap: anywhere; }
.ae-pod-name a { color: inherit; } .ae-pod-name a:hover { color: var(--ember-2); }
.ae-pod-score { display: flex; align-items: baseline; gap: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line-2); }
.ae-pod-score strong { font: 700 clamp(2rem, 3.6vw, 3rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.ae-pod-score span { font: 600 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ae-pod-1 .ae-pod-score strong { color: #ffd37a; text-shadow: 0 0 18px rgba(255,190,70,.5); }
.ae-pod-guild { margin-top: .6rem; font-size: .85rem; color: var(--muted); } .ae-pod-guild strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .ae-podium { grid-template-columns: 1fr; } .ae-pod, .ae-pod-1, .ae-pod-2 { min-height: 0; padding-top: 3.4rem; }
  .ae-pod-1 { order: -1; } .ae-pod-2 { order: 0; } .ae-pod-3 { order: 1; } .ae-pod-rank { font-size: 7.5rem; }
}

/* ---------- Castle Siege: arte de fundo + foto do dono reduzida ---------- */
.ae-siege { position: relative; overflow: hidden; isolation: isolate; min-height: 190px; }
.ae-siege::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 0; width: auto; height: auto;
  background: linear-gradient(90deg, rgba(10,8,6,.97) 0%, rgba(10,8,6,.9) 42%, rgba(10,8,6,.35) 78%, rgba(10,8,6,.15) 100%), var(--siege-art) right center / cover no-repeat; }
.ae-siege-crest img { width: 64px !important; height: 64px !important; object-fit: contain; }
.ae-siege-master { gap: .6rem; padding: .35rem .9rem .35rem .35rem; background: rgba(8,7,6,.7); backdrop-filter: blur(4px); }
.ae-siege-master img { width: 34px !important; height: 34px !important; max-width: 34px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.ae-siege-master strong { font-size: .85rem; line-height: 1.1; }
@media (max-width: 575px) { .ae-siege::before { background: linear-gradient(180deg, rgba(10,8,6,.92), rgba(10,8,6,.8)), var(--siege-art) center / cover no-repeat; } }


/* ==========================================================================
   PROCURADO — Top PK
   ========================================================================== */
.t-wanted { grid-column: span 12; }
.ae-wanted { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 34px); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(520px 300px at 18% 50%, rgba(255,150,50,.16), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ae-wanted::before { content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--ember); border-left: 2px solid var(--ember); border-top-left-radius: var(--r-lg); }

/* cartaz */
.ae-poster { position: relative; justify-self: center; width: 100%; max-width: 340px; padding: 26px 24px 22px; text-align: center; color: #2b1b0c; transform: rotate(-1.6deg); transition: transform .35s ease;
  background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.28), transparent 60%), linear-gradient(180deg, #e3cb94 0%, #cfb072 55%, #b99556 100%);
  border: 3px double #6b4a1c; border-radius: 3px; box-shadow: 0 22px 40px -14px rgba(0,0,0,.85), inset 0 0 40px rgba(110,70,20,.35); }
.ae-poster:hover { transform: rotate(0deg) translateY(-3px); }
.ae-poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply; border-radius: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ae-nail { position: absolute; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8d8d8, #55504a 70%); box-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 2; }
.ae-nail.l { left: 12px; } .ae-nail.r { right: 12px; }
.ae-poster > * { position: relative; z-index: 1; }
.ae-poster-star { margin: 0; font-size: .8rem; letter-spacing: .5em; color: #7a1d12; }
.ae-poster-title { margin: .1rem 0 .7rem; font: 900 clamp(2.2rem, 5vw, 3.1rem)/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: #2b1b0c; text-shadow: 1px 1px 0 rgba(255,255,255,.35); }
.ae-poster-photo { height: 188px; margin: 0 auto .8rem; display: grid; place-items: end center; border: 2px solid #5a3d16; background: linear-gradient(180deg, #8d7240, #5f4a22); overflow: hidden; box-shadow: inset 0 0 22px rgba(0,0,0,.55); filter: sepia(.55) contrast(1.05); }
.ae-poster-photo img { height: 184px; width: auto; max-width: none; object-fit: contain; }
.ae-poster-name { margin: 0; font: 900 clamp(1.5rem, 3vw, 2rem)/1.05 var(--serif); text-transform: uppercase; color: #2b1b0c; overflow-wrap: anywhere; }
.ae-poster-name a { color: inherit; } .ae-poster-name a:hover { color: #7a1d12; }
.ae-poster-meta { margin: .25rem 0 .8rem; font: 700 .72rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #5a3d16; }
.ae-poster-kills { display: flex; align-items: baseline; justify-content: center; gap: .6rem; padding: .55rem 0; margin-bottom: .5rem; border-block: 2px solid #5a3d16; }
.ae-poster-kills strong { font: 900 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); color: #8e1d12; font-variant-numeric: tabular-nums; text-shadow: 1px 1px 0 rgba(255,255,255,.3); }
.ae-poster-kills span { font: 800 .78rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #2b1b0c; }
.ae-poster-foot { margin: 0; font: 800 .78rem/1 var(--mono); letter-spacing: .34em; text-transform: uppercase; color: #5a3d16; }

/* lado direito */
.ae-wanted-side h2 { margin: .7rem 0 .6rem; font: 700 clamp(1.7rem, 3.6vw, 2.6rem)/1.05 var(--serif); color: #fff; }
.ae-wanted-side h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .7rem; background: linear-gradient(90deg, var(--ember), transparent); }
.ae-wanted-side > p { margin: 0 0 1.3rem; max-width: 46ch; color: var(--muted); }
.ae-wanted-list { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 460px; }
.ae-wanted-list li { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px dashed var(--line-2); }
.ae-wanted-list .n { width: 30px; height: 30px; display: grid; place-items: center; flex: none; font: 700 .85rem var(--mono); color: var(--ember-2); border: 1px solid var(--line-2); border-radius: 50%; }
.ae-wanted-list .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ae-wanted-list .who strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; }
.ae-wanted-list .who small { color: var(--muted); font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ae-wanted-list .k { color: var(--muted); font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ae-wanted-list .k strong { color: #ff7a4d; font: 700 1.25rem var(--serif); letter-spacing: 0; margin-right: .2rem; }
@media (max-width: 860px) { .ae-wanted { grid-template-columns: 1fr; } .ae-poster { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ae-poster, .ae-poster:hover { transform: none; transition: none; } }
.ae-poster-photo.no-img { place-items: center; font-size: 4.2rem; color: rgba(43,27,12,.55); }
/* foto do cartaz = avatar do player (estilo foto 3x4 de cartaz) */
.ae-poster-photo.is-avatar { width: 176px; height: 196px; place-items: center; }
.ae-poster-photo.is-avatar img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center top; }


/* ---------- Hall da Fama: avatar + Master Reset ao lado do Reset ---------- */
.ae-pod { justify-content: space-between; gap: 1rem; }
.ae-pod-avatar { position: relative; width: 72px; height: 80px; flex: none; }
.ae-pod-1 .ae-pod-avatar { width: 88px; height: 98px; }
.ae-pod-avatar .ae-pod-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 14px; border: 2px solid var(--line-2); background: #0b0a09; box-shadow: 0 8px 20px -8px rgba(0,0,0,.8); }
.ae-pod-1 .ae-pod-photo { border-color: rgba(255,200,90,.75); box-shadow: 0 0 26px -6px rgba(255,190,70,.6); }
.ae-pod-avatar .ae-pod-medal { position: absolute; top: auto; left: auto; right: -10px; bottom: -8px; width: 26px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.ae-pod-1 .ae-pod-avatar .ae-pod-medal { width: 32px; }
.ae-pod-scores { display: flex; gap: 1.4rem; align-items: flex-end; border-top: 1px dashed var(--line-2); padding-top: .9rem; }
.ae-pod-scores .ae-pod-score { display: block; border: 0; padding: 0; min-width: 0; }
.ae-pod-scores .ae-pod-score strong { display: block; }
.ae-pod-scores .ae-pod-score span { display: block; margin-top: .35rem; }
.ae-pod-scores.has-mr .ae-pod-score strong { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.ae-pod-scores .ae-pod-score.mr { padding-left: 1.4rem; border-left: 1px dashed var(--line-2); }
.ae-pod-scores .ae-pod-score.mr strong { color: #b69cff; text-shadow: none; }
.ae-pod-1 .ae-pod-scores .ae-pod-score.mr strong { color: #c9b4ff; }
@media (max-width: 760px) { .ae-pod, .ae-pod-1, .ae-pod-2 { padding-top: 1.4rem; flex-direction: column; justify-content: flex-start; } .ae-pod-rank { top: -.1em; } }

/* ==========================================================================
   TOP GUILDS — Castle Siege (lado a lado; logo = a criada pelo jogador no game)
   ========================================================================== */
.t-guilds { grid-column: span 12; }
.ae-tg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.ae-tg-list.is-rtl { direction: rtl; }
.ae-tg-item { direction: ltr; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px 14px; position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-md, 12px); transition: transform .25s ease, border-color .25s ease; }
.ae-tg-item:hover { transform: translateY(-3px); border-color: var(--ember); }
.ae-tg-item.rank-1 { border-color: #d9a441; background: radial-gradient(160px 120px at 50% 20%, rgba(217,164,65,.22), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.ae-tg-item.rank-2 { border-color: #aeb4bd; }
.ae-tg-item.rank-3 { border-color: #b9774a; }
.ae-tg-pos { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: .78rem; background: rgba(0,0,0,.5); border: 1px solid var(--line-2); }
.rank-1 .ae-tg-pos { background: #d9a441; color: #1a1205; border-color: #d9a441; }
.rank-2 .ae-tg-pos { background: #aeb4bd; color: #14161a; border-color: #aeb4bd; }
.rank-3 .ae-tg-pos { background: #b9774a; color: #1d0f06; border-color: #b9774a; }
.ae-tg-logo { width: 64px; height: 64px; display: grid; place-items: center; }
.ae-tg-logo img, .ae-tg-logo canvas, .ae-tg-logo svg { width: 64px !important; height: 64px !important; object-fit: contain; image-rendering: pixelated; border-radius: 0; }
.ae-tg-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; max-width: 100%; }
.ae-tg-info a, .ae-tg-info strong { font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-tg-info em { font-style: normal; font-size: .75rem; opacity: .65; }
.ae-tg-pts { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.ae-tg-pts b { display: block; font-size: 1.5rem; letter-spacing: 0; color: var(--ember); }
.ae-tg .ae-tile-title small { margin-left: .5rem; font-size: .7rem; opacity: .6; font-weight: 500; }
@media (max-width: 767px) { .ae-tg-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ae-tg-item:first-child { grid-column: span 2; } }

/* ==========================================================================
   MENU LATERAL — redes sociais
   ========================================================================== */
.ae-rail { position: fixed; left: 10px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; width: 76px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r-md, 14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.ae-rail-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 10px; color: var(--muted, #9a9288); font-size: .68rem; line-height: 1; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.ae-rail-item i, .ae-rail-item svg { font-size: 1.5rem; width: 1em; height: 1em; display: block; color: var(--ember); transition: transform .2s ease; }
.ae-rail-item i { width: auto; height: auto; }
.ae-rail-item:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.ae-rail-item:hover i, .ae-rail-item:hover svg { transform: scale(1.15); }
.ae-rail-item.is-whatsapp i { color: #25d366; } .ae-rail-item.is-discord i { color: #5865f2; } .ae-rail-item.is-instagram i { color: #e4405f; } .ae-rail-item.is-facebook i { color: #1877f2; } .ae-rail-item.is-tiktok svg { color: #25f4ee; }
.ae-rail-toggle { display: none; }
@media (max-width: 1399px) { .ae-rail { width: 58px; } .ae-rail-item span { display: none; } .ae-rail-item { padding: 12px 4px; } }
@media (max-width: 991px) {
  /* celular: botão flutuante que abre uma fileira horizontal só com ícones */
  .ae-rail { display: flex; flex-direction: row; gap: 2px; width: auto; left: 66px; right: auto; top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-14px) scale(.96); transform-origin: left center; padding: 4px; border-radius: 999px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility .22s; }
  .ae-rail.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .ae-rail-item { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .ae-rail-item i, .ae-rail-item svg { font-size: 1.35rem; }
  .ae-rail-toggle { display: grid; place-items: center; position: fixed; left: 14px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 92; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--ember); box-shadow: 0 10px 24px -8px rgba(0,0,0,.85); cursor: pointer; }
  .ae-rail-toggle svg { grid-area: 1 / 1; transition: opacity .2s ease, transform .2s ease; }
  .ae-rail-toggle .ae-rail-ico-close { opacity: 0; transform: rotate(-90deg); }
  .ae-rail-toggle.is-open .ae-rail-ico-open { opacity: 0; transform: rotate(90deg); }
  .ae-rail-toggle.is-open .ae-rail-ico-close { opacity: 1; transform: none; }
}
@media (max-width: 380px) { .ae-rail-item { width: 42px; height: 42px; } .ae-rail { left: 62px; } }
 /* 404 ERRO */

/* ==========================================
   MU ONLINE - DARK FANTASY 404
========================================== */

.ae-404 {
    position: relative;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 42%,
        rgba(105, 58, 15, .18) 0%,
        rgba(25, 17, 12, .12) 35%,
        transparent 70%);
}

.ae-404-scene {
    position: relative;
    width: 100%;
    max-width: 850px;
    padding: 70px 20px;
    text-align: center;
    z-index: 2;
}

/* PORTAL */

.ae-404-portal {
    position: absolute;
    width: 270px;
    height: 270px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    opacity: .55;
}

.portal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #d99a3b;
    border-bottom-color: #8a541e;
    box-shadow:
        0 0 15px rgba(222, 151, 50, .3),
        inset 0 0 20px rgba(222, 151, 50, .15);
}

.ring-1 {
    animation: portalRotate 12s linear infinite;
}

.ring-2 {
    inset: 15px;
    border-width: 1px;
    border-left-color: #f4c36a;
    border-right-color: #a16a2c;
    animation: portalRotate 8s linear infinite reverse;
}

.ring-3 {
    inset: 35px;
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(239, 180, 83, .6);
    animation: portalRotate 25s linear infinite;
}

.portal-core {
    position: absolute;
    inset: 48px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 184, 78, .22),
        rgba(108, 54, 12, .15) 45%,
        transparent 75%
    );
    animation: portalPulse 3s ease-in-out infinite;
}

.portal-light {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 172, 63, .12),
        transparent 65%
    );
    animation: portalGlow 4s ease-in-out infinite;
}

/* 404 NUMBER */

.ae-404-code {
    position: relative;
    font-size: clamp(110px, 19vw, 205px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 12px;
    color: #e4bd7c;
    background: linear-gradient(
        180deg,
        #fff0c9 0%,
        #dca653 35%,
        #986020 65%,
        #f0c77d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 2px rgba(0,0,0,.8))
            drop-shadow(0 0 25px rgba(211,145,53,.3));
    animation: numberFloat 4s ease-in-out infinite;
}

/* TEXT */

.ae-404 .title {
    position: relative;
    margin: 22px 0 12px;
    color: #f0d5a4;
    font-size: clamp(21px, 4vw, 30px);
    font-weight: 700;
    text-shadow: 0 3px 12px #000;
}

.ae-404-description {
    color: #d8c5a7;
    font-size: 16px;
    margin: 12px 0 6px;
}

.ae-404-subtitle {
    color: #948675;
    font-size: 13px;
    margin-bottom: 30px;
}

/* DIVIDER */

.ae-404-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
    max-width: 230px;
    color: #d8a451;
}

.ae-404-divider::before,
.ae-404-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        transparent,
        #a87936
    );
}

.ae-404-divider::after {
    transform: rotate(180deg);
}

/* BUTTON */

.ae-404-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    padding: 13px 25px;
    color: #f4d9a9 !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #9d7137;
    background: linear-gradient(
        180deg,
        #65451f,
        #302013
    );
    box-shadow:
        0 0 15px rgba(194, 133, 48, .15),
        inset 0 1px rgba(255,255,255,.12);
    transition: all .35s ease;
}

.ae-404-button:hover {
    color: #fff !important;
    border-color: #f0c77d;
    background: linear-gradient(
        180deg,
        #9b682c,
        #543418
    );
    box-shadow:
        0 0 25px rgba(224, 158, 64, .4);
    transform: translateY(-4px);
}

.ae-404-button span {
    font-size: 19px;
}

/* PARTICLES */

.ae-404-particles span {
    position: absolute;
    color: #e7b45e;
    font-size: 19px;
    opacity: 0;
    animation: particleFloat 5s ease-in-out infinite;
}

.ae-404-particles span:nth-child(1) {
    left: 12%;
    top: 30%;
    animation-delay: 0s;
}

.ae-404-particles span:nth-child(2) {
    left: 80%;
    top: 20%;
    animation-delay: 1s;
}

.ae-404-particles span:nth-child(3) {
    left: 20%;
    top: 70%;
    animation-delay: 2s;
}

.ae-404-particles span:nth-child(4) {
    left: 75%;
    top: 65%;
    animation-delay: 1.5s;
}

.ae-404-particles span:nth-child(5) {
    left: 90%;
    top: 45%;
    animation-delay: 2.5s;
}

.ae-404-particles span:nth-child(6) {
    left: 8%;
    top: 50%;
    animation-delay: 3s;
}

/* ANIMATIONS */

@keyframes portalRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes portalPulse {
    0%, 100% { transform: scale(.9); opacity: .5; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes portalGlow {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

@keyframes numberFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.5);
    }
    50% {
        opacity: .8;
    }
    100% {
        opacity: 0;
        transform: translateY(-45px) scale(1.3);
    }
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .ae-404 {
        min-height: 520px;
    }

    .ae-404-scene {
        padding: 60px 15px;
    }

    .ae-404-portal {
        width: 210px;
        height: 210px;
        top: 35px;
    }

    .ae-404-code {
        letter-spacing: 5px;
    }

    .ae-404 .title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-404 *,
    .ae-404 *::before,
    .ae-404 *::after {
        animation: none !important;
        transition: none !important;
    }
}
