:root {
  --bg: #1A0A2E;
  --card: #2D1B4E;
  --accent: #FF2D78;
  --accent-light: #FF5C94;
  --gold: #FFD700;
  --green: #00E676;
  --red: #FF5252;
  --white: #FFFFFF;
  --gray: #B0B0B0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #3a125f, var(--bg) 45%); color: var(--white); font-family: Inter, "Segoe UI", system-ui, sans-serif; overflow: hidden; }
button { font: inherit; }
#app { max-width: 480px; height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
#top-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: rgba(26,10,46,.94); border-bottom: 1px solid rgba(255,45,120,.25); font-size: 13px; font-weight: 800; }
#balance { color: var(--gold); }
#energy { color: #54c7ff; }
#content { flex: 1; overflow: auto; padding-bottom: 12px; }
.screen { display: none; min-height: 100%; padding: 16px; }
.screen.active { display: block; }
#natali-area { position: relative; min-height: 330px; display: grid; place-items: center; text-align: center; }
#natali-avatar { width: min(78vw, 320px); max-height: 320px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(255,45,120,.55)); user-select: none; transition: transform .12s; }
#natali-avatar.bounce { transform: scale(1.06) translateY(-5px); }
.hint { position: absolute; bottom: 24px; color: var(--gray); }
.click-effect { position: fixed; color: var(--gold); font-size: 24px; font-weight: 900; pointer-events: none; animation: floatUp .8s ease-out forwards; text-shadow: 0 0 12px rgba(255,215,0,.9); z-index: 20; }
@keyframes floatUp { to { transform: translateY(-80px) scale(1.45); opacity: 0; } }
.card { background: linear-gradient(180deg, rgba(45,27,78,.98), rgba(38,18,70,.98)); border: 1px solid rgba(255,45,120,.16); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 24px rgba(255,45,120,.22); }
.card.locked { opacity: .55; filter: grayscale(.2); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--gray); font-size: 13px; }
.title { font-size: 20px; font-weight: 900; margin: 0 0 12px; }
.big { font-size: 34px; margin: 0; }
.progress { height: 12px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; }
.btn { width: 100%; border: 0; border-radius: 14px; padding: 13px 15px; color: white; background: #3D2B5E; font-weight: 900; margin-top: 10px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-light)); box-shadow: 0 8px 22px rgba(255,45,120,.32); }
.btn-gold { background: var(--gold); color: #250d3e; }
.btn-small { width: auto; padding: 9px 12px; margin: 0; font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.05); margin: 6px 0; border: 1px solid transparent; }
.option.selected { border-color: var(--accent); background: rgba(255,45,120,.15); }
.option.disabled { opacity: .45; filter: grayscale(.4); }
.cost { color: var(--gold); font-weight: 900; white-space: nowrap; }
.profit { color: var(--green); font-weight: 900; }
.loss { color: var(--red); font-weight: 900; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; background: var(--card); border-radius: 14px; padding: 5px; margin-bottom: 12px; }
.tab { border: 0; border-radius: 11px; color: var(--gray); background: transparent; padding: 10px 4px; font-weight: 800; }
.tab.active { background: var(--accent); color: white; }
#bottom-nav { min-height: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); background: rgba(26,10,46,.98); border-top: 1px solid rgba(255,45,120,.25); }
.nav-btn { border: 0; background: transparent; color: var(--gray); display: grid; gap: 4px; place-items: center; font-size: 22px; font-weight: 800; }
.nav-btn span { font-size: 11px; }
.nav-btn.active { color: var(--accent); }
.toast { position: fixed; left: 50%; top: 62px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--accent); padding: 12px 18px; border-radius: 14px; font-weight: 800; z-index: 100; animation: toast 2.2s forwards; width: max-content; max-width: 90vw; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%,85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
