:root {
  --page-bg: #051122;
  --frame-bg: #1b2236;
  --panel-bg: #fff2db;
  --panel-border: #5f4d41;
  --menu-a: #5b3a26;
  --menu-b: #3f281a;
  --menu-border: #9a6a2f;
  --menu-text: #ffe1a6;
  --title-main: #f0cd7c;
  --title-stroke: #523114;
  --link: #004294;
}

* {
  box-sizing: border-box;
  font-family: Verdana, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: #5A2800;
  font-family: Verdana, Arial, sans-serif;
}

.container {
  width: min(970px, calc(100% - 12px));
  margin: 0 auto;
}

.banner {
  margin-top: 10px;
  height: 230px;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.10)),
    radial-gradient(circle at 14px 14px, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(#5a442d 0 34%, #4ba14d 34% 100%);
  background-size: auto, 28px 28px, auto;
}

.banner.small { height: 160px }

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0, rgba(0,0,0,.06) 2px, transparent 2px, transparent 8px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 2px, transparent 2px, transparent 8px);
}

.logo-title {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .95;
  text-align: center;
  color: var(--title-main);
  text-shadow:
    2px 2px 0 var(--title-stroke),
    -1px -1px 0 #2b1b0a,
    0 0 14px rgba(0,0,0,.25);
}

.logo-sub {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  color: #f4f4f4;
  text-shadow: 1px 1px 0 #111;
  font-size: 15px;
}

.menu {
  margin-top: 8px;
  border: 1px solid var(--menu-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(var(--menu-a), var(--menu-b));
}

.menu a {
  color: var(--menu-text);
  text-decoration: none;
  padding: 12px 11px;
  border-right: 1px solid rgba(0,0,0,.25);
  text-shadow: 1px 1px 0 #000;
  font-size: 15px;
}

.menu a.brand {
  color: #f4e4bf;
  font-weight: 700;
}

.menu a.active {
  background: rgba(0,0,0,.25);
}

.menu a.right {
  margin-left: auto;
  border-left: 1px solid rgba(0,0,0,.25);
}

.panel {
  margin-top: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 16px;
}

.center { text-align: center }

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 500;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
}

