* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #132031;
  color: #f5e9c8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
  font-size: 16px;
}

button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: #D4AF37;
  text-decoration: none;
}

/* Zone A — Header */
.zone-a {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 50;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #132031;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.zone-a .brand {
  color: #D4AF37;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  color: #D4AF37;
  font-size: 14px;
}

.overflow-btn {
  min-height: 44px;
  min-width: 44px;
  color: #D4AF37;
  font-size: 24px;
  line-height: 1;
}

/* Zone B — Nav rail placeholder */
.zone-b {
  display: none;
}

/* Zone C — Main */
.zone-c {
  padding: 16px;
  min-height: calc(100vh - 56px - 64px);
}

.coming-soon-card {
  margin: 32px auto;
  max-width: 480px;
  padding: 24px;
  border: 1px solid #D4AF37;
  border-radius: 12px;
  text-align: center;
  background: rgba(212, 175, 55, 0.04);
}

.coming-soon-card h1 {
  color: #D4AF37;
  font-size: 22px;
  margin-bottom: 8px;
}

.coming-soon-card p {
  font-size: 16px;
  color: #f5e9c8;
}

/* Zone D — Footer */
.zone-d {
  padding: 12px 16px;
  text-align: center;
}

.desktop-link {
  color: #D4AF37;
  text-decoration: underline;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* iOS install banner */
.ios-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #132031;
  border: 1px solid #D4AF37;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transform: translateY(120%);
  animation: slide-up 320ms ease-out forwards;
}

.ios-install-banner[hidden] {
  display: none;
}

.ios-install-text {
  flex: 1;
  font-size: 14px;
  color: #f5e9c8;
}

.share-icon {
  color: #D4AF37;
  font-size: 18px;
}

.ios-install-dismiss {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  color: #D4AF37;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  font-size: 14px;
}

@keyframes slide-up {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}
