@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Manrope:wght@500;700;800&display=swap');

:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --bg-2: #111a2f;
  --panel: rgba(11, 17, 31, 0.72);
  --panel-strong: rgba(10, 14, 24, 0.9);
  --line: rgba(170, 196, 255, 0.15);
  --line-strong: rgba(109, 156, 255, 0.42);
  --text: #f4f8ff;
  --muted: #8ea0c8;
  --blue: #4da3ff;
  --cyan: #37e2ff;
  --lime: #d4ff6f;
  --pink: #ff4f8b;
  --violet: #9d8dff;
  --gold: #ffc55d;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(1100px 700px at 95% -20%, rgba(77, 163, 255, 0.27), transparent 60%),
    radial-gradient(1200px 800px at -10% 120%, rgba(212, 255, 111, 0.18), transparent 55%),
    linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(130, 158, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 158, 216, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 88%);
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 30px) clamp(16px, 2.4vw, 42px) clamp(24px, 3vw, 44px);
}

.is-hidden {
  display: none !important;
}

.welcome-screen {
  margin-bottom: clamp(14px, 1.6vw, 22px);
  padding: clamp(20px, 2.5vw, 34px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(14px, 1.8vw, 26px);
}

.welcome-screen__copy h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  letter-spacing: -0.02em;
}

.welcome-screen__presence {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(142, 212, 255, 0.35);
  background: rgba(55, 226, 255, 0.12);
  color: #d7f6ff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.welcome-screen__presence strong {
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.welcome-screen__copy p {
  margin-top: 10px;
  color: #bfd0f2;
  max-width: 72ch;
  line-height: 1.5;
}

.welcome-screen__search {
  border: 1px solid rgba(160, 190, 245, 0.22);
  border-radius: 20px;
  background: rgba(8, 13, 23, 0.55);
  padding: 14px;
}

.welcome-screen__search label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

.search-combobox {
  margin-top: 10px;
}

#player-search-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(167, 198, 251, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}

#player-search-input::placeholder {
  color: #9eb2db;
}

#player-search-input:focus {
  border-color: rgba(161, 207, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}

.search-results {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

.search-results:empty {
  display: none;
}

.search-results--open {
  position: relative;
  z-index: 5;
}

.search-option {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(161, 192, 246, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-option:hover {
  border-color: rgba(169, 210, 255, 0.6);
  background: rgba(77, 163, 255, 0.16);
}

.search-option__name {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
}
}

@media (max-width: 1080px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  #player-profile-panel {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    top: auto;
  }

  .profile-layout > .card:nth-child(2),
  .profile-layout > .card:nth-child(3),
  .profile-layout > .card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
}

.search-option__meta {
  display: block;
  margin-top: 3px;
  color: #b2c6ef;
  font-size: 0.72rem;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 2vw, 26px);
  padding: clamp(12px, 1.3vw, 16px) clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(5, 8, 14, 0.45);
}

.topbar .eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.topbar h1 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.1vw, 2.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(154, 190, 255, 0.3);
  background: rgba(77, 163, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 214, 255, 0.6);
  background: rgba(77, 163, 255, 0.23);
  box-shadow: 0 10px 24px rgba(77, 163, 255, 0.28);
}

.profile-layout {
  width: 100%;
  display: grid;
  gap: clamp(14px, 1.2vw, 20px);
  grid-template-columns: minmax(480px, 4.4fr) minmax(0, 7.6fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  width: 100%;
  overflow: hidden;
}

#player-profile-panel {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding: clamp(20px, 2.4vw, 34px);
  position: sticky;
  top: clamp(14px, 1.5vw, 22px);
  align-self: start;
  z-index: 1;
}

#player-profile-panel .profile-hero__content {
  min-height: clamp(620px, 72vh, 780px);
  display: flex;
  flex-direction: column;
}

.profile-layout > .card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(20px, 2.3vw, 32px);
  position: relative;
  z-index: 2;
}

