:root {
    --bg: #070b14;
    --surface: #0d1625;
    --surface-2: #142238;
    --surface-3: #1b2d48;
    --line: #2b405e;
    --ivory: #f5eddf;
    --text: #d8e0eb;
    --muted: #91a1b8;
    --ruby: #a82e48;
    --ruby-light: #d34d68;
    --copper: #c88445;
    --copper-light: #edb572;
    --green: #3ddd98;
    --red: #f06d78;
    --shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(168,46,72,.15), transparent 30rem),
        radial-gradient(circle at 90% 12%, rgba(200,132,69,.09), transparent 32rem),
        var(--bg);
    font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

a {
    color: var(--copper-light);
    text-decoration: none;
}

a:hover {
    color: var(--ivory);
}

button,
input,
select {
    font: inherit;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(43,64,94,.85);
    background: rgba(7,11,20,.95);
    backdrop-filter: blur(15px);
}

.header-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.portal-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ivory);
}

.portal-brand:hover {
    color: var(--ivory);
}

.brand-shield {
    width: 44px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--copper-light);
    border-radius: 9px 9px 16px 16px;
    color: #1b0d0f;
    background: linear-gradient(145deg, var(--copper-light), var(--copper));
    box-shadow: inset 0 1px rgba(255,255,255,.4), 0 9px 25px rgba(200,132,69,.18);
    font: 800 25px Georgia, serif;
}

.portal-brand > span:last-child {
    display: grid;
}

.portal-brand strong {
    font: 700 19px/1.15 Georgia, serif;
}

.portal-brand small {
    margin-top: 4px;
    color: var(--copper-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.portal-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.portal-navigation a {
    padding: 10px 11px;
    border-radius: 7px;
    color: #b8c3d3;
    font-size: 13px;
    font-weight: 750;
}

.portal-navigation a:hover {
    color: var(--ivory);
    background: rgba(255,255,255,.04);
}

.portal-navigation a.active {
    color: white;
    background: rgba(168,46,72,.22);
    box-shadow: inset 0 -2px var(--ruby-light);
}

.header-create {
    padding: 10px 17px;
    border: 1px solid var(--ruby-light);
    border-radius: 7px;
    color: white;
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby));
    font-size: 13px;
    font-weight: 850;
}

.header-create:hover {
    color: white;
    filter: brightness(1.1);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    margin: 4px 0;
    display: block;
    background: var(--ivory);
}

.server-strip {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
}

.server-strip > div {
    width: min(1440px, calc(100% - 48px));
    min-height: 38px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.strip-status,
.character-status,
.server-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.strip-address {
    margin-left: auto;
    color: var(--copper-light);
    font-family: Consolas, monospace;
}

.is-online,
.is-offline {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    display: inline-block;
    border-radius: 50%;
}

.is-online {
    background: var(--green);
    box-shadow: 0 0 12px rgba(61,221,152,.7);
}

.is-offline {
    background: var(--red);
    box-shadow: 0 0 10px rgba(240,109,120,.5);
}

.portal-main {
    width: min(1440px, calc(100% - 48px));
    min-height: calc(100vh - 350px);
    margin: auto;
    padding: 54px 0 76px;
}

h1,
h2 {
    margin-top: 0;
    color: var(--ivory);
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.section-kicker,
.hero-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--copper-light);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.page-heading,
.character-header,
.guild-header {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.page-heading p,
.guild-header p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.portal-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(20,34,56,.97), rgba(13,22,37,.97));
    box-shadow: var(--shadow);
}

.portal-panel + .portal-panel {
    margin-top: 22px;
}

.panel-title {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-title h2 {
    margin: 0;
}

.panel-title > a {
    font-size: 13px;
    font-weight: 850;
}

.portal-button {
    min-height: 44px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s, filter .15s;
}

.portal-button:hover {
    color: white;
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.portal-button.ruby {
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby));
    box-shadow: 0 10px 26px rgba(168,46,72,.25);
}

.portal-button.copper {
    color: #1a0e09;
    background: linear-gradient(135deg, var(--copper-light), var(--copper));
}

.portal-button.disabled {
    color: var(--muted);
    background: var(--surface-3);
    cursor: not-allowed;
}

