@charset "UTF-8";
.ks-container {
  max-width: calc(100% - 48px) !important;
}

.ks-head {
  margin-bottom: 1.25rem;
}
.ks-head h1 {
  margin: 0 0 0.6rem;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}
.ks-head h1 span {
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--full-color);
  opacity: 0.9;
}
.ks-head p {
  margin: 0;
  line-height: 2;
  color: var(--text-color);
  opacity: 0.9;
}

.ks {
  margin: 0 0 2rem;
  color: #f3ecff;
}
.ks [hidden] {
  display: none !important;
}
.ks__stage {
  position: relative;
  direction: ltr;
  aspect-ratio: 16/9;
  min-height: 480px;
  max-height: 84vh;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #150a26;
  border: 1px solid rgba(139, 61, 255, 0.45);
  box-shadow: 0 18px 50px rgba(139, 61, 255, 0.2), 0 0 0 1px rgba(255, 194, 61, 0.1) inset;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.ks__stage canvas[data-ks=canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.14) contrast(1.06);
}
.ks__stage:fullscreen {
  max-height: none;
  border-radius: 0;
  border: 0;
  aspect-ratio: auto;
}
.ks__stage button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ks.is-playing .ks__stage {
  cursor: none;
}
.ks.is-failed {
  display: none;
}

.ks-loading,
.ks-nogl {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #150a26;
  text-align: center;
  padding: 1rem;
  direction: rtl;
}

.ks-loading > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffc23d;
  animation: ks-spin 0.8s linear infinite;
}
.ks-loading > b {
  font-weight: 600;
  color: rgba(243, 236, 255, 0.62);
}

.ks-nogl {
  display: none;
  z-index: 40;
}

.ks.is-nogl .ks-nogl {
  display: flex;
}

@keyframes ks-spin {
  to {
    transform: rotate(360deg);
  }
}
.ks-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 0.55rem 1.6rem;
  border: 0;
  color: #f3ecff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s, transform 0.12s, filter 0.18s;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}
.ks-btn small {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(243, 236, 255, 0.62);
  direction: ltr;
}
.ks-btn::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #8b3dff;
  opacity: 0.8;
}
.ks-btn:hover, .ks-btn:focus-visible {
  background: linear-gradient(180deg, rgba(139, 61, 255, 0.55), rgba(139, 61, 255, 0.28));
  outline: none;
}
.ks-btn:active {
  transform: scale(0.98);
}
.ks-btn--primary {
  background: linear-gradient(180deg, #8b3dff, #5b21c9);
  box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.35) inset;
}
.ks-btn--primary small {
  color: #ffc23d;
}
.ks-btn--primary::before {
  background: #ffc23d;
  opacity: 1;
}
.ks-btn--primary:hover, .ks-btn--primary:focus-visible {
  background: linear-gradient(180deg, #a05bff, #8b3dff);
  filter: drop-shadow(0 0 12px rgba(139, 61, 255, 0.7));
}
.ks-btn--icon {
  min-width: 52px;
  padding: 0.55rem 0.9rem;
}
.ks-btn--icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ks-btn--icon.is-off {
  opacity: 0.5;
}
.ks-btn--wide {
  width: 100%;
}

.ks-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  direction: rtl;
  overflow-y: auto;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(91, 33, 201, 0.32), transparent 70%), linear-gradient(180deg, rgba(14, 6, 28, 0.6), rgba(14, 6, 28, 0.88));
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 61, 255, 0.6) transparent;
  touch-action: pan-y;
}

.ks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: stretch;
}
.ks-actions .ks-btn--primary {
  min-width: 200px;
}

.ks-main__wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ks-main__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}
.ks-main__col h3 {
  margin: 0 0 0.45rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffc23d;
}

.ks-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  direction: ltr;
}
.ks-logo__mark {
  width: 54px;
  height: 54px;
  color: #ffc23d;
  filter: drop-shadow(0 0 10px rgba(255, 194, 61, 0.45));
}
.ks-logo h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fff;
}
.ks-logo h2 em {
  font-style: normal;
  color: #8b3dff;
  text-shadow: 0 0 18px rgba(139, 61, 255, 0.6);
}
.ks-logo p {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
  direction: rtl;
  text-align: left;
}

.ks-rank {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.ks-rank__lvl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.4), rgba(139, 61, 255, 0.12));
  border: 2px solid #ffc23d;
  line-height: 1;
}
.ks-rank__lvl small {
  font-size: 9px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-rank__lvl b {
  font-size: 22px;
  font-weight: 900;
  margin-top: 2px;
}
.ks-rank__body span {
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
  direction: ltr;
  display: block;
  margin-top: 4px;
}
.ks-rank__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
}
.ks-rank__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  color: rgba(243, 236, 255, 0.62);
  white-space: nowrap;
}
.ks-rank__stats b {
  font-size: 16px;
  color: #fff;
  font-weight: 800;
}

.ks-xp {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  direction: ltr;
}
.ks-xp i {
  display: block;
  height: 100%;
  width: var(--xp, 0%);
  background: linear-gradient(90deg, #8b3dff, #ffc23d);
  border-radius: inherit;
  transition: width 0.5s;
}

.ks-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.ks-map {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26, 12, 46, 0.86);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.ks-map__img {
  display: block;
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, #2a1550, #150a26);
  overflow: hidden;
}
.ks-map__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 0.4s;
}
.ks-map__meta {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem 0.6rem;
  gap: 1px;
}
.ks-map__meta b {
  font-size: 13px;
  letter-spacing: 0.12em;
  direction: ltr;
  text-align: right;
}
.ks-map__meta i {
  font-style: normal;
  font-size: 12.5px;
  color: #ffc23d;
  font-weight: 700;
}
.ks-map__meta em {
  font-style: normal;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-map:hover img {
  transform: scale(1.05);
}
.ks-map.is-on {
  border-color: #ffc23d;
  box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.5), 0 8px 24px rgba(139, 61, 255, 0.35);
}

.ks-diff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
}
.ks-diff button {
  padding: 0.55rem 0.4rem;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 236, 255, 0.62);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ks-diff button + button {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}
.ks-diff button.is-on {
  background: linear-gradient(180deg, #8b3dff, #5b21c9);
  color: #fff;
}

.ks-loadout {
  position: relative;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 96px;
  overflow: hidden;
}
.ks-loadout__name {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.35rem;
}
.ks-loadout__name small {
  font-size: 10px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-loadout__name b {
  font-size: 15px;
  color: #ffc23d;
  direction: ltr;
  text-align: right;
  letter-spacing: 0.1em;
}
.ks-loadout ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 1rem;
  position: relative;
  z-index: 1;
  max-width: 62%;
}
.ks-loadout ul li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 0.5rem;
}
.ks-loadout ul i {
  font-style: normal;
  color: rgba(243, 236, 255, 0.62);
}
.ks-loadout ul b {
  direction: ltr;
  font-weight: 700;
}
.ks-loadout__gun {
  position: absolute;
  inset-inline-start: -6px;
  bottom: -4px;
  width: 46%;
  opacity: 0.9;
  pointer-events: none;
}
.ks-loadout__gun img {
  width: 100%;
  display: block;
}

.ks-keys {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: center;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-keys kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  margin-inline-end: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 10.5px/1.5 ui-monospace, Consolas, monospace;
  text-align: center;
}

