:root {
  --bg: #080a0d;
  --bg-soft: #0c0f13;
  --panel: #11151a;
  --panel-2: #151a20;
  --panel-3: #1a2027;
  --line: #242a32;
  --line-soft: #1b2027;
  --text: #f4f6f8;
  --muted: #8f99a6;
  --orange: #ff7a1a;
  --orange-2: #ff9a3d;
  --blue: #2e9ec4;
  --blue-light: #75d5f2;
  --blue-soft: rgba(46, 158, 196, 0.13);
  --danger: #ef5b5b;
  --success: #52d18b;
  --radius: 14px;
  --radius-small: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 26, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 13%, rgba(46, 158, 196, 0.065), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 13, 0.9);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1240px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: conic-gradient(from 35deg, var(--orange), #ffb04f, var(--blue), #202630, var(--orange));
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid #0d1014;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.brand-name {
  font-size: 15px;
}

.nav-links,
.auth-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  justify-content: center;
}

.auth-links {
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: #aab2bd;
  font-size: 14px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -17px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(82, 209, 139, 0.2);
  border-radius: 999px;
  color: var(--success);
  background: rgba(82, 209, 139, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.online-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.online-pill.is-offline {
  color: var(--danger);
  border-color: rgba(239, 91, 91, 0.2);
  background: rgba(239, 91, 91, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d6dbe1;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #3a424d;
  background: rgba(255, 255, 255, 0.035);
}

.button-primary {
  color: #101114;
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.18);
}

.button-primary:hover {
  border-color: var(--orange-2);
  background: linear-gradient(135deg, #ff8529, #ffad59);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  background: var(--panel);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  display: none;
}

.page-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

.intro h1,
.page-heading-simple h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro p,
.page-heading-simple p {
  max-width: 560px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.server-mini-card {
  min-width: 210px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.server-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.server-mini-card strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.server-mini-card small {
  color: var(--muted);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 26px;
  align-items: start;
}

.home-rankings {
  min-width: 0;
}

.rank-section + .rank-section {
  margin-top: 38px;
}

.compact-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 13px;
}

.compact-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(46, 158, 196, 0.22);
  border-radius: 999px;
  color: var(--blue-light);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-tag-title {
  padding: 7px 11px;
}

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

.rank-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.028), transparent 44%),
    var(--panel);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: #343d47;
  background:
    linear-gradient(155deg, rgba(255, 122, 26, 0.05), transparent 46%),
    var(--panel-2);
}

.rank-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity 170ms ease;
}

.rank-card:hover::after,
.rank-card:first-child::after {
  opacity: 1;
}

.rank-card-link {
  display: flex;
  min-height: 148px;
  padding: 14px 10px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rank-position {
  position: absolute;
  top: 9px;
  left: 10px;
  color: #68727e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.rank-card:first-child .rank-position {
  color: var(--orange-2);
}

.rank-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #303741;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.15), transparent 28%),
    linear-gradient(145deg, #28303a, #15191e);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.022);
}

.rank-avatar.has-image {
  padding: 4px;
  background: #181d23;
}

.rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-avatar.is-player {
  border-color: rgba(46, 158, 196, 0.25);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.13), transparent 26%),
    linear-gradient(145deg, rgba(46, 158, 196, 0.32), #15191e 68%);
}

.rank-name {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #f5f7f9;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.rank-meta strong {
  color: var(--blue-light);
  font-size: 11px;
}

.rank-card:first-child .rank-meta strong {
  color: var(--orange-2);
}

.rank-submeta {
  margin-top: 2px;
  color: #66717e;
  font-size: 9px;
}

.level-sidebar {
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(46, 158, 196, 0.04), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.sidebar-heading {
  display: block;
  margin-bottom: 12px;
}

.sidebar-heading p {
  margin-top: 7px;
}

.level-list {
  display: grid;
  gap: 5px;
}

.level-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 160ms ease, background 160ms ease;
}

.level-row:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.level-position {
  color: #68727e;
  font-size: 10px;
  font-weight: 900;
}

.level-row:first-child .level-position {
  color: var(--orange-2);
}

.level-player {
  min-width: 0;
}

.level-player strong,
.level-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-player strong {
  font-size: 12px;
}

.level-player small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.level-value {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 900;
}

