* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #85c3e0;
  font-family: 'FZCuYuan-M03S', 'FZLanTingHei-R-GBK', 'FZShuTi', 'FangZheng', 'Microsoft YaHei', -apple-system, sans-serif;
  user-select: none;
}

.sky-app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #85c3e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

#parachuteCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Bottom Controls Section */
.bottom-container {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 440px;
  padding: 0 16px 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Slogan */
.slogan {
  font-family: 'FZCuYuan-M03S', 'FZLanTingHei-R-GBK', 'FangZheng', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 4.6vw, 24px);
  color: #000000;
  line-height: 1.25;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-transform: uppercase;
  max-width: 320px;
  word-break: break-word;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Capsule Upload Button */
.upload-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #000000;
  color: #ffffff;
  font-family: 'FZCuYuan-M03S', 'FZLanTingHei-R-GBK', 'FangZheng', 'Microsoft YaHei', sans-serif;
  font-size: clamp(16px, 4.2vw, 22px);
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 10px clamp(18px, 5vw, 32px);
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
  border: 2px solid #000000;
  max-width: 90vw;
}

.upload-capsule:active {
  transform: scale(0.96);
}

.paste-pill-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000000;
  color: #000000;
  font-family: 'FZCuYuan-M03S', 'FZLanTingHei-R-GBK', 'FangZheng', 'Microsoft YaHei', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.paste-pill-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Paste Modal */
.paste-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.paste-box {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.paste-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paste-title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  font-family: 'FZCuYuan-M03S', 'FZLanTingHei-R-GBK', 'FangZheng', sans-serif;
}

.random-btn {
  background: #f0f0f0;
  border: 2px solid #000000;
  color: #000000;
  font-family: 'FZCuYuan-M03S', 'FangZheng', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.random-btn:hover {
  background: #000000;
  color: #ffffff;
}

#pasteInput {
  width: 100%;
  height: 160px;
  padding: 10px;
  border: 2px solid #000000;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
  background: #fafafa;
}

.paste-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cancel-btn {
  background: #f0f0f0;
  border: 2px solid #000000;
  font-family: 'FZCuYuan-M03S', 'FangZheng', sans-serif;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.confirm-btn {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  font-family: 'FZCuYuan-M03S', 'FangZheng', sans-serif;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-height: 640px) {
  .bottom-container {
    padding-bottom: 14px;
  }
}