.profile-layout > .card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  padding: clamp(20px, 2.3vw, 32px);
  position: relative;
  z-index: 2;
}

.profile-layout > .card:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
  padding: clamp(20px, 2.3vw, 32px);
  position: relative;
  z-index: 2;
}

.profile-hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.profile-hero__avatar {
  width: min(230px, 54vw);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 800;
  color: #e8f2ff;
  border: 1px solid rgba(140, 188, 255, 0.34);
  background: linear-gradient(150deg, rgba(77, 163, 255, 0.35), rgba(157, 141, 255, 0.26));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-hero__identity {
  width: 100%;
}

.vote9-insights {
  margin-top: auto;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(150, 187, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vote9-widget__head .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.vote9-widget__head h3 {
  margin-top: 6px;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.1;
}

.vote9-toggle-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.vote9-toggle {
  border: 1px solid rgba(165, 191, 242, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #cadcff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 7px 4px;
  cursor: pointer;
  transition: 0.2s ease;
}

.vote9-toggle:hover {
  background: rgba(77, 163, 255, 0.17);
  border-color: rgba(172, 209, 255, 0.55);
}

.vote9-toggle.is-active {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.36), rgba(55, 226, 255, 0.3));
  border-color: rgba(188, 219, 255, 0.72);
  color: #f4f9ff;
}

.vote9-content {
  margin-top: 10px;
}

.vote9-role-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
}

.vote9-target-grid {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vote9-target-chip {
  border-radius: 12px;
  border: 1px solid rgba(162, 187, 238, 0.25);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.vote9-target-chip span {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.vote9-target-chip strong {
  font-size: 1.1rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1;
}

.vote9-target-chip strong small {
  font-size: 0.62rem;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 700;
}

.vote9-total {
  margin-top: 8px;
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote9-total strong {
  color: var(--text);
  font-size: 0.94rem;
  font-family: 'Manrope', sans-serif;
}

.vote9-mini-top-grid {
  margin-top: 9px;
  display: grid;
  gap: 8px;
}

.vote9-mini-top {
  border-radius: 12px;
  border: 1px solid rgba(161, 188, 241, 0.21);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
}

.vote9-mini-top h4 {
  font-size: 0.66rem;
  color: #d9e8ff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.vote9-mini-top__rows {
  display: grid;
  gap: 5px;
}

.mini-top-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 6px;
}

.mini-top-row--selectable {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mini-top-row--selectable:hover {
  border-color: rgba(169, 210, 255, 0.45);
  background: rgba(77, 163, 255, 0.1);
  transform: translateY(-1px);
}

.mini-top-row--selected {
  border-color: rgba(134, 189, 255, 0.55);
  background: rgba(77, 163, 255, 0.14);
  box-shadow: 0 8px 20px rgba(7, 19, 40, 0.32);
}

.mini-top-row__rank {
  color: rgba(214, 228, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 700;
}

.mini-top-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
}

.mini-top-row__value {
  font-size: 0.72rem;
  color: #ecf4ff;
  border-radius: 7px;
  border: 1px solid rgba(158, 196, 255, 0.45);
  background: rgba(77, 163, 255, 0.2);
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-top-row__value small {
  color: #b9d2ff;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.vote9-top-detail {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.vote9-top-detail__cell {
  border-radius: 10px;
  border: 1px solid rgba(161, 188, 241, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 7px 8px;
  display: grid;
  gap: 3px;
}

.vote9-top-detail__cell span {
  color: #9fb6df;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.vote9-top-detail__cell strong {
  color: #f1f7ff;
  font-size: 0.88rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.vote9-top-detail__cell small {
  color: #8fc9ff;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-hero__identity .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-hero__identity h2 {
  margin-top: 6px;
  color: var(--lime);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-hero__name {
  margin-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
}

.profile-hero__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(14px, 1.5vw, 20px);
}

.section-heading .eyebrow {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-heading h2,
.section-heading h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
}

.section-heading h3 {
  font-size: clamp(0.95rem, 1.45vw, 1.2rem);
}

.partner-grid {
  display: grid;
  gap: clamp(10px, 1vw, 14px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}


.partner-section {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 177, 235, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: visible;
  z-index: 1;
}

.partner-section:hover {
  z-index: 30;
}

.partner-section__badge {
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.partner-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.partner-row__rank {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  border: 1px solid rgba(170, 198, 248, 0.34);
  background: rgba(77, 163, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #dbeaff;
}

.partner-row__body {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-row__name {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-row strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d6e7ff;
  background: rgba(77, 163, 255, 0.17);
  border: 1px solid rgba(77, 163, 255, 0.34);
  border-radius: 10px;
  padding: 4px 7px;
  min-width: 58px;
  text-align: right;
}

.partner-row--selectable {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.partner-row--selectable:hover {
  border-color: rgba(169, 210, 255, 0.42);
  background: rgba(77, 163, 255, 0.1);
  transform: translateY(-1px);
}

.partner-row--selected {
  border-color: rgba(134, 189, 255, 0.55);
  background: rgba(77, 163, 255, 0.15);
  box-shadow: 0 10px 22px rgba(7, 19, 40, 0.38);
}

.partner-row--selected .partner-row__rank {
  border-color: rgba(198, 224, 255, 0.7);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.3), rgba(55, 226, 255, 0.2));
}

.partner-detail {
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(157, 197, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 14, 27, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.28);
  padding: 10px;
}

.partner-detail__row {
  border: 1px solid rgba(155, 190, 246, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: #c3d8ff;
  line-height: 1.38;
}

.partner-detail__row + .partner-detail__row {
  margin-top: 8px;
}

.partner-detail__row span {
  color: #a5c4ff;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.partner-detail__row strong {
  color: #f4f8ff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 98px;
  justify-content: flex-end;
}

.partner-detail__row small {
  color: #7ec9ff;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-detail__empty {
  color: #b6c9ef;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 16px);
}

.vote-out-section {
  border: 1px solid rgba(149, 176, 236, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel-strong);
  padding: clamp(16px, 1.7vw, 22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vote-out-section h3 {
  margin-bottom: 8px;
}

.vote-out-section__subtitle {
  margin-bottom: 14px;
  color: #a7bcde;
  font-size: 0.74rem;
  line-height: 1.45;
}

.vote-out-row--stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vote-out-row-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 13px 11px;
  border-radius: 18px;
  border: 1px solid rgba(162, 189, 243, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.vote-out-row-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 80px at 0% 0%, rgba(77, 163, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.vote-out-row-item--accent::before {
  background: radial-gradient(220px 80px at 0% 0%, rgba(212, 255, 111, 0.12), transparent 70%);
}

.vote-out-row-item__label {
  color: #d9e6fb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-out-row-item__head {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}

.vote-out-row-item__count {
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f4f8ff;
  line-height: 1;
}

.vote-out-row-item__count.accent {
  color: var(--lime);
}

.vote-out-row-item__metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.vote-out-row-item__divider {
  color: #6f84ab;
  font-size: 0.9rem;
  font-weight: 700;
}

.vote-out-row-item__games {
  color: #b9d2ff;
  font-size: 1rem;
  font-weight: 800;
}

.vote-out-row-item__percent {
  margin-left: auto;
  color: #7ec9ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vote-out-row-item__bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.vote-out-row-item__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.95), rgba(55, 226, 255, 0.78));
  box-shadow: 0 0 18px rgba(77, 163, 255, 0.24);
}

.vote-out-row-item--accent .vote-out-row-item__bar span {
  background: linear-gradient(90deg, rgba(212, 255, 111, 0.95), rgba(255, 197, 93, 0.8));
  box-shadow: 0 0 18px rgba(212, 255, 111, 0.18);
}

.vote-out-footer {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vote-out-footer strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  color: var(--text);
}

.night-kill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
}

.night-kill-section {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 192, 248, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(10, 16, 30, 0.7);
}

.night-kill-section .section-heading {
  align-items: flex-start;
  margin-bottom: 10px;
}

.night-kill-section .section-heading .eyebrow {
  line-height: 1.2;
}

.night-kill-section .section-heading h3 {
  margin-top: 4px;
  line-height: 1.25;
}

.night-kill-grid .night-kill-section__lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.night-kill-grid .night-kill-list {
  border: 1px solid rgba(158, 192, 248, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
}

.night-kill-grid .night-kill-list h4 {
  margin-bottom: 7px;
  color: #d9e8ff;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-footer {
  width: 100vw;
  margin-top: auto;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(20px, 2.2vw, 34px) clamp(16px, 2.4vw, 42px) clamp(22px, 2.6vw, 38px);
  border-top: 1px solid rgba(165, 191, 242, 0.18);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 21, 0.4), rgba(7, 11, 21, 0.92)),
    rgba(10, 14, 24, 0.96);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.3);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(165, 191, 242, 0.12);
}

.site-footer__brand h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__brand .eyebrow {
  color: #9eb2db;
}

.site-footer__brand p:last-child {
  color: #b9c9e9;
  max-width: 78ch;
  line-height: 1.5;
}

.site-footer__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.site-footer__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(161, 188, 241, 0.12);
  background: transparent;
}

.site-footer__card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dfeaff;
  margin: 0;
}

.site-footer__caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-footer__card-number {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 198, 251, 0.24);
  background: rgba(77, 163, 255, 0.12);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #eef6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.empty-state {
  border: 1px dashed rgba(168, 197, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 12px;
}

.tone-amber .partner-section__badge {
  color: #e7ffd0;
  border-color: rgba(212, 255, 111, 0.5);
  background: rgba(212, 255, 111, 0.18);
}

.tone-red .partner-section__badge {
  color: #ffd9e7;
  border-color: rgba(255, 79, 139, 0.55);
  background: rgba(255, 79, 139, 0.18);
}

.tone-blue .partner-section__badge {
  color: #dbf2ff;
  border-color: rgba(55, 226, 255, 0.6);
  background: rgba(55, 226, 255, 0.15);
}

.tone-green .partner-section__badge {
  color: #ecffcc;
  border-color: rgba(212, 255, 111, 0.55);
  background: rgba(212, 255, 111, 0.2);
}

.tone-violet .partner-section__badge {
  color: #ece7ff;
  border-color: rgba(157, 141, 255, 0.58);
  background: rgba(157, 141, 255, 0.2);
}

.tone-gold .partner-section__badge {
  color: #ffefcf;
  border-color: rgba(255, 197, 93, 0.58);
  background: rgba(255, 197, 93, 0.2);
}

/* Admin page: same visual system as search page */
.admin-page .page-shell {
  max-width: 1700px;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-heading--with-action {
  align-items: center;
  gap: 12px;
}

.admin-grid {
  width: 100%;
  display: grid;
  gap: clamp(14px, 1.2vw, 20px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.admin-grid > .card {
  grid-column: span 6;
  padding: clamp(20px, 2.1vw, 30px);
}

.admin-grid > .card.card--span-2 {
  grid-column: 1 / -1;
}

.partner-grid--outcomes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(10px, 1vw, 14px);
}

.partner-grid--overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button--primary,
.button--warning,
.button--danger {
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
}

.button--primary {
  border: 1px solid rgba(167, 209, 255, 0.52);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.35), rgba(55, 226, 255, 0.28));
  color: #f3f9ff;
}

.button--warning {
  border: 1px solid rgba(255, 211, 122, 0.45);
  background: linear-gradient(135deg, rgba(255, 197, 93, 0.28), rgba(255, 166, 77, 0.22));
  color: #fff3da;
}

.button--danger {
  border: 1px solid rgba(255, 134, 167, 0.48);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.3), rgba(255, 116, 116, 0.22));
  color: #ffe7ef;
}

.button--primary,
.button--warning,
.button--danger {
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
}

.button--primary {
  border: 1px solid rgba(167, 209, 255, 0.52);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.35), rgba(55, 226, 255, 0.28));
  color: #f3f9ff;
}

.button--warning {
  border: 1px solid rgba(255, 211, 122, 0.45);
  background: linear-gradient(135deg, rgba(255, 197, 93, 0.28), rgba(255, 166, 77, 0.22));
  color: #fff3da;
}

.button--danger {
  border: 1px solid rgba(255, 134, 167, 0.48);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.3), rgba(255, 116, 116, 0.22));
  color: #ffe7ef;
}

.button--primary {
  border: 1px solid rgba(167, 209, 255, 0.52);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.35), rgba(55, 226, 255, 0.28));
  color: #f3f9ff;
}

.button--warning {
  border: 1px solid rgba(255, 211, 122, 0.45);
  background: linear-gradient(135deg, rgba(255, 197, 93, 0.28), rgba(255, 166, 77, 0.22));
  color: #fff3da;
}

.button--danger {
  border: 1px solid rgba(255, 134, 167, 0.48);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.3), rgba(255, 116, 116, 0.22));
  color: #ffe7ef;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: #b9cdef;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.field input,
.inline-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(167, 198, 251, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}

.field input:focus,
.inline-form input:focus {
  border-color: rgba(161, 207, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}

.inline-form {
  display: inline-grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
  align-items: center;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#admin-online-summary {
  margin: 10px 0 12px;
}

.metric-chip {
  border-radius: 12px;
  border: 1px solid rgba(158, 194, 252, 0.24);
  background: rgba(255, 255, 255, 0.025);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-chip span {
  color: #a9c0e9;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.metric-chip strong {
  color: #f2f7ff;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.jobs-list {
  display: grid;
  gap: 10px;
}

.job-card {
  border: 1px solid rgba(162, 192, 248, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.job-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card__actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-card__meta {
  color: #a9c0e9;
  font-size: 0.78rem;
  line-height: 1.35;
}

.status-pill {
  border-radius: 999px;
  border: 1px solid rgba(158, 190, 244, 0.3);
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.status-pill--running,
.status-pill--queued {
  color: #d9f8ff;
  border-color: rgba(55, 226, 255, 0.42);
  background: rgba(55, 226, 255, 0.14);
}

.status-pill--paused {
  color: #fff3d0;
  border-color: rgba(255, 197, 93, 0.45);
  background: rgba(255, 197, 93, 0.14);
}

.status-pill--failed,
.status-pill--cancelled {
  color: #ffe0eb;
  border-color: rgba(255, 79, 139, 0.45);
  background: rgba(255, 79, 139, 0.13);
}

.status-pill--completed {
  color: #e9ffd8;
  border-color: rgba(212, 255, 111, 0.5);
  background: rgba(212, 255, 111, 0.14);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.95), rgba(55, 226, 255, 0.78));
}

.logs-panel {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.log-line {
  border: 1px solid rgba(158, 192, 248, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.log-line__time {
  color: #9ab2dc;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-line--error {
  border-color: rgba(255, 79, 139, 0.4);
}

.log-line--warn {
  border-color: rgba(255, 197, 93, 0.42);
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(158, 192, 248, 0.22);
  border-radius: 14px;
  background: rgba(6, 11, 19, 0.45);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(158, 192, 248, 0.12);
  padding: 9px 10px;
  text-align: left;
  font-size: 0.84rem;
}

.data-table th {
  color: #b9ceef;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.empty-cell {
  color: #9fb6df;
  text-align: center;
  padding: 18px;
}

.pagination {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#games-page-label {
  color: #b7cae9;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-link {
  border: none;
  background: transparent;
  color: #8ed3ff;
  font-weight: 700;
  cursor: pointer;
}

.game-row--active {
  background: rgba(77, 163, 255, 0.12);
}

.detail-layout {
  display: grid;
  gap: 12px;
}

.detail-section {
  border: 1px solid rgba(158, 192, 248, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.detail-section h3 {
  margin-bottom: 8px;
}

.detail-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-card {
  border: 1px solid rgba(158, 192, 248, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.json-block,
.json-inline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 12px;
  border: 1px solid rgba(158, 192, 248, 0.18);
  background: rgba(4, 8, 14, 0.5);
  padding: 10px;
  color: #d9e8ff;
  font-size: 0.72rem;
  line-height: 1.35;
}

.game-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.game-summary-winner {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.game-summary-winner--mafia {
  color: #ffe5ef;
  border: 1px solid rgba(255, 79, 139, 0.45);
  background: rgba(255, 79, 139, 0.14);
}

.game-summary-winner--civilian {
  color: #e9ffd8;
  border: 1px solid rgba(212, 255, 111, 0.45);
  background: rgba(212, 255, 111, 0.14);
}

.game-stat-table {
  min-width: 980px;
}

.game-event-list {
  display: grid;
  gap: 4px;
}

.game-event {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid rgba(158, 192, 248, 0.24);
  background: rgba(255, 255, 255, 0.02);
}

.game-event--shot,
.game-event--shoted,
.game-event--penalty {
  border-color: rgba(255, 79, 139, 0.35);
  background: rgba(255, 79, 139, 0.1);
}

.game-event--check,
.game-event--checked,
.game-event--vote-in,
.game-event--vote-out {
  border-color: rgba(55, 226, 255, 0.36);
  background: rgba(55, 226, 255, 0.1);
}

.game-event--foul,
.game-event--tech,
.game-event--pause,
.game-event--best,
.game-event--quit,
.game-event--first-killed,
.game-event--guess {
  border-color: rgba(212, 255, 111, 0.35);
  background: rgba(212, 255, 111, 0.1);
}

.game-matrix__empty {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}

.game-role-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-role-pill--mafia {
  color: #ffe6f0;
  background: rgba(255, 79, 139, 0.13);
  border: 1px solid rgba(255, 79, 139, 0.38);
}

.game-role-pill--sheriff {
  color: #def8ff;
  background: rgba(55, 226, 255, 0.13);
  border: 1px solid rgba(55, 226, 255, 0.38);
}

.game-role-pill--civilian {
  color: #eeffd7;
  background: rgba(212, 255, 111, 0.13);
  border: 1px solid rgba(212, 255, 111, 0.38);
}

.game-highlight-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-highlight-card {
  border: 1px solid rgba(158, 192, 248, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 3px;
}

.game-highlight-card__label {
  color: #9db4dc;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

@media (max-width: 1440px) {
  #player-profile-panel {
    grid-column: span 5;
  }

  .profile-layout > .card:nth-child(2),
  .profile-layout > .card:nth-child(3),
  .profile-layout > .card:nth-child(4) {
    grid-column: span 7;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .admin-grid > .card {
    grid-column: span 12;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .welcome-screen {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  #player-profile-panel,
  .profile-layout > .card:nth-child(2),
  .profile-layout > .card:nth-child(3),
  .profile-layout > .card:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
    position: static;
  }

  .profile-hero__media {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  #player-profile-panel .profile-hero__content {
    min-height: auto;
    gap: 14px;
  }

  .vote9-insights {
    margin-top: 0;
  }

  .profile-hero__identity {
    width: auto;
  }

  .profile-hero__identity .eyebrow,
  .profile-hero__identity h2,
  .profile-hero__name,
  .profile-hero__meta {
    text-align: left;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .role-grid {
    grid-template-columns: 1fr;
  }

  .night-kill-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__card-number {
    width: 100%;
    justify-content: center;
  }

  .welcome-screen__live {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px;
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .profile-hero__media {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vote9-toggle-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .profile-hero__identity .eyebrow,
  .profile-hero__identity h2,
  .profile-hero__name,
  .profile-hero__meta {
    text-align: center;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }


  .vote-out-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-highlight-grid {
    grid-template-columns: 1fr;
  }
}