.level-row:first-child .level-value {
  color: var(--orange-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 11px 2px 1px;
  border-top: 1px solid var(--line-soft);
  color: #aeb7c2;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-link span {
  color: var(--orange-2);
  font-size: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.empty-state-small {
  padding: 18px 10px;
  font-size: 11px;
}

.page-heading-simple {
  margin-bottom: 28px;
}

.page-heading-simple h1 {
  font-size: clamp(34px, 4.5vw, 54px);
}

.content-shell {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-shell-plain {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.content-shell td,
.content-shell th {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.content-shell input,
.content-shell select,
.content-shell textarea {
  max-width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1115;
}

.content-shell input:focus,
.content-shell select:focus,
.content-shell textarea:focus,
.ranking-controls select:focus,
.character-search input:focus {
  outline: 2px solid rgba(46, 158, 196, 0.2);
  border-color: rgba(46, 158, 196, 0.55);
}

/* Download */
.download-page {
  max-width: 940px;
  margin: 0 auto;
}

.download-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 50%, rgba(255, 122, 26, 0.09), transparent 17rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.download-icon {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 20px;
  background: rgba(255, 122, 26, 0.07);
}

.download-icon::before {
  content: "";
  width: 24px;
  height: 30px;
  border-right: 4px solid var(--orange-2);
  border-bottom: 4px solid var(--orange-2);
  transform: rotate(45deg) translate(-4px, -4px);
}

.download-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 17px;
  height: 4px;
  border-radius: 99px;
  background: var(--orange-2);
}

.download-copy h2 {
  margin: 10px 0 5px;
  font-size: 25px;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.requirement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.requirement-list span {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: #abb4bf;
  background: rgba(255, 255, 255, 0.018);
  font-size: 10px;
}

.download-button {
  min-width: 150px;
}

/* Modern tables */
.modern-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modern-table-head,
.modern-table-row {
  display: grid;
  align-items: center;
  gap: 16px;
}

.modern-table-head {
  min-height: 48px;
  padding: 0 18px;
  color: #7f91a7;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-table-row {
  min-height: 62px;
  padding: 8px 18px;
  border-top: 1px solid var(--line-soft);
  transition: background 150ms ease;
}

.modern-table-row:hover {
  background: rgba(255, 255, 255, 0.024);
}

.table-value {
  color: var(--blue-light);
  font-weight: 900;
}

.table-muted {
  color: #a5aeb9;
}

.table-position {
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 900;
}

/* Online */
.online-page {
  max-width: 1120px;
  margin: 0 auto;
}

.online-heading {
  margin-bottom: 24px;
}

.online-table-grid {
  grid-template-columns: minmax(240px, 1.4fr) 110px minmax(150px, 0.8fr) 110px;
}

.online-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.online-player-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-player-cell a:hover {
  color: var(--orange-2);
}

.vocation-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(46, 158, 196, 0.25);
  border-radius: 12px;
  color: var(--blue-light);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 27%),
    linear-gradient(145deg, rgba(46, 158, 196, 0.22), #12171c 72%);
  font-size: 12px;
  font-weight: 950;
}

.vocation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vocation-avatar.has-vocation-image span {
  display: none;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
}

.status-online i,
.character-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.online-record {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* Ranking */
.ranking-page-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.ranking-page-top .page-heading-simple {
  margin-bottom: 0;
}

.ranking-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.ranking-controls label {
  display: grid;
  gap: 7px;
}

.ranking-controls label > span {
  color: #7f91a7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-controls select {
  min-width: 190px;
  min-height: 43px;
  padding: 0 36px 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.ranking-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.ranking-summary strong {
  color: var(--blue-light);
}

.ranking-summary span::after {
  content: "·";
  margin-left: 8px;
  color: #3f4854;
}

.ranking-table-grid {
  grid-template-columns: 70px minmax(220px, 1.4fr) minmax(160px, 1fr) 120px;
}

.ranking-table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Character */
.character-page {
  max-width: 1120px;
  margin: 0 auto;
}

.character-hero {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 50%, rgba(255, 122, 26, 0.09), transparent 19rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.character-avatar {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  font-size: 20px;
}

.character-title .eyebrow {
  margin-bottom: 5px;
}

.character-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.character-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.character-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(239, 91, 91, 0.2);
  border-radius: 999px;
  color: var(--danger);
  background: rgba(239, 91, 91, 0.07);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.character-status.is-online {
  color: var(--success);
  border-color: rgba(82, 209, 139, 0.2);
  background: rgba(82, 209, 139, 0.07);
}

.character-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.character-facts > div,
.skill-stat {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
}

.character-facts span,
.skill-stat span {
  display: block;
  color: #74808d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.character-facts strong,
.skill-stat strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #f2f5f7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-facts a {
  color: var(--blue-light);
}

.character-section {
  margin-top: 28px;
}

.skills-horizontal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.skill-stat {
  text-align: center;
}

.skill-stat strong {
  color: var(--blue-light);
  font-size: 22px;
}

.skill-stat:first-child strong {
  color: var(--orange-2);
}

.character-note {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: #c6ccd3;
  background: var(--panel);
  font-size: 13px;
}

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

.history-panel {
  min-width: 0;
}

.history-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.history-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
  color: #c5cbd2;
  font-size: 11px;
}

.history-row:first-child {
  border-top: 0;
}

.history-row time {
  color: #74808d;
  font-size: 10px;
}

.history-row a {
  color: var(--blue-light);
}

.character-search {
  margin-top: 30px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.character-search label {
  display: block;
  margin-bottom: 8px;
  color: #8995a2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.character-search > div {
  display: flex;
  gap: 8px;
}

.character-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1115;
}

.site-footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  color: #727c88;
  font-size: 11px;
}

.site-footer strong {
  color: #aeb6c0;
}

@media (max-width: 1100px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .auth-links {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .mobile-menu {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 16px;
  }

  .mobile-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-menu .nav-link,
  .mobile-menu .button {
    width: 100%;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .level-sidebar {
    order: -1;
  }

  .level-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .level-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .level-value {
    grid-column: 2;
  }

  .character-facts,
  .skills-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-main {
    padding-top: 42px;
  }

  .intro,
  .ranking-page-top {
    align-items: stretch;
    flex-direction: column;
  }

  .server-mini-card {
    width: 100%;
  }

  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-controls {
    width: 100%;
  }

  .ranking-controls label {
    flex: 1;
  }

  .ranking-controls select {
    width: 100%;
    min-width: 0;
  }

  .ranking-table-grid {
    grid-template-columns: 52px minmax(160px, 1.4fr) minmax(120px, 1fr) 100px;
  }

  .online-table-grid {
    grid-template-columns: minmax(200px, 1.5fr) 80px minmax(120px, 1fr);
  }

  .online-table-grid > :last-child {
    display: none;
  }

  .download-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .character-history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .navbar,
  .page-main,
  .site-footer,
  .mobile-menu {
    width: min(100% - 26px, 1240px);
  }

  .page-main {
    padding-bottom: 55px;
  }

  .intro h1,
  .page-heading-simple h1 {
    font-size: 36px;
  }

  .compact-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .rank-card-link {
    min-height: 142px;
  }

  .level-list {
    grid-template-columns: 1fr;
  }

  .level-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .level-value {
    grid-column: auto;
  }

  .modern-table {
    overflow-x: auto;
  }

  .modern-table-head,
  .modern-table-row {
    min-width: 650px;
  }

  .online-table .modern-table-head,
  .online-table .modern-table-row {
    min-width: 510px;
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-icon {
    margin: 0 auto;
  }

  .requirement-list {
    justify-content: center;
  }

  .character-hero {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .character-avatar {
    width: 70px;
    height: 70px;
  }

  .character-status {
    grid-column: 1 / -1;
    width: max-content;
  }

  .character-facts,
  .skills-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .character-search > div {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .mobile-menu.is-open,
  .rank-grid,
  .character-facts,
  .skills-horizontal {
    grid-template-columns: 1fr;
  }
}

/* V1.3 — vocation images in combat rankings */
.rank-vocation-avatar {
  width: 52px;
  height: 52px;
  margin-bottom: 9px;
  border-radius: 14px;
}

.vocation-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.ranking-vocation-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ranking-vocation-cell .table-muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Last kills */
.lastkills-page {
  max-width: 1040px;
  margin: 0 auto;
}

.lastkills-list {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lastkills-row {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  padding: 13px 16px;
  font-size: 12px;
}

.lastkills-row small {
  color: var(--muted);
}

/* Account management */
.account-page {
  max-width: 1120px;
  margin: 0 auto;
}

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

.account-page-top .page-heading-simple {
  margin-bottom: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.account-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #aeb7c2;
  background: var(--panel);
  font-size: 11px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.account-action:hover,
.account-action.is-active {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(46, 158, 196, 0.32);
  background: rgba(46, 158, 196, 0.1);
}

.account-action-create {
  color: #111317;
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.account-action-create:hover {
  color: #111317;
  border-color: var(--orange-2);
  background: linear-gradient(135deg, #ff8529, #ffad59);
}

.account-action-logout {
  color: #ff8d8d;
  border-color: rgba(239, 91, 91, 0.24);
  background: rgba(239, 91, 91, 0.06);
}

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

.account-summary-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--panel);
}

.account-summary-item > span {
  display: block;
  color: #74808d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-summary-item > strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #f1f4f6;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-characters-heading {
  margin-bottom: 12px;
}

.account-character-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-character-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(210px, 1fr) 100px 120px;
  align-items: center;
  gap: 16px;
}

.account-character-head {
  min-height: 48px;
  padding: 0 18px;
  color: #7f91a7;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-character-row {
  min-height: 74px;
  padding: 10px 18px;
  border-top: 1px solid var(--line-soft);
  transition: background 150ms ease;
}

.account-character-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.account-character-name strong,
.account-character-name small {
  display: block;
}

.account-character-name strong {
  color: #f4f6f8;
  font-size: 13px;
}

.account-character-name:hover strong {
  color: var(--orange-2);
}

.account-character-name small {
  margin-top: 3px;
  color: #7c8794;
  font-size: 10px;
}

.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.account-vocation-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.vocation-avatar-account {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.account-vocation-cell strong {
  overflow: hidden;
  color: #c8ced5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-character-level {
  color: var(--blue-light);
  font-size: 15px;
  font-weight: 900;
}

.account-delete-form {
  margin: 0;
}

.delete-character-button,
.delete-character-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #ff5c5c;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #e94141, #ff6a4a);
  box-shadow: 0 8px 22px rgba(239, 91, 91, 0.18);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, filter 160ms ease;
}

.delete-character-button:hover,
.delete-character-confirm:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Delete character confirmation */
.delete-character-page {
  max-width: 680px;
  margin: 0 auto;
}

.delete-character-card,
.delete-success-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.kodra-field {
  display: grid;
  gap: 7px;
}

.kodra-field + .kodra-field {
  margin-top: 15px;
}

.kodra-field > span {
  color: #7f91a7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kodra-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1115;
}

.kodra-field input[readonly] {
  color: #aeb7c2;
  background: #11161b;
}

.delete-warning {
  margin-top: 17px;
  padding: 14px;
  border: 1px solid rgba(239, 91, 91, 0.2);
  border-radius: 10px;
  color: #ff9f9f;
  background: rgba(239, 91, 91, 0.06);
}

.delete-warning strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}

.delete-warning p {
  margin: 4px 0 0;
  color: #c79b9b;
  font-size: 11px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.delete-success-card {
  text-align: center;
}

.delete-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 209, 139, 0.26);
  border-radius: 50%;
  color: var(--success);
  background: rgba(82, 209, 139, 0.08);
  font-size: 26px;
  font-weight: 950;
}

.delete-success-card .eyebrow {
  justify-content: center;
}

.delete-success-card h1 {
  margin: 0;
  font-size: 34px;
}

.delete-success-card p {
  margin: 10px auto 20px;
  max-width: 480px;
  color: var(--muted);
  font-size: 12px;
}

/* Create character */
.create-character-page {
  max-width: 1120px;
  margin: 0 auto;
}

.create-character-form {
  display: grid;
  gap: 14px;
}

.create-step {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.create-step-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.create-step-heading > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(46, 158, 196, 0.24);
  border-radius: 9px;
  color: var(--blue-light);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 950;
}

.create-step-heading strong,
.create-step-heading small {
  display: block;
}

.create-step-heading strong {
  font-size: 13px;
}

.create-step-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.create-name-field {
  max-width: 520px;
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill,
.selection-card {
  position: relative;
  cursor: pointer;
}

.choice-pill input,
.selection-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #aeb7c2;
  background: #0e1216;
  font-size: 11px;
  font-weight: 850;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.choice-pill input:checked + span {
  color: #fff;
  border-color: rgba(255, 122, 26, 0.65);
  background: rgba(255, 122, 26, 0.1);
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
}

.selection-card-content {
  min-height: 128px;
  padding: 12px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #0e1216;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.selection-card:hover .selection-card-content {
  transform: translateY(-2px);
  border-color: #343d47;
  background: #13181d;
}

.selection-card input:checked + .selection-card-content {
  border-color: rgba(255, 122, 26, 0.7);
  background: linear-gradient(145deg, rgba(255, 122, 26, 0.12), rgba(46, 158, 196, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.14);
}

.selection-card-content img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.vocation-selection-card .selection-card-content img {
  width: 82px;
  height: 82px;
}

.selection-card-content strong {
  width: 100%;
  overflow: hidden;
  color: #e8ebee;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-character-actions {
  margin-top: 5px;
}

@media (max-width: 940px) {
  .account-page-top {
    align-items: stretch;
    flex-direction: column;
  }

  .account-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .lastkills-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .account-character-table {
    overflow-x: auto;
  }

  .account-character-head,
  .account-character-row {
    min-width: 680px;
  }

  .selection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .account-summary-grid {
    grid-template-columns: 1fr;
  }

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

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

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button,
  .delete-character-confirm {
    width: 100%;
  }
}

.kodra-alert {
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: 12px;
}

.kodra-alert-danger {
  border: 1px solid rgba(239, 91, 91, 0.24);
  color: #ffb1b1;
  background: rgba(239, 91, 91, 0.075);
}

.kodra-alert strong {
  display: block;
  margin-bottom: 5px;
}

.kodra-alert ul {
  margin: 0;
  padding-left: 18px;
}

.kodra-success-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.kodra-success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 209, 139, 0.26);
  border-radius: 50%;
  color: var(--success);
  background: rgba(82, 209, 139, 0.08);
  font-size: 25px;
  font-weight: 950;
}

.kodra-success-box h2 {
  margin: 0 0 9px;
}

.kodra-success-box > div {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* V1.4 — ranking podium, filtered vocations and login */
.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin: 20px 0 24px;
}

.podium-card {
  position: relative;
  min-width: 0;
  min-height: 214px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(46, 158, 196, 0.11), transparent 11rem),
    linear-gradient(180deg, #151a20, #101419);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.podium-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
  opacity: 0.8;
}

.podium-card:hover {
  transform: translateY(-3px);
  border-color: #35404b;
}

.podium-rank-1 {
  grid-column: 2;
  min-height: 252px;
  border-color: rgba(255, 154, 61, 0.38);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 122, 26, 0.17), transparent 13rem),
    linear-gradient(180deg, #18191a, #111417);
}

.podium-rank-1::after {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  opacity: 1;
}

.podium-position {
  position: absolute;
  top: 13px;
  left: 14px;
  color: #8390a0;
  font-size: 11px;
  font-weight: 950;
}

.podium-rank-1 .podium-position {
  color: var(--orange-2);
}

.podium-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 13px;
  border-radius: 18px;
  font-size: 15px;
}

.podium-rank-1 .podium-avatar {
  width: 88px;
  height: 88px;
  border-color: rgba(255, 154, 61, 0.38);
  box-shadow: 0 0 30px rgba(255, 122, 26, 0.12);
}

.podium-name {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-vocation {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.podium-score {
  margin-top: 10px;
  color: var(--blue-light);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.podium-rank-1 .podium-score {
  color: var(--orange-2);
  font-size: 29px;
}

.podium-card small {
  margin-top: 5px;
  color: #6f7b89;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-table-after-podium {
  margin-top: 0;
}

.login-page {
  min-height: calc(100vh - 280px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 470px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(46, 158, 196, 0.09), transparent 18rem),
    radial-gradient(circle at 0 100%, rgba(255, 122, 26, 0.075), transparent 16rem),
    var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.login-heading {
  margin-bottom: 25px;
  text-align: center;
}

.login-brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: conic-gradient(from 35deg, var(--orange), #ffb04f, var(--blue), #202630, var(--orange));
  box-shadow: 0 0 30px rgba(255, 122, 26, 0.16);
}

.login-brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 4px solid #0d1014;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.login-heading .eyebrow {
  justify-content: center;
}

.login-heading .eyebrow::before {
  display: none;
}

.login-heading h1 {
  margin: 2px 0 7px;
  font-size: clamp(28px, 5vw, 37px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field > span {
  color: #b8c0ca;
  font-size: 11px;
  font-weight: 850;
}

.content-shell .login-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 11px;
  background: #0c1014;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.content-shell .login-remember input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: var(--orange);
}

.login-forgot {
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
}

.login-forgot:hover {
  color: #a7e9fb;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  border: 0;
  border-radius: 11px;
  color: #101114;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.18);
  font-size: 13px;
  font-weight: 950;
  transition: transform 160ms ease, filter 160ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.login-create {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.login-create a {
  color: var(--orange-2);
  font-weight: 900;
}

@media (max-width: 760px) {
  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .podium-card,
  .podium-rank-1 {
    grid-column: auto;
    min-height: 205px;
  }

  .podium-rank-1 {
    order: 1;
  }

  .podium-rank-2 {
    order: 2;
  }

  .podium-rank-3 {
    order: 3;
  }

  .login-card {
    padding: 27px 20px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

/* =========================================================
   Kodra V1.5 — Catálogo de personagens
   ========================================================= */
.game-characters-page,
.game-character-detail,
.game-character-error {
  width: 100%;
}

.characters-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 36px;
  margin-bottom: 24px;
}

.characters-page-heading h1,
.character-detail-copy h1,
.game-character-error h1 {
  margin: 9px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.characters-page-heading p,
.character-detail-copy p,
.game-character-error p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.character-catalog-search {
  display: grid;
  gap: 8px;
}

.character-catalog-search > span {
  color: #8f9baa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.content-shell .character-catalog-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border-color: rgba(117, 213, 242, 0.16);
  border-radius: 12px;
  background: #0d1115;
}

.character-catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 11px;
}

.character-catalog-meta strong {
  color: var(--blue-light);
  font-size: 13px;
}

.character-catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.character-catalog-card.is-filtered-out {
  display: none !important;
}

.character-catalog-empty[hidden] {
  display: none !important;
}

.character-catalog-empty.is-visible {
  display: block;
}

.character-catalog-card {
  position: relative;
  min-width: 0;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 158, 196, 0.085), transparent 42%),
    linear-gradient(180deg, #13181e, #101419);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.character-catalog-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue-light));
  transition: opacity 160ms ease;
}

.character-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 213, 242, 0.25);
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 158, 196, 0.13), transparent 44%),
    linear-gradient(180deg, #151b21, #11161b);
}

.character-catalog-card:hover::after {
  opacity: 1;
}

.character-catalog-position {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #64707e;
  font-size: 9px;
  font-weight: 900;
}

.character-catalog-image {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(117, 213, 242, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(46, 158, 196, 0.12), rgba(5, 8, 11, 0.8) 68%);
}

.character-catalog-image img {
  max-width: 74px;
  max-height: 74px;
  image-rendering: pixelated;
}

.character-catalog-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #f6f7f9;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-catalog-card small {
  margin-top: 3px;
  color: #727e8c;
  font-size: 9px;
}

.character-card-arrow {
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: rgba(255, 154, 61, 0.7);
  font-size: 13px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.character-catalog-card:hover .character-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.character-catalog-empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.character-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #aeb8c5;
  font-size: 12px;
  font-weight: 800;
}

.character-back-link span {
  color: var(--orange-2);
  font-size: 17px;
}

.character-detail-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 292px;
  padding: 34px 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 45%, rgba(255, 122, 26, 0.11), transparent 18rem),
    radial-gradient(circle at 85% 30%, rgba(46, 158, 196, 0.08), transparent 22rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.character-detail-art {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
}

.character-art-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 154, 61, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 122, 26, 0.11), transparent 64%),
    conic-gradient(from 0deg, transparent, rgba(46, 158, 196, 0.08), transparent, rgba(255, 122, 26, 0.08), transparent);
  animation: character-glow-spin 18s linear infinite;
}

.character-detail-art img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 176px;
  max-height: 176px;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.34));
}

@keyframes character-glow-spin {
  to { transform: rotate(360deg); }
}

.character-detail-copy h1 {
  font-size: clamp(44px, 6vw, 72px);
}

.character-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.character-stat-card {
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.character-stat-card span,
.character-stat-card strong {
  display: block;
}

.character-stat-card span {
  color: #788491;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.character-stat-card strong {
  margin-top: 4px;
  color: var(--blue-light);
  font-size: 23px;
}

.character-stat-card:first-child strong {
  color: var(--orange-2);
}

.character-transformations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 38px 0 15px;
}

.character-transformations-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.transformation-card {
  position: relative;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 122, 26, 0.07), transparent 45%),
    var(--panel);
  transition: transform 160ms ease, border-color 160ms ease;
}

.transformation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 154, 61, 0.25);
}

