/* Mu Fallen additions: isolated from the original Mu Olimpo stylesheet. */
:root {
  --fallen-ice: #5ad7ff;
  --fallen-blue: #168fd0;
  --fallen-blue-dark: #071827;
  --fallen-red: #ff4e43;
  --fallen-green: #54d99a;
  --fallen-panel: rgba(5, 16, 25, 0.95);
  --fallen-line: rgba(90, 215, 255, 0.24);
  --fallen-line-bright: rgba(90, 215, 255, 0.56);
  --fallen-cursor-default: url("../../img/cursor/normal cursor.cur"), auto;
  --fallen-cursor-alt: url("../../img/cursor/alternate select.cur"), default;
  --fallen-cursor-link: url("../../img/cursor/link select.cur"), pointer;
  --fallen-cursor-text: url("../../img/cursor/text.cur"), text;
  --fallen-cursor-busy: url("../../img/cursor/busy.cur"), wait;
}

html,
body {
  cursor: var(--fallen-cursor-default);
}

input,
textarea,
select {
  cursor: var(--fallen-cursor-text);
}

a,
button,
[role="button"],
label[for],
summary {
  cursor: var(--fallen-cursor-link);
}

:disabled,
[aria-disabled="true"] {
  cursor: var(--fallen-cursor-alt);
}

.nav-logo-main {
  height: clamp(54px, 6.5vw, 70px);
  max-width: min(116px, 31vw);
}

.hero-main-logo {
  width: clamp(190px, 24vw, 290px);
  margin-bottom: 4px;
  filter:
    drop-shadow(0 20px 28px rgba(0, 0, 0, 0.76))
    drop-shadow(0 0 30px rgba(55, 182, 255, 0.22));
}

.footer-logo-main {
  height: clamp(92px, 9vw, 118px);
  max-width: min(190px, 52vw);
}

.fallen-live-menu {
  min-width: 210px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(20, 23, 31, 0.98), rgba(5, 8, 13, 0.99));
  border: 1px solid var(--fallen-line);
  border-radius: 4px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

.fallen-live-menu .dropdown-item {
  padding: 9px 12px;
  border-radius: 3px;
  color: rgba(238, 248, 255, 0.78);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallen-live-menu .dropdown-item:hover,
.fallen-live-menu .dropdown-item:focus {
  color: var(--gold-light);
  background: rgba(22, 143, 208, 0.1);
}

.fallen-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fallen-section::before,
.fallen-live-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 14% 0%, rgba(43, 151, 217, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 22%);
}

.fallen-section-head,
.fallen-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.fallen-section-head .gold-divider {
  margin-inline: 0;
}

.fallen-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fallen-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--fallen-line);
  border-radius: 3px;
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallen-text-link:hover {
  color: #edfaff;
  border-color: var(--fallen-line-bright);
  background: rgba(22, 143, 208, 0.08);
  transform: translateY(-2px);
}

/* Hall of Fame */
.fallen-live-section {
  min-height: 900px;
}

.fallen-ranking-panel {
  position: relative;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--fallen-line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(25, 25, 31, 0.96), rgba(6, 8, 13, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.fallen-ranking-panel::before {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  box-shadow: 0 0 18px rgba(90, 215, 255, 0.42);
}

.fallen-panel-head {
  align-items: center;
  margin-bottom: 24px;
}

.fallen-panel-head h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-deco);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
}

.fallen-panel-head p {
  margin: 6px 0 0;
  color: rgba(238, 248, 255, 0.58);
  font-size: 0.88rem;
}

.fallen-ranking-limit {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
}

.fallen-ranking-limit span {
  color: rgba(238, 248, 255, 0.52);
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fallen-ranking-limit select {
  min-width: 118px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--fallen-line);
  border-radius: 3px;
  color: var(--white);
  background: #0a0c11;
  font-family: var(--font-title);
  font-size: 0.76rem;
}

.fallen-rank-tabs {
  display: flex;
  gap: 7px;
  padding: 4px 3px 13px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.fallen-rank-tabs button {
  min-width: 59px;
  padding: 10px 15px;
  border: 1px solid rgba(22, 143, 208, 0.18);
  border-radius: 2px;
  color: rgba(238, 248, 255, 0.55);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: skewX(-12deg);
  transition: 180ms ease;
}

.fallen-rank-tabs button span {
  display: block;
  transform: skewX(12deg);
}

.fallen-rank-tabs button:hover,
.fallen-rank-tabs button.is-active {
  color: #e8f8ff;
  border-color: rgba(90, 215, 255, 0.72);
  background: linear-gradient(180deg, rgba(22, 143, 208, 0.19), rgba(22, 143, 208, 0.05));
  box-shadow: 0 8px 24px rgba(22, 143, 208, 0.12);
}

.fallen-podium-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  margin: 18px 0 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 145, 204, 0.17), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(90, 215, 255, 0.13), transparent 30%);
}

