/* =====================================================================
   AETHERIA — css/vip.css  (VIP R1, SPEC_R1 §7.1; owner 2026-10-16)
   The crowns are SVG drawn here (no PNG): silver = VIP Prata (t1), gold = VIP Ouro (t2), grey = no VIP (t0, the HUD button
   only). A crown is an icon beside a name: the name keeps its PK / duel / party colour. Pieces: the HUD crown (first button of
   the buff row), the V window, the Esc menu entry, chat / online list / ranking / party crowns, Devin's discounted price,
   the atlas's VIP seal and padlock, the touch drawer tile.
   ===================================================================== */
.vip-crown {
  display: inline-block; flex: none; width: 1.2em; height: 1em; margin-right: .3em; vertical-align: -.1em;
  background: center / contain no-repeat; pointer-events: none;
}
.vip-crown.t2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff6c4'/%3E%3Cstop offset='.55' stop-color='%23ffd34d'/%3E%3Cstop offset='1' stop-color='%23b07a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.2 17.6V6.4l5 4.4L12 2.6l4.8 8.2 5-4.4v11.2z' fill='url(%23g)' stroke='%234a2c06' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2.2 15.2h19.6' stroke='%234a2c06' stroke-width='1' opacity='.55'/%3E%3Ccircle cx='2.4' cy='5.4' r='1.6' fill='%23ffd34d' stroke='%234a2c06' stroke-width='.9'/%3E%3Ccircle cx='12' cy='2' r='1.7' fill='%23ffd34d' stroke='%234a2c06' stroke-width='.9'/%3E%3Ccircle cx='21.6' cy='5.4' r='1.6' fill='%23ffd34d' stroke='%234a2c06' stroke-width='.9'/%3E%3Cpath d='M12 9.6l2 2.4-2 2.4-2-2.4z' fill='%23d8402e' stroke='%234a2c06' stroke-width='.8'/%3E%3C/svg%3E"); }
.vip-crown.t1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23cfd8e3'/%3E%3Cstop offset='1' stop-color='%237d8a9c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.2 17.6V6.4l5 4.4L12 2.6l4.8 8.2 5-4.4v11.2z' fill='url(%23g)' stroke='%232c3440' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2.2 15.2h19.6' stroke='%232c3440' stroke-width='1' opacity='.55'/%3E%3Ccircle cx='2.4' cy='5.4' r='1.6' fill='%23cfd8e3' stroke='%232c3440' stroke-width='.9'/%3E%3Ccircle cx='12' cy='2' r='1.7' fill='%23cfd8e3' stroke='%232c3440' stroke-width='.9'/%3E%3Ccircle cx='21.6' cy='5.4' r='1.6' fill='%23cfd8e3' stroke='%232c3440' stroke-width='.9'/%3E%3Cpath d='M12 9.6l2 2.4-2 2.4-2-2.4z' fill='%233f86e0' stroke='%232c3440' stroke-width='.8'/%3E%3C/svg%3E"); }
.vip-crown.t0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e9e2d4'/%3E%3Cstop offset='.55' stop-color='%23bdb3a2'/%3E%3Cstop offset='1' stop-color='%238c8272'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.2 17.6V6.4l5 4.4L12 2.6l4.8 8.2 5-4.4v11.2z' fill='url(%23g)' stroke='%235a5045' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2.2 15.2h19.6' stroke='%235a5045' stroke-width='1' opacity='.55'/%3E%3Ccircle cx='2.4' cy='5.4' r='1.6' fill='%23bdb3a2' stroke='%235a5045' stroke-width='.9'/%3E%3Ccircle cx='12' cy='2' r='1.7' fill='%23bdb3a2' stroke='%235a5045' stroke-width='.9'/%3E%3Ccircle cx='21.6' cy='5.4' r='1.6' fill='%23bdb3a2' stroke='%235a5045' stroke-width='.9'/%3E%3C/svg%3E"); }

