.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 34px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(180deg, #181818, #0e0e0e);
}

.site-header {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #383838;
  background: #0e0e0e;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.brand-link .brand-mark {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  margin-top: 4px;
  color: #5e6870;
  font-size: 9px;
}

.header-meta {
  margin-left: auto;
  color: #74808a;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid #282828;
  background: #0b0b0b;
  color: #515a61;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.page-content {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 38px 24px;
}

.welcome-layout {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  border: 1px solid #454545;
  background: #151515;
  box-shadow: var(--shadow);
}

.welcome-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  border-right: 1px solid #3d3d3d;
  background:
    radial-gradient(circle at 26% 42%, rgba(255, 255, 255, 0.04), transparent 28%),
    #181818;
}

.welcome-copy h1 {
  max-width: 620px;
  margin: 19px 0 18px;
  color: #fff;
  font-size: clamp(35px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.welcome-copy p {
  max-width: 520px;
  color: #87919a;
  font-size: 13px;
  line-height: 1.8;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.welcome-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.88)),
    repeating-linear-gradient(135deg, #202020 0, #202020 1px, #181818 1px, #181818 14px);
}

.welcome-panel-card {
  padding: 20px;
  border: 1px solid #454545;
  background: rgba(16, 16, 16, 0.92);
}

.welcome-panel-card h2 {
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 400;
}

.welcome-panel-card p {
  margin-bottom: 0;
  color: #7e8992;
  font-size: 11px;
  line-height: 1.65;
}

.section-frame {
  width: min(1040px, 100%);
  border: 1px solid #454545;
  background: #151515;
  box-shadow: var(--shadow);
}

.section-heading {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #3b3b3b;
  background: #111;
}

.section-heading h1 {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 300;
}

.section-heading p {
  margin: 5px 0 0;
  color: #6e7982;
  font-size: 10px;
}

.server-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 470px;
}

.server-list {
  padding: 26px;
  border-right: 1px solid #3b3b3b;
}

.server-list-title {
  margin-bottom: 14px;
  color: #707b83;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-card {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid #414141;
  background: #1a1a1a;
  cursor: pointer;
  text-align: left;
}

.server-card:hover,
.server-card.selected {
  border-color: #838383;
  background: #222;
}

.server-card.selected {
  box-shadow: inset 3px 0 0 #d2d2d2;
}

.server-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #4c4c4c;
  background: #111;
  color: #c8c8c8;
}

.server-name {
  display: block;
  color: #eee;
  font-size: 13px;
  font-weight: 400;
}

.server-detail {
  display: block;
  margin-top: 5px;
  color: #727d86;
  font-size: 10px;
}

.server-mode {
  padding: 4px 7px;
  border: 1px solid #4c4c4c;
  color: #aeb6bc;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.account-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: #181818;
}

.account-panel h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 300;
}

.account-panel > p {
  margin-bottom: 22px;
  color: #737e87;
  font-size: 11px;
  line-height: 1.5;
}

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

.account-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 4px;
}

.local-warning {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #3b3b3b;
  background: #131313;
  color: #68727a;
  font-size: 9px;
  line-height: 1.55;
}

