.kc-external {
  margin: 0 0 28px;
  scroll-margin-top: 140px;
}
.kc-external-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 15px;
}
.kc-external-heading h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -.6px;
}
.kc-external-retro {
  margin-top: 24px;
}
.kc-external-retro h2 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -.35px;
}
.kc-external-heading p {
  margin: 0;
  color: #b4acca;
  font-size: 13px;
  line-height: 1.5;
}
.kc-external-local {
  flex: none;
  padding: 9px 13px;
  border: 1px solid #665499;
  border-radius: 8px;
  color: #eee7ff;
  background: #292046;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.kc-external-local:hover {
  background: #3a2c60;
}
.kc-external-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.kc-external-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #38304e;
  border-radius: 14px;
  color: #f8f8ff;
  background: #17152b;
  text-decoration: none;
  transition: border-color .15s;
}
.kc-external-card:hover {
  border-color: #9b80ef;
}
.kc-external-card:focus-visible,
.kc-external-local:focus-visible {
  outline: 3px solid #5de2fd;
  outline-offset: 3px;
}
.kc-external-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101324;
}
.kc-external-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kc-external-badge,
.kc-external-image-note {
  position: absolute;
  border-radius: 5px;
  color: #f5f0ff;
  background: #121024ed;
  line-height: 1.2;
}
.kc-external-badge {
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
}
.kc-external-image-note {
  bottom: 7px;
  left: 7px;
  padding: 3px 5px;
  font-size: 9px;
}
.kc-external-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px;
}
.kc-external-copy small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #bdb4d4;
  font-size: 11px;
}
.kc-external-copy h3 {
  margin: 4px 0 7px;
  font-size: 16px;
  line-height: 1.2;
}
.kc-external-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  color: #a6eaf4;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.kc-external-copy b {
  font-size: 15px;
}
@media (max-width: 700px) {
  .kc-external-heading {
    align-items: start;
    flex-direction: column;
  }
  .kc-external-heading h1 {
    font-size: 21px;
  }
  .kc-external-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kc-external-copy {
    padding: 8px;
  }
  .kc-external-copy h3 {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kc-external-card {
    transition: none;
  }
}

.kc-external-more {
  margin-top: 13px;
}
.kc-external-more summary {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid #665499;
  border-radius: 8px;
  color: #eee7ff;
  cursor: pointer;
}
.kc-external-more .kc-external-grid {
  margin-top: 14px;
}
.kc-external + .welcome h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.5px;
}
.kc-external-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  gap: 24px 36px;
  max-width: 1050px;
  margin-inline: auto;
  padding: 36px 24px;
}
.kc-external-detail h1 {
  margin: 5px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}
.kc-external-detail p {
  color: #c4c0dc;
  font-size: 15px;
  line-height: 1.55;
}
.kc-external-detail .kc-external-type {
  margin: 0;
  color: #b9a5ef;
  font-size: 13px;
}
.kc-external-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  padding: 10px;
  border: 1px solid #534267;
  border-radius: 12px;
  background: #211936;
}
.kc-external-promo img {
  width: 80px;
  height: 66px;
  object-fit: cover;
  border-radius: 7px;
}
.kc-external-promo small,
.kc-external-promo strong,
.kc-external-promo a {
  display: block;
}
.kc-external-promo small {
  color: #c4b5dd;
  font-size: 11px;
}
.kc-external-promo strong {
  margin: 3px 0;
}
.kc-external-promo a {
  color: #b7ecfc;
  font-size: 13px;
}
.kc-external-play {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
}
.kc-sponsor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-block: 16px;
  padding: 12px 14px;
  border: 1px solid #544574;
  border-inline-start: 3px solid #a887ff;
  border-radius: 12px;
  background: #201932;
}
.kc-sponsor small,
.kc-sponsor strong,
.kc-sponsor span {
  display: block;
}
.kc-sponsor small,
.kc-sponsor span {
  color: #cfc4e2;
  font-size: 12px;
}
.kc-sponsor strong {
  margin: 3px 0;
  color: #fff5ff;
  font-size: 16px;
}
.kc-sponsor a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  color: #b7ecfc;
  font-size: 14px;
  font-weight: 700;
}
.kc-sponsor a:hover {
  background: #392957;
}
.kc-sponsor a:focus-visible {
  outline: 2px solid #5de2fd;
  outline-offset: 2px;
}
.info-main .kc-sponsor-pack {
  margin: 24px 0;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #544574;
  border-radius: 14px;
  background: #201932;
}
.info-main .kc-sponsor-pack h2 {
  margin-top: 0;
}
.kc-sponsor-pack li + li {
  margin-top: 8px;
}
.kc-external-guide {
  margin-top: 26px;
}
.kc-external-guide h2 {
  font-size: 18px;
}
.kc-external-detail-side figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #38304e;
  border-radius: 14px;
}
.kc-external-detail-game .ad-section {
  margin: 12px 0 16px;
}
.kc-external-guide a {
  color: #c4b4ef;
}
.kc-external-detail-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 15px;
  border-top: 1px solid #38304e;
}
.kc-external-detail-footer a {
  color: #c4b4ef;
}
@media (min-width: 1080px) {
  .kc-external-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .kc-external-copy {
    padding: 9px;
  }
  .kc-external-copy h3 {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .kc-external-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px 14px;
  }
  .kc-external-play {
    width: 100%;
  }
}

