:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #0a0d11;
  color: #eeeef2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --gold: #9a5cf6;
  --accent-2: #58d8a3;
  --warn: #f1be62;
  --muted: #898992;
  --line: #2b2b31;
  --panel: #141417;
  --panel-strong: #1b1b20;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #0a0d11; color: #eeeef2; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #b88aff; outline-offset: 3px; }
.page-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 20; padding: 12px; border-radius: 8px; background: #eeeef2; color: #0a0d11; }
.skip-link:focus { top: 12px; }

.site-header {
  position: absolute;
  z-index: 5;
  display: flex;
  width: 100%;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid #2b2b31;
  background: rgb(20 20 23 / 94%);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 34px; height: 30px; object-fit: contain; mix-blend-mode: screen; }
.brand strong, .brand small { display: block; }
.brand strong { font: 750 12px/1.5 Inter, "Segoe UI", sans-serif; letter-spacing: .06em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.main-nav { display: flex; gap: 30px; color: #aaaab3; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.main-nav a, .text-link { transition: color .2s ease; }
.main-nav a:hover, .text-link:hover { color: var(--gold); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 37px; padding: 0 18px; }
.button-quiet { border-color: rgb(154 92 246 / 45%); color: #d5bcff; }
.button-quiet:hover, .button-outline:hover { background: rgb(154 92 246 / 12%); }
.button-gold { background: var(--gold); color: #fff; box-shadow: 0 5px 18px rgb(154 92 246 / 18%); }
.button-gold:hover { background: #aa75f8; }
.button-outline { border-color: #393941; color: #eeeef2; }

.hero {
  position: relative;
  display: flex;
  min-height: min(760px, 94svh);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgb(10 13 17 / 92%) 4%, rgb(10 13 17 / 77%) 54%, rgb(10 13 17 / 58%) 100%),
    url("/fundo.png") center 42% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 13 17 / 45%) 0%, rgb(10 13 17 / 12%) 62%, rgb(10 13 17 / 5%) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 60px; }
.hero-content { animation: hero-arrive .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}
html.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html.motion-ready [data-reveal-delay="1"] { transition-delay: 90ms; }
html.motion-ready [data-reveal-delay="2"] { transition-delay: 180ms; }
html.motion-ready [data-reveal-delay="3"] { transition-delay: 270ms; }
.eyebrow { margin: 0 0 14px; color: #b88aff; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 720px; margin-bottom: 20px; font: 750 clamp(42px, 5.4vw, 68px)/1.08 Inter, "Segoe UI", sans-serif; letter-spacing: -.045em; }
.hero h1 span { color: #b88aff; }
.hero-copy { max-width: 500px; margin-bottom: 28px; color: #c0c0c8; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { max-width: 480px; margin: 18px 0 0; color: #a0a0aa; font-size: 11px; line-height: 1.6; }
.hero-index { position: absolute; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 42px; display: flex; align-items: center; gap: 11px; color: #aaaab3; font-size: 9px; letter-spacing: .18em; }
.hero-index span { color: #b88aff; }
.hero-index i { width: 38px; height: 1px; background: #9a5cf6; }

.status-section { padding-block: 48px 12px; }
.status-section .section-topline { margin-bottom: 18px; }
.status-section .section-topline h2 { font-size: 30px; }
.server-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-status-card { display: flex; min-height: 88px; align-items: center; gap: 13px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.server-status-light { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #666670; box-shadow: 0 0 0 4px rgb(137 137 146 / 12%); }
.server-status-card[data-state="online"] .server-status-light { background: var(--accent-2); box-shadow: 0 0 10px rgb(88 216 163 / 42%); animation: status-pulse 2.4s ease-out infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgb(88 216 163 / 38%); }
  70%, 100% { box-shadow: 0 0 0 8px rgb(88 216 163 / 0%); }
}
.server-status-card[data-state="offline"] .server-status-light { background: #ed777e; box-shadow: 0 0 0 4px rgb(237 119 126 / 14%); }
.server-status-card h3 { margin: 0 0 5px; font: 650 15px/1.3 Inter, "Segoe UI", sans-serif; }
.server-status-state { margin: 0; color: var(--muted); font-size: 11px; }
.server-player-count { display: grid; gap: 3px; margin: 0 0 0 auto; text-align: right; }
.server-player-count strong { color: var(--accent-2); font-size: 22px; font-weight: 650; }
.server-player-count span { color: var(--muted); font-size: 10px; }

.ranking-section { padding-block: 78px 86px; }
.ranking-refresh { display: flex; align-items: center; gap: 14px; }
.ranking-note { margin: -15px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ranking-search { display: flex; gap: 8px; max-width: 470px; margin-bottom: 18px; }
.ranking-search input { min-width: 0; min-height: 39px; flex: 1; padding: 9px 12px; border: 1px solid #393941; border-radius: 8px; background: var(--panel); color: #eeeef2; }
.ranking-search input:focus { border-color: #9a5cf6; outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: rgb(20 20 23 / 94%); }
.ranking-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.ranking-table th, .ranking-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.ranking-table th { color: #898992; font-size: 9px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: rgb(154 92 246 / 8%); }
.ranking-message { color: var(--muted); text-align: center; }
.rank-number { color: #b88aff; font-variant-numeric: tabular-nums; }
.rank-name-button { padding: 0; border: 0; background: transparent; color: #d5bcff; cursor: pointer; font-weight: 650; }
.rank-name-button:hover { color: #c9aaff; text-decoration: underline; text-underline-offset: 4px; }
.rank-player { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.rank-player[hidden] { display: none; }
.rank-player-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.rank-player-heading .eyebrow { margin-bottom: 7px; }
.rank-player-heading h3 { margin: 0 0 7px; font: 500 25px Georgia, serif; }
.rank-player-heading .ranking-note { margin: 0; }
.equipment-grid {
  position: relative;
  display: block;
  width: min(455px, 100%);
  aspect-ratio: 405 / 308;
  margin: 0 auto;
}
.equipment-slot {
  position: absolute;
  display: grid;
  width: 16.5%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 3px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-strong);
}
.equipment-slot[data-slot="13"] { left: 4.7%; top: 33.4%; }
.equipment-slot[data-slot="1"] { left: 40.92%; top: 11.44%; }
.equipment-slot[data-slot="15"] { left: 78%; top: 11.44%; }
.equipment-slot[data-slot="16"] { left: 59.7%; top: 55.2%; }
.equipment-slot[data-slot="17"] { left: 22.58%; top: 77%; }
.equipment-slot[data-slot="6"] { left: 22.58%; top: 21.67%; }
.equipment-slot[data-slot="2"] { left: 40.92%; top: 37.73%; }
.equipment-slot[data-slot="7"] { left: 59.7%; top: 21.67%; }
.equipment-slot[data-slot="12"] { left: 78%; top: 33.4%; }
.equipment-slot[data-slot="4"] { left: 22.58%; top: 55.2%; }
.equipment-slot[data-slot="3"] { left: 40.92%; top: 64.57%; }
.equipment-slot[data-slot="5"] { left: 59.7%; top: 77%; }
.equipment-slot[data-slot="11"] { left: 78%; top: 77%; }
.equipment-slot[data-slot="8"] { left: 4.7%; top: 55.2%; }
.equipment-slot[data-slot="14"] { left: 4.7%; top: 11.44%; }
.equipment-slot[data-slot="10"] { left: 4.7%; top: 77%; }
.equipment-slot[data-slot="9"] { left: 78%; top: 55.2%; }
.equipment-slot span, .equipment-slot strong { display: block; }
.equipment-slot-label, .equipment-slot .equipment-name { display: none !important; }
.equipment-slot span { margin-bottom: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.equipment-slot strong { color: #c8a7ff; font-size: 11px; font-weight: 600; }
.equipment-slot[data-empty="true"] strong { display: none; }
.equipment-slot[data-empty="false"] { cursor: help; }
.equipment-slot .equipment-icon {
  display: block;
  width: 88%;
  height: 88%;
  margin: 0;
  object-fit: contain;
  image-rendering: pixelated;
}
.equipment-slot .equipment-icon-placeholder {
  display: grid;
  width: 88%;
  height: 88%;
  margin: 0;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
}
.equipment-slot .equipment-sanc {
  position: absolute;
  right: 1px;
  bottom: 0;
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 4px #000, 1px 1px 0 #000, -1px 1px 0 #000;
}
.item-tooltip {
  position: fixed;
  z-index: 1000;
  min-width: 200px;
  max-width: 340px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px 10px 9px;
  border: 1px solid #806a43;
  background: rgb(8 8 8 / 96%);
  color: #fff;
  font: 12px/1.28 Tahoma, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  pointer-events: none;
  box-shadow: 3px 4px 12px rgb(0 0 0 / 75%);
}
.item-tooltip[hidden] { display: none; }
.item-tooltip .tt-name, .item-tooltip .tt-line, .item-tooltip .tt-drop { display: block; }
.item-tooltip .tt-name { margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.item-tooltip .tt-line { margin: 1px 0; }
.item-tooltip .tt-drop { margin-top: 2px; padding-left: 14px; }

.intro-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; padding-block: 112px 120px; }
.section-heading h2, .section-topline h2, .rules-card h2, .account-callout h2 { margin: 0; font: 700 clamp(28px, 3.6vw, 42px)/1.18 Inter, "Segoe UI", sans-serif; letter-spacing: -.035em; }
.intro-copy { max-width: 490px; margin-bottom: 3px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.news-section { padding-block: 78px 88px; border-block: 1px solid var(--line); background: linear-gradient(180deg, #101014, #0d0e12); }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-topline h2 { font-size: clamp(29px, 3.6vw, 40px); }
.section-caption { padding-bottom: 7px; color: #898992; font-size: 9px; letter-spacing: .12em; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { min-height: 210px; padding: 25px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.news-card time { color: #b88aff; font-size: 10px; letter-spacing: .12em; }
.news-card h3 { margin: 17px 0 10px; font: 650 19px/1.4 Inter, "Segoe UI", sans-serif; }
.news-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.empty-state { grid-column: 1/-1; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.rules-section { padding-block: 77px; }
.rules-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.rules-emblem { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgb(154 92 246 / 35%); border-radius: 12px; background: rgb(154 92 246 / 10%); color: #b88aff; font-size: 23px; }
.rules-card .eyebrow { margin-bottom: 9px; }
.rules-card h2 { font-size: 22px; }
.rules-card p:not(.eyebrow) { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-link { color: #b88aff; font-size: 12px; white-space: nowrap; }
.account-callout { display: flex; justify-content: space-between; gap: 32px; padding-block: 48px 100px; }
.account-callout h2 { font-size: 35px; }
.account-callout-action { max-width: 320px; }
.account-callout-action p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-invitation-note { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line); background: #0a0d11; }
.footer-content { display: flex; min-height: 106px; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand .brand-logo { width: 30px; height: 28px; }
.footer-brand strong { font-size: 10px; }
.footer-content p, .copyright { margin: 0; color: #777780; font-size: 10px; line-height: 1.6; }

.subpage { min-height: calc(100svh - 150px); padding-top: 140px; padding-bottom: 80px; }
.subpage h1 { max-width: 700px; margin-bottom: 14px; font: 750 clamp(34px, 4vw, 48px)/1.1 Inter, "Segoe UI", sans-serif; letter-spacing: -.035em; }
.subpage-lead { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.portal-form { display: grid; width: min(100%, 460px); gap: 17px; margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 16px 45px rgb(0 0 0 / 22%); }
.portal-form label { display: grid; gap: 8px; color: #d4d4dc; font-size: 12px; }
.portal-form input, .portal-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #393941; border-radius: 8px; background: #0e0e12; color: #eeeef2; }
.portal-form select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #393941; border-radius: 8px; background: #0e0e12; color: #eeeef2; }
.portal-form textarea { min-height: 140px; resize: vertical; }
.portal-form input:focus, .portal-form textarea:focus, .portal-form select:focus { border-color: #9a5cf6; outline: none; }
.configuration-panel { width: min(100%, 1000px); }
.configuration-content { min-height: 480px !important; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; tab-size: 4; }
.configuration-targets { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); background: rgb(0 0 0 / 18%); }
.configuration-target { margin: 0; color: #c3bdaF; font-size: 12px; overflow-wrap: anywhere; }
.game-data-panel { width: min(100%, 1200px); scroll-margin-top: 24px; }
.game-data-picker { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(240px, 1.3fr); gap: 14px; }
.game-data-picker label, .game-data-field { display: grid; gap: 7px; color: #d4d4dc; font-size: 12px; }
.game-data-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.game-data-fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 16px; border: 1px solid #393941; border-radius: 8px; }
.game-data-fieldset legend { padding-inline: 8px; color: #f1be62; font-size: 12px; font-weight: 700; }
.game-data-subgroup { display: grid; grid-template-columns: 1fr; gap: 9px; min-width: 0; padding: 12px; border: 1px solid #393941; border-radius: 8px; }
.game-data-subgroup legend { color: #d4c2ed; }
.game-data-field input, .game-data-picker input, .game-data-picker select, .game-data-table input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #393941; border-radius: 7px; background: #0e0e12; color: #eeeef2; font: inherit; }
.game-data-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid #393941; border-radius: 8px; background: rgb(0 0 0 / 18%); }
.game-data-summary strong { color: #f1be62; font-size: 14px; }
.game-data-summary span { color: var(--muted); font-size: 11px; }
.game-data-form-container { display: grid; gap: 16px; }
.game-data-form { display: grid; gap: 16px; }
.game-data-details { border: 1px solid #393941; border-radius: 8px; padding: 12px; }
.game-data-details summary { color: #d4c2ed; cursor: pointer; font-size: 12px; font-weight: 700; }
.game-data-table-wrap { max-width: 100%; margin-top: 12px; overflow-x: auto; }
.game-data-table { width: 100%; min-width: 740px; border-collapse: collapse; }
.game-data-table th, .game-data-table td { padding: 6px; border-bottom: 1px solid #29282f; text-align: left; }
.game-data-table th { color: #c4bdce; font-size: 10px; white-space: nowrap; }
.game-data-table td:first-of-type { min-width: 110px; }
.game-data-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.game-data-item-section { display: grid; gap: 9px; }
.game-data-item-section h3 { margin: 0; color: #f1be62; font-size: 14px; }
.game-data-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 9px; }
.game-data-item-card { display: grid; min-width: 0; justify-items: center; gap: 5px; }
.game-data-item-slot.inv-slot {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid #3a3228;
  border-radius: 0;
  background: rgb(18 16 14 / 92%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 55%);
  cursor: pointer;
}
.game-data-item-slot.inv-slot.filled,
.game-data-item-slot.inv-slot:hover,
.game-data-item-slot.inv-slot:focus-visible {
  border-color: #d4af6e;
  box-shadow: inset 0 0 0 1px rgb(212 175 110 / 35%), 0 0 10px rgb(212 175 110 / 18%);
}
.game-data-item-slot .equipment-icon, .game-data-item-slot .equipment-icon-placeholder {
  width: 70%;
  height: 70%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
.game-data-item-slot .equipment-icon-placeholder { font-size: 8px; text-align: center; }
.game-data-item-slot-number { position: absolute; top: 1px; left: 3px; color: #c4bdce; font-size: 8px; line-height: 1; }
.game-data-item-quantity { position: absolute; right: 2px; bottom: 1px; z-index: 1; padding: 1px 3px; background: rgb(0 0 0 / 82%); color: #f0d9a0; font-size: 9px; font-weight: 700; line-height: 1.1; text-shadow: 0 1px 2px #000; }
.game-data-item-empty { color: #756b5a; font-size: 19px; line-height: 1; }
.game-data-item-name { max-width: 100%; overflow: hidden; color: #f1be62; font-size: 10px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.game-data-item-id { width: 68px !important; min-height: 28px !important; padding: 4px !important; text-align: center; font-size: 10px !important; }
.game-data-drop-rate { color: #d4c2ed; font-size: 9px; line-height: 1.3; text-align: center; }
.game-data-shop-frame { width: min(100%, 340px); padding: 8px; border: 2px solid #625143; background: linear-gradient(145deg, #33271f, #171310 30%, #241b16); box-shadow: inset 0 0 0 2px #18120e, 0 8px 20px rgb(0 0 0 / 24%); }
.game-data-shop-header { display: grid; min-height: 31px; margin-bottom: 8px; place-items: center; border: 1px solid #8a6743; background: linear-gradient(#68432e, #321f16); color: #f0d9a0; font: 600 13px Georgia, "Times New Roman", serif; text-shadow: 0 1px 2px #000; }
.game-data-item-grid-shop { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid #5b4b3e; background: rgb(10 8 7 / 78%); }
.game-data-item-grid-shop .game-data-item-card { gap: 3px; }
.game-data-item-grid-shop .game-data-item-slot.inv-slot { width: 100%; height: auto; aspect-ratio: 1; }
.game-data-item-grid-shop .game-data-item-name { display: none; }
.game-data-item-grid-shop .game-data-item-id { width: min(100%, 62px) !important; }
.game-data-item-editor { width: min(460px, calc(100% - 24px)); max-width: none; max-height: min(720px, calc(100dvh - 24px)); padding: 0; overflow: auto; border: 1px solid #80634a; background: linear-gradient(145deg, #2b1d16, #130d0a 76%); box-shadow: 0 24px 80px rgb(0 0 0 / 78%), inset 0 0 0 2px rgb(255 255 255 / 2%); color: #e8dccb; }
.game-data-item-editor::backdrop { background: rgb(5 3 2 / 78%); backdrop-filter: blur(5px); }
.game-data-item-editor-card { display: grid; gap: 16px; padding: 22px; }
.game-data-item-editor-card h2 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid #574237; color: #f2dfc1; font: 600 20px/1.25 Georgia, "Times New Roman", serif; }
.game-data-item-editor-form { display: grid; gap: 14px; }
.game-data-item-editor-form .game-data-fieldset { padding: 12px; }
.game-data-item-editor-id { display: grid; grid-template-columns: minmax(0, 1fr); }
.game-data-item-editor-effects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-data-item-editor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.game-data-item-editor-actions .button { min-width: 100px; }
.game-data-mix-recipes-frame { width: 100%; }
.game-data-mix-recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; padding: 10px; border: 1px solid #5b4b3e; background: rgb(10 8 7 / 78%); }
.game-data-mix-recipe-grid > .game-data-help { grid-column: 1 / -1; }
.game-data-mix-recipe-card { display: grid; min-width: 0; justify-items: center; gap: 5px; }
.game-data-mix-recipe-card .game-data-item-slot { width: 52px; height: 52px; }
.game-data-mix-recipe-card .game-data-item-slot.selected { border-color: #f1be62; box-shadow: inset 0 0 0 1px rgb(241 190 98 / 55%), 0 0 12px rgb(241 190 98 / 35%); }
.game-data-mix-item-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.game-data-mix-item-card { display: grid; min-width: 0; justify-items: center; gap: 5px; }
.game-data-mix-item-card .game-data-item-slot { width: 52px; height: 52px; }
.game-data-mix-inventory { width: min(100%, 620px); }
.game-data-mix-actions { flex-wrap: wrap; justify-content: flex-start; }
.game-data-ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-data-effect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-page > h1 { margin-bottom: 8px; }
.admin-dashboard { display: grid; gap: 24px; margin: 28px 0; padding: clamp(20px, 3vw, 32px); border: 1px solid #3b3151; border-radius: 16px; background: radial-gradient(ellipse at top right, rgb(154 92 246 / 13%), transparent 48%), linear-gradient(145deg, #19171f, #111216 75%); box-shadow: 0 20px 55px rgb(0 0 0 / 24%); }
.admin-dashboard-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; }
.admin-dashboard-heading > .eyebrow { grid-column: 1; margin: 0; color: #c2a4ff; }
.admin-dashboard-heading h2 { grid-column: 1; margin: 0; font: 700 clamp(23px, 3vw, 31px)/1.2 Inter, "Segoe UI", sans-serif; letter-spacing: -.025em; }
.admin-dashboard-heading > p:not(.eyebrow) { grid-column: 1; max-width: 650px; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-dashboard-heading .portal-toolbar { grid-column: 2; grid-row: 1 / span 3; }
.admin-dashboard-heading .portal-toolbar p { color: #c4bdce; font-size: 12px; }
.admin-dashboard-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-dashboard-card { display: grid; min-height: 166px; align-content: start; gap: 10px; padding: 18px; border: 1px solid #35313d; border-radius: 12px; background: rgb(12 12 16 / 66%); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.admin-dashboard-card:hover { transform: translateY(-2px); border-color: #8d68c5; background: #1b1723; }
.admin-dashboard-card > span:first-child { color: #bd9cf2; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.admin-dashboard-card strong { font-size: 15px; }
.admin-dashboard-card > span:nth-child(3) { color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-dashboard-card .admin-dashboard-card-action { align-self: end; margin-top: auto; color: #d3baff; font-size: 11px; font-weight: 650; }
.admin-boss-notice, .admin-boss-help { margin: 0; padding: 13px 15px; border: 1px solid #6b5228; border-radius: 8px; background: rgb(241 190 98 / 8%); color: #f0d39a; font-size: 12px; line-height: 1.7; }
.admin-boss-help { border-color: #3b3151; background: rgb(154 92 246 / 7%); color: #d4c2ed; }
.admin-page > .configuration-panel, .admin-page > .portal-form { scroll-margin-top: 24px; }
.form-message { min-height: 20px; margin: 0; color: #f1be62; font-size: 12px; line-height: 1.6; }
.dashboard-list { display: grid; gap: 10px; margin-top: 28px; }
.dashboard-item { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dashboard-item h3 { margin: 0 0 8px; font: 650 17px Inter, "Segoe UI", sans-serif; }
.dashboard-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.portal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkbox-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.checkbox-row input { width: auto; min-height: 0; accent-color: var(--gold); }

@media (max-width: 760px) {
  .page-width { width: min(100% - 36px, 560px); }
  .site-header { height: 72px; padding-inline: 18px; }
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 28px; }
  .brand strong { font-size: 10px; }
  .brand small { font-size: 7px; }
  .main-nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .button { min-height: 34px; padding-inline: 10px; font-size: 10px; }
  .hero { min-height: 720px; min-height: min(800px, 94svh); }
  .hero { background-position: 52% center; }
  .hero-shade { background: linear-gradient(90deg, rgb(10 13 17 / 65%) 0%, rgb(10 13 17 / 43%) 65%, rgb(10 13 17 / 23%) 100%); }
  .hero h1 { font-size: clamp(43px, 11vw, 64px); }
  .hero-copy { font-size: 13px; }
  .hero-index { right: 18px; bottom: 24px; }
  .intro-section { grid-template-columns: 1fr; gap: 22px; padding-block: 78px; }
  .server-status-grid { grid-template-columns: 1fr; }
  .server-status-card { padding-inline: 14px; }
  .ranking-section { padding-block: 55px; }
  .ranking-refresh { align-items: end; flex-direction: column; gap: 8px; }
  .ranking-search { width: 100%; }
  .ranking-table th, .ranking-table td { padding: 11px 12px; }
  .equipment-grid { width: min(455px, 100%); }
  .rank-player { padding: 17px; }
  .intro-copy { font-size: 13px; }
  .news-section { padding-block: 62px; }
  .section-topline { align-items: start; }
  .admin-dashboard { gap: 18px; margin-block: 22px; padding: 19px; }
  .admin-dashboard-heading { grid-template-columns: 1fr; }
  .admin-dashboard-heading .portal-toolbar { grid-column: 1; grid-row: auto; }
  .admin-dashboard-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .admin-dashboard-card { min-height: 155px; padding: 14px; }
  .game-data-picker, .game-data-grid, .game-data-ingredients { grid-template-columns: 1fr; }
  .game-data-mix-item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-data-mix-recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-data-item-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 7px; }
  .game-data-panel { padding: 18px; }
  .game-data-fieldset { padding: 12px; }
  .section-caption { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .rules-section { padding-block: 48px; }
  .rules-card { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
  .rules-emblem { width: 44px; height: 44px; font-size: 19px; }
  .rules-card h2 { font-size: 22px; }
  .rules-card .text-link { grid-column: 2; }
  .account-callout { flex-direction: column; padding-block: 25px 70px; }
  .account-callout h2 { font-size: 30px; }
  .footer-content { min-height: 130px; flex-wrap: wrap; justify-content: flex-start; padding-block: 20px; }
  .footer-content p { order: 3; width: 100%; }
  .copyright { margin-left: auto; }
  .subpage { padding-top: 115px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.motion-ready [data-reveal] { opacity: 1; transform: none; }
}

:root {
  --gold: #c99a4c;
  --accent-2: #83c995;
  --warn: #e4bd75;
  --muted: #a39a8b;
  --line: #403320;
  --panel: #14110c;
  --panel-strong: #1d180f;
}

body { background: #090806; }
:focus-visible { outline-color: #e9c779; }
.site-header {
  height: 82px;
  border-bottom-color: rgb(207 164 88 / 20%);
  background: linear-gradient(180deg, rgb(6 5 4 / 92%), rgb(6 5 4 / 56%));
  backdrop-filter: none;
}
.brand-logo { width: 39px; height: 39px; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: .09em; }
.brand small { color: #c2ad86; font-size: 8px; letter-spacing: .18em; }
.main-nav { gap: clamp(15px, 2.3vw, 32px); color: #ded3c0; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.main-nav a:hover, .text-link:hover { color: #f0cc81; }
.button {
  border-radius: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button-quiet { border-color: rgb(220 181 108 / 55%); color: #f0d59e; }
.button-quiet:hover, .button-outline:hover { background: rgb(201 154 76 / 12%); }
.button-gold {
  border-color: #e7bd70;
  background: linear-gradient(180deg, #e4bd72, #ac762b);
  color: #1a1207;
  box-shadow: 0 5px 20px rgb(158 103 28 / 25%);
}
.button-gold:hover { background: linear-gradient(180deg, #f0d08d, #bd8739); }
.button-outline { border-color: #887148; color: #f0e6d2; }
.hero {
  min-height: min(920px, 100svh);
  background:
    linear-gradient(180deg, rgb(7 6 4 / 63%) 0%, rgb(7 6 4 / 46%) 44%, rgb(7 6 4 / 76%) 100%),
    url("/fundo.png") center 48% / cover no-repeat;
}
.hero-shade { background: radial-gradient(ellipse at center, rgb(8 6 4 / 8%) 0%, rgb(8 6 4 / 20%) 55%, rgb(8 6 4 / 58%) 100%); }
.hero-content { display: flex; flex-direction: column; align-items: center; padding-top: 90px; text-align: center; }
.hero-logo { display: block; width: clamp(155px, 19vw, 245px); height: auto; margin: 0 auto 4px; filter: drop-shadow(0 12px 22px rgb(0 0 0 / 60%)); }
.eyebrow { color: #d7b66f; font-family: Georgia, "Times New Roman", serif; font-size: 10px; letter-spacing: .2em; }
.status-dot { background: #d6ae61; box-shadow: 0 0 10px rgb(214 174 97 / 60%); }
.hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 4px 22px #000;
}
.hero h1 span { color: #e2bd72; }
.hero-copy { max-width: 600px; margin-bottom: 17px; color: #ded3c0; font-size: 16px; line-height: 1.7; text-shadow: 0 2px 12px #000; }
.hero-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0 0 24px; }
.hero-highlights span { padding: 8px 12px; border: 1px solid rgb(213 175 102 / 42%); background: rgb(9 7 5 / 48%); color: #e7d3aa; font: 700 9px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .1em; text-transform: uppercase; }
.hero-actions { justify-content: center; }
.hero-index { color: #d4c19c; font-family: Georgia, "Times New Roman", serif; }
.hero-index span { color: #e4bd72; }
.hero-index i { background: #c99a4c; }
.status-section { padding-top: 64px; }
.ranking-section { padding-block: 74px 86px; }
.section-topline { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.section-topline h2, .section-heading h2, .rules-card h2, .account-callout h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .01em;
}
.ranking-table th { color: #c0ad89; }
.ranking-table tbody tr:hover { background: rgb(201 154 76 / 8%); }
.rank-number, .rank-name-button, .equipment-slot strong, .news-card time, .text-link { color: #e0bd78; }
.rank-name-button:hover { color: #ffe2a3; }
.ranking-search input:focus, .portal-form input:focus, .portal-form textarea:focus, .portal-form select:focus { border-color: #c99a4c; }
.rank-player, .server-status-card, .news-card, .rules-card, .dashboard-item, .portal-form {
  border-radius: 2px;
  border-color: #493a25;
  background: linear-gradient(145deg, rgb(24 19 12 / 96%), rgb(15 12 8 / 98%));
}
.equipment-slot { border-radius: 2px; border-color: #493a25; background: #100d08; }
.intro-section { border-top: 1px solid var(--line); }
.news-section { border-color: var(--line); background: linear-gradient(180deg, #100d08, #090806); }
.rules-emblem { border-color: rgb(201 154 76 / 42%); border-radius: 2px; background: rgb(201 154 76 / 9%); color: #e0bd78; }
.site-footer { border-color: var(--line); background: #070605; }
.portal-form input, .portal-form textarea, .portal-form select, .ranking-search input { border-radius: 2px; border-color: #51412a; background: #0b0906; }
.portal-form label { color: #e4d8c2; }
.form-message { color: #e4bd75; }
.form-help { margin: -10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 760px) {
  .site-header { height: 70px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand strong { white-space: nowrap; }
  .brand small { display: none; }
  .main-nav { display: none; }
  .header-actions .button { padding-inline: 9px; font-size: 9px; letter-spacing: .035em; white-space: nowrap; }
  .hero { min-height: min(820px, 100svh); background-position: 50% center; }
  .hero-shade { background: linear-gradient(180deg, rgb(7 6 4 / 55%), rgb(7 6 4 / 38%) 50%, rgb(7 6 4 / 75%)); }
  .hero-content { padding-top: 76px; }
  .hero-logo { width: clamp(150px, 42vw, 210px); margin-bottom: 0; }
  .hero h1 { font-size: clamp(29px, 8.2vw, 38px); letter-spacing: 0; }
  .hero-copy { max-width: 430px; font-size: 14px; }
  .hero-highlights { max-width: 370px; gap: 7px; }
  .hero-highlights span { font-size: 8px; }
}

.site-header { position: fixed; }
section[id], aside[id] { scroll-margin-top: 96px; }
.mobile-menu { display: none; }
.realm-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 20px;
  align-items: stretch;
  padding-block: 54px 70px;
}
.status-section {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 100%, rgb(135 89 29 / 13%), transparent 65%),
    linear-gradient(145deg, #15110b, #0d0a07);
}
.status-section .section-topline { margin-bottom: 22px; }
.status-section .section-topline h2, .realm-news-panel .section-topline h2 {
  font: 700 clamp(22px, 2.2vw, 29px)/1.2 Georgia, "Times New Roman", serif;
}
.status-section .section-caption { white-space: nowrap; }
.server-status-grid { gap: 10px; }
.server-status-card {
  min-width: 0;
  min-height: 78px;
  padding: 13px;
}
.server-status-card h3 { color: #f1e7d5; font-family: Georgia, "Times New Roman", serif; }
.server-player-count strong { color: #e5c27d; }
.realm-feature {
  position: relative;
  display: flex;
  min-height: 180px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  margin-top: 16px;
  padding: 17px 20px;
  border: 1px solid rgb(201 154 76 / 35%);
  background:
    linear-gradient(90deg, rgb(8 6 4 / 94%), rgb(8 6 4 / 65%)),
    url("/fundo.png") center 64% / cover;
}
.realm-feature::after {
  position: absolute;
  right: -25px;
  bottom: -54px;
  width: 170px;
  height: 170px;
  border: 1px solid rgb(216 176 102 / 14%);
  border-radius: 50%;
  content: "";
}
.realm-feature img {
  position: relative;
  z-index: 1;
  width: clamp(84px, 12vw, 132px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 15px #000);
}
.realm-feature > div { position: relative; z-index: 1; }
.realm-feature .eyebrow { margin-bottom: 7px; font-size: 9px; }
.realm-feature h2 { margin: 0 0 7px; font: 700 24px/1.15 Georgia, "Times New Roman", serif; }
.realm-feature p:not(.eyebrow) { max-width: 330px; margin: 0 0 10px; color: #c4b9a6; font-size: 12px; line-height: 1.6; }
.realm-feature .text-link { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.realm-news-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0%, rgb(132 81 25 / 12%), transparent 48%),
    linear-gradient(145deg, #17120b, #0d0a07);
}
.realm-news-panel .section-topline { align-items: center; margin-bottom: 20px; }
.realm-news-panel .section-caption { padding-bottom: 0; text-align: right; }
.realm-news-panel .news-grid { grid-template-columns: 1fr; gap: 9px; }
.realm-news-panel .news-card {
  min-height: 0;
  padding: 15px 16px;
  background: rgb(9 7 5 / 48%);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.realm-news-panel .news-card:hover { transform: translateY(-2px); border-color: #8c6a34; background: rgb(33 24 12 / 75%); }
.realm-news-panel .news-card time { font-size: 9px; }
.realm-news-panel .news-card h3 { margin: 7px 0 5px; font-size: 15px; line-height: 1.35; }
.realm-news-panel .news-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.realm-news-panel .empty-state { border: 0; background: transparent; }
.section-topline .eyebrow { position: relative; display: inline-flex; align-items: center; gap: 9px; }
.section-topline .eyebrow::before { width: 13px; height: 1px; background: var(--gold); content: ""; }
.ranking-section { padding-top: 45px; }
.ranking-section > .section-topline { margin-bottom: 25px; }
.ranking-section > .section-topline .eyebrow::before { display: none; }
.ranking-section > .ranking-note { margin: 0 0 18px; }
.table-wrap, .ranking-table { border-radius: 0; }
.ranking-table th { background: #17120b; }
.ranking-table tbody tr:nth-child(even) { background: rgb(255 255 255 / 1.5%); }
.ranking-table tbody tr:hover { background: rgb(201 154 76 / 9%); }
.rules-card { position: relative; overflow: hidden; }
.rules-card::after {
  position: absolute;
  right: 15%;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #97733a, transparent);
  content: "";
}
.account-callout {
  position: relative;
  align-items: center;
  margin-bottom: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(8 6 4 / 96%), rgb(8 6 4 / 73%)),
    url("/fundo.png") center 70% / cover;
}
.account-callout h2 { font-size: clamp(27px, 3.2vw, 38px); }
.account-callout-action { max-width: 440px; }
.account-callout-action .hero-actions { justify-content: flex-start; }
.community-links {
  position: fixed;
  z-index: 6;
  right: 18px;
  bottom: 22px;
  display: grid;
  gap: 9px;
}
.community-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(213 175 102 / 40%);
  border-radius: 3px;
  background: rgb(10 8 5 / 92%);
  color: #e9d8b5;
  box-shadow: 0 4px 14px rgb(0 0 0 / 45%);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.community-links a:hover { transform: translateY(-2px); border-color: #e4bd72; color: #fff0c7; }
.community-links svg { width: 19px; height: 19px; fill: currentColor; }
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 70px;
  padding: 27px 32px;
  border: 1px solid #493a25;
  background:
    linear-gradient(100deg, rgb(12 9 5 / 97%), rgb(19 14 8 / 84%)),
    url("/fundo.png") center 78% / cover;
}
.community-banner .eyebrow { margin-bottom: 8px; }
.community-banner h2 { margin: 0 0 7px; font: 700 clamp(22px, 3vw, 31px)/1.2 Georgia, "Times New Roman", serif; }
.community-banner p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.community-banner-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.site-footer .footer-content { gap: 28px; }
.site-footer .copyright { white-space: nowrap; }
.mobile-menu summary {
  min-width: 56px;
  padding: 10px 11px;
  border: 1px solid #806332;
  background: linear-gradient(180deg, #21180b, #120e08);
  color: #eed39c;
  cursor: pointer;
  font: 700 10px Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
  list-style: none;
  text-align: center;
  text-transform: uppercase;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { margin-left: 7px; color: #d1a552; content: "☰"; }
.mobile-menu[open] summary::after { content: "×"; }
.mobile-menu-links {
  position: absolute;
  top: calc(100% + 10px);
  right: -1px;
  display: grid;
  min-width: 205px;
  padding: 7px;
  border: 1px solid #594427;
  background: #100d08;
  box-shadow: 0 12px 28px rgb(0 0 0 / 65%);
}
.mobile-menu-links a { padding: 12px 13px; color: #e4d8c2; font: 700 11px Georgia, "Times New Roman", serif; letter-spacing: .07em; text-transform: uppercase; }
.mobile-menu-links a + a { border-top: 1px solid rgb(201 154 76 / 15%); }
.mobile-menu-links a:hover { background: rgb(201 154 76 / 10%); color: #f0cc81; }

@media (min-width: 761px) and (max-width: 1000px) {
  .site-header { height: 72px; padding-inline: 22px; }
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand strong { font-size: 10px; }
  .brand small { display: none; }
  .main-nav, .header-actions { display: none; }
  .mobile-menu { position: relative; display: block; margin-left: auto; }
}

@media (max-width: 900px) {
  .site-header { padding-inline: 22px; }
  .main-nav { gap: 15px; font-size: 10px; }
  .header-actions .button { padding-inline: 11px; font-size: 9px; }
  .realm-overview { grid-template-columns: minmax(0, 1fr) minmax(290px, .85fr); gap: 12px; }
  .status-section, .realm-news-panel { padding: 17px; }
  .server-status-grid { grid-template-columns: 1fr; }
  .realm-feature { padding-inline: 14px; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding-inline: 13px; }
  .brand { gap: 6px; }
  .brand-logo { width: 27px; height: 27px; }
  .brand strong { font-size: 9px; letter-spacing: .04em; }
  .brand small { display: none; }
  .main-nav, .header-actions { display: none; }
  .mobile-menu { position: relative; display: block; margin-left: auto; }
  .realm-overview { grid-template-columns: 1fr; gap: 14px; padding-block: 28px 44px; }
  .status-section, .realm-news-panel { padding: 18px; }
  .status-section .section-topline h2, .realm-news-panel .section-topline h2 { font-size: 23px; }
  .status-section .section-caption { white-space: normal; text-align: right; }
  .server-status-grid { grid-template-columns: 1fr 1fr; }
  .server-status-card { padding: 12px; }
  .realm-feature { min-height: 150px; }
  .realm-news-panel .section-topline { align-items: flex-start; }
  .realm-news-panel .section-caption { display: none; }
  .ranking-section { padding-block: 32px 55px; }
  .ranking-section > .section-topline { align-items: flex-start; gap: 12px; }
  .ranking-section > .section-topline h2 { font-size: 26px; }
  .account-callout { gap: 18px; margin-bottom: 24px; padding: 21px; }
  .account-callout-action .hero-actions { flex-direction: column; align-items: stretch; }
  .account-callout-action .hero-actions .button { width: 100%; }
  .community-banner { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 42px; padding: 20px; }
  .community-banner-actions { width: 100%; justify-content: stretch; }
  .community-banner-actions .button { flex: 1; padding-inline: 10px; font-size: 9px; }
  .community-links { right: 10px; bottom: 12px; gap: 7px; }
  .community-links a { width: 38px; height: 38px; }
  .footer-content { padding-right: 45px; }
}

@media (max-width: 390px) {
  .server-status-grid { grid-template-columns: 1fr; }
  .realm-feature { gap: 8px; padding-inline: 10px; }
  .realm-feature img { width: 74px; }
  .realm-feature h2 { font-size: 21px; }
  .realm-feature p:not(.eyebrow) { font-size: 11px; }
  .ranking-refresh { align-items: flex-end; }
  .ranking-refresh .section-caption { font-size: 8px; }
  .ranking-section > .section-topline h2 { font-size: 23px; }
}

@media (max-width: 760px) {
  section[id], aside[id] { scroll-margin-top: 78px; }
}

[hidden] { display: none !important; }
.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-block: 14px 42px;
  padding: 28px 32px;
  border: 1px solid #493a25;
  background:
    linear-gradient(90deg, rgb(8 6 4 / 96%), rgb(8 6 4 / 73%)),
    url("/fundo.png") center 70% / cover;
}
.download-section h2 {
  margin-bottom: 8px;
  font: 700 clamp(24px, 3vw, 34px)/1.15 Georgia, "Times New Roman", serif;
}
.download-section p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.download-actions { display: grid; justify-items: end; gap: 8px; }
.download-actions .section-caption { margin: 0; }
.download-section .download-actions .platform-unavailable {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgb(201 154 76 / 28%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}
.player-store { display: grid; gap: 12px; margin-top: 38px; }
.player-store h2 { margin: 0; font: 700 27px/1.2 Georgia, "Times New Roman", serif; }
.player-store > .eyebrow { margin: 0; }
.player-store > .subpage-lead, .player-store > .form-message { margin: 0; }
.player-storage { display: grid; gap: 12px; margin-top: 28px; padding: 22px; border: 1px solid #51412a; background: linear-gradient(145deg, rgb(201 154 76 / 8%), rgb(12 10 7 / 92%) 62%); }
.player-storage h2 { margin: 0; font: 700 25px/1.2 Georgia, "Times New Roman", serif; }
.player-storage > .eyebrow, .player-storage > .subpage-lead { margin: 0; }
.storage-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.storage-item { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 4px 10px; min-height: 66px; padding: 10px; border: 1px solid rgb(201 154 76 / 24%); background: #0b0906; }
.storage-item .package-item { grid-row: span 3; }
.storage-item strong { color: #e5c27e; font-size: 12px; }
.storage-item > span:not(.package-item) { color: #ece6db; font-size: 12px; }
.storage-item small { color: #a89b87; font-size: 10px; overflow-wrap: anywhere; }
.ranking-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 18px 0 12px; }
.ranking-filter { display: grid; gap: 5px; color: #c0ad89; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ranking-filter select { min-height: 39px; min-width: 145px; padding: 8px 30px 8px 10px; border: 1px solid #51412a; border-radius: 2px; background: #0b0906; color: #eee5d4; }
.ranking-result-count { margin-left: auto; color: #b5a58b; font-size: 12px; }
.rank-evolution { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid rgb(201 154 76 / 34%); color: #e2c27f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.rank-class { color: #d6d0c4; font-weight: 650; }
.ranking-table tbody tr { transition: background .18s ease; }
.donation-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.donation-package {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 19px;
  border: 1px solid #594427;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(201 154 76 / 12%), transparent 54%),
    linear-gradient(145deg, #17120b, #0d0a07);
}
.donation-package h3 { margin: 0; font: 700 20px Georgia, "Times New Roman", serif; }
.donation-package-credits { color: #e5c27d; font-size: 16px; }
.donation-package-price { margin: 0; color: #ddd0b8; font-size: 14px; }
.donation-package .button { width: 100%; }
.donation-order-history { display: grid; gap: 8px; margin-top: 12px; }
.donation-order-history h3 { margin: 0; font-size: 15px; }
.donation-order { margin: 0; padding: 11px 13px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-donation-packages { display: grid; gap: 12px; }
.donation-package-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  background: rgb(9 7 5 / 48%);
}
.donation-package-editor h3 { grid-column: 1 / -1; margin: 0; font: 700 18px Georgia, "Times New Roman", serif; }
.donation-package-editor label { display: grid; gap: 7px; color: #e4d8c2; font-size: 11px; }
.donation-package-credit-preview { align-self: center; margin: 0; color: var(--muted); font-size: 11px; }
.donation-package-editor input, .donation-package-create input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #51412a;
  background: #0b0906;
  color: #eeeef2;
}
.donation-package-editor .form-message { grid-column: 1 / -1; margin: 0; }
.donation-package-editor .portal-toolbar { grid-column: 1 / -1; justify-content: flex-start; }
.donation-package-create {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.donation-package-create label { display: grid; gap: 7px; color: #e4d8c2; font-size: 11px; }
.donation-package-create .form-message,
.donation-package-create .donation-credit-preview { grid-column: 1 / -1; margin: 0; }
.donation-package-create button { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 760px) {
  .download-section { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; padding: 21px; }
  .download-actions { width: 100%; justify-items: stretch; }
  .download-actions .button { width: 100%; }
  .donation-package-editor, .donation-package-create { grid-template-columns: 1fr; }
  .donation-package-create .form-message, .donation-package-create .donation-credit-preview,
  .donation-package-create button,
  .donation-package-editor h3, .donation-package-editor .form-message,
  .donation-package-editor .portal-toolbar { grid-column: auto; }
  .donation-package-create button { justify-self: stretch; }
}

.server-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.server-status-card {
  min-height: 94px;
  border-color: #3a3022;
  background: linear-gradient(145deg, #17130d, #0e0c09);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.server-status-card:hover { transform: translateY(-3px); border-color: #8c6a34; box-shadow: 0 8px 22px rgb(0 0 0 / 24%); }
.server-status-card[data-state="partial"] .server-status-light { background: var(--warn); box-shadow: 0 0 0 4px rgb(241 190 98 / 12%); }
.server-status-card[data-stat="server"] .server-status-state,
.server-status-card[data-stat="players"] .server-status-state,
.server-status-card[data-stat="accounts"] .server-status-state,
.server-status-card[data-stat="characters"] .server-status-state {
  margin: 0;
  color: #e5c27d;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.server-status-card[data-stat="players"] .server-status-state,
.server-status-card[data-stat="accounts"] .server-status-state,
.server-status-card[data-stat="characters"] .server-status-state { color: #eeeef2; }
.turnstile-widget { min-height: 65px; }
.turnstile-widget:empty { min-height: 0; }
.turnstile-widget:not(:empty) { display: grid; justify-items: start; margin-block: 4px 12px; }
.news-card-image {
  display: block;
  width: 100%;
  max-height: 185px;
  margin: -15px -16px 12px;
  width: calc(100% + 32px);
  object-fit: cover;
}
.news-card-link:hover { color: #f0cc81; }
.news-read-more { display: inline-block; margin-top: 11px; font-size: 10px; }
.news-article-image {
  display: block;
  width: min(100%, 900px);
  max-height: 520px;
  margin: 28px 0;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #090806;
}
.news-article-body { max-width: 850px; color: #d0c8ba; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.news-admin-image-preview { display: block; width: min(100%, 420px); max-height: 240px; object-fit: contain; border: 1px solid var(--line); background: #090806; }
.news-card { overflow: hidden; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.news-card:hover { transform: translateY(-3px); border-color: #8c6a34; }
.package-items { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 3px; }
.package-item {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #594427;
  background: linear-gradient(145deg, #20190d, #0b0906);
}
.package-item .equipment-icon, .package-item .equipment-icon-placeholder { width: 42px; height: 42px; object-fit: contain; }
.package-item .equipment-icon-placeholder { font-size: 8px; text-align: center; }
.package-item-quantity {
  position: absolute;
  right: 2px;
  bottom: 1px;
  padding: 1px 3px;
  border-radius: 2px;
  background: rgb(0 0 0 / 80%);
  color: #f0cc81;
  font-size: 9px;
  font-weight: 700;
}
.donation-package { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.donation-package:hover { transform: translateY(-3px); border-color: #9a743b; box-shadow: 0 10px 25px rgb(0 0 0 / 25%); }
.donation-package-description { margin: 0; color: #c4b9a6; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.donation-package-original-price { margin: 0 0 -8px; color: var(--muted); font-size: 11px; text-decoration: line-through; }
.donation-coupon-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.donation-coupon-form label, .donation-coupon-create label { display: grid; flex: 1 1 220px; gap: 7px; color: #e4d8c2; font-size: 11px; }
.donation-coupon-form input, .donation-coupon-create input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #51412a;
  background: #0b0906;
  color: #eeeef2;
}
.donation-coupon-form .form-message { flex-basis: 100%; margin: 0; }
.donation-coupon-admin { margin-top: 20px; }
.donation-coupon-create { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block: 18px; }
.donation-coupon-create .form-message { flex-basis: 100%; margin: 0; }
.admin-coupon-list { display: grid; gap: 8px; }
.admin-coupon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); background: rgb(9 7 5 / 48%); }
.admin-coupon-row strong { color: #e5c27d; letter-spacing: .06em; }
.admin-coupon-row .section-caption { margin-right: auto; padding: 0; }
.admin-package-items { display: grid; grid-column: 1 / -1; gap: 8px; }
.admin-package-item { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(6, minmax(70px, .7fr)) auto; align-items: end; gap: 10px; }
.admin-package-item label { display: grid; gap: 6px; color: #e4d8c2; font-size: 10px; }
.admin-package-item input, .donation-package-editor textarea, .donation-package-create textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #51412a;
  background: #0b0906;
  color: #eeeef2;
}
.package-items-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }
.donation-package-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.donation-package-editor > label { align-self: stretch; }
.donation-package-editor .donation-package-credit-preview { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .server-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .server-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-status-card[data-stat="server"] .server-status-state,
  .server-status-card[data-stat="players"] .server-status-state,
  .server-status-card[data-stat="accounts"] .server-status-state,
  .server-status-card[data-stat="characters"] .server-status-state { font-size: 19px; }
  .donation-package-editor { grid-template-columns: 1fr; }
  .donation-package-editor .donation-package-credit-preview,
  .donation-package-editor .admin-package-items,
  .donation-package-editor .package-items-help { grid-column: auto; }
  .admin-package-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-package-item button { grid-column: 1 / -1; justify-self: start; }
  .donation-coupon-form > button, .donation-coupon-create > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .server-status-card:hover, .news-card:hover, .donation-package:hover { transform: none; }
}

/* Ranking: podium and compact, scannable player rows */
.ranking-section > .section-topline { margin-bottom: 18px; }
.ranking-section > .section-topline h2 { font-size: clamp(30px, 4vw, 42px); }
.ranking-refresh { display: none; }
.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 30px; padding: 12px; border: 1px solid rgb(201 154 76 / 24%); background: linear-gradient(110deg, rgb(36 27 14 / 90%), rgb(13 11 8 / 94%)); }
.ranking-evolution-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.ranking-evolution-tab { min-height: 38px; padding: 0 15px; border: 1px solid transparent; background: transparent; color: #b9ad99; cursor: pointer; font: 700 10px/1 Inter, "Segoe UI", sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.ranking-evolution-tab:hover { color: #fff0cc; }
.ranking-evolution-tab.is-active { border-color: rgb(201 154 76 / 48%); background: linear-gradient(135deg, rgb(201 154 76 / 19%), rgb(201 154 76 / 7%)); color: #f0cf88; box-shadow: inset 0 -2px #c99a4c; }
.ranking-tools { display: flex; align-items: center; gap: 13px; }
.ranking-filter { display: flex; align-items: center; gap: 9px; color: #a99a80; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ranking-filter select { min-height: 36px; min-width: 100px; padding: 7px 28px 7px 10px; border: 1px solid #51412a; border-radius: 2px; background: #0b0906; color: #eee5d4; }
.ranking-result-count { color: #e0bd78; font: 700 11px/1 Inter, "Segoe UI", sans-serif; white-space: nowrap; }
.ranking-tools #ranking-updated { color: #837966; font-size: 9px; white-space: nowrap; }
.ranking-tools #ranking-refresh { width: 36px; min-width: 36px; padding: 0; font-size: 17px; }
.ranking-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 13px; max-width: 920px; margin: 0 auto 45px; }
.ranking-podium[hidden] { display: none; }
.ranking-podium-card { position: relative; display: flex; min-height: 222px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 11px; overflow: hidden; padding: 27px 15px 17px; border: 1px solid rgb(201 154 76 / 29%); background: radial-gradient(ellipse at 50% 0%, rgb(201 154 76 / 14%), transparent 62%), linear-gradient(160deg, #21190f, #0d0b08 72%); text-align: center; }
.ranking-podium-card::before { position: absolute; top: 0; left: 16%; width: 68%; height: 1px; background: linear-gradient(90deg, transparent, #c99a4c, transparent); content: ""; }
.ranking-podium-1 { min-height: 255px; border-color: rgb(224 189 120 / 65%); box-shadow: 0 16px 38px rgb(0 0 0 / 28%), inset 0 0 35px rgb(201 154 76 / 5%); }
.ranking-podium-1::after { position: absolute; top: 14px; right: 15px; color: #e0bd78; content: "✦"; font-size: 15px; }
.ranking-podium-place { color: #a99777; font-size: 9px; font-weight: 750; letter-spacing: .19em; }
.ranking-podium-1 .ranking-podium-place { color: #f2d48e; }
.ranking-evolution-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border: 1px solid rgb(201 154 76 / 28%); color: #d7c49e; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.evolution-celestial { border-color: rgb(128 170 211 / 38%); background: rgb(68 115 168 / 12%); color: #a9ccef; }
.evolution-arch { border-color: rgb(185 129 211 / 35%); background: rgb(132 74 161 / 11%); color: #d2a9e4; }
.evolution-mortal { border-color: rgb(201 154 76 / 30%); background: rgb(201 154 76 / 9%); color: #e2c27f; }
.ranking-podium-name { max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: #f3ead8; cursor: pointer; font: 700 clamp(17px, 2vw, 21px)/1.2 Georgia, "Times New Roman", serif; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-1 .ranking-podium-name { color: #ffe4a5; font-size: clamp(20px, 2.4vw, 27px); }
.ranking-podium-level { color: #e0bd78; font-size: 12px; letter-spacing: .06em; }
.ranking-podium-meta { display: flex; align-items: center; gap: 9px; color: #8f8574; font-size: 9px; }
.ranking-class-badge { padding: 4px 6px; border: 1px solid #544328; color: #d0bd96; font-weight: 750; }
.ranking-podium-equipment { padding: 0; border: 0; background: none; color: #a79575; cursor: pointer; font-size: 9px; text-decoration: underline; text-decoration-color: rgb(167 149 117 / 38%); text-underline-offset: 4px; }
.ranking-podium-equipment:hover, .ranking-row-equipment:hover { color: #ffe4a5; }
.ranking-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 10px; padding-bottom: 11px; border-bottom: 1px solid rgb(201 154 76 / 25%); }
.ranking-list-heading .eyebrow { color: #aa956d; font-size: 8px; letter-spacing: .18em; }
.ranking-list-heading h3 { margin: 4px 0 0; color: #efe5d2; font: 600 19px/1.1 Georgia, "Times New Roman", serif; }
.ranking-list-hint { color: #817866; font-size: 10px; }
.ranking-list { display: grid; gap: 5px; }
.ranking-row { display: grid; grid-template-columns: 48px minmax(170px, 1fr) minmax(100px, 140px) 70px 105px; align-items: center; gap: 14px; min-height: 64px; padding: 9px 16px; border: 1px solid rgb(255 255 255 / 5%); background: linear-gradient(95deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 1%)); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.ranking-row:hover { transform: translateX(3px); border-color: rgb(201 154 76 / 36%); background: linear-gradient(95deg, rgb(201 154 76 / 9%), rgb(255 255 255 / 1%)); }
.ranking-row-place { color: #8f8066; font: 700 12px/1 ui-monospace, Consolas, monospace; }
.ranking-row-identity { display: grid; gap: 4px; min-width: 0; }
.ranking-row-name { justify-self: start; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: #e9dfcc; cursor: pointer; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row-name:hover { color: #ffe4a5; }
.ranking-row-subtitle { overflow: hidden; color: #817866; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row-level { color: #e1bd78; font: 700 19px/1 Georgia, "Times New Roman", serif; text-align: center; }
.ranking-row-equipment { justify-self: end; padding: 8px 10px; border: 1px solid rgb(201 154 76 / 29%); background: rgb(201 154 76 / 5%); color: #c5ad7b; cursor: pointer; font-size: 9px; transition: .18s ease; }
.ranking-empty { grid-column: 1 / -1; margin: 0; padding: 27px 16px; border: 1px dashed rgb(201 154 76 / 26%); color: #aa9c84; font-size: 12px; text-align: center; }
.ranking-empty-compact { padding: 13px; border: 0; font-size: 10px; }

@media (max-width: 760px) {
  .ranking-toolbar { align-items: stretch; flex-direction: column; gap: 11px; margin: 18px 0 23px; padding: 9px; }
  .ranking-evolution-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .ranking-evolution-tab { padding-inline: 5px; font-size: 8px; letter-spacing: .07em; }
  .ranking-tools { justify-content: space-between; gap: 8px; }
  .ranking-filter { gap: 6px; font-size: 8px; }
  .ranking-filter select { min-width: 73px; }
  .ranking-result-count { margin-left: auto; font-size: 9px; }
  .ranking-tools #ranking-updated { display: none; }
  .ranking-podium { gap: 6px; margin-bottom: 30px; }
  .ranking-podium-card { min-height: 190px; gap: 8px; padding: 23px 6px 12px; }
  .ranking-podium-1 { min-height: 218px; }
  .ranking-podium-place { font-size: 7px; letter-spacing: .1em; }
  .ranking-podium-name { max-width: 100%; font-size: 13px; }
  .ranking-podium-1 .ranking-podium-name { font-size: 16px; }
  .ranking-podium-meta { flex-direction: column; gap: 5px; font-size: 8px; }
  .ranking-podium-equipment { font-size: 8px; }
  .ranking-evolution-badge { padding: 4px 5px; font-size: 7px; letter-spacing: .06em; }
  .ranking-list-hint { display: none; }
  .ranking-row { grid-template-columns: 28px minmax(0, 1fr) 48px; gap: 7px; min-height: 61px; padding: 8px; }
  .ranking-row-place { grid-row: 1 / 3; font-size: 10px; }
  .ranking-row-identity { grid-column: 2; }
  .ranking-row > .ranking-evolution-badge { grid-column: 2; grid-row: 2; }
  .ranking-row-level { grid-column: 3; grid-row: 1; font-size: 17px; }
  .ranking-row-equipment { grid-column: 3; grid-row: 2; padding: 5px 4px; font-size: 8px; }
}.ranking-hero-tag { display: inline-flex; align-items: center; gap: 9px; color: #bca97f; font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.ranking-hero-tag::before { width: 29px; height: 1px; background: linear-gradient(90deg, transparent, #c99a4c); content: ""; }

.player-account-tabs { display: flex; gap: 8px; margin: 26px 0 0; border-bottom: 1px solid rgb(201 154 76 / 30%); }
.player-account-tab { padding: 12px 18px; border: 1px solid transparent; border-bottom: 0; background: transparent; color: #a99a80; cursor: pointer; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.player-account-tab:hover { color: #fff0cc; }
.player-account-tab.is-active { border-color: rgb(201 154 76 / 35%); background: linear-gradient(180deg, rgb(201 154 76 / 13%), transparent); color: #e0bd78; }
.player-account-panel, .player-market-panel { padding: 22px; border: 1px solid rgb(201 154 76 / 20%); border-top: 0; background: linear-gradient(145deg, rgb(28 22 14 / 75%), rgb(11 9 6 / 92%)); }
.player-market-panel[hidden] { display: none; }
.player-market-panel h2 { margin: 0 0 10px; color: #efe5d2; font: 600 25px/1.15 Georgia, "Times New Roman", serif; }
.player-market-panel .form-message { max-width: 720px; margin-top: 14px; color: #c6b99f; }
.player-market-panel button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 760px) {
  .player-account-tab { flex: 1; padding: 11px 6px; font-size: 9px; letter-spacing: .04em; }
  .player-account-panel, .player-market-panel { padding: 15px; }
}

/* Guarda-carga com leitura visual da janela de banco do jogo */
.player-storage {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  gap: 0;
  margin: 30px auto 0;
  padding: 12px;
  overflow: hidden;
  border: 2px ridge #806c54;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(22 19 17 / 87%), rgb(14 12 11 / 94%)),
    url("/fundo.png") center / cover;
  box-shadow: 0 14px 35px rgb(0 0 0 / 48%), inset 0 0 0 2px rgb(0 0 0 / 78%), inset 0 0 32px rgb(181 143 94 / 10%);
}
.player-storage::before { position: absolute; inset: 5px; border: 1px solid rgb(180 151 116 / 25%); border-radius: 5px; content: ""; pointer-events: none; }
.bank-window-heading { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 39px; margin: 1px 6px 12px; border: 2px ridge #896b4d; border-radius: 24px; background: linear-gradient(180deg, #bc8150, #75472d 54%, #492c20); box-shadow: inset 0 1px rgb(255 220 170 / 36%), 0 2px 5px #000; }
.bank-window-heading h2 { margin: 0; color: #fff0d5; font: 600 16px/1 Georgia, "Times New Roman", serif; text-shadow: 0 1px 3px #28170f; }
.bank-window-ornament { color: #38251a; font: 700 25px/1 Georgia, serif; text-shadow: 0 1px rgb(255 218 174 / 34%); }
.bank-window-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px 8px; color: #aa9b87; font-size: 8px; letter-spacing: .1em; }
.bank-item-count { color: #e3c46e; font-size: 9px; letter-spacing: .03em; }
.bank-slot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 7px; border: 1px solid #4c4038; background: linear-gradient(135deg, rgb(7 6 6 / 70%), rgb(33 29 27 / 46%)); box-shadow: inset 0 0 13px #000; }
.bank-slot { display: grid; min-width: 0; aspect-ratio: 1 / .92; place-items: center; padding: 2px; border: 1px solid #68584d; border-radius: 1px; background: linear-gradient(145deg, #403a37, #282422 55%, #1c1918); box-shadow: inset 0 0 0 2px rgb(0 0 0 / 42%), inset 0 1px rgb(255 255 255 / 5%); }
.bank-slot:disabled { cursor: default; opacity: 1; }
.bank-slot.has-item { cursor: help; background: linear-gradient(145deg, #51453d, #302a26 58%, #211d1b); }
.bank-slot.has-item:hover { border-color: #e2c372; box-shadow: inset 0 0 0 2px rgb(0 0 0 / 42%), 0 0 7px rgb(225 190 107 / 38%); }
.bank-slot .package-item { width: 100%; height: 100%; border: 0; background: transparent; }
.bank-slot .package-item .equipment-icon, .bank-slot .package-item .equipment-icon-placeholder { width: min(100%, 43px); height: min(100%, 43px); }
.bank-storage-notice { min-height: 24px; margin: 7px 3px 2px; color: #a99b87; font-size: 9px; line-height: 1.5; text-align: center; }
.bank-window-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 5px 7px 0; }
.bank-coin-display { min-width: 115px; padding: 5px 8px; border: 1px solid #56483d; border-radius: 12px; background: linear-gradient(90deg, #171413, #25201d); color: #ddc16e; font-size: 9px; text-align: center; }
.bank-page-tabs { display: flex; gap: 4px; }
.bank-page-tab { width: 25px; height: 24px; border: 1px solid #594b3e; background: linear-gradient(#332c27, #171413); color: #c5b7a2; cursor: pointer; font-size: 10px; }
.bank-page-tab.is-active { border-color: #c7a755; color: #ffdf78; box-shadow: inset 0 0 8px rgb(218 174 75 / 25%); }
@media (max-width: 480px) {
  .player-storage { width: min(100%, 380px); padding: 9px; }
  .bank-slot-grid { gap: 3px; padding: 5px; }
  .bank-slot { aspect-ratio: 1 / 1; }
  .bank-slot .package-item .equipment-icon, .bank-slot .package-item .equipment-icon-placeholder { width: 38px; height: 38px; }
}
.market-content { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.market-page { width: min(100% - 32px, 1240px); }
.market-page > h1 { margin-bottom: 4px; font: 700 30px/1.1 Georgia, "Times New Roman", serif; }
.market-page > .subpage-lead { margin: 0 0 14px; font-size: 13px; }
.market-page > .portal-toolbar { margin: 0 0 14px; }
.player-market-panel { padding: 0; border: 1px solid #5b493d; background: #160f0b; box-shadow: 0 14px 35px rgb(0 0 0 / 38%), inset 0 0 0 1px rgb(255 255 255 / 2%); }
.player-market-panel > .eyebrow, .player-market-panel > h2, .player-market-panel > .subpage-lead { display: none; }
.market-balance-banner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; padding: 12px 18px; border: 1px solid #70553e; background: linear-gradient(110deg, #35251c, #211712); color: #e2cfb5; font-size: 13px; font-weight: 700; }
.market-balance-group { display: grid; gap: 4px; }
.market-balance-sales { padding-left: 14px; border-left: 1px solid #70553e; }
.market-balance-amount { color: #f3d88f; font-size: 19px; }
.market-shell { display: grid; gap: 0; overflow: hidden; border: 1px solid #352821; background: linear-gradient(180deg, #2b1d17, #1a120e 42%, #100b09); }
.market-shell-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 52px; padding: 0 14px; border-bottom: 1px solid #574237; background: linear-gradient(180deg, #382820, #251913); }
.market-shell-tab { position: relative; min-width: 0; padding: 12px 10px; border: 0; background: transparent; color: #a99a8e; cursor: pointer; font-size: 13px; font-weight: 700; }
.market-shell-tab:hover { color: #f3e5d0; }
.market-shell-tab.is-active { color: #fff2dc; text-shadow: 0 1px 5px rgb(224 175 108 / 35%); }
.market-shell-tab.is-active::after { position: absolute; right: 18%; bottom: 0; left: 18%; height: 2px; background: #c29a61; box-shadow: 0 0 9px rgb(231 185 111 / 50%); content: ""; }
.market-shell-panel { display: none; min-height: 390px; gap: 0; padding: 16px 18px 22px; }
.market-shell-panel.is-active { display: grid; }
.market-shell-panel > .market-section { min-width: 0; }
.market-wallet-tools { margin-bottom: 14px; padding: 0; }
.market-wallet-tools > summary { padding: 11px 14px; color: #e2cfb5; cursor: pointer; font-size: 12px; font-weight: 700; }
.market-wallet-content { padding: 0 14px 14px; }
.market-wallet-content > p { margin-top: 0; }
.market-sales-balance { padding: 10px 12px; border-left: 2px solid #c29a61; background: #241a14; color: #d7c5ae; }
.market-sales-balance strong { color: #f3d88f; }
.market-redemption-note { color: #c8b59d; font-size: 12px; }
.market-payout-section { display: grid; gap: 9px; margin-top: 14px; padding: 14px; border: 1px solid #584335; background: #211712; }
.market-payout-section > h3, .market-payout-section > .subpage-lead { margin: 0; }
.market-payout-profile { margin-top: 6px; }
.market-payout-profile .form-message { flex-basis: 100%; }
.market-payout-estimate { flex-basis: 100%; margin: 0; color: #f0d58f; font-size: 12px; }
.market-register-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 32%); gap: 14px; align-items: start; }
.market-register-listings { max-height: 430px; overflow: auto; }
.market-register-listings .market-owned-listing { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
.market-register-listings .market-listing-state { grid-column: 1 / -1; }
.market-register-listings .market-owned-listing .button { grid-column: 1 / -1; justify-self: start; }
.market-register-storage { padding: 10px; }
.market-storage-hint { margin: 0 0 9px; color: #b8a997; font-size: 11px; line-height: 1.4; }
.market-storage-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-bottom: 7px; padding: 3px; background: #1b130f; }
.market-storage-filter { min-height: 29px; padding: 5px 2px; border: 1px solid transparent; background: transparent; color: #aa9a89; cursor: pointer; font-size: 10px; }
.market-storage-filter.is-active { border-color: #614a39; background: linear-gradient(#49362a, #2b201a); color: #f0d59e; }
.market-cargo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid #514034; background: #15100d; box-shadow: inset 0 0 12px #000; }
.market-cargo-slot { position: relative; display: grid; min-width: 0; aspect-ratio: 1; place-items: center; padding: 2px; border: 1px solid #55443a; border-radius: 0; background: linear-gradient(145deg, #3c332e, #261e1a 58%, #1a1411); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 45%); }
.market-cargo-slot:disabled { cursor: default; opacity: .75; }
.market-cargo-slot.has-item { cursor: pointer; background: linear-gradient(145deg, #514137, #30241e 58%, #211813); }
.market-cargo-slot.has-item:hover { z-index: 1; border-color: #e0bd78; box-shadow: 0 0 8px rgb(225 190 107 / 38%), inset 0 0 0 1px rgb(0 0 0 / 45%); }
.market-cargo-slot .package-item { display: grid; width: 100%; height: 100%; place-items: center; padding: 0; border: 0; background: transparent; }
.market-cargo-slot .equipment-icon, .market-cargo-slot .equipment-icon-placeholder { width: min(100%, 42px); height: min(100%, 42px); }
.market-cargo-quantity { position: absolute; right: 2px; bottom: 1px; padding: 1px 3px; background: rgb(12 9 7 / 85%); color: #f2e8d7; font-size: 9px; line-height: 1.2; }
.market-storage-pages { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.market-storage-page { width: 25px; height: 24px; border: 1px solid #59483a; background: linear-gradient(#332720, #1c1410); color: #c7b69e; cursor: pointer; font-size: 10px; }
.market-storage-page.is-active { border-color: #c7a755; color: #ffdf78; box-shadow: inset 0 0 8px rgb(218 174 75 / 25%); }
.market-table { width: 100%; border-collapse: collapse; border: 0; background: #2b201b; }
.market-table th, .market-table td { padding: 12px 14px; border-bottom: 2px solid #1a120e; text-align: left; }
.market-table th { background: #241914; color: #d7c8b5; font-size: 12px; font-weight: 700; }
.market-table td { color: #f2e8dc; font-size: 13px; }
.market-table tbody tr:hover { background: #382a22; }
.market-wallet, .market-listing-card, .market-section { border: 1px solid #594438; background: rgba(40, 29, 23, .9); padding: 14px; }
.market-wallet { margin-bottom: 14px; }
.market-wallet h3, .market-section h3, .market-shell-panel > h3 { margin: 0 0 8px; color: #eadac5; font-size: 15px; }
.market-wallet > p { color: #b8a997; font-size: 12px; }
.diamond-topup-panel { margin: 12px 0 18px; padding: 12px; border: 1px solid #584335; background: #211712; }
.diamond-topup-panel > h3 { margin: 0 0 10px; color: #eadac5; font-size: 15px; }
.diamond-coupon-form { margin: 0 0 12px; }
.diamond-coupon-form label { flex: 1 1 220px; }
.diamond-package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.diamond-package-card { display: grid; align-content: start; gap: 9px; padding: 14px; border: 1px solid #70553e; background: linear-gradient(145deg, #35251c, #211712); }
.diamond-package-card h4 { margin: 0; color: #ecd9bd; font-size: 14px; }
.diamond-package-amount { color: #f3d88f; font-size: 19px; }
.diamond-package-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: #cbb9a3; }
.diamond-package-price b { color: #f4d795; }
.diamond-package-card .button { justify-self: start; }
.diamond-package-create, .diamond-package-editor { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.diamond-package-create label, .diamond-package-editor label { display: grid; flex: 1 1 150px; gap: 5px; color: #d9c7af; font-size: 12px; }
.diamond-package-create input, .diamond-package-editor input { min-height: 38px; padding: 8px 10px; border: 1px solid #705344; background: #130d0a; color: #f3e6d4; }
.admin-diamond-packages { display: grid; gap: 10px; margin-top: 14px; }
.diamond-package-editor { padding: 12px; border: 1px solid #594438; background: rgba(40, 29, 23, .9); }
.diamond-package-editor h3, .diamond-package-editor > p { flex-basis: 100%; margin: 0; }
.diamond-package-editor .form-message { flex-basis: 100%; }
.market-search-layout { display: grid; width: 100%; min-width: 0; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; }
.market-category-rail { display: grid; align-content: start; gap: 2px; padding: 4px; border: 1px solid #423127; background: #1c130f; }
.market-category-button { min-height: 43px; padding: 8px 12px; border: 1px solid transparent; background: linear-gradient(180deg, #30221b, #241914); color: #aa9a8b; cursor: pointer; font-size: 12px; text-align: left; }
.market-category-button:hover { color: #f0e4d5; }
.market-category-button.is-active { border-color: #70563c; background: linear-gradient(180deg, #745334, #493322); color: #fff0cf; box-shadow: inset 3px 0 #e2be72; }
.market-search-main, .market-search-main > .market-section { min-width: 0; }
.market-search-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.market-search-bar input { width: min(100%, 320px); min-height: 38px; padding: 8px 12px; border: 1px solid #5d483a; background: #130d0a; color: #f3e6d4; }
.market-listing-heading, .market-listing-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .3fr) minmax(120px, .35fr) 110px; align-items: center; gap: 12px; }
.market-listing-heading { padding: 9px 14px; background: #211712; color: #d4c4b1; font-size: 12px; font-weight: 700; }
.market-listing-heading { grid-template-columns: minmax(0, 1fr) 108px 130px 100px; }
.market-listing-card { min-height: 66px; margin: 0; padding: 8px 14px; border: 0; border-bottom: 2px solid #19110e; border-radius: 0; background: #30231d; }
.market-listing-card:nth-child(even) { background: #291d18; }
.market-listing-card[hidden] { display: none; }
.market-listing-rows { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #806344 #1b130f; scrollbar-width: thin; }
.market-listing-item { display: flex; min-width: 0; align-items: center; gap: 12px; }
.market-listing-item > strong { overflow: hidden; color: #e7ddcf; text-overflow: ellipsis; white-space: nowrap; }
.market-listing-item .package-item { flex: 0 0 54px; width: 54px; height: 50px; border: 1px solid #59463a; background: #1d1511; }
.market-listing-item .equipment-icon, .market-listing-item .equipment-icon-placeholder { width: 42px; height: 42px; }
.market-listing-time { color: #d3c4b2; font-size: 12px; }
.market-listing-card .market-listing-price { color: #f1d699; font-size: 14px; }
.market-listing-card .button { min-height: 34px; padding: 7px 10px; }
.market-own-listing-label { justify-self: center; color: #d3c4b2; font-size: 12px; font-weight: 700; }
.market-credit-note { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid #c29a61; background: #241a14; color: #cdbda9; font-size: 13px; }
.market-owned-listing { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid #594438; color: #e5d8c7; }
.market-listing-state { color: #c6b49d; font-size: 12px; text-transform: capitalize; }
.market-status-bar { margin: 0; padding: 8px 18px; border-top: 1px solid #46352a; background: #1b130f; color: #c9b8a3; font-size: 12px; }
.market-shell-panel .empty-state { padding: 28px 12px; color: #b6a794; text-align: center; }
.diamond-value { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.diamond-svg { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.market-diamond-cell .diamond-svg { width: 17px; height: 17px; }
.market-list-dialog { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 12px; overflow: auto; background: rgb(7 5 4 / 82%); backdrop-filter: blur(3px); }
.market-list-panel { display: grid; width: min(700px, 100%); max-height: min(700px, calc(100dvh - 24px)); grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 9px 18px; padding: 18px; overflow: auto; border: 1px solid #80634a; background: linear-gradient(145deg, #241913, #130e0b 70%); box-shadow: 0 20px 55px rgb(0 0 0 / 72%), inset 0 0 0 2px rgb(0 0 0 / 45%); color: #e8dccb; }
.market-list-panel > h2 { grid-column: 1 / -1; margin: 0; padding: 0 0 10px; border-bottom: 1px solid #6a513f; color: #ead6b7; font: 600 19px/1.2 Georgia, "Times New Roman", serif; }
.market-list-item { display: flex; min-width: 0; grid-column: 1; grid-row: 2 / span 6; align-items: flex-start; gap: 12px; padding: 12px 14px 12px 6px; border-right: 1px solid #5c4636; }
.market-list-item .package-item { flex: 0 0 70px; width: 70px; height: 70px; border: 1px solid #66503e; background: #160f0c; }
.market-list-item .equipment-icon, .market-list-item .equipment-icon-placeholder { width: 60px; height: 60px; }
.market-list-item > div { min-width: 0; }
.market-list-item strong { color: #e9c873; font-size: 14px; }
.market-list-item p { margin: 8px 0 0; color: #c9b8a4; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.market-list-item .market-list-item-slot { color: #988878; font-size: 11px; }
.market-item-details { display: grid; gap: 2px; min-width: 0; margin-top: 6px; }
.market-item-details > span { display: block; color: #eee2d1; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.market-item-details .tt-name { color: #efd17b !important; font-weight: 700; }
.market-item-details .tt-drop { padding-left: 10px; }
.market-listing-copy { display: grid; min-width: 0; gap: 3px; }
.market-item-display-name, .market-owned-item-name { overflow: hidden; color: #e7ddcf; text-overflow: ellipsis; white-space: nowrap; }
.market-item-display-name { color: #f0d27b; }
.market-listing-item[tabindex="0"], .market-owned-item-name[tabindex="0"] { cursor: help; }
.market-listing-item:focus-visible, .market-owned-item-name:focus-visible { outline: 1px solid #d3ad68; outline-offset: 3px; }
.market-owned-item-name { color: #f0d27b; }
.market-cleanup-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.market-cleanup-form label { display: grid; flex: 1 1 260px; gap: 6px; color: #eadac5; font-size: 12px; }
.market-cleanup-form input { min-height: 38px; padding: 8px 10px; border: 1px solid #705344; background: #130d0a; color: #f3e6d4; }
.market-cleanup-form .form-message { flex-basis: 100%; }
.button-danger { border: 1px solid #a64d43; background: linear-gradient(#893b34, #54231f); color: #fff0e8; }
.button-danger:hover { background: linear-gradient(#a3483f, #692b25); }
.market-sale-field { display: grid; min-width: 0; grid-column: 2; gap: 5px; }
.market-sale-field > label, .market-sale-label { color: #cdbba5; font-size: 12px; font-weight: 700; }
.market-sale-control { display: flex; min-height: 37px; align-items: stretch; gap: 5px; }
.market-sale-control input { width: 100%; min-width: 0; padding: 6px 10px; border: 1px solid #84705c; background: #0e0a08; color: #f4eadb; font-size: 16px; text-align: right; }
.market-sale-quantity { display: flex; width: 100%; min-height: 37px; align-items: center; justify-content: flex-end; padding: 6px 10px; border: 1px solid #745a3f; background: #100b08; color: #f3dca5; font-size: 14px; }
.market-sale-field.is-keypad-active .market-sale-control input { outline: 1px solid #d3ad68; border-color: #d3ad68; }
.market-sale-control input[readonly] { cursor: default; }
.market-sale-control > img { width: 22px; height: 22px; align-self: center; }
.market-sale-control > .market-key { flex: 0 0 54px; }
.market-sale-total, .market-sale-net { display: flex; min-height: 37px; align-items: center; justify-content: flex-end; padding: 5px 10px; border: 1px solid #745a3f; background: #100b08; color: #f3dca5; font-size: 16px; }
.market-sale-net { min-height: 32px; border-color: transparent; background: transparent; color: #f1d9a0; }
.market-sale-tax { display: flex; grid-column: 2; align-items: center; justify-content: space-between; color: #cdbba5; font-size: 12px; }
.market-sale-tax strong { color: #f0e1cc; }
.market-price-keypad { display: grid; grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.market-key { min-height: 39px; border: 1px solid #76634f; background: linear-gradient(180deg, #211813, #120d0a); color: #f1e5d5; cursor: pointer; font-size: 17px; }
.market-key:hover { border-color: #d3ad68; background: #35251a; }
.market-key.backspace-key { font-size: 14px; }
.market-list-panel > .form-message { grid-column: 1 / -1; min-height: 0; margin: 0; color: #e6a1a1; font-size: 12px; }
.market-list-actions { display: grid; grid-column: 2; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-list-actions button { min-height: 38px; border: 1px solid #715642; background: #211712; color: #d4c3ae; cursor: pointer; font-weight: 700; }
.market-list-actions .market-confirm-button { border-color: #d3ad68; background: linear-gradient(#9a703d, #674524); color: #fff0d5; }
.market-list-actions button:disabled { cursor: not-allowed; opacity: .5; }
.portal-confirm-dialog { width: min(460px, calc(100% - 28px)); max-width: none; max-height: min(640px, calc(100dvh - 28px)); padding: 0; overflow: auto; border: 1px solid #80634a; background: linear-gradient(145deg, #2b1d16, #130d0a 76%); box-shadow: 0 24px 80px rgb(0 0 0 / 78%), inset 0 0 0 2px rgb(255 255 255 / 2%); color: #e8dccb; }
.portal-confirm-dialog::backdrop { background: rgb(5 3 2 / 78%); backdrop-filter: blur(5px); }
.portal-confirm-card { padding: 24px; }
.portal-confirm-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid #574237; }
.portal-confirm-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid #bd955b; border-radius: 50%; background: #39271a; color: #f0cf86; font: 700 22px/1 Georgia, "Times New Roman", serif; }
.portal-confirm-heading .eyebrow { margin: 0 0 4px; color: #bca17a; font-size: 9px; letter-spacing: .14em; }
.portal-confirm-heading h2 { margin: 0; color: #f2dfc1; font: 600 20px/1.25 Georgia, "Times New Roman", serif; }
.portal-confirm-message { margin: 18px 0 22px; color: #d6c7b5; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.portal-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.portal-confirm-actions .button { min-width: 110px; }
.portal-confirm-actions .button:focus-visible { outline: 2px solid #f3d88f; outline-offset: 3px; }
@media (max-width: 480px) {
  .market-balance-banner { grid-template-columns: 1fr; padding: 10px 12px; }
  .market-balance-sales { padding: 8px 0 0; border-top: 1px solid #70553e; border-left: 0; }
  .portal-confirm-card { padding: 19px; }
  .portal-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-confirm-actions .button { min-width: 0; padding-inline: 8px; }
}
.market-inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .85rem; margin-top: .9rem; }
.market-inline-form label { display: grid; gap: .4rem; color: var(--muted, #b6a88f); flex: 1 1 12rem; }
.market-inline-form input, .market-inline-form select { min-height: 2.6rem; padding: .55rem; color: #f7ead2; background: #17120d; border: 1px solid rgba(215, 171, 91, .45); }
.market-listing-card { display: grid; grid-template-columns: minmax(0, 1fr) 108px 130px 100px; gap: 12px; align-items: center; }
.market-listing-card p { margin: 0; }
.market-listing-card b { color: #e1bd72; }
.admin-payout-card { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; padding: 14px; }
.admin-payout-heading, .admin-payout-value, .admin-payout-identity { display: grid; gap: 4px; min-width: 0; }
.admin-payout-heading strong { color: #f1d699; font-size: 15px; }
.admin-payout-heading span, .admin-payout-value span, .admin-payout-identity span { color: #c7b9a8; font-size: 12px; overflow-wrap: anywhere; }
.admin-payout-value strong { color: #f0d58f; }
.admin-payout-identity { padding: 10px 12px; border-left: 2px solid #c29a61; background: #211712; }
.admin-payout-integrity { padding: 10px 12px; border: 1px solid #594438; font-size: 12px; }
.admin-payout-integrity.is-valid { border-color: #426c4d; background: #17241a; color: #b8e0bd; }
.admin-payout-integrity.has-issues { border-color: #8a6230; background: #2c2114; color: #ffdc99; }
.admin-payout-issues { display: grid; gap: 3px; margin: 6px 0 0; padding-left: 20px; color: #eadac5; }
.admin-payout-history { padding: 9px 11px; border: 1px solid #594438; background: #211712; color: #d9cbb9; }
.admin-payout-history summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-payout-history p { margin: 8px 0 0; overflow-wrap: anywhere; color: #c7b9a8; font-size: 12px; }
.admin-payout-note { display: grid; gap: 5px; color: #d9cbb9; font-size: 12px; }
.admin-payout-note textarea { width: 100%; min-height: 58px; padding: 8px; border: 1px solid #5d483a; background: #130d0a; color: #f3e6d4; resize: vertical; }
.admin-payout-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-payout-actions .button { min-height: 36px; }
@media (max-width: 760px) { 
  .market-page { width: min(100% - 20px, 1240px); }
  .market-shell-tabs { min-height: 46px; padding: 0 4px; }
  .market-shell-tab { padding: 11px 4px; font-size: 11px; }
  .market-shell-panel { min-height: 320px; padding: 10px; }
  .market-search-layout { grid-template-columns: 126px minmax(0, 1fr); gap: 7px; }
  .market-category-rail { padding: 3px; }
  .market-category-button { min-height: 38px; padding: 6px 8px; font-size: 10px; }
  .market-list-panel { width: min(520px, 100%); max-height: calc(100dvh - 20px); grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 13px; }
  .market-list-panel > h2, .market-list-item, .market-sale-field, .market-sale-tax, .market-price-keypad, .market-list-panel > .form-message, .market-list-actions { grid-column: 1; }
  .market-list-item { grid-row: auto; padding: 6px 0 10px; border-right: 0; border-bottom: 1px solid #5c4636; }
  .market-list-panel > h2 { font-size: 17px; }
  .market-key { min-height: 35px; }
  .market-register-layout { grid-template-columns: minmax(0, 1fr) minmax(170px, 42%); gap: 8px; }
  .market-register-listings, .market-register-storage { padding: 8px; }
  .market-register-listings .market-owned-listing { padding: 8px 4px; font-size: 11px; }
  .market-cargo-grid { gap: 3px; padding: 4px; }
  .market-cargo-slot .equipment-icon, .market-cargo-slot .equipment-icon-placeholder { width: min(100%, 34px); height: min(100%, 34px); }
  .market-cargo-quantity { font-size: 8px; }
  .market-storage-filter { font-size: 9px; }
  .market-listing-heading { grid-template-columns: minmax(0, 1fr) 62px 76px 64px; gap: 5px; padding: 8px; font-size: 10px; }
  .market-listing-card { grid-template-columns: minmax(0, 1fr) 62px 76px 64px; gap: 5px; min-height: 60px; padding: 7px 8px; }
  .admin-payout-card { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 10px; }
  .admin-payout-actions { display: grid; grid-template-columns: 1fr; }
  .market-listing-item { gap: 6px; }
  .market-listing-item .package-item { flex-basis: 42px; width: 42px; height: 42px; }
  .market-listing-item .equipment-icon, .market-listing-item .equipment-icon-placeholder { width: 34px; height: 34px; }
  .market-item-display-name, .market-owned-item-name { font-size: 11px; }
  .market-listing-time { font-size: 10px; }
  .market-listing-card .market-listing-price { font-size: 11px; }
  .market-listing-card .button { padding: 6px; font-size: 10px; }
  .market-owned-listing { grid-template-columns: minmax(0, 1fr) auto; }
}

body.admin-mode {
  --admin-sidebar-width: 246px;
  --gold: #d4af6e;
  --warn: #e7c77f;
  --muted: #9299a1;
  --line: rgba(212, 175, 110, .18);
  color: #e8ebe6;
  background:
    radial-gradient(900px 520px at 85% -15%, rgb(91 119 133 / 13%), transparent 62%),
    radial-gradient(720px 440px at 12% 0%, rgb(212 175 110 / 8%), transparent 58%),
    #0c0f12;
}

body.admin-mode .site-header,
body.admin-mode .community-links,
body.admin-mode .site-footer {
  display: none;
}

body.admin-mode #main {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.admin-mode .admin-page {
  width: auto;
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 var(--admin-sidebar-width);
  padding: 42px clamp(24px, 3.4vw, 58px) 76px;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 15;
  display: flex;
  width: var(--admin-sidebar-width, 246px);
  flex-direction: column;
  gap: 24px;
  padding: 22px 15px 16px;
  border-right: 1px solid rgb(255 255 255 / 8%);
  background:
    radial-gradient(ellipse at 12% 0%, rgb(212 175 110 / 7%), transparent 52%),
    #0d0f12;
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 2px 11px;
  padding: 0 5px 19px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.admin-sidebar-mark {
  display: grid;
  width: 37px;
  height: 37px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid var(--gold);
  color: #f0d9a0;
  font: 700 17px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .04em;
}

.admin-sidebar-brand-copy {
  align-self: end;
  color: #f0d9a0;
  font: 600 18px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: .015em;
  white-space: nowrap;
}

.admin-sidebar-tag {
  align-self: start;
  color: #9299a1;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .18em;
}

.admin-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 19px;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #3c382f transparent;
  scrollbar-width: thin;
}

.admin-nav-group { display: grid; gap: 3px; }
.admin-nav-label {
  margin: 0 0 4px;
  padding: 0 10px;
  color: #777f87;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.admin-sidebar-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: #9aa1a8;
  font-size: 12px;
  font-weight: 550;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.admin-sidebar-link:hover {
  background: rgb(255 255 255 / 4%);
  color: #f0eee7;
}

.admin-sidebar-link.is-active {
  border-left-color: var(--gold);
  background: rgb(212 175 110 / 9%);
  color: #f0d9a0;
}

.admin-sidebar-link-mark {
  width: 20px;
  color: #757d85;
  font: 600 9px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .02em;
}

.admin-sidebar-link.is-active .admin-sidebar-link-mark { color: var(--gold); }
.admin-sidebar-footer { display: grid; gap: 11px; margin-top: auto; }
.admin-sidebar-user { display: flex; min-width: 0; align-items: center; gap: 10px; }
.admin-sidebar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(212 175 110 / 35%);
  background: rgb(212 175 110 / 8%);
  color: #f0d9a0;
  font: 700 11px Georgia, "Times New Roman", serif;
}

.admin-sidebar-user-copy {
  overflow: hidden;
  color: #a4a8aa;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-logout {
  min-height: 36px;
  border: 1px solid rgb(255 255 255 / 11%);
  background: transparent;
  color: #b7b9b8;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  padding: 0 11px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.admin-sidebar-logout:hover {
  border-color: rgb(212 175 110 / 44%);
  background: rgb(212 175 110 / 7%);
  color: #f0d9a0;
}

body.admin-mode .admin-page > .eyebrow {
  margin-bottom: 9px;
  color: var(--gold);
  font: 700 9px/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: .2em;
}

body.admin-mode .admin-page > h1 {
  margin-bottom: 8px;
  color: #f1e8d5;
  font: 600 clamp(34px, 3.7vw, 48px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: .005em;
}

body.admin-mode .admin-page > .subpage-lead {
  max-width: 720px;
  margin-bottom: 29px;
  color: #9299a1;
  font-size: 13px;
  line-height: 1.7;
}

body.admin-mode .admin-dashboard {
  scroll-margin-top: 24px;
  gap: 23px;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgb(212 175 110 / 25%);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 84% 8%, rgb(212 175 110 / 13%), transparent 42%),
    linear-gradient(140deg, #171a1c 0%, #111416 64%, #101216 100%);
  box-shadow: 0 22px 52px rgb(0 0 0 / 27%);
}

body.admin-mode .admin-dashboard-heading > .eyebrow {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .19em;
}

body.admin-mode .admin-dashboard-heading h2 {
  color: #f0d9a0;
  font: 600 clamp(25px, 2.8vw, 34px)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: .005em;
}

body.admin-mode .admin-dashboard-heading > p:not(.eyebrow) {
  color: #a0a5a9;
  font-size: 12px;
}

body.admin-mode .admin-dashboard-heading .portal-toolbar { align-self: start; }
.admin-session-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgb(111 175 122 / 28%);
  color: #9bc7a2;
  font-size: 10px;
  white-space: nowrap;
}

.admin-session-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79b587;
  box-shadow: 0 0 10px rgb(111 175 122 / 48%);
  content: "";
}

body.admin-mode .admin-dashboard-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.admin-mode .admin-dashboard-card {
  min-height: 145px;
  gap: 9px;
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 3px;
  background: rgb(8 11 13 / 48%);
}

body.admin-mode .admin-dashboard-card:hover,
body.admin-mode .admin-dashboard-card.is-active {
  transform: translateY(-2px);
  border-color: rgb(212 175 110 / 55%);
  background: rgb(212 175 110 / 7%);
}

body.admin-mode .admin-dashboard-card > span:first-child {
  color: #c4a66d;
  font-size: 8px;
  letter-spacing: .16em;
}

body.admin-mode .admin-dashboard-card strong {
  color: #e8ebe6;
  font: 600 17px/1.2 Georgia, "Times New Roman", serif;
}

body.admin-mode .admin-dashboard-card > span:nth-child(3) {
  color: #9299a1;
  font-size: 10px;
  line-height: 1.55;
}

body.admin-mode .admin-dashboard-card .admin-dashboard-card-action {
  color: #d4af6e;
  font-size: 10px;
}

body.admin-mode .admin-page > .configuration-panel,
body.admin-mode .admin-page > .portal-form,
body.admin-mode .admin-page > .game-data-panel {
  width: min(100%, 1320px);
  scroll-margin-top: 24px;
  margin: 20px 0 0;
  padding: clamp(19px, 2.5vw, 30px);
  border: 1px solid rgb(212 175 110 / 18%);
  border-radius: 3px;
  background: linear-gradient(145deg, rgb(20 23 25 / 96%), rgb(13 16 18 / 98%));
  box-shadow: 0 15px 38px rgb(0 0 0 / 18%);
}

body.admin-mode .admin-page > .portal-form h2,
body.admin-mode .admin-page > .game-data-panel h2 {
  color: #f0d9a0;
  font: 600 25px/1.2 Georgia, "Times New Roman", serif;
}

body.admin-mode .admin-page .subpage-lead { color: #969da3; }
body.admin-mode .admin-page .eyebrow { color: var(--gold); }
body.admin-mode .admin-page .button-gold {
  border-color: #d4af6e;
  background: #d4af6e;
  color: #16130e;
  box-shadow: none;
}

body.admin-mode .admin-page .button-gold:hover { background: #f0d9a0; }
body.admin-mode .admin-page .button-outline { border-color: #514a3c; }
body.admin-mode .admin-page .button-outline:hover { background: rgb(212 175 110 / 9%); }
body.admin-mode .admin-page .admin-boss-help,
body.admin-mode .admin-page .admin-boss-notice {
  border-color: rgb(212 175 110 / 27%);
  border-radius: 2px;
  background: rgb(212 175 110 / 6%);
  color: #e0c88f;
}

body.admin-mode .admin-page input:focus,
body.admin-mode .admin-page textarea:focus,
body.admin-mode .admin-page select:focus {
  border-color: #d4af6e;
  outline-color: #d4af6e;
}

body.admin-mode [data-admin-section] { scroll-margin-top: 24px; }

@media (max-width: 1120px) {
  body.admin-mode { --admin-sidebar-width: 218px; }
  body.admin-mode .admin-dashboard-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.admin-mode #main { padding-top: 0; }
  body.admin-mode .admin-page {
    min-height: auto;
    margin: 0;
    padding: 24px 16px 48px;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 8px 13px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
    background: rgb(13 15 18 / 97%);
    backdrop-filter: blur(14px);
  }

  .admin-sidebar-brand {
    grid-template-columns: 34px;
    flex: 0 0 34px;
    gap: 0;
    padding: 0;
    border: 0;
  }

  .admin-sidebar-mark { width: 32px; height: 32px; font-size: 14px; }
  .admin-sidebar-brand-copy, .admin-sidebar-tag, .admin-sidebar-user { display: none; }
  .admin-sidebar-footer { display: flex; flex: 0 0 auto; margin: 0; }
  .admin-sidebar-logout { min-height: 36px; padding-inline: 9px; white-space: nowrap; }
  .admin-sidebar-nav {
    display: flex;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .admin-nav-group { display: contents; }
  .admin-nav-label, .admin-sidebar-link-mark { display: none; }
  .admin-sidebar-link {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 10px;
    white-space: nowrap;
  }

  .admin-sidebar-link.is-active {
    border-bottom-color: var(--gold);
    border-left-color: transparent;
  }

  body.admin-mode .admin-page > .eyebrow { font-size: 8px; }
  body.admin-mode .admin-page > h1 { font-size: 35px; }
  body.admin-mode .admin-page > .subpage-lead { margin-bottom: 22px; }
  body.admin-mode .admin-dashboard { gap: 17px; padding: 19px; }
  body.admin-mode .admin-dashboard-heading { grid-template-columns: 1fr; }
  body.admin-mode .admin-dashboard-heading .portal-toolbar { grid-column: 1; grid-row: auto; }
  body.admin-mode .admin-dashboard-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-mode .admin-page > .configuration-panel,
  body.admin-mode .admin-page > .portal-form,
  body.admin-mode .admin-page > .game-data-panel { padding: 18px; }
}

@media (max-width: 430px) {
  body.admin-mode .admin-dashboard-links { grid-template-columns: 1fr; }
  body.admin-mode .admin-dashboard-card { min-height: 115px; }
}