.loading-stage {
  width: min(580px, 100%);
  padding: 42px;
  border: 1px solid #454545;
  background: #151515;
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-emblem {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border: 1px solid #595959;
  background: #1e1e1e;
  font-size: 18px;
  letter-spacing: 0.08em;
  animation: loading-pulse 1.8s ease-in-out infinite;
}

@keyframes loading-pulse {
  50% {
    border-color: #aaa;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  }
}

.loading-stage h1 {
  font-size: 19px;
  font-weight: 300;
}

.loading-stage p {
  min-height: 17px;
  color: #737e87;
  font-size: 11px;
}

.loading-track {
  height: 5px;
  margin-top: 25px;
  overflow: hidden;
  background: #070707;
}

.loading-fill {
  width: 0;
  height: 100%;
  background: #bcbcbc;
  transition: width 90ms linear;
}

.loading-percent {
  margin-top: 8px;
  color: #8d979e;
  font-size: 10px;
}

.character-body {
  padding: 22px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 9px;
}

.character-slot {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #414141;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.035), transparent 28%),
    #181818;
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.character-slot:hover,
.character-slot.selected {
  border-color: #898989;
  background-color: #202020;
  transform: translateY(-2px);
}

.character-slot.selected {
  box-shadow: inset 0 -3px 0 #d0d0d0;
}

.slot-number,
.slot-status {
  position: absolute;
  top: 11px;
  z-index: 3;
  color: #606b73;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-number {
  left: 11px;
}

.slot-status {
  right: 11px;
}

.premium-slot-status {
  color: #d1b369;
}

.race-glyph {
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.65);
}

.character-art-frame {
  position: absolute;
  inset: 27px 0 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #161616;
}

.character-art-fallback {
  position: absolute;
  z-index: 0;
}

.character-portrait {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(1.04) brightness(0.9);
  transition: filter 160ms ease, transform 220ms ease;
}

.character-slot.has-character::after {
  content: "";
  position: absolute;
  inset: 27px 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 43%, rgba(15, 15, 15, 0.42) 68%, #151515 100%);
  pointer-events: none;
}

.character-slot.has-character:hover .character-portrait,
.character-slot.has-character.selected .character-portrait {
  filter: saturate(1) contrast(1.06) brightness(1);
  transform: scale(1.025);
}

.character-name {
  max-width: 100%;
  margin-top: 24px;
  overflow: hidden;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-slot.has-character .character-name,
.character-slot.has-character .character-race {
  position: relative;
  z-index: 2;
}

.character-slot.has-character .character-name {
  margin-top: auto;
  text-shadow: 0 2px 5px #000;
}

.character-slot.has-character .character-race {
  margin-bottom: 4px;
  color: #bcc3c8;
  text-shadow: 0 1px 4px #000;
}

.character-race {
  margin-top: 7px;
  color: #808b93;
  font-size: 10px;
}

.empty-slot-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid #4b4b4b;
  color: #aaa;
  font-size: 28px;
}

.character-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #363636;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.dialog {
  width: min(560px, 100%);
  border: 1px solid #555;
  background: #1b1b1b;
  box-shadow: var(--shadow);
}

.dialog-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #414141;
  background: #121212;
}

.dialog-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid #484848;
  background: #1c1c1c;
  cursor: pointer;
}

.dialog-body {
  padding: 20px;
}

.race-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.race-option {
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8px 4px;
  border: 1px solid #414141;
  background: #171717;
  cursor: pointer;
  font-size: 9px;
}

.race-option:hover,
.race-option.selected {
  border-color: #888;
  background: #242424;
}

.race-option .glyph {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font-family: Georgia, serif;
  font-size: 26px;
}

.race-option-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.8) brightness(0.72);
  transition: filter 140ms ease, transform 180ms ease;
}

.race-option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 44%, rgba(10, 10, 10, 0.94) 100%);
  pointer-events: none;
}

.race-option-name {
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: #e3e6e8;
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

.race-option:hover .race-option-image,
.race-option.selected .race-option-image {
  filter: saturate(1) brightness(0.92);
  transform: scale(1.04);
}

.race-description {
  min-height: 36px;
  margin: 0 0 16px;
  color: #7e8991;
  font-size: 10px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* Creador de personajes: retrato completo + controles laterales. */
.character-creator-dialog {
  width: min(980px, 95vw);
  height: min(650px, 90vh);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.character-creator-body {
  flex: 1;
  min-height: 0;
  padding: 0;
}

.character-creator-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 44%) minmax(0, 1fr);
}

.creator-preview {
  min-width: 0;
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-right: 1px solid #444;
  background: #0f0f0f;
}

.creator-preview-fallback {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 0;
  transform: translate(-50%, -50%);
  font-family: Georgia, serif;
  font-size: 100px;
}

.creator-preview-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.04) brightness(0.9);
  transform: scale(1.08);
  transition: opacity 140ms ease;
}

.creator-preview-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.04) 45%, rgba(10, 10, 10, 0.86) 100%),
    linear-gradient(90deg, transparent 76%, rgba(10, 10, 10, 0.18));
  pointer-events: none;
}

.creator-preview-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-shadow: 0 2px 5px #000;
}

.creator-preview-caption strong {
  color: #fff;
  font-size: 21px;
  font-weight: 300;
}