.transformation-index {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #5e6875;
  font-size: 9px;
  font-weight: 900;
}

.transformation-image {
  width: 112px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}

.transformation-image img {
  max-width: 108px;
  max-height: 116px;
  image-rendering: pixelated;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, 0.3));
}

.transformation-card strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.transformation-card small {
  margin-top: 2px;
  color: #7f8a97;
  font-size: 9px;
}

.game-character-error {
  max-width: 680px;
  margin: 50px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
}

.game-character-error .button {
  margin-top: 23px;
}

@media (max-width: 1120px) {
  .character-catalog-grid,
  .transformation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .characters-page-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 22px;
  }

  .character-detail-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
    text-align: center;
  }

  .character-detail-art {
    min-height: 180px;
  }

  .character-detail-copy p {
    margin-inline: auto;
  }

  .character-stat-grid {
    max-width: 540px;
    margin-inline: auto;
    margin-top: 22px;
  }

  .character-catalog-grid,
  .transformation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .character-catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-catalog-grid,
  .transformation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .character-catalog-card {
    min-height: 166px;
    padding-inline: 8px;
  }

  .character-catalog-image {
    width: 70px;
    height: 70px;
  }

  .character-catalog-image img {
    max-width: 64px;
    max-height: 64px;
  }

  .character-detail-hero {
    padding: 24px 18px;
  }

  .character-stat-grid {
    grid-template-columns: 1fr;
  }

  .character-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .character-stat-card strong {
    margin: 0;
  }

  .transformation-card {
    min-height: 200px;
  }

  .transformation-image {
    width: 92px;
    height: 104px;
  }

  .transformation-image img {
    max-width: 90px;
    max-height: 100px;
  }
}

