:root {
  --bg: #000000;
  --portrait-width: clamp(198px, calc((100vw - 160px) / 5 * 0.9), 306px);
  --roster-column-gap: clamp(10px, 1vw, 17px);
  --roster-width: calc((var(--portrait-width) * 5) + (var(--roster-column-gap) * 4));
  --bg-soft: #151922;
  --panel: rgba(18, 24, 34, 0.84);
  --panel-strong: rgba(11, 15, 22, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f1e8;
  --muted: #b7bdc9;
  --killer: #b43a2d;
  --killer-soft: #f06c57;
  --survivor: #2d7f75;
  --survivor-soft: #6fe0cb;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #000000;
  font-family: "Courier New", Courier, monospace;
}

body.prestige-route-background {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.88) 100%),
    url("/assets/prestige-route-background.jpg") center center / cover no-repeat fixed;
}

body.app-loading .page-shell {
  visibility: hidden;
}

html.builds-locked,
body.home-locked,
body.builds-locked {
  overflow: hidden;
}

body.builds-locked {
  height: 100vh;
}

img {
  filter: contrast(1.05) brightness(1.02);
}

button {
  font-family: "Courier New", Courier, monospace !important;
}


.page-shell {
  position: relative;
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

body.survivor-builds-view-mode .page-shell {
  padding-bottom: 0;
}

body.survivor-builds-edit-mode .page-shell {
  padding-bottom: 72px;
}

body.builds-locked .page-shell {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
}

.is-hidden {
  display: none !important;
}

.user-profile,
.steam-login-button {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 30;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f6f1e8;
  font-size: 0.78rem;
  font-weight: 700;
}

.steam-login-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f6f1e8;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.steam-login-button:hover,
.steam-login-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  outline: none;
}

.user-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.user-profile-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-menu-button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #f6f1e8;
  background: transparent;
  cursor: pointer;
}

.user-profile-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.user-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 112px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.96);
}

.user-profile-logout {
  margin: 0;
}

.user-profile-logout-button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  color: #f6f1e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.user-profile-logout-button:hover,
.user-profile-logout-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.top-nav {
  position: relative;
  z-index: 2;
  --prestige-help-width: min(420px, 33vw);
  --prestige-search-width: min(260px, 28vw);
  width: min(100%, var(--roster-width));
  min-height: 36px;
  margin: 0 auto 264px;
}

body.builds-locked .top-nav {
  margin: 1px auto 164px;
}

.section-nav-shell {
  display: block;
}

.section-nav-home {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.secondary-nav {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.secondary-nav .nav-tab-secondary {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.84rem;
}

.prestige-help-card {
  position: absolute;
  top: 42px;
  left: 0;
  width: var(--prestige-help-width);
  padding: 14px 42px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(244, 239, 230, 0.78);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prestige-help-dismiss {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(244, 239, 230, 0.82);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  line-height: 1;
  transition: color 160ms ease;
}

.prestige-help-dismiss:hover,
.prestige-help-dismiss:focus-visible {
  color: #ffffff;
  outline: none;
}

.prestige-help-restore {
  position: absolute;
  top: 44px;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  color: rgba(244, 239, 230, 0.76);
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.prestige-help-restore-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prestige-help-restore:hover,
.prestige-help-restore:focus-visible {
  border-color: rgba(244, 239, 230, 0.86);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transform: translateY(-1px);
}

.prestige-help-card p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
}

.prestige-help-card p + p {
  margin-top: 6px;
}

.prestige-search-control {
  position: absolute;
  top: 238px;
  left: 0;
  width: var(--prestige-search-width);
}

.prestige-search-input {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(244, 239, 230, 0.94);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  outline: none;
}

.prestige-search-input::placeholder {
  color: rgba(244, 239, 230, 0.46);
  text-transform: uppercase;
}

.prestige-search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.prestige-filter-controls {
  position: absolute;
  top: 238px;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: min(100%, 720px);
}

.prestige-filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(244, 239, 230, 0.84);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prestige-filter-button:hover,
.prestige-filter-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: transparent;
  outline: none;
}

.prestige-filter-button.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.nav-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(244, 239, 230, 0.92);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  outline: none;
}

.nav-tab.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.nav-tab-secondary {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.76rem;
}

.home-select {
  position: relative;
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 324px));
  align-content: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
}