.portal-button.disabled:hover {
    filter: none;
    transform: none;
}

.portal-hero {
    min-height: 550px;
    padding: clamp(38px, 6vw, 78px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    align-items: center;
    gap: clamp(35px, 7vw, 100px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 25%, rgba(168,46,72,.27), transparent 36%),
        radial-gradient(circle at 78% 5%, rgba(200,132,69,.14), transparent 30%),
        linear-gradient(135deg, var(--surface-2), var(--surface) 62%, #080d17);
    box-shadow: var(--shadow);
}

.portal-hero::after {
    position: absolute;
    right: -130px;
    bottom: -190px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(237,181,114,.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(237,181,114,.025),
        0 0 0 140px rgba(237,181,114,.018);
}

.hero-content,
.entry-card {
    position: relative;
    z-index: 1;
}

.hero-content h1 em {
    color: var(--copper-light);
    font-style: normal;
}

.hero-content > p {
    max-width: 680px;
    margin: 0;
    color: #b6c2d2;
    font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
    margin: 30px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.live-status strong {
    color: var(--text);
}

.entry-card {
    padding: 28px;
    border: 1px solid rgba(237,181,114,.25);
    border-radius: 13px;
    background: rgba(7,11,20,.7);
    box-shadow: 0 18px 45px rgba(0,0,0,.27);
}

.entry-card ol {
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 14px;
    list-style: none;
}

.entry-card li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-card li b {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--ruby);
}

.entry-card dl {
    margin: 0;
    padding-top: 18px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.entry-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.entry-card dt {
    color: var(--muted);
}

.entry-card dd {
    margin: 0;
    color: var(--ivory);
    font-weight: 800;
}

.world-stats {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.world-stats article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}

.world-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.world-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--ivory);
    font: 750 30px Georgia, serif;
}

.portal-grid,
.character-grid,
.info-grid,
.download-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.join-banner,
.page-action {
    margin-top: 24px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid rgba(168,46,72,.55);
    border-radius: 13px;
    background: linear-gradient(110deg, rgba(168,46,72,.2), rgba(20,34,56,.94) 55%);
}

.join-banner h2,
.page-action h2 {
    margin: 0;
}

.page-action p {
    margin: 6px 0 0;
    color: var(--muted);
}

.page-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.muted {
    color: var(--muted);
}

.online-text {
    color: var(--green);
}

.empty-state {
    padding: 28px !important;
    color: var(--muted);
    text-align: center;
}

/* Listas e tabelas */

.ranking-list,
.death-list {
    display: grid;
}

.ranking-list a,
.death-list a {
    min-height: 68px;
    padding: 12px 5px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.ranking-list a:last-child,
.death-list a:last-child {
    border-bottom: 0;
}

.ranking-list > a > b {
    width: 32px;
    color: var(--copper-light);
    font: 750 21px Georgia, serif;
}

.ranking-list a > span,
.death-list a > span {
    flex: 1;
    display: grid;
}

.ranking-list small,
.death-list small {
    color: var(--muted);
}

.ranking-list em {
    color: var(--ivory);
    font-style: normal;
    font-weight: 800;
}

.death-list time {
    color: var(--muted);
    font-size: 12px;
}

.responsive-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    padding: 13px 15px;
    color: #91a9ca;
    background: rgba(7,11,20,.5);
    font-size: 10px;
    letter-spacing: .13em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-table td {
    padding: 14px 15px;
    border-top: 1px solid var(--line);
}

.portal-table tbody tr:hover {
    background: rgba(255,255,255,.02);
}

.character-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ivory);
    white-space: nowrap;
}

.rank-position {
    color: var(--copper-light);
    font: 700 19px Georgia, serif;
}

.podium.position-1 {
    background: rgba(237,181,114,.06);
}

.danger-label {
    margin-left: 7px;
    padding: 3px 6px;
    border: 1px solid rgba(240,109,120,.5);
    border-radius: 4px;
    color: #ffb5bc;
    background: rgba(240,109,120,.09);
    font-size: 9px;
    font-weight: 900;
}

/* Filtros e pesquisa */

.portal-filters,
.character-search {
    margin-bottom: 24px;
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
}

.portal-filters label,
.character-search label {
    min-width: 210px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.character-search label {
    flex: 1;
}

.portal-filters select,
.character-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    color: var(--text);
    background: var(--bg);
}

.portal-filters select:focus,
.character-search input:focus {
    border-color: var(--ruby-light);
    box-shadow: 0 0 0 3px rgba(168,46,72,.14);
}

.search-panel {
    margin-bottom: 22px;
}

.search-panel .character-search {
    margin: 0;
}

.online-total,
.character-level,
.guild-count {
    min-width: 135px;
    padding: 18px 24px;
    display: grid;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}

.online-total {
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0 10px;
}

.online-total strong,
.character-level strong,
.guild-count strong {
    color: var(--ivory);
    font: 750 34px Georgia, serif;
}

.online-total span {
    grid-column: 1 / -1;
}

.character-level span,
.guild-count span,
.online-total span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Perfil do personagem */

.profile-details {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--line);
}