/* =========================================================
   Kodra V1.5.2 — Controle de animação das outfits
   ========================================================= */
.character-animation-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(117, 213, 242, 0.22);
  border-radius: 11px;
  color: #dbe9f0;
  background: linear-gradient(180deg, rgba(22, 49, 59, 0.9), rgba(11, 28, 35, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.character-animation-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 213, 242, 0.4);
  background: linear-gradient(180deg, rgba(26, 59, 70, 0.95), rgba(13, 34, 41, 0.98));
}

.character-animation-toggle[aria-pressed="true"] {
  border-color: rgba(255, 154, 61, 0.36);
  color: #fff1e5;
  background: linear-gradient(180deg, rgba(87, 45, 15, 0.92), rgba(48, 25, 10, 0.96));
}

.character-animation-toggle-icon {
  color: var(--blue-light);
  font-size: 10px;
}

.character-animation-toggle[aria-pressed="true"] .character-animation-toggle-icon {
  color: var(--orange-2);
}

@media (max-width: 560px) {
  .character-transformations-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .character-animation-toggle {
    width: 100%;
  }
}

/* =========================================================
   Kodra V1.6 — Hall da Fama
   ========================================================= */
.hall-page {
  min-width: 0;
}

.hall-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.hall-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hall-hero p {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hall-milestone {
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 154, 61, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 122, 26, 0.1), rgba(46, 158, 196, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hall-milestone span,
.hall-milestone small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hall-milestone strong {
  display: block;
  margin: 5px 0;
  color: var(--orange-2);
  font-size: 27px;
  letter-spacing: 0.035em;
}

.hall-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hall-section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hall-podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.hall-podium-card {
  position: relative;
  min-height: 390px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(46, 158, 196, 0.13), transparent 9rem),
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hall-podium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 213, 242, 0.35);
}