.ks-class__wrap {
  max-width: 1140px;
  height: 100%;
  margin: 0 auto;
  padding: 0.9rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ks-class__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.ks-class__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
}
.ks-class__head h2 small {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: #ffc23d;
  margin-top: 2px;
}
.ks-class__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 330px;
  gap: 0.9rem;
}
.ks-class__mid {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ks-class__foot {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ks-ctabs {
  display: flex;
  gap: 0.4rem;
}
.ks-ctabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 236, 255, 0.62);
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s;
}
.ks-ctabs button b {
  font-size: 12px;
  letter-spacing: 0.1em;
  direction: ltr;
}
.ks-ctabs button i {
  font-style: normal;
  font-size: 10.5px;
  direction: ltr;
}
.ks-ctabs button.is-on {
  background: rgba(139, 61, 255, 0.35);
  border-color: #ffc23d;
  color: #fff;
}

.ks-slots {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ks-slots button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  text-align: right;
  padding: 0.6rem 0.8rem;
  border: 0;
  color: rgba(243, 236, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.ks-slots button b {
  font-size: 11px;
  letter-spacing: 0.22em;
  direction: ltr;
  text-align: right;
}
.ks-slots button i {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  direction: ltr;
  text-align: right;
  margin: 1px 0;
}
.ks-slots button em {
  font-style: normal;
  font-size: 10.5px;
}
.ks-slots button::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}
.ks-slots button.is-on {
  background: linear-gradient(270deg, rgba(139, 61, 255, 0.7), rgba(139, 61, 255, 0.16));
  color: #ffc23d;
}
.ks-slots button.is-on::after {
  background: #ffc23d;
}
.ks-slots button:hover {
  background: rgba(139, 61, 255, 0.3);
}

.ks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ks-chips button {
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 236, 255, 0.62);
  font-size: 11.5px;
  cursor: pointer;
}
.ks-chips button.is-on {
  background: #ffc23d;
  border-color: #ffc23d;
  color: #24103f;
  font-weight: 800;
}

.ks-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-inline-end: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 61, 255, 0.7) transparent;
  touch-action: pan-y;
}

.ks-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem 0.6rem 0.35rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(26, 12, 46, 0.86);
  color: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  flex: none;
}
.ks-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border-radius: 9px;
  background: radial-gradient(ellipse at 50% 60%, rgba(139, 61, 255, 0.26), rgba(0, 0, 0, 0.28));
  overflow: hidden;
}
.ks-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ks-item__thumb.is-icon {
  color: #ffc23d;
}
.ks-item__thumb.is-icon svg {
  width: 42px;
  height: 42px;
}
.ks-item__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ks-item__body b {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  direction: ltr;
  text-align: right;
}
.ks-item__body i {
  font-style: normal;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-item__body em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(243, 236, 255, 0.62);
}
.ks-item__stats {
  display: flex;
  gap: 0.7rem;
  direction: ltr;
  justify-content: flex-end;
  font-size: 10px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-item__stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.ks-item__stats b {
  font-size: 13px;
  color: #ffc23d;
  letter-spacing: 0;
}
.ks-item:hover {
  background: rgba(139, 61, 255, 0.28);
}
.ks-item.is-on {
  background: linear-gradient(270deg, rgba(139, 61, 255, 0.55), rgba(139, 61, 255, 0.14));
  border-color: rgba(255, 194, 61, 0.7);
}
.ks-item.is-on em {
  color: #ffc23d;
}

.ks-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(26, 12, 46, 0.86);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  touch-action: pan-y;
}
.ks-detail__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 70%, rgba(139, 61, 255, 0.4), rgba(0, 0, 0, 0.35));
}
.ks-detail__art img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  animation: ks-float 5s ease-in-out infinite;
}
.ks-detail__icon {
  color: #ffc23d;
}
.ks-detail__icon svg {
  width: 84px;
  height: 84px;
}
.ks-detail__head {
  display: flex;
  flex-direction: column;
}
.ks-detail__head b {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  direction: ltr;
  text-align: right;
}
.ks-detail__head i {
  font-style: normal;
  font-size: 11px;
  color: #ffc23d;
  direction: ltr;
  text-align: right;
}
.ks-detail p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(243, 236, 255, 0.62);
}
.ks-detail__chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  direction: ltr;
  justify-content: flex-end;
}
.ks-detail__chips span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-detail__chips b {
  font-size: 14px;
  color: #ffc23d;
}

@keyframes ks-float {
  50% {
    transform: translateY(-5px) rotate(-0.6deg);
  }
}
.ks-bars {
  display: grid;
  gap: 0.35rem;
}

.ks-bar {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 0.6rem;
  font-size: 11.5px;
}
.ks-bar span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ks-bar i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 236, 255, 0.62);
  direction: ltr;
  text-align: right;
}
.ks-bar__track {
  height: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  direction: ltr;
}
.ks-bar__track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b3dff, #ffc23d);
  animation: ks-grow 0.5s ease-out;
}

@keyframes ks-grow {
  from {
    width: 0 !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ks-pause,
.ks-over {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ks-pause__box {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 12, 46, 0.86);
}
.ks-pause__box h2 {
  margin: 0 0 0.3rem;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
}
.ks-pause__box h2 small {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #ffc23d;
}
.ks-pause__box .ks-btn {
  width: 100%;
}

.ks-range {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
  padding: 0.3rem 0.2rem;
}
.ks-range input {
  accent-color: #8b3dff;
  width: 100%;
}

.ks-over__box {
  width: min(640px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 12, 46, 0.86);
}
.ks-over__box h2 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffc23d;
  text-shadow: 0 0 22px rgba(255, 194, 61, 0.4);
}
.ks-over__box > p {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-over__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.ks-over__stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-over__stats b {
  font-size: 19px;
  color: #fff;
}
.ks-over__stats .is-xp b {
  color: #ffc23d;
}

.ks-over__board {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
}
.ks-over__board ol {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
}
.ks-over__board ol li {
  display: grid;
  grid-template-columns: 34px 1fr 64px 64px;
  align-items: center;
  padding: 0.32rem 0.7rem;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ks-over__board ol li b {
  direction: ltr;
  text-align: right;
  letter-spacing: 0.06em;
}
.ks-over__board ol li i {
  font-style: normal;
  color: rgba(243, 236, 255, 0.62);
}
.ks-over__board ol li span {
  text-align: center;
}
.ks-over__board ol li.is-me {
  background: rgba(255, 194, 61, 0.16);
  color: #ffc23d;
  font-weight: 800;
}

.ks-over__bh {
  display: grid;
  grid-template-columns: 34px 1fr 64px 64px;
  padding: 0.4rem 0.7rem;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
}
.ks-over__bh span {
  text-align: center;
}

.ks-toast {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  direction: rtl;
}

.ks-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.ks-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(5, 2, 14, 0.42) 100%);
}

.ks-vig {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(190, 10, 10, 0.75) 100%);
}

.ks-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #fff;
}

.ks-scope {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(#000, #000) center/1px 100% no-repeat, linear-gradient(#000, #000) center/100% 1px no-repeat, radial-gradient(circle at center, transparent 0, transparent 32vmin, #000 32.3vmin);
}

.ks-dmg {
  position: absolute;
  inset: 0;
}
.ks-dmg__arc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  border-top: 8px solid rgba(255, 77, 77, 0.85);
  clip-path: polygon(25% 0, 75% 0, 75% 35%, 25% 35%);
  animation: ks-fade 1s ease-out forwards;
}