.creator-preview-caption small {
  color: #98a1a8;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-controls {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #1b1b1b;
}

.creator-name-field {
  flex: 0 0 auto;
}

.creator-name-field input {
  height: 46px;
  font-size: 13px;
}

.creator-class-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #c7ccd0;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.creator-class-heading small {
  color: #626c74;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.creator-controls .race-options {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  margin: 10px 0 0;
  padding-right: 4px;
  overflow: hidden;
}

.creator-controls .race-option {
  min-height: 41px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 4px 9px 4px 4px;
  border: 1px solid #3f3f3f;
  background: #171717;
  text-align: left;
}

.creator-controls .race-option::after {
  content: none;
}

.creator-controls .race-option:hover,
.creator-controls .race-option.selected {
  border-color: #858585;
  background: #242424;
}

.creator-controls .race-option.selected {
  box-shadow: inset 3px 0 0 #d6d6d6;
}

.race-option-thumbnail {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #454545;
  background: #111;
}

.creator-controls .race-option .glyph {
  left: 50%;
  top: 50%;
  z-index: 0;
  font-size: 20px;
}

.creator-controls .race-option-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.78) brightness(0.74);
}

.creator-controls .race-option:hover .race-option-image,
.creator-controls .race-option.selected .race-option-image {
  filter: saturate(1) brightness(0.92);
  transform: scale(1.06);
}

.race-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.race-option-copy strong {
  overflow: hidden;
  color: #e4e7e9;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-option-copy small {
  color: #737e86;
  font-size: 8px;
}

.premium-badge,
.available-badge {
  position: relative;
  z-index: 3;
  padding: 4px 6px;
  border: 1px solid #68552f;
  background: #211d15;
  color: #d4b76d;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.available-badge {
  border-color: #3f5147;
  background: #151d19;
  color: #7fa38e;
}

.creator-preview-premium {
  margin-bottom: 2px;
  text-shadow: none;
}

.creator-controls .race-description {
  min-height: 27px;
  margin: 7px 0 0;
  color: #8b949b;
  font-size: 9px;
  line-height: 1.45;
}

.premium-development-note {
  height: 12px;
  margin: 0;
  color: #c4a765;
  font-size: 8px;
  visibility: hidden;
}

.premium-development-note.visible {
  visibility: visible;
}

.creator-selection-meta {
  flex: 0 0 46px;
  min-height: 46px;
  overflow: hidden;
}

.creator-controls .form-error {
  min-height: 16px;
  margin-top: 4px;
}

.creator-dialog-actions {
  flex: 0 0 auto;
  margin-top: 8px;
}

/* Selección de personajes: cinco slots amplios a lo ancho del viewport. */
.character-section-frame {
  width: calc(100vw - 72px);
  max-width: 1900px;
  height: calc(100vh - 172px);
  min-height: 620px;
  max-height: 790px;
  display: flex;
  flex-direction: column;
}

.character-section-frame .section-heading {
  min-height: 74px;
  flex: 0 0 74px;
  padding: 14px 20px;
}

.character-section-frame .character-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 0;
}

.character-section-frame .character-grid {
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.character-section-frame .character-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
}

.character-section-frame .character-slot.selected {
  border-color: #b7b7b7;
  box-shadow: inset 0 -3px 0 #d8d8d8, 0 12px 28px rgba(0, 0, 0, 0.24);
}

.character-section-frame .character-art-frame,
.character-section-frame .character-slot.has-character::after {
  inset: 28px 0 0;
}

.character-section-frame .character-name {
  font-size: 16px;
}

.character-section-frame .character-race {
  font-size: 10px;
}

.character-section-frame .empty-slot-icon {
  width: 82px;
  height: 82px;
  font-size: 31px;
}

.character-section-frame .character-toolbar {
  min-height: 62px;
  flex: 0 0 62px;
  margin: 14px -18px 0;
  padding: 10px 18px;
  border-top: 1px solid #3b3b3b;
  background: #111;
}

/* Pantalla minimalista de selección de personaje. */
.character-select-page {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: 43px minmax(0, 1fr) 121px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.026), transparent 43%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.006) 0, rgba(255, 255, 255, 0.006) 1px, transparent 1px, transparent 4px),
    #0b0b0b;
}