/* ---------- HUD: the first button of the buff row (top-left), with the days left under it ---------- */
.buff.vip-hud { display: grid; place-items: center; font: inherit; color: inherit; cursor: var(--cur-pointer, pointer); border-color: #ffd34d; }
.buff.vip-hud .vip-crown { width: 20px; height: 17px; margin: 0; }
.buff.vip-hud.vt2 { border-color: #ffd34d; box-shadow: 0 0 0 1px var(--ink, #120c18), 0 0 10px -1px rgba(255, 211, 77, .85); }
.buff.vip-hud.vt1 { border-color: #cfd8e3; box-shadow: 0 0 0 1px var(--ink, #120c18), 0 0 10px -1px rgba(207, 216, 227, .85); }
.buff.vip-hud.off { border-color: #8f8678; box-shadow: 0 0 0 1px var(--ink, #120c18); opacity: .78; }
.buff.vip-hud.off:hover, .buff.vip-hud.off:focus-visible { opacity: 1; }
.buff.vip-hud:focus-visible { outline: 2px solid #fffaf0; outline-offset: 1px; }
.buff.vip-hud.vt2 .buff-t { color: #ffe9a0; }
.buff.vip-hud.ending .buff-t { color: #ffb4a8; }
/* "Seja VIP · US$15" (owner 2026-10-20): a small gold tag glued to the right of the dimmed crown, only without VIP */
.vip-ad {
  position: relative; align-self: flex-start; height: 18px; margin: 4px 0 0 -6px; padding: 0 8px 0 9px; overflow: hidden;
  font: 700 calc(10.5px * var(--txt, 1))/18px var(--f-ui, serif); letter-spacing: .02em; white-space: nowrap; color: #2a1806;
  background: linear-gradient(180deg, #fff1b8, #ffd34d 55%, #e2a92e); border: 1px solid #8a5a12; border-left: 0; border-radius: 0 9px 9px 0;
  box-shadow: 0 0 0 1px var(--ink, #120c18), 0 0 9px -2px rgba(255, 211, 77, .9); text-shadow: 0 1px 0 rgba(255, 248, 220, .7);
  cursor: var(--cur-pointer, pointer); pointer-events: auto;
}
.vip-ad::after {   /* a slow shine sweeping the tag */
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); animation: vipAdShine 4.5s ease-in-out infinite;
}
@keyframes vipAdShine { 0%, 70% { left: -40%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .vip-ad::after { animation: none; display: none; } }
.vip-ad:hover, .vip-ad:focus-visible { filter: brightness(1.08); box-shadow: 0 0 0 1px var(--ink, #120c18), 0 0 12px -1px rgba(255, 211, 77, 1); }
.vip-ad:focus-visible { outline: 2px solid #fffaf0; outline-offset: 1px; }

/* ---------- the V window ---------- */
.w-vip { width: calc(600px * var(--txt-h, 1)); max-width: calc(100vw - 16px); }
.w-vip .win-b { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 96px); overflow-y: auto; }
.vip-status { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border: 1.5px solid var(--mn-line, #d8bd86); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 250, 236, .9), rgba(241, 226, 191, .75)); box-shadow: inset 0 1px 0 #fff; }
.vip-crown.vip-crown-big { width: 52px; height: 43px; margin: 0; filter: drop-shadow(0 2px 2px rgba(74, 46, 20, .35)); }
.vip-status-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vip-name { font: 900 calc(21px * var(--txt-h, 1))/1.1 var(--f-title, serif); letter-spacing: .03em; color: var(--mn-ink-2, #6b5442); }
.vip-name.t2 { color: #9a6200; text-shadow: 0 1px 0 #fff6c4, 0 0 12px rgba(255, 211, 77, .65); }
.vip-name.t1 { color: #4f5d71; text-shadow: 0 1px 0 #fff, 0 0 12px rgba(207, 216, 227, .9); }
.vip-left { font: 700 calc(14px * var(--txt, 1))/1.2 var(--f-num, sans-serif); color: var(--mn-ink, #3b2a1f); letter-spacing: .03em; }
.vip-kept { font: italic 500 calc(13px * var(--txt, 1))/1.25 var(--f-ui, serif); color: #4f5d71; }
.vip-evict { padding: 8px 12px; border: 1.5px solid var(--mn-rose-deep, #b23a52); border-radius: 10px; background: #fde3e6;
  font: 700 calc(14px * var(--txt, 1))/1.25 var(--f-ui, serif); color: var(--mn-rose-deep, #b23a52); }
.vip-sub { margin: 0; font: italic 500 calc(13px * var(--txt, 1))/1.3 var(--f-ui, serif); color: var(--mn-ink-3, #7a6650); text-align: center; }
.vip-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 500 calc(13px * var(--txt, 1))/1.25 var(--f-ui, serif); color: var(--mn-ink, #3b2a1f); }
.vip-table th, .vip-table td { padding: 4px 8px; border-bottom: 1px solid rgba(201, 149, 58, .28); vertical-align: middle; }
.vip-table tbody th { text-align: left; font-weight: 700; color: var(--mn-ink-2, #6b5442); }
.vip-table td { width: 29%; text-align: center; font-family: var(--f-num, sans-serif); font-weight: 700; }
.vip-table td.cur { background: rgba(255, 233, 160, .32); }
.vip-col { padding: 6px 6px 7px !important; text-align: center; border-radius: 12px 12px 0 0; border: 1.5px solid transparent; border-bottom: 0; }
.vip-col .vip-crown { display: block; width: 30px; height: 25px; margin: 0 auto 3px; }
.vip-col-n { display: block; font: 900 calc(14px * var(--txt-h, 1))/1.1 var(--f-title, serif); letter-spacing: .03em; }
.vip-price { display: block; margin-top: 3px; font: 700 calc(12px * var(--txt, 1))/1.1 var(--f-num, sans-serif); color: var(--mn-ink-2, #6b5442); }
.vip-col.t1 { background: linear-gradient(180deg, #f6f9fc, #dfe6ee); }
.vip-col.t1 .vip-col-n { color: #4f5d71; }
.vip-col.t2 { background: linear-gradient(180deg, #fffbe6, #ffe39a); }
.vip-col.t2 .vip-col-n { color: #9a6200; }
.vip-col.cur.t1 { border-color: #9aa8ba; box-shadow: 0 0 12px rgba(207, 216, 227, .9); }
.vip-col.cur.t2 { border-color: var(--mn-gold, #e2b65a); box-shadow: 0 0 12px rgba(255, 211, 77, .75); }
.vip-note { margin: 0; padding: 7px 10px; border: 1px dashed var(--mn-line, #d8bd86); border-radius: 10px; background: rgba(255, 250, 236, .6);
  font: 700 calc(12.5px * var(--txt, 1))/1.3 var(--f-ui, serif); color: var(--mn-leaf-deep, #2f7a3a); text-align: center; }
.vip-maps { margin: 0; font: italic 500 calc(12px * var(--txt, 1))/1.35 var(--f-ui, serif); color: var(--mn-ink-3, #7a6650); text-align: center; }   /* Expansão VIP: the VIP maps line */
.vip-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vip-acts .btn { min-width: 170px; }
a.btn.vip-acct { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) {
  .w-vip { width: auto; max-width: none; }
  .w-vip .win-b { max-height: none; }
  .vip-table { font-size: calc(12px * var(--txt, 1)); }
  .vip-table th, .vip-table td { padding: 5px 4px; }
  /* the label wraps instead of being cut (.btn is nowrap): "Comprar — próximamente" (es) is wider than a phone's half */
  .vip-acts .btn { flex: 1 1 140px; min-width: 0; white-space: normal; line-height: 1.15; padding-block: 6px; text-align: center; }
}

/* ---------- Esc menu entry ---------- */
.btn.vip-menu .vip-crown { width: 1.3em; height: 1.1em; }

/* ---------- Renascimento (Apóstolo Devin): the full price struck through, the price paid, "(−50% VIP)" ---------- */
.rs-full { color: var(--mn-ink-3, #7a6650); text-decoration: line-through; }
.rs-vip { color: #9a6200; font-weight: 700; }

/* ---------- chat, online list, ranking (#ae-net, net.js) and party (#ae-social, social.js) ---------- */
#ae-net .nu-who.vip2 { color: #ffd34d; }
#ae-net .nu-who.vip1 { color: #cfd8e3; }
html body #ae-net .nu-who.vip2 { color: #9a6200; text-shadow: 0 0 6px rgba(255, 211, 77, .55); }   /* on parchment: the same hue, readable */
html body #ae-net .nu-who.vip1 { color: #4f5d71; text-shadow: 0 0 6px rgba(207, 216, 227, .9); }
#ae-net .nu-ln .vip-crown { width: 1.15em; height: .95em; margin-right: .22em; vertical-align: -.12em; }
#ae-net .nu-pn .vip-crown, #ae-net .nu-rn .vip-crown { width: 1.1em; height: .92em; margin-right: .25em; }
#ae-social .as-member-line b .vip-crown { width: 1.15em; height: .95em; margin-right: .25em; vertical-align: -.12em; }

/* ---------- world atlas: VIP seal (+ padlock when it is closed to this hero) ---------- */
.atlas-node-vip { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 1px 6px; border: 1px solid #8a5f1e; border-radius: 999px;
  background: linear-gradient(180deg, #fff6c4, #ffd34d 60%, #d6a23a); font: 800 8.5px/1.3 var(--f-num, Arial, sans-serif); color: #4a2c06; letter-spacing: .05em; white-space: nowrap; }
.atlas-node.is-viplock .atlas-node-vip::before { content: ''; width: 8px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.6 5.4V3.8a2.4 2.4 0 0 1 4.8 0v1.6' fill='none' stroke='%237a2f2a' stroke-width='1.4'/%3E%3Crect x='1' y='5.2' width='8' height='6.2' rx='1.2' fill='%237a2f2a'/%3E%3C/svg%3E") center / contain no-repeat; }
.atlas-node.is-viplock .atlas-node-vip { filter: saturate(.55); }
/* Expansão VIP: a Gold-only map (vipTier 2) wears a deeper gold seal with a glow */
.atlas-node.is-vipgold .atlas-node-vip { border-color: #6b4206; background: linear-gradient(180deg, #ffe9a0, #f0b429 55%, #b8801a); color: #3a2002;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 196, .7), 0 0 6px rgba(255, 196, 60, .65); }
.atlas-requirements dd.atlas-vip-row { color: #9a6200; }

/* ---------- touch drawer: the VIP tile in the tier's colour ---------- */
#ae-touch .tt-tile.vip-2 .tt-ic { color: #c8961e; filter: drop-shadow(0 1px 0 #6b4a0e); }
#ae-touch .tt-tile.vip-1 .tt-ic { color: #8796aa; filter: drop-shadow(0 1px 0 #3a4352); }
/* Mana VIP identity: the plan crests stay inside the comparison, while name crowns retain their compact size. */
.w-vip{width:calc(790px * var(--txt-h,1));max-width:calc(100vw - 16px)}
.w-vip .win-b{gap:12px;min-width:0;overflow-x:hidden;box-sizing:border-box}
.w-vip .vip-status{padding:12px 16px;border-radius:7px;background:linear-gradient(120deg,#f5f7ff,#fff4d7);border-color:#c3b190}
.w-vip .vip-crown.vip-crown-big{height:65px;width:65px;background-image:url('/assets/ui/mana-vip/mana-vip-ouro.svg')}
.w-vip .vip-crown.vip-crown-big.t1{background-image:url('/assets/ui/mana-vip/mana-vip-prata.svg')}.w-vip .vip-crown.vip-crown-big.t0{filter:grayscale(1);opacity:.6}
.w-vip .vip-name{font-size:calc(24px * var(--txt-h,1))}
.w-vip .vip-table{table-layout:fixed;max-width:100%;overflow-wrap:anywhere}
.w-vip .vip-table th:first-child{width:36%}.w-vip .vip-table td{width:32%;font-size:calc(12px * var(--txt,1))}
.w-vip .vip-table th,.w-vip .vip-table td{padding:8px 9px;line-height:1.5}
.w-vip .vip-table thead .vip-col{position:relative;isolation:isolate;overflow:hidden;padding:0 0 12px!important;vertical-align:bottom;border-radius:7px 7px 0 0}
.w-vip .vip-plan-image{width:100%;height:100px;object-fit:cover;display:block;object-position:center 44%;margin-bottom:8px}
.w-vip .vip-plan-crest{width:66px;height:66px;display:block;margin:-50px auto 5px;position:relative;filter:drop-shadow(0 2px 4px #14244280)}
.w-vip .vip-col-n{font-size:calc(18px * var(--txt-h,1));padding:0 4px;line-height:1.3;letter-spacing:-.03em}.w-vip .vip-price{font-size:calc(12px * var(--txt,1));padding-inline:4px;line-height:1.5}
.w-vip .vip-rules{border-left:2px solid #b89a62;padding:0 10px;background:#faf1df80;font:500 calc(12px * var(--txt,1))/1.5 var(--f-ui,serif);color:#635442}
.w-vip .vip-rules p{margin:6px 0}.w-vip .vip-maps,.w-vip .vip-arenas{padding:9px 12px;border:1px solid #c9b79860;border-radius:5px;background:#faf7ed;font:500 calc(12px * var(--txt,1))/1.6 var(--f-ui,serif);color:#685443;text-align:left;margin:0}
.w-vip .vip-arenas{background:#fff5d9;color:#805f23}.w-vip .vip-acts .btn{min-height:40px}
@media(max-width:760px){.w-vip{width:auto;max-width:none}.w-vip .win-b{padding:10px!important}.w-vip .vip-table th,.w-vip .vip-table td{padding:6px 4px;font-size:11px;line-height:1.5}.w-vip .vip-table th:first-child{width:34%}.w-vip .vip-col-n{font-size:15px}.w-vip .vip-price{font-size:10px}.w-vip .vip-plan-image{height:76px}.w-vip .vip-plan-crest{width:52px;height:52px;margin-top:-40px}.w-vip .vip-rules{font-size:11px}.w-vip .vip-name{font-size:22px}.w-vip .vip-status{padding:10px;gap:8px}.w-vip .vip-crown.vip-crown-big{width:52px;height:52px}.w-vip .vip-kept{font-size:11px}.w-vip .vip-left{font-size:12px}}
@media(max-width:380px){.w-vip .vip-col-n{font-size:13px}.w-vip .vip-table th,.w-vip .vip-table td{font-size:10px}.w-vip .vip-price{font-size:9px}}