.hall-place-1 {
  min-height: 440px;
  border-color: rgba(255, 154, 61, 0.38);
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 122, 26, 0.22), transparent 10rem),
    linear-gradient(165deg, rgba(255, 154, 61, 0.075), rgba(255, 255, 255, 0.008)),
    var(--panel);
}

.hall-place-1 {
    transform: translateY(-6px) scale(1.02);
}

.hall-place-1::before,
.hall-place-2::before,
.hall-place-3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-light), transparent);
}

.hall-place-2::before {
  background: linear-gradient(90deg, transparent, #bfc7d2, var(--blue-light), transparent);
}

.hall-place-3::before {
  background: linear-gradient(90deg, transparent, #c77b45, var(--orange), transparent);
}

.hall-place-number {
  position: absolute;
  top: 16px;
  left: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.hall-medal {
  position: absolute;
  top: 15px;
  right: 18px;
  color: var(--orange-2);
  font-size: 19px;
  text-shadow: 0 0 20px rgba(255, 122, 26, 0.48);
}

.hall-place-2 .hall-medal {
  color: #c9d0da;
}

.hall-place-3 .hall-medal {
  color: #c77b45;
}

.hall-outfit-frame {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 213, 242, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 158, 196, 0.13), rgba(5, 8, 11, 0.88) 68%);
  box-shadow: inset 0 0 35px rgba(46, 158, 196, 0.08), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.hall-place-1 .hall-outfit-frame {
  width: 148px;
  height: 148px;
  border-color: rgba(255, 154, 61, 0.32);
  background: radial-gradient(circle, rgba(255, 122, 26, 0.16), rgba(5, 8, 11, 0.9) 68%);
}

.hall-outfit-frame img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hall-place-1 .hall-outfit-frame img {
  width: 128px;
  height: 128px;
}

.hall-outfit-fallback {
  color: var(--muted);
  font-size: 40px;
  font-weight: 900;
}

.hall-place-label {
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hall-player-name {
  margin-top: 7px;
  font-size: 22px;
  text-align: center;
}

.hall-place-1 .hall-player-name {
  font-size: 27px;
}

.hall-vocation {
  margin-top: 2px;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
}

.hall-player-meta {
  width: 100%;
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.hall-player-meta strong {
  color: #fff;
}

.hall-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.hall-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hall-status.is-online {
  color: var(--success);
}

.hall-podium-card p {
  min-height: 36px;
  margin: 14px 0 0;
  color: #c9d0d8;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.hall-podium-card time {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.hall-legacy-list {
  margin-top: 42px;
}

.hall-list {
  display: grid;
  gap: 10px;
}

.hall-list-card {
  min-height: 86px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 48px 68px minmax(130px, 0.85fr) minmax(210px, 1.6fr) 90px 30px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)), var(--panel);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hall-list-card:hover {
  transform: translateX(3px);
  border-color: rgba(46, 158, 196, 0.34);
  background: linear-gradient(145deg, rgba(46, 158, 196, 0.055), rgba(255, 255, 255, 0.008)), var(--panel);
}

.hall-list-position {
  color: var(--orange-2);
  font-size: 14px;
  font-weight: 900;
}

.hall-list-outfit {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 213, 242, 0.16);
  border-radius: 50%;
  background: #080d11;
}

.hall-list-outfit img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hall-list-player,
.hall-list-achievement,
.hall-list-level {
  min-width: 0;
}

.hall-list-player strong,
.hall-list-achievement strong,
.hall-list-level strong {
  display: block;
}

.hall-list-player small,
.hall-list-achievement small,
.hall-list-level small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.hall-list-achievement strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-list-level {
  text-align: right;
}

.hall-list-level strong {
  color: var(--blue-light);
  font-size: 18px;
}

.hall-list-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 160ms ease, color 160ms ease;
}

.hall-list-card:hover .hall-list-arrow {
  color: var(--blue-light);
  transform: translateX(3px);
}

.hall-podium-card.is-missing,
.hall-list-card.is-missing {
  opacity: 0.64;
  cursor: default;
}

.hall-empty-state {
  min-height: 360px;
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(117, 213, 242, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(46, 158, 196, 0.035), rgba(255, 122, 26, 0.025)), var(--panel);
  text-align: center;
}

.hall-empty-icon {
  color: var(--orange-2);
  font-size: 40px;
  text-shadow: 0 0 24px rgba(255, 122, 26, 0.45);
}

.hall-empty-state h2 {
  margin: 13px 0 8px;
  font-size: 25px;
}

.hall-empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.hall-empty-state code {
  margin-top: 18px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue-light);
  background: #090c10;
}