@keyframes ks-fade {
  to {
    opacity: 0;
  }
}
.ks-score {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 190px;
  padding: 0.35rem 1rem 0.4rem;
  background: rgba(15, 7, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 2px solid #ffc23d;
  border-radius: 10px;
}
.ks-score b {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.ks-score span {
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
  letter-spacing: 0.06em;
}
.ks-score i {
  font-style: normal;
}
.ks-score em {
  font-style: normal;
  color: #ffc23d;
  font-weight: 800;
}
.ks-score em[data-first="1"] {
  color: #7dff9b;
}

.ks-radar-box {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 148px;
}

.ks-radar {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.ks-compass {
  position: relative;
  width: 200px;
  height: 20px;
  margin: 8px 0 0 -26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.ks-compass__strip {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ks-compass__strip i {
  flex: none;
  width: 72px;
  text-align: center;
  font-style: normal;
  font-size: 10px;
  opacity: 0.75;
}
.ks-compass__strip i.is-card {
  font-size: 13px;
  font-weight: 900;
  color: #ffc23d;
  opacity: 1;
}

.ks-feed {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: 44%;
}
.ks-feed li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(15, 7, 30, 0.62);
  font-size: 12px;
  animation: ks-in 0.2s ease-out;
}
.ks-feed li b {
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ks-feed li em {
  font-style: normal;
  font-size: 10px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-feed li.is-mine {
  border-inline-start: 3px solid #ffc23d;
  background: rgba(139, 61, 255, 0.6);
}
.ks-feed li.is-death {
  border-inline-start: 3px solid #ff4d4d;
}

@keyframes ks-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}
.ks-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.ks-cross i {
  position: absolute;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
}
.ks-cross i:nth-child(1),
.ks-cross i:nth-child(2) {
  width: 2px;
  height: 9px;
  left: -1px;
}
.ks-cross i:nth-child(1) {
  top: calc(var(--gap) * -1 - 9px);
}
.ks-cross i:nth-child(2) {
  top: var(--gap);
}
.ks-cross i:nth-child(3),
.ks-cross i:nth-child(4) {
  height: 2px;
  width: 9px;
  top: -1px;
}
.ks-cross i:nth-child(3) {
  left: calc(var(--gap) * -1 - 9px);
}
.ks-cross i:nth-child(4) {
  left: var(--gap);
}
.ks-cross u {
  position: absolute;
  width: 3px;
  height: 3px;
  left: -1.5px;
  top: -1.5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.ks-hitm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  opacity: 0;
}
.ks-hitm i {
  position: absolute;
  width: 12px;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}
.ks-hitm i:nth-child(1) {
  transform: translate(-16px, -16px) rotate(45deg);
}
.ks-hitm i:nth-child(2) {
  transform: translate(6px, -16px) rotate(-45deg);
}
.ks-hitm i:nth-child(3) {
  transform: translate(-16px, 14px) rotate(-45deg);
}
.ks-hitm i:nth-child(4) {
  transform: translate(6px, 14px) rotate(45deg);
}
.ks-hitm.on {
  animation: ks-hit 0.32s ease-out;
}
.ks-hitm.is-head i {
  background: #ffc23d;
}
.ks-hitm.is-kill i {
  background: #ff4d4d;
  width: 15px;
}

@keyframes ks-hit {
  0% {
    opacity: 1;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
.ks-pop {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ks-pop__item {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  animation: ks-rise 1.4s ease-out forwards;
}
.ks-pop__item.is-kill {
  color: #ffc23d;
  font-size: 22px;
}
.ks-pop__item.is-head {
  color: #ff4d4d;
}
.ks-pop__item.is-streak {
  color: #7dff9b;
  font-size: 20px;
}

@keyframes ks-rise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}
.ks-banner {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 2rem;
  min-width: 300px;
  background: linear-gradient(90deg, transparent, rgba(120, 10, 20, 0.7), transparent);
  text-align: center;
}
.ks-banner b {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ks-banner span {
  font-size: 13px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-count {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font-size: 110px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(139, 61, 255, 0.9), 0 4px 0 rgba(0, 0, 0, 0.4);
}
.ks-count.pulse {
  animation: ks-pulse 0.7s ease-out;
}

@keyframes ks-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.ks-tip {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 7, 30, 0.75);
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.ks-vitals {
  position: absolute;
  left: 16px;
  bottom: 14px;
}

.ks-pause__note {
  margin: 0;
  max-width: 320px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 194, 61, 0.5);
  border-radius: 10px;
  background: rgba(255, 194, 61, 0.1);
  color: #ffc23d;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.ks-ping {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(15, 7, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7dff9b;
}
.ks-ping[data-q=mid] {
  color: #ffd86b;
}
.ks-ping[data-q=bad] {
  color: #ff6b6b;
}
.ks-ping[data-q=wait] {
  color: rgba(243, 236, 255, 0.62);
}

.ks-kcam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ks-kcam::before, .ks-kcam::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11%;
  background: #000;
}
.ks-kcam::before {
  top: 0;
}
.ks-kcam::after {
  bottom: 0;
}
.ks-kcam__tag {
  position: absolute;
  top: 3.2%;
  left: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #ff5a5a;
}
.ks-kcam__tag i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff2d2d;
  animation: ks-rec 1s steps(2, jump-none) infinite;
}
.ks-kcam__who {
  position: absolute;
  bottom: 2.4%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.ks-kcam__who small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(243, 236, 255, 0.62);
}
.ks-kcam__who b {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.ks-kcam__who span {
  font-size: 13px;
  color: #ffc23d;
}
.ks-kcam__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  z-index: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
}
.ks-kcam__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #ff4d4d;
}
.ks-kcam__skip {
  position: absolute;
  top: 2.6%;
  right: 20px;
  z-index: 1;
  padding: 0.3rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 7, 30, 0.8);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.ks-chat {
  position: absolute;
  left: 16px;
  bottom: 88px;
  z-index: 7;
  width: min(420px, 62%);
  pointer-events: none;
}
.ks-chat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 150px;
  overflow: hidden;
}
.ks-chat li {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 5, 22, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-shadow: 0 1px 2px #000;
  word-break: break-word;
}
.ks-chat li b {
  color: #ffc23d;
}
.ks-chat li.is-sys {
  color: rgba(243, 236, 255, 0.62);
  font-size: 12px;
}
.ks-chat li.is-old {
  display: none;
}
.ks-chat input {
  width: 100%;
  margin-top: 4px;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 5, 22, 0.9);
  color: #fff;
  font: inherit;
  font-size: 14px;
  pointer-events: auto;
}
.ks-chat.is-open {
  pointer-events: auto;
}
.ks-chat.is-open ul {
  max-height: 240px;
  overflow-y: auto;
}
.ks-chat.is-open li.is-old {
  display: block;
}

.ks-chatbtn {
  position: absolute;
  left: 16px;
  bottom: 52px;
  z-index: 7;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 7, 30, 0.8);
  color: #fff;
  font: inherit;
  font-size: 12px;
  pointer-events: auto;
}

.ks-gunbtn kbd {
  margin-inline-start: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.ks-gunbtn {
  position: absolute;
  left: 50%;
  bottom: 15%;
  z-index: 6;
  transform: translateX(-50%);
  padding: 0.55rem 1.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 7, 30, 0.85);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}
.ks-gunbtn:hover {
  background: rgba(124, 58, 237, 0.85);
}

@keyframes ks-rec {
  50% {
    opacity: 0.15;
  }
}
.ks.is-kcam .ks-vitals,
.ks.is-kcam .ks-ammo,
.ks.is-kcam .ks-cross,
.ks.is-kcam .ks-hitm,
.ks.is-kcam .ks-radar-box,
.ks.is-kcam .ks-score,
.ks.is-kcam .ks-ping,
.ks.is-kcam .ks-feed,
.ks.is-kcam .ks-tip,
.ks.is-kcam .ks-banner,
.ks.is-kcam .ks-touch {
  opacity: 0;
  pointer-events: none;
}

.ks-health {
  position: relative;
  width: 230px;
  height: 26px;
  border-radius: 6px;
  background: rgba(15, 7, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ks-health i {
  position: absolute;
  inset: 0;
  width: var(--hp, 100%);
  background: linear-gradient(90deg, #2fc77a, #a7ff7c);
  transition: width 0.15s;
}
.ks-health b {
  position: relative;
  display: block;
  text-align: center;
  line-height: 26px;
  font-size: 15px;
  font-weight: 900;
}
.ks-health.is-low i {
  background: linear-gradient(90deg, #ff3b3b, #ff8d4d);
  animation: ks-blink 0.7s infinite alternate;
}

@keyframes ks-blink {
  to {
    opacity: 0.55;
  }
}
.ks-ammo {
  position: absolute;
  right: 18px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ks-ammo__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ks-ammo__num b {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}
.ks-ammo__num i {
  font-style: normal;
  font-size: 20px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-ammo__name {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.ks-ammo__name b {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #ffc23d;
}
.ks-ammo__name em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(243, 236, 255, 0.62);
}
.ks-ammo__eq {
  display: flex;
  gap: 0.6rem;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ks-ammo__eq span {
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(15, 7, 30, 0.65);
}
.ks-ammo.is-low .ks-ammo__num b {
  color: #ff4d4d;
  animation: ks-blink 0.5s infinite alternate;
}

.ks-touch {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.ks-touch__look {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  touch-action: none;
}
.ks-touch__stick {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 40%;
  height: calc(var(--u) * 4.6);
  pointer-events: auto;
  touch-action: none;
}
.ks-touch__base {
  position: absolute;
  left: calc(var(--u) * 2.7);
  top: calc(var(--u) * 1.9);
  width: calc(var(--u) * 2.3);
  height: calc(var(--u) * 2.3);
  margin: calc(var(--u) * -1.15) 0 0 calc(var(--u) * -1.15);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.6;
  transition: opacity 0.15s;
}
.ks-touch__base.on {
  opacity: 1;
}
.ks-touch__base i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 1.05);
  height: calc(var(--u) * 1.05);
  margin: calc(var(--u) * -0.525) 0 0 calc(var(--u) * -0.525);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.ks-tb {
  --s: 1;
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * var(--s));
  height: calc(var(--u) * var(--s));
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(12, 8, 28, 0.34);
  color: #fff;
  opacity: 0.88;
  transition: transform 0.08s, background 0.12s;
}
.ks-tb svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ks-tb.on, .ks-tb.is-on {
  transform: scale(0.92);
  opacity: 1;
  background: rgba(139, 61, 255, 0.7);
  border-color: #ffc23d;
}
.ks-tb--fire {
  --s: 2.1;
  right: calc(var(--u) * 1.35);
  bottom: calc(var(--u) * 1.35);
  border-color: rgba(255, 77, 77, 0.95);
  background: rgba(200, 30, 40, 0.3);
}
.ks-tb--fire svg {
  width: 46%;
  height: 46%;
}
.ks-tb--ads {
  --s: 1.3;
  right: calc(var(--u) * 1.75);
  bottom: calc(var(--u) * 4.85);
}
.ks-tb--jump {
  --s: 1.25;
  right: calc(var(--u) * 4.775);
  bottom: calc(var(--u) * 2.975);
}
.ks-tb--crouch {
  --s: 1;
  right: calc(var(--u) * 5.2);
  bottom: calc(var(--u) * 0.7);
}
.ks-tb--reload {
  --s: 1;
  right: calc(var(--u) * 5.1);
  bottom: calc(var(--u) * 5.4);
}
.ks-tb--swap {
  --s: 0.95;
  right: calc(var(--u) * 7.925);
  bottom: calc(var(--u) * 2.525);
}
.ks-tb--fireL {
  --s: 1.4;
  left: calc(var(--u) * 0.8);
  bottom: calc(var(--u) * 4.7);
  border-color: rgba(255, 77, 77, 0.8);
  background: rgba(200, 30, 40, 0.24);
}
.ks-tb--sprint {
  --s: 1.05;
  left: calc(var(--u) * 3.275);
  bottom: calc(var(--u) * 4.875);
}
.ks-tb--lethal {
  --s: 1;
  right: calc(var(--u) * 2.1);
  top: calc(var(--u) * 0.65);
}
.ks-tb--tact {
  --s: 1;
  right: calc(var(--u) * 3.5);
  top: calc(var(--u) * 0.65);
}
.ks-tb--melee {
  --s: 0.95;
  right: calc(var(--u) * 4.925);
  top: calc(var(--u) * 0.675);
}
.ks-tb--pause {
  --s: 0.8;
  right: calc(var(--u) * 0.4);
  top: calc(var(--u) * 0.4);
  border-width: 1px;
}

.ks-tb--use {
  display: none;
  --s: 1.25;
  right: calc(var(--u) * 7.775);
  bottom: calc(var(--u) * 4.875);
  border-color: rgba(255, 138, 60, 0.9);
}

.ks.is-snd .ks-tb--use {
  display: flex;
}

.ks.is-touch,
.ks:has(.ks-touch:not([hidden])) {
  --u: clamp(34px, calc(10.6 * min(1vh, 1vw)), 62px);
}

.ks-touch {
  --u: clamp(34px, calc(10.6 * min(1vh, 1vw)), 62px);
}

.ks.is-touch .ks-radar-box {
  top: 6px;
  left: 8px;
  width: calc(var(--u) * 2.2);
}
.ks.is-touch .ks-radar {
  width: calc(var(--u) * 2.2);
  height: calc(var(--u) * 2.2);
}
.ks.is-touch .ks-compass {
  display: none;
}
.ks.is-touch .ks-score {
  top: 6px;
  min-width: 150px;
  transform: translateX(-50%) scale(0.85);
  transform-origin: top center;
}
.ks.is-touch .ks-ping {
  top: 48px;
}
.ks.is-touch .ks-feed {
  top: calc(var(--u) * 2.4);
  right: 8px;
  max-width: 32%;
  font-size: 11px;
}
.ks.is-touch .ks-vitals {
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
}
.ks.is-touch .ks-health {
  width: calc(var(--u) * 4);
  height: 16px;
}
.ks.is-touch .ks-ammo {
  right: auto;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) scale(0.82);
  transform-origin: bottom center;
  align-items: center;
}
.ks.is-touch .ks-tip {
  bottom: 34%;
}
.ks.is-touch .ks-chatbtn {
  left: auto;
  right: calc(var(--u) * 6.9);
  top: calc(var(--u) * 0.6);
  bottom: auto;
}
.ks.is-touch .ks-chat {
  left: 8px;
  top: calc(var(--u) * 2.5);
  bottom: auto;
  width: min(300px, 34%);
}
.ks.is-touch canvas[data-ks=canvas] {
  filter: none !important;
}

.ks__stage.is-pfs {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
}

.ks__stage:fullscreen {
  min-height: 0;
}

#chat-embed-container,
#chat-embed-toggle,
#chat-embed-auto-message {
  display: none !important;
}

html.ks-noscroll #chat-embed-container,
html.ks-noscroll #chat-embed-toggle,
html.ks-noscroll #chat-embed-auto-message,
html.ks-noscroll .bottom-navigation,
html.ks-noscroll #site-header {
  display: none !important;
}

html.ks-noscroll,
html.ks-noscroll body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.ks-rotate {
  display: none;
}

.ks-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.ks-info__card {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 61, 255, 0.25);
  background: rgba(139, 61, 255, 0.06);
}
.ks-info__card h2 {
  margin: 0 0 0.6rem;
  font-size: 17px;
  font-weight: 800;
}
.ks-info__card ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  line-height: 2;
  font-size: 14px;
  opacity: 0.92;
}
.ks-info__card p {
  margin: 0 0 0.6rem;
  line-height: 2;
  font-size: 14px;
  opacity: 0.92;
}
.ks-info__card a {
  color: var(--full-color);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .ks-class__body {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .ks-detail {
    display: none;
  }
  .ks-main__cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .ks-container {
    max-width: calc(100% - 24px) !important;
  }
  .ks-head h1 {
    font-size: 21px;
  }
  .ks__stage {
    aspect-ratio: auto;
    height: min(86vh, 740px);
    min-height: 420px;
    border-radius: 14px;
  }
  .ks-info {
    grid-template-columns: 1fr;
  }
  .ks-logo h2 {
    font-size: 24px;
  }
  .ks-logo__mark {
    width: 40px;
    height: 40px;
  }
  .ks-rank {
    grid-template-columns: auto 1fr;
  }
  .ks-rank__stats {
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 0.4rem;
  }
  .ks-main__wrap {
    padding: 0.8rem 0.8rem 1rem;
  }
  .ks-maps {
    grid-template-columns: 1fr 1fr;
  }
  .ks-class__wrap {
    padding: 0.6rem 0.7rem;
  }
  .ks-class__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.5rem;
  }
  .ks-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .ks-slots button {
    padding: 0.35rem 0.6rem;
  }
  .ks-slots button em {
    display: none;
  }
  .ks-slots button i {
    font-size: 13px;
  }
  .ks-item {
    grid-template-columns: 96px 1fr;
    padding: 0.25rem 0.5rem 0.25rem 0.3rem;
  }
  .ks-item__thumb {
    height: 52px;
  }
  .ks-item__body b {
    font-size: 14px;
  }
  .ks-class__head h2 {
    font-size: 18px;
  }
  .ks-ctabs button {
    padding: 0.3rem 0.6rem;
  }
  .ks-actions .ks-btn--primary {
    min-width: 0;
    flex: 1 1 100%;
  }
}
@media (pointer: coarse) {
  .ks-ammo {
    right: auto;
    left: 50%;
    bottom: 8px;
    margin-left: 12px;
    align-items: flex-start;
  }
  .ks-ammo__num b {
    font-size: 30px;
  }
  .ks-ammo__eq {
    display: none;
  }
  .ks-vitals {
    left: 50%;
    bottom: 10px;
    transform: translateX(-100%);
  }
  .ks-health {
    width: 140px;
    height: 22px;
  }
  .ks-health b {
    line-height: 22px;
    font-size: 13px;
  }
  .ks-tip {
    bottom: 64px;
  }
  .ks-keys {
    display: none;
  }
  .ks-radar-box {
    width: 108px;
  }
  .ks-radar-box .ks-radar {
    width: 108px;
    height: 108px;
  }
  .ks-radar-box .ks-compass {
    display: none;
  }
  .ks-score {
    min-width: 150px;
  }
  .ks-score b {
    font-size: 17px;
  }
  .ks-count {
    font-size: 80px;
  }
}
@media (pointer: coarse) and (orientation: portrait) {
  .ks.is-playing .ks__stage:not(.is-pfs) .ks-rotate {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(14, 6, 28, 0.94);
    font-weight: 700;
  }
  .ks.is-playing .ks__stage:not(.is-pfs) .ks-rotate svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: #ffc23d;
    stroke-width: 1.6;
    animation: ks-tilt 1.6s ease-in-out infinite;
  }
}
@keyframes ks-tilt {
  0%, 100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ks-detail__art img,
  .ks-pop__item,
  .ks-count.pulse,
  .ks-health.is-low i {
    animation: none !important;
  }
}
.ks-hud,
.ks-logo h2,
.ks-btn small,
.ks-keys,
.ks-map__meta b,
.ks-loadout__name b,
.ks-loadout li b,
.ks-ctabs button b,
.ks-ctabs button i,
.ks-slots button b,
.ks-slots button i,
.ks-item__body b,
.ks-item__body i,
.ks-item__stats,
.ks-detail__head,
.ks-detail__chips,
.ks-bar i,
.ks-over__box h2,
.ks-over__board li b,
.ks-count,
.ks-banner,
.ks-pause__box h2 small,
.ks-class__head h2 small {
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ks-fps {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 30;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #7dff9b;
  font: 600 11px/1.6 ui-monospace, Consolas, monospace;
  pointer-events: none;
  white-space: nowrap;
}

.ks-bench,
.ks-benchhud,
.ks-benchres {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ks-bench__box,
.ks-benchres__box,
.ks-benchhud__box {
  width: min(680px, 100%);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 12, 46, 0.86);
  scrollbar-width: thin;
}
.ks-bench__box h2,
.ks-benchres__box h2,
.ks-benchhud__box h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
}
.ks-bench__box h2 small,
.ks-benchres__box h2 small,
.ks-benchhud__box h2 small {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: #ffc23d;
  margin-top: 2px;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ks-bench__box h3,
.ks-benchres__box h3,
.ks-benchhud__box h3 {
  margin: 0.2rem 0 0;
  font-size: 12px;
  color: #ffc23d;
}
.ks-bench__box p,
.ks-benchres__box p,
.ks-benchhud__box p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: rgba(243, 236, 255, 0.62);
}
.ks-bench__box b,
.ks-benchres__box b,
.ks-benchhud__box b {
  color: #fff;
}

.ks-bench__q {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.ks-bench__q button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 236, 255, 0.62);
  text-align: right;
  cursor: pointer;
}
.ks-bench__q button b {
  font-size: 14px;
  color: #fff;
}
.ks-bench__q button small {
  font-size: 10.5px;
  line-height: 1.6;
}
.ks-bench__q button.is-on {
  border-color: #ffc23d;
  background: rgba(139, 61, 255, 0.4);
}

.ks-bench__dev {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 1rem;
}
.ks-bench__dev li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  min-width: 0;
}
.ks-bench__dev i {
  font-style: normal;
  color: rgba(243, 236, 255, 0.62);
  white-space: nowrap;
}
.ks-bench__dev b {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}