.profile-details div {
    padding: 14px 16px;
    background: var(--surface);
}

.profile-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-details dd {
    margin: 5px 0 0;
    color: var(--ivory);
    font-weight: 750;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.skills-list div {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(7,11,20,.35);
}

.skills-list span {
    color: var(--muted);
    font-size: 12px;
}

.skills-list strong {
    color: var(--copper-light);
    font: 750 20px Georgia, serif;
}

.not-found-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Guilds */

.guild-list {
    display: grid;
    gap: 12px;
}

.guild-card {
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: rgba(7,11,20,.32);
}

.guild-card:hover {
    border-color: var(--copper);
    color: var(--text);
    background: rgba(200,132,69,.04);
}

.guild-emblem {
    width: 52px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--copper);
    border-radius: 7px 7px 15px 15px;
    color: var(--ivory);
    background: linear-gradient(145deg, var(--ruby), var(--ruby-dark, #721d31));
    font: 750 24px Georgia, serif;
}

.guild-card > div:nth-child(2) {
    display: grid;
}

.guild-card > div:nth-child(2) strong {
    color: var(--ivory);
    font: 700 20px Georgia, serif;
}

.guild-card > div:nth-child(2) span {
    color: var(--muted);
    font-size: 12px;
}

.guild-card dl {
    margin: 0;
    display: flex;
    gap: 25px;
}

.guild-card dl div {
    display: grid;
    text-align: center;
}

.guild-card dt {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.guild-card dd {
    margin: 3px 0 0;
    color: var(--ivory);
    font-weight: 850;
}

/* Informações */

.info-card {
    min-height: 100%;
}

.info-list,
.connection-details {
    margin: 20px 0 0;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.info-list div,
.connection-details div {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
}

.info-list dt,
.connection-details dt {
    color: var(--muted);
}

.info-list dd,
.connection-details dd {
    margin: 0;
    color: var(--ivory);
    font-weight: 800;
}

.rate-list,
.vocation-list,
.town-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.rate-list div,
.vocation-list div,
.town-list div {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(7,11,20,.32);
}

.rate-list strong {
    min-width: 48px;
    color: var(--copper-light);
    font: 750 24px Georgia, serif;
}

.vocation-list div,
.town-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}

.vocation-list strong,
.town-list strong {
    color: var(--ivory);
}

.vocation-list span,
.town-list span {
    color: var(--muted);
    font-size: 12px;
}

.connection-panel {
    margin-top: 22px;
}

.connection-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.connection-details div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

/* Download */

.download-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.download-icon {
    width: 92px;
    height: 106px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 2px solid var(--copper-light);
    border-radius: 14px 14px 28px 28px;
    color: #1c0d10;
    background: linear-gradient(145deg, var(--copper-light), var(--copper));
    box-shadow: 0 16px 36px rgba(200,132,69,.2);
    font: 800 48px Georgia, serif;
}

.download-content {
    flex: 1;
}

.download-features {
    margin: 20px 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.download-features li::before {
    margin-right: 9px;
    color: var(--green);
    content: "✓";
    font-weight: 900;
}

.download-meta {
    margin: 20px 0;
    padding-top: 18px;
    display: grid;
    gap: 9px;
    border-top: 1px solid var(--line);
}

.download-meta div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.download-meta dt {
    color: var(--muted);
}

.download-meta dd {
    margin: 0;
    color: var(--ivory);
    font-weight: 800;
}

.download-button {
    width: 100%;
}

.installation-steps {
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 15px;
    list-style: none;
}

.installation-steps li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.installation-steps li > b {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--ruby);
}

.installation-steps li div {
    display: grid;
}

.installation-steps span {
    color: var(--muted);
    font-size: 12px;
}

.checksum-panel {
    margin-top: 22px;
}

.checksum-panel p {
    color: var(--muted);
}

.checksum {
    padding: 13px;
    display: block;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--copper-light);
    background: var(--bg);
}

/* Cadastro */

.portal-registration {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(500px, 1.45fr);
    gap: 35px;
}

.section-intro p {
    color: var(--muted);
}

.registration-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}

.registration-form fieldset {
    min-width: 0;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.registration-form legend {
    padding: 0 8px;
    color: var(--copper-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.form-grid input,
.form-grid select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    color: var(--text);
    background: var(--bg);
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--ruby-light);
    box-shadow: 0 0 0 3px rgba(168,46,72,.14);
}

.form-grid small {
    color: var(--muted);
    font-weight: 500;
}

.terms {
    margin: 4px 0 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
}

.terms input {
    width: 17px;
    height: 17px;
    margin-top: 4px;
}

.registration-form .submit {
    width: 100%;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(240,109,120,.55);
    border-radius: 7px;
    color: #ffd3d7;
    background: rgba(240,109,120,.1);
}

.alert p {
    margin: 0;
}

.success-card {
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid rgba(61,221,152,.5);
    border-radius: 13px;
    text-align: center;
    background: rgba(61,221,152,.08);
}

.account-number {
    margin: 12px 0;
    display: block;
    color: var(--copper-light);
    font: 800 clamp(42px, 7vw, 76px) Georgia, serif;
}

.created-details {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 25px;
}

/* Rodapé */

.portal-footer {
    border-top: 1px solid var(--line);
    background: #050911;
}

.footer-main,
.footer-bottom {
    width: min(1440px, calc(100% - 48px));
    margin: auto;
}

.footer-main {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 60px;
}

.footer-links > div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links strong {
    margin-bottom: 5px;
    color: var(--ivory);
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--copper-light);
}

.footer-bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

/* Responsividade */

@media (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .portal-navigation {
        width: 100%;
        margin: 0;
        padding-top: 10px;
        display: none;
        order: 4;
        flex-wrap: wrap;
        border-top: 1px solid var(--line);
    }

    .portal-navigation.opened {
        display: flex;
    }

    .portal-hero {
        grid-template-columns: 1fr;
    }

    .connection-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .portal-main {
        padding-top: 35px;
    }

    .portal-grid,
    .character-grid,
    .info-grid,
    .download-layout,
    .portal-registration {
        grid-template-columns: 1fr;
    }

    .world-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        display: grid;
    }
}