.home-background-video,
.home-background-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.home-background-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
}

.home-background-shade {
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.role-card {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 340px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 19, 23, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.role-card:hover,
.role-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  outline: none;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.22) 56%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.role-card-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.role-card-builds {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.54), rgba(7, 8, 10, 0.68));
}

.role-card-builds::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.62) 100%);
  z-index: 0;
}

.role-card-tracker {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.54), rgba(7, 8, 10, 0.68));
}

.role-card-tracker::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.62) 100%);
}

.role-card-builds span {
  letter-spacing: 0.12em;
}

.home-badge {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.44)) contrast(1.05) brightness(1.02);
}

.home-badge-main {
  left: 50%;
  top: 48%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
}

.home-badge-left {
  left: 20px;
  bottom: 96px;
  width: 88px;
  height: 88px;
  transform: rotate(-12deg);
  opacity: 0.95;
}

.home-badge-right {
  right: 18px;
  top: 60px;
  width: 96px;
  height: 96px;
  transform: rotate(10deg);
  opacity: 0.96;
}

.home-badge-top {
  left: 62%;
  top: 10px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0.88;
}

.home-badge-top-left-large {
  left: 82px;
  top: 24px;
  width: 94px;
  height: 94px;
  transform: rotate(-10deg);
  opacity: 0.9;
}

.home-badge-mid-left {
  left: 14px;
  top: 58px;
  width: 56px;
  height: 56px;
  transform: rotate(-14deg);
  opacity: 0.78;
}

.home-badge-mid-right {
  right: 8px;
  top: 170px;
  width: 58px;
  height: 58px;
  transform: rotate(14deg);
  opacity: 0.8;
}

.home-badge-bottom-left {
  left: 108px;
  bottom: 62px;
  width: 62px;
  height: 62px;
  transform: rotate(8deg);
  opacity: 0.82;
}

.home-badge-bottom-right {
  right: 74px;
  bottom: 68px;
  width: 66px;
  height: 66px;
  transform: rotate(-10deg);
  opacity: 0.84;
}

.role-card-visual-builds {
  display: grid;
  place-items: center;
  z-index: 1;
}

.role-card-visual-builds::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.build-slot {
  position: absolute;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}

.build-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.34));
}

.build-slot-a {
  left: 16px;
  top: 34px;
}

.build-slot-b {
  right: 18px;
  top: 30px;
}

.build-slot-c {
  left: 34px;
  bottom: 132px;
}

.build-slot-d {
  right: 36px;
  bottom: 110px;
}

.build-slot-e {
  left: 126px;
  top: 6px;
}

.build-slot-f {
  left: 122px;
  bottom: 150px;
}

.build-slot-g {
  left: 104px;
  bottom: 54px;
}

.role-card span {
  position: relative;
  z-index: 2;
  color: rgba(242, 238, 230, 0.94);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.45rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6);
}

.roster-section {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.section-count,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.content {
  display: grid;
  gap: 24px;
}

.roster-section {
  padding: 0;
}

.builds-panel {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.survivor-builds-view-mode .builds-panel {
  padding-bottom: 0;
}

body.survivor-builds-edit-mode .builds-panel {
  padding: 14px 20px 6px;
}

.builds-header {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.builds-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.builds-tab {
  min-width: 148px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.builds-tab.is-active {
  background: transparent;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.28);
}

.build-selector-field {
  width: min(100%, 820px);
  margin: 0 auto 34px;
  position: relative;
  z-index: 4;
}

.build-selector-field.has-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
}

.build-selector-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 46px;
  padding: 6px 52px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #d4d8e4;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
}

.build-selector-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #f2e9d9;
  border-bottom: 2px solid #f2e9d9;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 160ms ease;
}

.build-selector-trigger[aria-expanded="true"] .build-selector-chevron {
  transform: translateY(-50%) rotate(-135deg);
}

.build-selector-trigger #build-selector-value {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
}

.build-selector-selected {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.build-selector-killer-input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #d4d8e4;
  background: transparent;
  font: inherit;
  text-align: left;
  outline: none;
}

.build-selector-killer-input::placeholder {
  color: #d4d8e4;
  opacity: 1;
}