.hall-empty-state small {
  margin-top: 9px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hall-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hall-milestone {
    min-width: 0;
  }

  .hall-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hall-place-1 {
    order: -1;
  }

  .hall-podium-card,
  .hall-place-1 {
    min-height: 390px;
  }

  .hall-list-card {
    grid-template-columns: 42px 64px minmax(130px, 1fr) 90px 26px;
  }

  .hall-list-achievement {
    grid-column: 3 / 5;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .hall-hero h1 {
    font-size: 46px;
  }

  .hall-podium-card,
  .hall-place-1 {
    min-height: 370px;
  }

  .hall-list-card {
    grid-template-columns: 36px 58px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .hall-list-outfit {
    width: 54px;
    height: 54px;
  }

  .hall-list-outfit img {
    width: 48px;
    height: 48px;
  }

  .hall-list-achievement {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .hall-list-level {
    display: none;
  }
}

/* =========================================
   HALL DA FAMA - PODIO PREMIUM
========================================= */

.hall-podium-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hall-podium-card:hover {
    transform: translateY(-4px);
}

/* Outfit frame base */
.hall-outfit-frame {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.45));
    border: 1px solid rgba(255,255,255,0.08);
}

/* brilho atrás da outfit */
.hall-outfit-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(18px);
    opacity: 0.9;
}