.fallen-podium-info {
  position: absolute;
  top: 8px;
  left: 50%;
  margin: 0;
  color: rgba(238, 248, 255, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.fallen-podium {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
  padding-top: 26px;
}

.fallen-podium__crown {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(90, 215, 255, 0.58);
  border-radius: 50%;
  color: var(--gold-light);
  background: #061522;
  box-shadow: 0 0 28px rgba(90, 215, 255, 0.35);
  transform: translate(-50%, -50%);
}

.fallen-podium__art-wrap {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(82vw, 340px);
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.fallen-podium__art {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.75));
  transition: transform 350ms ease, filter 350ms ease;
}

.fallen-podium:hover .fallen-podium__art {
  transform: translateY(-4px) scale(1.025);
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 18px rgba(101, 215, 255, 0.22));
}

.fallen-podium__pedestal {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 10px;
  width: 260px;
  height: 58px;
  border: 1px solid rgba(90, 215, 255, 0.34);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(90, 215, 255, 0.2), rgba(0, 0, 0, 0.66) 66%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.72);
  transform: translateX(-50%);
}

.fallen-podium__name {
  position: relative;
  z-index: 4;
  margin: -10px 0 2px;
  color: #f2fbff;
  font-family: var(--font-deco);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  text-shadow: 0 0 18px rgba(90, 215, 255, 0.38);
}

.fallen-podium__class {
  color: rgba(238, 248, 255, 0.56);
  font-family: var(--font-title);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fallen-podium__badge {
  margin-top: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(90, 215, 255, 0.48);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(22, 143, 208, 0.08);
  font-family: var(--font-title);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.fallen-table-wrap {
  border: 1px solid rgba(22, 143, 208, 0.18);
  border-radius: 5px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.22);
}

.fallen-data-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  color: rgba(238, 248, 255, 0.78);
  font-size: 0.83rem;
}

.fallen-data-table th {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(22, 143, 208, 0.23);
  color: rgba(90, 215, 255, 0.76);
  background: rgba(22, 143, 208, 0.05);
  font-family: var(--font-title);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fallen-data-table td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(22, 143, 208, 0.08);
  vertical-align: middle;
}

.fallen-data-table tbody tr {
  transition: background 160ms ease, transform 160ms ease;
}

.fallen-data-table tbody tr:hover {
  background: rgba(101, 215, 255, 0.055);
}

.fallen-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.fallen-rank-number {
  color: var(--gold-light);
  font-family: var(--font-title);
  font-weight: 800;
}

.fallen-rank-number.is-first {
  color: #ffe181;
  text-shadow: 0 0 14px rgba(255, 213, 75, 0.54);
}

.fallen-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(101, 215, 255, 0.26);
  border-radius: 50%;
  overflow: hidden;
  background: #05080d;
}

.fallen-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fallen-char-link {
  color: #e2f6ff;
  font-family: var(--font-title);
  font-weight: 700;
}

.fallen-char-link:hover {
  color: var(--fallen-ice);
}

.fallen-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6c6b70;
  box-shadow: 0 0 0 3px rgba(108, 107, 112, 0.12);
}

.fallen-online-dot.is-online {
  background: var(--fallen-green);
  box-shadow: 0 0 0 3px rgba(84, 217, 154, 0.12), 0 0 12px rgba(84, 217, 154, 0.54);
}

.fallen-state {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 28px 18px !important;
  color: rgba(238, 248, 255, 0.55);
  text-align: center;
  font-style: italic;
}

/* Killer */
.fallen-killer-section {
  background:
    linear-gradient(180deg, rgba(34, 8, 8, 0.66), rgba(6, 6, 9, 0.98)),
    url("../images/bg-dark-olympus.webp") center / cover;
}

