:root {
  --blue-primary: #2563EB;
  --blue-sky: #0EA5E9;
  --blue-soft: #EFF6FF;
  --red-ball: #EF4444;
  --blue-ball: #2563EB;
  --mint-bg: #ECFDF5;
  --mint-text: #059669;
  --surface: #F4F7FB;
  --card: #FFFFFF;
  --border-subtle: #EDF1F7;
  --text-main: #0F172A;
  --text-sub: #64748B;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #E8EEF6 0%, #DDE6F2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[v-cloak] {
  display: none;
}

.app-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.7);
  padding-bottom: 84px;
}

@media (max-width: 460px) {
  html, body {
    background: var(--surface);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Bento Card */
.bento-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
}

/* Tech Blue Gradient Hero Card */
.hero-blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D8CF8 55%, #06B6D4 100%);
  border-radius: 24px;
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.42);
  position: relative;
  overflow: hidden;
}
.hero-blue::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -28px;
  width: 160px;
  height: 160px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* AI Insight Soft Ice-Blue Card */
.insight-card {
  background: linear-gradient(180deg, #F0F7FF 0%, #F8FBFF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 22px;
}

/* Minimalist Flat-Modern Lottery Balls */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ball-xs { width: 24px; height: 24px; font-size: 11px; }
.ball-sm { width: 28px; height: 28px; font-size: 12px; }
.ball-md { width: 34px; height: 34px; font-size: 13.5px; }
.ball-lg { width: 38px; height: 38px; font-size: 15px; }

.ball-red {
  background: #EF4444;
  color: #FFFFFF;
}
.ball-blue {
  background: #2563EB;
  color: #FFFFFF;
}
.ball-hero-red {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(15, 23, 42, 0.15);
}
.ball-hero-blue {
  background: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* Primary Tech Blue Button */
.btn-tech-blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D8CF8 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-tech-blue:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

/* Heatmap Rounded Square Cells */
.heat-cell {
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.heat-cell:active {
  transform: scale(0.94);
}
.heat-lvl-4 { background: #EF4444; color: #FFFFFF; }
.heat-lvl-3 { background: #FCA5A5; color: #7F1D1D; }
.heat-lvl-2 { background: #FEE2E2; color: #991B1B; }
.heat-lvl-1 { background: #E2E8F0; color: #334155; }
.heat-lvl-0 { background: #DBEAFE; color: #1E40AF; }

/* Sticky Glass Header & Bottom iOS Tab Bar */
.glass-top {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 40;
}

.toast-enter-active, .toast-leave-active {
  transition: all 0.22s ease;
}
.toast-enter-from, .toast-leave-to {
  opacity: 0;
  transform: translate(-50%, -10px);
}