.build-selector-selected-thumb {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.build-selector-panel {
  grid-column: 1 / -1;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(1, 1, 3, 0.98);
}

.build-selector-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.build-selector-actions:empty {
  display: none;
}

.build-selector-list {
  max-height: 520px;
  overflow-y: auto;
}

.build-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.build-option:last-child {
  border-bottom: 0;
}

.build-option-empty {
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.build-option:hover,
.build-option:focus-visible {
  background: transparent;
  outline: none;
}

.build-option-row {
  justify-content: space-between;
  cursor: default;
}

.build-option-select {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.build-option-select:focus-visible {
  outline: none;
}

.build-option-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.build-option-move-button {
  min-width: 28px;
  min-height: 28px;
}

.build-option-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}

.build-option-copy {
  display: grid;
  gap: 4px;
}

.build-option-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.build-option-description {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.build-results {
  width: 100%;
  margin: 0 auto;
}

.build-selection-title {
  margin: 0 0 12px;
  color: #f5efe5;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.build-selection-title-input {
  width: min(100%, 460px);
  margin: 0 auto 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #f5efe5;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
}

.build-selection-title-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.build-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.build-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(34, 34, 36, 0.64), rgba(12, 12, 16, 0.92));
  text-align: center;
}

.build-card-label {
  display: inline-block;
  margin-bottom: 2px;
  color: #d6b07a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.build-card-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.build-move-button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.build-move-button:hover,
.build-move-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  outline: none;
}

.build-move-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.build-delete-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.build-delete-button:hover,
.build-delete-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  outline: none;
}

.build-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.build-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.build-cards-survivor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px 18px;
}

.killer-build-sections {
  display: grid;
  gap: 28px;
  width: 100%;
}

.build-card-survivor {
  display: grid;
  gap: 10px;
  padding: 12px;
  flex: 1 1 470px;
  width: min(100%, 480px);
  max-width: 480px;
  text-align: left;
}

.survivor-build-editor.is-editing .build-cards-survivor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.survivor-build-editor.is-editing .build-card-survivor {
  width: 100%;
  max-width: 100%;
  gap: 6px;
  padding: 8px;
}

.build-name-display {
  margin: 0;
  color: #f7f2e8;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.build-name-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.survivor-build-editor.is-editing .build-name-input {
  padding: 7px 9px;
  font-size: 0.8rem;
}

.build-name-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.build-perk-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.build-addon-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.build-perk-slot,
.build-addon-slot {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.survivor-build-editor.is-editing .build-perk-slots,
.survivor-build-editor.is-editing .build-addon-slots {
  gap: 8px;
}

.survivor-build-editor.is-editing .build-perk-slot,
.survivor-build-editor.is-editing .build-addon-slot {
  min-height: 92px;
  gap: 4px;
  padding: 6px 5px;
}

.build-perk-slot:hover,
.build-perk-slot:focus-visible,
.build-addon-slot:hover,
.build-addon-slot:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
  outline: none;
  transform: translateY(-2px);
}

.build-perk-slot.is-empty,
.build-addon-slot.is-empty {
  place-items: center;
  align-content: center;
}

.build-perk-empty {
  color: #d2c8ba;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.build-perk-primary {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.build-addon-primary {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.survivor-build-editor.is-editing .build-perk-primary {
  width: 42px;
  height: 42px;
}

.survivor-build-editor.is-editing .build-addon-primary {
  width: 42px;
  height: 42px;
}

.build-perk-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.build-perk-meta {
  display: grid;
  gap: 6px;
  width: 100%;
}

.build-perk-name {
  display: block;
  color: #f5efe5;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.survivor-build-editor.is-editing .build-perk-name {
  font-size: 0.6rem;
  line-height: 1.1;
}

.build-perk-alternatives {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.build-perk-alternative,
.perk-selection-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.survivor-build-editor.is-editing .build-perk-alternative {
  width: 18px;
  height: 18px;
}

.build-perk-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.72rem;
  font-weight: 700;
}

.survivor-build-editor.is-editing .build-perk-more {
  min-width: 18px;
  height: 18px;
  font-size: 0.56rem;
}

.build-editor-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.survivor-build-editor.is-editing .build-editor-actions {
  margin-top: 6px;
}

.build-mode-button,
.build-add-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.build-addon-name {
  display: block;
  width: 100%;
  color: #f5efe5;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.survivor-build-editor.is-editing .build-addon-name {
  font-size: 0.6rem;
  line-height: 1.1;
}

