:root {
  --blood: #123f60;
  --blood-dark: #061a2c;
  --gold: #d8a53b;
  --gold-light: #f3d88f;
  --ink: #342418;
  --parchment: #d9c18a;
  --parchment-light: #ead8aa;
  --stone: #5c5a53;
  --shadow: rgba(12, 3, 0, .68);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: #eee6d1;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  background-color: #050a0d;
  background-image:
    linear-gradient(to bottom,
      rgba(3, 10, 14, .04) 0%,
      rgba(3, 10, 14, .08) 42%,
      rgba(5, 24, 36, .48) 62%,
      rgba(4, 18, 28, .82) 100%),
    url("assets/background-clean.webp");
  background-position: center, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.masthead {
  position: relative;
  height: clamp(190px, 24vw, 310px);
  overflow: hidden;
  border-bottom: 3px solid #bd8430;
  background: linear-gradient(180deg, rgba(2, 9, 13, .02), rgba(2, 9, 13, .58));
  box-shadow: 0 5px 16px #000;
}

.masthead::before {
  content: none;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 4, .38) 82%, rgba(5, 5, 4, .82));
}

.masthead__art {
  display: none;
}

.masthead__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { position: absolute; right: 6%; bottom: 36px; color: inherit; text-decoration: none; filter: drop-shadow(2px 3px 2px #000); }

.brand__version {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #4b9ec7;
  color: #bfeaff;
  background: rgba(4, 20, 35, .88);
  font: 700 .9rem Georgia, serif;
  letter-spacing: .06em;
}

.mobile-menu { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.statusbar { background: #050d14; border-bottom: 1px solid #315d73; color: #c5d9df; }
.statusbar__inner { max-width: 1050px; margin: auto; min-height: 38px; padding: 8px 24px; display: flex; gap: 30px; justify-content: flex-end; align-items: center; font-size: .8rem; }
.statusbar__inner span:first-child { margin-right: auto; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #75c548; box-shadow: 0 0 7px #75c548; }

.site-shell { width: min(1050px, calc(100% - 28px)); margin: 22px auto 36px; display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }

.sidebar {
  padding: 8px;
  border: 2px solid #1b150e;
  outline: 1px solid #376b84;
  background: linear-gradient(90deg, rgba(38,52,58,.96), rgba(24,38,46,.96) 48%, rgba(42,59,67,.96));
  box-shadow: 0 8px 18px var(--shadow);
}

.nav-list { border: 1px solid #071923; background: rgba(7, 24, 34, .55); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.nav-link { display: block; margin: 0; padding: 12px 10px; border: 0; border-bottom: 1px solid rgba(81, 132, 155, .28); color: #ded5bc; text-decoration: none; font-size: .86rem; background: linear-gradient(90deg, rgba(0,0,0,.2), transparent); position: relative; }
.nav-link:last-child { border-bottom: 0; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: #e3f7ff; border-color: #41738a; background: linear-gradient(90deg, #123f60, #1e3039); outline: none; }

.sidebar-card { margin-top: 14px; padding: 13px 10px; text-align: center; border: 1px solid #77633c; background: #181611; color: #a89e84; }
.sidebar-card__label { display: block; font-size: .75rem; text-transform: uppercase; }
.sidebar-card strong { display: block; margin: 4px; color: #f3a13b; font: 700 1.65rem Georgia, serif; }
.sidebar-card span:last-child { font-size: .72rem; }

.content-frame { min-width: 0; padding: 12px; border: 2px solid #0b1820; outline: 1px solid #3f7893; background: rgba(27, 43, 51, .94); box-shadow: 0 8px 18px var(--shadow); backdrop-filter: blur(3px); }
.notice { margin-bottom: 11px; padding: 9px 12px; border: 1px solid #745519; color: #2d2415; background: #e0c56f; font-size: .77rem; line-height: 1.5; }
.page { display: none; }
.page.active { display: block; animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(3px); } }

.page-title { min-height: 47px; padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid #051624; background: linear-gradient(#1a567c, #082940); box-shadow: inset 0 1px rgba(255,255,255,.14); }
.page-title h1 { margin: 0; color: #d4f0fb; font: 700 1.35rem Georgia, serif; text-shadow: 1px 2px #03111b; }
.page-title__ornament { color: #6db9d7; font-size: .65rem; }

.parchment { color: var(--ink); border: 1px solid #6f572d; background: linear-gradient(rgba(255,255,255,.1), transparent 70%), repeating-linear-gradient(95deg, rgba(90,55,18,.025) 0 1px, transparent 1px 7px), var(--parchment); box-shadow: inset 0 0 28px rgba(104,65,19,.22); }
.intro-card { margin-top: 11px; padding: 28px 32px; text-align: center; }
.lead { max-width: 650px; margin: 0 auto; font: 1.15rem/1.75 Georgia, serif; }
.quick-actions { margin-top: 23px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.home-grid { margin-top: 11px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 11px; }
.panel { padding: 21px 24px; }
.panel h2, .download-card h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #a38751; color: #154d69; font: 700 1.2rem Georgia, serif; }
.news-item time { color: #785e31; font-size: .76rem; font-weight: 700; }
.news-item h3 { margin: 5px 0 8px; font: 700 1rem Georgia, serif; }
.news-item p, .form-card > p, .download-card p { line-height: 1.65; }
.world-card dl { margin: 0; }
.world-card dl div { padding: 7px 0; display: flex; justify-content: space-between; border-bottom: 1px dotted #9b7b45; }
.world-card dt { font-weight: 700; }
.world-card dd { margin: 0; }
.online { color: #30620f; font-weight: 700; }

.guild-kill-ranking { margin-top: 11px; }
.guild-kill-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.guild-kill-heading h2 { flex: 1; }
.guild-kill-list { margin: 0; padding: 0; list-style: none; border: 1px solid #8f7445; }
.guild-kill-list li { min-height: 52px; padding: 8px 14px 8px 9px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #ad9565; background: rgba(255,255,255,.08); }
.guild-kill-list li:last-child { border-bottom: 0; }
.guild-kill-list li:nth-child(2) { background: rgba(255,255,255,.16); }
.guild-position { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #4a8bab; border-radius: 50%; color: #e0f7ff; background: #0e3f5c; font: 700 .88rem Georgia, serif; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.guild-kill-list li:first-child .guild-position { border-color: #c79832; color: #fff1bd; background: #79510c; }
.guild-kill-list li:nth-child(2) .guild-position { border-color: #9ba5aa; color: #f3f5f6; background: #59646a; }
.guild-kill-list li:nth-child(3) .guild-position { border-color: #a56a3a; color: #ffe2c7; background: #6c3b21; }
.guild-rank-name { color: #154d69; font-family: Georgia, serif; font-weight: 700; }
.guild-kill-list strong { color: #173d50; font-size: 1rem; }
.guild-kill-list small { color: #70593a; font-size: .68rem; font-weight: 400; text-transform: uppercase; }

.stone-button { min-height: 43px; padding: 10px 22px; border: 1px solid #061b28; outline: 1px solid #5590aa; color: #dff6ff; background: linear-gradient(#2b7099, #124566 52%, #082b43); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 2px 3px rgba(0,0,0,.35); font-weight: 700; cursor: pointer; }
.stone-button:hover, .stone-button:focus-visible { filter: brightness(1.18); outline: 2px solid #73c1df; }
.text-button { padding: 10px 8px; border: 0; color: #125174; background: none; text-decoration: underline; font-weight: 700; cursor: pointer; }

.form-card { margin-top: 11px; padding: 25px clamp(20px, 5vw, 48px) 31px; }
.form-card form { max-width: 620px; margin-top: 22px; }
.field { margin-bottom: 17px; }
.field label, .ranking-tools label { display: block; margin-bottom: 6px; color: #4b2d12; font-weight: 700; font-size: .85rem; }
.field input, .field select, .field textarea, .ranking-tools select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #745a2c; border-radius: 0; color: #25180d; background: #f0e1b8; box-shadow: inset 1px 2px 3px rgba(80,48,13,.2); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .ranking-tools select:focus { outline: 2px solid #17648c; outline-offset: 1px; }
.field small { display: block; margin-top: 5px; color: #70593a; font-size: .74rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 20px; font-size: .82rem; }
.check-row input { width: 17px; height: 17px; accent-color: #17648c; }
.form-message { min-height: 22px; margin: 0 0 10px; font-size: .82rem; font-weight: 700; }
.form-message.error { color: #8d1309; }
.form-message.success { color: #315f16; }

.ranking-tools { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ranking-tools > div { width: min(280px, 100%); }
.demo-label { color: #785e31; font-size: .72rem; font-style: italic; }
.table-wrap { overflow-x: auto; border: 1px solid #6e5428; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { padding: 10px 12px; text-align: left; color: #d9f2fc; background: #0d4262; font: 700 .82rem Georgia, serif; }
td { padding: 11px 12px; border-bottom: 1px solid #ae9562; font-size: .84rem; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.12); }
tbody tr:first-child td { color: #114f70; font-weight: 700; }

.death-list-heading { margin-bottom: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.death-list-heading p { margin: 0; line-height: 1.5; }
.death-table td:last-child { font-weight: 700; color: #5f261d; }
.integration-note { margin: 14px 0 0; color: #70593a; font-size: .76rem; line-height: 1.5; }

.guild-layout { margin-top: 11px; display: grid; gap: 11px; }
.guild-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.guild-section-heading h2 { margin-bottom: 5px; }
.guild-section-heading p { margin: 0 0 16px; color: #624f32; font-size: .84rem; }
.guild-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.guild-item { min-width: 0; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid #9a7b48; background: rgba(255,255,255,.13); }
.guild-crest { flex: 0 0 43px; width: 43px; height: 48px; display: grid; place-items: center; color: #dff6ff; background: linear-gradient(#246b91, #0a3450); clip-path: polygon(50% 0, 92% 15%, 84% 74%, 50% 100%, 16% 74%, 8% 15%); font: 700 .7rem Georgia, serif; }
.guild-item h3 { margin: 0 0 4px; color: #154d69; font: 700 .95rem Georgia, serif; }
.guild-item p { margin: 0; color: #6b5738; font-size: .72rem; line-height: 1.45; }
.guild-access-card { padding-inline: clamp(20px, 5vw, 48px); }
.guild-access-card > div { max-width: 620px; }
.guild-access-card form { margin-top: 20px; }
.preview-warning { padding: 8px 10px; border-left: 3px solid #317da3; color: #5f4a2d; background: rgba(34, 112, 151, .1); font-size: .76rem; }
.logged-account { margin-bottom: 16px; padding-bottom: 11px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #a38751; color: #315f16; font-size: .8rem; font-weight: 700; }
.logged-account .text-button { padding: 4px; font-size: .8rem; }

.download-card { margin-top: 11px; padding: clamp(25px, 6vw, 50px); display: grid; grid-template-columns: 130px 1fr; gap: 32px; align-items: center; }
.client-emblem { width: 120px; height: 120px; display: grid; place-items: center; border: 5px double #72b6d2; border-radius: 50%; color: #d9f5ff; background: radial-gradient(circle, #28779e, #082b43 70%); box-shadow: 0 7px 12px rgba(8,30,42,.5); font: 900 4rem Georgia, serif; text-shadow: 3px 3px #031825; }
.download-card ul { padding-left: 20px; line-height: 1.8; font-size: .86rem; }
.download-note { margin-bottom: 0; color: #725b38; font-size: .76rem; }

footer { padding: 20px; color: #847c69; text-align: center; font-size: .7rem; line-height: 1.7; }
footer p { margin: 2px; }

@media (max-width: 760px) {
  body { background-position: center, 30% top; }
  .masthead { height: clamp(160px, 46vw, 230px); }
  .masthead__inner { height: 100%; }
  .masthead__inner { padding: 16px; }
  .masthead__art { object-position: center; }
  .brand { right: 12px; bottom: 14px; }
  .brand__version { padding: 5px 9px; font-size: .72rem; }
  .mobile-menu { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: block; padding: 7px 10px; border: 1px solid #4d9abc; color: #d9f5ff; background: rgba(5, 30, 46, .92); font-size: 1.25rem; }
  .statusbar__inner { padding: 8px 14px; justify-content: space-between; }
  .statusbar__inner span:nth-child(n+3) { display: none; }
  .site-shell { width: min(100% - 16px, 700px); margin-top: 10px; display: block; }
  .sidebar { display: none; margin-bottom: 10px; }
  .sidebar.open { display: block; }
  .sidebar-card { display: none; }
  .content-frame { padding: 7px; }
  .home-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .intro-card { padding: 24px 18px; }
  .quick-actions { flex-direction: column; }
  .guild-kill-heading { display: block; }
  .guild-kill-heading .demo-label { display: block; margin: -8px 0 13px; }
  .death-list-heading { display: block; }
  .death-list-heading .demo-label { display: block; margin-top: 7px; }
  .guild-section-heading { display: block; }
  .guild-section-heading .demo-label { display: block; margin-bottom: 12px; }
  .guild-list { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .client-emblem { margin: auto; }
  .download-card ul { display: inline-block; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
}

#delete-character-dialog { width: min(460px, calc(100% - 32px)); color: #392716; }
#delete-character-dialog::backdrop { background: rgba(0,0,0,.65); }

.character-link { border: 0; background: transparent; color: #673615; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.character-link:hover { color: #9a491e; }
#character-profile-dialog { width: 100%; box-sizing: border-box; color: #392716; }

#profile-details { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px 16px; }
#profile-details dt { font-weight: bold; } #profile-details dd { margin: 0; overflow-wrap: anywhere; }
.profile-deaths-scroll { overflow-x: auto; margin-bottom: 18px; } .profile-deaths-scroll table { width: 100%; }

.account-login-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.account-login-actions .stone-button { width: auto; min-height: 34px; padding: 7px 15px; font-size: 13px; }

#home-news-status[hidden], #home-top-guilds[hidden] { display: none; }
.character-delete-link { font-size: .8em; padding: 4px 8px; margin-left: 8px; }
.account-create-character { min-height: 30px; padding: 7px 15px; font-size: .7em; }

/* Azul translúcido em painéis e campos. */
.content-frame { background: rgba(8, 28, 45, .42); backdrop-filter: blur(2px); }
.parchment { color: #e2f2fb; border-color: rgba(107, 178, 218, .48); background: linear-gradient(135deg, rgba(35, 99, 141, .56), rgba(10, 40, 66, .62)); box-shadow: inset 0 1px rgba(190, 226, 248, .13), 0 5px 16px rgba(0, 12, 25, .2); }
.notice { color: #e2f2fb; border-color: #5684a1; background: rgba(29, 82, 119, .64); }
.panel h2, .download-card h2, .guild-item h3, .guild-rank-name, .guild-kill-list strong { color: #d3efff; border-color: rgba(118, 179, 214, .4); }
.news-item time, .field small, .demo-label, .guild-kill-list small, .integration-note, .guild-section-heading p, .guild-item p, .download-note { color: #bdd6e8; }
.field label, .ranking-tools label { color: #deeffa; }
.field input, .field select, .field textarea, .ranking-tools select { color: #f0f8ff; background: rgba(7, 35, 59, .65); border-color: rgba(117, 177, 215, .65); box-shadow: inset 1px 2px 4px rgba(0, 14, 28, .2); color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder { color: #acc6d9; }
.field select option, .ranking-tools select option { background: #14344e; color: #f0f8ff; }
.text-button, .character-link { color: #aee2ff; }
.character-link:hover { color: #edf9ff; }
.logged-account { color: #a7eac1; border-color: rgba(118, 179, 214, .4); }
.form-message.error { color: #ffb6aa; } .form-message.success, .online { color: #b2edbc; }
tbody tr:first-child td, .death-table td:last-child { color: #d3efff; }
td, .guild-kill-list li, .guild-item { border-color: rgba(118, 179, 214, .35); }
.guild-item, tbody tr:nth-child(even) { background: rgba(74, 140, 185, .12); }
.preview-warning { color: #c9dfef; background: rgba(30, 92, 137, .25); }
#delete-character-dialog, #character-profile-dialog { color: #e2f2fb; }

.character-level-dash { display: inline-block; width: .5em; transform: scaleX(.5); transform-origin: left center; vertical-align: baseline; }

.server-highlights { margin-top: 20px; }
.server-highlights section { padding: 15px 0; border-top: 1px solid rgba(118, 179, 214, .3); }
.server-highlights h4 { margin: 0 0 8px; color: #d3efff; font: 700 1rem Georgia, serif; }
.server-highlights p { margin: 0; line-height: 1.65; }
.server-highlights .roulette-intro { margin-top: 12px; }
.roulette-rewards { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; }
.roulette-rewards li::marker { color: #8ecdef; }

.server-highlights p + p { margin-top: 10px; }
.roulette-rewards li { padding: 6px 0; }
.roulette-rewards li strong { display: block; color: #d3efff; }
.roulette-rewards li span { display: block; color: #c4dcec; font-size: .9em; line-height: 1.55; }

.server-highlights .news-team-invite { margin-top: 16px; padding: 14px; border: 1px solid rgba(118, 179, 214, .35); background: rgba(41, 113, 161, .18); text-align: center; color: #d3efff; font-weight: bold; }

.news-welcome { text-align: center; font-size: 1.05rem; line-height: 1.7; margin: 8px auto 20px; max-width: 640px; }
.roulette-rewards li span strong { display: inline; font-size: inherit; }

/* Notícias: largura uniforme e leitura alinhada. */
#serverinfo .news-item { width: 100%; min-width: 0; box-sizing: border-box; }
#serverinfo .news-welcome { max-width: none; width: 100%; font-size: .9rem; line-height: 1.6; text-align: center; }
#serverinfo .server-highlights { width: 100%; box-sizing: border-box; }
#serverinfo .server-highlights section { width: 100%; box-sizing: border-box; }
#serverinfo .server-highlights section p { text-align: justify; overflow-wrap: break-word; }
#donate .roulette-rewards { padding-left: 20px; margin-right: 0; }
#donate .roulette-rewards li { padding-right: 0; overflow-wrap: break-word; }
#donate .roulette-rewards li span { text-align: justify; }
#serverinfo .server-highlights .news-team-invite { box-sizing: border-box; width: 100%; text-align: center; }

@media (max-width: 600px) { #serverinfo .server-highlights section p, #donate .roulette-rewards li span { text-align: left; } }

#serverinfo .news-welcome, #serverinfo .server-highlights section p, #donate .roulette-rewards li span, #serverinfo .news-team-invite { font-size: 1rem; line-height: 1.7; }
#serverinfo .news-welcome { white-space: normal; text-wrap: balance; }
#serverinfo .server-highlights h4, #donate .roulette-rewards li > strong { font-size: 1rem; }

#serverinfo .world-card { font-size: 1rem; line-height: 1.7; }
#serverinfo .world-card h3 { font-size: 1rem; color: #d3efff; }
#serverinfo .world-card .server-rates-heading { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(118, 179, 214, .3); }
#serverinfo .world-card dt, #serverinfo .world-card dd, #serverinfo .world-card p { font-size: 1rem; }

#serverinfo .world-card, #serverinfo .world-card h3, #serverinfo .world-card dt, #serverinfo .world-card dd, #serverinfo .world-card p { font-size: .75rem; }

#serverinfo .server-info-box, #serverinfo .server-highlights section { padding: 14px; margin: 0 0 14px; border: 1px solid rgba(118, 179, 214, .35); background: rgba(41, 113, 161, .18); box-sizing: border-box; }
#serverinfo .server-info-box dl { margin: 0; }
#serverinfo .server-info-box h3 { margin: 0 0 10px; }
#serverinfo .world-card dl > div { border-bottom: 0; }

.home-intro-title { text-align: center; margin-bottom: 16px; font-weight: 700; text-wrap: balance; }
#home-intro { text-align: center; text-wrap: balance; }

/* Fonte medieval local, disponível sem serviços externos. */
@font-face { font-family: 'MirtOT Medieval'; src: url('assets/fonts/Cinzel.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6,
.brand, .brand *, .lead, .page-title h1, .panel h2, .download-card h2,
.guild-rank-name, .guild-item h3, .guild-position, .guild-crest, .client-emblem,
.sidebar-card strong, th, .server-highlights h4, .character-link {
  font-family: 'MirtOT Medieval', Georgia, serif;
}
input, textarea { text-transform: none; }

/* Textos legíveis com títulos medievais. */
@font-face { font-family: 'MirtOT Reading'; src: url('assets/fonts/Alegreya.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
body, p, li, dt, dd, label, small, time, td, th, input, select, textarea, button,
.lead, .character-link, .sidebar-card strong, .form-message {
  font-family: 'MirtOT Reading', Georgia, serif;
}
h1, h2, h3, h4, h5, h6, .nav-link, .brand, .brand *, .page-title h1,
.panel h2, .download-card h2, .guild-item h3, .server-highlights h4,
.guild-rank-name, .guild-position, .guild-crest, .client-emblem {
  font-family: 'MirtOT Medieval', Georgia, serif;
}

/* Alegreya em toda a interface. */
html, body, body * { font-family: 'MirtOT Reading', Georgia, serif !important; }

.nav-link { font-size: .989rem; }

.statusbar__inner > span:first-child { font-size: .96rem; }

/* Verdana em toda a interface. */
html, body, body * { font-family: Verdana, Geneva, sans-serif !important; }
h1, h2, h3, h4, h5, h6, .nav-link, .home-intro-title { font-weight: 700 !important; }

.download-card { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
.download-logo { width: 200px; height: 104px; background-image: url('assets/background-clean.webp'); background-repeat: no-repeat; background-size: 966px 587px; background-position: -743px -44px; }
@media (max-width: 700px) { .download-card { grid-template-columns: 1fr; } .download-logo { margin: 0 auto; } }

.download-logo { width: 200px; height: auto; max-width: 100%; background: none; object-fit: contain; }

#profile-title { text-decoration: none; font-weight: 700; }

/* Informações do servidor em duas colunas. */
#serverinfo .world-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: stretch;
}
#serverinfo .world-card .server-info-box { margin: 0; min-width: 0; }
#serverinfo .world-card dl > div { gap: 12px; }
#serverinfo .world-card dd { flex-shrink: 0; }
@media (max-width: 700px) {
  #serverinfo .world-card { grid-template-columns: minmax(0, 1fr); }
}

.server-save { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(118, 179, 214, .35); }
.server-save .server-save-label { display: block; font-size: .75rem; }
.server-save #server-save-countdown { display: block; margin-top: 6px; font-size: 1.2rem; font-weight: bold; color: #f3a13b; font-variant-numeric: tabular-nums; }

.raid-schedule { display: grid; gap: 12px; }
.raid-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border: 1px solid rgba(118, 179, 214, .35); background: rgba(41, 113, 161, .18); }
#raids .raid-day h2 { margin: 0; font-size: .95rem; }
.raid-day ul { list-style: none; padding: 0; margin: 0; }
.raid-day li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.raid-day time { color: #ffffff; font-size: .8em; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .raid-day { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.raid-day li > span, .raid-day time { font-style: italic; }

.character-success-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10000; width: max-content; max-width: calc(100vw - 32px);
  box-sizing: border-box; padding: 13.5px 18px; border-radius: 6px;
  border: 1px solid #f3a13b; background: #123044; color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5); text-align: center;
  font-size: .7125rem; font-weight: bold; pointer-events: none;
}

.character-success-toast.character-toast-success {
  background: rgba(25, 125, 61, .78);
  border-color: rgba(111, 222, 145, .8);
}
.character-success-toast.character-toast-error {
  background: rgba(174, 35, 42, .78);
  border-color: rgba(255, 132, 138, .8);
}

#players-online-body td, #players-online-body .character-link { font-weight: 400 !important; }

.logged-account > span {
  display: inline-block; padding: 8px 11.2px; border-radius: 4px; font-size: .8em;
  background: rgba(25, 125, 61, .78); color: #ffffff;
  border: 1px solid rgba(111, 222, 145, .8);
}

.ranking-star { display: inline-block; margin-right: 7px; font-size: 1.1em; vertical-align: baseline; }
.ranking-star-gold { color: #f5c542; }
.ranking-star-silver { color: #c9d1d9; }
.ranking-star-bronze { color: #cd8c52; }

#ranking-body .ranking-star { width: 1.1em; text-align: center; }

#ranking-body td, #ranking-body .character-link,
#deaths-body td, #deaths-body .character-link,
#profile-deaths td, #profile-deaths .character-link { font-weight: 400 !important; }
#ranking .ranking-medal-heading, #ranking-body .ranking-medal-cell { width: 38px; padding-left: 0; padding-right: 0; text-align: center; }
#ranking-body .ranking-star { width: 1.1em; margin: 0; font-size: 1.1em; font-weight: 400 !important; line-height: 1; }

.guild-summary-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 16px; margin-top: 12px; border: 1px solid rgba(118,179,214,.35); background: rgba(41,113,161,.18); }
.guild-name-link { border: 0; padding: 0; background: none; color: #f3a13b; font-size: 1rem; font-weight: bold; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.guild-name-link:hover { text-decoration: underline; }
.guild-summary-leader { grid-column: 1; font-size: .85rem; }
.guild-member-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 8px 12px; background: rgba(0,0,0,.2); border-radius: 4px; font-size: .8rem; white-space: nowrap; }
#guild-members-body td, #guild-members-body .character-link { font-weight: 400 !important; }
@media(max-width:500px){ .guild-summary-card { grid-template-columns: minmax(0,1fr); } .guild-member-count { grid-column: 1; grid-row: auto; justify-self: start; } }

.account-character-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.account-character-actions .stone-button { width: 160px; max-width: calc(50% - 6px); min-height: 30px; padding: 7px 15px; font-size: .7em; }
.account-character-actions #my-guild-button { margin-left: auto; }
.account-character-actions #my-guild-button[hidden] { display: none; }

.guild-logo { width: 128px; height: 128px; object-fit: contain; border-radius: 5px; margin-bottom: 12px; }
#real-guilds .guild-summary-card { grid-template-columns: 80px minmax(0,1fr) auto; align-items: center; }
#real-guilds .guild-logo { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 64px; margin: 0; }
#real-guilds .guild-name-link, #real-guilds .guild-summary-leader { grid-column: 2; }
#real-guilds .guild-member-count { grid-column: 3; }
@media(max-width:500px){#real-guilds .guild-summary-card {grid-template-columns:64px minmax(0,1fr);}#real-guilds .guild-member-count{grid-column:2;grid-row:auto;}}

/* Cada guild ocupa uma linha inteira, com espaço para o nome. */
#real-guilds { grid-template-columns: minmax(0, 1fr); gap: 12px; }
#real-guilds .guild-summary-card { margin-top: 0; grid-template-columns: 80px minmax(0, 1fr) auto; }
#real-guilds .guild-name-link { grid-row: 1; min-width: 0; white-space: normal; word-break: normal; overflow-wrap: break-word; }
#real-guilds .guild-summary-leader { grid-row: 2; min-width: 0; }
@media (max-width: 500px) {
  #real-guilds .guild-summary-card { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
  #real-guilds .guild-member-count { grid-column: 2; grid-row: 3; justify-self: start; }
}

#create-guild-section[hidden] { display: none; }

.guild-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
#guild-description { width: 100%; box-sizing: border-box; resize: vertical; }

#real-guilds .guild-summary-description { grid-column: 2 / -1; grid-row: 3; margin: 4px 0 0; font-size: .85rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:500px){ #real-guilds .guild-summary-description { grid-column: 1 / -1; grid-row: 4; } }

.guild-profile-intro { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 18px; }
.guild-profile-intro .guild-logo { margin: 0; }
.guild-profile-intro .guild-description { margin: 0; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:500px){ .guild-profile-intro { grid-template-columns: minmax(0,1fr); gap: 14px; } }

.my-guild-brand #my-guild-title { font-size: 1.6rem; color: #f3a13b; margin: 0 0 20px; font-weight: 700 !important; overflow-wrap: anywhere; }
.my-guild-brand #my-guild-logo { margin-bottom: 16px; }

.my-guild-brand-grid { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
.my-guild-logo-editor, .my-guild-description-editor { min-width: 0; }
.my-guild-logo-editor input[type="file"] { width: 100%; box-sizing: border-box; }
.my-guild-description-editor textarea { min-height: 180px; }
@media(max-width:650px){ .my-guild-brand-grid { grid-template-columns: minmax(0,1fr); } }

/* Fonte medieval local aplicada somente aos nomes das guilds. */
html body #my-guild-title,
html body #real-guilds .guild-name-link,
html body #guild-profile-title {
  font-family: 'MirtOT Medieval', Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: .035em;
}

#online-count, .server-save #server-save-countdown { color: #90ce66; }

/* Espaçamentos e dimensões consistentes em todas as páginas. */
.content-frame { min-width: 0; }
.page > .parchment, #my-guild-management > .parchment { width: 100%; margin-top: 16px; }
.page > .panel, .page > .form-card, .page > .intro-card,
#my-guild-management > .panel, #my-guild-management > .form-card { padding: 24px; }
.form-card form { max-width: none; margin-top: 16px; }
.parchment h2 { margin-top: 0; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { line-height: 1.4; }
.field input, .field select, .ranking-tools select { min-height: 42px; font-size: .85rem; }
.field input, .field select, .field textarea { box-sizing: border-box; }
.field label > input, .field label > select { display: block; margin-top: 6px; }
.field small { line-height: 1.5; }
.form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stone-button { min-height: 40px; padding: 9px 18px; font-size: .82rem; line-height: 1.3; vertical-align: middle; }
.account-character-actions .stone-button { min-height: 34px; padding: 8px 14px; font-size: .75rem; }
.form-message:empty { display: none; }
.table-wrap { width: 100%; }
th, td { vertical-align: middle; }
#my-guild-management { display: grid; gap: 16px; }
#my-guild-management[hidden] { display: none; }
#my-guild-management > .parchment { margin-top: 0; }
#my-guild-management + .stone-button { margin-top: 16px; }
.my-guild-brand-grid { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: stretch; }
.my-guild-logo-editor { display: flex; flex-direction: column; }
.my-guild-logo-editor #my-guild-logo { flex: 1; min-height: 144px; margin-bottom: 16px; }
.my-guild-logo-editor form, .my-guild-description-editor form { margin-top: 0; }
.my-guild-description-editor form { display: flex; flex-direction: column; height: 100%; }
.my-guild-description-editor .field { display: flex; flex-direction: column; flex: 1; }
.my-guild-description-editor textarea { flex: 1; min-height: 210px; }
.my-guild-description-editor button { align-self: flex-start; }
#guild-invite-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
#guild-invite-form .field { margin: 0; }
#guild-invite-form > button { justify-self: start; grid-column: 1 / -1; }
#my-guild-members .guild-summary-card { grid-template-columns: minmax(0,1fr) minmax(110px,.75fr) minmax(0,1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 16px; }
#my-guild-members input, #my-guild-members select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; box-sizing: border-box; }
#my-guild-members strong { overflow-wrap: anywhere; font-size: .85rem; }
@media (max-width: 700px) {
 .page > .panel, .page > .form-card, .page > .intro-card, #my-guild-management > .parchment { padding: 18px; }
 .my-guild-brand-grid, #guild-invite-form, .form-row { grid-template-columns: minmax(0, 1fr); }
 .my-guild-logo-editor #my-guild-logo { min-height: auto; }
 .my-guild-description-editor textarea { min-height: 180px; }
 #my-guild-members .guild-summary-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}

#sidebar-top-guild { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; font-size: .75rem; line-height: 1.5; }
#sidebar-top-guild .guild-logo { width: 96px; height: 96px; margin: 0; }
#sidebar-top-guild .guild-name-link { text-align: center; font-family: 'MirtOT Medieval', Georgia, serif !important; font-size: .95rem; max-width: 100%; }
#sidebar-top-guild .top-guild-frags { color: #90ce66; font-size: .8rem; }

html body #my-guild-title, html body #guild-profile-title, html body .guild-name-link, html body .guild-name-text { color: #f3a13b; }

html body #profile-title { font-family: Verdana, Geneva, sans-serif !important; font-weight: 700 !important; letter-spacing: normal; }

html body #profile-title.player-online { color: #90ce66; }
html body #profile-title.player-offline { color: #f07878; }

#serverinfo .server-commands { margin-top: 16px; }
.server-commands td:first-child { white-space: nowrap; width: 150px; }
.server-commands code { color: #90ce66; }

#serverinfo .server-commands { padding: 14px; font-size: .75rem; }
.server-commands h3 { margin: 0 0 12px; font-size: .9rem; }
.server-commands-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
.server-command-item { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; min-width: 0; }
.server-command-item strong { color: #90ce66; font-size: .75rem; }
.server-command-item span { font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
@media(max-width:500px){ .server-commands-grid { grid-template-columns: minmax(0,1fr); } }

.server-commands-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
.server-command-item { display: grid; grid-template-columns: 130px minmax(0,1fr); align-items: baseline; gap: 14px; padding: 7px 0; }
@media(max-width:500px){ .server-command-item { grid-template-columns: 105px minmax(0,1fr); gap: 10px; } }

#serverinfo .server-commands, #serverinfo .server-commands h3, #serverinfo .server-command-item strong, #serverinfo .server-command-item span { font-family: Verdana, Geneva, sans-serif !important; font-size: .75rem; }

#serverinfo .server-command-item strong { color: #ffffff; }

.reward-tasks-panel, .reward-tasks-panel h2, .reward-tasks-panel p, .reward-tasks-panel span, .reward-tasks-panel strong { font-family: Verdana, Geneva, sans-serif !important; font-size: .75rem; }
.reward-tasks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reward-task-category { padding: 14px; border: 1px solid rgba(118,179,214,.35); background: rgba(41,113,161,.18); min-width: 0; }
.reward-tasks-panel .reward-task-category h2 { margin: 0 0 10px; padding-bottom: 8px; }
.reward-task-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 7px 0; line-height: 1.5; }
.reward-task-row span:last-child { text-align: right; }
.reward-tasks-note { line-height: 1.6; margin: 0 0 16px; }
.reward-tasks-grid + .reward-tasks-note { margin: 16px 0 0; }
@media(max-width:700px){ .reward-tasks-grid { grid-template-columns: minmax(0,1fr); } }

html body #online-count.server-offline { color: #f07878; font-size: 1.2rem; }

.online-count-link { display: block; text-decoration: none; }
.online-count-link:hover #online-count { text-decoration: none; }
.online-count-link:focus-visible { outline: 2px solid #90ce66; outline-offset: 3px; }

/* Menu acompanha a leitura no computador, com acesso a todas as caixas. */
@media (min-width: 761px) {
  .sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #41738a transparent;
  }
}
@media (max-width: 760px) {
  .sidebar { position: static; max-height: none; overflow: visible; }
}

.pvp-skull { width: 21.6px; height: 21.6px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; margin-right: 0; }

html body .statusbar__inner > span:first-child, html body #inicio-title { font-family: 'MirtOT Medieval', Georgia, serif !important; font-weight: 700; }

html body #inicio-title { font-style: italic; }

@media (min-width: 761px) { .masthead { height: calc(clamp(190px, 15vw, 220px) + 0.5cm); } }

/* Cabeçalho removido; modo PvP entre Server Save e Top Guild Frags. */
html body .pvp-card .pvp-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #c5d9df;
  font-family: 'MirtOT Medieval', Georgia, serif;
  font-size: .768rem;
  font-weight: 700;
}
@media (max-width: 760px) {
  .mobile-menu {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: 14px 14px 0;
  }
  .pvp-card { display: block; }
}

/* Mais respiro acima do layout no computador. */
@media (min-width: 761px) {
  .site-shell { margin-top: calc(clamp(48px, 8vh, 88px) + 1cm); }
}

/* Deslocamento lateral em telas com espaço suficiente. */
@media (min-width: 1120px) {
  .site-shell { position: relative; left: -0.5cm; }
}

/* Nomes de personagens em negrito, sem sublinhado. */
html body .character-link,
html body .character-link:hover,
html body .character-link:focus-visible {
  text-decoration: none;
  font-weight: 700 !important;
}

/* Martel no título de boas-vindas. */
@font-face {
  font-family: 'MirtOT Martel';
  src: url('assets/fonts/Martel-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
html body #inicio-title {
  font-family: 'MirtOT Martel', Georgia, serif !important;
  font-size: clamp(1.275rem, 1.875vw, 1.5rem);
  font-weight: 700 !important;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  letter-spacing: .015em;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 1px #03111b;
}

/* Logo original ao lado do texto de boas-vindas. */
html body #inicio-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
html body #inicio-title > span { font-family: inherit !important; }
.welcome-logo {
  display: block;
  width: clamp(75px, 9vw, 105px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .65));
}
@media (max-width: 480px) {
  html body #inicio-title { font-size: 1.0125rem; gap: 6px; }
}

/* Últimos 60 minutos antes do Server Save. */
html body .server-save #server-save-countdown.server-save-soon { color: #f07878; }

/* Fundo fixo no celular, independente da altura do conteúdo. */
@media (max-width: 760px) {
  body {
    position: relative;
    isolation: isolate;
    background-image: none;
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    background-color: #050a0d;
    background-image:
      linear-gradient(to bottom, rgba(3, 10, 14, .08), rgba(4, 18, 28, .72)),
      url('assets/background-clean.webp');
    background-position: center, center top;
    background-size: cover, cover;
    background-repeat: no-repeat;
  }
}

/* Estrelas metálicas nos três primeiros lugares do Ranking. */
#ranking-body img.ranking-star {
  width: 13px;
  height: 13px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0;
}

/* Brasão MirtOT RPG acima de Início no menu. */
.sidebar-brand {
  display: block;
  margin: 0 0 10px;
  padding: 3px 0;
  text-decoration: none;
}
.sidebar-brand img {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.sidebar-brand:focus-visible { outline: 2px solid #d8a53b; outline-offset: 2px; }

/* Brasão pequeno sobre o menu, fora da caixa lateral. */
@media (min-width: 761px) {
  .site-shell { margin-top: max(140px, calc(clamp(48px, 8vh, 88px) + 1cm)); }
  .sidebar {
    top: 140px;
    overflow: visible;
    max-height: none;
  }
  .sidebar-brand {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    width: 140px;
    margin: 0;
    padding: 0;
  }
  .sidebar-brand img { width: 140px; max-width: 100%; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; }
  .sidebar-brand { width: 140px; margin: 0 auto 10px; padding: 0; }
  .sidebar-brand img { width: 140px; max-width: 100%; }
}

/* Brasão com a mesma largura da coluna lateral. */
@media (min-width: 761px) {
  .site-shell { margin-top: max(190px, calc(clamp(48px, 8vh, 88px) + 1cm)); }
  .sidebar { top: 190px; }
  .sidebar-brand { width: 210px; bottom: calc(100% + 6px); }
  .sidebar-brand img { width: 100%; max-width: 100%; height: auto; }
}
@media (max-width: 760px) {
  .sidebar-brand { width: min(210px, 100%); }
  .sidebar-brand img { width: 100%; max-width: 100%; height: auto; }
}

/* No computador, o conteúdo da direita tem sua própria rolagem. */
@media (min-width: 761px) {
  html, body { height: 100%; overflow: hidden; }
  .site-shell {
    margin-bottom: 0;
    height: calc(100vh - 206px);
    height: calc(100dvh - 206px);
    min-height: 0;
  }
  .sidebar-column { position: relative; min-height: 0; }
  .sidebar {
    position: static;
    top: auto;
    max-height: calc(100vh - 206px);
    max-height: calc(100dvh - 206px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  .content-frame {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #41738a transparent;
    scroll-behavior: smooth;
  }
}
@media (min-width: 761px) and (max-height: 950px) {
  .sidebar .nav-link { padding-top: 7px; padding-bottom: 7px; }
  .sidebar-card { margin-top: 10px; padding-top: 9px; padding-bottom: 9px; }
  #sidebar-top-guild .guild-logo { width: 64px; height: 64px; }
}
@media (max-width: 760px) {
  .sidebar-column { position: relative; }
  .content-frame { height: auto; overflow: visible; }
}

/* Menu esquerdo mais compacto, preservando a leitura e o toque no celular. */
@media (min-width: 761px) {
  .sidebar { padding: 6px; }
  .sidebar .nav-link { padding: 9px 10px; }
  .sidebar-card { margin-top: 10px; padding: 10px 8px; }
  .sidebar-card strong { margin: 3px; }
  .server-save { margin-top: 10px; padding-top: 8px; }
  .server-save #server-save-countdown { margin-top: 4px; }
  #sidebar-top-guild { gap: 7px; margin-top: 10px; }
  #sidebar-top-guild .guild-logo { width: 80px; height: 80px; }
}
@media (min-width: 761px) and (max-height: 950px) {
  .sidebar .nav-link { padding-top: 5px; padding-bottom: 5px; }
  .sidebar-card { margin-top: 8px; padding-top: 7px; padding-bottom: 7px; }
  #sidebar-top-guild .guild-logo { width: 56px; height: 56px; }
}

/* Loot dos bosses da seção Raids */
.raid-loot-hint { margin: 0 0 4px; font-size: .85rem; color: #d7ebf7; }
.raid-boss-link { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-style: italic; text-align: left; cursor: pointer; }
.raid-boss-link:hover { color: #f7d78b; }
.raid-boss-link:focus-visible { outline: 2px solid #f7d78b; outline-offset: 4px; border-radius: 2px; }
#raid-loot-dialog { box-sizing: border-box; width: min(600px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 22px; border: 1px solid #c3a25c; border-radius: 8px; background: #102d42; color: #e2f2fb; box-shadow: 0 18px 60px rgba(0,0,0,.6); }
#raid-loot-dialog::backdrop { background: rgba(0,0,0,.72); }
.raid-loot-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.raid-loot-heading h2 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.2rem; color: #f7d78b; }
#raid-loot-note { color: #c2dbe9; font-size: .85rem; line-height: 1.5; }
.raid-loot-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.raid-loot-table th, .raid-loot-table td { padding: 9px 8px; border-bottom: 1px solid rgba(118,179,214,.25); text-align: left; }
.raid-loot-table th { color: #f7d78b; }
.raid-loot-table th:last-child, .raid-loot-table td:last-child { text-align: right; }
.raid-loot-table tbody tr:nth-child(odd) { background: rgba(41,113,161,.15); }
.raid-loot-table small { display: block; margin-top: 3px; font-size: .75rem; color: #aac8db; }
@media (max-width: 480px) { #raid-loot-dialog { padding: 16px; } .raid-loot-heading h2 { font-size: 1rem; } .raid-loot-table { font-size: .8rem; } }

/* Uniformiza todas as linhas do loot, incluindo a primeira. */
#raid-loot-body td { font-weight: 400; color: #e2f2fb; }

/* Character equipment */
.profile-overview { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.profile-overview #profile-details { flex: 1 1 260px; min-width: 0; }
.profile-equipment { flex: 0 0 184.5px; text-align: center; max-width: 100%; }
.profile-equipment[hidden] { display: none; }
.profile-equipment h3 { margin: 0 0 12px; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 57px); gap: 4.5px; justify-content: center; }
.equipment-slot { box-sizing: border-box; height: 57px; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 6px 20px; border: 1px solid #647d8b; border-radius: 3px; background: linear-gradient(145deg, #294352, #12232e); box-shadow: inset 0 2px 5px rgba(0,0,0,.45); color: #bed1dd; cursor: pointer; }
.equipment-slot:hover, .equipment-slot:focus-visible { border-color: #f7d78b; outline: 1px solid #f7d78b; outline-offset: 1px; }
.equipment-slot img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.equipment-slot-label { position: absolute; bottom: 4px; left: 2px; right: 2px; font-size: 10px; line-height: 1.2; font-weight: 400; }
.equipment-slot-8 { grid-column: 2; }
.equipment-image-missing::before { content: '?'; color: #f7d78b; font-size: 24px; }
#equipment-item-name { min-height: 2.6em; font-size: .85rem; margin: 12px 0 6px; overflow-wrap: anywhere; }
.equipment-note { color: #aac8db; font-size: .75rem; margin: 0; }
@media (max-width: 600px) { .profile-overview { justify-content: center; } .profile-overview #profile-details { flex-basis: 100%; } }

/* Slots sem legendas: centraliza os itens. */
.equipment-slot { padding: 4.5px; }

.equipment-empty { color: #aac8db; font-size: 11px; font-weight: 400; }

/* Account password settings */
.account-character-actions { justify-content: flex-start; flex-wrap: wrap; }
.account-character-actions .stone-button { flex-shrink: 0; }
#change-password-dialog { box-sizing: border-box; width: min(460px, calc(100% - 32px)); max-height: 85vh; overflow: auto; color: #e2f2fb; }
#change-password-dialog::backdrop { background: rgba(0,0,0,.65); }
#change-password-dialog .stone-button { margin: 6px 6px 0 0; }

.character-privacy-toggle { display: flex; align-items: center; gap: 7px; color: #bdd6e8; font-size: .72rem; line-height: 1.4; cursor: pointer; }
.character-privacy-toggle input { width: 14px; height: 14px; margin: 0; flex-shrink: 0; accent-color: #c3a25c; }
.character-privacy-toggle:has(input:disabled) { opacity: .65; cursor: wait; }

/* Equipment and skills share the right-hand profile column. */
.profile-loadout { flex: 0 0 184.5px; max-width: 100%; }
.profile-loadout[hidden], .profile-skills[hidden] { display: none; }
.profile-skills { margin: 12px 0 0; }
.profile-skills-grid { display: block; margin: 0; padding: 8px 6px; background: rgba(120,120,120,.18); border: 1px solid rgba(118,179,214,.2); border-radius: 3px; }
.profile-skill-card { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 0; text-align: left; }
.profile-skill-card dt, .profile-skill-card dd { font-size: .65rem; line-height: 1.35; color: #e2f2fb; font-weight: 400; }
.profile-skill-card dt { min-width: 0; }
.profile-skill-card dd { margin: 0; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Donate: Pix, points and character delivery. */
.donate-wallet h2{margin:.35rem 0}.donate-muted{opacity:.8;font-size:.88rem;line-height:1.55}
.donate-feedback{min-height:1.5em;color:#b5ef91;margin:12px 0}.donate-feedback.is-error{color:#ffb8a5}
#donate .panel{margin-bottom:18px}#donate [hidden]{display:none!important}
.pix-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.pix-package{position:relative;display:flex;flex-direction:column;gap:8px;padding:16px 12px;border:1px solid #9a743c;border-radius:5px;cursor:pointer;background:rgba(45,26,10,.12);text-align:center}
.pix-package:has(input:checked){outline:2px solid #9c7228;background:rgba(189,132,48,.16)}
.pix-package input{align-self:center;accent-color:#96651e}.pix-package strong{font-size:1rem}.pix-package span{font-weight:bold;font-size:1.15rem}.pix-package small{font-size:.78rem}
.pix-payer-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pix-payer-fields label{display:flex;flex-direction:column;gap:7px}
.pix-payer-fields input,#donate-player,#pix-copy-code{width:100%;box-sizing:border-box;padding:10px;border:1px solid #a58960;border-radius:3px;background:#faf4e5;color:#302417}
.pix-result{margin-top:20px;padding:18px;border:1px solid #a58960;border-radius:5px}.pix-result img{display:block;max-width:100%;height:auto;margin:16px auto;background:white;border:12px solid white}
#pix-copy-code{display:block;resize:vertical;margin:8px 0 12px;font:12px/1.5 monospace;overflow-wrap:anywhere}
.donate-buy-form{display:flex;flex-direction:column;gap:12px}.donate-buy-form .stone-button{align-self:flex-start}
.donate-history-row{display:flex;flex-direction:column;gap:7px;padding:13px 0;border-bottom:1px solid #a5896055;overflow-wrap:anywhere}.donate-history-row:last-child{border-bottom:0}.donate-history-row span{font-size:.85rem}.donate-history-row button{align-self:flex-start;margin-top:4px}
#donate-confirm{max-width:480px;width:calc(100vw - 48px);padding:24px;border:2px solid #b58a45;border-radius:6px;background:#e5d1aa;color:#302417}#donate-confirm::backdrop{background:#0009}.donate-confirm-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:650px){.pix-packages{grid-template-columns:1fr}.pix-package{padding:12px}.pix-payer-fields{grid-template-columns:1fr}.donate-buy-form .stone-button{width:100%}.pix-result{padding:12px}}

#global-points[hidden], #account-points[hidden] {display:none!important}
.points-badge {display:block;text-align:center;color:#ffe066;text-decoration:none;margin-bottom:12px}
#donate-quantity {width:100%;box-sizing:border-box;padding:10px;background:#101b26;color:#fff;border:1px solid #92784f;border-radius:4px}

/* Caixa de pontos compacta: 60% das medidas verticais originais. */
#global-points {padding:6px 8px;margin-top:6px;margin-bottom:7.2px;font-size:.6rem;line-height:1.2}
#global-points strong {font-size:.99rem;line-height:1.2;margin:1.8px}

/* Compact account points badge. */
#global-points {display:flex;align-items:center;justify-content:center;gap:5px;width:fit-content;max-width:100%;box-sizing:border-box;min-height:0;height:auto;padding:5px 10px;margin:4px auto 6px;font-size:.68rem;line-height:1.2;font-weight:700}
#global-points strong {display:inline;margin:0;font-size:.86rem;line-height:1.2;font-weight:400}

/* Equal space around the Paw Amulet card; no blank feedback row. */
#donate .donate-wallet {margin-bottom:16px}
#donate-message:empty {display:none}
#donate-message:not(:empty) {margin:0 0 16px}
#donate .donate-catalog + .panel {margin-top:0}

/* Compact invitation actions beside the invitation text. */
#my-guild-invites .stone-button {
  display: inline-block;
  width: auto;
  min-width: 0;
  min-height: 26px;
  padding: 4px 6px;
  margin: 0 0 0 5px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

/* Displayed roulette prize chances. */
#donate .roulette-rewards .roulette-chance { display: inline; color: #d97706; font-size: inherit; font-weight: 700; }


/* Golden pixel cursor: desktop pointing devices only. */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("assets/cursors/golden-arrow.png?v=20261107-final-gold") 2 2, auto;
  }
  a, a *, button, button *, [role="button"], [role="button"] *,
  label, select, summary, input[type="checkbox"], input[type="radio"],
  input[type="submit"], input[type="button"], .character-link, .pix-package {
    cursor: url("assets/cursors/golden-arrow.png?v=20261107-final-gold") 2 2, pointer !important;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  textarea, [contenteditable="true"] {
    cursor: text;
  }
  button:disabled, button:disabled *, input:disabled, select:disabled,
  [aria-disabled="true"], [aria-disabled="true"] * {
    cursor: not-allowed !important;
  }
  .character-privacy-toggle:has(input:disabled) { cursor: wait !important; }
}
