#page-home {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #01050d;
}

.home-ring {
  position: relative;
  width: 100%;
  height: calc(100vh - 58px);
  min-height: 662px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(24, 87, 184, 0.22), transparent 40%),
    radial-gradient(circle at 12% 78%, rgba(0, 204, 255, 0.1), transparent 29%),
    radial-gradient(circle at 88% 75%, rgba(143, 73, 255, 0.13), transparent 33%),
    linear-gradient(180deg, #01040b 0%, #020817 56%, #030514 100%);
}

.home-ring::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size:
    82px 82px,
    82px 82px;
  mask-image: linear-gradient(transparent, #000 24%, #000);
}

.home-ring::after {
  position: absolute;
  top: 9%;
  left: 50%;
  z-index: -1;
  width: 74%;
  height: 60%;
  content: "";
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(38, 113, 217, 0.13), transparent 58%),
    radial-gradient(ellipse at 78% 82%, rgba(147, 65, 255, 0.08), transparent 46%);
  filter: blur(38px);
  pointer-events: none;
}

.home-ring-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.home-ring-canvas:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}

.home-ring-admin-actions {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 5px;
  transform: translate(-100%, 0);
  border: 1px solid rgba(150, 213, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 10, 29, 0.72);
  box-shadow:
    inset 0 0 12px rgba(66, 170, 255, 0.08),
    0 0 18px rgba(46, 169, 255, 0.15);
  backdrop-filter: blur(10px);
}

.home-ring-admin-actions[hidden] {
  display: none;
}

.home-ring-admin-action {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 6px;
  place-items: center;
  border: 1px solid rgba(130, 207, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(6, 24, 58, 0.84);
  box-shadow: inset 0 0 10px rgba(70, 177, 255, 0.12);
  color: rgba(226, 245, 255, 0.92);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.home-ring-admin-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-ring-admin-action:hover,
.home-ring-admin-action:focus-visible {
  border-color: rgba(102, 226, 255, 0.88);
  outline: none;
  box-shadow:
    inset 0 0 12px rgba(64, 190, 255, 0.2),
    0 0 13px rgba(51, 199, 255, 0.32);
  color: #fff;
}

.home-ring-admin-remove:hover,
.home-ring-admin-remove:focus-visible {
  border-color: rgba(255, 139, 207, 0.82);
  box-shadow:
    inset 0 0 12px rgba(255, 91, 179, 0.16),
    0 0 13px rgba(255, 80, 186, 0.25);
}

.home-ring-admin-action:disabled {
  cursor: wait;
  opacity: 0.45;
}

.home-ring-creation-samples {
  position: absolute;
  top: calc(36.5% + 28px);
  left: 50%;
  z-index: 8;
  display: flex;
  gap: clamp(16px, 2vw, 34px);
  align-items: flex-end;
  transform: translate(-50%, -50%);
}

.home-ring-creation-sample {
  display: grid;
  justify-items: center;
}

.home-ring-create {
  position: relative;
  min-width: clamp(190px, 16.6vw, 286px);
  padding: 13px 32px 15px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background:
    linear-gradient(112deg, rgba(38, 129, 224, 0.24), rgba(9, 19, 52, 0.9) 47%, rgba(137, 62, 169, 0.28))
      padding-box,
    linear-gradient(105deg, #4aeaff, #eefcff 32%, #7582ff 63%, #ff9ddd)
      border-box;
  box-shadow:
    inset 0 0 0 2px rgba(220, 248, 255, 0.22),
    inset 0 0 0 5px rgba(94, 174, 255, 0.1),
    inset 0 8px 17px rgba(218, 248, 255, 0.08),
    0 0 5px rgba(220, 251, 255, 0.84),
    0 0 19px rgba(49, 194, 255, 0.44),
    0 0 42px rgba(107, 87, 255, 0.25),
    0 15px 42px rgba(0, 0, 0, 0.58);
  color: #fff;
  font: 720 clamp(18px, 1.45vw, 25px)/1.2 "Microsoft YaHei UI", "PingFang SC", sans-serif;
  letter-spacing: 0.17em;
  text-indent: 0.17em;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.82),
    0 0 16px rgba(101, 186, 255, 0.58);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.home-ring-create::before {
  position: absolute;
  inset: 4px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(213, 244, 255, 0.22);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(84, 150, 255, 0.1),
    0 0 9px rgba(69, 190, 255, 0.13);
  pointer-events: none;
}

.home-ring-create::after {
  position: absolute;
  right: 18%;
  bottom: -10px;
  left: 18%;
  z-index: -1;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(243, 253, 255, 0.96),
    rgba(67, 196, 255, 0.5) 30%,
    transparent 72%
  );
  filter: blur(4px);
  pointer-events: none;
}

.home-ring-create:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 2px rgba(229, 251, 255, 0.3),
    inset 0 0 0 5px rgba(112, 194, 255, 0.15),
    inset 0 8px 18px rgba(218, 248, 255, 0.13),
    0 0 7px rgba(235, 253, 255, 0.94),
    0 0 28px rgba(49, 207, 255, 0.62),
    0 0 56px rgba(120, 82, 255, 0.34),
    0 18px 46px rgba(0, 0, 0, 0.62);
}

.home-ring-create:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.home-ring-create-sheen {
  position: absolute;
  top: -36%;
  left: -35%;
  width: 40%;
  height: 175%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-22deg);
  animation: home-ring-sheen 5.4s ease-in-out infinite;
}

.home-ring-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes home-ring-sheen {
  0%,
  28% {
    left: -35%;
    opacity: 0;
  }
  48% {
    opacity: 0.9;
  }
  70%,
  100% {
    left: 115%;
    opacity: 0;
  }
}

@media (max-width: 1030px) {
  .home-ring-creation-samples {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  #page-home {
    min-height: 820px;
  }

  .home-ring {
    min-height: 762px;
  }

  .home-ring-creation-samples {
    top: 31%;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .home-ring-create {
    min-width: 210px;
    padding: 10px 25px 12px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ring-create-sheen {
    animation: none;
  }

  .home-ring-create {
    transition: none;
  }
}