.build-mode-button:hover,
.build-mode-button:focus-visible,
.build-add-button:hover,
.build-add-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  outline: none;
  transform: translateY(-1px);
}

.build-add-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.survivor-build-editor.is-viewing .build-card-label {
  display: none;
}

.survivor-build-editor.is-viewing {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.survivor-build-editor.is-viewing .build-cards-survivor {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  justify-content: center;
  align-content: start;
  gap: 12px 56px;
  width: min(100%, 1380px);
  margin: 0 auto;
}

.survivor-build-editor.is-viewing .build-card-header {
  display: none;
}

.survivor-build-editor.is-viewing .build-card-survivor {
  position: relative;
  gap: 28px;
  padding: 0 2px 6px;
  flex: 0 0 420px;
  width: 420px;
  max-width: 420px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.survivor-build-editor.is-viewing .build-card-survivor::before {
  content: none;
}

.survivor-build-editor.is-viewing .build-card-survivor:nth-child(-n + 3) {
  padding-top: 0;
}

.survivor-build-editor.is-viewing .build-card-survivor:nth-child(-n + 3)::before {
  content: none;
}

.survivor-build-editor.is-viewing .build-card-survivor:nth-child(-n + 3) .build-card-header {
  display: none;
}

.survivor-build-editor.is-viewing .build-card-survivor.has-inline-divider::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -28px;
  width: 1px;
  height: 56%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.06) 12%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.06) 88%,
    transparent
  );
  pointer-events: none;
}

.survivor-build-editor.is-viewing .build-perk-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.survivor-build-editor.is-viewing .build-addon-slots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.survivor-build-editor.is-viewing .build-perk-slot,
.survivor-build-editor.is-viewing .build-addon-slot {
  min-height: 128px;
  width: 86px;
  flex: 0 0 86px;
  display: grid;
  grid-template-rows: 74px 42px;
  align-content: start;
  align-items: center;
  justify-items: center;
  padding: 2px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
  transition: none;
}

.survivor-build-editor.is-viewing .build-perk-slot:hover,
.survivor-build-editor.is-viewing .build-perk-slot:focus-visible,
.survivor-build-editor.is-viewing .build-addon-slot:hover,
.survivor-build-editor.is-viewing .build-addon-slot:focus-visible {
  border: 0;
  background: transparent;
  outline: none;
  transform: none;
}

.survivor-build-editor.is-viewing .build-perk-primary {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.survivor-build-editor.is-viewing .build-addon-primary {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.survivor-build-editor.is-viewing .build-perk-name {
  display: none;
}

.survivor-build-editor.is-viewing .build-addon-name {
  display: none;
}

.survivor-build-editor.is-viewing .build-perk-meta {
  min-height: 42px;
  display: grid;
  align-items: center;
}

.survivor-build-editor.is-viewing .build-perk-alternatives {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
}

.survivor-build-editor.is-viewing .build-perk-alternative {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.14));
}

.survivor-build-editor.is-viewing .build-perk-more {
  min-width: 42px;
  height: 42px;
  font-size: 0.78rem;
}

.survivor-build-editor.is-viewing .build-name-display {
  margin-bottom: 0;
  font-size: 1.08rem;
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(255, 255, 255, 0.16);
}