@media (max-width: 580px) {
    .header-inner,
    .server-strip > div,
    .portal-main,
    .footer-main,
    .footer-bottom {
        width: min(100% - 28px, 1440px);
    }

    .header-create {
        display: none;
    }

    .portal-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-navigation a {
        width: 100%;
    }

    .server-strip > div {
        padding: 9px 0;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .strip-address {
        width: 100%;
        margin: 0;
    }

    .portal-hero,
    .portal-panel,
    .registration-form {
        padding: 22px;
    }

    .world-stats,
    .profile-details,
    .skills-list,
    .form-grid,
    .connection-details {
        grid-template-columns: 1fr;
    }

    .page-heading,
    .character-header,
    .guild-header,
    .join-banner,
    .page-action,
    .not-found-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .guild-card {
        grid-template-columns: auto 1fr;
    }

    .guild-card dl {
        grid-column: 1 / -1;
        justify-content: space-around;
    }

    .download-card {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        padding: 15px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Account Manager */

.auth-layout {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 22px;
}

.auth-card,
.auth-help {
    min-height: 100%;
}

.auth-form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.auth-form input,
.auth-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    color: var(--text);
    background: var(--bg);
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--ruby-light);
    box-shadow: 0 0 0 3px rgba(168,46,72,.14);
}

.auth-form small {
    color: var(--muted);
    font-weight: 500;
}

.auth-help > p {
    color: var(--muted);
}

.login-reminder {
    margin-top: 25px;
    padding: 15px;
    border: 1px solid rgba(200,132,69,.4);
    border-radius: 8px;
    background: rgba(200,132,69,.07);
}

.login-reminder strong {
    color: var(--copper-light);
}

.login-reminder p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.site-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

.site-alert.success {
    border-color: rgba(61,221,152,.5);
    color: #b9f9dc;
    background: rgba(61,221,152,.09);
}

.site-alert.error {
    border-color: rgba(240,109,120,.55);
    color: #ffd0d5;
    background: rgba(240,109,120,.1);
}

.site-alert.notice {
    border-color: rgba(200,132,69,.5);
    color: var(--copper-light);
    background: rgba(200,132,69,.08);
}

.account-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.account-heading p {
    margin: 0;
    color: var(--muted);
}

.account-heading p strong {
    color: var(--ivory);
}

.account-logout {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(240,109,120,.48);
    border-radius: 7px;
    color: #ffc3c9;
    background: rgba(240,109,120,.08);
    font-weight: 800;
    cursor: pointer;
}

.account-logout:hover {
    border-color: var(--red);
    color: white;
}

.account-stats {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.account-stats article {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}

.account-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-stats strong {
    margin-top: 7px;
    display: block;
    color: var(--ivory);
    font: 750 29px Georgia, serif;
}

.account-stats .account-date {
    font-size: 22px;
}

.table-action {
    padding: 6px 10px;
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.table-action:hover {
    border-color: var(--copper);
    color: var(--copper-light);
}

.account-settings {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.account-settings .portal-panel {
    margin-top: 0;
}

@media (max-width: 900px) {
    .auth-layout,
    .account-settings {
        grid-template-columns: 1fr;
    }

    .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .account-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-stats {
        grid-template-columns: 1fr 1fr;
    }

    .account-stats article {
        padding: 16px;
    }

    .account-stats strong {
        font-size: 24px;
    }
}

.create-character-panel {
    margin-top: 22px;
}

.character-manager-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
}

.character-manager-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.character-manager-form input,
.character-manager-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    color: var(--text);
    background: var(--bg);
}

.character-manager-form input:focus,
.character-manager-form select:focus {
    border-color: var(--ruby-light);
    box-shadow: 0 0 0 3px rgba(168,46,72,.14);
}

.character-manager-form .wide-field {
    grid-column: span 2;
}

.create-character-button {
    width: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    box-shadow: 0 0 0 1000px var(--bg) inset;
    transition: background-color 9999s ease-out;
}

@media (max-width: 1000px) {
    .character-manager-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .character-manager-form {
        grid-template-columns: 1fr;
    }

    .character-manager-form .wide-field {
        grid-column: auto;
    }
}

[hidden] {
    display: none !important;
}

.scheduled-deletion {
    opacity: .72;
    background: rgba(240,109,120,.045);
}

.scheduled-deletion .character-link strong {
    text-decoration: line-through;
}

.deletion-status {
    color: #ffb8be;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.character-actions {
    position: relative;
    min-width: 95px;
}

.character-actions summary {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    list-style: none;
}

.character-actions summary::-webkit-details-marker {
    display: none;
}

.character-actions[open] summary {
    border-color: var(--copper);
    color: var(--copper-light);
}

.character-actions > div {
    min-width: 230px;
    margin-top: 8px;
    padding: 12px;
    position: absolute;
    z-index: 15;
    right: 0;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
}

.character-actions form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

.character-actions input[type="password"] {
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    color: var(--text);
    background: var(--bg);
    font-size: 11px;
}

.character-actions input[type="password"]:focus {
    border-color: var(--ruby-light);
}

.table-action.delete {
    border-color: rgba(240,109,120,.5);
    color: #ffc1c7;
    background: rgba(240,109,120,.09);
}

.table-action.restore {
    border-color: rgba(61,221,152,.45);
    color: #aef5d5;
    background: rgba(61,221,152,.08);
    cursor: pointer;
}

.table-action:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.character-actions > div {
    position: static;
}

.character-actions[open] {
    min-width: 230px;
}

.portal-hero {
    min-height: 480px;
    grid-template-columns: minmax(0, 900px);
}

.portal-hero .hero-content {
    max-width: 900px;
}

.page-home .portal-hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 11, 20, .96) 0%,
            rgba(7, 11, 20, .88) 35%,
            rgba(7, 11, 20, .48) 65%,
            rgba(7, 11, 20, .18) 100%
        ),
        url("/assets/village-classic-hero.webp");
    background-position: center center;
    background-size: cover;
}