.fallen-killer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
  align-items: center;
  width: min(920px, 100%);
  min-height: 410px;
  margin: 0 auto;
  border: 1px solid rgba(255, 78, 67, 0.34);
  border-radius: 7px;
  background:
    radial-gradient(circle at 24% 48%, rgba(255, 78, 67, 0.14), transparent 34%),
    linear-gradient(130deg, rgba(22, 9, 11, 0.97), rgba(7, 8, 12, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.fallen-killer-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, 0.025) 49%, transparent 52%);
}

.fallen-killer-card__flare {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 46, 36, 0.14);
  filter: blur(60px);
  transform: translate(-50%, -50%);
}

.fallen-killer-card__crown {
  position: absolute;
  z-index: 5;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 78, 67, 0.46);
  border-radius: 50%;
  color: #ff726a;
  background: rgba(27, 7, 8, 0.9);
  box-shadow: 0 0 24px rgba(255, 78, 67, 0.2);
}

.fallen-killer-card__art-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: stretch;
  place-items: end center;
  min-height: 400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.fallen-killer-card__art {
  width: auto;
  height: 96%;
  object-fit: contain;
  filter:
    saturate(0.9)
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 18px rgba(255, 56, 44, 0.24));
}

.fallen-killer-card__empty {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: auto;
  border: 1px solid rgba(255, 78, 67, 0.22);
  border-radius: 50%;
  color: rgba(255, 78, 67, 0.42);
  background: rgba(255, 78, 67, 0.035);
  font-size: 4.2rem;
}

.fallen-killer-card__copy {
  position: relative;
  z-index: 3;
  padding: 46px clamp(28px, 5vw, 68px) 46px 20px;
}

.fallen-killer-card__copy h3 {
  margin: 0;
  color: #fff1ee;
  font-family: var(--font-deco);
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 0 24px rgba(255, 78, 67, 0.24);
}

.fallen-killer-card__copy p {
  margin: 4px 0 18px;
  color: rgba(238, 248, 255, 0.54);
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fallen-killer-card__copy strong {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid rgba(255, 78, 67, 0.5);
  border-radius: 999px;
  color: #ff877f;
  background: rgba(255, 78, 67, 0.09);
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

/* Market */
.fallen-market-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(22, 143, 208, 0.09), transparent 30%),
    #0b0b0e;
}

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

.fallen-market-card {
  position: relative;
  display: grid;
  grid-template-rows: 118px auto auto 1fr;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(22, 143, 208, 0.2);
  border-radius: 5px;
  color: var(--white);
  background:
    linear-gradient(155deg, rgba(26, 26, 32, 0.96), rgba(9, 10, 14, 0.98));
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.fallen-market-card::before {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(90, 215, 255, 0.72), transparent);
}

.fallen-market-card:hover {
  color: var(--white);
  border-color: rgba(90, 215, 255, 0.5);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.fallen-market-card__icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 118px;
  background:
    radial-gradient(circle, rgba(101, 215, 255, 0.08), transparent 52%),
    rgba(0, 0, 0, 0.22);
}

.fallen-market-card__icon img {
  max-width: 92px;
  max-height: 100px;
  image-rendering: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.8));
}

.fallen-market-card__name {
  min-height: 36px;
  color: #e7f7ff;
  font-family: var(--font-title);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
}

.fallen-market-card__price {
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
}

.fallen-market-card__seller {
  align-self: end;
  color: rgba(238, 248, 255, 0.42);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chaos feed */
.fallen-chaos-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(54, 159, 225, 0.11), transparent 36%),
    linear-gradient(180deg, #090b0f, #060709);
}

.fallen-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(84, 217, 154, 0.26);
  border-radius: 999px;
  color: rgba(153, 239, 197, 0.88);
  background: rgba(84, 217, 154, 0.06);
  font-size: 0.7rem;
}

.fallen-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fallen-green);
  box-shadow: 0 0 12px rgba(84, 217, 154, 0.8);
  animation: fallen-live-pulse 1.9s ease-in-out infinite;
}

@keyframes fallen-live-pulse {
  50% { opacity: 0.42; transform: scale(0.76); }
}

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

.fallen-chaos-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 13px;
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(22, 143, 208, 0.16);
  border-top-color: rgba(255, 78, 67, 0.55);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(24, 25, 31, 0.98), rgba(8, 9, 13, 0.99));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.fallen-chaos-card::before {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #ff4e43, transparent);
}

.fallen-chaos-card.is-success {
  border-top-color: rgba(84, 217, 154, 0.62);
}

