/* ============================================================
   Nexon Public Rules
   /rules
   ============================================================ */

.rules-page {
  position: relative;
  display: block;
  overflow: hidden;
}

/* HERO */

.rules-hero {
  position: relative;
  padding: 34px 0 18px;
}

.rules-hero__shell {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 46px;
  border-radius: 34px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.26), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.020)),
    rgba(8, 13, 29, 0.90);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.050);
}

.rules-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.rules-hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
}

.rules-hero__orb--one {
  top: -90px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.42);
}

.rules-hero__orb--two {
  left: -70px;
  bottom: -70px;
  width: 270px;
  height: 270px;
  background: rgba(168, 85, 247, 0.30);
}

.rules-hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.rules-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rules-hero__badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.78);
}

.rules-hero__title {
  margin: 26px 0 0;
  color: #ffffff;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 950;
  line-height: 0.93;
  letter-spacing: -0.08em;
}

.rules-hero__title span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 35%, #60a5fa 70%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-hero__text {
  max-width: 840px;
  margin: 20px 0 0;
  color: rgba(219, 234, 254, 0.76);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 750;
}

.rules-hero__subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 750;
}

.rules-hero__subnav a {
  color: #93c5fd;
  text-decoration: none;
}

.rules-hero__subnav a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.rules-hero__subnav-dot {
  color: rgba(148, 163, 184, 0.55);
  user-select: none;
}

.rules-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin-top: 26px;
}

.rules-stat {
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.rules-stat__label {
  display: block;
  color: rgba(203, 213, 225, 0.68);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rules-stat__value {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.045em;
  word-break: break-word;
}

.rules-stat__value--sm {
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: -0.03em;
}

.rules-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* CONTENT */

.rules-content {
  padding: 18px 0 36px;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
  gap: 22px;
  align-items: start;
}

.rules-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.rules-sidebar__card,
.rules-warning-card,
.rules-final-card,
.rules-empty {
  border: 1px solid rgba(147, 197, 253, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.020)),
    rgba(8, 13, 29, 0.82);
  box-shadow:
    0 20px 65px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.rules-sidebar__card {
  padding: 22px;
  border-radius: 28px;
}

.rules-sidebar__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(96, 165, 250, 0.10);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules-sidebar__badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.70);
}

.rules-sidebar__title {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rules-sidebar__text {
  margin: 12px 0 0;
  color: rgba(219, 234, 254, 0.70);
  line-height: 1.7;
  font-weight: 700;
}

/* NAV */

.rules-nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rules-nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(219, 234, 254, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.rules-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.rules-nav a:focus-visible {
  outline: none;
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}

.rules-nav a span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 950;
}

/* WARNING */

.rules-warning-card {
  padding: 20px;
  border-radius: 24px;
}

.rules-warning-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.20);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: #fde68a;
  font-size: 24px;
  font-weight: 950;
}

.rules-warning-card h3 {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.rules-warning-card p {
  margin: 10px 0 0;
  color: rgba(219, 234, 254, 0.72);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

/* MAIN */

.rules-main {
  min-width: 0;
}

.rules-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.rules-section-head__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.82);
}

.rules-section-head__title {
  margin: 0;
}

.rules-section-head__lead {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
  color: rgba(203, 213, 225, 0.72);
}

.rules-section-head__meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(219, 234, 254, 0.72);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.rules-list {
  display: grid;
  gap: 16px;
}

/* RULE CARD */

.rule-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(147, 197, 253, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.020)),
    rgba(8, 13, 29, 0.82);
  box-shadow:
    0 20px 65px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  scroll-margin-top: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.28);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rule-card__number {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(168, 85, 247, 0.10)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.rule-card__content {
  min-width: 0;
}

.rule-card__header {
  display: block;
}

.rule-card__label {
  margin: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-card__title {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.rule-card__text {
  margin-top: 18px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 650;
  word-break: break-word;
}

.rule-card__text p {
  margin: 0 0 16px;
}

.rule-card__text p:last-child {
  margin-bottom: 0;
}

.rule-card__text--body .rule-body-list {
  margin: 0 0 18px;
  padding-left: 1.35em;
  color: rgba(226, 232, 240, 0.92);
}

.rule-card__text--body .rule-body-list:last-child {
  margin-bottom: 0;
}

.rule-card__text--body .rule-body-list--bullets {
  list-style: disc;
}

.rule-card__text--body .rule-body-list--ordered {
  list-style: decimal;
}

.rule-card__text--body .rule-body-list li {
  margin: 6px 0;
  padding-left: 4px;
}

.rule-card__text--body .rule-body-list li::marker {
  color: rgba(147, 197, 253, 0.75);
  font-weight: 800;
}

.rule-card__text--body strong {
  color: #f8fafc;
  font-weight: 950;
}

/* EMPTY */

.rules-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  min-height: 340px;
  padding: 34px;
  border-radius: 32px;
}

.rules-empty__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
  font-size: 30px;
  font-weight: 950;
}

.rules-empty__title {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rules-empty__text {
  max-width: 620px;
  margin: 0;
  color: rgba(219, 234, 254, 0.70);
  line-height: 1.7;
}

/* FINAL */

.rules-footer-section {
  padding: 0 0 60px;
}

.rules-final-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
}

.rules-final-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.20);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: #86efac;
  font-size: 30px;
  font-weight: 950;
}

.rules-final-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rules-final-card p {
  margin: 10px 0 0;
  color: rgba(219, 234, 254, 0.72);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.rules-final-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    position: static;
  }

  .rules-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-final-card {
    grid-template-columns: 1fr;
  }

  .rules-final-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .rules-hero {
    padding-top: 20px;
  }

  .rules-hero__shell {
    min-height: auto;
    padding: 22px;
    border-radius: 26px;
  }

  .rules-hero__stats,
  .rules-nav {
    grid-template-columns: 1fr;
  }

  .rules-hero__title {
    font-size: 42px;
    letter-spacing: -0.06em;
  }

  .rules-hero__text {
    font-size: 16px;
  }

  .rules-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-section-head__meta {
    white-space: normal;
  }

  .rule-card {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 24px;
  }

  .rule-card__number {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 24px;
  }

  .rule-card__title {
    font-size: 22px;
  }

  .rules-sidebar__card,
  .rules-warning-card,
  .rules-final-card,
  .rules-empty {
    border-radius: 24px;
  }

  .rules-hero__actions,
  .rules-hero__actions .btn,
  .rules-final-card__actions,
  .rules-final-card__actions .btn {
    width: 100%;
  }
}