.survivor-build-editor.is-viewing .build-perk-icon::after {
  content: attr(data-perk-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(16, 16, 18, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 3;
}

.survivor-build-editor.is-viewing .build-perk-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(16, 16, 18, 0.96);
  transform: translateX(-50%) rotate(45deg) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 3;
}

.survivor-build-editor.is-viewing .build-perk-icon:hover::after,
.survivor-build-editor.is-viewing .build-perk-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.survivor-build-editor.is-viewing .build-perk-icon:hover::before {
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.survivor-build-editor.is-viewing .build-editor-actions {
  margin-top: 0;
}

.survivor-build-editor.is-viewing .build-perk-alternative,
.survivor-build-editor.is-viewing .build-perk-more {
  opacity: 1;
}

.builds-empty {
  min-height: 54px;
}

.card-grid {
  --roster-row-gap: clamp(24px, 2.2vw, 34px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: var(--roster-column-gap);
  row-gap: var(--roster-row-gap);
  max-width: calc((var(--portrait-width) * 5) + (var(--roster-column-gap) * 4));
  margin: 0 auto;
}

.character-card {
  --accent: 180, 180, 180;
  display: flex;
  flex-direction: column;
  width: var(--portrait-width);
  min-height: 100%;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card:hover {
  transform: translateY(-3px);
}

.character-card.killer:hover {
  border-color: rgba(240, 108, 87, 0.45);
}

.character-card.survivor:hover {
  border-color: rgba(111, 224, 203, 0.45);
}

.card-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  box-shadow: none;
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.card-media.is-loading {
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.09) 18%, transparent 36%) -220% 0 / 220% 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 18px 44px rgba(255, 255, 255, 0.025);
  animation: card-shimmer 1.25s ease-in-out infinite;
}

@keyframes card-shimmer {
  100% {
    background-position: 220% 0, 0 0, 0 0;
  }
}

.character-card.is-unmarked .card-media {
  filter: saturate(0) brightness(0.68) contrast(0.94);
}

.character-card.is-unmarked .card-media::after {
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 34%,
      rgba(0, 0, 0, 0.12) 62%,
      rgba(0, 0, 0, 0.29) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.19) 0%,
      rgba(0, 0, 0, 0.02) 24%,
      rgba(0, 0, 0, 0.04) 68%,
      rgba(0, 0, 0, 0.36) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 22%,
      rgba(0, 0, 0, 0) 78%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.locked-indicator {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(30px, calc(var(--portrait-width) * 0.14), 40px);
  height: clamp(30px, calc(var(--portrait-width) * 0.14), 40px);
  margin: 0 0 clamp(10px, calc(var(--portrait-width) * 0.06), 16px) clamp(10px, calc(var(--portrait-width) * 0.06), 16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(3, 5, 8, 0.58);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.locked-indicator svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-media::before,
.card-media::after {
  content: "";
  grid-area: 1 / 1;
  pointer-events: none;
}

.card-media::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.65;
}

.card-media::after {
  z-index: 2;
  background: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 34%,
      rgba(0, 0, 0, 0.12) 62%,
      rgba(0, 0, 0, 0.29) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.19) 0%,
      rgba(0, 0, 0, 0.02) 24%,
      rgba(0, 0, 0, 0.04) 68%,
      rgba(0, 0, 0, 0.36) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 22%,
      rgba(0, 0, 0, 0) 78%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.card-media .character-portrait {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: contrast(1.05) brightness(1.02) saturate(1.08);
  transition:
    opacity 180ms ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.card-media .character-portrait.is-loaded {
  opacity: 1;
}

.card-media .character-portrait {
  cursor: pointer;
}

.character-badge-tray {
  --badge-size: clamp(58px, calc(var(--portrait-width) * 0.34), 74px);
  --badge-small-size: clamp(52px, calc(var(--portrait-width) * 0.3), 65px);
  --badge-side-inset: clamp(12px, calc(var(--portrait-width) * 0.07), 16px);
  grid-area: 1 / 1;
  align-self: end;
  justify-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.character-card:hover .card-media {
  box-shadow: none;
}

.character-card:hover .character-portrait {
  transform: scale(1.035);
  filter: contrast(1.08) brightness(1.04) saturate(1.05);
}

.character-badge-slot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--badge-size);
  height: var(--badge-size);
}

.character-badge-tray.has-small-prestige .character-badge-slot {
  width: var(--badge-small-size);
  height: var(--badge-small-size);
}

.prestige-badge,
.cake-badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.62));
}

.prestige-badge-max {
  margin-top: 2px;
  margin-left: -7px;
}

.prestige-badge-standard {
  margin-top: 8px;
  margin-left: -12px;
}

.cake-badge {
  width: 75% !important;
  margin-top: 16px;
  margin-right: -20px;
}

.placeholder {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder span {
  display: inline-block;
  font-size: 0.92rem;
  line-height: 1.4;
}

.card-copy {
  display: block;
  padding: 10px 6px 0;
  background: transparent;
  border-top: 0;
}

.card-title {
  margin: 0;
  color: #f8f4ea;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.prestige-modal {
  position: relative;
  width: min(100%, 460px);
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(20, 20, 22, 0.99), rgba(3, 3, 4, 0.99));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.76),
    0 0 34px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.prestige-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(244, 239, 230, 0.78);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.56rem;
  line-height: 1;
  transition: color 160ms ease;
}

