@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Unbounded:wght@500;700&display=swap");

:root {
  color-scheme: light;
  font-family: "Manrope", "Segoe UI", sans-serif;
  --bg: #fff4d6;
  --bg-2: #ffe9b0;
  --panel: #ffffff;
  --accent: #ffb21a;
  --accent-dark: #d98200;
  --accent-2: #14b8a6;
  --text: #1c1a17;
  --muted: #6b6460;
  --shadow: 0 18px 45px rgba(28, 26, 23, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

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

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 80px;
  background: radial-gradient(circle, #ffce4b 0%, #ffae1a 70%);
}

.orb-b {
  width: 260px;
  height: 260px;
  right: -90px;
  top: 220px;
  background: radial-gradient(circle, #39c6b3 0%, #0ea5a0 70%);
  animation-delay: -3s;
}

.orb-c {
  width: 180px;
  height: 180px;
  left: 60px;
  bottom: -40px;
  background: radial-gradient(circle, #ffb199 0%, #ff8a4c 70%);
  animation-delay: -6s;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 26px auto 18px;
  padding: 20px;
  animation: fadeUp 0.6s ease forwards;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand {
  display: grid;
  gap: 4px;
}

.title {
  font-family: "Unbounded", "Trebuchet MS", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
}

.lang {
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff7e2;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.lang:active {
  transform: scale(0.98);
}

.panel {
  background: var(--panel);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: center;
  border: 1px solid rgba(28, 26, 23, 0.06);
  position: relative;
}

.balance-wrap {
  text-align: center;
  display: grid;
  gap: 6px;
}

.balance-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.balance {
  font-size: 44px;
  font-weight: 700;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  text-shadow: 0 8px 16px rgba(28, 26, 23, 0.15);
}

.balance.bump {
  transform: scale(1.08);
  text-shadow: 0 14px 26px rgba(255, 178, 26, 0.45);
}

.spark {
  position: absolute;
  font-size: 14px;
  font-weight: 700;
  color: #ffb21a;
  text-shadow: 0 6px 14px rgba(217, 130, 0, 0.5);
  animation: floatUp 0.7s ease forwards;
  pointer-events: none;
}

.tap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 30px rgba(217, 130, 0, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease;
  position: relative;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

.tap::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.9;
  z-index: -1;
  animation: pulse 2.2s ease-in-out infinite;
}

.tap:active {
  transform: scale(0.97);
}

.tap:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(28, 26, 23, 0.5);
  letter-spacing: 1.4px;
}

.shop {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(28, 26, 23, 0.06);
  box-shadow: 0 12px 30px rgba(28, 26, 23, 0.08);
  display: grid;
  gap: 12px;
}

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shop-title {
  font-size: 16px;
  font-weight: 700;
}

.shop-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.tap-value {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 178, 26, 0.18);
  border: 1px solid rgba(255, 178, 26, 0.4);
}

.shop-list {
  display: grid;
  gap: 10px;
}

.shop-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #fffdf6;
  border: 1px solid rgba(28, 26, 23, 0.08);
}

.shop-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.shop-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.shop-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.shop-buy {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1cc7b5, #0ea5a0);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  min-width: 88px;
}

.shop-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-26px) scale(1.08);
  }
}