.fallen-chaos-card.is-success::before {
  background: linear-gradient(90deg, transparent, var(--fallen-green), transparent);
}

.fallen-chaos-card:hover {
  border-color: rgba(90, 215, 255, 0.34);
  transform: translateY(-4px);
}

.fallen-chaos-card__main {
  min-width: 0;
}

.fallen-chaos-card h3 {
  margin: 0 0 6px;
  color: #ff7f77;
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.fallen-chaos-card.is-success h3 {
  color: #87ebba;
}

.fallen-chaos-card__desc {
  margin: 0 0 15px;
  color: rgba(238, 248, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.45;
}

.fallen-chaos-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.fallen-chaos-field {
  min-width: 0;
}

.fallen-chaos-field.is-wide {
  grid-column: 1 / -1;
}

.fallen-chaos-field span {
  display: block;
  margin-bottom: 1px;
  color: rgba(238, 248, 255, 0.34);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fallen-chaos-field b {
  display: block;
  color: rgba(238, 248, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fallen-chaos-field b.is-success {
  color: var(--fallen-green);
}

.fallen-chaos-field b.is-failure {
  color: #ff7f77;
}

.fallen-chaos-card__image {
  display: grid;
  place-items: center;
  align-self: center;
  width: 86px;
  height: 110px;
  border: 1px solid rgba(101, 215, 255, 0.16);
  border-radius: 3px;
  background: radial-gradient(circle, rgba(101, 215, 255, 0.08), rgba(0, 0, 0, 0.26));
}

.fallen-chaos-card__image img {
  max-width: 76px;
  max-height: 98px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.75));
}

.fallen-chaos-more {
  margin-top: 24px;
  text-align: center;
}

.fallen-chaos-more button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 17px;
  border: 1px solid var(--fallen-line);
  border-radius: 3px;
  color: var(--gold-light);
  background: rgba(22, 143, 208, 0.06);
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallen-chaos-more button:hover {
  border-color: var(--fallen-line-bright);
  background: rgba(22, 143, 208, 0.12);
}

.fallen-chaos-more span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 23px;
  padding-inline: 7px;
  border-radius: 999px;
  color: #08090c;
  background: var(--gold-light);
}

/* Shared modal */
.fallen-modal,
.fallen-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.87);
  backdrop-filter: blur(8px);
}

.fallen-modal[hidden],
.fallen-lightbox[hidden] {
  display: none;
}

.fallen-modal__card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 100%);
  max-height: min(860px, 90vh);
  border: 1px solid var(--fallen-line);
  border-radius: 7px;
  background: #0a0c11;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.82);
  overflow: hidden;
}

.fallen-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--fallen-line);
  background: linear-gradient(90deg, rgba(22, 143, 208, 0.09), transparent);
}

.fallen-modal__head h3 {
  margin: 0;
  font-family: var(--font-deco);
  font-size: 1.25rem;
}

.fallen-modal__head button,
.fallen-lightbox__close,
.fallen-lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--fallen-line);
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.56);
}

.fallen-modal__head button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.fallen-modal__body {
  padding: 22px;
  overflow-y: auto;
}

.fallen-modal__body .fallen-chaos-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Gallery */
.fallen-gallery-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 215, 255, 0.11), transparent 38%),
    #08090c;
}

.fallen-gallery {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.fallen-gallery__viewport {
  position: relative;
  aspect-ratio: 16 / 8.6;
  border: 1px solid rgba(22, 143, 208, 0.28);
  border-radius: 7px;
  background: #050609;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.fallen-gallery__viewport::before,
.fallen-gallery__viewport::after {
  position: absolute;
  z-index: 3;
  left: 9%;
  right: 9%;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(90, 215, 255, 0.72), transparent);
}

.fallen-gallery__viewport::before { top: 0; }
.fallen-gallery__viewport::after { bottom: 0; }

.fallen-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 550ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.fallen-gallery__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  clip-path: inset(0);
}

.fallen-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  outline: 0;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.74);
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 500ms ease;
}

.fallen-gallery__slide.is-active img {
  filter: saturate(1) brightness(0.92);
  transform: translateZ(0);
}

.fallen-gallery__caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  max-width: calc(100% - 140px);
  padding: 7px 11px;
  border-left: 2px solid var(--gold-light);
  color: #f1fbff;
  background: rgba(0, 0, 0, 0.56);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallen-gallery__nav,
