﻿:root {
  --bg-start: #031225;
  --bg-end: #010204;
  --text-main: #d8f4ff;
  --accent: #2ee8ff;
  --accent-2: #5d5bff;
  --card-bg: rgba(7, 17, 34, 0.78);
  --card-border: rgba(95, 215, 255, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 15% 10%, #0a2745 0%, var(--bg-start) 40%, var(--bg-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(46, 232, 255, 0.65);
}

.wheel-wrap {
  position: relative;
  width: 400px;
  height: 400px;
  display: grid;
  place-items: center;
}

canvas {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(46, 232, 255, 0.55), inset 0 0 30px rgba(46, 232, 255, 0.45);
  width: 100%;
  height: 100%;
}

button {
  margin-top: 6px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #011421;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, #2ee8ff 0%, #6f8dff 100%);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 232, 255, 0.35);
}

.pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid var(--accent);
  filter: drop-shadow(0 0 12px rgba(46, 232, 255, 0.75));
  z-index: 2;
}

#result {
  min-height: 24px;
  margin-top: -2px;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(46, 232, 255, 0.4);
}

#donate {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  text-align: left;
}

.donate-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c8e8ff;
  letter-spacing: 0.02em;
}

.donate-box {
  background: linear-gradient(145deg, var(--card-bg), rgba(10, 23, 45, 0.88));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(2, 8, 20, 0.5), 0 0 18px rgba(46, 232, 255, 0.22);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donate-box label {
  font-size: 0.82rem;
  color: #9dc7da;
}

#network {
  width: 100%;
  border: 1px solid rgba(157, 199, 218, 0.4);
  border-radius: 10px;
  padding: 8px;
  color: #e8f7ff;
  background: rgba(4, 12, 26, 0.75);
  font-family: inherit;
}

.addr {
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 8px;
  border-radius: 10px;
  background: rgba(2, 11, 24, 0.6);
  border: 1px solid rgba(157, 199, 218, 0.25);
  overflow-wrap: anywhere;
}

#copyBtn {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 10px;
}

img.qr {
  margin-top: 2px;
  margin-inline: auto;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 1px solid rgba(157, 199, 218, 0.4);
  background: #fff;
}

#copyMsg {
  min-height: 18px;
  font-size: 0.78rem;
  color: #77ffc9;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    justify-content: flex-start;
    padding-top: 18px;
    padding-bottom: 210px;
  }

  .wheel-wrap {
    width: min(92vw, 360px);
    height: min(92vw, 360px);
  }

  #donate {
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
  }
}