.kc-external .kc-external-principal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kc-external-principal .kc-external-copy h3 {
  font-size: clamp(13px, 2vw, 19px);
}
.kc-external-secondary {
  margin-top: 12px;
}
@media (min-width: 701px) {
  .kc-external .kc-external-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kc-external-secondary .kc-external-card {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
    align-items: center;
  }
  .kc-external-secondary .kc-external-badge {
    display: none;
  }
}
@media (max-width: 460px) {
  .kc-external-principal .kc-external-badge {
    top: 4px;
    right: 4px;
    padding: 3px 4px;
    font-size: 8px;
  }
  .kc-external-principal .kc-external-image-note {
    bottom: 4px;
    left: 4px;
    font-size: 8px;
  }
}

.topbar .kc-header-ad,
.topbar .kc-header-house {
  flex: 0 0 468px;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
}

.topbar .kc-header-ad > span {
  margin-bottom: 2px;
}

.topbar .kc-external-header-ad,
.topbar .kc-header-house {
  margin-inline-start: 0;
}

.kc-header-house a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #574784;
  border-radius: 10px;
  background: #201935;
  color: #d9faff;
  font-weight: 700;
  text-decoration: none;
}

.kc-header-house small {
  color: #d8c7ed;
  font-size: 11px;
}

.kc-header-house a:hover {
  background: #30234d;
}

.kc-external-retro .ad-section {
  flex: none;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.kc-external-detail-side .ad-section {
  margin: 14px 0 0;
}

.kc-rail-slot {
  display: none;
}

.kc-rail-slot .ad-section,
.kc-rail-slot .kc-sponsor {
  margin: 0;
  overflow-wrap: anywhere;
}

.kc-rail-slot .ad-section {
  padding-inline: 0;
}

.kc-rail-slot .kc-sponsor a {
  padding-inline: 0;
}

@media (min-width: 1200px) {
  .kc-rail-slot:has(> :not([hidden])) {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .kc-external-detail:has(.kc-rail-slot > :not([hidden])) {
    grid-template-columns: 160px minmax(0, 1fr) minmax(300px, 390px);
    max-width: 1320px;
  }
  .kc-external-detail:has(.kc-rail-slot > :not([hidden])) .kc-external-detail-game {
    grid-column: 2;
    grid-row: 1;
  }
  .kc-external-detail:has(.kc-rail-slot > :not([hidden])) .kc-external-detail-side {
    grid-column: 3;
    grid-row: 1;
  }
  .kc-external-detail:has(.kc-rail-slot > :not([hidden])) .kc-inline-sponsor {
    display: none;
  }
}

@media (min-width: 1280px) {
  .kc-v3 .topbar:has(.kc-home-header-ad:not([hidden])) {
    height: 86px;
  }
}

@media (max-width: 1279px) {
  .topbar .kc-home-header-ad {
    display: none;
  }
}

@media (min-width: 860px) {
  .kc-v3 .topbar:has(.kc-external-header-ad:not([hidden])) {
    height: 86px;
  }
}

@media (max-width: 859px) {
  .topbar .kc-external-header-ad,
  .topbar .kc-header-house {
    display: none;
  }
}

@media (max-width: 359px) {
  .kc-external-retro .ad-section {
    display: none;
  }
}

@media (max-width: 329px) {
  .kc-external-detail-side .ad-section {
    display: none;
  }
}
