.yh-maprecords {
  display: grid;
  gap: 1rem;
}

.yh-record-hero {
  overflow: hidden;
}

.yh-game-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.yh-game-tabs a {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  color: #fff;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.yh-game-tabs a:hover,
.yh-game-tabs a.is-active {
  border-color: rgba(164,90,255,.55);
  background: linear-gradient(135deg, rgba(164,90,255,.18), rgba(82,227,163,.06));
}

.yh-game-tabs a:hover {
  transform: translateY(-1px);
}

.yh-game-tabs span {
  width: fit-content;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(82,227,163,.13);
  color: #52e3a3;
  font-weight: 950;
  font-size: .78rem;
}

.yh-game-tabs b {
  font-size: 1rem;
}

.yh-game-tabs em {
  color: rgba(235,239,247,.62);
  font-style: normal;
  font-weight: 800;
  font-size: .82rem;
}

.yh-record-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.yh-map-panel,
.yh-record-main,
.yh-record-empty {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

.yh-map-panel {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.yh-record-main {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  min-width: 0;
}

.yh-map-panel__head {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  margin-bottom: .85rem;
}

.yh-map-panel__head span,
.yh-map-search span {
  display: block;
  color: rgba(235,239,247,.58);
  font-size: .78rem;
  font-weight: 900;
}

.yh-map-panel__head h2 {
  margin: .1rem 0 0;
  color: #fff;
  font-size: 1.35rem;
}

.yh-map-panel__head strong {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,204,77,.12);
  color: #ffcc4d;
}

.yh-map-search {
  display: grid;
  gap: .4rem;
  margin-bottom: .8rem;
}

.yh-map-search input,
.yh-record-filter select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  color: #fff;
  padding: .85rem .9rem;
  outline: none;
}

.yh-map-list {
  display: grid;
  gap: .45rem;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: .2rem;
}

.yh-map-list a {
  display: grid;
  gap: .18rem;
  padding: .78rem .85rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  color: #fff;
  text-decoration: none;
}

.yh-map-list a:hover,
.yh-map-list a.is-active {
  border-color: rgba(255,204,77,.5);
  background: linear-gradient(135deg, rgba(255,204,77,.14), rgba(164,90,255,.08));
}

.yh-map-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.yh-map-list small {
  color: rgba(235,239,247,.62);
  font-weight: 800;
}

.yh-record-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}

.yh-record-filter label {
  display: grid;
  gap: .42rem;
  color: rgba(235,239,247,.72);
  font-weight: 900;
}

.yh-record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.yh-record-summary > div {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  min-width: 0;
}

.yh-record-summary span {
  display: block;
  color: rgba(235,239,247,.58);
  font-size: .82rem;
  font-weight: 900;
}

.yh-record-summary strong {
  display: block;
  margin-top: .25rem;
  color: #fff;
  font-size: 1.03rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yh-record-table {
  display: grid;
  gap: .45rem;
}

.yh-record-table > div {
  display: grid;
  grid-template-columns: 62px minmax(160px, 1fr) 118px 82px 82px 82px 104px;
  gap: .6rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  min-width: 0;
}

.yh-record-head {
  color: #ffcc4d;
  background: rgba(255,204,77,.08) !important;
}

.yh-record-table .is-wr {
  border-color: rgba(255,204,77,.45);
  background: linear-gradient(135deg, rgba(255,204,77,.13), rgba(139,92,246,.06));
}

.yh-record-table span,
.yh-record-table strong,
.yh-record-table b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.yh-rank {
  color: #ffcc4d;
  font-weight: 950;
}

.yh-record-table small {
  display: block;
  margin-top: .18rem;
  font-size: .76rem;
}

.yh-record-table a {
  color: #b86cff;
}

@media (max-width: 980px) {
  .yh-record-layout {
    grid-template-columns: 1fr;
  }

  .yh-map-panel {
    position: static;
  }

  .yh-map-list {
    max-height: 320px;
  }
}

@media (max-width: 680px) {
  .yh-maprecords {
    gap: .8rem;
    padding-bottom: 88px;
  }

  .yh-game-tabs {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .15rem;
    scroll-snap-type: x mandatory;
  }

  .yh-game-tabs a {
    min-width: 72%;
    scroll-snap-align: start;
    padding: .9rem;
  }

  .yh-record-main,
  .yh-map-panel {
    padding: .8rem;
    border-radius: 20px;
  }

  .yh-record-summary,
  .yh-record-filter {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .yh-record-summary > div {
    padding: .85rem;
  }

  .yh-map-list {
    max-height: 255px;
  }

  .yh-record-head {
    display: none !important;
  }

  .yh-record-table {
    gap: .65rem;
  }

  .yh-record-table > .yh-record-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .58rem .75rem;
    padding: .95rem;
    border-radius: 18px;
  }

  .yh-record-row > * {
    display: grid;
    gap: .12rem;
  }

  .yh-record-row > *::before {
    content: attr(data-label);
    color: rgba(235,239,247,.52);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
  }

  .yh-record-row > span:nth-child(2),
  .yh-record-row > strong:nth-child(3) {
    grid-column: span 2;
  }

  .yh-record-row > strong:nth-child(3) {
    color: #ffcc4d;
    font-size: 1.35rem;
  }
}