.ks-benchhud__box {
  align-items: center;
  text-align: center;
}

.ks-benchhud__fps {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ks-benchhud__fps b {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffc23d;
}
.ks-benchhud__fps span {
  font-size: 18px;
  color: rgba(243, 236, 255, 0.62);
  letter-spacing: 0.2em;
}

.ks-benchhud__bar {
  width: 100%;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ks-benchhud__bar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #8b3dff, #ffc23d);
  transition: width 0.25s linear;
}

.ks-benchres__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.ks-benchres__top > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.ks-benchres__top > div small {
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-benchres__top > div b {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ks-benchres__rate b {
  font-family: inherit !important;
  font-size: 30px !important;
  color: #ffc23d !important;
}
.ks-benchres__rate b[data-r=ضعیف] {
  color: #ff4d4d !important;
}
.ks-benchres__rate b[data-r=عالی], .ks-benchres__rate b[data-r="خیلی خوب"] {
  color: #7dff9b !important;
}

.ks-benchres__grid {
  grid-template-columns: repeat(4, 1fr);
}
.ks-benchres__grid span {
  text-align: center;
  padding: 0.5rem 0.3rem;
}
.ks-benchres__grid b {
  font-size: 15px;
  direction: ltr;
}

.ks-benchres__graph {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.ks-benchres__dev {
  font-size: 11px !important;
  line-height: 1.6 !important;
  text-align: left;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  word-break: break-word;
}

@media (max-width: 767px) {
  .ks-bench__q {
    grid-template-columns: 1fr;
  }
  .ks-bench__dev {
    grid-template-columns: 1fr;
  }
  .ks-benchres__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ks-benchres__top b {
    font-size: 28px;
  }
}
.ks-btn--online {
  border-color: rgba(74, 222, 128, 0.6);
}

.ks-lobby {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.ks-lobby__box {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 12, 46, 0.86);
}
.ks-lobby__box h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 900;
}
.ks-lobby__box h2 small {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #ffc23d;
}
.ks-lobby__box h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.ks-lobby__box input,
.ks-lobby__box select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #f3ecff;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.ks-lobby__box input:focus,
.ks-lobby__box select:focus {
  border-color: #8b3dff;
}
.ks-lobby__box select option {
  background: #1b0e30;
}

.ks-lobby__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ks-lobby__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-lobby__status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
}
.ks-lobby__status[data-s=open] i {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
.ks-lobby__status[data-s=connecting] i {
  background: #ffc23d;
  animation: ks-blink 1s infinite;
}
.ks-lobby__status[data-s=closed] i {
  background: #ff4d4d;
}

@keyframes ks-blink {
  50% {
    opacity: 0.25;
  }
}
.ks-lobby__view {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ks-lobby__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ks-lobby__name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ks-lobby__rooms,
.ks-lobby__players,
.ks-lobby__chat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ks-lobby__rooms {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 34vh;
  overflow-y: auto;
}

.ks-room {
  display: grid;
  grid-template-columns: 1fr repeat(4, auto);
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.ks-room.is-locked {
  opacity: 0.6;
}
.ks-room__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ks-room__main b {
  font-size: 15px;
}
.ks-room__main small {
  color: rgba(243, 236, 255, 0.62);
  font-size: 11px;
}
.ks-room__main em {
  font-style: normal;
}
.ks-room__n {
  font-weight: 800;
  direction: ltr;
}
.ks-room__st {
  font-size: 11px;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.ks-room__st[data-s=lobby] {
  color: #4ade80;
}
.ks-room__st[data-s=playing], .ks-room__st[data-s=countdown] {
  color: #ffc23d;
}
.ks-room .ks-btn {
  padding: 0.35rem 0.9rem;
  min-height: 0;
}

.ks-lobby__empty,
.ks-lobby__hint,
.ks-lobby__class {
  margin: 0;
  font-size: 12.5px;
  color: rgba(243, 236, 255, 0.62);
  text-align: center;
  line-height: 1.9;
}
.ks-lobby__empty a,
.ks-lobby__hint a,
.ks-lobby__class a {
  color: #ffc23d;
}

.ks-lobby__create {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(139, 61, 255, 0.5);
  border-radius: 14px;
  background: rgba(139, 61, 255, 0.1);
}
.ks-lobby__create h3,
.ks-lobby__create .ks-lobby__btns {
  grid-column: 1/-1;
}
.ks-lobby__create label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__cfg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(139, 61, 255, 0.5);
  border-radius: 14px;
  background: rgba(139, 61, 255, 0.1);
}
.ks-lobby__cfg label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-lobby__cfg small {
  grid-column: 1/-1;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__roomhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ks-lobby__roomhead p {
  margin: 0.2rem 0 0;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.ks-lobby__players {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ks-lobby__players li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.ks-lobby__players li.is-me {
  border-color: rgba(255, 194, 61, 0.6);
}
.ks-lobby__players li b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ks-lobby__players li em {
  font-style: normal;
  font-size: 11px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-lobby__players li em.is-ready {
  color: #4ade80;
}
.ks-lobby__players li em.is-host {
  color: #ffc23d;
}

.ks-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c, #999);
  box-shadow: 0 0 6px var(--c, transparent);
}

.ks-lobby__chat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 150px;
}
.ks-lobby__chat ul {
  flex: 1;
  max-height: 26vh;
  min-height: 110px;
  overflow-y: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12.5px;
  line-height: 1.9;
}
.ks-lobby__chat ul li.is-sys {
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__chatin {
  display: flex;
  gap: 0.4rem;
}
.ks-lobby__chatin .ks-btn {
  padding: 0.3rem 0.8rem;
  min-height: 0;
}

.ks-lobby__foot {
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .ks-lobby__cols {
    grid-template-columns: 1fr;
  }
  .ks-lobby__create {
    grid-template-columns: 1fr;
  }
  .ks-room {
    grid-template-columns: 1fr auto;
  }
}
.ks-profile {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.ks-profile__box {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 12, 46, 0.86);
}
.ks-profile__box h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 900;
}
.ks-profile__box h2 small {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #ffc23d;
}
.ks-profile__box h3 {
  margin: 0.4rem 0 0.2rem;
  font-size: 14px;
  font-weight: 800;
}
.ks-profile__box h3 small {
  font-weight: 400;
  color: rgba(243, 236, 255, 0.62);
  font-size: 11px;
}

.ks-profile__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.ks-profile__preview {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 35%, rgba(139, 61, 255, 0.35), rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-profile__preview img {
  width: 100%;
  height: auto;
  display: block;
}
.ks-profile__preview span {
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}

.ks-profile__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ks-profile__name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 12px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-profile__name input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #f3ecff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.ks-profile__name input:focus {
  border-color: #8b3dff;
}

.ks-charbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #ffc23d;
  background: rgba(255, 194, 61, 0.1);
  color: #f3ecff;
  cursor: pointer;
  text-align: right;
}
.ks-charbtn span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ks-charbtn b {
  font-size: 15px;
}
.ks-charbtn small {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #ffc23d;
}
.ks-charbtn em {
  font-style: normal;
  font-size: 11.5px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-charbtn i {
  font-style: normal;
  font-size: 12px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.ks-charpick {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 3, 18, 0.78);
}
.ks-charpick[hidden] {
  display: none;
}

.ks-charpick__box {
  width: min(520px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(26, 12, 46, 0.86);
}
.ks-charpick__box h3 {
  margin: 0;
  font-size: 17px;
  color: #f3ecff;
}

.ks-charpick__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  overflow-y: auto;
  min-height: 0;
  padding: 0.1rem;
  scrollbar-width: thin;
}
@media (max-width: 480px) {
  .ks-charpick__list {
    grid-template-columns: 1fr;
  }
}

.ks-char {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3ecff;
  cursor: pointer;
  text-align: right;
}
.ks-char b {
  font-size: 15px;
}
.ks-char small {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #ffc23d;
}
.ks-char span {
  font-size: 11.5px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-char.is-on {
  border-color: #ffc23d;
  background: rgba(255, 194, 61, 0.12);
}

.ks-profile__colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ks-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--c);
  cursor: pointer;
  padding: 0;
}
.ks-swatch.is-on {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 194, 61, 0.7);
}

.ks-lobby__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ks-lobby__who img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
}
.ks-lobby__who div {
  display: flex;
  flex-direction: column;
}
.ks-lobby__who small {
  color: rgba(243, 236, 255, 0.62);
  font-size: 11px;
}

.ks-lobby__teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.ks-lobby__teams section {
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ks-lobby__teams section.is-a {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.08);
}
.ks-lobby__teams section.is-b {
  border-color: rgba(226, 85, 58, 0.6);
  background: rgba(226, 85, 58, 0.08);
}
.ks-lobby__teams h4 {
  margin: 0 0 0.4rem;
  font-size: 13px;
  font-weight: 800;
}
.ks-lobby__teams h4 small {
  color: rgba(243, 236, 255, 0.62);
}

.ks-lobby__teamhint {
  margin: 0.4rem 0 0;
  font-size: 11.5px;
  color: rgba(243, 236, 255, 0.62);
  line-height: 1.8;
}

.ks-mini {
  padding: 0.05rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f3ecff;
  cursor: pointer;
}

.ks-lobby__players li small {
  color: rgba(243, 236, 255, 0.62);
  font-size: 11px;
}

.ks-lobby__players li em.is-off {
  color: #ff8c73;
}

.ks-mini--del {
  color: #ff8c73;
  padding: 0.25rem 0.55rem;
}

.ks-room.is-mine {
  border-color: rgba(255, 194, 61, 0.55);
}

.ks-room__mine {
  margin-inline-start: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 99px;
  background: rgba(255, 194, 61, 0.16);
  color: #ffc23d;
  font-size: 10.5px;
}

.ks-check {
  grid-column: 1/-1;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
  line-height: 1.7;
}
.ks-check input {
  width: 18px;
  height: 18px;
  accent-color: #8b3dff;
  flex: none;
}

.ks-gunbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.ks-gunbar img {
  width: 150px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  flex: none;
}
.ks-gunbar div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ks-gunbar div b {
  font-size: 16px;
  font-family: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ks-gunbar div small,
.ks-gunbar div i {
  font-style: normal;
  font-size: 11.5px;
  color: rgba(243, 236, 255, 0.62);
}
.ks-gunbar .ks-btn {
  padding: 0.4rem 1rem;
  min-height: 0;
  flex: none;
}

.ks-resume {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 18, 0.88);
}
.ks-resume__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.6rem 2rem;
  text-align: center;
}
.ks-resume__box h2 {
  margin: 0;
  font-size: 20px;
}
.ks-resume__box p {
  margin: 0;
  color: rgba(243, 236, 255, 0.62);
  font-size: 13.5px;
}
.ks-resume__spin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffc23d;
  animation: ks-spin 0.9s linear infinite;
}

.ks-over__board li[data-team="0"] b {
  color: #7db3ff;
}

.ks-over__board li[data-team="1"] b {
  color: #ff8c73;
}

@media (max-width: 720px) {
  .ks-profile__grid {
    grid-template-columns: 1fr;
  }
  .ks-profile__preview {
    min-height: 220px;
    max-width: 220px;
    margin: 0 auto;
  }
  .ks-lobby__teams {
    grid-template-columns: 1fr;
  }
}
.ks-obj {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 200px;
  max-width: min(440px, 80%);
  pointer-events: none;
}
.ks-obj__head {
  padding: 2px 16px;
  border-radius: 8px;
  background: rgba(15, 7, 30, 0.62);
  border-bottom: 2px solid #ffc23d;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: pre;
}
.ks-obj__head.is-snd {
  border-bottom-color: #ff8a3c;
}
.ks-obj__head.is-dom {
  border-bottom-color: #4aa8ff;
}
.ks-obj__head.is-kc {
  border-bottom-color: #ff5a3c;
}
.ks-obj__head.is-gg {
  border-bottom-color: #7dff9b;
}
.ks-obj__flags {
  display: flex;
  gap: 8px;
}
.ks-obj__sub {
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(15, 7, 30, 0.6);
  font-size: 13px;
  color: #fff;
  text-align: center;
  direction: rtl;
}
.ks-obj__bar {
  position: relative;
  width: 220px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.ks-obj__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #ffc23d;
}
.ks-obj__bar::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #1a0f2e;
}

.ks-flagchip {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: conic-gradient(var(--fc, #b8bcc4) var(--p, 0%), rgba(15, 7, 30, 0.7) 0);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.ks-flagchip.is-m {
  --fc: #4aa8ff;
}
.ks-flagchip.is-e {
  --fc: #ff5a5a;
}
.ks-flagchip.is-n {
  --fc: #b8bcc4;
}
.ks-flagchip.is-held {
  border-color: var(--fc);
  box-shadow: 0 0 10px var(--fc);
}
.ks-flagchip.is-hot {
  animation: ks-flagpulse 0.5s infinite alternate;
  border-color: #ffc23d;
}

@keyframes ks-flagpulse {
  to {
    transform: scale(1.14);
  }
}
.ks-marks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ks-mark {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.ks-mark b,
.ks-mark span {
  position: absolute;
  left: 0;
  transform: translate(-50%, 0);
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.ks-mark b {
  top: -16px;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(15, 7, 30, 0.7);
  border: 2px solid var(--mc, #ffc23d);
  color: var(--mc, #ffc23d);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.ks-mark span {
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.ks-mark.is-site {
  --mc: #ffc23d;
}
.ks-mark.is-bomb {
  --mc: #ff3838;
}
.ks-mark.is-flag-n {
  --mc: #c9ccd4;
}
.ks-mark.is-flag-m {
  --mc: #4aa8ff;
}
.ks-mark.is-flag-e {
  --mc: #ff5a5a;
}
.ks-mark.is-tag-m {
  --mc: #4aa8ff;
}
.ks-mark.is-tag-e {
  --mc: #ff8a3c;
}
.ks-mark.is-off {
  opacity: 0.85;
}
.ks-mark.is-off span {
  display: none;
}

.ks-lobby__modehint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.75;
}

.ks-loading {
  transition: opacity 0.35s;
}
.ks-loading.is-done {
  opacity: 0;
  pointer-events: none;
}
.ks-loading__bar {
  position: relative;
  display: block;
  width: min(260px, 60%);
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ks-loading__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b3dff, #ffc23d);
  animation: ks-bar 1.15s ease-in-out infinite;
}
.ks-loading.is-failed .ks-loading__bar, .ks-loading.is-failed > span {
  display: none;
}
.ks-loading__fail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.ks-loading__fail p {
  margin: 0;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(243, 236, 255, 0.62);
}

.ks-loading[data-ks=busy] {
  z-index: 35;
  background: rgba(21, 10, 38, 0.94);
}

@keyframes ks-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(230%);
  }
}
.ks-main,
.ks-setup,
.ks-mappick {
  display: flex;
}

.ks-main__wrap,
.ks-setup__wrap {
  margin: auto;
  width: 100%;
}

.ks-main__wrap {
  gap: 1.3rem;
}

.ks-setup__wrap {
  max-width: 940px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ks-setup__wrap h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
}
.ks-setup__wrap h2 small {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #ffc23d;
}

.ks-setup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ks-setup__opt {
  padding: 0.7rem 0.9rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.ks-setup__opt h3 {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 700;
  color: #ffc23d;
}

.ks-pick {
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: stretch;
  min-height: 132px;
  padding: 0;
  text-align: right;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26, 12, 46, 0.86);
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.ks-pick:hover, .ks-pick:focus-visible {
  border-color: #ffc23d;
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.4);
  outline: none;
}
.ks-pick:active {
  transform: scale(0.99);
}
.ks-pick__img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1550, #150a26);
  overflow: hidden;
}
.ks-pick__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ks-pick--class .ks-pick__img img {
  object-fit: contain;
  padding: 0.5rem;
}
.ks-pick__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0.8rem 1rem;
  min-width: 0;
}
.ks-pick__body small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(243, 236, 255, 0.62);
}
.ks-pick__body b {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  direction: ltr;
  text-align: right;
}
.ks-pick__body i {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffc23d;
  direction: ltr;
  text-align: right;
}
.ks-pick__body em {
  font-style: normal;
  margin-top: 0.4rem;
  font-size: 11px;
  color: #8b3dff;
  filter: brightness(1.7);
}

.ks-maps--big {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .ks-setup__wrap {
    padding: 0.8rem;
  }
  .ks-setup__grid {
    grid-template-columns: 1fr;
  }
  .ks-pick {
    min-height: 104px;
    grid-template-columns: 40% 1fr;
  }
  .ks-maps--big {
    grid-template-columns: 1fr 1fr;
  }
}
.ks-logo__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 194, 61, 0.35));
}