.character-select-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  padding: 0 16px;
  background: rgba(8, 8, 8, 0.97);
}

.character-select-header::after,
.character-action-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 157, 88, 0.24) 20%, rgba(187, 157, 88, 0.11) 50%, rgba(187, 157, 88, 0.24) 80%, transparent);
}

.character-select-header::after {
  bottom: 0;
}

.character-select-header h1 {
  margin: 0;
  color: #c9b477;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.character-brand {
  justify-self: start;
  color: #ededed;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.character-disconnect {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9565b;
  cursor: pointer;
  font-size: 10px;
}

.power-icon {
  width: 11px;
  height: 11px;
  display: inline-block;
  position: relative;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: inherit;
}

.power-icon::before {
  content: "";
  width: 1.5px;
  height: 6px;
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: currentColor;
}

.character-disconnect:hover {
  color: #ff6c71;
  text-shadow: 0 0 9px rgba(255, 78, 84, 0.42);
}

.character-select-main {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 28px 36px;
}

.character-stage {
  width: min(1848px, 100%);
  height: min(620px, calc(100vh - 220px));
  min-height: 470px;
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 18px 0;
}

.character-stage::before,
.character-stage::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 151, 82, 0.14), transparent);
  pointer-events: none;
}

.character-stage::before {
  top: 0;
}

.character-stage::after {
  bottom: 0;
}

.character-select-page .character-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.character-select-page .character-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(73, 73, 73, 0.78);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.024), transparent 32%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.94), rgba(10, 10, 10, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.character-select-page .character-slot:hover {
  border-color: rgba(183, 155, 89, 0.5);
  background-color: #171717;
}

.character-select-page .character-slot.selected {
  border-color: #9e874d;
  box-shadow:
    inset 0 0 0 1px rgba(205, 177, 108, 0.05),
    0 0 26px rgba(177, 148, 82, 0.045),
    0 18px 34px rgba(0, 0, 0, 0.25);
}

.character-select-page .character-slot.has-character.selected {
  border-color: #a58a4c;
  box-shadow:
    inset 0 0 0 1px rgba(205, 177, 108, 0.07),
    0 0 28px rgba(194, 161, 88, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.25);
}

.character-select-page .slot-number,
.character-select-page .slot-status {
  color: #74787c;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.character-select-page .premium-slot-status {
  color: #d3ad51;
}

.character-select-page .empty-slot-icon {
  width: 86px;
  height: 86px;
  border-color: rgba(105, 105, 105, 0.58);
  background: rgba(12, 12, 12, 0.68);
  color: #c5af75;
  font-family: inherit;
  font-size: 42px;
}

.character-select-page .character-name {
  color: #d8dce0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.character-select-page .character-race {
  color: #85898d;
  font-size: 10px;
}

.character-select-page .character-art-frame,
.character-select-page .character-slot.has-character::after {
  inset: 28px 0 0;
}

.character-select-page .character-slot.has-character .character-name {
  color: #e1cc8d;
}

.character-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  background: rgba(7, 7, 7, 0.97);
}

.character-action-bar::before {
  top: 0;
}

.character-action-button {
  min-width: 180px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #454545;
  background: #151515;
  color: #d8dce0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.character-action-button:hover:not(:disabled) {
  border-color: #8f7945;
  color: #dec98f;
}

.character-action-button.danger {
  border-color: #71383b;
  background: #190d0f;
  color: #e66b70;
}

.character-action-button.danger:hover:not(:disabled) {
  border-color: #e6575d;
  background: #260f12;
  color: #ff7b80;
  box-shadow: 0 0 17px rgba(220, 54, 61, 0.2), inset 0 0 13px rgba(211, 51, 58, 0.07);
}

.character-action-button.primary {
  border-color: #386249;
  background: #101914;
  color: #76bd91;
}

.character-action-button.primary:hover:not(:disabled) {
  border-color: #58ae78;
  background: #11251a;
  color: #91e3af;
  box-shadow: 0 0 18px rgba(61, 181, 108, 0.2), inset 0 0 13px rgba(71, 190, 117, 0.07);
}
