* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: dark; }
html, body { height: 100%; }
/* без горизонтального сдвига и масштабирования на телефонах */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-y;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0a0a12;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding: 40px 14px;
}
/* фоновые градиентные пятна: обрезаются своим слоем, за экран не вылезают */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.g1 { width: 55vmax; height: 55vmax; background: #2563eb; top: -20%; left: -15%; }
.g2 { width: 45vmax; height: 45vmax; background: #9333ea; bottom: -25%; right: -10%; animation-delay: -7s; }
.g3 { width: 30vmax; height: 30vmax; background: #06b6d4; bottom: 10%; left: 20%; animation-delay: -3s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, -4vmax) scale(1.15); }
}
.card {
  position: relative;
  z-index: 1;
  margin: auto;
  text-align: center;
  padding: 60px 40px;
  width: 100%;
  max-width: 640px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.rkn-emblem {
  width: 76px;
  height: 76px;
  margin-top: 6px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
h1 {
  margin-top: 24px;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee, #60a5fa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 300% 0; }
}
h2 {
  margin-top: 14px;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  color: #fca5a5;
  text-shadow: 0 0 30px rgba(252,165,165,.45);
  letter-spacing: .01em;
}
.player { margin-top: 40px; }
.player audio {
  width: 100%;
  max-width: 440px;
  border-radius: 999px;
}
.player-note { margin-top: 16px; color: rgba(255,255,255,.6); font-size: 15px; }
.player-note a { color: #60a5fa; text-decoration: none; }
.player-note a:hover { text-decoration: underline; }
.dl { margin-top: 44px; }
.dl-title {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.dl-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.35);
  color: #93c5fd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.dl-links a:hover {
  background: rgba(96,165,250,.28);
  transform: translateY(-2px);
}
.dl-ver { margin-top: 12px; color: rgba(255,255,255,.35); font-size: 12px; }
.dl-ver a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.3);
}
.dl-ver a:hover { color: #93c5fd; }
.vpn { margin-top: 30px; }
#vpn-btn {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #0a0a12;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(96,165,250,.35);
  transition: transform .15s, filter .15s;
}
#vpn-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
#vpn-btn:disabled { opacity: .6; cursor: wait; }
.vpn-note {
  margin-top: 12px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: 1.5;
}
.config-box {
  margin-top: 22px;
  text-align: left;
}
.config-box textarea {
  width: 100%;
  height: 240px;
  background: rgba(0,0,0,.45);
  color: #9fe8ff;
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 14px;
  padding: 14px;
  font: 12px/1.5 Consolas, Menlo, Monaco, monospace;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: hidden;
  overflow-y: auto;
}
#copy-btn {
  display: block;
  margin: 0 auto 12px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: #e8edf2;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s;
}
#copy-btn:hover { background: rgba(96,165,250,.28); }
/* временное поле для копирования через execCommand */
.clip-tmp {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  font-size: 16px;
}
/* малые экраны: компактнее и без обрезки */
@media (max-width: 480px) {
  body { padding: 24px 10px; }
  .card {
    padding: 34px 16px;
    border-radius: 22px;
  }
  .icon { font-size: 50px; }
  .rkn-emblem { width: 60px; height: 60px; }
  .player, .dl { margin-top: 30px; }
  .glow { filter: blur(80px); }
}
