:root {
  color-scheme: dark;
  --base: #080b15;
  --ink: #f6f0df;
  --muted: #b4bbce;
  --gold: #ecc886;
  --line: #c1c8e529;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #a7d6ff; outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .65rem; background: var(--base); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(1216px, calc(100% - 4rem)); margin-inline: auto; }
header { position: relative; z-index: 1; background: #090c17; border-bottom: 1px solid var(--line); }
.nav, .footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; font: 700 1.2rem var(--serif); white-space: nowrap; }
.sigil { display: inline-block; width: .8rem; height: .8rem; border: 1px solid #ffd58f; transform: rotate(45deg); background: #426cc5; box-shadow: 0 0 16px #719cff99, inset 0 0 5px #c4e4ff; }
.nav-links { display: flex; gap: clamp(1rem, 4vw, 3rem); color: var(--muted); font-size: .9rem; }
.nav-links a:hover, .footer a:hover { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; padding: .7rem 1rem; font-size: .9rem; font-weight: 700; border-radius: 4px; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.outline { border-color: #e4eaff59; background: #0b1124b8; }
.outline:hover { border-color: var(--gold); }
.gold { background: #efca88; background-image: linear-gradient(125deg,#ffe6ae,#d6a65d); color: #24170c; }
.gold:hover { background: #ffe5b0; }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(580px, 73svh, 900px);
  background:
    linear-gradient(0deg, var(--base), transparent 28%),
    linear-gradient(90deg, #080b15 0%, #080b15ed 18%, #080b1580 48%, transparent 75%),
    url('/arte-site.webp') center right / cover no-repeat, #111b38;
}
.hero-content { padding-block: 5rem 7rem; }
.eyebrow { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.06; margin: 0; }
h1 { font-size: clamp(4.75rem, 10vw, 9rem); letter-spacing: -.075em; text-shadow: 0 5px 35px #050612b8; }
h1 em { display: block; color: var(--gold); font-weight: 400; }
.lead { max-width: 34ch; color: #e5e7f0; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }
.caption, .footer, .section p { color: var(--muted); }
.caption, .footer { font-size: .82rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.045em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.1rem; border-block: 1px solid var(--line); }
.features article { padding: clamp(1.2rem, 3vw, 2.2rem); background: linear-gradient(150deg, #19264480, transparent 75%); }
.features article + article { border-left: 1px solid var(--line); }
.features article span { display: block; color: var(--gold); font-size: 1.7rem; margin-bottom: .8rem; }
h3 { font-size: 1.35rem; }
.section p { margin-bottom: 0; }
.join { background: radial-gradient(ellipse at 10% 100%, #1c2b53, transparent 66%), #0e1324; border-block: 1px solid var(--line); }
.join-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.join .button { margin-top: 1.5rem; }
.join ol { display: grid; gap: 1.25rem; margin: 0; padding-left: 1.5rem; }
.join li { padding-left: .65rem; }
.join li::marker { color: var(--gold); font-weight: 700; }
.join li p { margin-top: .35rem; }
code { color: #f5d69f; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { min-height: 64px; }
  .nav { flex-wrap: wrap; row-gap: .25rem; padding-block: .5rem; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 1rem; font-size: .82rem; }
  .nav-links a { padding-block: .4rem; }
  .nav .button { gap: .45rem; padding-inline: .65rem; font-size: .8rem; }
  .hero {
    align-items: end;
    min-height: 0;
    background:
      linear-gradient(0deg, var(--base) 24%, #080b15f0 43%, #080b1555 65%, transparent 86%),
      url('/arte-site.webp') 85% top / auto clamp(310px, 88vw, 490px) no-repeat, var(--base);
  }
  .hero-content { padding-block: clamp(13rem, 57vw, 23rem) 2rem; }
  h1 { font-size: clamp(3.6rem, 13vw, 5.9rem); }
  .features, .join-layout { grid-template-columns: 1fr; }
  .features article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

.account h1 { font-size: clamp(2.9rem, 8vw, 5.75rem); }
.account h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.account-grid:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.account-panel { display: grid; gap: .9rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 8px; background: #10182b; }
.account-panel p { margin: 0 0 .7rem; }
.account-panel label { display: grid; gap: .3rem; font-weight: 600; }
.account-panel input { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid #67738d; border-radius: 4px; background: var(--base); color: var(--ink); font: inherit; }
.account-panel input:focus-visible { outline: 2px solid #a7d6ff; outline-offset: 2px; }
.account-panel small { color: var(--muted); margin-top: -.6rem; }
.account button { font-family: inherit; cursor: pointer; justify-self: start; }
.account-message:empty { display: none; }
.account .account-message { color: #ffd6c6; padding: .7rem 1rem; border-left: 2px solid #ffad8b; background: #2e2028; }
.account h1 + .account-message + section { margin-top: 1.5rem; }
.join li a { color: var(--gold); text-decoration: underline; }

#aventura h2 { text-align: center; }
.class-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 2rem; }
.class-card {
  --shine: #244c87;
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: .85rem;
  text-align: center;
  border: 1px solid #7699d278;
  border-top-color: var(--gold);
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 0%, var(--shine), transparent 78%), #10182b;
}
.class-card:nth-child(2n) { --shine: #275d7d; }
.class-card:nth-child(3n) { --shine: #514072; }
.class-card h3 { font-size: 1.3rem; }
.class-card p { font-size: .87rem; margin: 0; }
.class-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.class-pair figure { margin: 0; }
.class-portrait {
  aspect-ratio: 1;
  border: 1px solid #839ac960;
  border-radius: 5px;
  background: #0a1328 url('/retratos-classes.webp') no-repeat;
  background-size: 400% 400%;
}
.class-pair figcaption { padding-top: .25rem; color: #dbe4f6; font-size: .76rem; }
.online-count { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: #e5e7f0; font-size: .88rem; }
.online-count[data-available]::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: #6fe5a0; }
.portrait-0 { background-position: 0% 0%; }
.portrait-1 { background-position: 33.3333% 0%; }
.portrait-2 { background-position: 66.6667% 0%; }
.portrait-3 { background-position: 100% 0%; }
.portrait-4 { background-position: 0% 33.3333%; }
.portrait-5 { background-position: 33.3333% 33.3333%; }
.portrait-6 { background-position: 66.6667% 33.3333%; }
.portrait-7 { background-position: 100% 33.3333%; }
.portrait-8 { background-position: 0% 66.6667%; }
.portrait-9 { background-position: 33.3333% 66.6667%; }
.portrait-10 { background-position: 66.6667% 66.6667%; }
.portrait-11 { background-position: 100% 66.6667%; }
.portrait-12 { background-position: 0% 100%; }
.portrait-13 { background-position: 33.3333% 100%; }
.world { background: linear-gradient(90deg, #080b15, #080b15b3), url('/arte-site.webp') center 36% / cover; }
@media (max-width: 960px) { .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 740px) { .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .class-card { padding: .55rem; }
  .class-card h3 { font-size: 1.15rem; }
  .class-pair figcaption { font-size: .66rem; }
}
@media (max-width: 350px) { .class-grid { grid-template-columns: 1fr; } }

.character-panel { margin-block-start: 1.5rem; }
.character-panel h3 { margin: .55rem 0 0; }
.view-select { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.view-select select { min-height: 46px; max-width: 100%; padding: .55rem .7rem; border: 1px solid #67738d; border-radius: 4px; background: var(--base); color: var(--ink); font: inherit; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; }
.table-scroll :is(th, td) { border-bottom: 1px solid var(--line); padding: .65rem .8rem; }
.table-scroll :is(th, td):last-child { text-align: right; }

.character-heading { border-top: 1px solid var(--line); padding-top: 1rem; }
.character-heading p { color: var(--muted); margin: .25rem 0 0; }
.resource-grid, .character-stats { display: grid; gap: .8rem; }
.resource-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.character-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.resource, .stat-block { padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 6px; background: #0b1324; }
.resource { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.resource strong, .stat-block dd, .rank-table td:last-child { font-variant-numeric: tabular-nums; }
.resource progress { grid-column: 1 / -1; width: 100%; height: .45rem; accent-color: #91c5ff; }
.resource:nth-child(1) progress { accent-color: #f48a82; }
.resource:nth-child(4) progress { accent-color: #e6b963; }
.stat-block h4 { margin: 0 0 .4rem; color: #e6c781; }
.stat-block dl, .stat-block dd { margin: 0; }
.stat-block dl > div { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.inventory-section { border-top: 1px solid var(--line); padding-top: .65rem; }
.rank-tabs { display: flex; flex-wrap: wrap; gap: .45rem; padding: .25rem 0 .6rem; }
.rank-tabs a { color: #b7cde8; padding: .45rem .7rem; border: 1px solid #34445f; border-radius: 5px; background: #131f34; }
.rank-tabs a[aria-current], .rank-tabs a:hover { color: #ffdda1; border-color: #b48a4e; background: #352a21; }
.rank-table thead { background: #1a2a43; color: #b8cde8; }
.rank-table td, .rank-table th { padding: clamp(.55rem, 2vw, .8rem); }
.rank-table tbody tr:nth-child(even) { background: #142033; }
.rank-table tbody tr:hover { background: #22344d; }
.rank-table td:first-child { width: 1%; }
.rank-table td:nth-child(2) { font-weight: 700; }
.rank-position { display: inline-grid; place-items: center; min-width: 2.35rem; min-height: 2rem; padding-inline: .35rem; border-radius: 5px; color: #c2d4ed; background: #25324a; font-variant-numeric: tabular-nums; }
.rank-position[data-rank="1"] { background: #f3cc75; color: #382510; }
.rank-position[data-rank="2"] { background: #c2d8eb; color: #172a3f; }
.rank-position[data-rank="3"] { background: #ca916c; color: #301d17; }

/* Emblemas do Chaos of Wing */
.rank-tabs a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.85rem; }
.rank-tabs a[href$="categoria=nivel"] { --rim: #a9d1ff; --edge: #557abd; --mark: #e5f5ff; --sigil: polygon(50% 3%, 90% 40%, 67% 40%, 67% 76%, 50% 97%, 33% 76%, 33% 40%, 10% 40%); }
.rank-tabs a[href$="categoria=ouro"] { --rim: #ffe5a1; --edge: #b96b28; --mark: #ffe0a0; --sigil: polygon(50% 2%, 77% 20%, 95% 50%, 77% 80%, 50% 98%, 23% 80%, 5% 50%, 23% 20%, 50% 2%, 50% 25%, 25% 50%, 50% 75%, 75% 50%, 50% 25%); }
.rank-tabs a[href$="categoria=malignos"] { --rim: #ffc2c6; --edge: #a24268; --mark: #ffd0cf; --sigil: polygon(5% 8%, 35% 26%, 50% 70%, 65% 26%, 95% 8%, 82% 57%, 50% 98%, 18% 57%); }
.rank-tabs a[href$="categoria=reputacao"] { --rim: #a7ebce; --edge: #47877b; --mark: #d0ffe6; --sigil: polygon(50% 0%, 61% 35%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0% 50%, 39% 35%); }
.rank-tabs a[href$="categoria=escada"] { --rim: #dfcaff; --edge: #7961b6; --mark: #edd9ff; --sigil: polygon(65% 4%, 96% 4%, 96% 48%, 65% 48%, 65% 72%, 38% 72%, 38% 96%, 4% 96%, 4% 65%, 34% 65%, 34% 35%, 65% 35%); }
.rank-tabs a { position: relative; padding-inline-start: 2.8rem; }
.rank-tabs a::before, .rank-tabs a::after { content: ''; position: absolute; pointer-events: none; inset-inline-start: .55rem; top: 50%; transform: translateY(-50%); }
.rank-tabs a::before { width: 1.7rem; height: 1.85rem; background: radial-gradient(ellipse at center, #10192b 0 43%, transparent 46%), linear-gradient(145deg, var(--rim), var(--edge) 54%, var(--rim)); clip-path: polygon(50% 0%, 92% 22%, 98% 62%, 50% 100%, 2% 62%, 8% 22%); }
.rank-tabs a::after { width: .96rem; height: .96rem; inset-inline-start: .92rem; background: linear-gradient(150deg, white, var(--mark) 50%, var(--edge)); clip-path: var(--sigil); }
.rank-tabs a[aria-current] { box-shadow: inset 0 -2px 0 var(--edge); }
@media (forced-colors: active) { .rank-tabs a::before, .rank-tabs a::after { forced-color-adjust: none; } }

.rank-wallet { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .35rem .6rem; }
.rank-coin { display: inline-grid; grid-template-columns: .7rem auto; align-items: center; gap: .1rem .25rem; }
.rank-coin[data-metal="platina"] { --metal: #b1e5ff; }
.rank-coin[data-metal="ouro"] { --metal: #f6cb6d; }
.rank-coin[data-metal="prata"] { --metal: #d1d9e9; }
.rank-coin[data-metal="bronze"] { --metal: #de9870; }
.coin-dot { width: .65rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--metal); background: radial-gradient(circle at 38% 30%, #ffffffad, var(--metal) 38%, #161d32 125%); }
.coin-label { grid-column: 1 / -1; color: var(--metal); font-size: .7rem; }
.rank-honor { font-weight: 700; color: #b8edcf; }

.equipped-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,220px); gap:1.5rem; align-items:center; }
.equipped-grid,.inventory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:.45rem; max-width:570px; }
.inventory-page summary { cursor:pointer; padding:.65rem 0; color:#c4d5ed; }
.item-slot { position:relative; display:grid; place-items:center; aspect-ratio:1; min-width:0; border:1px solid #5a6a85; border-radius:7px; background:linear-gradient(155deg,#27374d,#101a2d); }
.item-slot.empty { border-color:#2d3c57; background:#101928; }
.item-slot.quality-2 { border-color:#6eae75; }
.item-slot.quality-3 { border-color:#719ee5; }
.item-slot.quality-4 { border-color:#ad84e5; }
.item-slot.quality-5,.item-slot.quality-6 { border-color:#e5b76b; }
.item-icon { display:grid; place-items:center; }
.item-icon img { object-fit:contain; max-width:100%; }
.item-count { position:absolute; right:.22rem; bottom:.08rem; color:#fff; font-size:.69rem; text-shadow:0 1px 3px #000,0 0 4px #000; }
.item-tooltip { display:none; position:absolute; z-index:4; inset-inline-start:0; bottom:calc(100% + .4rem); width:min(230px,65vw); padding:.65rem; border:1px solid #8b784f; background:#111a2b; color:#e7effe; border-radius:8px; box-shadow:0 9px 24px #0009; font-size:.83rem; pointer-events:none; }
.item-tooltip strong { display:block; color:#f2ce82; }
.item-tooltip span { display:block; margin-top:.35rem; }
.item-slot:hover .item-tooltip,.item-slot:focus .item-tooltip { display:block; }
@media (max-width:520px) { .equipped-panel { grid-template-columns:1fr; } .equipped-panel .class-portrait { max-width:180px; } }

.equipped-panel { display:block; }
.equipment-preview { display:grid; grid-template-columns:minmax(36px,48px) minmax(0,1fr) minmax(36px,48px); align-items:start; gap:clamp(.35rem,2vw,.9rem); max-width:410px; padding:.7rem; border:1px solid #50627f; border-radius:10px; background:#101a2b; }
.equipment-illustration {
  aspect-ratio: 140 / 191;
  align-self: center;
  border-radius: 5px;
  background: #363522 url('/modelo-ficha.png') 19.9336% 24.6499% / 315% 286.911% no-repeat;
}
.equipment-rail { display:grid; gap:.35rem; }
.equipment-rail:last-child .item-tooltip { inset-inline-start:auto; inset-inline-end:0; }

.equipment-header { display:grid; grid-template-columns:minmax(0,340px) minmax(0,190px); gap:.75rem; align-items:center; }
.equipment-header .stat-block { min-width:0; }
.equipment-preview { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:repeat(6,auto); gap:.3rem; }
.equipment-illustration { grid-area:2 / 2 / 6 / 6; max-height:175px; justify-self:center; width:auto; height:100%; max-width:100%; }
.equipment-cell { min-width:0; }
.equipment-empty { font-size:clamp(.45rem,1.4vw,.62rem); text-align:center; color:#b0bed2; overflow-wrap:anywhere; }
.slot-helmet { grid-area:1 / 1; }
.slot-cape { grid-area:1 / 2; }
.slot-banner { grid-area:1 / 5; }
.slot-soul { grid-area:1 / 6; }
.slot-armor { grid-area:2 / 1; }
.slot-medal { grid-area:2 / 6; }
.slot-gloves { grid-area:3 / 1; }
.slot-wings { grid-area:3 / 6; }
.slot-boots { grid-area:4 / 1; }
.slot-necklace { grid-area:4 / 6; }
.slot-offhand { grid-area:5 / 1; }
.slot-ring { grid-area:5 / 6; }
.slot-weapon { grid-area:6 / 1; }
.slot-hair { grid-area:6 / 3; }
.slot-fashion { grid-area:6 / 4; }
.slot-ride { grid-area:6 / 6; }
.equipment-cell:nth-child(even) .item-tooltip { inset-inline-end:0; inset-inline-start:auto; }
.equipment-stat-columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:.75rem; max-width:542px; margin-top:.75rem; }
.equipment-vitals { display:grid; gap:.35rem; margin-bottom:.75rem; }
@media (max-width:460px) { .equipment-header,.equipment-stat-columns { grid-template-columns:1fr; } }

.equipment-illustration.art-protoss {
  aspect-ratio: 140 / 179;
  background: #363522 url('/modelo-protoss.png') 21.0526% 30.8284% / 914.286% 402.235% no-repeat;
}
.equipment-illustration.class-portrait { aspect-ratio:1; }

.equipment-illustration.paired-class-art {
  width:100%; height:auto; max-height:none;
  aspect-ratio:210 / 185;
  background-image:var(--class-art); background-position:100% 0;
  background-size:200% 131.892%; background-repeat:no-repeat;
}
.equipment-illustration.paired-class-art.male { background-position:0 0; }
.equipment-illustration.paired-class-art.art-protoss { aspect-ratio:640 / 545; background-size:200% 132.11%; }
.paired-class-art.art-protoss { --class-art:url("/classe-protoss.png"); }
.paired-class-art.art-ladino { --class-art:url("/classe-ladino.png"); }
.paired-class-art.art-cavaleiro { --class-art:url("/classe-cavaleiro.png"); }
.paired-class-art.art-mago { --class-art:url("/classe-mago.png"); }
.paired-class-art.art-guarda { --class-art:url("/classe-guarda.png"); }
.paired-class-art.art-sacerdote { --class-art:url("/classe-sacerdote.png"); }

.equipment-illustration.paired-class-art.art-protoss {
  aspect-ratio:1; max-height:180px;
  background: transparent var(--protoss-cutout) center / contain no-repeat;
}
.art-protoss.female { --protoss-cutout:url('/protoss-female-recorte.png'); }
.art-protoss.male { --protoss-cutout:url('/protoss-male-recorte.png'); }
