@font-face {
  font-family: Inter;
  src: local("Inter"), local("Segoe UI"), local("System");
}
:root {
  --bg1: #0a0b1f;
  --bg2: #1b1f3b;
  --accent: #51ffea;
  --accent2: #ffde59;
  --good: #45f39a;
  --warn: #ff8e3c;
  --text: #e9ecff;
  --muted: #9aa3c7;
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
[aria-hidden="true"] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, var(--bg1), var(--bg2));
  overflow: hidden;
}
.bg {
  position: fixed; inset: 0;
  background: radial-gradient(1000px 600px at 50% -200px, rgba(81,255,234,0.25), transparent),
              radial-gradient(900px 500px at -150px 100%, rgba(255,222,89,0.15), transparent),
              radial-gradient(600px 400px at 110% 80%, rgba(173,103,255,0.2), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.particles::before, .particles::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 2px);
  background-size: 40px 40px;
  animation: drift 35s linear infinite;
  opacity: 0.25;
}
.particles::after { animation-duration: 55s; opacity: 0.18; }
@keyframes drift { from { transform: translateY(0) } to { transform: translateY(-40px) } }

.start {
  position: fixed; inset: 0; display: grid; place-items: center; gap: 24px;
  background: linear-gradient(180deg, rgba(10,11,31,0.55), rgba(27,31,59,0.85));
  backdrop-filter: blur(10px) saturate(1.2);
  z-index: 20;
}
.brand { text-align: center; }
.brand h1 { font-size: 32px; letter-spacing: 1px; margin: 0; }
.brand p { margin: 6px 0 0; color: var(--muted); }
.btn {
  appearance: none; border: 1px solid var(--border); border-radius: 14px;
  background: var(--glass); color: var(--text); padding: 14px 18px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, rgba(81,255,234,0.25), rgba(81,255,234,0.15)); border-color: rgba(81,255,234,0.55); }
.btn.success { background: linear-gradient(180deg, rgba(69,243,154,0.25), rgba(69,243,154,0.15)); border-color: rgba(69,243,154,0.55); }
.btn.warning { background: linear-gradient(180deg, rgba(255,142,60,0.3), rgba(255,142,60,0.18)); border-color: rgba(255,142,60,0.6); }

.topbar { position: fixed; inset: 0 0 auto 0; height: 72px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 14px; z-index: 10; background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0)); backdrop-filter: blur(8px); }
.logo { font-weight: 800; letter-spacing: .5px; }
.balances { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.balance { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--glass); }
.balance img { width: 24px; height: 24px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.actions { display: flex; gap: 8px; }
.icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); display: grid; place-items: center; }
.icon img { width: 24px; height: 24px; }

.game { position: fixed; inset: 72px 0 42px 0; overflow: auto; padding: 16px; display: grid; gap: 16px; }
.game { scrollbar-width: thin; scrollbar-color: rgba(81,255,234,0.45) rgba(255,255,255,0.06); }
.game::-webkit-scrollbar { width: 10px; }
.game::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 10px; }
.game::-webkit-scrollbar-thumb { border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(81,255,234,0.7), rgba(173,103,255,0.7)); box-shadow: inset 0 0 6px rgba(0,0,0,0.25); }
.game::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(81,255,234,0.9), rgba(173,103,255,0.9)); }
.hero { display: grid; place-items: center; gap: 10px; padding-top: 8px; }
.hero { position: relative; }
.clicker { width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(81,255,234,0.55); background: radial-gradient(120px 120px at 50% 35%, rgba(81,255,234,0.18), rgba(81,255,234,0.08)); display: grid; place-items: center; box-shadow: 0 20px 40px rgba(81,255,234,0.2), inset 0 0 60px rgba(81,255,234,0.18); position: relative; }
.clicker { cursor: pointer; }
.clicker::before { content:""; position:absolute; inset:0; border-radius:50%; background: radial-gradient(closest-side, rgba(81,255,234,0.35), transparent 70%); opacity:0; }
.clicker.pulse::before { animation: pulse .22s ease-out; }
@keyframes pulse { from { opacity:.9; transform: scale(1) } to { opacity:0; transform: scale(1.12) } }
.clicker img { width: 90px; height: 90px; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.35)); }
.clicker::after { content:""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(81,255,234,0.35); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn) } }
#clickValue { position: absolute; bottom: 12px; font-weight: 700; color: var(--accent); text-shadow: 0 6px 22px rgba(81,255,234,0.6); }
.rate { display: grid; place-items: center; gap: 4px; color: var(--muted); }
.rate strong { color: var(--accent2); font-size: 18px; }

.panel { border: 1px solid var(--border); background: var(--glass); border-radius: 16px; padding: 12px; }
.panel h2 { margin: 4px 8px 8px; font-size: 18px; letter-spacing: .6px; }
.list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); }
.card { transition: transform .12s ease, box-shadow .2s ease; }
.card:active { transform: scale(.995); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); }
.card .icon img { width: 36px; height: 36px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35)); }
.card .info { display: grid; gap: 4px; }
.card .info .name { font-weight: 700; }
.card .info .line { color: var(--muted); font-size: 12px; }
.card .buy { display: grid; gap: 6px; }
.card.locked { filter: grayscale(100%) brightness(0.9); opacity: 0.75; }
.card.unaffordable { filter: grayscale(100%) brightness(0.9); opacity: 0.8; }
.card.affordable { border-color: rgba(81,255,234,0.55); box-shadow: 0 8px 18px rgba(81,255,234,0.18); }
.card.affordable .buy { color: var(--accent); }
.card .btn { padding: 8px 12px; }

.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,0.6); z-index: 30; }
.modal[aria-hidden="false"] { display: grid; }
.modal-content { width: min(520px, 92vw); border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); backdrop-filter: blur(8px); padding: 14px; }
.modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal-header img { width: 28px; height: 28px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.settings { display: grid; gap: 10px; }
.settings label { display: grid; gap: 8px; }
.settings input[type="range"] { width: 100%; }

.daily-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; background: rgba(255,255,255,0.06); }
.day.active { outline: 2px solid var(--accent); }
.day.claimed { background: rgba(69,243,154,0.18); }
.day.locked { background: rgba(255,142,60,0.12); opacity: 0.7; }

.footer { position: fixed; inset: auto 0 0 0; height: 42px; display: grid; place-items: center; color: var(--muted); background: linear-gradient(0deg, rgba(0,0,0,0.22), rgba(0,0,0,0)); }

@media (max-width: 380px) {
  .clicker { width: 180px; height: 180px; }
}
.float { position: absolute; font-weight: 800; color: var(--accent2); text-shadow: 0 6px 18px rgba(0,0,0,0.4); animation: floatUp .9s ease-out forwards; pointer-events: none; }
@keyframes floatUp { 0% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(-40px); opacity: 0 } }

.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 40; }
.toast { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)); backdrop-filter: blur(6px); box-shadow: 0 10px 22px rgba(0,0,0,0.35); animation: toastIn .25s ease-out forwards; }
.toast.success { outline: 2px solid rgba(69,243,154,0.6); }
.toast.warn { outline: 2px solid rgba(255,142,60,0.6); }
@keyframes toastIn { from { transform: translateY(-8px) translateX(-50%); opacity: 0 } to { transform: translateY(0) translateX(-50%); opacity: 1 } }