.hall-outfit-frame img,
.hall-list-outfit img {
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
}

/* estrela base */
.hall-medal {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 10px currentColor, 0 0 18px currentColor;
}

/* =========================
   1º LUGAR - DOURADO
========================= */
.hall-place-1 {
    border-color: rgba(255, 191, 0, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 191, 0, 0.18) inset,
        0 0 30px rgba(255, 191, 0, 0.18),
        0 0 60px rgba(255, 191, 0, 0.08);
    background:
        radial-gradient(circle at top, rgba(255, 191, 0, 0.10), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.hall-place-1 .hall-medal,
.hall-place-1 .hall-place-label {
    color: #ffbf00;
}

.hall-place-1 .hall-player-name {
    color: #fff3c2;
}

.hall-place-1 .hall-outfit-frame {
    border-color: rgba(255, 191, 0, 0.50);
    box-shadow: 0 0 18px rgba(255,191,0,0.20);
}

.hall-place-1 .hall-outfit-frame::before {
    background: radial-gradient(circle, rgba(255,191,0,0.55), rgba(255,191,0,0.08) 60%, transparent 75%);
}

/* =========================
   2º LUGAR - PRATA
========================= */
.hall-place-2 {
    border-color: rgba(192, 198, 210, 0.55);
    box-shadow:
        0 0 0 1px rgba(192, 198, 210, 0.18) inset,
        0 0 28px rgba(192, 198, 210, 0.14),
        0 0 50px rgba(192, 198, 210, 0.06);
    background:
        radial-gradient(circle at top, rgba(192,198,210,0.08), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.hall-place-2 .hall-medal,
.hall-place-2 .hall-place-label {
    color: #c9d3df;
}

.hall-place-2 .hall-player-name {
    color: #f4f8ff;
}

.hall-place-2 .hall-outfit-frame {
    border-color: rgba(192,198,210,0.45);
    box-shadow: 0 0 16px rgba(192,198,210,0.16);
}

.hall-place-2 .hall-outfit-frame::before {
    background: radial-gradient(circle, rgba(192,198,210,0.50), rgba(192,198,210,0.08) 60%, transparent 75%);
}

/* =========================
   3º LUGAR - BRONZE
========================= */
.hall-place-3 {
    border-color: rgba(205, 127, 50, 0.55);
    box-shadow:
        0 0 0 1px rgba(205, 127, 50, 0.18) inset,
        0 0 28px rgba(205, 127, 50, 0.14),
        0 0 50px rgba(205, 127, 50, 0.06);
    background:
        radial-gradient(circle at top, rgba(205,127,50,0.10), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.hall-place-3 .hall-medal,
.hall-place-3 .hall-place-label {
    color: #cd7f32;
}

.hall-place-3 .hall-player-name {
    color: #ffe0c2;
}

.hall-place-3 .hall-outfit-frame {
    border-color: rgba(205,127,50,0.45);
    box-shadow: 0 0 16px rgba(205,127,50,0.16);
}

.hall-place-3 .hall-outfit-frame::before {
    background: radial-gradient(circle, rgba(205,127,50,0.50), rgba(205,127,50,0.08) 60%, transparent 75%);
}

/* =========================================
   LISTA / LEGADO
========================================= */

.hall-list-card {
    position: relative;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        linear-gradient(90deg, rgba(255,140,40,0.06), rgba(36,165,255,0.04)),
        linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 0 18px rgba(0,0,0,0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hall-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,140,40,0.28);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 0 20px rgba(255,140,40,0.08),
        0 0 30px rgba(36,165,255,0.05);
}

.hall-list-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8c28, #24a5ff);
    box-shadow: 0 0 12px rgba(255,140,40,0.35);
}

.hall-list-outfit {
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.35));
    border: 1px solid rgba(36,165,255,0.22);
    box-shadow: 0 0 16px rgba(36,165,255,0.10);
    overflow: hidden;
}

.hall-list-outfit::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,40,0.30), rgba(36,165,255,0.18), transparent 72%);
    filter: blur(10px);
    z-index: 0;
}

.hall-list-outfit img {
    position: relative;
    z-index: 1;
}

.hall-list-position {
    color: #ff9a3c;
    font-weight: 800;
}

.hall-list-level strong {
    color: #5ec8ff;
}

.hall-list-arrow {
    color: #ff8c28;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255,140,40,0.35);
}