.ks-loading__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.3rem;
}

@media (pointer: coarse) and (orientation: portrait) {
  .ks__stage.is-pfs:not(:fullscreen) {
    inset: auto;
    top: 0;
    left: 100vw;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    height: 100dvw;
    transform-origin: 0 0;
    transform: rotate(90deg);
  }
  .ks__stage.is-pfs:not(:fullscreen) .ks-screen {
    touch-action: pan-x;
  }
}
.ks-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 33;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ks-bar__ping {
  padding: 0 10px;
  height: 30px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 7, 30, 0.7);
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Segoe UI", Roboto, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #7dff9b;
  pointer-events: none;
}
.ks-bar__ping[data-q=mid] {
  color: #ffd86b;
}
.ks-bar__ping[data-q=bad] {
  color: #ff6b6b;
}
.ks-bar__ping[data-q=wait], .ks-bar__ping[data-q=off] {
  color: rgba(243, 236, 255, 0.62);
}
.ks-bar__fs {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  flex: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(15, 7, 30, 0.7);
  color: #f3ecff;
  cursor: pointer;
}
.ks-bar__fs svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.ks-bar__fs:hover, .ks-bar__fs.is-on {
  border-color: rgba(255, 194, 61, 0.6);
  color: #ffc23d;
}

.ks.is-playing .ks-bar,
.ks[data-screen=benchhud] .ks-bar {
  display: none;
}