.lead {
  margin-top: 0;
  font-size: 22px;
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.store-badge img {
  height: 88px;
  width: auto;
  display: block;
}

.store {
  text-decoration: none;
  color: #fff;
  background: #121212;
  border: 1px solid #474747;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
}

.online-count { font-size: 21px }

.hero {
  margin-top: 16px;
  border: 1px solid #7c5c34;
  background: linear-gradient(#e9d1ac, #d5c0a1);
  padding: 14px;
}

.hp {
  height: 22px;
  border: 1px solid #3d0a0a;
  background: #791010;
  margin-bottom: 12px;
}

.hp span {
  display: block;
  height: 100%;
  width: 82%;
  background: #d44f4f;
}

.hero-message {
  background: #3b2b1f;
  border: 5px solid #7b5b2f;
  color: #fff2db;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  padding: 14px 10px;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.card {
  border: 1px solid #5f4d41;
  background: #f1e0c6;
  padding: 12px;
}

.card h3 { margin: 0 0 8px }

.big-news-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}

.news-meta {
  display: flex;
  justify-content: flex-end;
  color: #5a4125;
  font-size: 14px;
}

.news-divider {
  border: 0;
  border-top: 1px solid #8f6b3f;
  margin: 16px 0;
}

.news-cover {
  border: 1px solid #8f6b3f;
  background: linear-gradient(#2b395a, #1e2b47);
  color: #f1d78e;
  font-weight: 700;
  text-align: center;
  padding: 80px 12px;
  font-size: clamp(26px, 4vw, 48px);
}

.subtabs {
  margin-top: 0;
  margin-bottom: 14px;
  color: #444;
}

.subtabs a {
  color: var(--link);
  text-decoration: none;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rank-table th,
.rank-table td {
  border: 1px solid #b49a73;
  padding: 9px;
}

.rank-table th { background: #d5c0a1; color: #5A2800; }
.rank-table tbody tr:nth-child(even) { background: #f1e0c6; }

.rank-character-link {
  color: #0645ad;
  font-weight: 700;
  text-decoration: none;
}

.rank-character-link:hover,
.rank-character-link:focus-visible {
  color: #8b2f14;
  text-decoration: underline;
}

/* Rankings conectados ao Unity Leaderboards, preservando o layout antigo. */
.subtabs a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

.rank-status {
  margin: 7px 0 14px;
  color: #5a2800;
}

.rank-status.is-error { color: #8d2118; }

.rank-retry {
  margin-left: 6px;
  border: 1px solid #8f6b3f;
  background: #d5c0a1;
  color: #5a2800;
  font: inherit;
  cursor: pointer;
}

.rank-table th:first-child,
.rank-table td:first-child { width: 20%; }

.rank-table th:last-child,
.rank-table td:last-child { width: 37%; }

.rank-loading-row td,
.rank-empty-row td,
.rank-error-row td {
  font-style: italic;
}

.search-box {
  border: 1px solid #5f4d41;
  padding: 12px;
  background: #f1e0c6;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 1px;
}

.search-row input,
.search-row button {
  border: 1px solid #5f4d41;
  background: #fff2db;
  padding: 10px;
  font-size: 16px;
}

.char-title {
  font-size: clamp(30px, 4.5vw, 44px);
  margin: 0 0 10px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  vertical-align: middle;
}

.badge.online { background: #45b055 }
.badge.role { background: #2f7fc8 }
.badge.banned { background: #e34d4d; font-weight: 700; }
.badge.gm {
  border: 1px solid #a9d5ec;
  color: #eaf8ff;
  background: linear-gradient(135deg, #28749d, #153b60);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 6px rgba(80,172,219,.38);
  font-weight: 800;
  text-shadow: 1px 1px #0a2138;
}
.badge.gm-creator {
  border: 1px solid #f4cf62;
  color: #ffeaa0;
  background: linear-gradient(135deg, #6f248f, #35104f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 7px rgba(231,183,65,.45);
  font-weight: 800;
  text-shadow: 1px 1px #1b0827;
}
.badge.tester {
  border: 1px solid #8bd1a8;
  color: #effff5;
  background: linear-gradient(135deg, #2f7d56, #174631);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 6px rgba(77,176,118,.35);
  font-weight: 800;
  text-shadow: 1px 1px #0c291b;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  border: 1px solid #d2d2d2;
  padding: 10px;
}

.info-table td:first-child {
  width: 35%;
  background: #f4f4f4;
}

.section-title {
  margin-top: 14px;
  margin-bottom: 0;
  background: #ccb086;
  border: 1px solid #5f4d41;
  padding: 10px;
}

.kill-feed {
  border: 1px solid #5f4d41;
  border-top: none;
  background: #ecdcc4;
}

.kill-feed li {
  list-style: none;
  margin: 0;
  padding: 10px;
  border-top: 1px solid #b08858;
}

.guild-item {
  border: 1px solid #5f4d41;
  background: #f1e0c6;
  padding: 12px;
  margin-bottom: 10px;
}

.guild-item h3 {
  margin: 0 0 8px;
  color: var(--link);
}

.footer {
  text-align: right;
  color: #fff2db;
  font-size: 14px;
  padding: 12px 4px 22px;
}

.footer a { color: #004294 }

.menu-top {
  display: flex;
  align-items: center;
}

.menu-top .brand {
  border-right: 1px solid rgba(0,0,0,.25);
}

.menu-toggle {
  display: none;
  margin: 6px 8px 6px auto;
  width: 80px;
  height: 42px;
  border: 1px solid #c79b4b;
  border-radius: 6px;
  background: rgba(0,0,0,.15);
  color: #f0cd7c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.menu-links a.active {
  background: rgba(0,0,0,.16);
}

@media (max-width: 820px) {
  .monster-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monster-detail-hero {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 96px;
    padding: 14px 18px;
    background-size: 100% 100%;
  }

  .monster-detail-copy {
    text-align: center;
  }

  .monster-detail-copy h2 {
    font-size: 28px;
  }

  .monster-detail-image {
    width: 62px;
    height: 62px;
  }

  .monster-drops-grid {
    grid-template-columns: 1fr;
  }
}
  .banner.has-image { height: 170px }
  .banner { height: 170px }
  .banner.small { height: 130px }

  .menu {
    display: block;
    background: linear-gradient(var(--menu-a), var(--menu-b));
  }

  .menu-top {
    border-bottom: 1px solid rgba(0,0,0,.20);
    justify-content: space-between;
  }

  .menu-top .brand {
    border-right: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .menu-links.is-open {
    display: flex;
  }

  .menu-links a {
    border-right: none;
    border-top: 1px solid rgba(0,0,0,.20);
    padding: 14px;
    font-size: 18px;
    background: transparent;
  }

  .menu a.right { margin-left: 0 }
  .grid { grid-template-columns: 1fr }
  .news-meta { justify-content: flex-start }

.support-page {
  padding: 20px;
}

.support-hero {
  border: 1px solid #5f4d41;
  background: linear-gradient(180deg, #f1e0c6, #d5c0a1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.support-hero h2 {
  margin-bottom: 6px;
}

.support-hero p {
  margin: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-card {
  border: 1px solid #5f4d41;
  border-radius: 10px;
  background: linear-gradient(180deg, #f1e0c6, #d5c0a1);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(27, 20, 13, 0.15);
}

.support-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #7a5630;
  background: linear-gradient(180deg, #5f4d41, #3a2d25);
  color: #ffd18c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.support-card h3 {
  margin: 0 0 6px;
}

.support-card p {
  margin: 0 0 12px;
  min-height: 54px;
}

.support-btn {
  display: inline-block;
  text-decoration: none;
  color: #ffd18c;
  background: linear-gradient(180deg, #5f4d41, #3a2d25);
  border: 1px solid #c79b4b;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
}

.support-btn:hover {
  filter: brightness(1.08);
}

.support-card small {
  display: block;
  margin-top: 9px;
  color: #5f4529;
}

.support-note {
  margin-top: 14px;
  border: 1px solid #5f4d41;
  border-radius: 8px;
  background: #e5d1b4;
  padding: 12px 11px;
}

.support-note h4 {
  margin: 0 0 4px;
}

.support-note p {
  margin: 0;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card p {
    min-height: 0;
  }
}

.support-icon-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}








.banner.has-image::after {
  display: none;
}

.banner.has-image {
  height: auto;
  aspect-ratio: auto;
  background: #141f33;
}

.character-results-summary {
  margin: 0 0 14px;
  font-weight: 700;
  color: #5a2800;
}

.character-card {
  margin-bottom: 30px;
}

.character-card + .character-card {
  padding-top: 24px;
  border-top: 1px solid #a99a87;
}

.character-info-caption {
  caption-side: top;
  padding: 10px;
  border: 1px solid #d2d2d2;
  border-bottom: 0;
  background: #d5c0a1;
  color: #2b2118;
  text-align: left;
  font-weight: 700;
}

.character-info-table td {
  border-color: #b49a73;
  background: #ecdcc4;
}

.character-info-table td:first-child {
  background: #dfc7a4;
}

.character-info-table thead th,
.character-search-results-table thead th {
  border: 1px solid #b49a73;
  padding: 9px 10px;
  background: #d5c0a1;
  color: #5a2800;
  text-align: left;
}

.character-info-table td:first-child {
  width: 34%;
}

.character-info-table td:nth-child(2) {
  width: 28%;
}

.character-info-table td:nth-child(3) {
  width: 38%;
  font-weight: 700;
}

.character-search-results-table {
  margin-bottom: 24px;
}

.character-search-results-table td {
  border-color: #b49a73;
  background: #ecdcc4;
}

.character-search-results-table tbody tr:nth-child(even) td {
  background: #dfc7a4;
}

.character-search-results-table td:first-child {
  width: auto;
  background: #ecdcc4;
}

.character-search-results-table a {
  color: #0645ad;
  font-weight: 700;
}

.character-deaths {
  margin: 0;
  padding: 0;
}

.character-deaths-placeholder {
  color: #6d5b47;
  font-style: italic;
}

.character-search-section {
  margin-top: 6px;
}

.has-character-results .character-search-section {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid #a99a87;
}

.character-search-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: #5a2800;
}

.character-search-status.is-error { color: #8d2118; }

.search-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

