/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100svh;
  height: 100dvh;
  background: #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- App shell ---------- */
.app {
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Buttons ---------- */
.buttons-wrap {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(12px, 4vw, 20px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), clamp(2px, 0.5dvh, 6px));
}

.main-button,
.store-buttons,
.welcome-banner {
  width: 100%;
  margin-top: clamp(2px, 0.7dvh, 8px);
}

.main-button img,
.store-button img,
.welcome-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.main-button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.main-button:active,
.store-button:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3px, 0.8dvh, 8px);
}

.store-button {
  display: block;
  width: 100%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button.store-button {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: max(env(safe-area-inset-bottom, 0px), 16px);
  transform: translateX(-50%) translateY(calc(100% + 24px));
  max-width: min(90vw, 360px);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  border-radius: 8px;
  z-index: 1000;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.pwa-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

