:root {
  --primary: #0070f3;
  --accent: #4caf50;
  --bg: #eceef3;
  --card-bg: #ffffff;
  --text: #111;
  --text-muted: #6b7280;
  --radius-card: 24px;
  --shadow-card:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 6px 12px rgba(16, 24, 40, 0.06),
    0 16px 32px rgba(16, 24, 40, 0.08);
  --shadow-card-active:
    0 2px 4px rgba(16, 24, 40, 0.06),
    0 12px 24px rgba(16, 24, 40, 0.10),
    0 28px 56px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.app {
  height: 100vh;
  height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 20px 12px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.promo-scroller {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -20px;
  overflow: hidden;
  perspective: 1200px;
  display: flex;
  align-items: center;
  will-change: transform;
}

.promo-list {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
  touch-action: pan-x;
  will-change: transform;
}

.promo-list::-webkit-scrollbar { display: none; }

.promo-card {
  position: relative;
  flex: 0 0 auto;
  width: 72vw;
  max-width: 280px;
  height: 100%;
  max-height: 100%;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  scroll-snap-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-origin: center center;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
}

.promo-card {
  transform: scale(0.86) translateZ(-60px);
  opacity: 0.55;
}

.promo-card.is-active {
  transform: scale(1) translateZ(0);
  opacity: 1;
  box-shadow: var(--shadow-card-active);
}

.promo-card::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.promo-card.is-active::before { opacity: 1; }

.promo-card:active {
  transform: scale(0.98) translateZ(0);
}

.promo-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}

.promo-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.promo-text {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.empty {
  color: var(--text-muted);
  padding: 0 20px;
  margin: 0;
}