.prestige-modal-close:hover,
.prestige-modal-close:focus-visible {
  color: #ffffff;
  outline: none;
}

.prestige-modal h2 {
  margin: 0 0 8px;
  color: #f8f4ea;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
  line-height: 1.1;
  text-shadow: 0 1px 0 #000, 0 0 16px rgba(255, 255, 255, 0.16);
}

.prestige-modal-copy,
.prestige-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.prestige-modal-copy {
  margin-bottom: 18px;
}

.perk-modal {
  width: min(100%, 980px);
  max-height: min(92vh, 860px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(34, 34, 36, 0.98), rgba(10, 10, 12, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.perk-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.perk-modal-header h2 {
  margin: 0 0 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
}

.perk-modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.perk-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.perk-modal-tools {
  display: flex;
}

.perk-search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 1rem;
}

.perk-search-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.perk-selection-strip {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.perk-selection-strip.is-empty {
  align-items: center;
}

.perk-selection-empty,
.perk-picker-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.perk-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.perk-picker-grid {
  min-height: 280px;
  max-height: min(48vh, 440px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.perk-picker-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #f7f2e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.perk-picker-item:hover,
.perk-picker-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
  outline: none;
  transform: translateY(-2px);
}

.perk-picker-item.is-selected {
  border-color: rgba(255, 255, 255, 0.96);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.perk-picker-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.perk-picker-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.perk-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .build-cards-survivor {
    gap: 18px;
  }

  .build-card-survivor {
    flex-basis: 380px;
    max-width: 440px;
  }

  .survivor-build-editor.is-viewing .build-card-survivor {
    flex-basis: 420px;
    width: min(100%, 440px);
    max-width: 440px;
  }
}

.prestige-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#prestige-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(34, 34, 36, 0.86), rgba(8, 8, 10, 0.92));
  font: inherit;
  font-size: 1rem;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.38),
    inset 0 10px 22px rgba(0, 0, 0, 0.24);
}

#prestige-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.76);
}

#prestige-input::-webkit-outer-spin-button,
#prestige-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

#prestige-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cake-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
}

.checkbox-wrapper-6 .tgl {
  display: none;
}

.checkbox-wrapper-6 .tgl,
.checkbox-wrapper-6 .tgl:after,
.checkbox-wrapper-6 .tgl:before,
.checkbox-wrapper-6 .tgl + .tgl-btn {
  box-sizing: border-box;
}

.checkbox-wrapper-6 .tgl::selection,
.checkbox-wrapper-6 .tgl:after::selection,
.checkbox-wrapper-6 .tgl:before::selection,
.checkbox-wrapper-6 .tgl + .tgl-btn::selection {
  background: none;
}

.checkbox-wrapper-6 .tgl + .tgl-btn {
  width: 4em;
  height: 2em;
  display: block;
  position: relative;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2em;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.96), rgba(4, 4, 5, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    inset 0 8px 18px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  outline: 0;
  user-select: none;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.checkbox-wrapper-6 .tgl + .tgl-btn:after,
.checkbox-wrapper-6 .tgl + .tgl-btn:before {
  width: 50%;
  height: 100%;
  display: block;
  position: relative;
  content: "";
}

.checkbox-wrapper-6 .tgl + .tgl-btn:after {
  left: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8f8f8, #aaa);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.46);
  transition: left 0.2s ease, background 0.2s ease;
}

.checkbox-wrapper-6 .tgl + .tgl-btn:before {
  display: none;
}

.checkbox-wrapper-6 .tgl:checked + .tgl-btn {
  border-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(68, 68, 72, 0.98), rgba(18, 18, 20, 0.98));
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.checkbox-wrapper-6 .tgl:checked + .tgl-btn:after {
  left: 50%;
  background: linear-gradient(180deg, #ffffff, #d5d5d8);
}

.checkbox-wrapper-6 .tgl:focus-visible + .tgl-btn {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52);
}

.prestige-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

#prestige-clear {
  margin-right: auto;
}

.prestige-button {
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.prestige-button:hover,
.prestige-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  outline: none;
  transform: translateY(-1px);
}

