#app {
  font-family:
    "PingFang SC",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
}

.content {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 120, 210, 0.18), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(20, 90, 180, 0.16), transparent 32%),
    linear-gradient(180deg, #071526 0%, #06101c 48%, #071422 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 150, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 150, 210, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}

.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-decor::before,
.bg-decor::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(80, 170, 230, 0.28);
  border-radius: 50%;
}

.bg-decor::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -120px;
  box-shadow: inset 0 0 0 18px rgba(40, 110, 180, 0.05);
}

.bg-decor::after {
  width: 340px;
  height: 340px;
  left: -160px;
  bottom: -80px;
}

.wrapper {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 88px;
}

.stage {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  width: min(132px, 37.2vw);
  height: auto;
  display: block;
}

.line-content {
  width: min(100%, 420px);
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.line-content:empty {
  margin-top: 0;
}

.line-item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3.6px 8px 3.6px 6px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 32, 58, 0.92), rgba(8, 22, 42, 0.92));
  border: 1px solid rgba(150, 196, 236, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

.line-item:active {
  transform: scale(0.985);
  background: linear-gradient(180deg, rgba(18, 44, 78, 0.96), rgba(10, 28, 52, 0.96));
}

.line-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.line-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.line-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.line-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.line-host {
  color: #3ec6ff;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid rgba(190, 214, 236, 0.85);
  border-top: 1.5px solid rgba(190, 214, 236, 0.85);
  transform: rotate(45deg);
}

.bottom-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(226, 236, 246, 0.88);
  font-size: 15px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.lines-loading {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: lines-loading-fade-in 0.18s ease-out;
}

.lines-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 120px;
  padding: 22px 28px 18px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(36, 36, 36, 0.96) 0%,
    rgba(18, 18, 18, 0.96) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lines-loading-ring {
  position: relative;
  width: 42px;
  height: 42px;
}

.lines-loading-ring-outer,
.lines-loading-ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  box-sizing: border-box;
}

.lines-loading-ring-outer {
  border-width: 3px;
  border-top-color: #c43a36;
  border-right-color: rgba(196, 58, 54, 0.35);
  animation: lines-loading-spin 0.85s linear infinite;
}

.lines-loading-ring-inner {
  inset: 8px;
  border-width: 2px;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  border-left-color: rgba(255, 255, 255, 0.25);
  animation: lines-loading-spin-reverse 1.1s linear infinite;
}

.lines-loading-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1;
}

@keyframes lines-loading-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lines-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lines-loading-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.lines-error {
  position: relative;
  z-index: 3;
  width: min(100%, 420px);
  margin-top: 28px;
  display: none;
  justify-content: center;
  pointer-events: auto;
}

.lines-error-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 8px;
}

.lines-error-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.lines-error-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lines-action-btn {
  min-width: 120px;
  height: 40px;
  padding: 0 28px;
  border: none;
  border-radius: 20px;
  background: #ffffffcc;
  color: #2f2f2f;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lines-action-btn:active {
  opacity: 0.85;
}