.ks-exit {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 32;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(20, 9, 38, 0.8);
  color: #f3ecff;
  cursor: pointer;
}
.ks-exit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

@media (pointer: coarse) {
  .ks__stage.is-pfs .ks-exit {
    display: flex;
  }
}

.ks[data-screen=class] .ks-exit,
.ks[data-screen=pause] .ks-exit,
.ks[data-screen=lobby] .ks-exit,
.ks[data-screen=profile] .ks-exit,
.ks[data-screen=over] .ks-exit,
.ks[data-screen=bench] .ks-exit,
.ks[data-screen=benchhud] .ks-exit,
.ks[data-screen=benchres] .ks-exit,
.ks[data-screen=resume] .ks-exit,
.ks[data-screen=""] .ks-exit {
  display: none !important;
}

.ks__stage {
  container-type: size;
}

@container (max-height: 470px) {
  .ks-main__wrap {
    gap: 0.8rem;
    padding: 0.5rem 1rem;
  }
  .ks-logo__img,
  .ks-loading__logo {
    width: 52px;
    height: 52px;
  }
  .ks-logo h2 {
    font-size: 26px;
  }
  .ks-logo p,
  .ks-keys {
    display: none;
  }
  .ks-btn {
    min-height: 44px;
    padding: 0.35rem 1.1rem;
    font-size: 14px;
  }
  .ks-actions .ks-btn--primary {
    min-width: 0;
    flex: 0 1 auto;
  }
  .ks-setup__wrap {
    padding: 0.5rem 1rem;
    gap: 0.6rem;
  }
  .ks-setup__wrap h2 {
    font-size: 16px;
  }
  .ks-setup__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .ks-setup__opt {
    padding: 0.45rem 0.7rem 0.1rem;
  }
  .ks-pick {
    min-height: 84px;
    grid-template-columns: 42% 1fr;
  }
  .ks-pick__body {
    padding: 0.4rem 0.7rem;
  }
  .ks-pick__body b {
    font-size: 15px;
  }
  .ks-pick__body em {
    display: none;
  }
  .ks-maps--big {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
  .ks-map__meta em {
    display: none;
  }
}
.ks-keys--help {
  font-size: 14px;
  gap: 0.8rem 1.4rem;
  max-width: 720px;
  margin-inline: auto;
}

.ks-help__touch {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 2;
  color: rgba(243, 236, 255, 0.62);
}

.ks-help {
  display: flex;
}

@container (max-height: 470px) {
  .ks-keys--help {
    display: flex;
    font-size: 12px;
    gap: 0.4rem 0.9rem;
  }
  .ks-help__touch {
    font-size: 11px;
    line-height: 1.7;
  }
}
.ks-pick--mode .ks-pick__img--mode {
  color: #ffc23d;
  background: radial-gradient(circle at 50% 40%, rgba(139, 61, 255, 0.55), #150a26 75%);
}
.ks-pick--mode .ks-pick__img--mode svg {
  width: 62%;
  max-width: 92px;
  filter: drop-shadow(0 0 10px rgba(255, 194, 61, 0.4));
}

.ks-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ks-mode {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  text-align: right;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(26, 12, 46, 0.86);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.ks-mode:hover, .ks-mode:focus-visible {
  border-color: #ffc23d;
  outline: none;
}
.ks-mode:active {
  transform: scale(0.99);
}
.ks-mode.is-on {
  border-color: #ffc23d;
  box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.5), 0 8px 24px rgba(139, 61, 255, 0.35);
}
.ks-mode__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  color: #ffc23d;
  background: radial-gradient(circle at 50% 40%, rgba(139, 61, 255, 0.5), #150a26 80%);
}
.ks-mode__ic svg {
  width: 46px;
  height: 46px;
}
.ks-mode__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ks-mode__body b {
  font-size: 15px;
  letter-spacing: 0.1em;
  direction: ltr;
  text-align: right;
}
.ks-mode__body i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #ffc23d;
}
.ks-mode__body em {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(243, 236, 255, 0.62);
}

.ks-setup__grid .ks-pick--mode {
  grid-column: 1/-1;
}

.ks.is-blind canvas[data-ks=canvas] {
  visibility: hidden;
}

@media (max-width: 767px) {
  .ks-modes {
    grid-template-columns: 1fr;
  }
}
@container (max-height: 470px) {
  .ks-modes {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .ks-mode {
    grid-template-columns: 44px 1fr;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
  }
  .ks-mode__ic {
    width: 44px;
    height: 44px;
  }
  .ks-mode__ic svg {
    width: 28px;
    height: 28px;
  }
  .ks-mode__body em {
    display: none;
  }
  .ks-setup__grid .ks-pick--mode {
    grid-column: auto;
  }
}