.prestige-button-primary {
  color: #f6f1e8;
  background: linear-gradient(180deg, rgba(42, 42, 45, 0.98), rgba(8, 8, 10, 0.98));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.prestige-button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.prestige-button-danger {
  color: #f6f1e8;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  :root {
    --portrait-width: 170px;
  }

  .page-shell {
    width: min(100% - 48px, 1280px);
    padding-top: 28px;
  }

  .top-nav {
    margin-bottom: 22px;
  }

  .section-nav-shell {
    display: grid;
    gap: 10px;
  }

  .section-nav-home {
    width: 100%;
  }

  .secondary-nav {
    position: static;
    transform: none;
    gap: 8px;
  }

  .build-selector-field.has-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .build-selector-actions {
    justify-content: flex-end;
  }

  .prestige-help-card {
    position: static;
    width: 100%;
    padding: 12px 40px 12px 14px;
  }

  .prestige-help-restore {
    position: relative;
    top: auto;
    left: auto;
    justify-self: start;
  }

  .prestige-search-control {
    position: static;
    width: 100%;
  }

  .prestige-filter-controls {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .prestige-filter-button {
    flex: 0 1 auto;
    min-height: 32px;
    font-size: 0.66rem;
  }

  .nav-tab {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .home-select {
    min-height: calc(100vh - 32px);
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .role-card {
    min-height: 260px;
  }

  .home-badge-main {
    width: 120px;
    height: 120px;
  }

  .home-badge-left,
  .home-badge-right {
    width: 78px;
    height: 78px;
  }

  .home-badge-left {
    left: 12px;
    bottom: 84px;
  }

  .home-badge-right {
    right: 8px;
    top: 54px;
  }

  .home-badge-top {
    left: 64%;
    top: 8px;
    width: 64px;
    height: 64px;
  }

  .home-badge-top-left-large {
    left: 58px;
    top: 18px;
    width: 76px;
    height: 76px;
  }

  .home-badge-mid-left {
    left: 8px;
    top: 58px;
    width: 46px;
    height: 46px;
  }

  .home-badge-mid-right {
    right: 2px;
    top: 126px;
    width: 48px;
    height: 48px;
  }

  .home-badge-bottom-left {
    left: 70px;
    bottom: 58px;
    width: 52px;
    height: 52px;
  }

  .home-badge-bottom-right {
    right: 50px;
    bottom: 62px;
    width: 54px;
    height: 54px;
  }

  .build-slot {
    width: 66px;
    height: 66px;
  }

  .build-slot img {
    width: 100%;
    height: 100%;
  }

  .build-slot-a {
    left: 6px;
    top: 26px;
  }

  .build-slot-b {
    right: 6px;
    top: 26px;
  }

  .build-slot-c {
    left: 18px;
    bottom: 114px;
  }

  .build-slot-d {
    right: 18px;
    bottom: 96px;
  }

  .build-slot-e {
    left: 88px;
    top: 4px;
  }

  .build-slot-f {
    left: 84px;
    bottom: 112px;
  }

  .build-slot-g {
    left: 56px;
    bottom: 28px;
  }

  .roster-section {
    padding-left: 0;
    padding-right: 0;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, var(--portrait-width));
    justify-content: center;
  }

  .prestige-modal {
    padding: 20px;
  }

  .prestige-actions {
    flex-wrap: wrap;
  }

  #prestige-clear {
    margin-right: 0;
  }

  .prestige-button {
    flex: 1 1 120px;
  }

  .builds-header {
    align-items: stretch;
    flex-direction: column;
  }

  .builds-tabs {
    width: 100%;
  }

  .builds-tab {
    min-width: 0;
    flex: 1 1 0;
  }

  .build-cards {
    grid-template-columns: 1fr;
  }

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

  .build-perk-slot {
    min-height: 170px;
  }

  .build-card-survivor {
    flex-basis: 100%;
    max-width: 100%;
  }

  .perk-modal {
    padding: 18px;
  }

  .perk-modal-header {
    align-items: center;
  }

  .perk-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(46vh, 360px);
  }

  .perk-modal-actions {
    flex-wrap: wrap;
  }

  .perk-modal-actions .prestige-button {
    flex: 1 1 140px;
  }
}

button,
button *,
.steam-login-button,
.steam-login-button * {
  font-family: "Courier New", Courier, monospace !important;
}