.page-home .portal-hero::after {
    display: none;
}

.page-home .hero-content h1,
.page-home .hero-content p {
    text-shadow: 0 3px 18px rgba(0, 0, 0, .75);
}

@media (max-width: 700px) {
    .page-home .portal-hero {
        background-image:
            linear-gradient(
                rgba(7, 11, 20, .82),
                rgba(7, 11, 20, .93)
            ),
            url("/assets/village-classic-hero.webp");
        background-position: 58% center;
    }
}

.profile-details > div:last-child {
    grid-column: 1 / -1;
}

.character-grid + .portal-panel {
    margin-top: 22px;
}

.auth-links {
    margin-top: 20px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-top: 1px solid var(--line);
}

.auth-links a {
    color: var(--copper-light);
    font-size: 13px;
    font-weight: 700;
}

.auth-links a:hover {
    color: var(--ivory);
}

.auth-result {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.auth-result .site-alert {
    margin-bottom: 22px;
}

/* Village Points */

.points-stat {
    position: relative;
}

.points-stat a {
    margin-top: 5px;
    color: var(--copper-light);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.points-stat a:hover {
    color: var(--ivory);
}

.points-heading {
    align-items: end;
}

.points-balance {
    min-width: 190px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    text-align: center;
}

.points-balance span {
    display: block;
    color: var(--text-muted);
    font-size: 1212px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.points-balance strong {
    display: block;
    margin-top: 4px;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 32px;
}

.points-packages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.points-package {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.points-package h2 {
    margin: 4px 0 8px;
}

.points-package p {
    color: var(--text-muted);
}

.points-amount {
    margin-top: 14px;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
}

.points-amount small {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
}

.points-bonus {
    min-height: 22px;
    margin: 4px 0 16px;
    color: var(--copper-light);
    font-size: 13px;
    font-weight: 800;
}

.points-price {
    margin-top: auto;
    margin-bottom: 16px;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
}

.points-package form,
.points-package .portal-button {
    width: 100%;
}

.points-history {
    margin-top: 22px;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
    text-align: left;
}

.payment-details > div {
    padding: 16px;
    background: var(--panel);
}

.payment-details dt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.payment-details dd {
    margin: 6px 0 0;
    color: var(--ivory);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.payment-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 1050px) {
    .points-packages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .points-packages,
    .payment-details {
        grid-template-columns: 1fr;
    }

    .points-balance {
        width: 100%;
    }

    .payment-result-actions .portal-button {
        width: 100%;
    }
}

/* Correção do saldo na página de Village Points */

.page-heading.points-heading > .points-balance {
    flex: 0 0 auto;
    min-width: 190px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    text-align: center;
}

.page-heading.points-heading > .points-balance > span {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-heading.points-heading > .points-balance > strong {
    display: block;
    margin: 4px 0;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.page-heading.points-heading > .points-balance > small {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .page-heading.points-heading > .points-balance {
        width: 100%;
    }
}

/* Exibe a escolha de arma somente para Knight */

label#knight-weapon-field[hidden] {
    display: none !important;
}

/* Premium Account */

.premium-store {
    margin-top: 24px;
}

.premium-packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.premium-package {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(227, 161, 88, .08),
            transparent 55%
        ),
        var(--surface);
}

.premium-days {
    display: block;
    margin: 10px 0 6px;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
}

.premium-cost {
    margin-bottom: 18px;
    color: var(--copper-light);
    font-size: 14px;
    font-weight: 800;
}

.premium-package form,
.premium-package .portal-button {
    width: 100%;
}

.premium-package form {
    margin-top: auto;
}

.premium-package button:disabled {
    cursor: not-allowed;
    opacity: .45;
    box-shadow: none;
}

@media (max-width: 800px) {
    .premium-packages {
        grid-template-columns: 1fr;
    }
}
