:root {
  --bg: var(--tg-theme-bg-color, #17212b);
  --text: var(--tg-theme-text-color, #ffffff);
  --hint: var(--tg-theme-hint-color, #8b9aa8);
  --button: var(--tg-theme-button-color, #3390ec);
  --button-text: var(--tg-theme-button-text-color, #ffffff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.coin-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 700;
}

.coin-icon {
  font-size: 22px;
}

.coin-count {
  min-width: 24px;
}

.title {
  font-size: 28px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--hint);
  margin-bottom: 40px;
}

.ad-button {
  background: var(--button);
  color: var(--button-text);
  border: none;
  border-radius: 14px;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s ease, opacity 0.2s ease;
  font-family: inherit;
}

.ad-button:active {
  transform: scale(0.97);
}

.ad-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 24px;
  font-size: 14px;
  color: var(--hint);
  min-height: 20px;
}

.status.success { color: #4caf50; }
.status.error { color: #f44336; }