.fallen-lightbox__nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(90, 215, 255, 0.34);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(5, 6, 9, 0.74);
  transform: translateY(-50%);
  transition: 180ms ease;
}

.fallen-gallery__nav:hover,
.fallen-lightbox__nav:hover {
  color: #eefaff;
  border-color: var(--gold-light);
  background: rgba(4, 19, 30, 0.9);
}

.fallen-gallery__nav--prev { left: 18px; }
.fallen-gallery__nav--next { right: 18px; }

.fallen-gallery__counter {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(90, 215, 255, 0.22);
  border-radius: 999px;
  color: rgba(238, 248, 255, 0.62);
  background: rgba(0, 0, 0, 0.66);
  font-family: var(--font-title);
  font-size: 0.66rem;
}

.fallen-gallery__counter b {
  color: var(--gold-light);
}

.fallen-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.fallen-gallery__dots button {
  width: 34px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(238, 248, 255, 0.18);
  transition: 180ms ease;
}

.fallen-gallery__dots button:hover,
.fallen-gallery__dots button.is-active {
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(90, 215, 255, 0.45);
}

.fallen-gallery__state {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  width: 100%;
  color: rgba(238, 248, 255, 0.5);
}

.fallen-lightbox {
  grid-template-columns: 70px minmax(0, 1fr) 70px;
}

.fallen-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  max-width: min(1260px, 78vw);
  max-height: 88vh;
  margin: 0;
}

.fallen-lightbox figure img {
  max-width: 100%;
  max-height: 82vh;
  border: 1px solid var(--fallen-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.fallen-lightbox figcaption {
  padding: 10px;
  color: rgba(238, 248, 255, 0.68);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.fallen-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.fallen-lightbox__nav {
  position: relative;
}

.fallen-lightbox__nav--prev { justify-self: center; }
.fallen-lightbox__nav--next { justify-self: center; }

@media (max-width: 1199.98px) {
  .fallen-market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 767.98px) {
  .fallen-section-head,
  .fallen-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .fallen-ranking-limit {
    width: 100%;
  }

  .fallen-ranking-limit select {
    width: 100%;
  }

  .fallen-podium-wrap {
    min-height: 390px;
  }

  .fallen-killer-card {
    grid-template-columns: 1fr;
  }

  .fallen-killer-card__art-wrap {
    min-height: 320px;
  }

  .fallen-killer-card__copy {
    padding: 0 26px 38px;
    text-align: center;
  }

  .fallen-market-grid,
  .fallen-chaos-feed,
  .fallen-modal__body .fallen-chaos-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fallen-gallery__viewport {
    aspect-ratio: 4 / 3;
  }

  .fallen-gallery__nav {
    width: 41px;
    height: 41px;
  }

  .fallen-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding-inline: 7px;
  }

  .fallen-lightbox figure {
    max-width: calc(100vw - 110px);
  }
}

@media (max-width: 575.98px) {
  .fallen-ranking-panel {
    padding: 18px 12px;
  }

  .fallen-podium-wrap {
    min-height: 365px;
    margin-bottom: 22px;
  }

  .fallen-podium__art-wrap {
    width: 280px;
    height: 260px;
  }

  .fallen-market-grid,
  .fallen-chaos-feed,
  .fallen-modal__body .fallen-chaos-feed {
    grid-template-columns: 1fr;
  }

  .fallen-market-card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .fallen-market-card__icon {
    grid-row: 1 / 4;
    width: 92px;
    height: 104px;
  }

  .fallen-market-card__name {
    min-height: 0;
  }

  .fallen-chaos-card {
    grid-template-columns: minmax(0, 1fr) 70px;
    padding: 16px;
  }

  .fallen-chaos-card__image {
    width: 70px;
    height: 92px;
  }

  .fallen-chaos-card__image img {
    max-width: 62px;
    max-height: 82px;
  }

  .fallen-modal {
    padding: 10px;
  }

  .fallen-modal__body {
    padding: 13px;
  }

  .fallen-gallery__viewport {
    aspect-ratio: 1 / 1;
  }

  .fallen-gallery__nav--prev { left: 9px; }
  .fallen-gallery__nav--next { right: 9px; }

  .fallen-gallery__caption {
    left: 15px;
    bottom: 16px;
  }

  .fallen-gallery__counter {
    right: 14px;
    bottom: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fallen-live-badge i,
  .fallen-gallery__track {
    animation: none;
    transition: none;
  }
}
