.masthead {
  width: min(950px, calc(100% - 28px));
  margin: 13px auto 20px;
  color: #fff2ce;
  font: 13px/1.4 Verdana, Geneva, sans-serif;
}
.masthead .menu {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 2px 6px;
  background: linear-gradient(#40271e, #1b100d);
  border: 1px solid #a67c49;
  box-shadow: 0 3px 12px #170a07c0, inset 0 0 0 2px #26160f;
  border-radius: 5px;
}
.masthead .menu a {
  display: grid;
  place-items: center;
  min-height: 35px;
  padding: 4px;
  color: #ffdda1;
  text-decoration: none;
  text-align: center;
  font: bold 13px/1.15 Georgia, serif;
  text-shadow: 0 1px #170a06;
  border-bottom: 2px solid transparent;
}
.masthead .menu a + a { border-left: 1px solid #6c4a315f; }
.masthead .menu a:hover, .masthead .menu a[aria-current] {
  color: #fff4d7;
  background: #704b305f;
  border-bottom-color: #d9aa64;
}
.masthead .masthead-brand {
  display: grid;
  grid-template-columns: 1fr minmax(0, 290px) 1fr;
  align-items: center;
  min-height: 138px;
  padding: 10px 18px 6px;
  background: radial-gradient(ellipse at center, #24150db0, transparent 70%);
}
.masthead .brand { grid-column: 2; justify-self: center; width: 100%; filter: drop-shadow(0 4px 7px #170b06); }
.masthead .game-download { grid-column: 3; justify-self: end; width: min(145px, 100%); filter: drop-shadow(0 3px 6px #130905); }
.masthead .game-download:hover { filter: brightness(1.15) drop-shadow(0 3px 6px #130905); }
.masthead img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .masthead { margin: 9px auto 13px; }
  .masthead .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2px; }
  .masthead .menu a { min-height: 33px; font-size: 12px; }
  .masthead .menu a:nth-child(n+5) { border-top: 1px solid #6c4a315f; }
  .masthead .menu a:nth-child(5) { border-left: 0; }
  .masthead .masthead-brand { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 11px 0 0; }
  .masthead .brand, .masthead .game-download { grid-column: 1; justify-self: center; }
  .masthead .brand { width: min(230px, 72%); }
  .masthead .game-download { width: 103px; }
}
@media print { .masthead { display: none; } }
/* Bronze, relevo e separadores de metal dão contorno ao menu sobre a arte. */
.masthead .menu {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  position: relative;
  isolation: isolate;
  border-color: #b38b51;
  background: linear-gradient(90deg,#160d08a0,#160d0878), url("art/faixa-rpg.jpg") center 44% / cover;
  box-shadow: 0 7px 22px #100603bd, inset 0 0 0 2px #2a1c14, inset 0 2px 0 #d5a75c33;
}
.masthead .menu::before,.masthead .menu::after {
  content: ""; position: absolute; width: 10px; height: 10px; top: calc(50% - 5px);
  background: linear-gradient(135deg,#deb272,#50301d); transform: rotate(45deg);
  box-shadow: 0 0 0 1px #46291a; pointer-events: none;
}
.masthead .menu::before { left: -5px; }
.masthead .menu::after { right: -5px; }
.masthead .menu a { min-height: 39px; letter-spacing: .025em; }
.masthead .game-download { animation: portal-download-float 3.8s ease-in-out infinite; }
@keyframes portal-download-float {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 3px 6px #130905); }
  50% { transform: translateY(-5px); filter: drop-shadow(0 0 8px #edb56c88); }
}
.masthead .game-download:hover { animation-play-state: paused; }
@media (max-width: 700px) {
  .masthead .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .masthead .menu a { min-height: 33px; }
}
@media (prefers-reduced-motion: reduce) { .masthead .game-download { animation: none; } }
:root { --portal-cursor: url("art/cursor.png") 2 1, auto; }
html, body, a, button, summary, select, input[type="file"], [role="button"], [tabindex="0"] {
  cursor: var(--portal-cursor);
}
:is(a,button,summary):is(:hover,:active,:focus), .ragnarok-row[data-tip-nome] { cursor: var(--portal-cursor); }
.site-footer { min-height: 110px; margin-top: auto; padding: 24px 12px; text-align: center; background: #000 url("art/footer.jpg") center top / auto 130px no-repeat; color: #d5b59a; font: 11px/1.5 Verdana, sans-serif; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.site-footer a { color: #f5cf62; }
.site-footer p { margin: 9px 0 0; }
body.portal-wiki { display: flex; flex-direction: column; min-height: 100vh; }
body.portal-wiki .app-shell { margin-bottom: 20px; }
:where(a,button,summary,select,input[type="file"],[role="button"],[tabindex="0"]) {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 700px) {
  .masthead { width: calc(100% - 24px); margin: 10px auto 13px; }
  .masthead .menu a { min-height: 44px; font-size: 12px; letter-spacing: 0; }
  .masthead .masthead-brand { grid-template-columns: minmax(0, 1fr) minmax(90px, 30%); min-height: 94px; padding: 9px 8px 0; gap: 12px; }
  .masthead .brand { width: min(220px,100%); grid-column: 1; justify-self: end; }
  .masthead .game-download { width: min(116px,100%); grid-column: 2; justify-self: start; }
  body { background-size: auto 610px; }
  .rank-layout { width: calc(100% - 20px); }
  .rank-hero h1 { font-size: clamp(23px, 6vw, 31px); }
  .rank-panel { padding: 12px; }
  .classic-grid .switcher { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .classic-grid .switcher button, .classic-grid .section-more a { display: grid; place-items: center; min-height: 44px; }
  .classic-grid .section-more a { width: 100%; text-align: center; }
  .news-panel .news-list strong, .news-panel .news-list small { white-space: normal; }
  .news-list > :is(a,article) { padding-block: 8px; }
  .side-content { font-size: 12px; }
  .side-content .small-link { padding: 6px 0; }
  .banner-controls button { padding: 6px; }
  .banner-controls { bottom: 3px; right: 8px; }
  .rank-tabs a { display: inline-flex; align-items: center; min-height: 40px; }
  .rank-table :is(th,td) { padding: 6px 4px; overflow-wrap: anywhere; }
  .gallery article a:last-child { overflow-wrap: anywhere; }
  .media-archive { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .admin-form :is(input,select,textarea),.rank-filter :is(input,select) { font-size: 16px; }
  .site-footer a { padding: 7px 3px; }
}
@media (max-width: 365px) {
  .masthead .menu a { font-size: 11px; }
  .side-panel h2 { font-size: 15px; }
}

.top-five-server { display: block; text-align: center; color: #ffd65f; font-weight: bold; }
.top-five-list { list-style: none; margin: 2px 0 7px; padding: 0; text-align: center; }
.top-five-list a { color: #fff1d5; text-decoration: none; overflow-wrap: anywhere; }
.top-five-list a:hover { color: #ffd65f; text-decoration: underline; }
.mini-bless { display: flex; align-items: center; justify-content: center; gap: 5px; }
.mini-bless img { width: 22px; height: 22px; object-fit: contain; }
.clan-entry { padding: 10px; margin: 7px 0; border: 1px solid #b58e61; background: #fff1d1; }
.clan-entry summary { cursor: var(--portal-cursor); }
.clan-entry summary img { vertical-align: middle; margin-right: 5px; }
.clan-entry summary small { display: block; margin: 4px 0; }
.clan-entry > p { margin: 7px 0 0; }
.clan-entry a,.rank-panel h2 a { color: #70431e; }
.server-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.server-list li { display: flex; justify-content: space-between; align-items: center; gap: .25rem; }
.server-list li + li { margin-top: .2rem; }
.server-list li span { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; }
.server-list img { width: 8px; height: 11px; }
.mini-rank img { width: 18px; height: auto; }
.event-guide { margin-top: 1rem; border-top: 1px solid #bb945e; padding-top: 1rem; }
.event-guide p { margin: .6rem 0; }
.event-stages { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: .75rem; }
.event-stages figure { margin: 0; }
.event-stages figcaption { font-weight: bold; }
.event-guide img { display: block; height: auto; max-width: 100%; }

.masthead .menu { display: block; z-index: 5; }
.menu-links { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.menu-toggle { display: none; }
.menu-community { position: relative; min-width: 0; }
.masthead .menu-community summary {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 39px; padding: 4px; list-style: none; color: #ffdda1;
  font: bold 13px Georgia,serif; border-bottom: 2px solid transparent;
}
.menu-community summary::-webkit-details-marker { display: none; }
.menu-community summary::after { content: "▾"; }
.menu-community[open] summary,.menu-community summary:hover { background: #704b305f; border-color: #d9aa64; }
.menu-community > div { position: absolute; top: 100%; left: 0; min-width: max(100%,150px); background: #23130e; border: 1px solid #a67c49; box-shadow: 0 6px 16px #0009; }
.masthead .menu-community a { text-align: left; place-items: center start; padding-inline: 12px; border-left: 0; }
@media (max-width: 700px) {
  .masthead .menu { padding: 0 7px; }
  .masthead .menu[data-mobile-ready] .menu-toggle { display: flex; align-items: center; gap: .55rem; padding: 8px 9px; min-height: 43px; border: 0; background: transparent; color: #ffe4ab; font-weight: bold; }
  .masthead .menu[data-mobile-ready] .menu-links { display: none; }
  .masthead .menu[data-mobile-ready] .menu-toggle[aria-expanded="true"] + .menu-links { display: grid; }
  .masthead .menu-links { grid-template-columns: 1fr; }
  .masthead .menu-links > a,.masthead .menu-community summary { place-items: center start; justify-content: start; min-height: 42px; padding: 6px 10px; border: 0; border-top: 1px solid #6c4a315f; }
  .masthead .menu-community > div { position: static; margin-left: 10px; box-shadow: none; }
}
.server-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.admin-form .inline-check { display: flex; align-items: center; }
.admin-form .inline-check input { width: auto; }
.status-panel .side-content { background: #060606; color: #e6e3da; }
.server-worlds { margin: 0; padding: 0; list-style: none; }
.server-worlds > li { border-bottom: 1px solid #383631; padding: 7px 0; }
.server-world-name { display: block; color: #ffcf42; font-weight: 600; }
.server-new { margin-left: 5px; padding: 1px 5px; border-radius: 4px; background: #ffd735; color: #231700; font-size: 8px; text-transform: uppercase; }
.server-channels { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-top: 5px; font-size: 9px; }
.server-channel { display: inline-flex; gap: 3px; align-items: center; }
.server-channel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #887e74; }
.server-channel[data-state="online"]::before { background: #19cdb3; }
.server-channel[data-state="offline"]::before { background: #ed5e65; }
.server-channel small { color: #bcb6aa; }
.status-panel .next-maintenance { display: block; text-align: center; color: #f3e9ce; padding: 9px 0 2px; text-decoration: none; }
.next-maintenance span { display: block; }
.next-maintenance:hover { text-decoration: underline; }
.masthead .menu-community:has(a[aria-current]) > summary { border-bottom-color: #d9aa64; }
